blob: a4bddea9066e744732a153828f456148bdaa1e7b [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
cristy3ed852e2009-09-05 21:47:34 +0000687windows_font_dir
cristy5a3dc992014-12-05 19:50:04 +0000688ghostscript_font_dir
cristy430a7312010-01-21 20:44:04 +0000689dejavu_font_dir
cristy5a3dc992014-12-05 19:50:04 +0000690apple_font_dir
cristy3ed852e2009-09-05 21:47:34 +0000691PrintDelegate
692ZipDelegate
693XPSDelegate
694WWWDecodeDelegate
695WMFDecodeDelegate
cristy86e86092013-08-04 17:43:57 +0000696WebPEncodeDelegate
697WebPDecodeDelegate
cristy5ac9ac82010-07-29 13:24:24 +0000698UniconvertorDelegate
cristy3ed852e2009-09-05 21:47:34 +0000699TXTDelegate
cristyec6934f2012-08-14 18:38:40 +0000700SVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000701SCANDecodeDelegate
cristy4689cf02010-02-17 21:15:45 +0000702RSVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000703RMDelegate
704RLEEncodeDelegate
705PSDelegate
706POVDelegate
707PGPDecodeDelegate
708PCLDelegate
709MVDelegate
cristy935c86e2010-06-05 23:50:07 +0000710MrSIDDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000711MPEGEncodeDelegate
712MPEGDecodeDelegate
cristy66f238e2014-05-16 12:21:48 +0000713MogrifyDelegate
cristy3ed852e2009-09-05 21:47:34 +0000714MANDelegate
715LaunchDelegate
cristy3ed852e2009-09-05 21:47:34 +0000716LPRDelegate
717LPDelegate
cristy71f53d52013-04-27 13:33:59 +0000718JXREncodeDelegate
719JXRDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000720ILBMEncodeDelegate
721ILBMDecodeDelegate
722HTMLDecodeDelegate
723HPGLDecodeDelegate
cristy66f238e2014-05-16 12:21:48 +0000724GVCDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000725GnuplotDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000726EditorDelegate
727EchoDelegate
cristy66f238e2014-05-16 12:21:48 +0000728DisplayDelegate
729ConvertDelegate
cristy3ed852e2009-09-05 21:47:34 +0000730DVIDecodeDelegate
cristy66f238e2014-05-16 12:21:48 +0000731DOCDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000732DNGDecodeDelegate
733CatDelegate
cristy3ed852e2009-09-05 21:47:34 +0000734BrowseDelegate
735BZIPDelegate
736BlenderDecodeDelegate
cristy16b412d2014-12-15 11:09:48 +0000737BGPEncodeDelegate
738BGPDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000739AutotraceDecodeDelegate
cristy670aa3c2011-11-03 00:54:00 +0000740SHAREARCH_PATH
cristy54378032012-12-04 15:52:20 +0000741SHAREARCH_RELATIVE_PATH
742SHAREARCH_DIRNAME
743SHAREARCH_BASEDIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000744SHARE_PATH
cristy4f820712011-04-01 12:35:43 +0000745CONFIGURE_PATH
cristydd17feb2014-03-05 02:06:32 +0000746INSTALL_DOC_FALSE
747INSTALL_DOC_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000748DOCUMENTATION_PATH
749FILTER_PATH
cristy01ff9f32012-12-01 18:15:29 +0000750FILTER_DIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000751CODER_PATH
cristy01ff9f32012-12-01 18:15:29 +0000752CODER_DIRNAME
753MODULES_PATH
754MODULES_RELATIVE_PATH
755MODULES_DIRNAME
756MODULES_BASEDIRNAME
cristy8d0ff762013-03-10 20:33:28 +0000757LIB_BIN_DIR_PATH
758LIB_BIN_DIR_RELATIVE_PATH
759LIB_BIN_DIR
760LIB_BIN_BASEDIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000761LIBRARY_PATH
762EXECUTABLE_PATH
cristye52f12f2012-12-31 15:32:36 +0000763INCLUDEARCH_PATH
cristy2a11bef2011-10-28 18:33:11 +0000764INCLUDE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000765PERLMAINCC
766XML_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000767XML_DELEGATE_FALSE
768XML_DELEGATE_TRUE
cristy81beccd2011-10-03 18:17:24 +0000769xml2_config
cristy03f7cf92011-12-15 01:40:41 +0000770WMF_LIBS_DEPS
cristy3ed852e2009-09-05 21:47:34 +0000771WMF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000772WMF_DELEGATE_FALSE
773WMF_DELEGATE_TRUE
cristyb1860752011-03-14 00:27:46 +0000774WEBP_LIBS
775WEBP_DELEGATE_FALSE
776WEBP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000777TIFF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000778TIFF_DELEGATE_FALSE
779TIFF_DELEGATE_TRUE
780CAIRO_DELEGATE_FALSE
781CAIRO_DELEGATE_TRUE
782RSVG_DELEGATE_FALSE
783RSVG_DELEGATE_TRUE
784CAIRO_SVG_LIBS
785CAIRO_SVG_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000786RSVG_LIBS
787RSVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +0000788PNG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000789PNG_DELEGATE_FALSE
790PNG_DELEGATE_TRUE
cristya054b762012-03-26 23:16:00 +0000791PANGOCAIRO_DELEGATE_FALSE
792PANGOCAIRO_DELEGATE_TRUE
cristy41cbe8a2011-10-27 01:35:18 +0000793PANGO_DELEGATE_FALSE
794PANGO_DELEGATE_TRUE
795PANGO_LIBS
796PANGO_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000797OPENEXR_DELEGATE_FALSE
798OPENEXR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000799OPENEXR_LIBS
800OPENEXR_CFLAGS
cristyfbb0ef02010-12-19 02:32:11 +0000801LZMA_DELEGATE_FALSE
802LZMA_DELEGATE_TRUE
cristyb94e5002011-11-14 13:20:10 +0000803LZMA_LIBS
804LZMA_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000805LQR_DELEGATE_FALSE
806LQR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000807LQR_LIBS
808LQR_CFLAGS
cristy99db3872014-01-01 15:11:34 +0000809LIBOPENJP2_DELEGATE_FALSE
810LIBOPENJP2_DELEGATE_TRUE
811LIBOPENJP2_LIBS
812LIBOPENJP2_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000813LCMS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000814LCMS_DELEGATE_FALSE
815LCMS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000816JPEG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000817JPEG_DELEGATE_FALSE
818JPEG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000819JBIG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000820JBIG_DELEGATE_FALSE
821JBIG_DELEGATE_TRUE
822GVC_DELEGATE_FALSE
823GVC_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000824GVC_LIBS
825GVC_CFLAGS
826GS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000827GS_DELEGATE_FALSE
828GS_DELEGATE_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000829FREETYPE_DELEGATE_FALSE
830FREETYPE_DELEGATE_TRUE
cristy03f187e2013-01-24 00:22:19 +0000831FREETYPE_LIBS
832FREETYPE_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000833FONTCONFIG_DELEGATE_FALSE
834FONTCONFIG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000835FONTCONFIG_LIBS
836FONTCONFIG_CFLAGS
cristy853d9902014-08-21 18:50:43 +0000837DJVU_LIBS
838DJVU_DELEGATE_FALSE
839DJVU_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000840FPX_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000841FPX_DELEGATE_FALSE
842FPX_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000843FFTW_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000844FFTW_DELEGATE_FALSE
845FFTW_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000846DPS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000847DPS_DELEGATE_FALSE
848DPS_DELEGATE_TRUE
849AUTOTRACE_DELEGATE_FALSE
850AUTOTRACE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000851AUTOTRACE_LIBS
852AUTOTRACE_CFLAGS
853LIB_DL
cristy5eef09f2012-10-16 12:08:28 +0000854WITH_LTDL_FALSE
855WITH_LTDL_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000856ZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000857ZLIB_DELEGATE_FALSE
858ZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000859XEXT_LIBS
860X11_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000861X11_DELEGATE_FALSE
862X11_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000863X_EXTRA_LIBS
864X_LIBS
865X_PRE_LIBS
866X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000867XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000868BZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000869BZLIB_DELEGATE_FALSE
870BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000871CCMALLOCDelegate
872UMEM_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000873HasUMEM_FALSE
874HasUMEM_TRUE
cristy3b0097d2014-11-04 15:34:47 +0000875JEMALLOC_LIBS
876HasJEMALLOC_FALSE
877HasJEMALLOC_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000878GOMP_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000879WITH_MAGICK_PLUS_PLUS_FALSE
880WITH_MAGICK_PLUS_PLUS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000881OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000882MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000883POW_LIB
884LIBOBJS
cristy6d5e20f2011-04-25 13:48:54 +0000885UINTPTR_F
cristy3ed852e2009-09-05 21:47:34 +0000886UINTPTR_T
cristy6d5e20f2011-04-25 13:48:54 +0000887UINTMAX_F
cristy3ed852e2009-09-05 21:47:34 +0000888UINTMAX_T
cristy6d5e20f2011-04-25 13:48:54 +0000889UINT64_F
cristy3ed852e2009-09-05 21:47:34 +0000890UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000891INT64_F
cristy3ed852e2009-09-05 21:47:34 +0000892INT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000893UINT32_F
cristy3ed852e2009-09-05 21:47:34 +0000894UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +0000895INT32_F
cristy3ed852e2009-09-05 21:47:34 +0000896INT32_T
897UINT16_T
898INT16_T
899UINT8_T
900INT8_T
901LIBRARY_EXTRA_CPPFLAGS
902MODULE_EXTRA_CPPFLAGS
903LIBSTDCLDFLAGS
904PERL_MAKE_OPTIONS
cristy3a75f062012-09-08 23:29:40 +0000905MAGICK_LT_RELEASE_OPTS
cristy7a26abd2012-12-03 00:18:59 +0000906MAGICK_ABI_SUFFIX
cristy3ed852e2009-09-05 21:47:34 +0000907QUANTUM_DEPTH
cristy71d8c202012-03-20 17:05:01 +0000908LEGACY_SUPPORT_FALSE
909LEGACY_SUPPORT_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000910MAINT
911MAINTAINER_MODE_FALSE
912MAINTAINER_MODE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000913MAGICK_HDRI
cristy73bd4a52010-10-05 11:24:23 +0000914WITH_MODULES_FALSE
915WITH_MODULES_TRUE
916WITH_SHARED_LIBS_FALSE
917WITH_SHARED_LIBS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000918LIBTOOL_DEPS
cristy73bd4a52010-10-05 11:24:23 +0000919CXXCPP
920OTOOL64
921OTOOL
922LIPO
923NMEDIT
924DSYMUTIL
cristyda16f162011-02-19 23:52:17 +0000925MANIFEST_TOOL
cristy73bd4a52010-10-05 11:24:23 +0000926RANLIB
cristy73bd4a52010-10-05 11:24:23 +0000927NM
928ac_ct_DUMPBIN
929DUMPBIN
930LIBTOOL
931OBJDUMP
932DLLTOOL
933AS
cristy3ed852e2009-09-05 21:47:34 +0000934LFS_CPPFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000935CL_LIBS
cristy736173a2009-09-20 21:18:22 +0000936CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000937OPENMP_CFLAGS
cristy1ae5c992013-07-30 14:55:07 +0000938THREAD_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000939PTHREAD_CFLAGS
940PTHREAD_LIBS
941PTHREAD_CC
942ax_pthread_config
cristy2ec87cc2013-02-18 17:46:50 +0000943pkgconfigdir
cristy670aa3c2011-11-03 00:54:00 +0000944SHAREARCH_DIR
945INCLUDEARCH_DIR
cristy3ed852e2009-09-05 21:47:34 +0000946WinPathScript
cristy73bd4a52010-10-05 11:24:23 +0000947USING_CL_FALSE
948USING_CL_TRUE
949CYGWIN_BUILD_FALSE
950CYGWIN_BUILD_TRUE
951WIN32_NATIVE_BUILD_FALSE
952WIN32_NATIVE_BUILD_TRUE
953WINGDI32_DELEGATE_FALSE
954WINGDI32_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000955GDI32_LIBS
cristy9b86f202012-11-28 21:55:35 +0000956HAVE_LD_VERSION_SCRIPT_FALSE
957HAVE_LD_VERSION_SCRIPT_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000958PKG_CONFIG
cristya0459972013-11-03 18:09:35 +0000959PRTDIAG
cristy3ed852e2009-09-05 21:47:34 +0000960LN_S
cristy3ed852e2009-09-05 21:47:34 +0000961LD
cristy73bd4a52010-10-05 11:24:23 +0000962FGREP
963SED
964am__fastdepCXX_FALSE
965am__fastdepCXX_TRUE
966CXXDEPMODE
cristy95646052009-11-28 23:05:30 +0000967ac_ct_CXX
968CXXFLAGS
969CXX
cristy9e007fe2015-01-03 16:05:07 +0000970ac_ct_AR
971AR
cristya0b81c32010-01-22 02:54:33 +0000972EGREP
973GREP
974CPP
cristy73bd4a52010-10-05 11:24:23 +0000975am__fastdepCC_FALSE
976am__fastdepCC_TRUE
977CCDEPMODE
cristy7247bba2012-02-05 16:37:27 +0000978am__nodep
cristy73bd4a52010-10-05 11:24:23 +0000979AMDEPBACKSLASH
980AMDEP_FALSE
981AMDEP_TRUE
982am__quote
983am__include
984DEPDIR
cristy3ed852e2009-09-05 21:47:34 +0000985OBJEXT
986EXEEXT
987ac_ct_CC
988CPPFLAGS
989LDFLAGS
990CFLAGS
991CC
992DIRSEP
993MAGICK_FILTER_MODULE_PATH
994MAGICK_CONFIGURE_BUILD_PATH
995MAGICK_CONFIGURE_SRC_PATH
996MAGICK_CODER_MODULE_PATH
997MAN_DIR
998INFO_DIR
999PERSISTINCLUDE_DIR
1000INCLUDE_DIR
1001LIB_DIR
1002LOCALSTATE_DIR
1003SHAREDSTATE_DIR
1004SYSCONF_DIR
cristyd55889c2011-03-27 00:50:24 +00001005DOC_DIR
cristy3ed852e2009-09-05 21:47:34 +00001006DATA_DIR
1007LIBEXEC_DIR
1008SBIN_DIR
1009BIN_DIR
1010EXEC_PREFIX_DIR
1011PREFIX_DIR
1012CONFIG_STATUS_DEPENDENCIES
cristy5ed9c6e2013-07-14 21:20:31 +00001013MAGICKPP_LIB_VERSION_TEXT
1014MAGICKPP_LIB_VERSION
cristy3ed852e2009-09-05 21:47:34 +00001015MAGICK_LIB_VERSION_NUMBER
1016MAGICK_LIB_VERSION_TEXT
1017MAGICK_LIB_VERSION
cristy9af1cbf2014-12-28 22:03:09 +00001018PACKAGE_VERSION_ADDENDUM
1019PACKAGE_RELEASE_DATE
1020PACKAGE_LIB_VERSION_NUMBER
1021PACKAGE_LIB_VERSION
1022PACKAGE_CHANGE_DATE
1023PACKAGE_RELEASE
1024PACKAGE_PERL_VERSION
1025MAGICKPP_LIBRARY_VERSION_INFO
1026MAGICKPP_LIBRARY_CURRENT_MIN
1027MAGICKPP_LIBRARY_AGE
1028MAGICKPP_LIBRARY_REVISION
1029MAGICKPP_LIBRARY_CURRENT
1030MAGICK_LIBRARY_VERSION_INFO
1031MAGICK_LIBRARY_CURRENT_MIN
1032MAGICK_LIBRARY_AGE
1033MAGICK_LIBRARY_REVISION
1034MAGICK_LIBRARY_CURRENT
1035MAGICK_SVN_REVISION
1036MAGICK_VERSION
1037MAGICK_PATCHLEVEL_VERSION
1038MAGICK_MICRO_VERSION
1039MAGICK_MINOR_VERSION
1040MAGICK_MAJOR_VERSION
1041MAGICK_TARGET_OS
1042MAGICK_TARGET_VENDOR
1043MAGICK_TARGET_CPU
1044CONFIGURE_ARGS
1045DISTCHECK_CONFIG_FLAGS
cristy73bd4a52010-10-05 11:24:23 +00001046AM_BACKSLASH
1047AM_DEFAULT_VERBOSITY
cristyc3fb77b2012-02-06 01:49:41 +00001048AM_DEFAULT_V
1049AM_V
cristy73bd4a52010-10-05 11:24:23 +00001050am__untar
1051am__tar
1052AMTAR
1053am__leading_dot
1054SET_MAKE
1055AWK
1056mkdir_p
1057MKDIR_P
1058INSTALL_STRIP_PROGRAM
1059STRIP
1060install_sh
1061MAKEINFO
1062AUTOHEADER
1063AUTOMAKE
1064AUTOCONF
1065ACLOCAL
1066VERSION
1067PACKAGE
1068CYGPATH_W
1069am__isrc
1070INSTALL_DATA
1071INSTALL_SCRIPT
1072INSTALL_PROGRAM
cristy3ed852e2009-09-05 21:47:34 +00001073target_os
1074target_vendor
1075target_cpu
1076target
1077host_os
1078host_vendor
1079host_cpu
1080host
1081build_os
1082build_vendor
1083build_cpu
1084build
cristy3ed852e2009-09-05 21:47:34 +00001085target_alias
1086host_alias
1087build_alias
1088LIBS
1089ECHO_T
1090ECHO_N
1091ECHO_C
1092DEFS
1093mandir
1094localedir
1095libdir
1096psdir
1097pdfdir
1098dvidir
1099htmldir
1100infodir
1101docdir
1102oldincludedir
1103includedir
1104localstatedir
1105sharedstatedir
1106sysconfdir
1107datadir
1108datarootdir
1109libexecdir
1110sbindir
1111bindir
1112program_transform_name
1113prefix
1114exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001115PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001116PACKAGE_BUGREPORT
1117PACKAGE_STRING
1118PACKAGE_VERSION
1119PACKAGE_TARNAME
1120PACKAGE_NAME
1121PATH_SEPARATOR
1122SHELL'
1123ac_subst_files=''
1124ac_user_opts='
1125enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001126enable_silent_rules
cristy187791c2015-05-03 22:17:00 +00001127enable_reproducible_build
cristy73bd4a52010-10-05 11:24:23 +00001128enable_dependency_tracking
1129with_gnu_ld
1130with_dmalloc
cristya0459972013-11-03 18:09:35 +00001131with_gcc_arch
cristy9b86f202012-11-28 21:55:35 +00001132enable_ld_version_script
cristy3ed852e2009-09-05 21:47:34 +00001133enable_bounds_checking
1134enable_osx_universal_binary
cristy670aa3c2011-11-03 00:54:00 +00001135with_includearch_dir
1136with_sharearch_dir
cristy2ec87cc2013-02-18 17:46:50 +00001137with_pkgconfigdir
cristy3ed852e2009-09-05 21:47:34 +00001138with_threads
1139enable_openmp
cristy73bd4a52010-10-05 11:24:23 +00001140enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001141enable_largefile
cristy73bd4a52010-10-05 11:24:23 +00001142enable_shared
1143enable_static
1144with_pic
1145enable_fast_install
cristyda16f162011-02-19 23:52:17 +00001146with_sysroot
cristy73bd4a52010-10-05 11:24:23 +00001147enable_libtool_lock
cristy3ed852e2009-09-05 21:47:34 +00001148with_modules
1149enable_delegate_build
1150enable_deprecated
1151enable_installed
1152enable_cipher
cristy6e3607c2011-09-13 13:59:17 +00001153enable_zero_configuration
cristy3ed852e2009-09-05 21:47:34 +00001154enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001155enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001156enable_maintainer_mode
cristy944e51f2013-04-16 18:45:02 +00001157enable_hugepages
cristy3ed852e2009-09-05 21:47:34 +00001158enable_ccmalloc
1159enable_efence
1160enable_prof
1161enable_gprof
1162enable_gcov
1163with_method_prefix
cristy71d8c202012-03-20 17:05:01 +00001164enable_legacy_support
cristy3ed852e2009-09-05 21:47:34 +00001165with_quantum_depth
1166with_cache
1167with_frozenpaths
1168with_magick_plus_plus
cristy3a75f062012-09-08 23:29:40 +00001169with_package_release_name
cristy3ed852e2009-09-05 21:47:34 +00001170with_perl
1171with_perl_options
cristy3b0097d2014-11-04 15:34:47 +00001172with_jemalloc
cristy3ed852e2009-09-05 21:47:34 +00001173with_umem
1174with_libstdc
1175with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001176with_x
cristy3ed852e2009-09-05 21:47:34 +00001177with_zlib
cristy5a3dc992014-12-05 19:50:04 +00001178with_apple_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001179with_autotrace
1180with_dps
cristy430a7312010-01-21 20:44:04 +00001181with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001182with_fftw
1183with_fpx
cristy853d9902014-08-21 18:50:43 +00001184with_djvu
cristy3ed852e2009-09-05 21:47:34 +00001185with_fontconfig
1186with_freetype
1187with_gslib
1188with_fontpath
1189with_gs_font_dir
1190with_gvc
1191with_jbig
1192with_jpeg
cristy3ed852e2009-09-05 21:47:34 +00001193with_lcms
cristy71203402010-06-18 13:12:03 +00001194with_lcms2
cristy99db3872014-01-01 15:11:34 +00001195with_openjp2
cristy3ed852e2009-09-05 21:47:34 +00001196with_lqr
cristyfbb0ef02010-12-19 02:32:11 +00001197with_lzma
cristy3ed852e2009-09-05 21:47:34 +00001198with_openexr
cristy41cbe8a2011-10-27 01:35:18 +00001199with_pango
cristy3ed852e2009-09-05 21:47:34 +00001200with_png
1201with_rsvg
1202with_tiff
cristyb1860752011-03-14 00:27:46 +00001203with_webp
cristy3ed852e2009-09-05 21:47:34 +00001204with_windows_font_dir
1205with_wmf
1206with_xml
cristydd17feb2014-03-05 02:06:32 +00001207enable_docs
cristy3ed852e2009-09-05 21:47:34 +00001208'
1209 ac_precious_vars='build_alias
1210host_alias
1211target_alias
1212CC
1213CFLAGS
1214LDFLAGS
1215LIBS
1216CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001217CPP
cristy3ed852e2009-09-05 21:47:34 +00001218CXX
1219CXXFLAGS
1220CCC
cristy73bd4a52010-10-05 11:24:23 +00001221PKG_CONFIG
1222CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001223XMKMF
cristy73bd4a52010-10-05 11:24:23 +00001224AUTOTRACE_CFLAGS
1225AUTOTRACE_LIBS
1226FONTCONFIG_CFLAGS
1227FONTCONFIG_LIBS
cristy03f187e2013-01-24 00:22:19 +00001228FREETYPE_CFLAGS
1229FREETYPE_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001230GVC_CFLAGS
1231GVC_LIBS
cristy99db3872014-01-01 15:11:34 +00001232LIBOPENJP2_CFLAGS
1233LIBOPENJP2_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001234LQR_CFLAGS
1235LQR_LIBS
cristyb94e5002011-11-14 13:20:10 +00001236LZMA_CFLAGS
1237LZMA_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001238OPENEXR_CFLAGS
1239OPENEXR_LIBS
cristy41cbe8a2011-10-27 01:35:18 +00001240PANGO_CFLAGS
1241PANGO_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001242RSVG_CFLAGS
1243RSVG_LIBS
1244CAIRO_SVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +00001245CAIRO_SVG_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001246
1247
1248# Initialize some variables set by options.
1249ac_init_help=
1250ac_init_version=false
1251ac_unrecognized_opts=
1252ac_unrecognized_sep=
1253# The variables have the same names as the options, with
1254# dashes changed to underlines.
1255cache_file=/dev/null
1256exec_prefix=NONE
1257no_create=
1258no_recursion=
1259prefix=NONE
1260program_prefix=NONE
1261program_suffix=NONE
1262program_transform_name=s,x,x,
1263silent=
1264site=
1265srcdir=
1266verbose=
1267x_includes=NONE
1268x_libraries=NONE
1269
1270# Installation directory options.
1271# These are left unexpanded so users can "make install exec_prefix=/foo"
1272# and all the variables that are supposed to be based on exec_prefix
1273# by default will actually change.
1274# Use braces instead of parens because sh, perl, etc. also accept them.
1275# (The list follows the same order as the GNU Coding Standards.)
1276bindir='${exec_prefix}/bin'
1277sbindir='${exec_prefix}/sbin'
1278libexecdir='${exec_prefix}/libexec'
1279datarootdir='${prefix}/share'
1280datadir='${datarootdir}'
1281sysconfdir='${prefix}/etc'
1282sharedstatedir='${prefix}/com'
1283localstatedir='${prefix}/var'
1284includedir='${prefix}/include'
1285oldincludedir='/usr/include'
1286docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1287infodir='${datarootdir}/info'
1288htmldir='${docdir}'
1289dvidir='${docdir}'
1290pdfdir='${docdir}'
1291psdir='${docdir}'
1292libdir='${exec_prefix}/lib'
1293localedir='${datarootdir}/locale'
1294mandir='${datarootdir}/man'
1295
1296ac_prev=
1297ac_dashdash=
1298for ac_option
1299do
1300 # If the previous option needs an argument, assign it.
1301 if test -n "$ac_prev"; then
1302 eval $ac_prev=\$ac_option
1303 ac_prev=
1304 continue
1305 fi
1306
1307 case $ac_option in
cristyda16f162011-02-19 23:52:17 +00001308 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1309 *=) ac_optarg= ;;
1310 *) ac_optarg=yes ;;
cristy3ed852e2009-09-05 21:47:34 +00001311 esac
1312
1313 # Accept the important Cygnus configure options, so we can diagnose typos.
1314
1315 case $ac_dashdash$ac_option in
1316 --)
1317 ac_dashdash=yes ;;
1318
1319 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1320 ac_prev=bindir ;;
1321 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1322 bindir=$ac_optarg ;;
1323
1324 -build | --build | --buil | --bui | --bu)
1325 ac_prev=build_alias ;;
1326 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1327 build_alias=$ac_optarg ;;
1328
1329 -cache-file | --cache-file | --cache-fil | --cache-fi \
1330 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1331 ac_prev=cache_file ;;
1332 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1333 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1334 cache_file=$ac_optarg ;;
1335
1336 --config-cache | -C)
1337 cache_file=config.cache ;;
1338
1339 -datadir | --datadir | --datadi | --datad)
1340 ac_prev=datadir ;;
1341 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1342 datadir=$ac_optarg ;;
1343
1344 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1345 | --dataroo | --dataro | --datar)
1346 ac_prev=datarootdir ;;
1347 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1348 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1349 datarootdir=$ac_optarg ;;
1350
1351 -disable-* | --disable-*)
1352 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1353 # Reject names that are not valid shell variable names.
1354 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001355 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001356 ac_useropt_orig=$ac_useropt
1357 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1358 case $ac_user_opts in
1359 *"
1360"enable_$ac_useropt"
1361"*) ;;
1362 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1363 ac_unrecognized_sep=', ';;
1364 esac
1365 eval enable_$ac_useropt=no ;;
1366
1367 -docdir | --docdir | --docdi | --doc | --do)
1368 ac_prev=docdir ;;
1369 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1370 docdir=$ac_optarg ;;
1371
1372 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1373 ac_prev=dvidir ;;
1374 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1375 dvidir=$ac_optarg ;;
1376
1377 -enable-* | --enable-*)
1378 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1379 # Reject names that are not valid shell variable names.
1380 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001381 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001382 ac_useropt_orig=$ac_useropt
1383 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1384 case $ac_user_opts in
1385 *"
1386"enable_$ac_useropt"
1387"*) ;;
1388 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1389 ac_unrecognized_sep=', ';;
1390 esac
1391 eval enable_$ac_useropt=\$ac_optarg ;;
1392
1393 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1394 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1395 | --exec | --exe | --ex)
1396 ac_prev=exec_prefix ;;
1397 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1398 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1399 | --exec=* | --exe=* | --ex=*)
1400 exec_prefix=$ac_optarg ;;
1401
1402 -gas | --gas | --ga | --g)
1403 # Obsolete; use --with-gas.
1404 with_gas=yes ;;
1405
1406 -help | --help | --hel | --he | -h)
1407 ac_init_help=long ;;
1408 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1409 ac_init_help=recursive ;;
1410 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1411 ac_init_help=short ;;
1412
1413 -host | --host | --hos | --ho)
1414 ac_prev=host_alias ;;
1415 -host=* | --host=* | --hos=* | --ho=*)
1416 host_alias=$ac_optarg ;;
1417
1418 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1419 ac_prev=htmldir ;;
1420 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1421 | --ht=*)
1422 htmldir=$ac_optarg ;;
1423
1424 -includedir | --includedir | --includedi | --included | --include \
1425 | --includ | --inclu | --incl | --inc)
1426 ac_prev=includedir ;;
1427 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1428 | --includ=* | --inclu=* | --incl=* | --inc=*)
1429 includedir=$ac_optarg ;;
1430
1431 -infodir | --infodir | --infodi | --infod | --info | --inf)
1432 ac_prev=infodir ;;
1433 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1434 infodir=$ac_optarg ;;
1435
1436 -libdir | --libdir | --libdi | --libd)
1437 ac_prev=libdir ;;
1438 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1439 libdir=$ac_optarg ;;
1440
1441 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1442 | --libexe | --libex | --libe)
1443 ac_prev=libexecdir ;;
1444 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1445 | --libexe=* | --libex=* | --libe=*)
1446 libexecdir=$ac_optarg ;;
1447
1448 -localedir | --localedir | --localedi | --localed | --locale)
1449 ac_prev=localedir ;;
1450 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1451 localedir=$ac_optarg ;;
1452
1453 -localstatedir | --localstatedir | --localstatedi | --localstated \
1454 | --localstate | --localstat | --localsta | --localst | --locals)
1455 ac_prev=localstatedir ;;
1456 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1457 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1458 localstatedir=$ac_optarg ;;
1459
1460 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1461 ac_prev=mandir ;;
1462 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1463 mandir=$ac_optarg ;;
1464
1465 -nfp | --nfp | --nf)
1466 # Obsolete; use --without-fp.
1467 with_fp=no ;;
1468
1469 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1470 | --no-cr | --no-c | -n)
1471 no_create=yes ;;
1472
1473 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1474 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1475 no_recursion=yes ;;
1476
1477 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1478 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1479 | --oldin | --oldi | --old | --ol | --o)
1480 ac_prev=oldincludedir ;;
1481 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1482 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1483 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1484 oldincludedir=$ac_optarg ;;
1485
1486 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1487 ac_prev=prefix ;;
1488 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1489 prefix=$ac_optarg ;;
1490
1491 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1492 | --program-pre | --program-pr | --program-p)
1493 ac_prev=program_prefix ;;
1494 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1495 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1496 program_prefix=$ac_optarg ;;
1497
1498 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1499 | --program-suf | --program-su | --program-s)
1500 ac_prev=program_suffix ;;
1501 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1502 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1503 program_suffix=$ac_optarg ;;
1504
1505 -program-transform-name | --program-transform-name \
1506 | --program-transform-nam | --program-transform-na \
1507 | --program-transform-n | --program-transform- \
1508 | --program-transform | --program-transfor \
1509 | --program-transfo | --program-transf \
1510 | --program-trans | --program-tran \
1511 | --progr-tra | --program-tr | --program-t)
1512 ac_prev=program_transform_name ;;
1513 -program-transform-name=* | --program-transform-name=* \
1514 | --program-transform-nam=* | --program-transform-na=* \
1515 | --program-transform-n=* | --program-transform-=* \
1516 | --program-transform=* | --program-transfor=* \
1517 | --program-transfo=* | --program-transf=* \
1518 | --program-trans=* | --program-tran=* \
1519 | --progr-tra=* | --program-tr=* | --program-t=*)
1520 program_transform_name=$ac_optarg ;;
1521
1522 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1523 ac_prev=pdfdir ;;
1524 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1525 pdfdir=$ac_optarg ;;
1526
1527 -psdir | --psdir | --psdi | --psd | --ps)
1528 ac_prev=psdir ;;
1529 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1530 psdir=$ac_optarg ;;
1531
1532 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1533 | -silent | --silent | --silen | --sile | --sil)
1534 silent=yes ;;
1535
1536 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1537 ac_prev=sbindir ;;
1538 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1539 | --sbi=* | --sb=*)
1540 sbindir=$ac_optarg ;;
1541
1542 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1543 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1544 | --sharedst | --shareds | --shared | --share | --shar \
1545 | --sha | --sh)
1546 ac_prev=sharedstatedir ;;
1547 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1548 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1549 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1550 | --sha=* | --sh=*)
1551 sharedstatedir=$ac_optarg ;;
1552
1553 -site | --site | --sit)
1554 ac_prev=site ;;
1555 -site=* | --site=* | --sit=*)
1556 site=$ac_optarg ;;
1557
1558 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1559 ac_prev=srcdir ;;
1560 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1561 srcdir=$ac_optarg ;;
1562
1563 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1564 | --syscon | --sysco | --sysc | --sys | --sy)
1565 ac_prev=sysconfdir ;;
1566 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1567 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1568 sysconfdir=$ac_optarg ;;
1569
1570 -target | --target | --targe | --targ | --tar | --ta | --t)
1571 ac_prev=target_alias ;;
1572 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1573 target_alias=$ac_optarg ;;
1574
1575 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1576 verbose=yes ;;
1577
1578 -version | --version | --versio | --versi | --vers | -V)
1579 ac_init_version=: ;;
1580
1581 -with-* | --with-*)
1582 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1583 # Reject names that are not valid shell variable names.
1584 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001585 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001586 ac_useropt_orig=$ac_useropt
1587 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1588 case $ac_user_opts in
1589 *"
1590"with_$ac_useropt"
1591"*) ;;
1592 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1593 ac_unrecognized_sep=', ';;
1594 esac
1595 eval with_$ac_useropt=\$ac_optarg ;;
1596
1597 -without-* | --without-*)
1598 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1599 # Reject names that are not valid shell variable names.
1600 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001601 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001602 ac_useropt_orig=$ac_useropt
1603 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1604 case $ac_user_opts in
1605 *"
1606"with_$ac_useropt"
1607"*) ;;
1608 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1609 ac_unrecognized_sep=', ';;
1610 esac
1611 eval with_$ac_useropt=no ;;
1612
1613 --x)
1614 # Obsolete; use --with-x.
1615 with_x=yes ;;
1616
1617 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1618 | --x-incl | --x-inc | --x-in | --x-i)
1619 ac_prev=x_includes ;;
1620 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1621 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1622 x_includes=$ac_optarg ;;
1623
1624 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1625 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1626 ac_prev=x_libraries ;;
1627 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1628 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1629 x_libraries=$ac_optarg ;;
1630
cristy98dddb52010-11-04 00:30:15 +00001631 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1632Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001633 ;;
1634
1635 *=*)
1636 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1637 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001638 case $ac_envvar in #(
1639 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001640 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001641 esac
cristy3ed852e2009-09-05 21:47:34 +00001642 eval $ac_envvar=\$ac_optarg
1643 export $ac_envvar ;;
1644
1645 *)
1646 # FIXME: should be removed in autoconf 3.0.
1647 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1648 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1649 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cristyda16f162011-02-19 23:52:17 +00001650 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cristy3ed852e2009-09-05 21:47:34 +00001651 ;;
1652
1653 esac
1654done
1655
1656if test -n "$ac_prev"; then
1657 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001658 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001659fi
1660
1661if test -n "$ac_unrecognized_opts"; then
1662 case $enable_option_checking in
1663 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001664 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001665 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1666 esac
1667fi
1668
1669# Check all directory arguments for consistency.
1670for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1671 datadir sysconfdir sharedstatedir localstatedir includedir \
1672 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1673 libdir localedir mandir
1674do
1675 eval ac_val=\$$ac_var
1676 # Remove trailing slashes.
1677 case $ac_val in
1678 */ )
1679 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1680 eval $ac_var=\$ac_val;;
1681 esac
1682 # Be sure to have absolute directory names.
1683 case $ac_val in
1684 [\\/$]* | ?:[\\/]* ) continue;;
1685 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1686 esac
cristy98dddb52010-11-04 00:30:15 +00001687 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001688done
1689
1690# There might be people who depend on the old broken behavior: `$host'
1691# used to hold the argument of --host etc.
1692# FIXME: To remove some day.
1693build=$build_alias
1694host=$host_alias
1695target=$target_alias
1696
1697# FIXME: To remove some day.
1698if test "x$host_alias" != x; then
1699 if test "x$build_alias" = x; then
1700 cross_compiling=maybe
cristy3ed852e2009-09-05 21:47:34 +00001701 elif test "x$build_alias" != "x$host_alias"; then
1702 cross_compiling=yes
1703 fi
1704fi
1705
1706ac_tool_prefix=
1707test -n "$host_alias" && ac_tool_prefix=$host_alias-
1708
1709test "$silent" = yes && exec 6>/dev/null
1710
1711
1712ac_pwd=`pwd` && test -n "$ac_pwd" &&
1713ac_ls_di=`ls -di .` &&
1714ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001715 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001716test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001717 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001718
1719
1720# Find the source files, if location was not specified.
1721if test -z "$srcdir"; then
1722 ac_srcdir_defaulted=yes
1723 # Try the directory containing this script, then the parent directory.
1724 ac_confdir=`$as_dirname -- "$as_myself" ||
1725$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1726 X"$as_myself" : 'X\(//\)[^/]' \| \
1727 X"$as_myself" : 'X\(//\)$' \| \
1728 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1729$as_echo X"$as_myself" |
1730 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1731 s//\1/
1732 q
1733 }
1734 /^X\(\/\/\)[^/].*/{
1735 s//\1/
1736 q
1737 }
1738 /^X\(\/\/\)$/{
1739 s//\1/
1740 q
1741 }
1742 /^X\(\/\).*/{
1743 s//\1/
1744 q
1745 }
1746 s/.*/./; q'`
1747 srcdir=$ac_confdir
1748 if test ! -r "$srcdir/$ac_unique_file"; then
1749 srcdir=..
1750 fi
1751else
1752 ac_srcdir_defaulted=no
1753fi
1754if test ! -r "$srcdir/$ac_unique_file"; then
1755 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001756 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001757fi
1758ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1759ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001760 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001761 pwd)`
1762# When building in place, set srcdir=.
1763if test "$ac_abs_confdir" = "$ac_pwd"; then
1764 srcdir=.
1765fi
1766# Remove unnecessary trailing slashes from srcdir.
1767# Double slashes in file names in object file debugging info
1768# mess up M-x gdb in Emacs.
1769case $srcdir in
1770*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1771esac
1772for ac_var in $ac_precious_vars; do
1773 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1774 eval ac_env_${ac_var}_value=\$${ac_var}
1775 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1776 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1777done
1778
1779#
1780# Report the --help message.
1781#
1782if test "$ac_init_help" = "long"; then
1783 # Omit some internal or obsolete options to make the list less imposing.
1784 # This message is too long to be a string in the A/UX 3.1 sh.
1785 cat <<_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00001786\`configure' configures ImageMagick 7.0.0-0 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001787
1788Usage: $0 [OPTION]... [VAR=VALUE]...
1789
1790To assign environment variables (e.g., CC, CFLAGS...), specify them as
1791VAR=VALUE. See below for descriptions of some of the useful variables.
1792
1793Defaults for the options are specified in brackets.
1794
1795Configuration:
1796 -h, --help display this help and exit
1797 --help=short display options specific to this package
1798 --help=recursive display the short help of all the included packages
1799 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001800 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001801 --cache-file=FILE cache test results in FILE [disabled]
1802 -C, --config-cache alias for \`--cache-file=config.cache'
1803 -n, --no-create do not create output files
1804 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1805
1806Installation directories:
1807 --prefix=PREFIX install architecture-independent files in PREFIX
1808 [$ac_default_prefix]
1809 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1810 [PREFIX]
1811
1812By default, \`make install' will install all the files in
1813\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1814an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1815for instance \`--prefix=\$HOME'.
1816
1817For better control, use the options below.
1818
1819Fine tuning of the installation directories:
1820 --bindir=DIR user executables [EPREFIX/bin]
1821 --sbindir=DIR system admin executables [EPREFIX/sbin]
1822 --libexecdir=DIR program executables [EPREFIX/libexec]
1823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1826 --libdir=DIR object code libraries [EPREFIX/lib]
1827 --includedir=DIR C header files [PREFIX/include]
1828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1829 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1830 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1831 --infodir=DIR info documentation [DATAROOTDIR/info]
1832 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1833 --mandir=DIR man documentation [DATAROOTDIR/man]
cristy09b53e12011-10-14 12:47:22 +00001834 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
cristy3ed852e2009-09-05 21:47:34 +00001835 --htmldir=DIR html documentation [DOCDIR]
1836 --dvidir=DIR dvi documentation [DOCDIR]
1837 --pdfdir=DIR pdf documentation [DOCDIR]
1838 --psdir=DIR ps documentation [DOCDIR]
1839_ACEOF
1840
1841 cat <<\_ACEOF
1842
cristy73bd4a52010-10-05 11:24:23 +00001843Program names:
1844 --program-prefix=PREFIX prepend PREFIX to installed program names
1845 --program-suffix=SUFFIX append SUFFIX to installed program names
1846 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1847
cristy3ed852e2009-09-05 21:47:34 +00001848X features:
1849 --x-includes=DIR X include files are in DIR
1850 --x-libraries=DIR X library files are in DIR
1851
1852System types:
1853 --build=BUILD configure for building on BUILD [guessed]
1854 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1855 --target=TARGET configure for building compilers for TARGET [HOST]
1856_ACEOF
1857fi
1858
1859if test -n "$ac_init_help"; then
1860 case $ac_init_help in
cristy29eb34e2011-10-16 00:46:08 +00001861 short | recursive ) echo "Configuration of ImageMagick 7.0.0-0:";;
cristy3ed852e2009-09-05 21:47:34 +00001862 esac
1863 cat <<\_ACEOF
1864
1865Optional Features:
1866 --disable-option-checking ignore unrecognized --enable/--with options
1867 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1868 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristyc0890a62012-07-19 00:18:20 +00001869 --enable-silent-rules less verbose build output (undo: "make V=1")
1870 --disable-silent-rules verbose build output (undo: "make V=0")
cristy187791c2015-05-03 22:17:00 +00001871 --enable-reproducible-build
1872 enable reproducible build
cristyc0890a62012-07-19 00:18:20 +00001873 --enable-dependency-tracking
1874 do not reject slow dependency extractors
1875 --disable-dependency-tracking
1876 speeds up one-time build
cristy9b86f202012-11-28 21:55:35 +00001877 --enable-ld-version-script
1878 enable linker version script (default is enabled
1879 when possible)
cristya3824692012-03-30 17:22:07 +00001880 --enable-bounds-checking
1881 enable run-time bounds-checking
cristy3ed852e2009-09-05 21:47:34 +00001882 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001883 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001884 --disable-openmp do not use OpenMP
cristy48794642012-09-02 15:19:08 +00001885 --enable-opencl enable OpenCL support
cristy3ed852e2009-09-05 21:47:34 +00001886 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001887 --enable-shared[=PKGS] build shared libraries [default=yes]
1888 --enable-static[=PKGS] build static libraries [default=yes]
1889 --enable-fast-install[=PKGS]
1890 optimize for fast installation [default=yes]
1891 --disable-libtool-lock avoid locking (might break parallel builds)
cristy3ed852e2009-09-05 21:47:34 +00001892 --enable-delegate-build look for delegate libraries in build directory
1893 --disable-deprecated exclude deprecated methods in MagickCore and
cristy3a75f062012-09-08 23:29:40 +00001894 MagickWand APIs
cristy3ed852e2009-09-05 21:47:34 +00001895 --disable-installed Formally install ImageMagick under PREFIX
1896 --disable-cipher disable enciphering and deciphering image pixels
cristy6e3607c2011-09-13 13:59:17 +00001897 --enable-zero-configuration
1898 enable self-contained, embeddable,
cristy3ed852e2009-09-05 21:47:34 +00001899 zero-configuration ImageMagick
cristyf314dbd2012-11-15 13:35:28 +00001900 --enable-hdri accurately represent the wide range of intensity
cristy3ed852e2009-09-05 21:47:34 +00001901 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001902 --disable-assert disable assert() statements in build
cristyc0890a62012-07-19 00:18:20 +00001903 --enable-maintainer-mode
1904 enable make rules and dependencies not useful (and
1905 sometimes confusing) to the casual installer
cristy944e51f2013-04-16 18:45:02 +00001906 --enable-hugepages enable 'huge pages' support
cristy3ed852e2009-09-05 21:47:34 +00001907 --enable-ccmalloc enable 'ccmalloc' memory debug support
1908 --enable-efence enable 'efence' memory debug support
1909 --enable-prof enable 'prof' profiling support
1910 --enable-gprof enable 'gprof' profiling support
1911 --enable-gcov enable 'gcov' profiling support
cristy71d8c202012-03-20 17:05:01 +00001912 --enable-legacy-support install legacy command-line utilities (default disabled)
cristya0b81c32010-01-22 02:54:33 +00001913 --disable-assert turn off assertions
cristydd17feb2014-03-05 02:06:32 +00001914 --disable-docs disable building of documentation
cristy3ed852e2009-09-05 21:47:34 +00001915
1916Optional Packages:
1917 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1918 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001919 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
cristy7247bba2012-02-05 16:37:27 +00001920 --with-dmalloc use dmalloc, as in http://www.dmalloc.com
cristya0459972013-11-03 18:09:35 +00001921 --with-gcc-arch=<arch> use architecture <arch> for gcc -march/-mtune,
1922 instead of guessing
cristy670aa3c2011-11-03 00:54:00 +00001923 --includearch-dir=DIR ARCH specific include directory
1924 --sharearch-dir=DIR ARCH specific config directory
cristy2ec87cc2013-02-18 17:46:50 +00001925 --with-pkgconfigdir=DIR Path to the pkgconfig directory [LIBDIR/pkgconfig]
cristy3ed852e2009-09-05 21:47:34 +00001926 --without-threads disable threads support
cristy99bd5232011-12-07 14:38:20 +00001927 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
cristy73bd4a52010-10-05 11:24:23 +00001928 both]
cristyda16f162011-02-19 23:52:17 +00001929 --with-sysroot=DIR Search for dependent libraries within DIR
1930 (or the compiler's sysroot if not specified).
cristy3ed852e2009-09-05 21:47:34 +00001931 --with-modules enable building dynamically loadable modules
1932 --with-method-prefix=PREFIX
1933 prefix MagickCore API methods
1934 --with-quantum-depth=DEPTH
1935 number of bits in a pixel quantum (default 16)
1936 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1937 memory)
1938 --with-frozenpaths freeze delegate paths
1939 --without-magick-plus-plus
1940 disable build/install of Magick++
cristy3a75f062012-09-08 23:29:40 +00001941 --with-package-release-name=NAME
1942 encode this name into the shared library
cristy3ed852e2009-09-05 21:47:34 +00001943 --with-perl enable build/install of PerlMagick
1944 --with-perl-options=OPTIONS
1945 options to pass on command-line when generating
cristyfc3d0222012-02-07 15:05:57 +00001946 PerlMagick build file
cristy3b0097d2014-11-04 15:34:47 +00001947 --with-jemalloc enable jemalloc memory allocation library support
cristy3ed852e2009-09-05 21:47:34 +00001948 --with-umem enable umem memory allocation library support
1949 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1950 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001951 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001952 --without-zlib disable ZLIB support
cristy5a3dc992014-12-05 19:50:04 +00001953 --with-apple-font-dir=DIR
1954 Apple font directory
cristy3ed852e2009-09-05 21:47:34 +00001955 --with-autotrace enable autotrace support
1956 --without-dps disable Display Postscript support
cristy430a7312010-01-21 20:44:04 +00001957 --with-dejavu-font-dir=DIR
1958 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001959 --without-fftw disable FFTW support
1960 --without-fpx disable FlashPIX support
cristy853d9902014-08-21 18:50:43 +00001961 --without-djvu disable DjVu support
cristy3ed852e2009-09-05 21:47:34 +00001962 --without-fontconfig disable fontconfig support
cristy81beccd2011-10-03 18:17:24 +00001963 --without-freetype disable Freetype support
cristybdabdd62013-03-04 17:43:36 +00001964 --with-gslib enable Ghostscript library support
cristy3ed852e2009-09-05 21:47:34 +00001965 --with-fontpath=DIR prepend to default font search path
1966 --with-gs-font-dir=DIR Ghostscript font directory
cristybdabdd62013-03-04 17:43:36 +00001967 --with-gvc enable GVC support
cristy3ed852e2009-09-05 21:47:34 +00001968 --without-jbig disable JBIG support
1969 --without-jpeg disable JPEG support
cristy71203402010-06-18 13:12:03 +00001970 --without-lcms disable lcms (v1.1X) support
1971 --without-lcms2 disable lcms (v2.X) support
cristy99db3872014-01-01 15:11:34 +00001972 --without-openjp2 disable OpenJP2 support
cristyf0c78232010-03-15 12:53:40 +00001973 --without-lqr disable Liquid Rescale support
cristyfbb0ef02010-12-19 02:32:11 +00001974 --without-lzma disable LZMA support
cristy3ed852e2009-09-05 21:47:34 +00001975 --without-openexr disable OpenEXR support
cristy41cbe8a2011-10-27 01:35:18 +00001976 --without-pango disable PANGO support
cristy3ed852e2009-09-05 21:47:34 +00001977 --without-png disable PNG support
cristy51633f52013-04-23 14:03:19 +00001978 --with-rsvg enable RSVG support
cristy3ed852e2009-09-05 21:47:34 +00001979 --without-tiff disable TIFF support
cristyb1860752011-03-14 00:27:46 +00001980 --without-webp disable WEBP support
cristy3ed852e2009-09-05 21:47:34 +00001981 --with-windows-font-dir=DIR
cristy5a3dc992014-12-05 19:50:04 +00001982 Windows font directory
cristyde3fc5d2012-02-12 15:40:47 +00001983 --with-wmf enable WMF support
cristy3ed852e2009-09-05 21:47:34 +00001984 --without-xml disable XML support
1985
1986Some influential environment variables:
1987 CC C compiler command
1988 CFLAGS C compiler flags
1989 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1990 nonstandard directory <lib dir>
1991 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001992 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001993 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001994 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001995 CXX C++ compiler command
1996 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00001997 PKG_CONFIG path to pkg-config utility
nicolas6237c462010-10-05 06:11:49 +00001998 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00001999 XMKMF Path to xmkmf, Makefile generator for X Window System
2000 AUTOTRACE_CFLAGS
2001 C compiler flags for AUTOTRACE, overriding pkg-config
2002 AUTOTRACE_LIBS
2003 linker flags for AUTOTRACE, overriding pkg-config
2004 FONTCONFIG_CFLAGS
2005 C compiler flags for FONTCONFIG, overriding pkg-config
2006 FONTCONFIG_LIBS
2007 linker flags for FONTCONFIG, overriding pkg-config
cristy03f187e2013-01-24 00:22:19 +00002008 FREETYPE_CFLAGS
2009 C compiler flags for FREETYPE, overriding pkg-config
2010 FREETYPE_LIBS
2011 linker flags for FREETYPE, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002012 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
2013 GVC_LIBS linker flags for GVC, overriding pkg-config
cristy99db3872014-01-01 15:11:34 +00002014 LIBOPENJP2_CFLAGS
2015 C compiler flags for LIBOPENJP2, overriding pkg-config
2016 LIBOPENJP2_LIBS
2017 linker flags for LIBOPENJP2, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002018 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
2019 LQR_LIBS linker flags for LQR, overriding pkg-config
cristyb94e5002011-11-14 13:20:10 +00002020 LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config
2021 LZMA_LIBS linker flags for LZMA, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002022 OPENEXR_CFLAGS
2023 C compiler flags for OPENEXR, overriding pkg-config
2024 OPENEXR_LIBS
2025 linker flags for OPENEXR, overriding pkg-config
cristy41cbe8a2011-10-27 01:35:18 +00002026 PANGO_CFLAGS
2027 C compiler flags for PANGO, overriding pkg-config
2028 PANGO_LIBS linker flags for PANGO, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002029 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
2030 RSVG_LIBS linker flags for RSVG, overriding pkg-config
2031 CAIRO_SVG_CFLAGS
2032 C compiler flags for CAIRO_SVG, overriding pkg-config
2033 CAIRO_SVG_LIBS
2034 linker flags for CAIRO_SVG, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00002035
2036Use these variables to override the choices made by `configure' or to help
2037it to find libraries and programs with nonstandard names/locations.
2038
2039Report bugs to <http://www.imagemagick.org>.
2040_ACEOF
2041ac_status=$?
2042fi
2043
2044if test "$ac_init_help" = "recursive"; then
2045 # If there are subdirs, report their specific --help.
2046 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2047 test -d "$ac_dir" ||
2048 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2049 continue
2050 ac_builddir=.
2051
2052case "$ac_dir" in
2053.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2054*)
2055 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2056 # A ".." for each directory in $ac_dir_suffix.
2057 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2058 case $ac_top_builddir_sub in
2059 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2060 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2061 esac ;;
2062esac
2063ac_abs_top_builddir=$ac_pwd
2064ac_abs_builddir=$ac_pwd$ac_dir_suffix
2065# for backward compatibility:
2066ac_top_builddir=$ac_top_build_prefix
2067
2068case $srcdir in
2069 .) # We are building in place.
2070 ac_srcdir=.
2071 ac_top_srcdir=$ac_top_builddir_sub
2072 ac_abs_top_srcdir=$ac_pwd ;;
2073 [\\/]* | ?:[\\/]* ) # Absolute name.
2074 ac_srcdir=$srcdir$ac_dir_suffix;
2075 ac_top_srcdir=$srcdir
2076 ac_abs_top_srcdir=$srcdir ;;
2077 *) # Relative name.
2078 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2079 ac_top_srcdir=$ac_top_build_prefix$srcdir
2080 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2081esac
2082ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2083
2084 cd "$ac_dir" || { ac_status=$?; continue; }
2085 # Check for guested configure.
2086 if test -f "$ac_srcdir/configure.gnu"; then
2087 echo &&
2088 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2089 elif test -f "$ac_srcdir/configure"; then
2090 echo &&
2091 $SHELL "$ac_srcdir/configure" --help=recursive
2092 else
2093 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2094 fi || ac_status=$?
2095 cd "$ac_pwd" || { ac_status=$?; break; }
2096 done
2097fi
2098
2099test -n "$ac_init_help" && exit $ac_status
2100if $ac_init_version; then
2101 cat <<\_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00002102ImageMagick configure 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +00002103generated by GNU Autoconf 2.69
cristy3ed852e2009-09-05 21:47:34 +00002104
cristy14fefe52012-05-21 00:59:18 +00002105Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002106This configure script is free software; the Free Software Foundation
2107gives unlimited permission to copy, distribute and modify it.
2108_ACEOF
2109 exit
2110fi
cristy8b350f62009-11-15 23:12:43 +00002111
2112## ------------------------ ##
2113## Autoconf initialization. ##
2114## ------------------------ ##
2115
2116# ac_fn_c_try_compile LINENO
2117# --------------------------
2118# Try to compile conftest.$ac_ext, and return whether this succeeded.
2119ac_fn_c_try_compile ()
2120{
2121 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2122 rm -f conftest.$ac_objext
2123 if { { ac_try="$ac_compile"
2124case "(($ac_try" in
2125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2126 *) ac_try_echo=$ac_try;;
2127esac
2128eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2129$as_echo "$ac_try_echo"; } >&5
2130 (eval "$ac_compile") 2>conftest.err
2131 ac_status=$?
2132 if test -s conftest.err; then
2133 grep -v '^ *+' conftest.err >conftest.er1
2134 cat conftest.er1 >&5
2135 mv -f conftest.er1 conftest.err
2136 fi
2137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2138 test $ac_status = 0; } && {
2139 test -z "$ac_c_werror_flag" ||
2140 test ! -s conftest.err
2141 } && test -s conftest.$ac_objext; then :
2142 ac_retval=0
2143else
2144 $as_echo "$as_me: failed program was:" >&5
2145sed 's/^/| /' conftest.$ac_ext >&5
2146
2147 ac_retval=1
2148fi
cristyda16f162011-02-19 23:52:17 +00002149 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002150 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002151
2152} # ac_fn_c_try_compile
2153
cristy95646052009-11-28 23:05:30 +00002154# ac_fn_c_try_cpp LINENO
2155# ----------------------
2156# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2157ac_fn_c_try_cpp ()
2158{
2159 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2160 if { { ac_try="$ac_cpp conftest.$ac_ext"
2161case "(($ac_try" in
2162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2163 *) ac_try_echo=$ac_try;;
2164esac
2165eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2166$as_echo "$ac_try_echo"; } >&5
2167 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2168 ac_status=$?
2169 if test -s conftest.err; then
2170 grep -v '^ *+' conftest.err >conftest.er1
2171 cat conftest.er1 >&5
2172 mv -f conftest.er1 conftest.err
2173 fi
2174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002175 test $ac_status = 0; } > conftest.i && {
cristy95646052009-11-28 23:05:30 +00002176 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2177 test ! -s conftest.err
2178 }; then :
2179 ac_retval=0
2180else
2181 $as_echo "$as_me: failed program was:" >&5
2182sed 's/^/| /' conftest.$ac_ext >&5
2183
2184 ac_retval=1
2185fi
cristyda16f162011-02-19 23:52:17 +00002186 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy95646052009-11-28 23:05:30 +00002187 as_fn_set_status $ac_retval
2188
2189} # ac_fn_c_try_cpp
2190
cristy8b350f62009-11-15 23:12:43 +00002191# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2192# -------------------------------------------------------
2193# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2194# the include files in INCLUDES and setting the cache variable VAR
2195# accordingly.
2196ac_fn_c_check_header_mongrel ()
2197{
2198 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002199 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2201$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002202if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002203 $as_echo_n "(cached) " >&6
2204fi
2205eval ac_res=\$$3
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2207$as_echo "$ac_res" >&6; }
2208else
2209 # Is the header compilable?
2210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2211$as_echo_n "checking $2 usability... " >&6; }
2212cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2213/* end confdefs.h. */
2214$4
2215#include <$2>
2216_ACEOF
2217if ac_fn_c_try_compile "$LINENO"; then :
2218 ac_header_compiler=yes
2219else
2220 ac_header_compiler=no
2221fi
2222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2224$as_echo "$ac_header_compiler" >&6; }
2225
2226# Is the header present?
2227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2228$as_echo_n "checking $2 presence... " >&6; }
2229cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2230/* end confdefs.h. */
2231#include <$2>
2232_ACEOF
2233if ac_fn_c_try_cpp "$LINENO"; then :
2234 ac_header_preproc=yes
2235else
2236 ac_header_preproc=no
2237fi
cristyda16f162011-02-19 23:52:17 +00002238rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2240$as_echo "$ac_header_preproc" >&6; }
2241
2242# So? What about this header?
2243case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2244 yes:no: )
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2246$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2248$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2249 ;;
2250 no:yes:* )
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2252$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2254$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2256$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2258$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2260$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002261( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002262## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002263## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002264 ) | sed "s/^/$as_me: WARNING: /" >&2
2265 ;;
2266esac
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2268$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002269if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002270 $as_echo_n "(cached) " >&6
2271else
2272 eval "$3=\$ac_header_compiler"
2273fi
2274eval ac_res=\$$3
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2276$as_echo "$ac_res" >&6; }
2277fi
cristyda16f162011-02-19 23:52:17 +00002278 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002279
2280} # ac_fn_c_check_header_mongrel
2281
2282# ac_fn_c_try_run LINENO
2283# ----------------------
2284# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2285# that executables *can* be run.
2286ac_fn_c_try_run ()
2287{
2288 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2289 if { { ac_try="$ac_link"
2290case "(($ac_try" in
2291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2292 *) ac_try_echo=$ac_try;;
2293esac
2294eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2295$as_echo "$ac_try_echo"; } >&5
2296 (eval "$ac_link") 2>&5
2297 ac_status=$?
2298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2299 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2300 { { case "(($ac_try" in
2301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2302 *) ac_try_echo=$ac_try;;
2303esac
2304eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2305$as_echo "$ac_try_echo"; } >&5
2306 (eval "$ac_try") 2>&5
2307 ac_status=$?
2308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2309 test $ac_status = 0; }; }; then :
2310 ac_retval=0
2311else
2312 $as_echo "$as_me: program exited with status $ac_status" >&5
2313 $as_echo "$as_me: failed program was:" >&5
2314sed 's/^/| /' conftest.$ac_ext >&5
2315
2316 ac_retval=$ac_status
2317fi
2318 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002319 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002320 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002321
2322} # ac_fn_c_try_run
2323
2324# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2325# -------------------------------------------------------
2326# Tests whether HEADER exists and can be compiled using the include files in
2327# INCLUDES, setting the cache variable VAR accordingly.
2328ac_fn_c_check_header_compile ()
2329{
2330 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2332$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002333if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002334 $as_echo_n "(cached) " >&6
2335else
2336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2337/* end confdefs.h. */
2338$4
2339#include <$2>
2340_ACEOF
2341if ac_fn_c_try_compile "$LINENO"; then :
2342 eval "$3=yes"
2343else
2344 eval "$3=no"
2345fi
2346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2347fi
2348eval ac_res=\$$3
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2350$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002351 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002352
2353} # ac_fn_c_check_header_compile
2354
cristya0b81c32010-01-22 02:54:33 +00002355# ac_fn_cxx_try_compile LINENO
2356# ----------------------------
2357# Try to compile conftest.$ac_ext, and return whether this succeeded.
2358ac_fn_cxx_try_compile ()
2359{
2360 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2361 rm -f conftest.$ac_objext
2362 if { { ac_try="$ac_compile"
2363case "(($ac_try" in
2364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2365 *) ac_try_echo=$ac_try;;
2366esac
2367eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2368$as_echo "$ac_try_echo"; } >&5
2369 (eval "$ac_compile") 2>conftest.err
2370 ac_status=$?
2371 if test -s conftest.err; then
2372 grep -v '^ *+' conftest.err >conftest.er1
2373 cat conftest.er1 >&5
2374 mv -f conftest.er1 conftest.err
2375 fi
2376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2377 test $ac_status = 0; } && {
2378 test -z "$ac_cxx_werror_flag" ||
2379 test ! -s conftest.err
2380 } && test -s conftest.$ac_objext; then :
2381 ac_retval=0
2382else
2383 $as_echo "$as_me: failed program was:" >&5
2384sed 's/^/| /' conftest.$ac_ext >&5
2385
2386 ac_retval=1
2387fi
cristyda16f162011-02-19 23:52:17 +00002388 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristya0b81c32010-01-22 02:54:33 +00002389 as_fn_set_status $ac_retval
2390
2391} # ac_fn_cxx_try_compile
2392
cristyd95b7a52013-10-23 13:12:53 +00002393# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2394# --------------------------------------------
2395# Tries to find the compile-time value of EXPR in a program that includes
2396# INCLUDES, setting VAR accordingly. Returns whether the value could be
2397# computed
2398ac_fn_c_compute_int ()
2399{
2400 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2401 if test "$cross_compiling" = yes; then
2402 # Depending upon the size, compute the lo and hi bounds.
2403cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2404/* end confdefs.h. */
2405$4
2406int
2407main ()
2408{
2409static int test_array [1 - 2 * !(($2) >= 0)];
2410test_array [0] = 0;
2411return test_array [0];
2412
2413 ;
2414 return 0;
2415}
2416_ACEOF
2417if ac_fn_c_try_compile "$LINENO"; then :
2418 ac_lo=0 ac_mid=0
2419 while :; do
2420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2421/* end confdefs.h. */
2422$4
2423int
2424main ()
2425{
2426static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2427test_array [0] = 0;
2428return test_array [0];
2429
2430 ;
2431 return 0;
2432}
2433_ACEOF
2434if ac_fn_c_try_compile "$LINENO"; then :
2435 ac_hi=$ac_mid; break
2436else
2437 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2438 if test $ac_lo -le $ac_mid; then
2439 ac_lo= ac_hi=
2440 break
2441 fi
2442 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2443fi
2444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2445 done
2446else
2447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2448/* end confdefs.h. */
2449$4
2450int
2451main ()
2452{
2453static int test_array [1 - 2 * !(($2) < 0)];
2454test_array [0] = 0;
2455return test_array [0];
2456
2457 ;
2458 return 0;
2459}
2460_ACEOF
2461if ac_fn_c_try_compile "$LINENO"; then :
2462 ac_hi=-1 ac_mid=-1
2463 while :; do
2464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2465/* end confdefs.h. */
2466$4
2467int
2468main ()
2469{
2470static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2471test_array [0] = 0;
2472return test_array [0];
2473
2474 ;
2475 return 0;
2476}
2477_ACEOF
2478if ac_fn_c_try_compile "$LINENO"; then :
2479 ac_lo=$ac_mid; break
2480else
2481 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2482 if test $ac_mid -le $ac_hi; then
2483 ac_lo= ac_hi=
2484 break
2485 fi
2486 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2487fi
2488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2489 done
2490else
2491 ac_lo= ac_hi=
2492fi
2493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2494fi
2495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2496# Binary search between lo and hi bounds.
2497while test "x$ac_lo" != "x$ac_hi"; do
2498 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2500/* end confdefs.h. */
2501$4
2502int
2503main ()
2504{
2505static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2506test_array [0] = 0;
2507return test_array [0];
2508
2509 ;
2510 return 0;
2511}
2512_ACEOF
2513if ac_fn_c_try_compile "$LINENO"; then :
2514 ac_hi=$ac_mid
2515else
2516 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2517fi
2518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2519done
2520case $ac_lo in #((
2521?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2522'') ac_retval=1 ;;
2523esac
2524 else
2525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2526/* end confdefs.h. */
2527$4
2528static long int longval () { return $2; }
2529static unsigned long int ulongval () { return $2; }
2530#include <stdio.h>
2531#include <stdlib.h>
2532int
2533main ()
2534{
2535
2536 FILE *f = fopen ("conftest.val", "w");
2537 if (! f)
2538 return 1;
2539 if (($2) < 0)
2540 {
2541 long int i = longval ();
2542 if (i != ($2))
2543 return 1;
2544 fprintf (f, "%ld", i);
2545 }
2546 else
2547 {
2548 unsigned long int i = ulongval ();
2549 if (i != ($2))
2550 return 1;
2551 fprintf (f, "%lu", i);
2552 }
2553 /* Do not output a trailing newline, as this causes \r\n confusion
2554 on some platforms. */
2555 return ferror (f) || fclose (f) != 0;
2556
2557 ;
2558 return 0;
2559}
2560_ACEOF
2561if ac_fn_c_try_run "$LINENO"; then :
2562 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2563else
2564 ac_retval=1
2565fi
2566rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2567 conftest.$ac_objext conftest.beam conftest.$ac_ext
2568rm -f conftest.val
2569
2570 fi
2571 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2572 as_fn_set_status $ac_retval
2573
2574} # ac_fn_c_compute_int
2575
cristy8b350f62009-11-15 23:12:43 +00002576# ac_fn_c_try_link LINENO
2577# -----------------------
2578# Try to link conftest.$ac_ext, and return whether this succeeded.
2579ac_fn_c_try_link ()
2580{
2581 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2582 rm -f conftest.$ac_objext conftest$ac_exeext
2583 if { { ac_try="$ac_link"
2584case "(($ac_try" in
2585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2586 *) ac_try_echo=$ac_try;;
2587esac
2588eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2589$as_echo "$ac_try_echo"; } >&5
2590 (eval "$ac_link") 2>conftest.err
2591 ac_status=$?
2592 if test -s conftest.err; then
2593 grep -v '^ *+' conftest.err >conftest.er1
2594 cat conftest.er1 >&5
2595 mv -f conftest.er1 conftest.err
2596 fi
2597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2598 test $ac_status = 0; } && {
2599 test -z "$ac_c_werror_flag" ||
2600 test ! -s conftest.err
2601 } && test -s conftest$ac_exeext && {
2602 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002603 test -x conftest$ac_exeext
cristy8b350f62009-11-15 23:12:43 +00002604 }; then :
2605 ac_retval=0
2606else
2607 $as_echo "$as_me: failed program was:" >&5
2608sed 's/^/| /' conftest.$ac_ext >&5
2609
2610 ac_retval=1
2611fi
2612 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2613 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2614 # interfere with the next link command; also delete a directory that is
2615 # left behind by Apple's compiler. We do this before executing the actions.
2616 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002617 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002618 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002619
2620} # ac_fn_c_try_link
2621
cristy73bd4a52010-10-05 11:24:23 +00002622# ac_fn_c_check_func LINENO FUNC VAR
2623# ----------------------------------
2624# Tests whether FUNC exists, setting the cache variable VAR accordingly
2625ac_fn_c_check_func ()
2626{
2627 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2629$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002630if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002631 $as_echo_n "(cached) " >&6
2632else
2633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2634/* end confdefs.h. */
2635/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2636 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2637#define $2 innocuous_$2
2638
2639/* System header to define __stub macros and hopefully few prototypes,
2640 which can conflict with char $2 (); below.
2641 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2642 <limits.h> exists even on freestanding compilers. */
2643
2644#ifdef __STDC__
2645# include <limits.h>
2646#else
2647# include <assert.h>
2648#endif
2649
2650#undef $2
2651
2652/* Override any GCC internal prototype to avoid an error.
2653 Use char because int might match the return type of a GCC
2654 builtin and then its argument prototype would still apply. */
2655#ifdef __cplusplus
2656extern "C"
2657#endif
2658char $2 ();
2659/* The GNU C library defines this for functions which it implements
2660 to always fail with ENOSYS. Some functions are actually named
2661 something starting with __ and the normal name is an alias. */
2662#if defined __stub_$2 || defined __stub___$2
2663choke me
2664#endif
2665
2666int
2667main ()
2668{
2669return $2 ();
2670 ;
2671 return 0;
2672}
2673_ACEOF
2674if ac_fn_c_try_link "$LINENO"; then :
2675 eval "$3=yes"
2676else
2677 eval "$3=no"
2678fi
2679rm -f core conftest.err conftest.$ac_objext \
2680 conftest$ac_exeext conftest.$ac_ext
2681fi
2682eval ac_res=\$$3
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2684$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002685 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002686
2687} # ac_fn_c_check_func
2688
2689# ac_fn_cxx_try_cpp LINENO
2690# ------------------------
2691# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2692ac_fn_cxx_try_cpp ()
2693{
2694 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2695 if { { ac_try="$ac_cpp conftest.$ac_ext"
2696case "(($ac_try" in
2697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2698 *) ac_try_echo=$ac_try;;
2699esac
2700eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2701$as_echo "$ac_try_echo"; } >&5
2702 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2703 ac_status=$?
2704 if test -s conftest.err; then
2705 grep -v '^ *+' conftest.err >conftest.er1
2706 cat conftest.er1 >&5
2707 mv -f conftest.er1 conftest.err
2708 fi
2709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002710 test $ac_status = 0; } > conftest.i && {
cristy73bd4a52010-10-05 11:24:23 +00002711 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2712 test ! -s conftest.err
2713 }; then :
2714 ac_retval=0
2715else
2716 $as_echo "$as_me: failed program was:" >&5
2717sed 's/^/| /' conftest.$ac_ext >&5
2718
2719 ac_retval=1
2720fi
cristyda16f162011-02-19 23:52:17 +00002721 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002722 as_fn_set_status $ac_retval
2723
2724} # ac_fn_cxx_try_cpp
2725
2726# ac_fn_cxx_try_link LINENO
2727# -------------------------
2728# Try to link conftest.$ac_ext, and return whether this succeeded.
2729ac_fn_cxx_try_link ()
2730{
2731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2732 rm -f conftest.$ac_objext conftest$ac_exeext
2733 if { { ac_try="$ac_link"
2734case "(($ac_try" in
2735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2736 *) ac_try_echo=$ac_try;;
2737esac
2738eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2739$as_echo "$ac_try_echo"; } >&5
2740 (eval "$ac_link") 2>conftest.err
2741 ac_status=$?
2742 if test -s conftest.err; then
2743 grep -v '^ *+' conftest.err >conftest.er1
2744 cat conftest.er1 >&5
2745 mv -f conftest.er1 conftest.err
2746 fi
2747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2748 test $ac_status = 0; } && {
2749 test -z "$ac_cxx_werror_flag" ||
2750 test ! -s conftest.err
2751 } && test -s conftest$ac_exeext && {
2752 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002753 test -x conftest$ac_exeext
cristy73bd4a52010-10-05 11:24:23 +00002754 }; then :
2755 ac_retval=0
2756else
2757 $as_echo "$as_me: failed program was:" >&5
2758sed 's/^/| /' conftest.$ac_ext >&5
2759
2760 ac_retval=1
2761fi
2762 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2763 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2764 # interfere with the next link command; also delete a directory that is
2765 # left behind by Apple's compiler. We do this before executing the actions.
2766 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002767 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002768 as_fn_set_status $ac_retval
2769
2770} # ac_fn_cxx_try_link
2771
cristy8b350f62009-11-15 23:12:43 +00002772# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2773# -------------------------------------------
2774# Tests whether TYPE exists after having included INCLUDES, setting cache
2775# variable VAR accordingly.
2776ac_fn_c_check_type ()
2777{
2778 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2780$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002781if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002782 $as_echo_n "(cached) " >&6
2783else
2784 eval "$3=no"
2785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2786/* end confdefs.h. */
2787$4
2788int
2789main ()
2790{
2791if (sizeof ($2))
2792 return 0;
2793 ;
2794 return 0;
2795}
2796_ACEOF
2797if ac_fn_c_try_compile "$LINENO"; then :
2798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2799/* end confdefs.h. */
2800$4
2801int
2802main ()
2803{
2804if (sizeof (($2)))
2805 return 0;
2806 ;
2807 return 0;
2808}
2809_ACEOF
2810if ac_fn_c_try_compile "$LINENO"; then :
2811
2812else
2813 eval "$3=yes"
2814fi
2815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2816fi
2817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2818fi
2819eval ac_res=\$$3
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2821$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002822 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002823
2824} # ac_fn_c_check_type
2825
cristy92703d82010-04-26 00:18:18 +00002826# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2827# ----------------------------------------------------
2828# Tries to find if the field MEMBER exists in type AGGR, after including
2829# INCLUDES, setting cache variable VAR accordingly.
2830ac_fn_c_check_member ()
2831{
2832 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2834$as_echo_n "checking for $2.$3... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002835if eval \${$4+:} false; then :
cristy92703d82010-04-26 00:18:18 +00002836 $as_echo_n "(cached) " >&6
2837else
2838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2839/* end confdefs.h. */
2840$5
2841int
2842main ()
2843{
2844static $2 ac_aggr;
2845if (ac_aggr.$3)
2846return 0;
2847 ;
2848 return 0;
2849}
2850_ACEOF
2851if ac_fn_c_try_compile "$LINENO"; then :
2852 eval "$4=yes"
2853else
2854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2855/* end confdefs.h. */
2856$5
2857int
2858main ()
2859{
2860static $2 ac_aggr;
2861if (sizeof ac_aggr.$3)
2862return 0;
2863 ;
2864 return 0;
2865}
2866_ACEOF
2867if ac_fn_c_try_compile "$LINENO"; then :
2868 eval "$4=yes"
2869else
2870 eval "$4=no"
2871fi
2872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2873fi
2874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2875fi
2876eval ac_res=\$$4
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2878$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002879 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy92703d82010-04-26 00:18:18 +00002880
2881} # ac_fn_c_check_member
2882
cristy5eef09f2012-10-16 12:08:28 +00002883# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2884# ---------------------------------------------
2885# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2886# accordingly.
2887ac_fn_c_check_decl ()
2888{
2889 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2890 as_decl_name=`echo $2|sed 's/ *(.*//'`
2891 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2893$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2894if eval \${$3+:} false; then :
2895 $as_echo_n "(cached) " >&6
2896else
2897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2898/* end confdefs.h. */
2899$4
2900int
2901main ()
2902{
2903#ifndef $as_decl_name
2904#ifdef __cplusplus
2905 (void) $as_decl_use;
2906#else
2907 (void) $as_decl_name;
2908#endif
2909#endif
2910
2911 ;
2912 return 0;
2913}
2914_ACEOF
2915if ac_fn_c_try_compile "$LINENO"; then :
2916 eval "$3=yes"
2917else
2918 eval "$3=no"
2919fi
2920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2921fi
2922eval ac_res=\$$3
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2924$as_echo "$ac_res" >&6; }
2925 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2926
2927} # ac_fn_c_check_decl
2928
cristy501c8042011-05-26 17:46:28 +00002929# ac_fn_c_find_intX_t LINENO BITS VAR
2930# -----------------------------------
2931# Finds a signed integer type with width BITS, setting cache variable VAR
2932# accordingly.
2933ac_fn_c_find_intX_t ()
2934{
2935 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2937$as_echo_n "checking for int$2_t... " >&6; }
2938if eval \${$3+:} false; then :
2939 $as_echo_n "(cached) " >&6
2940else
2941 eval "$3=no"
2942 # Order is important - never check a type that is potentially smaller
2943 # than half of the expected target width.
2944 for ac_type in int$2_t 'int' 'long int' \
2945 'long long int' 'short int' 'signed char'; do
2946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2947/* end confdefs.h. */
2948$ac_includes_default
2949 enum { N = $2 / 2 - 1 };
2950int
2951main ()
2952{
2953static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
cristy14fefe52012-05-21 00:59:18 +00002954test_array [0] = 0;
2955return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002956
2957 ;
2958 return 0;
2959}
2960_ACEOF
2961if ac_fn_c_try_compile "$LINENO"; then :
2962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2963/* end confdefs.h. */
2964$ac_includes_default
2965 enum { N = $2 / 2 - 1 };
2966int
2967main ()
2968{
2969static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2970 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
cristy14fefe52012-05-21 00:59:18 +00002971test_array [0] = 0;
2972return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002973
2974 ;
2975 return 0;
2976}
2977_ACEOF
2978if ac_fn_c_try_compile "$LINENO"; then :
2979
2980else
2981 case $ac_type in #(
2982 int$2_t) :
2983 eval "$3=yes" ;; #(
2984 *) :
2985 eval "$3=\$ac_type" ;;
2986esac
2987fi
2988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2989fi
2990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2991 if eval test \"x\$"$3"\" = x"no"; then :
2992
2993else
2994 break
2995fi
2996 done
2997fi
2998eval ac_res=\$$3
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3000$as_echo "$ac_res" >&6; }
3001 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3002
3003} # ac_fn_c_find_intX_t
3004
3005# ac_fn_c_find_uintX_t LINENO BITS VAR
3006# ------------------------------------
3007# Finds an unsigned integer type with width BITS, setting cache variable VAR
3008# accordingly.
3009ac_fn_c_find_uintX_t ()
3010{
3011 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
3013$as_echo_n "checking for uint$2_t... " >&6; }
3014if eval \${$3+:} false; then :
3015 $as_echo_n "(cached) " >&6
3016else
3017 eval "$3=no"
3018 # Order is important - never check a type that is potentially smaller
3019 # than half of the expected target width.
3020 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
3021 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
3022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3023/* end confdefs.h. */
3024$ac_includes_default
3025int
3026main ()
3027{
3028static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
cristy14fefe52012-05-21 00:59:18 +00003029test_array [0] = 0;
3030return test_array [0];
cristy501c8042011-05-26 17:46:28 +00003031
3032 ;
3033 return 0;
3034}
3035_ACEOF
3036if ac_fn_c_try_compile "$LINENO"; then :
3037 case $ac_type in #(
3038 uint$2_t) :
3039 eval "$3=yes" ;; #(
3040 *) :
3041 eval "$3=\$ac_type" ;;
3042esac
3043fi
3044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3045 if eval test \"x\$"$3"\" = x"no"; then :
3046
3047else
3048 break
3049fi
3050 done
3051fi
3052eval ac_res=\$$3
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3054$as_echo "$ac_res" >&6; }
3055 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3056
3057} # ac_fn_c_find_uintX_t
3058
cristy8b350f62009-11-15 23:12:43 +00003059# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
3060# ---------------------------------------------------------
3061# Tests whether HEADER exists, giving a warning if it cannot be compiled using
3062# the include files in INCLUDES and setting the cache variable VAR
3063# accordingly.
3064ac_fn_cxx_check_header_mongrel ()
3065{
3066 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00003067 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3069$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003070if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003071 $as_echo_n "(cached) " >&6
3072fi
3073eval ac_res=\$$3
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3075$as_echo "$ac_res" >&6; }
3076else
3077 # Is the header compilable?
3078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
3079$as_echo_n "checking $2 usability... " >&6; }
3080cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3081/* end confdefs.h. */
3082$4
3083#include <$2>
3084_ACEOF
3085if ac_fn_cxx_try_compile "$LINENO"; then :
3086 ac_header_compiler=yes
3087else
3088 ac_header_compiler=no
3089fi
3090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3092$as_echo "$ac_header_compiler" >&6; }
3093
3094# Is the header present?
3095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3096$as_echo_n "checking $2 presence... " >&6; }
3097cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3098/* end confdefs.h. */
3099#include <$2>
3100_ACEOF
3101if ac_fn_cxx_try_cpp "$LINENO"; then :
3102 ac_header_preproc=yes
3103else
3104 ac_header_preproc=no
3105fi
cristyda16f162011-02-19 23:52:17 +00003106rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00003107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3108$as_echo "$ac_header_preproc" >&6; }
3109
3110# So? What about this header?
3111case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3112 yes:no: )
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3114$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3116$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3117 ;;
3118 no:yes:* )
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3120$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3122$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3124$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3126$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3128$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003129( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00003130## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00003131## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00003132 ) | sed "s/^/$as_me: WARNING: /" >&2
3133 ;;
3134esac
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3136$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003137if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003138 $as_echo_n "(cached) " >&6
3139else
3140 eval "$3=\$ac_header_compiler"
3141fi
3142eval ac_res=\$$3
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3144$as_echo "$ac_res" >&6; }
3145fi
cristyda16f162011-02-19 23:52:17 +00003146 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00003147
3148} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00003149cat >config.log <<_ACEOF
3150This file contains any messages produced by compilers while
3151running configure, to aid debugging if configure makes a mistake.
3152
cristy29eb34e2011-10-16 00:46:08 +00003153It was created by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +00003154generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00003155
3156 $ $0 $@
3157
3158_ACEOF
3159exec 5>>config.log
3160{
3161cat <<_ASUNAME
3162## --------- ##
3163## Platform. ##
3164## --------- ##
3165
3166hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3167uname -m = `(uname -m) 2>/dev/null || echo unknown`
3168uname -r = `(uname -r) 2>/dev/null || echo unknown`
3169uname -s = `(uname -s) 2>/dev/null || echo unknown`
3170uname -v = `(uname -v) 2>/dev/null || echo unknown`
3171
3172/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3173/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3174
3175/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3176/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3177/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3178/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3179/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3180/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3181/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3182
3183_ASUNAME
3184
3185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3186for as_dir in $PATH
3187do
3188 IFS=$as_save_IFS
3189 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003190 $as_echo "PATH: $as_dir"
3191 done
cristy3ed852e2009-09-05 21:47:34 +00003192IFS=$as_save_IFS
3193
3194} >&5
3195
3196cat >&5 <<_ACEOF
3197
3198
3199## ----------- ##
3200## Core tests. ##
3201## ----------- ##
3202
3203_ACEOF
3204
3205
3206# Keep a trace of the command line.
3207# Strip out --no-create and --no-recursion so they do not pile up.
3208# Strip out --silent because we don't want to record it for future runs.
3209# Also quote any args containing shell meta-characters.
3210# Make two passes to allow for proper duplicate-argument suppression.
3211ac_configure_args=
3212ac_configure_args0=
3213ac_configure_args1=
3214ac_must_keep_next=false
3215for ac_pass in 1 2
3216do
3217 for ac_arg
3218 do
3219 case $ac_arg in
3220 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3221 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3222 | -silent | --silent | --silen | --sile | --sil)
3223 continue ;;
3224 *\'*)
3225 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3226 esac
3227 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003228 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003229 2)
cristy8b350f62009-11-15 23:12:43 +00003230 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003231 if test $ac_must_keep_next = true; then
3232 ac_must_keep_next=false # Got value, back to normal.
3233 else
3234 case $ac_arg in
3235 *=* | --config-cache | -C | -disable-* | --disable-* \
3236 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3237 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3238 | -with-* | --with-* | -without-* | --without-* | --x)
3239 case "$ac_configure_args0 " in
3240 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3241 esac
3242 ;;
3243 -* ) ac_must_keep_next=true ;;
3244 esac
3245 fi
cristy8b350f62009-11-15 23:12:43 +00003246 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003247 ;;
3248 esac
3249 done
3250done
cristy8b350f62009-11-15 23:12:43 +00003251{ ac_configure_args0=; unset ac_configure_args0;}
3252{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003253
3254# When interrupted or exit'd, cleanup temporary files, and complete
3255# config.log. We remove comments because anyway the quotes in there
3256# would cause problems or look ugly.
3257# WARNING: Use '\'' to represent an apostrophe within the trap.
3258# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3259trap 'exit_status=$?
3260 # Save into config.log some information that might help in debugging.
3261 {
3262 echo
3263
cristy98dddb52010-11-04 00:30:15 +00003264 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003265## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003266## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003267 echo
3268 # The following way of writing the cache mishandles newlines in values,
3269(
3270 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3271 eval ac_val=\$$ac_var
3272 case $ac_val in #(
3273 *${as_nl}*)
3274 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003275 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003276$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3277 esac
3278 case $ac_var in #(
3279 _ | IFS | as_nl) ;; #(
3280 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003281 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003282 esac ;;
3283 esac
3284 done
3285 (set) 2>&1 |
3286 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3287 *${as_nl}ac_space=\ *)
3288 sed -n \
3289 "s/'\''/'\''\\\\'\'''\''/g;
3290 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3291 ;; #(
3292 *)
3293 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3294 ;;
3295 esac |
3296 sort
3297)
3298 echo
3299
cristy98dddb52010-11-04 00:30:15 +00003300 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003301## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003302## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003303 echo
3304 for ac_var in $ac_subst_vars
3305 do
3306 eval ac_val=\$$ac_var
3307 case $ac_val in
3308 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3309 esac
3310 $as_echo "$ac_var='\''$ac_val'\''"
3311 done | sort
3312 echo
3313
3314 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003315 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003316## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003317## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003318 echo
3319 for ac_var in $ac_subst_files
3320 do
3321 eval ac_val=\$$ac_var
3322 case $ac_val in
3323 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3324 esac
3325 $as_echo "$ac_var='\''$ac_val'\''"
3326 done | sort
3327 echo
3328 fi
3329
3330 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003331 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003332## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003333## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003334 echo
3335 cat confdefs.h
3336 echo
3337 fi
3338 test "$ac_signal" != 0 &&
3339 $as_echo "$as_me: caught signal $ac_signal"
3340 $as_echo "$as_me: exit $exit_status"
3341 } >&5
3342 rm -f core *.core core.conftest.* &&
3343 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3344 exit $exit_status
3345' 0
3346for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003347 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003348done
3349ac_signal=0
3350
3351# confdefs.h avoids OS command line length limits that DEFS can exceed.
3352rm -f -r conftest* confdefs.h
3353
cristy8b350f62009-11-15 23:12:43 +00003354$as_echo "/* confdefs.h */" > confdefs.h
3355
cristy3ed852e2009-09-05 21:47:34 +00003356# Predefined preprocessor variables.
3357
3358cat >>confdefs.h <<_ACEOF
3359#define PACKAGE_NAME "$PACKAGE_NAME"
3360_ACEOF
3361
cristy3ed852e2009-09-05 21:47:34 +00003362cat >>confdefs.h <<_ACEOF
3363#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3364_ACEOF
3365
cristy3ed852e2009-09-05 21:47:34 +00003366cat >>confdefs.h <<_ACEOF
3367#define PACKAGE_VERSION "$PACKAGE_VERSION"
3368_ACEOF
3369
cristy3ed852e2009-09-05 21:47:34 +00003370cat >>confdefs.h <<_ACEOF
3371#define PACKAGE_STRING "$PACKAGE_STRING"
3372_ACEOF
3373
cristy3ed852e2009-09-05 21:47:34 +00003374cat >>confdefs.h <<_ACEOF
3375#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3376_ACEOF
3377
cristy8b350f62009-11-15 23:12:43 +00003378cat >>confdefs.h <<_ACEOF
3379#define PACKAGE_URL "$PACKAGE_URL"
3380_ACEOF
3381
cristy3ed852e2009-09-05 21:47:34 +00003382
3383# Let the site file select an alternate cache file if it wants to.
3384# Prefer an explicitly selected file to automatically selected ones.
3385ac_site_file1=NONE
3386ac_site_file2=NONE
3387if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003388 # We do not want a PATH search for config.site.
3389 case $CONFIG_SITE in #((
3390 -*) ac_site_file1=./$CONFIG_SITE;;
3391 */*) ac_site_file1=$CONFIG_SITE;;
3392 *) ac_site_file1=./$CONFIG_SITE;;
3393 esac
cristy3ed852e2009-09-05 21:47:34 +00003394elif test "x$prefix" != xNONE; then
3395 ac_site_file1=$prefix/share/config.site
3396 ac_site_file2=$prefix/etc/config.site
3397else
3398 ac_site_file1=$ac_default_prefix/share/config.site
3399 ac_site_file2=$ac_default_prefix/etc/config.site
3400fi
3401for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3402do
3403 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003404 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003405 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003406$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3407 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003408 . "$ac_site_file" \
3409 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3410$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3411as_fn_error $? "failed to load site script $ac_site_file
3412See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003413 fi
3414done
3415
3416if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003417 # Some versions of bash will fail to source /dev/null (special files
3418 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3419 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003420 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003421$as_echo "$as_me: loading cache $cache_file" >&6;}
3422 case $cache_file in
3423 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3424 *) . "./$cache_file";;
3425 esac
3426 fi
3427else
cristy8b350f62009-11-15 23:12:43 +00003428 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003429$as_echo "$as_me: creating cache $cache_file" >&6;}
3430 >$cache_file
3431fi
3432
cristycd4c5312009-11-22 01:19:08 +00003433as_fn_append ac_header_list " stdlib.h"
3434as_fn_append ac_header_list " unistd.h"
3435as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003436# Check that the precious variables saved in the cache have kept the same
3437# value.
3438ac_cache_corrupted=false
3439for ac_var in $ac_precious_vars; do
3440 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3441 eval ac_new_set=\$ac_env_${ac_var}_set
3442 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3443 eval ac_new_val=\$ac_env_${ac_var}_value
3444 case $ac_old_set,$ac_new_set in
3445 set,)
cristy8b350f62009-11-15 23:12:43 +00003446 { $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 +00003447$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3448 ac_cache_corrupted=: ;;
3449 ,set)
cristy8b350f62009-11-15 23:12:43 +00003450 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003451$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3452 ac_cache_corrupted=: ;;
3453 ,);;
3454 *)
3455 if test "x$ac_old_val" != "x$ac_new_val"; then
3456 # differences in whitespace do not lead to failure.
3457 ac_old_val_w=`echo x $ac_old_val`
3458 ac_new_val_w=`echo x $ac_new_val`
3459 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003460 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003461$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3462 ac_cache_corrupted=:
3463 else
cristy8b350f62009-11-15 23:12:43 +00003464 { $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 +00003465$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3466 eval $ac_var=\$ac_old_val
3467 fi
cristy8b350f62009-11-15 23:12:43 +00003468 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003469$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003470 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003471$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3472 fi;;
3473 esac
3474 # Pass precious variables to config.status.
3475 if test "$ac_new_set" = set; then
3476 case $ac_new_val in
3477 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3478 *) ac_arg=$ac_var=$ac_new_val ;;
3479 esac
3480 case " $ac_configure_args " in
3481 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003482 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003483 esac
3484 fi
3485done
3486if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003487 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003488$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003489 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003490$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003491 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003492fi
cristy8b350f62009-11-15 23:12:43 +00003493## -------------------- ##
3494## Main body of script. ##
3495## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003496
3497ac_ext=c
3498ac_cpp='$CPP $CPPFLAGS'
3499ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3500ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3501ac_compiler_gnu=$ac_cv_c_compiler_gnu
3502
3503
3504
3505ac_aux_dir=
3506for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003507 if test -f "$ac_dir/install-sh"; then
3508 ac_aux_dir=$ac_dir
3509 ac_install_sh="$ac_aux_dir/install-sh -c"
3510 break
3511 elif test -f "$ac_dir/install.sh"; then
3512 ac_aux_dir=$ac_dir
3513 ac_install_sh="$ac_aux_dir/install.sh -c"
3514 break
3515 elif test -f "$ac_dir/shtool"; then
3516 ac_aux_dir=$ac_dir
3517 ac_install_sh="$ac_aux_dir/shtool install -c"
3518 break
3519 fi
cristy3ed852e2009-09-05 21:47:34 +00003520done
3521if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003522 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003523fi
3524
3525# These three variables are undocumented and unsupported,
3526# and are intended to be withdrawn in a future Autoconf release.
3527# They can cause serious problems if a builder's source tree is in a directory
3528# whose full name contains unusual characters.
3529ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3530ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3531ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3532
3533
3534
3535
3536ac_config_headers="$ac_config_headers config/config.h"
3537
cristy24fc1fe2010-10-23 21:13:01 +00003538
cristy01ff9f32012-12-01 18:15:29 +00003539ac_config_commands="$ac_config_commands MagickCore/magick-baseconfig.h"
cristy73bd4a52010-10-05 11:24:23 +00003540
cristy3ed852e2009-09-05 21:47:34 +00003541# Make sure we can run config.sub.
3542$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003543 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003544
cristy8b350f62009-11-15 23:12:43 +00003545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003546$as_echo_n "checking build system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003547if ${ac_cv_build+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003548 $as_echo_n "(cached) " >&6
3549else
3550 ac_build_alias=$build_alias
3551test "x$ac_build_alias" = x &&
3552 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3553test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003554 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003555ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003556 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003557
3558fi
cristy8b350f62009-11-15 23:12:43 +00003559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003560$as_echo "$ac_cv_build" >&6; }
3561case $ac_cv_build in
3562*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003563*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003564esac
3565build=$ac_cv_build
3566ac_save_IFS=$IFS; IFS='-'
3567set x $ac_cv_build
3568shift
3569build_cpu=$1
3570build_vendor=$2
3571shift; shift
3572# Remember, the first character of IFS is used to create $*,
3573# except with old shells:
3574build_os=$*
3575IFS=$ac_save_IFS
3576case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3577
3578
cristy8b350f62009-11-15 23:12:43 +00003579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003580$as_echo_n "checking host system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003581if ${ac_cv_host+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003582 $as_echo_n "(cached) " >&6
3583else
3584 if test "x$host_alias" = x; then
3585 ac_cv_host=$ac_cv_build
3586else
3587 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003588 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003589fi
3590
3591fi
cristy8b350f62009-11-15 23:12:43 +00003592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003593$as_echo "$ac_cv_host" >&6; }
3594case $ac_cv_host in
3595*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003596*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003597esac
3598host=$ac_cv_host
3599ac_save_IFS=$IFS; IFS='-'
3600set x $ac_cv_host
3601shift
3602host_cpu=$1
3603host_vendor=$2
3604shift; shift
3605# Remember, the first character of IFS is used to create $*,
3606# except with old shells:
3607host_os=$*
3608IFS=$ac_save_IFS
3609case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3610
3611
cristy8b350f62009-11-15 23:12:43 +00003612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003613$as_echo_n "checking target system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003614if ${ac_cv_target+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003615 $as_echo_n "(cached) " >&6
3616else
3617 if test "x$target_alias" = x; then
3618 ac_cv_target=$ac_cv_host
3619else
3620 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003621 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003622fi
3623
3624fi
cristy8b350f62009-11-15 23:12:43 +00003625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003626$as_echo "$ac_cv_target" >&6; }
3627case $ac_cv_target in
3628*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003629*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003630esac
3631target=$ac_cv_target
3632ac_save_IFS=$IFS; IFS='-'
3633set x $ac_cv_target
3634shift
3635target_cpu=$1
3636target_vendor=$2
3637shift; shift
3638# Remember, the first character of IFS is used to create $*,
3639# except with old shells:
3640target_os=$*
3641IFS=$ac_save_IFS
3642case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3643
3644
3645# The aliases save the names the user supplied, while $host etc.
3646# will get canonicalized.
3647test -n "$target_alias" &&
3648 test "$program_prefix$program_suffix$program_transform_name" = \
3649 NONENONEs,x,x, &&
3650 program_prefix=${target_alias}-
3651
cristy837d6dc2010-02-27 01:16:57 +00003652
cristya5bda012013-11-03 18:05:38 +00003653am__api_version='1.14'
cristy73bd4a52010-10-05 11:24:23 +00003654
3655# Find a good install program. We prefer a C program (faster),
3656# so one script is as good as another. But avoid the broken or
3657# incompatible versions:
3658# SysV /etc/install, /usr/sbin/install
3659# SunOS /usr/etc/install
3660# IRIX /sbin/install
3661# AIX /bin/install
3662# AmigaOS /C/install, which installs bootblocks on floppy discs
3663# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3664# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3665# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3666# OS/2's system install, which has a completely different semantic
3667# ./install, which can be erroneously created by make from ./install.sh.
3668# Reject install programs that cannot install multiple files.
3669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3670$as_echo_n "checking for a BSD-compatible install... " >&6; }
3671if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003672if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003673 $as_echo_n "(cached) " >&6
3674else
3675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3676for as_dir in $PATH
3677do
3678 IFS=$as_save_IFS
3679 test -z "$as_dir" && as_dir=.
3680 # Account for people who put trailing slashes in PATH elements.
3681case $as_dir/ in #((
3682 ./ | .// | /[cC]/* | \
3683 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3684 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3685 /usr/ucb/* ) ;;
3686 *)
3687 # OSF1 and SCO ODT 3.0 have their own names for install.
3688 # Don't use installbsd from OSF since it installs stuff as root
3689 # by default.
3690 for ac_prog in ginstall scoinst install; do
3691 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003692 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003693 if test $ac_prog = install &&
3694 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3695 # AIX install. It has an incompatible calling convention.
3696 :
3697 elif test $ac_prog = install &&
3698 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3699 # program-specific install script used by HP pwplus--don't use.
3700 :
3701 else
3702 rm -rf conftest.one conftest.two conftest.dir
3703 echo one > conftest.one
3704 echo two > conftest.two
3705 mkdir conftest.dir
3706 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3707 test -s conftest.one && test -s conftest.two &&
3708 test -s conftest.dir/conftest.one &&
3709 test -s conftest.dir/conftest.two
3710 then
3711 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3712 break 3
3713 fi
3714 fi
3715 fi
3716 done
3717 done
3718 ;;
3719esac
3720
3721 done
3722IFS=$as_save_IFS
3723
3724rm -rf conftest.one conftest.two conftest.dir
3725
3726fi
3727 if test "${ac_cv_path_install+set}" = set; then
3728 INSTALL=$ac_cv_path_install
3729 else
3730 # As a last resort, use the slow shell script. Don't cache a
3731 # value for INSTALL within a source directory, because that will
3732 # break other packages using the cache if that directory is
3733 # removed, or if the value is a relative name.
3734 INSTALL=$ac_install_sh
3735 fi
3736fi
3737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3738$as_echo "$INSTALL" >&6; }
3739
3740# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3741# It thinks the first close brace ends the variable substitution.
3742test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3743
3744test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3745
3746test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3747
cristy9af1cbf2014-12-28 22:03:09 +00003748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3749$as_echo_n "checking whether build environment is sane... " >&6; }
3750# Reject unsafe characters in $srcdir or the absolute working directory
3751# name. Accept space and tab only in the latter.
3752am_lf='
3753'
3754case `pwd` in
3755 *[\\\"\#\$\&\'\`$am_lf]*)
3756 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3757esac
3758case $srcdir in
3759 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3760 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3761esac
3762
3763# Do 'set' in a subshell so we don't clobber the current shell's
3764# arguments. Must try -L first in case configure is actually a
3765# symlink; some systems play weird games with the mod time of symlinks
3766# (eg FreeBSD returns the mod time of the symlink's containing
3767# directory).
3768if (
3769 am_has_slept=no
3770 for am_try in 1 2; do
3771 echo "timestamp, slept: $am_has_slept" > conftest.file
3772 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3773 if test "$*" = "X"; then
3774 # -L didn't work.
3775 set X `ls -t "$srcdir/configure" conftest.file`
3776 fi
3777 if test "$*" != "X $srcdir/configure conftest.file" \
3778 && test "$*" != "X conftest.file $srcdir/configure"; then
3779
3780 # If neither matched, then we have a broken ls. This can happen
3781 # if, for instance, CONFIG_SHELL is bash and it inherits a
3782 # broken ls alias from the environment. This has actually
3783 # happened. Such a system could not be considered "sane".
3784 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3785 alias in your environment" "$LINENO" 5
3786 fi
3787 if test "$2" = conftest.file || test $am_try -eq 2; then
3788 break
3789 fi
3790 # Just in case.
3791 sleep 1
3792 am_has_slept=yes
3793 done
3794 test "$2" = conftest.file
3795 )
3796then
3797 # Ok.
3798 :
3799else
3800 as_fn_error $? "newly created file is older than distributed files!
3801Check your system clock" "$LINENO" 5
3802fi
3803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3804$as_echo "yes" >&6; }
3805# If we didn't sleep, we still need to ensure time stamps of config.status and
3806# generated files are strictly newer.
3807am_sleep_pid=
3808if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3809 ( sleep 1 ) &
3810 am_sleep_pid=$!
3811fi
3812
3813rm -f conftest.file
3814
cristy73bd4a52010-10-05 11:24:23 +00003815test "$program_prefix" != NONE &&
3816 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3817# Use a double $ so make ignores it.
3818test "$program_suffix" != NONE &&
3819 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3820# Double any \ or $.
3821# By default was `s,x,x', remove it if useless.
3822ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3823program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3824
3825# expand $ac_aux_dir to an absolute path
3826am_aux_dir=`cd $ac_aux_dir && pwd`
3827
3828if test x"${MISSING+set}" != xset; then
3829 case $am_aux_dir in
3830 *\ * | *\ *)
3831 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3832 *)
3833 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3834 esac
3835fi
3836# Use eval to expand $SHELL
cristy58d34aa2013-01-24 15:11:54 +00003837if eval "$MISSING --is-lightweight"; then
3838 am_missing_run="$MISSING "
cristy73bd4a52010-10-05 11:24:23 +00003839else
3840 am_missing_run=
cristyc0890a62012-07-19 00:18:20 +00003841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3842$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
cristy73bd4a52010-10-05 11:24:23 +00003843fi
3844
3845if test x"${install_sh}" != xset; then
3846 case $am_aux_dir in
3847 *\ * | *\ *)
3848 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3849 *)
3850 install_sh="\${SHELL} $am_aux_dir/install-sh"
3851 esac
3852fi
3853
cristyc0890a62012-07-19 00:18:20 +00003854# Installed binaries are usually stripped using 'strip' when the user
3855# run "make install-strip". However 'strip' might not be the right
cristy73bd4a52010-10-05 11:24:23 +00003856# tool to use in cross-compilation environments, therefore Automake
cristyc0890a62012-07-19 00:18:20 +00003857# will honor the 'STRIP' environment variable to overrule this program.
cristy73bd4a52010-10-05 11:24:23 +00003858if test "$cross_compiling" != no; then
3859 if test -n "$ac_tool_prefix"; then
3860 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3861set dummy ${ac_tool_prefix}strip; ac_word=$2
3862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3863$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003864if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003865 $as_echo_n "(cached) " >&6
3866else
3867 if test -n "$STRIP"; then
3868 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3869else
3870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3871for as_dir in $PATH
3872do
3873 IFS=$as_save_IFS
3874 test -z "$as_dir" && as_dir=.
3875 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003877 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3879 break 2
3880 fi
3881done
3882 done
3883IFS=$as_save_IFS
3884
3885fi
3886fi
3887STRIP=$ac_cv_prog_STRIP
3888if test -n "$STRIP"; then
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3890$as_echo "$STRIP" >&6; }
3891else
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3893$as_echo "no" >&6; }
3894fi
3895
3896
3897fi
3898if test -z "$ac_cv_prog_STRIP"; then
3899 ac_ct_STRIP=$STRIP
3900 # Extract the first word of "strip", so it can be a program name with args.
3901set dummy strip; ac_word=$2
3902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3903$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003904if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003905 $as_echo_n "(cached) " >&6
3906else
3907 if test -n "$ac_ct_STRIP"; then
3908 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3909else
3910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3911for as_dir in $PATH
3912do
3913 IFS=$as_save_IFS
3914 test -z "$as_dir" && as_dir=.
3915 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003917 ac_cv_prog_ac_ct_STRIP="strip"
3918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3919 break 2
3920 fi
3921done
3922 done
3923IFS=$as_save_IFS
3924
3925fi
3926fi
3927ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3928if test -n "$ac_ct_STRIP"; then
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3930$as_echo "$ac_ct_STRIP" >&6; }
3931else
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3933$as_echo "no" >&6; }
3934fi
3935
3936 if test "x$ac_ct_STRIP" = x; then
3937 STRIP=":"
3938 else
3939 case $cross_compiling:$ac_tool_warned in
3940yes:)
3941{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3942$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3943ac_tool_warned=yes ;;
3944esac
3945 STRIP=$ac_ct_STRIP
3946 fi
3947else
3948 STRIP="$ac_cv_prog_STRIP"
3949fi
3950
3951fi
3952INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3953
3954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3955$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3956if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00003957 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003958 $as_echo_n "(cached) " >&6
3959else
3960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3961for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3962do
3963 IFS=$as_save_IFS
3964 test -z "$as_dir" && as_dir=.
3965 for ac_prog in mkdir gmkdir; do
3966 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003967 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
cristy73bd4a52010-10-05 11:24:23 +00003968 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3969 'mkdir (GNU coreutils) '* | \
3970 'mkdir (coreutils) '* | \
3971 'mkdir (fileutils) '4.1*)
3972 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3973 break 3;;
3974 esac
3975 done
3976 done
3977 done
3978IFS=$as_save_IFS
3979
3980fi
3981
3982 test -d ./--version && rmdir ./--version
3983 if test "${ac_cv_path_mkdir+set}" = set; then
3984 MKDIR_P="$ac_cv_path_mkdir -p"
3985 else
3986 # As a last resort, use the slow shell script. Don't cache a
3987 # value for MKDIR_P within a source directory, because that will
3988 # break other packages using the cache if that directory is
3989 # removed, or if the value is a relative name.
3990 MKDIR_P="$ac_install_sh -d"
3991 fi
3992fi
3993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3994$as_echo "$MKDIR_P" >&6; }
3995
cristy73bd4a52010-10-05 11:24:23 +00003996for ac_prog in gawk mawk nawk awk
3997do
3998 # Extract the first word of "$ac_prog", so it can be a program name with args.
3999set dummy $ac_prog; ac_word=$2
4000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4001$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004002if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004003 $as_echo_n "(cached) " >&6
4004else
4005 if test -n "$AWK"; then
4006 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4007else
4008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4009for as_dir in $PATH
4010do
4011 IFS=$as_save_IFS
4012 test -z "$as_dir" && as_dir=.
4013 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00004015 ac_cv_prog_AWK="$ac_prog"
4016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4017 break 2
4018 fi
4019done
4020 done
4021IFS=$as_save_IFS
4022
4023fi
4024fi
4025AWK=$ac_cv_prog_AWK
4026if test -n "$AWK"; then
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4028$as_echo "$AWK" >&6; }
4029else
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4031$as_echo "no" >&6; }
4032fi
4033
4034
4035 test -n "$AWK" && break
4036done
4037
4038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4039$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4040set x ${MAKE-make}
4041ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00004042if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004043 $as_echo_n "(cached) " >&6
4044else
4045 cat >conftest.make <<\_ACEOF
4046SHELL = /bin/sh
4047all:
4048 @echo '@@@%%%=$(MAKE)=@@@%%%'
4049_ACEOF
cristy98dddb52010-11-04 00:30:15 +00004050# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00004051case `${MAKE-make} -f conftest.make 2>/dev/null` in
4052 *@@@%%%=?*=@@@%%%*)
4053 eval ac_cv_prog_make_${ac_make}_set=yes;;
4054 *)
4055 eval ac_cv_prog_make_${ac_make}_set=no;;
4056esac
4057rm -f conftest.make
4058fi
4059if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4061$as_echo "yes" >&6; }
4062 SET_MAKE=
4063else
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4065$as_echo "no" >&6; }
4066 SET_MAKE="MAKE=${MAKE-make}"
4067fi
4068
4069rm -rf .tst 2>/dev/null
4070mkdir .tst 2>/dev/null
4071if test -d .tst; then
4072 am__leading_dot=.
4073else
4074 am__leading_dot=_
4075fi
4076rmdir .tst 2>/dev/null
4077
cristya448bd22011-10-14 12:38:13 +00004078# Check whether --enable-silent-rules was given.
4079if test "${enable_silent_rules+set}" = set; then :
4080 enableval=$enable_silent_rules;
4081fi
4082
cristyc0890a62012-07-19 00:18:20 +00004083case $enable_silent_rules in # (((
4084 yes) AM_DEFAULT_VERBOSITY=0;;
4085 no) AM_DEFAULT_VERBOSITY=1;;
4086 *) AM_DEFAULT_VERBOSITY=1;;
cristya448bd22011-10-14 12:38:13 +00004087esac
cristyc3fb77b2012-02-06 01:49:41 +00004088am_make=${MAKE-make}
4089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4090$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4091if ${am_cv_make_support_nested_variables+:} false; then :
4092 $as_echo_n "(cached) " >&6
4093else
4094 if $as_echo 'TRUE=$(BAR$(V))
4095BAR0=false
4096BAR1=true
4097V=1
4098am__doit:
4099 @$(TRUE)
4100.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4101 am_cv_make_support_nested_variables=yes
4102else
4103 am_cv_make_support_nested_variables=no
4104fi
4105fi
4106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4107$as_echo "$am_cv_make_support_nested_variables" >&6; }
4108if test $am_cv_make_support_nested_variables = yes; then
4109 AM_V='$(V)'
4110 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4111else
4112 AM_V=$AM_DEFAULT_VERBOSITY
4113 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4114fi
cristya448bd22011-10-14 12:38:13 +00004115AM_BACKSLASH='\'
4116
cristy73bd4a52010-10-05 11:24:23 +00004117if test "`cd $srcdir && pwd`" != "`pwd`"; then
4118 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4119 # is not polluted with repeated "-I."
4120 am__isrc=' -I$(srcdir)'
4121 # test to see if srcdir already configured
4122 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00004123 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00004124 fi
4125fi
4126
4127# test whether we have cygpath
4128if test -z "$CYGPATH_W"; then
4129 if (cygpath --version) >/dev/null 2>/dev/null; then
4130 CYGPATH_W='cygpath -w'
4131 else
4132 CYGPATH_W=echo
4133 fi
4134fi
4135
4136
4137# Define the identity of the package.
cristy09b53e12011-10-14 12:47:22 +00004138 PACKAGE='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +00004139 VERSION='7.0.0-0'
cristy73bd4a52010-10-05 11:24:23 +00004140
4141
cristya448bd22011-10-14 12:38:13 +00004142cat >>confdefs.h <<_ACEOF
4143#define PACKAGE "$PACKAGE"
4144_ACEOF
4145
4146
4147cat >>confdefs.h <<_ACEOF
4148#define VERSION "$VERSION"
4149_ACEOF
4150
cristy73bd4a52010-10-05 11:24:23 +00004151# Some tools Automake needs.
4152
4153ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4154
4155
4156AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4157
4158
4159AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4160
4161
4162AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4163
4164
4165MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4166
cristyc0890a62012-07-19 00:18:20 +00004167# For better backward compatibility. To be removed once Automake 1.9.x
4168# dies out for good. For more background, see:
4169# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4170# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4171mkdir_p='$(MKDIR_P)'
4172
cristy73bd4a52010-10-05 11:24:23 +00004173# We need awk for the "check" target. The system "awk" is bad on
4174# some platforms.
cristyc3fb77b2012-02-06 01:49:41 +00004175# Always define AMTAR for backward compatibility. Yes, it's still used
4176# in the wild :-( We should find a proper way to deprecate it ...
4177AMTAR='$${TAR-tar}'
cristy73bd4a52010-10-05 11:24:23 +00004178
cristye69bdbe2013-05-03 21:40:44 +00004179
4180# We'll loop over all known methods to create a tar archive until one works.
4181_am_tools='gnutar pax cpio none'
4182
cristyc3fb77b2012-02-06 01:49:41 +00004183am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
cristy73bd4a52010-10-05 11:24:23 +00004184
4185
4186
4187
4188
cristy3ed852e2009-09-05 21:47:34 +00004189
cristya5bda012013-11-03 18:05:38 +00004190# POSIX will say in a future version that running "rm -f" with no argument
4191# is OK; and we want to be able to make that assumption in our Makefile
4192# recipes. So use an aggressive probe to check that the usage we want is
4193# actually supported "in the wild" to an acceptable degree.
4194# See automake bug#10828.
4195# To make any issue more visible, cause the running configure to be aborted
4196# by default if the 'rm' program in use doesn't match our expectations; the
4197# user can still override this though.
4198if rm -f && rm -fr && rm -rf; then : OK; else
4199 cat >&2 <<'END'
4200Oops!
4201
4202Your 'rm' program seems unable to run without file operands specified
4203on the command line, even when the '-f' option is present. This is contrary
4204to the behaviour of most rm programs out there, and not conforming with
4205the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4206
4207Please tell bug-automake@gnu.org about your system, including the value
4208of your $PATH and any error possibly output before this message. This
4209can help us improve future automake versions.
4210
4211END
4212 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4213 echo 'Configuration will proceed anyway, since you have set the' >&2
4214 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4215 echo >&2
4216 else
4217 cat >&2 <<'END'
4218Aborting the configuration process, to ensure you take notice of the issue.
4219
4220You can download and install GNU coreutils to get an 'rm' implementation
4221that behaves properly: <http://www.gnu.org/software/coreutils/>.
4222
4223If you want to complete the configuration process using your problematic
4224'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4225to "yes", and re-run configure.
4226
4227END
4228 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4229 fi
4230fi
cristy73bd4a52010-10-05 11:24:23 +00004231# Check whether --enable-silent-rules was given.
4232if test "${enable_silent_rules+set}" = set; then :
4233 enableval=$enable_silent_rules;
4234fi
4235
cristyc0890a62012-07-19 00:18:20 +00004236case $enable_silent_rules in # (((
4237 yes) AM_DEFAULT_VERBOSITY=0;;
4238 no) AM_DEFAULT_VERBOSITY=1;;
4239 *) AM_DEFAULT_VERBOSITY=0;;
cristy73bd4a52010-10-05 11:24:23 +00004240esac
cristyc3fb77b2012-02-06 01:49:41 +00004241am_make=${MAKE-make}
4242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4243$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4244if ${am_cv_make_support_nested_variables+:} false; then :
4245 $as_echo_n "(cached) " >&6
4246else
4247 if $as_echo 'TRUE=$(BAR$(V))
4248BAR0=false
4249BAR1=true
4250V=1
4251am__doit:
4252 @$(TRUE)
4253.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4254 am_cv_make_support_nested_variables=yes
4255else
4256 am_cv_make_support_nested_variables=no
4257fi
4258fi
4259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4260$as_echo "$am_cv_make_support_nested_variables" >&6; }
4261if test $am_cv_make_support_nested_variables = yes; then
4262 AM_V='$(V)'
4263 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4264else
4265 AM_V=$AM_DEFAULT_VERBOSITY
4266 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4267fi
cristy73bd4a52010-10-05 11:24:23 +00004268AM_BACKSLASH='\'
4269
cristy3ed852e2009-09-05 21:47:34 +00004270
cristy9af1cbf2014-12-28 22:03:09 +00004271#
4272# Save initial user-tunable values
4273#
4274USER_LIBS=$LIBS
4275for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
4276 eval isset=\${$var+set}
4277 if test "$isset" = 'set'; then
4278 eval val=$`echo $var`
4279 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
4280 fi
4281done
4282
4283
4284CONFIGURE_ARGS="$0 ${ac_configure_args}"
4285
4286
cristy187791c2015-05-03 22:17:00 +00004287# Check whether --enable-reproducible-build was given.
4288if test "${enable_reproducible_build+set}" = set; then :
4289 enableval=$enable_reproducible_build; enable_reproducible_build=$enableval
4290else
4291 enable_reproducible_build='no'
4292fi
4293
4294
cristy9af1cbf2014-12-28 22:03:09 +00004295# Source file containing package/library versioning information.
4296. ${srcdir}/version.sh
4297
4298echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
4299
4300MAGICK_TARGET_CPU=$host_cpu
4301
4302
4303cat >>confdefs.h <<_ACEOF
4304#define MAGICK_TARGET_CPU $MAGICK_TARGET_CPU
4305_ACEOF
4306
4307
4308MAGICK_TARGET_VENDOR=$host_vendor
4309
4310
4311cat >>confdefs.h <<_ACEOF
4312#define MAGICK_TARGET_VENDOR $MAGICK_TARGET_VENDOR
4313_ACEOF
4314
4315
4316MAGICK_TARGET_OS=$host_os
4317
4318
4319cat >>confdefs.h <<_ACEOF
4320#define MAGICK_TARGET_OS $MAGICK_TARGET_OS
4321_ACEOF
4322
4323
4324
4325# Substitute versioning
4326MAGICK_MAJOR_VERSION=7
4327
4328MAGICK_MINOR_VERSION=0
4329
4330MAGICK_MICRO_VERSION=0
4331
4332MAGICK_PATCHLEVEL_VERSION=0
4333
4334MAGICK_VERSION=7.0.0-0
4335
cristy187791c2015-05-03 22:17:00 +00004336MAGICK_SVN_REVISION=18476:18479M
cristy9af1cbf2014-12-28 22:03:09 +00004337
4338
4339# Substitute library versioning
4340MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
4341
4342MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
4343
4344
4345MAGICKPP_LIBRARY_CURRENT_MIN=`expr $MAGICKPP_LIBRARY_CURRENT - $MAGICKPP_LIBRARY_AGE`
4346
4347MAGICKPP_LIBRARY_VERSION_INFO=$MAGICKPP_LIBRARY_CURRENT:$MAGICKPP_LIBRARY_REVISION:$MAGICKPP_LIBRARY_AGE
4348
4349
cristy187791c2015-05-03 22:17:00 +00004350if test X$enable_reproducible_build = Xyes; then :
4351 PACKAGE_RELEASE_DATE=$PACKAGE_RELEASE_DATE_REPRODUCIBLE
4352elif PACKAGE_RELEASE_DATE=$PACKAGE_RELEASE_DATE_RAW; then :
4353
4354fi
4355
cristy9af1cbf2014-12-28 22:03:09 +00004356
4357# Ensure that make can run correctly
4358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4359$as_echo_n "checking whether build environment is sane... " >&6; }
4360# Reject unsafe characters in $srcdir or the absolute working directory
4361# name. Accept space and tab only in the latter.
4362am_lf='
4363'
4364case `pwd` in
4365 *[\\\"\#\$\&\'\`$am_lf]*)
4366 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4367esac
4368case $srcdir in
4369 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4370 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4371esac
4372
4373# Do 'set' in a subshell so we don't clobber the current shell's
4374# arguments. Must try -L first in case configure is actually a
4375# symlink; some systems play weird games with the mod time of symlinks
4376# (eg FreeBSD returns the mod time of the symlink's containing
4377# directory).
4378if (
4379 am_has_slept=no
4380 for am_try in 1 2; do
4381 echo "timestamp, slept: $am_has_slept" > conftest.file
4382 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4383 if test "$*" = "X"; then
4384 # -L didn't work.
4385 set X `ls -t "$srcdir/configure" conftest.file`
4386 fi
4387 if test "$*" != "X $srcdir/configure conftest.file" \
4388 && test "$*" != "X conftest.file $srcdir/configure"; then
4389
4390 # If neither matched, then we have a broken ls. This can happen
4391 # if, for instance, CONFIG_SHELL is bash and it inherits a
4392 # broken ls alias from the environment. This has actually
4393 # happened. Such a system could not be considered "sane".
4394 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4395 alias in your environment" "$LINENO" 5
4396 fi
4397 if test "$2" = conftest.file || test $am_try -eq 2; then
4398 break
4399 fi
4400 # Just in case.
4401 sleep 1
4402 am_has_slept=yes
4403 done
4404 test "$2" = conftest.file
4405 )
4406then
4407 # Ok.
4408 :
4409else
4410 as_fn_error $? "newly created file is older than distributed files!
4411Check your system clock" "$LINENO" 5
4412fi
4413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4414$as_echo "yes" >&6; }
4415# If we didn't sleep, we still need to ensure time stamps of config.status and
4416# generated files are strictly newer.
4417am_sleep_pid=
4418if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4419 ( sleep 1 ) &
4420 am_sleep_pid=$!
4421fi
4422
4423rm -f conftest.file
4424
4425
cristyf279b692014-08-13 12:01:27 +00004426# versioning of library
cristy3ed852e2009-09-05 21:47:34 +00004427MAGICK_LIB_VERSION="0x"
4428if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4429 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4430fi
4431MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4432if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4433 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4434fi
4435MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4436if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4437 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4438fi
4439MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4440
4441
4442# Definition used to define MagickLibVersionText in version.h
4443MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4444
4445
4446# Definition used to define MagickLibVersionNumber in version.h
4447MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4448
4449
cristy5ed9c6e2013-07-14 21:20:31 +00004450MAGICKPP_LIB_VERSION="0x"
4451if test ${MAGICKPP_LIBRARY_CURRENT} -lt 10 ; then
4452 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4453fi
4454MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_CURRENT}
4455if test ${MAGICKPP_LIBRARY_AGE} -lt 10 ; then
4456 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4457fi
4458MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_AGE}
4459if test ${MAGICKPP_LIBRARY_REVISION} -lt 10 ; then
4460 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4461fi
4462MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_REVISION}
4463
4464
4465# Definition used to define MagickLibVersionText in version.h
4466MAGICKPP_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4467
4468
4469# Definition used to define MagickLibVersionNumber in version.h
4470MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4471
4472
4473
4474
cristy3ed852e2009-09-05 21:47:34 +00004475# Regenerate config.status if ChangeLog or version.sh is updated.
4476CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4477
4478
4479PERLMAINCC=$CC
4480
4481MAGICK_CFLAGS=''
4482MAGICK_CPPFLAGS=$CPPFLAGS_USER
4483MAGICK_PCFLAGS=$CPPFLAGS_USER
4484MAGICK_LDFLAGS=''
4485MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00004486MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00004487
4488#
4489# Evaluate shell variable equivalents to Makefile directory variables
4490#
4491if test "x$prefix" = xNONE; then
4492 prefix=$ac_default_prefix
4493fi
4494# Let make expand exec_prefix.
4495if test "x$exec_prefix" = xNONE; then
4496 exec_prefix='${prefix}'
4497fi
4498
4499#
4500eval "eval PREFIX_DIR=${prefix}"
4501
4502eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4503
4504eval "eval BIN_DIR=$bindir"
4505
4506eval "eval SBIN_DIR=$sbindir"
4507
4508eval "eval LIBEXEC_DIR=$libexecdir"
4509
4510eval "eval DATA_DIR=$datadir"
4511
cristy4e65ec22012-04-08 01:33:27 +00004512eval "eval DOC_DIR=$datadir/doc"
cristyd55889c2011-03-27 00:50:24 +00004513
cristy3ed852e2009-09-05 21:47:34 +00004514eval "eval SYSCONF_DIR=$sysconfdir"
4515
4516eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4517
4518eval "eval LOCALSTATE_DIR=$localstatedir"
4519
4520eval "eval LIB_DIR=$libdir"
4521
4522eval "eval INCLUDE_DIR=$includedir"
4523
4524eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4525
4526eval "eval INFO_DIR=$infodir"
4527
4528eval "eval MAN_DIR=$mandir"
4529
4530
4531# Get full paths to source and build directories
4532srcdirfull="`cd $srcdir && pwd`"
4533builddir="`pwd`"
4534
4535#
4536# Compute variables useful for running uninstalled software.
4537#
4538MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4539MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4540MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4541MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4542DIRSEP=':'
4543case "${build_os}" in
4544 mingw* )
4545 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4546 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4547 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4548 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4549 DIRSEP=';'
4550 ;;
4551esac
4552case "${host_os}" in
4553 mingw* )
4554 DIRSEP=';'
4555 ;;
4556esac
4557
4558
4559
4560
4561
4562
cristya0b81c32010-01-22 02:54:33 +00004563
4564#
4565# Enable OS features.
4566#
cristy73bd4a52010-10-05 11:24:23 +00004567DEPDIR="${am__leading_dot}deps"
4568
4569ac_config_commands="$ac_config_commands depfiles"
4570
4571
4572am_make=${MAKE-make}
4573cat > confinc << 'END'
4574am__doit:
4575 @echo this is the am__doit target
4576.PHONY: am__doit
4577END
4578# If we don't find an include directive, just comment out the code.
4579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4580$as_echo_n "checking for style of include used by $am_make... " >&6; }
4581am__include="#"
4582am__quote=
4583_am_result=none
4584# First try GNU make style include.
4585echo "include confinc" > confmf
cristyc0890a62012-07-19 00:18:20 +00004586# Ignore all kinds of additional output from 'make'.
cristy73bd4a52010-10-05 11:24:23 +00004587case `$am_make -s -f confmf 2> /dev/null` in #(
4588*the\ am__doit\ target*)
4589 am__include=include
4590 am__quote=
4591 _am_result=GNU
4592 ;;
4593esac
4594# Now try BSD make style include.
4595if test "$am__include" = "#"; then
4596 echo '.include "confinc"' > confmf
4597 case `$am_make -s -f confmf 2> /dev/null` in #(
4598 *the\ am__doit\ target*)
4599 am__include=.include
4600 am__quote="\""
4601 _am_result=BSD
4602 ;;
4603 esac
4604fi
4605
4606
4607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4608$as_echo "$_am_result" >&6; }
4609rm -f confinc confmf
4610
4611# Check whether --enable-dependency-tracking was given.
4612if test "${enable_dependency_tracking+set}" = set; then :
4613 enableval=$enable_dependency_tracking;
4614fi
4615
4616if test "x$enable_dependency_tracking" != xno; then
4617 am_depcomp="$ac_aux_dir/depcomp"
4618 AMDEPBACKSLASH='\'
cristy7247bba2012-02-05 16:37:27 +00004619 am__nodep='_no'
cristy73bd4a52010-10-05 11:24:23 +00004620fi
4621 if test "x$enable_dependency_tracking" != xno; then
4622 AMDEP_TRUE=
4623 AMDEP_FALSE='#'
4624else
4625 AMDEP_TRUE='#'
4626 AMDEP_FALSE=
4627fi
4628
4629
cristy3ed852e2009-09-05 21:47:34 +00004630ac_ext=c
4631ac_cpp='$CPP $CPPFLAGS'
4632ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4633ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4634ac_compiler_gnu=$ac_cv_c_compiler_gnu
4635if test -n "$ac_tool_prefix"; then
4636 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4637set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004639$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004640if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004641 $as_echo_n "(cached) " >&6
4642else
4643 if test -n "$CC"; then
4644 ac_cv_prog_CC="$CC" # Let the user override the test.
4645else
4646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4647for as_dir in $PATH
4648do
4649 IFS=$as_save_IFS
4650 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004651 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004653 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004655 break 2
4656 fi
4657done
cristy8b350f62009-11-15 23:12:43 +00004658 done
cristy3ed852e2009-09-05 21:47:34 +00004659IFS=$as_save_IFS
4660
4661fi
4662fi
4663CC=$ac_cv_prog_CC
4664if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004666$as_echo "$CC" >&6; }
4667else
cristy8b350f62009-11-15 23:12:43 +00004668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004669$as_echo "no" >&6; }
4670fi
4671
4672
4673fi
4674if test -z "$ac_cv_prog_CC"; then
4675 ac_ct_CC=$CC
4676 # Extract the first word of "gcc", so it can be a program name with args.
4677set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004679$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004680if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004681 $as_echo_n "(cached) " >&6
4682else
4683 if test -n "$ac_ct_CC"; then
4684 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4685else
4686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4687for as_dir in $PATH
4688do
4689 IFS=$as_save_IFS
4690 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004691 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004693 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004695 break 2
4696 fi
4697done
cristy8b350f62009-11-15 23:12:43 +00004698 done
cristy3ed852e2009-09-05 21:47:34 +00004699IFS=$as_save_IFS
4700
4701fi
4702fi
4703ac_ct_CC=$ac_cv_prog_ac_ct_CC
4704if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004706$as_echo "$ac_ct_CC" >&6; }
4707else
cristy8b350f62009-11-15 23:12:43 +00004708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004709$as_echo "no" >&6; }
4710fi
4711
4712 if test "x$ac_ct_CC" = x; then
4713 CC=""
4714 else
4715 case $cross_compiling:$ac_tool_warned in
4716yes:)
cristy8b350f62009-11-15 23:12:43 +00004717{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004718$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4719ac_tool_warned=yes ;;
4720esac
4721 CC=$ac_ct_CC
4722 fi
4723else
4724 CC="$ac_cv_prog_CC"
4725fi
4726
4727if test -z "$CC"; then
4728 if test -n "$ac_tool_prefix"; then
4729 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4730set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004732$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004733if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004734 $as_echo_n "(cached) " >&6
4735else
4736 if test -n "$CC"; then
4737 ac_cv_prog_CC="$CC" # Let the user override the test.
4738else
4739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4740for as_dir in $PATH
4741do
4742 IFS=$as_save_IFS
4743 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004744 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004746 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004748 break 2
4749 fi
4750done
cristy8b350f62009-11-15 23:12:43 +00004751 done
cristy3ed852e2009-09-05 21:47:34 +00004752IFS=$as_save_IFS
4753
4754fi
4755fi
4756CC=$ac_cv_prog_CC
4757if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004759$as_echo "$CC" >&6; }
4760else
cristy8b350f62009-11-15 23:12:43 +00004761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004762$as_echo "no" >&6; }
4763fi
4764
4765
4766 fi
4767fi
4768if test -z "$CC"; then
4769 # Extract the first word of "cc", so it can be a program name with args.
4770set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004772$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004773if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004774 $as_echo_n "(cached) " >&6
4775else
4776 if test -n "$CC"; then
4777 ac_cv_prog_CC="$CC" # Let the user override the test.
4778else
4779 ac_prog_rejected=no
4780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4781for as_dir in $PATH
4782do
4783 IFS=$as_save_IFS
4784 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004785 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004787 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4788 ac_prog_rejected=yes
4789 continue
4790 fi
4791 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004793 break 2
4794 fi
4795done
cristy8b350f62009-11-15 23:12:43 +00004796 done
cristy3ed852e2009-09-05 21:47:34 +00004797IFS=$as_save_IFS
4798
4799if test $ac_prog_rejected = yes; then
4800 # We found a bogon in the path, so make sure we never use it.
4801 set dummy $ac_cv_prog_CC
4802 shift
4803 if test $# != 0; then
4804 # We chose a different compiler from the bogus one.
4805 # However, it has the same basename, so the bogon will be chosen
4806 # first if we set CC to just the basename; use the full file name.
4807 shift
4808 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4809 fi
4810fi
4811fi
4812fi
4813CC=$ac_cv_prog_CC
4814if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004816$as_echo "$CC" >&6; }
4817else
cristy8b350f62009-11-15 23:12:43 +00004818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004819$as_echo "no" >&6; }
4820fi
4821
4822
4823fi
4824if test -z "$CC"; then
4825 if test -n "$ac_tool_prefix"; then
4826 for ac_prog in cl.exe
4827 do
4828 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4829set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004831$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004832if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004833 $as_echo_n "(cached) " >&6
4834else
4835 if test -n "$CC"; then
4836 ac_cv_prog_CC="$CC" # Let the user override the test.
4837else
4838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4839for as_dir in $PATH
4840do
4841 IFS=$as_save_IFS
4842 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004843 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004845 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004847 break 2
4848 fi
4849done
cristy8b350f62009-11-15 23:12:43 +00004850 done
cristy3ed852e2009-09-05 21:47:34 +00004851IFS=$as_save_IFS
4852
4853fi
4854fi
4855CC=$ac_cv_prog_CC
4856if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004858$as_echo "$CC" >&6; }
4859else
cristy8b350f62009-11-15 23:12:43 +00004860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004861$as_echo "no" >&6; }
4862fi
4863
4864
4865 test -n "$CC" && break
4866 done
4867fi
4868if test -z "$CC"; then
4869 ac_ct_CC=$CC
4870 for ac_prog in cl.exe
4871do
4872 # Extract the first word of "$ac_prog", so it can be a program name with args.
4873set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004875$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004876if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004877 $as_echo_n "(cached) " >&6
4878else
4879 if test -n "$ac_ct_CC"; then
4880 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4881else
4882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4883for as_dir in $PATH
4884do
4885 IFS=$as_save_IFS
4886 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004887 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004889 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004891 break 2
4892 fi
4893done
cristy8b350f62009-11-15 23:12:43 +00004894 done
cristy3ed852e2009-09-05 21:47:34 +00004895IFS=$as_save_IFS
4896
4897fi
4898fi
4899ac_ct_CC=$ac_cv_prog_ac_ct_CC
4900if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004902$as_echo "$ac_ct_CC" >&6; }
4903else
cristy8b350f62009-11-15 23:12:43 +00004904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004905$as_echo "no" >&6; }
4906fi
4907
4908
4909 test -n "$ac_ct_CC" && break
4910done
4911
4912 if test "x$ac_ct_CC" = x; then
4913 CC=""
4914 else
4915 case $cross_compiling:$ac_tool_warned in
4916yes:)
cristy8b350f62009-11-15 23:12:43 +00004917{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004918$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4919ac_tool_warned=yes ;;
4920esac
4921 CC=$ac_ct_CC
4922 fi
4923fi
4924
4925fi
4926
4927
cristy8b350f62009-11-15 23:12:43 +00004928test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004929$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004930as_fn_error $? "no acceptable C compiler found in \$PATH
4931See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004932
4933# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004934$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004935set X $ac_compile
4936ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004937for ac_option in --version -v -V -qversion; do
4938 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004939case "(($ac_try" in
4940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4941 *) ac_try_echo=$ac_try;;
4942esac
cristy8b350f62009-11-15 23:12:43 +00004943eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4944$as_echo "$ac_try_echo"; } >&5
4945 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004946 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004947 if test -s conftest.err; then
4948 sed '10a\
4949... rest of stderr output deleted ...
4950 10q' conftest.err >conftest.er1
4951 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004952 fi
cristycd4c5312009-11-22 01:19:08 +00004953 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4955 test $ac_status = 0; }
4956done
cristy3ed852e2009-09-05 21:47:34 +00004957
cristy8b350f62009-11-15 23:12:43 +00004958cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004959/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004960
cristy3ed852e2009-09-05 21:47:34 +00004961int
4962main ()
4963{
4964
4965 ;
4966 return 0;
4967}
4968_ACEOF
4969ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004970ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004971# Try to create an executable without -o first, disregard a.out.
4972# It will help us diagnose broken compilers, and finding out an intuition
4973# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4975$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004976ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4977
4978# The possible output files:
4979ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4980
4981ac_rmfiles=
4982for ac_file in $ac_files
4983do
4984 case $ac_file in
4985 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4986 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4987 esac
4988done
4989rm -f $ac_rmfiles
4990
cristy8b350f62009-11-15 23:12:43 +00004991if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004992case "(($ac_try" in
4993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4994 *) ac_try_echo=$ac_try;;
4995esac
cristy8b350f62009-11-15 23:12:43 +00004996eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4997$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004998 (eval "$ac_link_default") 2>&5
4999 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00005000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5001 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00005002 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5003# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5004# in a Makefile. We should not override ac_cv_exeext if it was cached,
5005# so that the user can short-circuit this test for compilers unknown to
5006# Autoconf.
5007for ac_file in $ac_files ''
5008do
5009 test -f "$ac_file" || continue
5010 case $ac_file in
5011 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5012 ;;
5013 [ab].out )
5014 # We found the default executable, but exeext='' is most
5015 # certainly right.
5016 break;;
5017 *.* )
cristy8b350f62009-11-15 23:12:43 +00005018 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00005019 then :; else
5020 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5021 fi
5022 # We set ac_cv_exeext here because the later test for it is not
5023 # safe: cross compilers may not add the suffix if given an `-o'
5024 # argument, so we may need to know it at that point already.
5025 # Even if this section looks crufty: it has the advantage of
5026 # actually working.
5027 break;;
5028 * )
5029 break;;
5030 esac
5031done
5032test "$ac_cv_exeext" = no && ac_cv_exeext=
5033
5034else
5035 ac_file=''
5036fi
cristy8b350f62009-11-15 23:12:43 +00005037if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00005038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5039$as_echo "no" >&6; }
5040$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00005041sed 's/^/| /' conftest.$ac_ext >&5
5042
cristy8b350f62009-11-15 23:12:43 +00005043{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005044$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005045as_fn_error 77 "C compiler cannot create executables
5046See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00005047else
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5049$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00005050fi
cristycd4c5312009-11-22 01:19:08 +00005051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5052$as_echo_n "checking for C compiler default output file name... " >&6; }
5053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5054$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00005055ac_exeext=$ac_cv_exeext
5056
cristycd4c5312009-11-22 01:19:08 +00005057rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00005058ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00005059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00005060$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00005061if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00005062case "(($ac_try" in
5063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5064 *) ac_try_echo=$ac_try;;
5065esac
cristy8b350f62009-11-15 23:12:43 +00005066eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5067$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00005068 (eval "$ac_link") 2>&5
5069 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00005070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5071 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00005072 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5073# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5074# work properly (i.e., refer to `conftest.exe'), while it won't with
5075# `rm'.
5076for ac_file in conftest.exe conftest conftest.*; do
5077 test -f "$ac_file" || continue
5078 case $ac_file in
5079 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5080 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5081 break;;
5082 * ) break;;
5083 esac
5084done
5085else
cristy8b350f62009-11-15 23:12:43 +00005086 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005087$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005088as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5089See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00005090fi
cristycd4c5312009-11-22 01:19:08 +00005091rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00005092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00005093$as_echo "$ac_cv_exeext" >&6; }
5094
5095rm -f conftest.$ac_ext
5096EXEEXT=$ac_cv_exeext
5097ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00005098cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5099/* end confdefs.h. */
5100#include <stdio.h>
5101int
5102main ()
5103{
5104FILE *f = fopen ("conftest.out", "w");
5105 return ferror (f) || fclose (f) != 0;
5106
5107 ;
5108 return 0;
5109}
5110_ACEOF
5111ac_clean_files="$ac_clean_files conftest.out"
5112# Check that the compiler produces executables we can run. If not, either
5113# the compiler is broken, or we cross compile.
5114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5115$as_echo_n "checking whether we are cross compiling... " >&6; }
5116if test "$cross_compiling" != yes; then
5117 { { ac_try="$ac_link"
5118case "(($ac_try" in
5119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5120 *) ac_try_echo=$ac_try;;
5121esac
5122eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5123$as_echo "$ac_try_echo"; } >&5
5124 (eval "$ac_link") 2>&5
5125 ac_status=$?
5126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5127 test $ac_status = 0; }
5128 if { ac_try='./conftest$ac_cv_exeext'
5129 { { case "(($ac_try" in
5130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5131 *) ac_try_echo=$ac_try;;
5132esac
5133eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5134$as_echo "$ac_try_echo"; } >&5
5135 (eval "$ac_try") 2>&5
5136 ac_status=$?
5137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5138 test $ac_status = 0; }; }; then
5139 cross_compiling=no
5140 else
5141 if test "$cross_compiling" = maybe; then
5142 cross_compiling=yes
5143 else
5144 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5145$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005146as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00005147If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00005148See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00005149 fi
5150 fi
5151fi
5152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5153$as_echo "$cross_compiling" >&6; }
5154
5155rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5156ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00005157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00005158$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005159if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005160 $as_echo_n "(cached) " >&6
5161else
cristy8b350f62009-11-15 23:12:43 +00005162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005163/* end confdefs.h. */
5164
5165int
5166main ()
5167{
5168
5169 ;
5170 return 0;
5171}
5172_ACEOF
5173rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00005174if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00005175case "(($ac_try" in
5176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5177 *) ac_try_echo=$ac_try;;
5178esac
cristy8b350f62009-11-15 23:12:43 +00005179eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5180$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00005181 (eval "$ac_compile") 2>&5
5182 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00005183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5184 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00005185 for ac_file in conftest.o conftest.obj conftest.*; do
5186 test -f "$ac_file" || continue;
5187 case $ac_file in
5188 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5189 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5190 break;;
5191 esac
5192done
5193else
5194 $as_echo "$as_me: failed program was:" >&5
5195sed 's/^/| /' conftest.$ac_ext >&5
5196
cristy8b350f62009-11-15 23:12:43 +00005197{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005198$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005199as_fn_error $? "cannot compute suffix of object files: cannot compile
5200See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00005201fi
cristy3ed852e2009-09-05 21:47:34 +00005202rm -f conftest.$ac_cv_objext conftest.$ac_ext
5203fi
cristy8b350f62009-11-15 23:12:43 +00005204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00005205$as_echo "$ac_cv_objext" >&6; }
5206OBJEXT=$ac_cv_objext
5207ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00005208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00005209$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005210if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005211 $as_echo_n "(cached) " >&6
5212else
cristy8b350f62009-11-15 23:12:43 +00005213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005214/* end confdefs.h. */
5215
5216int
5217main ()
5218{
5219#ifndef __GNUC__
5220 choke me
5221#endif
5222
5223 ;
5224 return 0;
5225}
5226_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005227if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005228 ac_compiler_gnu=yes
5229else
cristy8b350f62009-11-15 23:12:43 +00005230 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00005231fi
cristy3ed852e2009-09-05 21:47:34 +00005232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5233ac_cv_c_compiler_gnu=$ac_compiler_gnu
5234
5235fi
cristy8b350f62009-11-15 23:12:43 +00005236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00005237$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5238if test $ac_compiler_gnu = yes; then
5239 GCC=yes
5240else
5241 GCC=
5242fi
5243ac_test_CFLAGS=${CFLAGS+set}
5244ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00005245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005246$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005247if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005248 $as_echo_n "(cached) " >&6
5249else
5250 ac_save_c_werror_flag=$ac_c_werror_flag
5251 ac_c_werror_flag=yes
5252 ac_cv_prog_cc_g=no
5253 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005255/* end confdefs.h. */
5256
5257int
5258main ()
5259{
5260
5261 ;
5262 return 0;
5263}
5264_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005265if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005266 ac_cv_prog_cc_g=yes
5267else
cristy8b350f62009-11-15 23:12:43 +00005268 CFLAGS=""
5269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005270/* end confdefs.h. */
5271
5272int
5273main ()
5274{
5275
5276 ;
5277 return 0;
5278}
5279_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005280if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005281
cristy8b350f62009-11-15 23:12:43 +00005282else
5283 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00005284 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005286/* end confdefs.h. */
5287
5288int
5289main ()
5290{
5291
5292 ;
5293 return 0;
5294}
5295_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005296if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005297 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00005298fi
cristy3ed852e2009-09-05 21:47:34 +00005299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5300fi
cristy3ed852e2009-09-05 21:47:34 +00005301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5302fi
cristy3ed852e2009-09-05 21:47:34 +00005303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5304 ac_c_werror_flag=$ac_save_c_werror_flag
5305fi
cristy8b350f62009-11-15 23:12:43 +00005306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005307$as_echo "$ac_cv_prog_cc_g" >&6; }
5308if test "$ac_test_CFLAGS" = set; then
5309 CFLAGS=$ac_save_CFLAGS
5310elif test $ac_cv_prog_cc_g = yes; then
5311 if test "$GCC" = yes; then
5312 CFLAGS="-g -O2"
5313 else
5314 CFLAGS="-g"
5315 fi
5316else
5317 if test "$GCC" = yes; then
5318 CFLAGS="-O2"
5319 else
5320 CFLAGS=
5321 fi
5322fi
cristy8b350f62009-11-15 23:12:43 +00005323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005324$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005325if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005326 $as_echo_n "(cached) " >&6
5327else
5328 ac_cv_prog_cc_c89=no
5329ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00005330cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005331/* end confdefs.h. */
5332#include <stdarg.h>
5333#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00005334struct stat;
cristy3ed852e2009-09-05 21:47:34 +00005335/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5336struct buf { int x; };
5337FILE * (*rcsopen) (struct buf *, struct stat *, int);
5338static char *e (p, i)
5339 char **p;
5340 int i;
5341{
5342 return p[i];
5343}
5344static char *f (char * (*g) (char **, int), char **p, ...)
5345{
5346 char *s;
5347 va_list v;
5348 va_start (v,p);
5349 s = g (p, va_arg (v,int));
5350 va_end (v);
5351 return s;
5352}
5353
5354/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5355 function prototypes and stuff, but not '\xHH' hex character constants.
5356 These don't provoke an error unfortunately, instead are silently treated
5357 as 'x'. The following induces an error, until -std is added to get
5358 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5359 array size at least. It's necessary to write '\x00'==0 to get something
5360 that's true only with -std. */
5361int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5362
5363/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5364 inside strings and character constants. */
5365#define FOO(x) 'x'
5366int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5367
5368int test (int i, double x);
5369struct s1 {int (*f) (int a);};
5370struct s2 {int (*f) (double a);};
5371int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5372int argc;
5373char **argv;
5374int
5375main ()
5376{
5377return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5378 ;
5379 return 0;
5380}
5381_ACEOF
5382for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5383 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5384do
5385 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005386 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005387 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005388fi
cristy3ed852e2009-09-05 21:47:34 +00005389rm -f core conftest.err conftest.$ac_objext
5390 test "x$ac_cv_prog_cc_c89" != "xno" && break
5391done
5392rm -f conftest.$ac_ext
5393CC=$ac_save_CC
5394
5395fi
5396# AC_CACHE_VAL
5397case "x$ac_cv_prog_cc_c89" in
5398 x)
cristy8b350f62009-11-15 23:12:43 +00005399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005400$as_echo "none needed" >&6; } ;;
5401 xno)
cristy8b350f62009-11-15 23:12:43 +00005402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005403$as_echo "unsupported" >&6; } ;;
5404 *)
5405 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005407$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5408esac
cristy8b350f62009-11-15 23:12:43 +00005409if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005410
cristy8b350f62009-11-15 23:12:43 +00005411fi
cristy3ed852e2009-09-05 21:47:34 +00005412
5413ac_ext=c
5414ac_cpp='$CPP $CPPFLAGS'
5415ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5416ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5417ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005418
cristya5bda012013-11-03 18:05:38 +00005419ac_ext=c
5420ac_cpp='$CPP $CPPFLAGS'
5421ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5422ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5423ac_compiler_gnu=$ac_cv_c_compiler_gnu
5424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5425$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5426if ${am_cv_prog_cc_c_o+:} false; then :
5427 $as_echo_n "(cached) " >&6
5428else
5429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5430/* end confdefs.h. */
5431
5432int
5433main ()
5434{
5435
5436 ;
5437 return 0;
5438}
5439_ACEOF
5440 # Make sure it works both with $CC and with simple cc.
5441 # Following AC_PROG_CC_C_O, we do the test twice because some
5442 # compilers refuse to overwrite an existing .o file with -o,
5443 # though they will create one.
5444 am_cv_prog_cc_c_o=yes
5445 for am_i in 1 2; do
5446 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5447 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5448 ac_status=$?
5449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450 (exit $ac_status); } \
5451 && test -f conftest2.$ac_objext; then
5452 : OK
5453 else
5454 am_cv_prog_cc_c_o=no
5455 break
5456 fi
5457 done
5458 rm -f core conftest*
5459 unset am_i
5460fi
5461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5462$as_echo "$am_cv_prog_cc_c_o" >&6; }
5463if test "$am_cv_prog_cc_c_o" != yes; then
5464 # Losing compiler, so override with the script.
5465 # FIXME: It is wrong to rewrite CC.
5466 # But if we don't then we get into trouble of one sort or another.
5467 # A longer-term fix would be to have automake use am__CC in this case,
5468 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5469 CC="$am_aux_dir/compile $CC"
5470fi
5471ac_ext=c
5472ac_cpp='$CPP $CPPFLAGS'
5473ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5474ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5475ac_compiler_gnu=$ac_cv_c_compiler_gnu
5476
5477
cristy73bd4a52010-10-05 11:24:23 +00005478depcc="$CC" am_compiler_list=
5479
5480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5481$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005482if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00005483 $as_echo_n "(cached) " >&6
5484else
5485 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5486 # We make a subdir and do the tests there. Otherwise we can end up
5487 # making bogus files that we don't know about and never remove. For
5488 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00005489 # making a dummy file named 'D' -- because '-MD' means "put the output
5490 # in D".
cristy7247bba2012-02-05 16:37:27 +00005491 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00005492 mkdir conftest.dir
5493 # Copy depcomp to subdir because otherwise we won't find it if we're
5494 # using a relative directory.
5495 cp "$am_depcomp" conftest.dir
5496 cd conftest.dir
5497 # We will build objects and dependencies in a subdirectory because
5498 # it helps to detect inapplicable dependency modes. For instance
5499 # both Tru64's cc and ICC support -MD to output dependencies as a
5500 # side effect of compilation, but ICC will put the dependencies in
5501 # the current directory while Tru64 will put them in the object
5502 # directory.
5503 mkdir sub
5504
5505 am_cv_CC_dependencies_compiler_type=none
5506 if test "$am_compiler_list" = ""; then
5507 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5508 fi
5509 am__universal=false
5510 case " $depcc " in #(
5511 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5512 esac
5513
5514 for depmode in $am_compiler_list; do
5515 # Setup a source with many dependencies, because some compilers
5516 # like to wrap large dependency lists on column 80 (with \), and
5517 # we should not choose a depcomp mode which is confused by this.
5518 #
5519 # We need to recreate these files for each test, as the compiler may
5520 # overwrite some of them when testing with obscure command lines.
5521 # This happens at least with the AIX C compiler.
5522 : > sub/conftest.c
5523 for i in 1 2 3 4 5 6; do
5524 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00005525 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5526 # Solaris 10 /bin/sh.
5527 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00005528 done
5529 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5530
cristyc0890a62012-07-19 00:18:20 +00005531 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00005532 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00005533 # handle '-M -o', and we need to detect this. Also, some Intel
5534 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00005535 am__obj=sub/conftest.${OBJEXT-o}
5536 am__minus_obj="-o $am__obj"
5537 case $depmode in
5538 gcc)
5539 # This depmode causes a compiler race in universal mode.
5540 test "$am__universal" = false || continue
5541 ;;
5542 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00005543 # After this tag, mechanisms are not by side-effect, so they'll
5544 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00005545 if test "x$enable_dependency_tracking" = xyes; then
5546 continue
5547 else
5548 break
5549 fi
5550 ;;
cristy7247bba2012-02-05 16:37:27 +00005551 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00005552 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00005553 # not run yet. These depmodes are late enough in the game, and
5554 # so weak that their functioning should not be impacted.
5555 am__obj=conftest.${OBJEXT-o}
5556 am__minus_obj=
5557 ;;
5558 none) break ;;
5559 esac
5560 if depmode=$depmode \
5561 source=sub/conftest.c object=$am__obj \
5562 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5563 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5564 >/dev/null 2>conftest.err &&
5565 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5566 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5567 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5568 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5569 # icc doesn't choke on unknown options, it will just issue warnings
5570 # or remarks (even with -Werror). So we grep stderr for any message
5571 # that says an option was ignored or not supported.
5572 # When given -MP, icc 7.0 and 7.1 complain thusly:
5573 # icc: Command line warning: ignoring option '-M'; no argument required
5574 # The diagnosis changed in icc 8.0:
5575 # icc: Command line remark: option '-MP' not supported
5576 if (grep 'ignoring option' conftest.err ||
5577 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5578 am_cv_CC_dependencies_compiler_type=$depmode
5579 break
5580 fi
5581 fi
5582 done
5583
5584 cd ..
5585 rm -rf conftest.dir
5586else
5587 am_cv_CC_dependencies_compiler_type=none
5588fi
5589
5590fi
5591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5592$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5593CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5594
5595 if
5596 test "x$enable_dependency_tracking" != xno \
5597 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5598 am__fastdepCC_TRUE=
5599 am__fastdepCC_FALSE='#'
5600else
5601 am__fastdepCC_TRUE='#'
5602 am__fastdepCC_FALSE=
5603fi
5604
5605
cristy3ed852e2009-09-05 21:47:34 +00005606
cristya0b81c32010-01-22 02:54:33 +00005607ac_ext=c
5608ac_cpp='$CPP $CPPFLAGS'
5609ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5610ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5611ac_compiler_gnu=$ac_cv_c_compiler_gnu
5612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5613$as_echo_n "checking how to run the C preprocessor... " >&6; }
5614# On Suns, sometimes $CPP names a directory.
5615if test -n "$CPP" && test -d "$CPP"; then
5616 CPP=
5617fi
5618if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005619 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005620 $as_echo_n "(cached) " >&6
5621else
5622 # Double quotes because CPP needs to be expanded
5623 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5624 do
5625 ac_preproc_ok=false
5626for ac_c_preproc_warn_flag in '' yes
5627do
5628 # Use a header file that comes with gcc, so configuring glibc
5629 # with a fresh cross-compiler works.
5630 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5631 # <limits.h> exists even on freestanding compilers.
5632 # On the NeXT, cc -E runs the code through the compiler's parser,
5633 # not just through cpp. "Syntax error" is here to catch this case.
5634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5635/* end confdefs.h. */
5636#ifdef __STDC__
5637# include <limits.h>
5638#else
5639# include <assert.h>
5640#endif
5641 Syntax error
5642_ACEOF
5643if ac_fn_c_try_cpp "$LINENO"; then :
5644
5645else
5646 # Broken: fails on valid input.
5647continue
5648fi
cristyda16f162011-02-19 23:52:17 +00005649rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005650
5651 # OK, works on sane cases. Now check whether nonexistent headers
5652 # can be detected and how.
5653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5654/* end confdefs.h. */
5655#include <ac_nonexistent.h>
5656_ACEOF
5657if ac_fn_c_try_cpp "$LINENO"; then :
5658 # Broken: success on invalid input.
5659continue
5660else
5661 # Passes both tests.
5662ac_preproc_ok=:
5663break
5664fi
cristyda16f162011-02-19 23:52:17 +00005665rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005666
5667done
5668# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005669rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005670if $ac_preproc_ok; then :
5671 break
5672fi
5673
5674 done
5675 ac_cv_prog_CPP=$CPP
5676
5677fi
5678 CPP=$ac_cv_prog_CPP
5679else
5680 ac_cv_prog_CPP=$CPP
5681fi
5682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5683$as_echo "$CPP" >&6; }
5684ac_preproc_ok=false
5685for ac_c_preproc_warn_flag in '' yes
5686do
5687 # Use a header file that comes with gcc, so configuring glibc
5688 # with a fresh cross-compiler works.
5689 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5690 # <limits.h> exists even on freestanding compilers.
5691 # On the NeXT, cc -E runs the code through the compiler's parser,
5692 # not just through cpp. "Syntax error" is here to catch this case.
5693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5694/* end confdefs.h. */
5695#ifdef __STDC__
5696# include <limits.h>
5697#else
5698# include <assert.h>
5699#endif
5700 Syntax error
5701_ACEOF
5702if ac_fn_c_try_cpp "$LINENO"; then :
5703
5704else
5705 # Broken: fails on valid input.
5706continue
5707fi
cristyda16f162011-02-19 23:52:17 +00005708rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005709
5710 # OK, works on sane cases. Now check whether nonexistent headers
5711 # can be detected and how.
5712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5713/* end confdefs.h. */
5714#include <ac_nonexistent.h>
5715_ACEOF
5716if ac_fn_c_try_cpp "$LINENO"; then :
5717 # Broken: success on invalid input.
5718continue
5719else
5720 # Passes both tests.
5721ac_preproc_ok=:
5722break
5723fi
cristyda16f162011-02-19 23:52:17 +00005724rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005725
5726done
5727# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005728rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005729if $ac_preproc_ok; then :
5730
5731else
5732 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5733$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005734as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5735See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005736fi
5737
5738ac_ext=c
5739ac_cpp='$CPP $CPPFLAGS'
5740ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5741ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5742ac_compiler_gnu=$ac_cv_c_compiler_gnu
5743
5744
5745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5746$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005747if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005748 $as_echo_n "(cached) " >&6
5749else
5750 if test -z "$GREP"; then
5751 ac_path_GREP_found=false
5752 # Loop through the user's path and test for each of PROGNAME-LIST
5753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5754for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5755do
5756 IFS=$as_save_IFS
5757 test -z "$as_dir" && as_dir=.
5758 for ac_prog in grep ggrep; do
5759 for ac_exec_ext in '' $ac_executable_extensions; do
5760 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005761 as_fn_executable_p "$ac_path_GREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005762# Check for GNU ac_path_GREP and select it if it is found.
5763 # Check for GNU $ac_path_GREP
5764case `"$ac_path_GREP" --version 2>&1` in
5765*GNU*)
5766 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5767*)
5768 ac_count=0
5769 $as_echo_n 0123456789 >"conftest.in"
5770 while :
5771 do
5772 cat "conftest.in" "conftest.in" >"conftest.tmp"
5773 mv "conftest.tmp" "conftest.in"
5774 cp "conftest.in" "conftest.nl"
5775 $as_echo 'GREP' >> "conftest.nl"
5776 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5777 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5778 as_fn_arith $ac_count + 1 && ac_count=$as_val
5779 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5780 # Best one so far, save it but keep looking for a better one
5781 ac_cv_path_GREP="$ac_path_GREP"
5782 ac_path_GREP_max=$ac_count
5783 fi
5784 # 10*(2^10) chars as input seems more than enough
5785 test $ac_count -gt 10 && break
5786 done
5787 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5788esac
5789
5790 $ac_path_GREP_found && break 3
5791 done
5792 done
5793 done
5794IFS=$as_save_IFS
5795 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005796 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005797 fi
5798else
5799 ac_cv_path_GREP=$GREP
5800fi
5801
5802fi
5803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5804$as_echo "$ac_cv_path_GREP" >&6; }
5805 GREP="$ac_cv_path_GREP"
5806
5807
5808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5809$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005810if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005811 $as_echo_n "(cached) " >&6
5812else
5813 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5814 then ac_cv_path_EGREP="$GREP -E"
5815 else
5816 if test -z "$EGREP"; then
5817 ac_path_EGREP_found=false
5818 # Loop through the user's path and test for each of PROGNAME-LIST
5819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5820for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5821do
5822 IFS=$as_save_IFS
5823 test -z "$as_dir" && as_dir=.
5824 for ac_prog in egrep; do
5825 for ac_exec_ext in '' $ac_executable_extensions; do
5826 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005827 as_fn_executable_p "$ac_path_EGREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005828# Check for GNU ac_path_EGREP and select it if it is found.
5829 # Check for GNU $ac_path_EGREP
5830case `"$ac_path_EGREP" --version 2>&1` in
5831*GNU*)
5832 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5833*)
5834 ac_count=0
5835 $as_echo_n 0123456789 >"conftest.in"
5836 while :
5837 do
5838 cat "conftest.in" "conftest.in" >"conftest.tmp"
5839 mv "conftest.tmp" "conftest.in"
5840 cp "conftest.in" "conftest.nl"
5841 $as_echo 'EGREP' >> "conftest.nl"
5842 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5843 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5844 as_fn_arith $ac_count + 1 && ac_count=$as_val
5845 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5846 # Best one so far, save it but keep looking for a better one
5847 ac_cv_path_EGREP="$ac_path_EGREP"
5848 ac_path_EGREP_max=$ac_count
5849 fi
5850 # 10*(2^10) chars as input seems more than enough
5851 test $ac_count -gt 10 && break
5852 done
5853 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5854esac
5855
5856 $ac_path_EGREP_found && break 3
5857 done
5858 done
5859 done
5860IFS=$as_save_IFS
5861 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005862 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005863 fi
5864else
5865 ac_cv_path_EGREP=$EGREP
5866fi
5867
5868 fi
5869fi
5870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5871$as_echo "$ac_cv_path_EGREP" >&6; }
5872 EGREP="$ac_cv_path_EGREP"
5873
5874
5875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5876$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005877if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005878 $as_echo_n "(cached) " >&6
5879else
5880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5881/* end confdefs.h. */
5882#include <stdlib.h>
5883#include <stdarg.h>
5884#include <string.h>
5885#include <float.h>
5886
5887int
5888main ()
5889{
5890
5891 ;
5892 return 0;
5893}
5894_ACEOF
5895if ac_fn_c_try_compile "$LINENO"; then :
5896 ac_cv_header_stdc=yes
5897else
5898 ac_cv_header_stdc=no
5899fi
5900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5901
5902if test $ac_cv_header_stdc = yes; then
5903 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5905/* end confdefs.h. */
5906#include <string.h>
5907
5908_ACEOF
5909if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5910 $EGREP "memchr" >/dev/null 2>&1; then :
5911
5912else
5913 ac_cv_header_stdc=no
5914fi
5915rm -f conftest*
5916
5917fi
5918
5919if test $ac_cv_header_stdc = yes; then
5920 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5922/* end confdefs.h. */
5923#include <stdlib.h>
5924
5925_ACEOF
5926if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5927 $EGREP "free" >/dev/null 2>&1; then :
5928
5929else
5930 ac_cv_header_stdc=no
5931fi
5932rm -f conftest*
5933
5934fi
5935
5936if test $ac_cv_header_stdc = yes; then
5937 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5938 if test "$cross_compiling" = yes; then :
5939 :
5940else
5941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5942/* end confdefs.h. */
5943#include <ctype.h>
5944#include <stdlib.h>
5945#if ((' ' & 0x0FF) == 0x020)
5946# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5947# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5948#else
5949# define ISLOWER(c) \
5950 (('a' <= (c) && (c) <= 'i') \
5951 || ('j' <= (c) && (c) <= 'r') \
5952 || ('s' <= (c) && (c) <= 'z'))
5953# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5954#endif
5955
5956#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5957int
5958main ()
5959{
5960 int i;
5961 for (i = 0; i < 256; i++)
5962 if (XOR (islower (i), ISLOWER (i))
5963 || toupper (i) != TOUPPER (i))
5964 return 2;
5965 return 0;
5966}
5967_ACEOF
5968if ac_fn_c_try_run "$LINENO"; then :
5969
5970else
5971 ac_cv_header_stdc=no
5972fi
5973rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5974 conftest.$ac_objext conftest.beam conftest.$ac_ext
5975fi
5976
5977fi
5978fi
5979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5980$as_echo "$ac_cv_header_stdc" >&6; }
5981if test $ac_cv_header_stdc = yes; then
5982
5983$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5984
5985fi
5986
5987# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5988for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5989 inttypes.h stdint.h unistd.h
5990do :
5991 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5992ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5993"
cristy98dddb52010-11-04 00:30:15 +00005994if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005995 cat >>confdefs.h <<_ACEOF
5996#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5997_ACEOF
5998
5999fi
6000
6001done
6002
6003
6004
6005 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 +00006006if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00006007 MINIX=yes
6008else
6009 MINIX=
6010fi
6011
6012
6013 if test "$MINIX" = yes; then
6014
6015$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6016
6017
6018$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6019
6020
6021$as_echo "#define _MINIX 1" >>confdefs.h
6022
6023 fi
6024
6025
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6027$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006028if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006029 $as_echo_n "(cached) " >&6
6030else
6031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6032/* end confdefs.h. */
6033
cristy14fefe52012-05-21 00:59:18 +00006034# define __EXTENSIONS__ 1
6035 $ac_includes_default
cristya0b81c32010-01-22 02:54:33 +00006036int
6037main ()
6038{
6039
6040 ;
6041 return 0;
6042}
6043_ACEOF
6044if ac_fn_c_try_compile "$LINENO"; then :
6045 ac_cv_safe_to_define___extensions__=yes
6046else
6047 ac_cv_safe_to_define___extensions__=no
6048fi
6049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6050fi
6051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6052$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6053 test $ac_cv_safe_to_define___extensions__ = yes &&
6054 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6055
6056 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6057
6058 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6059
6060 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6061
6062 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6063
6064
6065
cristy9af1cbf2014-12-28 22:03:09 +00006066# ==============================================================================
6067# Find required base packages
6068# ==============================================================================
cristy9e007fe2015-01-03 16:05:07 +00006069if test -n "$ac_tool_prefix"; then
6070 for ac_prog in ar lib "link -lib"
6071 do
6072 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6073set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6075$as_echo_n "checking for $ac_word... " >&6; }
6076if ${ac_cv_prog_AR+:} false; then :
6077 $as_echo_n "(cached) " >&6
6078else
6079 if test -n "$AR"; then
6080 ac_cv_prog_AR="$AR" # Let the user override the test.
6081else
6082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6083for as_dir in $PATH
6084do
6085 IFS=$as_save_IFS
6086 test -z "$as_dir" && as_dir=.
6087 for ac_exec_ext in '' $ac_executable_extensions; do
6088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6089 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6091 break 2
6092 fi
6093done
6094 done
6095IFS=$as_save_IFS
6096
6097fi
6098fi
6099AR=$ac_cv_prog_AR
6100if test -n "$AR"; then
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6102$as_echo "$AR" >&6; }
6103else
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6105$as_echo "no" >&6; }
6106fi
6107
6108
6109 test -n "$AR" && break
6110 done
6111fi
6112if test -z "$AR"; then
6113 ac_ct_AR=$AR
6114 for ac_prog in ar lib "link -lib"
6115do
6116 # Extract the first word of "$ac_prog", so it can be a program name with args.
6117set dummy $ac_prog; ac_word=$2
6118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6119$as_echo_n "checking for $ac_word... " >&6; }
6120if ${ac_cv_prog_ac_ct_AR+:} false; then :
6121 $as_echo_n "(cached) " >&6
6122else
6123 if test -n "$ac_ct_AR"; then
6124 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6125else
6126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6127for as_dir in $PATH
6128do
6129 IFS=$as_save_IFS
6130 test -z "$as_dir" && as_dir=.
6131 for ac_exec_ext in '' $ac_executable_extensions; do
6132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6133 ac_cv_prog_ac_ct_AR="$ac_prog"
6134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6135 break 2
6136 fi
6137done
6138 done
6139IFS=$as_save_IFS
6140
6141fi
6142fi
6143ac_ct_AR=$ac_cv_prog_ac_ct_AR
6144if test -n "$ac_ct_AR"; then
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6146$as_echo "$ac_ct_AR" >&6; }
6147else
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6149$as_echo "no" >&6; }
6150fi
6151
6152
6153 test -n "$ac_ct_AR" && break
6154done
6155
6156 if test "x$ac_ct_AR" = x; then
6157 AR="false"
6158 else
6159 case $cross_compiling:$ac_tool_warned in
6160yes:)
6161{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6162$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6163ac_tool_warned=yes ;;
6164esac
6165 AR=$ac_ct_AR
6166 fi
6167fi
6168
6169: ${AR=ar}
6170
6171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
6172$as_echo_n "checking the archiver ($AR) interface... " >&6; }
6173if ${am_cv_ar_interface+:} false; then :
6174 $as_echo_n "(cached) " >&6
6175else
6176 ac_ext=c
6177ac_cpp='$CPP $CPPFLAGS'
6178ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6179ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6180ac_compiler_gnu=$ac_cv_c_compiler_gnu
6181
6182 am_cv_ar_interface=ar
6183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6184/* end confdefs.h. */
6185int some_variable = 0;
6186_ACEOF
6187if ac_fn_c_try_compile "$LINENO"; then :
6188 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
6189 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6190 (eval $am_ar_try) 2>&5
6191 ac_status=$?
6192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6193 test $ac_status = 0; }
6194 if test "$ac_status" -eq 0; then
6195 am_cv_ar_interface=ar
6196 else
6197 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
6198 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6199 (eval $am_ar_try) 2>&5
6200 ac_status=$?
6201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6202 test $ac_status = 0; }
6203 if test "$ac_status" -eq 0; then
6204 am_cv_ar_interface=lib
6205 else
6206 am_cv_ar_interface=unknown
6207 fi
6208 fi
6209 rm -f conftest.lib libconftest.a
6210
6211fi
6212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6213 ac_ext=c
6214ac_cpp='$CPP $CPPFLAGS'
6215ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6216ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6217ac_compiler_gnu=$ac_cv_c_compiler_gnu
6218
6219fi
6220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
6221$as_echo "$am_cv_ar_interface" >&6; }
6222
6223case $am_cv_ar_interface in
6224ar)
6225 ;;
6226lib)
6227 # Microsoft lib, so override with the ar-lib wrapper script.
6228 # FIXME: It is wrong to rewrite AR.
6229 # But if we don't then we get into trouble of one sort or another.
6230 # A longer-term fix would be to have automake use am__AR in this case,
6231 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
6232 # similar.
6233 AR="$am_aux_dir/ar-lib $AR"
6234 ;;
6235unknown)
6236 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
6237 ;;
6238esac
cristy9af1cbf2014-12-28 22:03:09 +00006239
cristya0b81c32010-01-22 02:54:33 +00006240ac_ext=c
6241ac_cpp='$CPP $CPPFLAGS'
6242ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6243ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6244ac_compiler_gnu=$ac_cv_c_compiler_gnu
6245if test -n "$ac_tool_prefix"; then
6246 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6247set dummy ${ac_tool_prefix}gcc; ac_word=$2
6248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6249$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006250if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006251 $as_echo_n "(cached) " >&6
6252else
6253 if test -n "$CC"; then
6254 ac_cv_prog_CC="$CC" # Let the user override the test.
6255else
6256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6257for as_dir in $PATH
6258do
6259 IFS=$as_save_IFS
6260 test -z "$as_dir" && as_dir=.
6261 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006263 ac_cv_prog_CC="${ac_tool_prefix}gcc"
6264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6265 break 2
6266 fi
6267done
6268 done
6269IFS=$as_save_IFS
6270
6271fi
6272fi
6273CC=$ac_cv_prog_CC
6274if test -n "$CC"; then
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6276$as_echo "$CC" >&6; }
6277else
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6279$as_echo "no" >&6; }
6280fi
6281
6282
6283fi
6284if test -z "$ac_cv_prog_CC"; then
6285 ac_ct_CC=$CC
6286 # Extract the first word of "gcc", so it can be a program name with args.
6287set dummy gcc; ac_word=$2
6288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6289$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006290if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006291 $as_echo_n "(cached) " >&6
6292else
6293 if test -n "$ac_ct_CC"; then
6294 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6295else
6296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6297for as_dir in $PATH
6298do
6299 IFS=$as_save_IFS
6300 test -z "$as_dir" && as_dir=.
6301 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006303 ac_cv_prog_ac_ct_CC="gcc"
6304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6305 break 2
6306 fi
6307done
6308 done
6309IFS=$as_save_IFS
6310
6311fi
6312fi
6313ac_ct_CC=$ac_cv_prog_ac_ct_CC
6314if test -n "$ac_ct_CC"; then
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6316$as_echo "$ac_ct_CC" >&6; }
6317else
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6319$as_echo "no" >&6; }
6320fi
6321
6322 if test "x$ac_ct_CC" = x; then
6323 CC=""
6324 else
6325 case $cross_compiling:$ac_tool_warned in
6326yes:)
6327{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6328$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6329ac_tool_warned=yes ;;
6330esac
6331 CC=$ac_ct_CC
6332 fi
6333else
6334 CC="$ac_cv_prog_CC"
6335fi
6336
6337if test -z "$CC"; then
6338 if test -n "$ac_tool_prefix"; then
6339 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6340set dummy ${ac_tool_prefix}cc; ac_word=$2
6341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6342$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006343if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006344 $as_echo_n "(cached) " >&6
6345else
6346 if test -n "$CC"; then
6347 ac_cv_prog_CC="$CC" # Let the user override the test.
6348else
6349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6350for as_dir in $PATH
6351do
6352 IFS=$as_save_IFS
6353 test -z "$as_dir" && as_dir=.
6354 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006356 ac_cv_prog_CC="${ac_tool_prefix}cc"
6357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6358 break 2
6359 fi
6360done
6361 done
6362IFS=$as_save_IFS
6363
6364fi
6365fi
6366CC=$ac_cv_prog_CC
6367if test -n "$CC"; then
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6369$as_echo "$CC" >&6; }
6370else
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6372$as_echo "no" >&6; }
6373fi
6374
6375
6376 fi
6377fi
6378if test -z "$CC"; then
6379 # Extract the first word of "cc", so it can be a program name with args.
6380set dummy cc; ac_word=$2
6381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6382$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006383if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006384 $as_echo_n "(cached) " >&6
6385else
6386 if test -n "$CC"; then
6387 ac_cv_prog_CC="$CC" # Let the user override the test.
6388else
6389 ac_prog_rejected=no
6390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6391for as_dir in $PATH
6392do
6393 IFS=$as_save_IFS
6394 test -z "$as_dir" && as_dir=.
6395 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006396 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006397 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6398 ac_prog_rejected=yes
6399 continue
6400 fi
6401 ac_cv_prog_CC="cc"
6402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6403 break 2
6404 fi
6405done
6406 done
6407IFS=$as_save_IFS
6408
6409if test $ac_prog_rejected = yes; then
6410 # We found a bogon in the path, so make sure we never use it.
6411 set dummy $ac_cv_prog_CC
6412 shift
6413 if test $# != 0; then
6414 # We chose a different compiler from the bogus one.
6415 # However, it has the same basename, so the bogon will be chosen
6416 # first if we set CC to just the basename; use the full file name.
6417 shift
6418 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6419 fi
6420fi
6421fi
6422fi
6423CC=$ac_cv_prog_CC
6424if test -n "$CC"; then
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6426$as_echo "$CC" >&6; }
6427else
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6429$as_echo "no" >&6; }
6430fi
6431
6432
6433fi
6434if test -z "$CC"; then
6435 if test -n "$ac_tool_prefix"; then
6436 for ac_prog in cl.exe
6437 do
6438 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6439set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6441$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006442if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006443 $as_echo_n "(cached) " >&6
6444else
6445 if test -n "$CC"; then
6446 ac_cv_prog_CC="$CC" # Let the user override the test.
6447else
6448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6449for as_dir in $PATH
6450do
6451 IFS=$as_save_IFS
6452 test -z "$as_dir" && as_dir=.
6453 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006455 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6457 break 2
6458 fi
6459done
6460 done
6461IFS=$as_save_IFS
6462
6463fi
6464fi
6465CC=$ac_cv_prog_CC
6466if test -n "$CC"; then
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6468$as_echo "$CC" >&6; }
6469else
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6471$as_echo "no" >&6; }
6472fi
6473
6474
6475 test -n "$CC" && break
6476 done
6477fi
6478if test -z "$CC"; then
6479 ac_ct_CC=$CC
6480 for ac_prog in cl.exe
6481do
6482 # Extract the first word of "$ac_prog", so it can be a program name with args.
6483set dummy $ac_prog; ac_word=$2
6484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6485$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006486if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006487 $as_echo_n "(cached) " >&6
6488else
6489 if test -n "$ac_ct_CC"; then
6490 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6491else
6492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6493for as_dir in $PATH
6494do
6495 IFS=$as_save_IFS
6496 test -z "$as_dir" && as_dir=.
6497 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006499 ac_cv_prog_ac_ct_CC="$ac_prog"
6500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6501 break 2
6502 fi
6503done
6504 done
6505IFS=$as_save_IFS
6506
6507fi
6508fi
6509ac_ct_CC=$ac_cv_prog_ac_ct_CC
6510if test -n "$ac_ct_CC"; then
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6512$as_echo "$ac_ct_CC" >&6; }
6513else
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6515$as_echo "no" >&6; }
6516fi
6517
6518
6519 test -n "$ac_ct_CC" && break
6520done
6521
6522 if test "x$ac_ct_CC" = x; then
6523 CC=""
6524 else
6525 case $cross_compiling:$ac_tool_warned in
6526yes:)
6527{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6528$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6529ac_tool_warned=yes ;;
6530esac
6531 CC=$ac_ct_CC
6532 fi
6533fi
6534
6535fi
6536
6537
6538test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6539$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00006540as_fn_error $? "no acceptable C compiler found in \$PATH
6541See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00006542
6543# Provide some information about the compiler.
6544$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6545set X $ac_compile
6546ac_compiler=$2
6547for ac_option in --version -v -V -qversion; do
6548 { { ac_try="$ac_compiler $ac_option >&5"
6549case "(($ac_try" in
6550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6551 *) ac_try_echo=$ac_try;;
6552esac
6553eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6554$as_echo "$ac_try_echo"; } >&5
6555 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6556 ac_status=$?
6557 if test -s conftest.err; then
6558 sed '10a\
6559... rest of stderr output deleted ...
6560 10q' conftest.err >conftest.er1
6561 cat conftest.er1 >&5
6562 fi
6563 rm -f conftest.er1 conftest.err
6564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6565 test $ac_status = 0; }
6566done
6567
6568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6569$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006570if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006571 $as_echo_n "(cached) " >&6
6572else
6573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6574/* end confdefs.h. */
6575
6576int
6577main ()
6578{
6579#ifndef __GNUC__
6580 choke me
6581#endif
6582
6583 ;
6584 return 0;
6585}
6586_ACEOF
6587if ac_fn_c_try_compile "$LINENO"; then :
6588 ac_compiler_gnu=yes
6589else
6590 ac_compiler_gnu=no
6591fi
6592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6593ac_cv_c_compiler_gnu=$ac_compiler_gnu
6594
6595fi
6596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6597$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6598if test $ac_compiler_gnu = yes; then
6599 GCC=yes
6600else
6601 GCC=
6602fi
6603ac_test_CFLAGS=${CFLAGS+set}
6604ac_save_CFLAGS=$CFLAGS
6605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6606$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006607if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006608 $as_echo_n "(cached) " >&6
6609else
6610 ac_save_c_werror_flag=$ac_c_werror_flag
6611 ac_c_werror_flag=yes
6612 ac_cv_prog_cc_g=no
6613 CFLAGS="-g"
6614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6615/* end confdefs.h. */
6616
6617int
6618main ()
6619{
6620
6621 ;
6622 return 0;
6623}
6624_ACEOF
6625if ac_fn_c_try_compile "$LINENO"; then :
6626 ac_cv_prog_cc_g=yes
6627else
6628 CFLAGS=""
6629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6630/* end confdefs.h. */
6631
6632int
6633main ()
6634{
6635
6636 ;
6637 return 0;
6638}
6639_ACEOF
6640if ac_fn_c_try_compile "$LINENO"; then :
6641
6642else
6643 ac_c_werror_flag=$ac_save_c_werror_flag
6644 CFLAGS="-g"
6645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6646/* end confdefs.h. */
6647
6648int
6649main ()
6650{
6651
6652 ;
6653 return 0;
6654}
6655_ACEOF
6656if ac_fn_c_try_compile "$LINENO"; then :
6657 ac_cv_prog_cc_g=yes
6658fi
6659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6660fi
6661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6662fi
6663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6664 ac_c_werror_flag=$ac_save_c_werror_flag
6665fi
6666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6667$as_echo "$ac_cv_prog_cc_g" >&6; }
6668if test "$ac_test_CFLAGS" = set; then
6669 CFLAGS=$ac_save_CFLAGS
6670elif test $ac_cv_prog_cc_g = yes; then
6671 if test "$GCC" = yes; then
6672 CFLAGS="-g -O2"
6673 else
6674 CFLAGS="-g"
6675 fi
6676else
6677 if test "$GCC" = yes; then
6678 CFLAGS="-O2"
6679 else
6680 CFLAGS=
6681 fi
6682fi
6683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6684$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006685if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006686 $as_echo_n "(cached) " >&6
6687else
6688 ac_cv_prog_cc_c89=no
6689ac_save_CC=$CC
6690cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6691/* end confdefs.h. */
6692#include <stdarg.h>
6693#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00006694struct stat;
cristya0b81c32010-01-22 02:54:33 +00006695/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6696struct buf { int x; };
6697FILE * (*rcsopen) (struct buf *, struct stat *, int);
6698static char *e (p, i)
6699 char **p;
6700 int i;
6701{
6702 return p[i];
6703}
6704static char *f (char * (*g) (char **, int), char **p, ...)
6705{
6706 char *s;
6707 va_list v;
6708 va_start (v,p);
6709 s = g (p, va_arg (v,int));
6710 va_end (v);
6711 return s;
6712}
6713
6714/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6715 function prototypes and stuff, but not '\xHH' hex character constants.
6716 These don't provoke an error unfortunately, instead are silently treated
6717 as 'x'. The following induces an error, until -std is added to get
6718 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6719 array size at least. It's necessary to write '\x00'==0 to get something
6720 that's true only with -std. */
6721int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6722
6723/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6724 inside strings and character constants. */
6725#define FOO(x) 'x'
6726int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6727
6728int test (int i, double x);
6729struct s1 {int (*f) (int a);};
6730struct s2 {int (*f) (double a);};
6731int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6732int argc;
6733char **argv;
6734int
6735main ()
6736{
6737return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6738 ;
6739 return 0;
6740}
6741_ACEOF
6742for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6743 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6744do
6745 CC="$ac_save_CC $ac_arg"
6746 if ac_fn_c_try_compile "$LINENO"; then :
6747 ac_cv_prog_cc_c89=$ac_arg
6748fi
6749rm -f core conftest.err conftest.$ac_objext
6750 test "x$ac_cv_prog_cc_c89" != "xno" && break
6751done
6752rm -f conftest.$ac_ext
6753CC=$ac_save_CC
6754
6755fi
6756# AC_CACHE_VAL
6757case "x$ac_cv_prog_cc_c89" in
6758 x)
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6760$as_echo "none needed" >&6; } ;;
6761 xno)
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6763$as_echo "unsupported" >&6; } ;;
6764 *)
6765 CC="$CC $ac_cv_prog_cc_c89"
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6767$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6768esac
6769if test "x$ac_cv_prog_cc_c89" != xno; then :
6770
6771fi
6772
6773ac_ext=c
6774ac_cpp='$CPP $CPPFLAGS'
6775ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6776ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6777ac_compiler_gnu=$ac_cv_c_compiler_gnu
6778
cristya5bda012013-11-03 18:05:38 +00006779ac_ext=c
6780ac_cpp='$CPP $CPPFLAGS'
6781ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6782ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6783ac_compiler_gnu=$ac_cv_c_compiler_gnu
6784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6785$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6786if ${am_cv_prog_cc_c_o+:} false; then :
6787 $as_echo_n "(cached) " >&6
6788else
6789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6790/* end confdefs.h. */
6791
6792int
6793main ()
6794{
6795
6796 ;
6797 return 0;
6798}
6799_ACEOF
6800 # Make sure it works both with $CC and with simple cc.
6801 # Following AC_PROG_CC_C_O, we do the test twice because some
6802 # compilers refuse to overwrite an existing .o file with -o,
6803 # though they will create one.
6804 am_cv_prog_cc_c_o=yes
6805 for am_i in 1 2; do
6806 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6807 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6808 ac_status=$?
6809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6810 (exit $ac_status); } \
6811 && test -f conftest2.$ac_objext; then
6812 : OK
6813 else
6814 am_cv_prog_cc_c_o=no
6815 break
6816 fi
6817 done
6818 rm -f core conftest*
6819 unset am_i
6820fi
6821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6822$as_echo "$am_cv_prog_cc_c_o" >&6; }
6823if test "$am_cv_prog_cc_c_o" != yes; then
6824 # Losing compiler, so override with the script.
6825 # FIXME: It is wrong to rewrite CC.
6826 # But if we don't then we get into trouble of one sort or another.
6827 # A longer-term fix would be to have automake use am__CC in this case,
6828 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6829 CC="$am_aux_dir/compile $CC"
6830fi
6831ac_ext=c
6832ac_cpp='$CPP $CPPFLAGS'
6833ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6834ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6835ac_compiler_gnu=$ac_cv_c_compiler_gnu
6836
6837
cristy73bd4a52010-10-05 11:24:23 +00006838depcc="$CC" am_compiler_list=
6839
6840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6841$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006842if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006843 $as_echo_n "(cached) " >&6
6844else
6845 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6846 # We make a subdir and do the tests there. Otherwise we can end up
6847 # making bogus files that we don't know about and never remove. For
6848 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006849 # making a dummy file named 'D' -- because '-MD' means "put the output
6850 # in D".
cristy7247bba2012-02-05 16:37:27 +00006851 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006852 mkdir conftest.dir
6853 # Copy depcomp to subdir because otherwise we won't find it if we're
6854 # using a relative directory.
6855 cp "$am_depcomp" conftest.dir
6856 cd conftest.dir
6857 # We will build objects and dependencies in a subdirectory because
6858 # it helps to detect inapplicable dependency modes. For instance
6859 # both Tru64's cc and ICC support -MD to output dependencies as a
6860 # side effect of compilation, but ICC will put the dependencies in
6861 # the current directory while Tru64 will put them in the object
6862 # directory.
6863 mkdir sub
6864
6865 am_cv_CC_dependencies_compiler_type=none
6866 if test "$am_compiler_list" = ""; then
6867 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6868 fi
6869 am__universal=false
6870 case " $depcc " in #(
6871 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6872 esac
6873
6874 for depmode in $am_compiler_list; do
6875 # Setup a source with many dependencies, because some compilers
6876 # like to wrap large dependency lists on column 80 (with \), and
6877 # we should not choose a depcomp mode which is confused by this.
6878 #
6879 # We need to recreate these files for each test, as the compiler may
6880 # overwrite some of them when testing with obscure command lines.
6881 # This happens at least with the AIX C compiler.
6882 : > sub/conftest.c
6883 for i in 1 2 3 4 5 6; do
6884 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00006885 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6886 # Solaris 10 /bin/sh.
6887 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00006888 done
6889 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6890
cristyc0890a62012-07-19 00:18:20 +00006891 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00006892 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00006893 # handle '-M -o', and we need to detect this. Also, some Intel
6894 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00006895 am__obj=sub/conftest.${OBJEXT-o}
6896 am__minus_obj="-o $am__obj"
6897 case $depmode in
6898 gcc)
6899 # This depmode causes a compiler race in universal mode.
6900 test "$am__universal" = false || continue
6901 ;;
6902 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00006903 # After this tag, mechanisms are not by side-effect, so they'll
6904 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00006905 if test "x$enable_dependency_tracking" = xyes; then
6906 continue
6907 else
6908 break
6909 fi
6910 ;;
cristy7247bba2012-02-05 16:37:27 +00006911 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00006912 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00006913 # not run yet. These depmodes are late enough in the game, and
6914 # so weak that their functioning should not be impacted.
6915 am__obj=conftest.${OBJEXT-o}
6916 am__minus_obj=
6917 ;;
6918 none) break ;;
6919 esac
6920 if depmode=$depmode \
6921 source=sub/conftest.c object=$am__obj \
6922 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6923 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6924 >/dev/null 2>conftest.err &&
6925 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6926 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6927 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6928 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6929 # icc doesn't choke on unknown options, it will just issue warnings
6930 # or remarks (even with -Werror). So we grep stderr for any message
6931 # that says an option was ignored or not supported.
6932 # When given -MP, icc 7.0 and 7.1 complain thusly:
6933 # icc: Command line warning: ignoring option '-M'; no argument required
6934 # The diagnosis changed in icc 8.0:
6935 # icc: Command line remark: option '-MP' not supported
6936 if (grep 'ignoring option' conftest.err ||
6937 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6938 am_cv_CC_dependencies_compiler_type=$depmode
6939 break
6940 fi
6941 fi
6942 done
6943
6944 cd ..
6945 rm -rf conftest.dir
6946else
6947 am_cv_CC_dependencies_compiler_type=none
6948fi
6949
6950fi
6951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6952$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6953CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6954
6955 if
6956 test "x$enable_dependency_tracking" != xno \
6957 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6958 am__fastdepCC_TRUE=
6959 am__fastdepCC_FALSE='#'
6960else
6961 am__fastdepCC_TRUE='#'
6962 am__fastdepCC_FALSE=
6963fi
6964
6965
cristy95646052009-11-28 23:05:30 +00006966ac_ext=cpp
6967ac_cpp='$CXXCPP $CPPFLAGS'
6968ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6969ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6970ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6971if test -z "$CXX"; then
6972 if test -n "$CCC"; then
6973 CXX=$CCC
6974 else
6975 if test -n "$ac_tool_prefix"; then
6976 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6977 do
6978 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6979set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6981$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006982if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006983 $as_echo_n "(cached) " >&6
6984else
6985 if test -n "$CXX"; then
6986 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6987else
6988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6989for as_dir in $PATH
6990do
6991 IFS=$as_save_IFS
6992 test -z "$as_dir" && as_dir=.
6993 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006995 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6997 break 2
6998 fi
6999done
7000 done
7001IFS=$as_save_IFS
7002
7003fi
7004fi
7005CXX=$ac_cv_prog_CXX
7006if test -n "$CXX"; then
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7008$as_echo "$CXX" >&6; }
7009else
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7011$as_echo "no" >&6; }
7012fi
7013
7014
7015 test -n "$CXX" && break
7016 done
7017fi
7018if test -z "$CXX"; then
7019 ac_ct_CXX=$CXX
7020 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7021do
7022 # Extract the first word of "$ac_prog", so it can be a program name with args.
7023set dummy $ac_prog; ac_word=$2
7024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7025$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007026if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00007027 $as_echo_n "(cached) " >&6
7028else
7029 if test -n "$ac_ct_CXX"; then
7030 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7031else
7032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7033for as_dir in $PATH
7034do
7035 IFS=$as_save_IFS
7036 test -z "$as_dir" && as_dir=.
7037 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00007038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00007039 ac_cv_prog_ac_ct_CXX="$ac_prog"
7040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7041 break 2
7042 fi
7043done
7044 done
7045IFS=$as_save_IFS
7046
7047fi
7048fi
7049ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7050if test -n "$ac_ct_CXX"; then
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7052$as_echo "$ac_ct_CXX" >&6; }
7053else
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7055$as_echo "no" >&6; }
7056fi
7057
7058
7059 test -n "$ac_ct_CXX" && break
7060done
7061
7062 if test "x$ac_ct_CXX" = x; then
7063 CXX="g++"
7064 else
7065 case $cross_compiling:$ac_tool_warned in
7066yes:)
7067{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7068$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7069ac_tool_warned=yes ;;
7070esac
7071 CXX=$ac_ct_CXX
7072 fi
7073fi
7074
7075 fi
7076fi
7077# Provide some information about the compiler.
7078$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7079set X $ac_compile
7080ac_compiler=$2
7081for ac_option in --version -v -V -qversion; do
7082 { { ac_try="$ac_compiler $ac_option >&5"
7083case "(($ac_try" in
7084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7085 *) ac_try_echo=$ac_try;;
7086esac
7087eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7088$as_echo "$ac_try_echo"; } >&5
7089 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7090 ac_status=$?
7091 if test -s conftest.err; then
7092 sed '10a\
7093... rest of stderr output deleted ...
7094 10q' conftest.err >conftest.er1
7095 cat conftest.er1 >&5
7096 fi
7097 rm -f conftest.er1 conftest.err
7098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7099 test $ac_status = 0; }
7100done
7101
7102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7103$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007104if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00007105 $as_echo_n "(cached) " >&6
7106else
7107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7108/* end confdefs.h. */
7109
7110int
7111main ()
7112{
7113#ifndef __GNUC__
7114 choke me
7115#endif
7116
7117 ;
7118 return 0;
7119}
7120_ACEOF
7121if ac_fn_cxx_try_compile "$LINENO"; then :
7122 ac_compiler_gnu=yes
7123else
7124 ac_compiler_gnu=no
7125fi
7126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7127ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7128
7129fi
7130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7131$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7132if test $ac_compiler_gnu = yes; then
7133 GXX=yes
7134else
7135 GXX=
7136fi
7137ac_test_CXXFLAGS=${CXXFLAGS+set}
7138ac_save_CXXFLAGS=$CXXFLAGS
7139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7140$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007141if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00007142 $as_echo_n "(cached) " >&6
7143else
7144 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7145 ac_cxx_werror_flag=yes
7146 ac_cv_prog_cxx_g=no
7147 CXXFLAGS="-g"
7148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7149/* end confdefs.h. */
7150
7151int
7152main ()
7153{
7154
7155 ;
7156 return 0;
7157}
7158_ACEOF
7159if ac_fn_cxx_try_compile "$LINENO"; then :
7160 ac_cv_prog_cxx_g=yes
7161else
7162 CXXFLAGS=""
7163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7164/* end confdefs.h. */
7165
7166int
7167main ()
7168{
7169
7170 ;
7171 return 0;
7172}
7173_ACEOF
7174if ac_fn_cxx_try_compile "$LINENO"; then :
7175
7176else
7177 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7178 CXXFLAGS="-g"
7179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7180/* end confdefs.h. */
7181
7182int
7183main ()
7184{
7185
7186 ;
7187 return 0;
7188}
7189_ACEOF
7190if ac_fn_cxx_try_compile "$LINENO"; then :
7191 ac_cv_prog_cxx_g=yes
7192fi
7193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7194fi
7195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7196fi
7197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7198 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7199fi
7200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7201$as_echo "$ac_cv_prog_cxx_g" >&6; }
7202if test "$ac_test_CXXFLAGS" = set; then
7203 CXXFLAGS=$ac_save_CXXFLAGS
7204elif test $ac_cv_prog_cxx_g = yes; then
7205 if test "$GXX" = yes; then
7206 CXXFLAGS="-g -O2"
7207 else
7208 CXXFLAGS="-g"
7209 fi
7210else
7211 if test "$GXX" = yes; then
7212 CXXFLAGS="-O2"
7213 else
7214 CXXFLAGS=
7215 fi
7216fi
7217ac_ext=c
7218ac_cpp='$CPP $CPPFLAGS'
7219ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7220ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7221ac_compiler_gnu=$ac_cv_c_compiler_gnu
7222
cristy73bd4a52010-10-05 11:24:23 +00007223depcc="$CXX" am_compiler_list=
7224
7225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7226$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007227if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007228 $as_echo_n "(cached) " >&6
7229else
7230 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7231 # We make a subdir and do the tests there. Otherwise we can end up
7232 # making bogus files that we don't know about and never remove. For
7233 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00007234 # making a dummy file named 'D' -- because '-MD' means "put the output
7235 # in D".
cristy7247bba2012-02-05 16:37:27 +00007236 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00007237 mkdir conftest.dir
7238 # Copy depcomp to subdir because otherwise we won't find it if we're
7239 # using a relative directory.
7240 cp "$am_depcomp" conftest.dir
7241 cd conftest.dir
7242 # We will build objects and dependencies in a subdirectory because
7243 # it helps to detect inapplicable dependency modes. For instance
7244 # both Tru64's cc and ICC support -MD to output dependencies as a
7245 # side effect of compilation, but ICC will put the dependencies in
7246 # the current directory while Tru64 will put them in the object
7247 # directory.
7248 mkdir sub
7249
7250 am_cv_CXX_dependencies_compiler_type=none
7251 if test "$am_compiler_list" = ""; then
7252 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7253 fi
7254 am__universal=false
7255 case " $depcc " in #(
7256 *\ -arch\ *\ -arch\ *) am__universal=true ;;
7257 esac
7258
7259 for depmode in $am_compiler_list; do
7260 # Setup a source with many dependencies, because some compilers
7261 # like to wrap large dependency lists on column 80 (with \), and
7262 # we should not choose a depcomp mode which is confused by this.
7263 #
7264 # We need to recreate these files for each test, as the compiler may
7265 # overwrite some of them when testing with obscure command lines.
7266 # This happens at least with the AIX C compiler.
7267 : > sub/conftest.c
7268 for i in 1 2 3 4 5 6; do
7269 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00007270 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7271 # Solaris 10 /bin/sh.
7272 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00007273 done
7274 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7275
cristyc0890a62012-07-19 00:18:20 +00007276 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00007277 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00007278 # handle '-M -o', and we need to detect this. Also, some Intel
7279 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00007280 am__obj=sub/conftest.${OBJEXT-o}
7281 am__minus_obj="-o $am__obj"
7282 case $depmode in
7283 gcc)
7284 # This depmode causes a compiler race in universal mode.
7285 test "$am__universal" = false || continue
7286 ;;
7287 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00007288 # After this tag, mechanisms are not by side-effect, so they'll
7289 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00007290 if test "x$enable_dependency_tracking" = xyes; then
7291 continue
7292 else
7293 break
7294 fi
7295 ;;
cristy7247bba2012-02-05 16:37:27 +00007296 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00007297 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00007298 # not run yet. These depmodes are late enough in the game, and
7299 # so weak that their functioning should not be impacted.
7300 am__obj=conftest.${OBJEXT-o}
7301 am__minus_obj=
7302 ;;
7303 none) break ;;
7304 esac
7305 if depmode=$depmode \
7306 source=sub/conftest.c object=$am__obj \
7307 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7308 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7309 >/dev/null 2>conftest.err &&
7310 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7311 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7312 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7313 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7314 # icc doesn't choke on unknown options, it will just issue warnings
7315 # or remarks (even with -Werror). So we grep stderr for any message
7316 # that says an option was ignored or not supported.
7317 # When given -MP, icc 7.0 and 7.1 complain thusly:
7318 # icc: Command line warning: ignoring option '-M'; no argument required
7319 # The diagnosis changed in icc 8.0:
7320 # icc: Command line remark: option '-MP' not supported
7321 if (grep 'ignoring option' conftest.err ||
7322 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7323 am_cv_CXX_dependencies_compiler_type=$depmode
7324 break
7325 fi
7326 fi
7327 done
7328
7329 cd ..
7330 rm -rf conftest.dir
7331else
7332 am_cv_CXX_dependencies_compiler_type=none
7333fi
7334
7335fi
7336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7337$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
7338CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7339
7340 if
7341 test "x$enable_dependency_tracking" != xno \
7342 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7343 am__fastdepCXX_TRUE=
7344 am__fastdepCXX_FALSE='#'
7345else
7346 am__fastdepCXX_TRUE='#'
7347 am__fastdepCXX_FALSE=
7348fi
7349
7350
cristy8b350f62009-11-15 23:12:43 +00007351 case $ac_cv_prog_cc_stdc in #(
7352 no) :
7353 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
7354 *) :
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00007356$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007357if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007358 $as_echo_n "(cached) " >&6
7359else
7360 ac_cv_prog_cc_c99=no
7361ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00007362cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007363/* end confdefs.h. */
7364#include <stdarg.h>
7365#include <stdbool.h>
7366#include <stdlib.h>
7367#include <wchar.h>
7368#include <stdio.h>
7369
7370// Check varargs macros. These examples are taken from C99 6.10.3.5.
7371#define debug(...) fprintf (stderr, __VA_ARGS__)
7372#define showlist(...) puts (#__VA_ARGS__)
7373#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7374static void
7375test_varargs_macros (void)
7376{
7377 int x = 1234;
7378 int y = 5678;
7379 debug ("Flag");
7380 debug ("X = %d\n", x);
7381 showlist (The first, second, and third items.);
7382 report (x>y, "x is %d but y is %d", x, y);
7383}
7384
7385// Check long long types.
7386#define BIG64 18446744073709551615ull
7387#define BIG32 4294967295ul
7388#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7389#if !BIG_OK
7390 your preprocessor is broken;
7391#endif
7392#if BIG_OK
7393#else
7394 your preprocessor is broken;
7395#endif
7396static long long int bignum = -9223372036854775807LL;
7397static unsigned long long int ubignum = BIG64;
7398
7399struct incomplete_array
7400{
7401 int datasize;
7402 double data[];
7403};
7404
7405struct named_init {
7406 int number;
7407 const wchar_t *name;
7408 double average;
7409};
7410
7411typedef const char *ccp;
7412
7413static inline int
7414test_restrict (ccp restrict text)
7415{
7416 // See if C++-style comments work.
7417 // Iterate through items via the restricted pointer.
7418 // Also check for declarations in for loops.
7419 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7420 continue;
7421 return 0;
7422}
7423
7424// Check varargs and va_copy.
7425static void
7426test_varargs (const char *format, ...)
7427{
7428 va_list args;
7429 va_start (args, format);
7430 va_list args_copy;
7431 va_copy (args_copy, args);
7432
7433 const char *str;
7434 int number;
7435 float fnumber;
7436
7437 while (*format)
7438 {
7439 switch (*format++)
7440 {
7441 case 's': // string
7442 str = va_arg (args_copy, const char *);
7443 break;
7444 case 'd': // int
7445 number = va_arg (args_copy, int);
7446 break;
7447 case 'f': // float
7448 fnumber = va_arg (args_copy, double);
7449 break;
7450 default:
7451 break;
7452 }
7453 }
7454 va_end (args_copy);
7455 va_end (args);
7456}
7457
7458int
7459main ()
7460{
7461
7462 // Check bool.
7463 _Bool success = false;
7464
7465 // Check restrict.
7466 if (test_restrict ("String literal") == 0)
7467 success = true;
7468 char *restrict newvar = "Another string";
7469
7470 // Check varargs.
7471 test_varargs ("s, d' f .", "string", 65, 34.234);
7472 test_varargs_macros ();
7473
7474 // Check flexible array members.
7475 struct incomplete_array *ia =
7476 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7477 ia->datasize = 10;
7478 for (int i = 0; i < ia->datasize; ++i)
7479 ia->data[i] = i * 1.234;
7480
7481 // Check named initializers.
7482 struct named_init ni = {
7483 .number = 34,
7484 .name = L"Test wide string",
7485 .average = 543.34343,
7486 };
7487
7488 ni.number = 58;
7489
7490 int dynamic_array[ni.number];
7491 dynamic_array[ni.number - 1] = 543;
7492
7493 // work around unused variable warnings
7494 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7495 || dynamic_array[ni.number - 1] != 543);
7496
7497 ;
7498 return 0;
7499}
7500_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007501for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy3ed852e2009-09-05 21:47:34 +00007502do
7503 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007504 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007505 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007506fi
cristy3ed852e2009-09-05 21:47:34 +00007507rm -f core conftest.err conftest.$ac_objext
7508 test "x$ac_cv_prog_cc_c99" != "xno" && break
7509done
7510rm -f conftest.$ac_ext
7511CC=$ac_save_CC
7512
7513fi
7514# AC_CACHE_VAL
7515case "x$ac_cv_prog_cc_c99" in
7516 x)
cristy8b350f62009-11-15 23:12:43 +00007517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007518$as_echo "none needed" >&6; } ;;
7519 xno)
cristy8b350f62009-11-15 23:12:43 +00007520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007521$as_echo "unsupported" >&6; } ;;
7522 *)
7523 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00007524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00007525$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7526esac
cristy8b350f62009-11-15 23:12:43 +00007527if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007528 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7529else
cristy8b350f62009-11-15 23:12:43 +00007530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007531$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007532if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007533 $as_echo_n "(cached) " >&6
7534else
7535 ac_cv_prog_cc_c89=no
7536ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00007537cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007538/* end confdefs.h. */
7539#include <stdarg.h>
7540#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00007541struct stat;
cristy3ed852e2009-09-05 21:47:34 +00007542/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7543struct buf { int x; };
7544FILE * (*rcsopen) (struct buf *, struct stat *, int);
7545static char *e (p, i)
7546 char **p;
7547 int i;
7548{
7549 return p[i];
7550}
7551static char *f (char * (*g) (char **, int), char **p, ...)
7552{
7553 char *s;
7554 va_list v;
7555 va_start (v,p);
7556 s = g (p, va_arg (v,int));
7557 va_end (v);
7558 return s;
7559}
7560
7561/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7562 function prototypes and stuff, but not '\xHH' hex character constants.
7563 These don't provoke an error unfortunately, instead are silently treated
7564 as 'x'. The following induces an error, until -std is added to get
7565 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7566 array size at least. It's necessary to write '\x00'==0 to get something
7567 that's true only with -std. */
7568int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7569
7570/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7571 inside strings and character constants. */
7572#define FOO(x) 'x'
7573int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7574
7575int test (int i, double x);
7576struct s1 {int (*f) (int a);};
7577struct s2 {int (*f) (double a);};
7578int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7579int argc;
7580char **argv;
7581int
7582main ()
7583{
7584return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7585 ;
7586 return 0;
7587}
7588_ACEOF
7589for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7590 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7591do
7592 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007593 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007594 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007595fi
cristy3ed852e2009-09-05 21:47:34 +00007596rm -f core conftest.err conftest.$ac_objext
7597 test "x$ac_cv_prog_cc_c89" != "xno" && break
7598done
7599rm -f conftest.$ac_ext
7600CC=$ac_save_CC
7601
7602fi
7603# AC_CACHE_VAL
7604case "x$ac_cv_prog_cc_c89" in
7605 x)
cristy8b350f62009-11-15 23:12:43 +00007606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007607$as_echo "none needed" >&6; } ;;
7608 xno)
cristy8b350f62009-11-15 23:12:43 +00007609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007610$as_echo "unsupported" >&6; } ;;
7611 *)
7612 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00007613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007614$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7615esac
cristy8b350f62009-11-15 23:12:43 +00007616if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007617 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7618else
7619 ac_cv_prog_cc_stdc=no
7620fi
7621
cristy3ed852e2009-09-05 21:47:34 +00007622fi
cristy3ed852e2009-09-05 21:47:34 +00007623 ;;
7624esac
cristy8b350f62009-11-15 23:12:43 +00007625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00007626$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007627 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007628 $as_echo_n "(cached) " >&6
7629fi
7630
cristy8b350f62009-11-15 23:12:43 +00007631 case $ac_cv_prog_cc_stdc in #(
7632 no) :
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7634$as_echo "unsupported" >&6; } ;; #(
7635 '') :
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7637$as_echo "none needed" >&6; } ;; #(
7638 *) :
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00007640$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7641esac
7642
cristy3ed852e2009-09-05 21:47:34 +00007643ac_ext=c
7644ac_cpp='$CPP $CPPFLAGS'
7645ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7646ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7647ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00007648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00007649$as_echo_n "checking how to run the C preprocessor... " >&6; }
7650# On Suns, sometimes $CPP names a directory.
7651if test -n "$CPP" && test -d "$CPP"; then
7652 CPP=
7653fi
7654if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00007655 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007656 $as_echo_n "(cached) " >&6
7657else
7658 # Double quotes because CPP needs to be expanded
7659 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7660 do
7661 ac_preproc_ok=false
7662for ac_c_preproc_warn_flag in '' yes
7663do
7664 # Use a header file that comes with gcc, so configuring glibc
7665 # with a fresh cross-compiler works.
7666 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7667 # <limits.h> exists even on freestanding compilers.
7668 # On the NeXT, cc -E runs the code through the compiler's parser,
7669 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007671/* end confdefs.h. */
7672#ifdef __STDC__
7673# include <limits.h>
7674#else
7675# include <assert.h>
7676#endif
7677 Syntax error
7678_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007679if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007680
cristy8b350f62009-11-15 23:12:43 +00007681else
cristy3ed852e2009-09-05 21:47:34 +00007682 # Broken: fails on valid input.
7683continue
7684fi
cristyda16f162011-02-19 23:52:17 +00007685rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007686
7687 # OK, works on sane cases. Now check whether nonexistent headers
7688 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007690/* end confdefs.h. */
7691#include <ac_nonexistent.h>
7692_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007693if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007694 # Broken: success on invalid input.
7695continue
7696else
cristy3ed852e2009-09-05 21:47:34 +00007697 # Passes both tests.
7698ac_preproc_ok=:
7699break
7700fi
cristyda16f162011-02-19 23:52:17 +00007701rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007702
7703done
7704# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007705rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007706if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007707 break
7708fi
7709
7710 done
7711 ac_cv_prog_CPP=$CPP
7712
7713fi
7714 CPP=$ac_cv_prog_CPP
7715else
7716 ac_cv_prog_CPP=$CPP
7717fi
cristy8b350f62009-11-15 23:12:43 +00007718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007719$as_echo "$CPP" >&6; }
7720ac_preproc_ok=false
7721for ac_c_preproc_warn_flag in '' yes
7722do
7723 # Use a header file that comes with gcc, so configuring glibc
7724 # with a fresh cross-compiler works.
7725 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7726 # <limits.h> exists even on freestanding compilers.
7727 # On the NeXT, cc -E runs the code through the compiler's parser,
7728 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007730/* end confdefs.h. */
7731#ifdef __STDC__
7732# include <limits.h>
7733#else
7734# include <assert.h>
7735#endif
7736 Syntax error
7737_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007738if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007739
cristy8b350f62009-11-15 23:12:43 +00007740else
cristy3ed852e2009-09-05 21:47:34 +00007741 # Broken: fails on valid input.
7742continue
7743fi
cristyda16f162011-02-19 23:52:17 +00007744rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007745
7746 # OK, works on sane cases. Now check whether nonexistent headers
7747 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007749/* end confdefs.h. */
7750#include <ac_nonexistent.h>
7751_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007752if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007753 # Broken: success on invalid input.
7754continue
7755else
cristy3ed852e2009-09-05 21:47:34 +00007756 # Passes both tests.
7757ac_preproc_ok=:
7758break
7759fi
cristyda16f162011-02-19 23:52:17 +00007760rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007761
7762done
7763# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007764rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007765if $ac_preproc_ok; then :
7766
cristy3ed852e2009-09-05 21:47:34 +00007767else
cristy8b350f62009-11-15 23:12:43 +00007768 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007769$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00007770as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7771See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007772fi
7773
7774ac_ext=c
7775ac_cpp='$CPP $CPPFLAGS'
7776ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7777ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7778ac_compiler_gnu=$ac_cv_c_compiler_gnu
7779
cristy73bd4a52010-10-05 11:24:23 +00007780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7781$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007782if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007783 $as_echo_n "(cached) " >&6
7784else
7785 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7786 for ac_i in 1 2 3 4 5 6 7; do
7787 ac_script="$ac_script$as_nl$ac_script"
7788 done
7789 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7790 { ac_script=; unset ac_script;}
7791 if test -z "$SED"; then
7792 ac_path_SED_found=false
7793 # Loop through the user's path and test for each of PROGNAME-LIST
7794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7795for as_dir in $PATH
7796do
7797 IFS=$as_save_IFS
7798 test -z "$as_dir" && as_dir=.
7799 for ac_prog in sed gsed; do
7800 for ac_exec_ext in '' $ac_executable_extensions; do
7801 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007802 as_fn_executable_p "$ac_path_SED" || continue
cristy73bd4a52010-10-05 11:24:23 +00007803# Check for GNU ac_path_SED and select it if it is found.
7804 # Check for GNU $ac_path_SED
7805case `"$ac_path_SED" --version 2>&1` in
7806*GNU*)
7807 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7808*)
7809 ac_count=0
7810 $as_echo_n 0123456789 >"conftest.in"
7811 while :
7812 do
7813 cat "conftest.in" "conftest.in" >"conftest.tmp"
7814 mv "conftest.tmp" "conftest.in"
7815 cp "conftest.in" "conftest.nl"
7816 $as_echo '' >> "conftest.nl"
7817 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7818 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7819 as_fn_arith $ac_count + 1 && ac_count=$as_val
7820 if test $ac_count -gt ${ac_path_SED_max-0}; then
7821 # Best one so far, save it but keep looking for a better one
7822 ac_cv_path_SED="$ac_path_SED"
7823 ac_path_SED_max=$ac_count
7824 fi
7825 # 10*(2^10) chars as input seems more than enough
7826 test $ac_count -gt 10 && break
7827 done
7828 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7829esac
7830
7831 $ac_path_SED_found && break 3
7832 done
7833 done
7834 done
7835IFS=$as_save_IFS
7836 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007837 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007838 fi
7839else
7840 ac_cv_path_SED=$SED
7841fi
7842
7843fi
7844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7845$as_echo "$ac_cv_path_SED" >&6; }
7846 SED="$ac_cv_path_SED"
7847 rm -f conftest.sed
7848
7849test -z "$SED" && SED=sed
7850Xsed="$SED -e 1s/^X//"
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7863$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007864if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007865 $as_echo_n "(cached) " >&6
7866else
7867 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7868 then ac_cv_path_FGREP="$GREP -F"
7869 else
7870 if test -z "$FGREP"; then
7871 ac_path_FGREP_found=false
7872 # Loop through the user's path and test for each of PROGNAME-LIST
7873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7874for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7875do
7876 IFS=$as_save_IFS
7877 test -z "$as_dir" && as_dir=.
7878 for ac_prog in fgrep; do
7879 for ac_exec_ext in '' $ac_executable_extensions; do
7880 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007881 as_fn_executable_p "$ac_path_FGREP" || continue
cristy73bd4a52010-10-05 11:24:23 +00007882# Check for GNU ac_path_FGREP and select it if it is found.
7883 # Check for GNU $ac_path_FGREP
7884case `"$ac_path_FGREP" --version 2>&1` in
7885*GNU*)
7886 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7887*)
7888 ac_count=0
7889 $as_echo_n 0123456789 >"conftest.in"
7890 while :
7891 do
7892 cat "conftest.in" "conftest.in" >"conftest.tmp"
7893 mv "conftest.tmp" "conftest.in"
7894 cp "conftest.in" "conftest.nl"
7895 $as_echo 'FGREP' >> "conftest.nl"
7896 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7897 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7898 as_fn_arith $ac_count + 1 && ac_count=$as_val
7899 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7900 # Best one so far, save it but keep looking for a better one
7901 ac_cv_path_FGREP="$ac_path_FGREP"
7902 ac_path_FGREP_max=$ac_count
7903 fi
7904 # 10*(2^10) chars as input seems more than enough
7905 test $ac_count -gt 10 && break
7906 done
7907 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7908esac
7909
7910 $ac_path_FGREP_found && break 3
7911 done
7912 done
7913 done
7914IFS=$as_save_IFS
7915 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007916 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007917 fi
7918else
7919 ac_cv_path_FGREP=$FGREP
7920fi
7921
7922 fi
7923fi
7924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7925$as_echo "$ac_cv_path_FGREP" >&6; }
7926 FGREP="$ac_cv_path_FGREP"
7927
7928
7929test -z "$GREP" && GREP=grep
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
cristy0c60a692010-11-04 01:09:47 +00007947ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7948ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7949ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7950
7951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7952$as_echo_n "checking how to print strings... " >&6; }
7953# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00007954if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00007955 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7956 ECHO='print -r --'
7957elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7958 ECHO='printf %s\n'
7959else
7960 # Use this function as a fallback that always works.
7961 func_fallback_echo ()
7962 {
7963 eval 'cat <<_LTECHO_EOF
7964$1
7965_LTECHO_EOF'
7966 }
7967 ECHO='func_fallback_echo'
7968fi
7969
7970# func_echo_all arg...
7971# Invoke $ECHO with all args, space-separated.
7972func_echo_all ()
7973{
7974 $ECHO ""
7975}
7976
7977case "$ECHO" in
7978 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7979$as_echo "printf" >&6; } ;;
7980 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7981$as_echo "print -r" >&6; } ;;
7982 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7983$as_echo "cat" >&6; } ;;
7984esac
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
cristy73bd4a52010-10-05 11:24:23 +00007999
8000
8001# Check whether --with-gnu-ld was given.
8002if test "${with_gnu_ld+set}" = set; then :
8003 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8004else
8005 with_gnu_ld=no
8006fi
8007
8008ac_prog=ld
8009if test "$GCC" = yes; then
8010 # Check if gcc -print-prog-name=ld gives a path.
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8012$as_echo_n "checking for ld used by $CC... " >&6; }
8013 case $host in
8014 *-*-mingw*)
8015 # gcc leaves a trailing carriage return which upsets mingw
8016 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8017 *)
8018 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8019 esac
8020 case $ac_prog in
8021 # Accept absolute paths.
8022 [\\/]* | ?:[\\/]*)
8023 re_direlt='/[^/][^/]*/\.\./'
8024 # Canonicalize the pathname of ld
8025 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
8026 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
8027 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
8028 done
8029 test -z "$LD" && LD="$ac_prog"
8030 ;;
8031 "")
8032 # If it fails, then pretend we aren't using GCC.
8033 ac_prog=ld
8034 ;;
8035 *)
8036 # If it is relative, then search for the first ld in PATH.
8037 with_gnu_ld=unknown
8038 ;;
8039 esac
8040elif test "$with_gnu_ld" = yes; then
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8042$as_echo_n "checking for GNU ld... " >&6; }
8043else
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8045$as_echo_n "checking for non-GNU ld... " >&6; }
8046fi
cristyda16f162011-02-19 23:52:17 +00008047if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008048 $as_echo_n "(cached) " >&6
8049else
8050 if test -z "$LD"; then
8051 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8052 for ac_dir in $PATH; do
8053 IFS="$lt_save_ifs"
8054 test -z "$ac_dir" && ac_dir=.
8055 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8056 lt_cv_path_LD="$ac_dir/$ac_prog"
8057 # Check to see if the program is GNU ld. I'd rather use --version,
8058 # but apparently some variants of GNU ld only accept -v.
8059 # Break only if it was the GNU/non-GNU ld that we prefer.
8060 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8061 *GNU* | *'with BFD'*)
8062 test "$with_gnu_ld" != no && break
8063 ;;
8064 *)
8065 test "$with_gnu_ld" != yes && break
8066 ;;
8067 esac
8068 fi
8069 done
8070 IFS="$lt_save_ifs"
8071else
8072 lt_cv_path_LD="$LD" # Let the user override the test with a path.
8073fi
8074fi
8075
8076LD="$lt_cv_path_LD"
8077if test -n "$LD"; then
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8079$as_echo "$LD" >&6; }
8080else
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8082$as_echo "no" >&6; }
8083fi
cristy98dddb52010-11-04 00:30:15 +00008084test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00008085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8086$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008087if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008088 $as_echo_n "(cached) " >&6
8089else
8090 # I'd rather use --version here, but apparently some GNU lds only accept -v.
8091case `$LD -v 2>&1 </dev/null` in
8092*GNU* | *'with BFD'*)
8093 lt_cv_prog_gnu_ld=yes
8094 ;;
8095*)
8096 lt_cv_prog_gnu_ld=no
8097 ;;
8098esac
8099fi
8100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8101$as_echo "$lt_cv_prog_gnu_ld" >&6; }
8102with_gnu_ld=$lt_cv_prog_gnu_ld
8103
8104
8105
8106
8107
8108
8109
8110
8111
cristy3ed852e2009-09-05 21:47:34 +00008112
cristy837d6dc2010-02-27 01:16:57 +00008113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
8114$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008115if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00008116 $as_echo_n "(cached) " >&6
8117else
8118 ac_cv_prog_cc_c99=no
8119ac_save_CC=$CC
8120cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8121/* end confdefs.h. */
8122#include <stdarg.h>
8123#include <stdbool.h>
8124#include <stdlib.h>
8125#include <wchar.h>
8126#include <stdio.h>
8127
8128// Check varargs macros. These examples are taken from C99 6.10.3.5.
8129#define debug(...) fprintf (stderr, __VA_ARGS__)
8130#define showlist(...) puts (#__VA_ARGS__)
8131#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
8132static void
8133test_varargs_macros (void)
8134{
8135 int x = 1234;
8136 int y = 5678;
8137 debug ("Flag");
8138 debug ("X = %d\n", x);
8139 showlist (The first, second, and third items.);
8140 report (x>y, "x is %d but y is %d", x, y);
8141}
8142
8143// Check long long types.
8144#define BIG64 18446744073709551615ull
8145#define BIG32 4294967295ul
8146#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
8147#if !BIG_OK
8148 your preprocessor is broken;
8149#endif
8150#if BIG_OK
8151#else
8152 your preprocessor is broken;
8153#endif
8154static long long int bignum = -9223372036854775807LL;
8155static unsigned long long int ubignum = BIG64;
8156
8157struct incomplete_array
8158{
8159 int datasize;
8160 double data[];
8161};
8162
8163struct named_init {
8164 int number;
8165 const wchar_t *name;
8166 double average;
8167};
8168
8169typedef const char *ccp;
8170
8171static inline int
8172test_restrict (ccp restrict text)
8173{
8174 // See if C++-style comments work.
8175 // Iterate through items via the restricted pointer.
8176 // Also check for declarations in for loops.
8177 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
8178 continue;
8179 return 0;
8180}
8181
8182// Check varargs and va_copy.
8183static void
8184test_varargs (const char *format, ...)
8185{
8186 va_list args;
8187 va_start (args, format);
8188 va_list args_copy;
8189 va_copy (args_copy, args);
8190
8191 const char *str;
8192 int number;
8193 float fnumber;
8194
8195 while (*format)
8196 {
8197 switch (*format++)
8198 {
8199 case 's': // string
8200 str = va_arg (args_copy, const char *);
8201 break;
8202 case 'd': // int
8203 number = va_arg (args_copy, int);
8204 break;
8205 case 'f': // float
8206 fnumber = va_arg (args_copy, double);
8207 break;
8208 default:
8209 break;
8210 }
8211 }
8212 va_end (args_copy);
8213 va_end (args);
8214}
8215
8216int
8217main ()
8218{
8219
8220 // Check bool.
8221 _Bool success = false;
8222
8223 // Check restrict.
8224 if (test_restrict ("String literal") == 0)
8225 success = true;
8226 char *restrict newvar = "Another string";
8227
8228 // Check varargs.
8229 test_varargs ("s, d' f .", "string", 65, 34.234);
8230 test_varargs_macros ();
8231
8232 // Check flexible array members.
8233 struct incomplete_array *ia =
8234 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
8235 ia->datasize = 10;
8236 for (int i = 0; i < ia->datasize; ++i)
8237 ia->data[i] = i * 1.234;
8238
8239 // Check named initializers.
8240 struct named_init ni = {
8241 .number = 34,
8242 .name = L"Test wide string",
8243 .average = 543.34343,
8244 };
8245
8246 ni.number = 58;
8247
8248 int dynamic_array[ni.number];
8249 dynamic_array[ni.number - 1] = 543;
8250
8251 // work around unused variable warnings
8252 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
8253 || dynamic_array[ni.number - 1] != 543);
8254
8255 ;
8256 return 0;
8257}
8258_ACEOF
cristy14fefe52012-05-21 00:59:18 +00008259for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy837d6dc2010-02-27 01:16:57 +00008260do
8261 CC="$ac_save_CC $ac_arg"
8262 if ac_fn_c_try_compile "$LINENO"; then :
8263 ac_cv_prog_cc_c99=$ac_arg
8264fi
8265rm -f core conftest.err conftest.$ac_objext
8266 test "x$ac_cv_prog_cc_c99" != "xno" && break
8267done
8268rm -f conftest.$ac_ext
8269CC=$ac_save_CC
8270
8271fi
8272# AC_CACHE_VAL
8273case "x$ac_cv_prog_cc_c99" in
8274 x)
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
8276$as_echo "none needed" >&6; } ;;
8277 xno)
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
8279$as_echo "unsupported" >&6; } ;;
8280 *)
8281 CC="$CC $ac_cv_prog_cc_c99"
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
8283$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
8284esac
8285if test "x$ac_cv_prog_cc_c99" != xno; then :
8286
8287fi
8288
8289
cristy73bd4a52010-10-05 11:24:23 +00008290
cristy17491be2014-06-24 01:10:53 +00008291ac_ext=c
8292ac_cpp='$CPP $CPPFLAGS'
8293ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8294ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8295ac_compiler_gnu=$ac_cv_c_compiler_gnu
8296
cristy73bd4a52010-10-05 11:24:23 +00008297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
8298$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008299if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008300 $as_echo_n "(cached) " >&6
8301else
8302 ac_cv_cflags_warn_all="no, unknown"
cristy17491be2014-06-24 01:10:53 +00008303ac_save_CFLAGS="$CFLAGS"
8304for 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 +00008305do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
8306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8307/* end confdefs.h. */
8308
8309int
8310main ()
8311{
cristy24fc1fe2010-10-23 21:13:01 +00008312
cristy73bd4a52010-10-05 11:24:23 +00008313 ;
8314 return 0;
8315}
8316_ACEOF
8317if ac_fn_c_try_compile "$LINENO"; then :
8318 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
8319fi
8320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8321done
cristy17491be2014-06-24 01:10:53 +00008322CFLAGS="$ac_save_CFLAGS"
8323
8324fi
8325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
8326$as_echo "$ac_cv_cflags_warn_all" >&6; }
8327
8328
8329case ".$ac_cv_cflags_warn_all" in
8330 .ok|.ok,*) ;;
8331 .|.no|.no,*) ;;
8332 *) if ${CFLAGS+:} false; then :
8333 case " $CFLAGS " in
8334 *" $ac_cv_cflags_warn_all "*)
8335 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
8336 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
8337 ac_status=$?
8338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8339 test $ac_status = 0; }
8340 ;;
8341 *)
8342 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
8343 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
8344 ac_status=$?
8345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8346 test $ac_status = 0; }
8347 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
8348 ;;
8349 esac
8350else
8351 CFLAGS="$ac_cv_cflags_warn_all"
8352fi
8353 ;;
8354esac
8355
8356ac_ext=c
cristy73bd4a52010-10-05 11:24:23 +00008357ac_cpp='$CPP $CPPFLAGS'
8358ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8359ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8360ac_compiler_gnu=$ac_cv_c_compiler_gnu
8361
8362
cristya0b81c32010-01-22 02:54:33 +00008363
8364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8365$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8366set x ${MAKE-make}
8367ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00008368if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00008369 $as_echo_n "(cached) " >&6
8370else
8371 cat >conftest.make <<\_ACEOF
8372SHELL = /bin/sh
8373all:
8374 @echo '@@@%%%=$(MAKE)=@@@%%%'
8375_ACEOF
cristy98dddb52010-11-04 00:30:15 +00008376# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00008377case `${MAKE-make} -f conftest.make 2>/dev/null` in
8378 *@@@%%%=?*=@@@%%%*)
8379 eval ac_cv_prog_make_${ac_make}_set=yes;;
8380 *)
8381 eval ac_cv_prog_make_${ac_make}_set=no;;
8382esac
8383rm -f conftest.make
8384fi
8385if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8387$as_echo "yes" >&6; }
8388 SET_MAKE=
8389else
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8391$as_echo "no" >&6; }
8392 SET_MAKE="MAKE=${MAKE-make}"
8393fi
8394
cristy8b350f62009-11-15 23:12:43 +00008395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00008396$as_echo_n "checking whether ln -s works... " >&6; }
8397LN_S=$as_ln_s
8398if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00008399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00008400$as_echo "yes" >&6; }
8401else
cristy8b350f62009-11-15 23:12:43 +00008402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00008403$as_echo "no, using $LN_S" >&6; }
8404fi
8405
cristy8d0ff762013-03-10 20:33:28 +00008406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8407$as_echo_n "checking for a sed that does not truncate output... " >&6; }
8408if ${ac_cv_path_SED+:} false; then :
8409 $as_echo_n "(cached) " >&6
8410else
8411 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8412 for ac_i in 1 2 3 4 5 6 7; do
8413 ac_script="$ac_script$as_nl$ac_script"
8414 done
8415 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8416 { ac_script=; unset ac_script;}
8417 if test -z "$SED"; then
8418 ac_path_SED_found=false
8419 # Loop through the user's path and test for each of PROGNAME-LIST
8420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8421for as_dir in $PATH
8422do
8423 IFS=$as_save_IFS
8424 test -z "$as_dir" && as_dir=.
8425 for ac_prog in sed gsed; do
8426 for ac_exec_ext in '' $ac_executable_extensions; do
8427 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
8428 as_fn_executable_p "$ac_path_SED" || continue
8429# Check for GNU ac_path_SED and select it if it is found.
8430 # Check for GNU $ac_path_SED
8431case `"$ac_path_SED" --version 2>&1` in
8432*GNU*)
8433 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8434*)
8435 ac_count=0
8436 $as_echo_n 0123456789 >"conftest.in"
8437 while :
8438 do
8439 cat "conftest.in" "conftest.in" >"conftest.tmp"
8440 mv "conftest.tmp" "conftest.in"
8441 cp "conftest.in" "conftest.nl"
8442 $as_echo '' >> "conftest.nl"
8443 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8444 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8445 as_fn_arith $ac_count + 1 && ac_count=$as_val
8446 if test $ac_count -gt ${ac_path_SED_max-0}; then
8447 # Best one so far, save it but keep looking for a better one
8448 ac_cv_path_SED="$ac_path_SED"
8449 ac_path_SED_max=$ac_count
8450 fi
8451 # 10*(2^10) chars as input seems more than enough
8452 test $ac_count -gt 10 && break
8453 done
8454 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8455esac
8456
8457 $ac_path_SED_found && break 3
8458 done
8459 done
8460 done
8461IFS=$as_save_IFS
8462 if test -z "$ac_cv_path_SED"; then
8463 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8464 fi
8465else
8466 ac_cv_path_SED=$SED
8467fi
8468
8469fi
8470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8471$as_echo "$ac_cv_path_SED" >&6; }
8472 SED="$ac_cv_path_SED"
8473 rm -f conftest.sed
8474
cristybc556452012-08-17 19:44:03 +00008475for ac_prog in gawk mawk nawk awk
8476do
8477 # Extract the first word of "$ac_prog", so it can be a program name with args.
8478set dummy $ac_prog; ac_word=$2
8479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8480$as_echo_n "checking for $ac_word... " >&6; }
8481if ${ac_cv_prog_AWK+:} false; then :
8482 $as_echo_n "(cached) " >&6
8483else
8484 if test -n "$AWK"; then
8485 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8486else
8487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8488for as_dir in $PATH
8489do
8490 IFS=$as_save_IFS
8491 test -z "$as_dir" && as_dir=.
8492 for ac_exec_ext in '' $ac_executable_extensions; do
8493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8494 ac_cv_prog_AWK="$ac_prog"
8495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8496 break 2
8497 fi
8498done
8499 done
8500IFS=$as_save_IFS
8501
8502fi
8503fi
8504AWK=$ac_cv_prog_AWK
8505if test -n "$AWK"; then
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8507$as_echo "$AWK" >&6; }
8508else
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8510$as_echo "no" >&6; }
8511fi
8512
8513
8514 test -n "$AWK" && break
8515done
8516
cristy73bd4a52010-10-05 11:24:23 +00008517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
8518$as_echo_n "checking if malloc debugging is wanted... " >&6; }
8519
8520# Check whether --with-dmalloc was given.
8521if test "${with_dmalloc+set}" = set; then :
8522 withval=$with_dmalloc; if test "$withval" = yes; then
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8524$as_echo "yes" >&6; }
8525
8526$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
8527
8528 LIBS="$LIBS -ldmalloc"
8529 LDFLAGS="$LDFLAGS -g"
8530else
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8532$as_echo "no" >&6; }
8533fi
8534else
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8536$as_echo "no" >&6; }
8537fi
8538
8539
8540
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
8542$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008543if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008544 $as_echo_n "(cached) " >&6
8545else
8546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8547/* end confdefs.h. */
8548#include <stdlib.h>
cristy73380532012-02-18 20:26:28 +00008549 static void foo(void) __attribute__ ((__unused__));
cristy73bd4a52010-10-05 11:24:23 +00008550 static void
8551 foo(void) {
8552 exit(1);
8553 }
8554
8555int
8556main ()
8557{
8558
8559 ;
8560 return 0;
8561}
8562_ACEOF
8563if ac_fn_c_try_compile "$LINENO"; then :
8564 ax_cv___attribute__=yes
8565else
8566 ax_cv___attribute__=no
8567
8568fi
8569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8570
8571fi
8572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
8573$as_echo "$ax_cv___attribute__" >&6; }
8574 if test "$ax_cv___attribute__" = "yes"; then
8575
8576$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
8577
8578 fi
8579
8580
8581
cristya0459972013-11-03 18:09:35 +00008582
8583
cristy17491be2014-06-24 01:10:53 +00008584
cristya0459972013-11-03 18:09:35 +00008585# Check whether --with-gcc-arch was given.
8586if test "${with_gcc_arch+set}" = set; then :
8587 withval=$with_gcc_arch; ax_gcc_arch=$withval
8588else
cristy17491be2014-06-24 01:10:53 +00008589 ax_gcc_arch=yes
cristya0459972013-11-03 18:09:35 +00008590fi
8591
8592
8593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8594$as_echo_n "checking for gcc architecture flag... " >&6; }
8595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
8596$as_echo "" >&6; }
8597if ${ax_cv_gcc_archflag+:} false; then :
8598 $as_echo_n "(cached) " >&6
8599else
8600
8601ax_cv_gcc_archflag="unknown"
8602
8603if test "$GCC" = yes; then
8604
8605if test "x$ax_gcc_arch" = xyes; then
8606ax_gcc_arch=""
8607if test "$cross_compiling" = no; then
8608case $host_cpu in
cristy17491be2014-06-24 01:10:53 +00008609 i[3456]86*|x86_64*|amd64*) # use cpuid codes
cristya0459972013-11-03 18:09:35 +00008610
8611ac_ext=c
8612ac_cpp='$CPP $CPPFLAGS'
8613ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8614ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8615ac_compiler_gnu=$ac_cv_c_compiler_gnu
8616
8617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
8618$as_echo_n "checking for x86 cpuid 0 output... " >&6; }
8619if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
8620 $as_echo_n "(cached) " >&6
8621else
8622 if test "$cross_compiling" = yes; then :
8623 ax_cv_gcc_x86_cpuid_0=unknown
8624else
8625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8626/* end confdefs.h. */
8627#include <stdio.h>
8628int
8629main ()
8630{
8631
8632 int op = 0, eax, ebx, ecx, edx;
8633 FILE *f;
8634 __asm__("cpuid"
8635 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8636 : "a" (op));
8637 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8638 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8639 fclose(f);
8640 return 0;
8641
8642 ;
8643 return 0;
8644}
8645_ACEOF
8646if ac_fn_c_try_run "$LINENO"; then :
8647 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
8648else
8649 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
8650fi
8651rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8652 conftest.$ac_objext conftest.beam conftest.$ac_ext
8653fi
8654
8655fi
8656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
8657$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
8658ac_ext=c
8659ac_cpp='$CPP $CPPFLAGS'
8660ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8661ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8662ac_compiler_gnu=$ac_cv_c_compiler_gnu
8663
8664
8665
8666ac_ext=c
8667ac_cpp='$CPP $CPPFLAGS'
8668ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8669ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8670ac_compiler_gnu=$ac_cv_c_compiler_gnu
8671
8672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
8673$as_echo_n "checking for x86 cpuid 1 output... " >&6; }
8674if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
8675 $as_echo_n "(cached) " >&6
8676else
8677 if test "$cross_compiling" = yes; then :
8678 ax_cv_gcc_x86_cpuid_1=unknown
8679else
8680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8681/* end confdefs.h. */
8682#include <stdio.h>
8683int
8684main ()
8685{
8686
8687 int op = 1, eax, ebx, ecx, edx;
8688 FILE *f;
8689 __asm__("cpuid"
8690 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8691 : "a" (op));
8692 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8693 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8694 fclose(f);
8695 return 0;
8696
8697 ;
8698 return 0;
8699}
8700_ACEOF
8701if ac_fn_c_try_run "$LINENO"; then :
8702 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
8703else
8704 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
8705fi
8706rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8707 conftest.$ac_objext conftest.beam conftest.$ac_ext
8708fi
8709
8710fi
8711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
8712$as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
8713ac_ext=c
8714ac_cpp='$CPP $CPPFLAGS'
8715ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8716ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8717ac_compiler_gnu=$ac_cv_c_compiler_gnu
8718
8719
8720 case $ax_cv_gcc_x86_cpuid_0 in
8721 *:756e6547:*:*) # Intel
8722 case $ax_cv_gcc_x86_cpuid_1 in
8723 *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
8724 *5??:*:*:*) ax_gcc_arch=pentium ;;
cristya0459972013-11-03 18:09:35 +00008725 *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
8726 *1?6[aef]?:*:*:*|*2?6[5cef]?:*:*:*) ax_gcc_arch="corei7 core2 pentium-m pentium3 pentiumpro" ;;
8727 *1?6c?:*:*:*|*[23]?66?:*:*:*) ax_gcc_arch="atom core2 pentium-m pentium3 pentiumpro" ;;
8728 *2?6[ad]?:*:*:*) ax_gcc_arch="corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
cristy17491be2014-06-24 01:10:53 +00008729 *[1-9a-f]?6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
8730 *6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8731 *6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8732 *6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8733 *6[9de]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
8734 *6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8735 *6f?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
8736 *6??:*:*:*) ax_gcc_arch=pentiumpro ;;
8737 *f3[347]:*:*:*|*f41347:*:*:*|*f6?:*:*:*)
cristya0459972013-11-03 18:09:35 +00008738 case $host_cpu in
8739 x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;;
8740 *) ax_gcc_arch="prescott pentium4 pentiumpro" ;;
8741 esac ;;
cristy17491be2014-06-24 01:10:53 +00008742 *f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";;
cristya0459972013-11-03 18:09:35 +00008743 esac ;;
8744 *:68747541:*:*) # AMD
8745 case $ax_cv_gcc_x86_cpuid_1 in
8746 *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
8747 *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
8748 *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
8749 *60?:*:*:*) ax_gcc_arch=k7 ;;
8750 *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
8751 *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
8752 *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;;
8753 *6[68a]?:*:*:*)
8754
8755ac_ext=c
8756ac_cpp='$CPP $CPPFLAGS'
8757ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8758ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8759ac_compiler_gnu=$ac_cv_c_compiler_gnu
8760
8761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000006 output" >&5
8762$as_echo_n "checking for x86 cpuid 0x80000006 output... " >&6; }
8763if ${ax_cv_gcc_x86_cpuid_0x80000006+:} false; then :
8764 $as_echo_n "(cached) " >&6
8765else
8766 if test "$cross_compiling" = yes; then :
8767 ax_cv_gcc_x86_cpuid_0x80000006=unknown
8768else
8769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8770/* end confdefs.h. */
8771#include <stdio.h>
8772int
8773main ()
8774{
8775
8776 int op = 0x80000006, eax, ebx, ecx, edx;
8777 FILE *f;
8778 __asm__("cpuid"
8779 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8780 : "a" (op));
8781 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8782 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8783 fclose(f);
8784 return 0;
8785
8786 ;
8787 return 0;
8788}
8789_ACEOF
8790if ac_fn_c_try_run "$LINENO"; then :
8791 ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid
8792else
8793 ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid
8794fi
8795rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8796 conftest.$ac_objext conftest.beam conftest.$ac_ext
8797fi
8798
8799fi
8800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5
8801$as_echo "$ax_cv_gcc_x86_cpuid_0x80000006" >&6; }
8802ac_ext=c
8803ac_cpp='$CPP $CPPFLAGS'
8804ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8805ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8806ac_compiler_gnu=$ac_cv_c_compiler_gnu
8807
8808 # L2 cache size
8809 case $ax_cv_gcc_x86_cpuid_0x80000006 in
8810 *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256
8811 ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
8812 *) ax_gcc_arch="athlon-4 athlon k7" ;;
8813 esac ;;
cristy17491be2014-06-24 01:10:53 +00008814 *5??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
8815 *6??f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
8816 *[1-9a-f]??f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
8817 *f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
8818 *f5?:*:*:*) ax_gcc_arch="opteron k8" ;;
8819 *f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;;
8820 *f??:*:*:*) ax_gcc_arch="k8" ;;
cristya0459972013-11-03 18:09:35 +00008821 esac ;;
8822 *:746e6543:*:*) # IDT
8823 case $ax_cv_gcc_x86_cpuid_1 in
8824 *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
8825 *58?:*:*:*) ax_gcc_arch=winchip2 ;;
8826 *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
8827 *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
8828 esac ;;
8829 esac
8830 if test x"$ax_gcc_arch" = x; then # fallback
8831 case $host_cpu in
8832 i586*) ax_gcc_arch=pentium ;;
8833 i686*) ax_gcc_arch=pentiumpro ;;
8834 esac
8835 fi
8836 ;;
8837
8838 sparc*)
8839 # Extract the first word of "prtdiag", so it can be a program name with args.
8840set dummy prtdiag; ac_word=$2
8841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8842$as_echo_n "checking for $ac_word... " >&6; }
8843if ${ac_cv_path_PRTDIAG+:} false; then :
8844 $as_echo_n "(cached) " >&6
8845else
8846 case $PRTDIAG in
8847 [\\/]* | ?:[\\/]*)
8848 ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
8849 ;;
8850 *)
8851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8852as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
8853for as_dir in $as_dummy
8854do
8855 IFS=$as_save_IFS
8856 test -z "$as_dir" && as_dir=.
8857 for ac_exec_ext in '' $ac_executable_extensions; do
8858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8859 ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
8860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8861 break 2
8862 fi
8863done
8864 done
8865IFS=$as_save_IFS
8866
8867 test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
8868 ;;
8869esac
8870fi
8871PRTDIAG=$ac_cv_path_PRTDIAG
8872if test -n "$PRTDIAG"; then
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
8874$as_echo "$PRTDIAG" >&6; }
8875else
8876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8877$as_echo "no" >&6; }
8878fi
8879
8880
8881 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 +00008882 cputype=`echo "$cputype" | tr -d ' -' | $SED 's/SPARCIIi/SPARCII/' |tr $as_cr_LETTERS $as_cr_letters`
cristya0459972013-11-03 18:09:35 +00008883 case $cputype in
8884 *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
8885 *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
8886 *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
8887 *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
8888 *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
8889 *cypress*) ax_gcc_arch=cypress ;;
8890 esac ;;
8891
8892 alphaev5) ax_gcc_arch=ev5 ;;
8893 alphaev56) ax_gcc_arch=ev56 ;;
8894 alphapca56) ax_gcc_arch="pca56 ev56" ;;
8895 alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
8896 alphaev6) ax_gcc_arch=ev6 ;;
8897 alphaev67) ax_gcc_arch=ev67 ;;
8898 alphaev68) ax_gcc_arch="ev68 ev67" ;;
8899 alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
8900 alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
8901 alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
8902
8903 powerpc*)
cristy17491be2014-06-24 01:10:53 +00008904 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`
8905 cputype=`echo $cputype | $SED -e 's/ppc//g;s/ *//g'`
cristya0459972013-11-03 18:09:35 +00008906 case $cputype in
8907 *750*) ax_gcc_arch="750 G3" ;;
8908 *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
8909 *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
8910 *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
8911 *970*) ax_gcc_arch="970 G5 power4";;
8912 *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
8913 *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
8914 603ev|8240) ax_gcc_arch="$cputype 603e 603";;
8915 *) ax_gcc_arch=$cputype ;;
8916 esac
8917 ax_gcc_arch="$ax_gcc_arch powerpc"
8918 ;;
8919esac
8920fi # not cross-compiling
8921fi # guess arch
8922
8923if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
8924for arch in $ax_gcc_arch; do
8925 if test "xno" = xyes; then # if we require portable code
8926 flags="-mtune=$arch"
8927 # -mcpu=$arch and m$arch generate nonportable code on every arch except
8928 # x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr.
8929 case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac
8930 else
8931 flags="-march=$arch -mcpu=$arch -m$arch"
8932 fi
8933 for flag in $flags; do
8934 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
8935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
8936$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
8937if eval \${$as_CACHEVAR+:} false; then :
8938 $as_echo_n "(cached) " >&6
8939else
8940
8941 ax_check_save_flags=$CFLAGS
8942 CFLAGS="$CFLAGS $flag"
8943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8944/* end confdefs.h. */
8945
8946int
8947main ()
8948{
8949
8950 ;
8951 return 0;
8952}
8953_ACEOF
8954if ac_fn_c_try_compile "$LINENO"; then :
8955 eval "$as_CACHEVAR=yes"
8956else
8957 eval "$as_CACHEVAR=no"
8958fi
8959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8960 CFLAGS=$ax_check_save_flags
8961fi
8962eval ac_res=\$$as_CACHEVAR
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8964$as_echo "$ac_res" >&6; }
8965if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
8966 ax_cv_gcc_archflag=$flag; break
8967else
8968 :
8969fi
8970
8971 done
8972 test "x$ax_cv_gcc_archflag" = xunknown || break
8973done
8974fi
8975
8976fi # $GCC=yes
8977
8978fi
8979
8980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8981$as_echo_n "checking for gcc architecture flag... " >&6; }
8982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
8983$as_echo "$ax_cv_gcc_archflag" >&6; }
8984if test "x$ax_cv_gcc_archflag" = xunknown; then
8985 :
8986else
8987 CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
8988fi
8989
8990
8991
cristy73bd4a52010-10-05 11:24:23 +00008992if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8993 if test -n "$ac_tool_prefix"; then
8994 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8995set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8997$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008998if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008999 $as_echo_n "(cached) " >&6
9000else
9001 case $PKG_CONFIG in
9002 [\\/]* | ?:[\\/]*)
9003 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9004 ;;
9005 *)
9006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9007for as_dir in $PATH
9008do
9009 IFS=$as_save_IFS
9010 test -z "$as_dir" && as_dir=.
9011 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009013 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9015 break 2
9016 fi
9017done
9018 done
9019IFS=$as_save_IFS
9020
9021 ;;
9022esac
9023fi
9024PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9025if test -n "$PKG_CONFIG"; then
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9027$as_echo "$PKG_CONFIG" >&6; }
9028else
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9030$as_echo "no" >&6; }
9031fi
9032
9033
9034fi
9035if test -z "$ac_cv_path_PKG_CONFIG"; then
9036 ac_pt_PKG_CONFIG=$PKG_CONFIG
9037 # Extract the first word of "pkg-config", so it can be a program name with args.
9038set dummy pkg-config; ac_word=$2
9039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9040$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009041if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009042 $as_echo_n "(cached) " >&6
9043else
9044 case $ac_pt_PKG_CONFIG in
9045 [\\/]* | ?:[\\/]*)
9046 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9047 ;;
9048 *)
9049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9050for as_dir in $PATH
9051do
9052 IFS=$as_save_IFS
9053 test -z "$as_dir" && as_dir=.
9054 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009056 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9058 break 2
9059 fi
9060done
9061 done
9062IFS=$as_save_IFS
9063
9064 ;;
9065esac
9066fi
9067ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9068if test -n "$ac_pt_PKG_CONFIG"; then
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
9070$as_echo "$ac_pt_PKG_CONFIG" >&6; }
9071else
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9073$as_echo "no" >&6; }
9074fi
9075
9076 if test "x$ac_pt_PKG_CONFIG" = x; then
9077 PKG_CONFIG=""
9078 else
9079 case $cross_compiling:$ac_tool_warned in
9080yes:)
9081{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9082$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9083ac_tool_warned=yes ;;
9084esac
9085 PKG_CONFIG=$ac_pt_PKG_CONFIG
9086 fi
9087else
9088 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9089fi
9090
9091fi
9092if test -n "$PKG_CONFIG"; then
9093 _pkg_min_version=0.9.0
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
9095$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
9096 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9098$as_echo "yes" >&6; }
9099 else
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9101$as_echo "no" >&6; }
9102 PKG_CONFIG=""
9103 fi
9104
9105fi
cristy3ed852e2009-09-05 21:47:34 +00009106
cristy9af1cbf2014-12-28 22:03:09 +00009107
9108
cristyd95b7a52013-10-23 13:12:53 +00009109# Test for 64-bit build.
9110# The cast to long int works around a bug in the HP C Compiler
9111# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9112# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9113# This bug is HP SR number 8606223364.
9114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
9115$as_echo_n "checking size of size_t... " >&6; }
9116if ${ac_cv_sizeof_size_t+:} false; then :
9117 $as_echo_n "(cached) " >&6
9118else
9119 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
9120
9121else
9122 if test "$ac_cv_type_size_t" = yes; then
9123 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9124$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9125as_fn_error 77 "cannot compute sizeof (size_t)
9126See \`config.log' for more details" "$LINENO" 5; }
9127 else
9128 ac_cv_sizeof_size_t=0
9129 fi
9130fi
9131
9132fi
9133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
9134$as_echo "$ac_cv_sizeof_size_t" >&6; }
9135
9136
9137
9138cat >>confdefs.h <<_ACEOF
9139#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
9140_ACEOF
9141
9142
9143
9144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
9145$as_echo_n "checking for C compiler vendor... " >&6; }
9146if ${ax_cv_c_compiler_vendor+:} false; then :
9147 $as_echo_n "(cached) " >&6
9148else
9149 # note: don't check for gcc first since some other compilers define __GNUC__
9150 vendors="intel: __ICC,__ECC,__INTEL_COMPILER
9151 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__
9152 pathscale: __PATHCC__,__PATHSCALE__
9153 clang: __clang__
cristy17491be2014-06-24 01:10:53 +00009154 fujitsu: __FUJITSU
cristyd95b7a52013-10-23 13:12:53 +00009155 gnu: __GNUC__
9156 sun: __SUNPRO_C,__SUNPRO_CC
9157 hp: __HP_cc,__HP_aCC
9158 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
9159 borland: __BORLANDC__,__TURBOC__
9160 comeau: __COMO__
9161 cray: _CRAYC
9162 kai: __KCC
9163 lcc: __LCC__
9164 sgi: __sgi,sgi
9165 microsoft: _MSC_VER
9166 metrowerks: __MWERKS__
9167 watcom: __WATCOMC__
9168 portland: __PGI
9169 unknown: UNKNOWN"
9170 for ventest in $vendors; do
9171 case $ventest in
9172 *:) vendor=$ventest; continue ;;
9173 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
9174 esac
9175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9176/* end confdefs.h. */
9177
9178int
9179main ()
9180{
9181
9182 #if !($vencpp)
9183 thisisanerror;
9184 #endif
9185
9186 ;
9187 return 0;
9188}
9189_ACEOF
9190if ac_fn_c_try_compile "$LINENO"; then :
9191 break
9192fi
9193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9194 done
9195 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
9196
9197fi
9198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
9199$as_echo "$ax_cv_c_compiler_vendor" >&6; }
9200
cristyd95b7a52013-10-23 13:12:53 +00009201# The AX_CFLAGS_WARN_ALL macro doesn't currently work for sunpro
9202# compiler.
9203if test "$ax_cv_c_compiler_vendor" != "sun"; then
cristy17491be2014-06-24 01:10:53 +00009204 ac_ext=c
cristyd95b7a52013-10-23 13:12:53 +00009205ac_cpp='$CPP $CPPFLAGS'
9206ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9207ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9208ac_compiler_gnu=$ac_cv_c_compiler_gnu
9209
cristy17491be2014-06-24 01:10:53 +00009210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
9211$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
9212if ${ac_cv_cflags_warn_all+:} false; then :
9213 $as_echo_n "(cached) " >&6
9214else
9215 ac_cv_cflags_warn_all="no, unknown"
9216ac_save_CFLAGS="$CFLAGS"
9217for 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 +00009218do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
9219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9220/* end confdefs.h. */
9221
9222int
9223main ()
9224{
9225
9226 ;
9227 return 0;
9228}
9229_ACEOF
9230if ac_fn_c_try_compile "$LINENO"; then :
9231 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
9232fi
9233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9234done
cristy17491be2014-06-24 01:10:53 +00009235CFLAGS="$ac_save_CFLAGS"
9236
9237fi
9238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
9239$as_echo "$ac_cv_cflags_warn_all" >&6; }
9240
9241
9242case ".$ac_cv_cflags_warn_all" in
9243 .ok|.ok,*) ;;
9244 .|.no|.no,*) ;;
9245 *) if ${CFLAGS+:} false; then :
9246 case " $CFLAGS " in
9247 *" $ac_cv_cflags_warn_all "*)
9248 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
9249 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
9250 ac_status=$?
9251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9252 test $ac_status = 0; }
9253 ;;
9254 *)
9255 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
9256 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
9257 ac_status=$?
9258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9259 test $ac_status = 0; }
9260 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
9261 ;;
9262 esac
9263else
9264 CFLAGS="$ac_cv_cflags_warn_all"
9265fi
9266 ;;
9267esac
9268
9269ac_ext=c
cristyd95b7a52013-10-23 13:12:53 +00009270ac_cpp='$CPP $CPPFLAGS'
9271ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9272ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9273ac_compiler_gnu=$ac_cv_c_compiler_gnu
9274
9275
9276fi
cristyd95b7a52013-10-23 13:12:53 +00009277
9278if test "x$GCC" = "xyes"; then
9279 CFLAGS="$CFLAGS -fexceptions"
9280 touch local.exp
9281else
9282 cat > local.exp <<EOF
9283set CC_FOR_TARGET "$CC"
9284EOF
9285fi
9286
cristy9b86f202012-11-28 21:55:35 +00009287# Check for linker script support
9288
9289 # Check whether --enable-ld-version-script was given.
9290if test "${enable_ld_version_script+set}" = set; then :
9291 enableval=$enable_ld_version_script; have_ld_version_script=$enableval
9292fi
9293
9294 if test -z "$have_ld_version_script"; then
9295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
9296$as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
9297 save_LDFLAGS="$LDFLAGS"
9298 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
9299 cat > conftest.map <<EOF
9300foo
9301EOF
9302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9303/* end confdefs.h. */
9304
9305int
9306main ()
9307{
9308
9309 ;
9310 return 0;
9311}
9312_ACEOF
9313if ac_fn_c_try_link "$LINENO"; then :
9314 accepts_syntax_errors=yes
9315else
9316 accepts_syntax_errors=no
9317fi
9318rm -f core conftest.err conftest.$ac_objext \
9319 conftest$ac_exeext conftest.$ac_ext
9320 if test "$accepts_syntax_errors" = no; then
9321 cat > conftest.map <<EOF
9322VERS_1 {
9323 global: sym;
9324};
9325
9326VERS_2 {
9327 global: sym;
9328} VERS_1;
9329EOF
9330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9331/* end confdefs.h. */
9332
9333int
9334main ()
9335{
9336
9337 ;
9338 return 0;
9339}
9340_ACEOF
9341if ac_fn_c_try_link "$LINENO"; then :
9342 have_ld_version_script=yes
9343else
9344 have_ld_version_script=no
9345fi
9346rm -f core conftest.err conftest.$ac_objext \
9347 conftest$ac_exeext conftest.$ac_ext
9348 else
9349 have_ld_version_script=no
9350 fi
9351 rm -f conftest.map
9352 LDFLAGS="$save_LDFLAGS"
9353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
9354$as_echo "$have_ld_version_script" >&6; }
9355 fi
9356 if test "$have_ld_version_script" = "yes"; then
9357 HAVE_LD_VERSION_SCRIPT_TRUE=
9358 HAVE_LD_VERSION_SCRIPT_FALSE='#'
9359else
9360 HAVE_LD_VERSION_SCRIPT_TRUE='#'
9361 HAVE_LD_VERSION_SCRIPT_FALSE=
9362fi
9363
9364
9365
cristy3ed852e2009-09-05 21:47:34 +00009366#
cristy3ed852e2009-09-05 21:47:34 +00009367# Enable run-time checking.
9368#
9369# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00009370if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009371 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
9372else
9373 enable_bounds_checking='no'
9374fi
9375
9376
9377if test "$enable_bounds_checking" = yes; then
9378
cristy8b350f62009-11-15 23:12:43 +00009379$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009380
9381fi
9382
9383#
9384# Tests for Windows
9385#
9386
9387
9388
9389GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00009390native_win32_build='no'
9391cygwin_build='no'
9392case "${host_os}" in
9393 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00009394 cygwin_build='yes'
9395 GDI32_LIBS='-lgdi32'
9396 ;;
9397 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00009398 native_win32_build='yes'
9399 GDI32_LIBS='-lgdi32'
9400 ;;
9401esac
9402if test "${GDI32_LIBS}x" != 'x'; then
9403
cristy8b350f62009-11-15 23:12:43 +00009404$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009405
9406fi
9407
cristy73bd4a52010-10-05 11:24:23 +00009408 if test "${GDI32_LIBS}x" != 'x' ; then
9409 WINGDI32_DELEGATE_TRUE=
9410 WINGDI32_DELEGATE_FALSE='#'
9411else
9412 WINGDI32_DELEGATE_TRUE='#'
9413 WINGDI32_DELEGATE_FALSE=
9414fi
9415
9416 if test "${native_win32_build}" = 'yes' ; then
9417 WIN32_NATIVE_BUILD_TRUE=
9418 WIN32_NATIVE_BUILD_FALSE='#'
9419else
9420 WIN32_NATIVE_BUILD_TRUE='#'
9421 WIN32_NATIVE_BUILD_FALSE=
9422fi
9423
9424 if test "${cygwin_build}" = 'yes' ; then
9425 CYGWIN_BUILD_TRUE=
9426 CYGWIN_BUILD_FALSE='#'
9427else
9428 CYGWIN_BUILD_TRUE='#'
9429 CYGWIN_BUILD_FALSE=
9430fi
9431
9432 if test "x${CC}" = 'xcl.exe' ; then
9433 USING_CL_TRUE=
9434 USING_CL_FALSE='#'
9435else
9436 USING_CL_TRUE='#'
9437 USING_CL_FALSE=
9438fi
9439
cristy3ed852e2009-09-05 21:47:34 +00009440
9441WinPathScript="${srcdirfull}/winpath.sh"
9442
9443
9444#
9445# Compiler flags tweaks
9446#
9447if test "${GCC}" != "yes"; then
9448 case "${host}" in
9449 *-*-hpux* )
9450 # aCC: HP ANSI C++ B3910B A.03.34
9451 CFLAGS="${CFLAGS} -Wp,-H30000"
9452 if test -n "${CXXFLAGS}"; then
9453 CXXFLAGS='-AA'
9454 else
9455 CXXFLAGS="${CXXFLAGS} -AA"
9456 fi
9457 ;;
9458 *-dec-osf5.* )
9459 # Compaq alphaev68-dec-osf5.1 compiler
9460 if test -n "${CXXFLAGS}"; then
9461 CXXFLAGS='-std strict_ansi -noimplicit_include'
9462 else
9463 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
9464 fi
9465 esac
9466fi
9467
9468# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00009469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00009470$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009471if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009472 $as_echo_n "(cached) " >&6
9473else
9474
9475im_cv_ld_lazyload='none'
9476case "${host}" in
9477 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
9478 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
9479 im_cv_ld_lazyload='-Wl,-zlazyload'
9480 fi
9481 ;;
9482esac
9483
9484fi
cristy8b350f62009-11-15 23:12:43 +00009485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00009486$as_echo "$im_cv_ld_lazyload" >&6; }
9487if test "${im_cv_ld_lazyload}" != 'none' ; then
9488 if test -z "${LDFLAGS}" ; then
9489 LDFLAGS="${im_cv_ld_lazyload}"
9490 else
9491 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
9492 fi
9493fi
9494
9495case "$host" in
cristyc37574e2013-02-16 01:04:55 +00009496 *darwin* | *-macos10*)
cristyb3b90d32013-02-16 15:44:08 +00009497 CFLAGS="${CFLAGS} -D_FORTIFY_SOURCE=0"
cristyc37574e2013-02-16 01:04:55 +00009498 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00009499if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009500 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
9501else
9502 build_osxuniversal=no
9503fi
9504
9505
cristyc37574e2013-02-16 01:04:55 +00009506 if test "${build_osxuniversal}" != no ; then
9507 if test "$enable_dependency_tracking" != no ; then
9508 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00009509Please re-run configure with these options:
9510 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00009511 " "$LINENO" 5
cristyc37574e2013-02-16 01:04:55 +00009512 fi
9513 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
9514 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
9515 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
cristy3ed852e2009-09-05 21:47:34 +00009516 fi
9517 ;;
9518esac
9519
cristy0151ae12011-10-28 16:32:29 +00009520#
9521# ARCH specific include directory
9522#
9523
cristy670aa3c2011-11-03 00:54:00 +00009524# Check whether --with-includearch-dir was given.
9525if test "${with_includearch_dir+set}" = set; then :
9526 withval=$with_includearch_dir; includearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00009527else
cristy670aa3c2011-11-03 00:54:00 +00009528 includearch_dir=$INCLUDE_DIR
cristy0151ae12011-10-28 16:32:29 +00009529fi
9530
9531
cristyd286fd72013-02-24 19:25:33 +00009532eval "eval INCLUDEARCH_DIR=$includearch_dir"
cristyac9041a2011-10-28 16:52:32 +00009533
cristy0151ae12011-10-28 16:32:29 +00009534
9535#
9536# ARCH specific configuration directory
9537#
9538
cristy670aa3c2011-11-03 00:54:00 +00009539# Check whether --with-sharearch-dir was given.
9540if test "${with_sharearch_dir+set}" = set; then :
9541 withval=$with_sharearch_dir; sharearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00009542else
cristy408ebcd2011-11-14 01:36:57 +00009543 sharearch_dir="${LIB_DIR}"
cristy0151ae12011-10-28 16:32:29 +00009544fi
9545
9546
cristy670aa3c2011-11-03 00:54:00 +00009547eval "eval SHAREARCH_DIR=$sharearch_dir"
cristyac9041a2011-10-28 16:52:32 +00009548
cristy0151ae12011-10-28 16:32:29 +00009549
cristy2ec87cc2013-02-18 17:46:50 +00009550# Path to the pkgconfig folder
9551
9552# Check whether --with-pkgconfigdir was given.
9553if test "${with_pkgconfigdir+set}" = set; then :
9554 withval=$with_pkgconfigdir; pkgconfigdir="$withval"
9555else
9556 pkgconfigdir='${libdir}/pkgconfig'
9557fi
9558
9559
9560
cristy0151ae12011-10-28 16:32:29 +00009561#
cristy3ed852e2009-09-05 21:47:34 +00009562# Enable support for threads
cristy1ae5c992013-07-30 14:55:07 +00009563#
9564# Find Posix threads library
9565#
cristy3ed852e2009-09-05 21:47:34 +00009566
9567# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00009568if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009569 withval=$with_threads; with_threads=$withval
9570else
9571 with_threads='yes'
9572fi
9573
9574
cristy1ae5c992013-07-30 14:55:07 +00009575THREAD_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00009576have_threads=no
9577if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00009578
9579
cristy73bd4a52010-10-05 11:24:23 +00009580ac_ext=c
9581ac_cpp='$CPP $CPPFLAGS'
9582ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9583ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9584ac_compiler_gnu=$ac_cv_c_compiler_gnu
9585
9586ax_pthread_ok=no
9587
9588# We used to check for pthread.h first, but this fails if pthread.h
9589# requires special compiler flags (e.g. on True64 or Sequent).
9590# It gets checked for in the link test anyway.
9591
9592# First of all, check if the user has set any of the PTHREAD_LIBS,
9593# etcetera environment variables, and if threads linking works using
9594# them:
9595if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9596 save_CFLAGS="$CFLAGS"
9597 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9598 save_LIBS="$LIBS"
9599 LIBS="$PTHREAD_LIBS $LIBS"
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9601$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9603/* end confdefs.h. */
9604
9605/* Override any GCC internal prototype to avoid an error.
9606 Use char because int might match the return type of a GCC
9607 builtin and then its argument prototype would still apply. */
9608#ifdef __cplusplus
9609extern "C"
9610#endif
9611char pthread_join ();
9612int
9613main ()
9614{
9615return pthread_join ();
9616 ;
9617 return 0;
9618}
9619_ACEOF
9620if ac_fn_c_try_link "$LINENO"; then :
9621 ax_pthread_ok=yes
9622fi
9623rm -f core conftest.err conftest.$ac_objext \
9624 conftest$ac_exeext conftest.$ac_ext
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9626$as_echo "$ax_pthread_ok" >&6; }
9627 if test x"$ax_pthread_ok" = xno; then
9628 PTHREAD_LIBS=""
9629 PTHREAD_CFLAGS=""
9630 fi
9631 LIBS="$save_LIBS"
9632 CFLAGS="$save_CFLAGS"
9633fi
9634
9635# We must check for the threads library under a number of different
9636# names; the ordering is very important because some systems
9637# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9638# libraries is broken (non-POSIX).
9639
9640# Create a list of thread flags to try. Items starting with a "-" are
9641# C compiler flags, and other items are library names, except for "none"
9642# which indicates that we try without any flags at all, and "pthread-config"
9643# which is a program returning the flags for the Pth emulation library.
9644
cristy2ec87cc2013-02-18 17:46:50 +00009645ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009646
9647# The ordering *is* (sometimes) important. Some notes on the
9648# individual items follow:
9649
9650# pthreads: AIX (must check this before -lpthread)
9651# none: in case threads are in libc; should be tried before -Kthread and
9652# other compiler flags to prevent continual compiler warnings
9653# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9654# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9655# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9656# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9657# -pthreads: Solaris/gcc
9658# -mthreads: Mingw32/gcc, Lynx/gcc
9659# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9660# doesn't hurt to check since this sometimes defines pthreads too;
9661# also defines -D_REENTRANT)
9662# ... -mt is also the pthreads flag for HP/aCC
9663# pthread: Linux, etcetera
9664# --thread-safe: KAI C++
9665# pthread-config: use pthread-config program (for GNU Pth library)
9666
cristy2ec87cc2013-02-18 17:46:50 +00009667case ${host_os} in
9668 solaris*)
cristy73bd4a52010-10-05 11:24:23 +00009669
9670 # On Solaris (at least, for some versions), libc contains stubbed
9671 # (non-functional) versions of the pthreads routines, so link-based
9672 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9673 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9674 # a function called by this macro, so we could check for that, but
9675 # who knows whether they'll stub that too in a future libc.) So,
9676 # we'll just look for -pthreads and -lpthread first:
9677
9678 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9679 ;;
9680
cristy2ec87cc2013-02-18 17:46:50 +00009681 darwin*)
cristya316db12011-10-24 00:49:45 +00009682 ax_pthread_flags="-pthread $ax_pthread_flags"
9683 ;;
cristy73bd4a52010-10-05 11:24:23 +00009684esac
9685
cristy17491be2014-06-24 01:10:53 +00009686# Clang doesn't consider unrecognized options an error unless we specify
9687# -Werror. We throw in some extra Clang-specific options to ensure that
9688# this doesn't happen for GCC, which also accepts -Werror.
9689
9690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
9691$as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; }
9692save_CFLAGS="$CFLAGS"
9693ax_pthread_extra_flags="-Werror"
9694CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
9695cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9696/* end confdefs.h. */
9697int foo(void);
9698int
9699main ()
9700{
9701foo()
9702 ;
9703 return 0;
9704}
9705_ACEOF
9706if ac_fn_c_try_compile "$LINENO"; then :
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9708$as_echo "yes" >&6; }
9709else
9710 ax_pthread_extra_flags=
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9712$as_echo "no" >&6; }
9713fi
9714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9715CFLAGS="$save_CFLAGS"
9716
cristy73bd4a52010-10-05 11:24:23 +00009717if test x"$ax_pthread_ok" = xno; then
9718for flag in $ax_pthread_flags; do
9719
9720 case $flag in
9721 none)
9722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9723$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9724 ;;
9725
9726 -*)
9727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9728$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9729 PTHREAD_CFLAGS="$flag"
9730 ;;
9731
cristya316db12011-10-24 00:49:45 +00009732 pthread-config)
9733 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009734set dummy pthread-config; ac_word=$2
9735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9736$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009737if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009738 $as_echo_n "(cached) " >&6
9739else
9740 if test -n "$ax_pthread_config"; then
9741 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9742else
9743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9744for as_dir in $PATH
9745do
9746 IFS=$as_save_IFS
9747 test -z "$as_dir" && as_dir=.
9748 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009750 ac_cv_prog_ax_pthread_config="yes"
9751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9752 break 2
9753 fi
9754done
9755 done
9756IFS=$as_save_IFS
9757
9758 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9759fi
9760fi
9761ax_pthread_config=$ac_cv_prog_ax_pthread_config
9762if test -n "$ax_pthread_config"; then
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9764$as_echo "$ax_pthread_config" >&6; }
9765else
9766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9767$as_echo "no" >&6; }
9768fi
9769
9770
cristya316db12011-10-24 00:49:45 +00009771 if test x"$ax_pthread_config" = xno; then continue; fi
9772 PTHREAD_CFLAGS="`pthread-config --cflags`"
9773 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9774 ;;
cristy73bd4a52010-10-05 11:24:23 +00009775
9776 *)
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9778$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9779 PTHREAD_LIBS="-l$flag"
9780 ;;
9781 esac
9782
9783 save_LIBS="$LIBS"
9784 save_CFLAGS="$CFLAGS"
9785 LIBS="$PTHREAD_LIBS $LIBS"
cristy17491be2014-06-24 01:10:53 +00009786 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
cristy73bd4a52010-10-05 11:24:23 +00009787
9788 # Check for various functions. We must include pthread.h,
9789 # since some functions may be macros. (On the Sequent, we
9790 # need a special flag -Kthread to make this header compile.)
9791 # We check for pthread_join because it is in -lpthread on IRIX
9792 # while pthread_create is in libc. We check for pthread_attr_init
9793 # due to DEC craziness with -lpthreads. We check for
9794 # pthread_cleanup_push because it is one of the few pthread
9795 # functions on Solaris that doesn't have a non-functional libc stub.
9796 # We try pthread_create on general principles.
9797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9798/* end confdefs.h. */
9799#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009800 static void routine(void *a) { a = 0; }
9801 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009802int
9803main ()
9804{
9805pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009806 pthread_create(&th, 0, start_routine, 0);
9807 pthread_join(th, 0);
9808 pthread_attr_init(&attr);
9809 pthread_cleanup_push(routine, 0);
9810 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009811 ;
9812 return 0;
9813}
9814_ACEOF
9815if ac_fn_c_try_link "$LINENO"; then :
9816 ax_pthread_ok=yes
9817fi
9818rm -f core conftest.err conftest.$ac_objext \
9819 conftest$ac_exeext conftest.$ac_ext
9820
9821 LIBS="$save_LIBS"
9822 CFLAGS="$save_CFLAGS"
9823
9824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9825$as_echo "$ax_pthread_ok" >&6; }
9826 if test "x$ax_pthread_ok" = xyes; then
9827 break;
9828 fi
9829
9830 PTHREAD_LIBS=""
9831 PTHREAD_CFLAGS=""
9832done
9833fi
9834
9835# Various other checks:
9836if test "x$ax_pthread_ok" = xyes; then
9837 save_LIBS="$LIBS"
9838 LIBS="$PTHREAD_LIBS $LIBS"
9839 save_CFLAGS="$CFLAGS"
9840 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9841
9842 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009844$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009845 attr_name=unknown
9846 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009848/* end confdefs.h. */
9849#include <pthread.h>
9850int
9851main ()
9852{
cristya316db12011-10-24 00:49:45 +00009853int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009854 ;
9855 return 0;
9856}
9857_ACEOF
9858if ac_fn_c_try_link "$LINENO"; then :
9859 attr_name=$attr; break
9860fi
9861rm -f core conftest.err conftest.$ac_objext \
9862 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009863 done
cristy73bd4a52010-10-05 11:24:23 +00009864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9865$as_echo "$attr_name" >&6; }
9866 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9867
9868cat >>confdefs.h <<_ACEOF
9869#define PTHREAD_CREATE_JOINABLE $attr_name
9870_ACEOF
9871
9872 fi
9873
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9875$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9876 flag=no
cristy2ec87cc2013-02-18 17:46:50 +00009877 case ${host_os} in
9878 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
9879 osf* | hpux*) flag="-D_REENTRANT";;
9880 solaris*)
9881 if test "$GCC" = "yes"; then
9882 flag="-D_REENTRANT"
9883 else
cristy17491be2014-06-24 01:10:53 +00009884 # TODO: What about Clang on Solaris?
cristy2ec87cc2013-02-18 17:46:50 +00009885 flag="-mt -D_REENTRANT"
9886 fi
9887 ;;
cristy73bd4a52010-10-05 11:24:23 +00009888 esac
cristy17491be2014-06-24 01:10:53 +00009889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
9890$as_echo "$flag" >&6; }
cristy73bd4a52010-10-05 11:24:23 +00009891 if test "x$flag" != xno; then
9892 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9893 fi
9894
cristya316db12011-10-24 00:49:45 +00009895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9896$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9897if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9898 $as_echo_n "(cached) " >&6
9899else
9900
9901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9902/* end confdefs.h. */
cristy17491be2014-06-24 01:10:53 +00009903#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009904int
9905main ()
9906{
9907int i = PTHREAD_PRIO_INHERIT;
9908 ;
9909 return 0;
9910}
9911_ACEOF
9912if ac_fn_c_try_link "$LINENO"; then :
9913 ax_cv_PTHREAD_PRIO_INHERIT=yes
9914else
9915 ax_cv_PTHREAD_PRIO_INHERIT=no
9916fi
9917rm -f core conftest.err conftest.$ac_objext \
9918 conftest$ac_exeext conftest.$ac_ext
9919
9920fi
9921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9922$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9923 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9924
9925$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9926
9927fi
9928
cristy73bd4a52010-10-05 11:24:23 +00009929 LIBS="$save_LIBS"
9930 CFLAGS="$save_CFLAGS"
9931
cristy23493c42013-04-11 16:04:59 +00009932 # More AIX lossage: compile with *_r variant
9933 if test "x$GCC" != xyes; then
9934 case $host_os in
9935 aix*)
9936 case "x/$CC" in #(
9937 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
9938 #handle absolute path differently from PATH based program lookup
9939 case "x$CC" in #(
9940 x/*) :
9941 if as_fn_executable_p ${CC}_r; then :
9942 PTHREAD_CC="${CC}_r"
9943fi ;; #(
9944 *) :
9945 for ac_prog in ${CC}_r
cristy73bd4a52010-10-05 11:24:23 +00009946do
9947 # Extract the first word of "$ac_prog", so it can be a program name with args.
9948set dummy $ac_prog; ac_word=$2
9949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9950$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009951if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009952 $as_echo_n "(cached) " >&6
9953else
9954 if test -n "$PTHREAD_CC"; then
9955 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9956else
9957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9958for as_dir in $PATH
9959do
9960 IFS=$as_save_IFS
9961 test -z "$as_dir" && as_dir=.
9962 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009964 ac_cv_prog_PTHREAD_CC="$ac_prog"
9965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9966 break 2
9967 fi
9968done
9969 done
9970IFS=$as_save_IFS
9971
9972fi
9973fi
9974PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9975if test -n "$PTHREAD_CC"; then
9976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9977$as_echo "$PTHREAD_CC" >&6; }
9978else
9979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9980$as_echo "no" >&6; }
9981fi
9982
9983
9984 test -n "$PTHREAD_CC" && break
9985done
cristy23493c42013-04-11 16:04:59 +00009986test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9987 ;;
9988esac ;; #(
9989 *) :
9990 ;;
9991esac
9992 ;;
9993 esac
cristya316db12011-10-24 00:49:45 +00009994 fi
cristy73bd4a52010-10-05 11:24:23 +00009995fi
9996
cristy23493c42013-04-11 16:04:59 +00009997test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9998
cristy73bd4a52010-10-05 11:24:23 +00009999
10000
10001
10002
10003# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
10004if test x"$ax_pthread_ok" = xyes; then
10005
10006$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10007
10008 :
10009else
10010 ax_pthread_ok=no
10011
10012fi
10013ac_ext=c
10014ac_cpp='$CPP $CPPFLAGS'
10015ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10016ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10017ac_compiler_gnu=$ac_cv_c_compiler_gnu
10018
10019
cristy7acf8fb2010-09-23 19:58:53 +000010020 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +000010021 have_threads=yes
10022 DEF_THREAD="$PTHREAD_CFLAGS"
10023 CFLAGS="$CFLAGS $DEF_THREAD"
10024 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
cristy1ae5c992013-07-30 14:55:07 +000010025 THREAD_LIBS="$PTHREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000010026 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +000010027 { $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 +000010028$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
10029 CC="$PTHREAD_CC"
10030 fi
cristy55bf91c2010-09-24 00:29:41 +000010031
10032$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
10033
cristy3ed852e2009-09-05 21:47:34 +000010034 fi
10035fi
cristy1ae5c992013-07-30 14:55:07 +000010036LIBS="$LIBS $THREAD_LIBS"
10037
cristy3ed852e2009-09-05 21:47:34 +000010038
10039# Enable support for OpenMP
10040if test "$have_threads" != 'yes'; then
10041 ac_cv_prog_c_openmp=unsupported
10042fi
10043
10044 OPENMP_CFLAGS=
10045 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000010046if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010047 enableval=$enable_openmp;
10048fi
10049
10050 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +000010051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +000010052$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010053if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010054 $as_echo_n "(cached) " >&6
10055else
cristy8b350f62009-11-15 23:12:43 +000010056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10057/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000010058
10059#ifndef _OPENMP
10060 choke me
10061#endif
10062#include <omp.h>
10063int main () { return omp_get_num_threads (); }
10064
10065_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010066if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010067 ac_cv_prog_c_openmp='none needed'
10068else
cristy8b350f62009-11-15 23:12:43 +000010069 ac_cv_prog_c_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +000010070 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
10071 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +000010072 ac_save_CFLAGS=$CFLAGS
10073 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000010074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10075/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000010076
10077#ifndef _OPENMP
10078 choke me
10079#endif
10080#include <omp.h>
10081int main () { return omp_get_num_threads (); }
10082
10083_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010084if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010085 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000010086fi
cristy8b350f62009-11-15 23:12:43 +000010087rm -f core conftest.err conftest.$ac_objext \
10088 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010089 CFLAGS=$ac_save_CFLAGS
10090 if test "$ac_cv_prog_c_openmp" != unsupported; then
10091 break
10092 fi
10093 done
10094fi
cristy8b350f62009-11-15 23:12:43 +000010095rm -f core conftest.err conftest.$ac_objext \
10096 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010097fi
cristy8b350f62009-11-15 23:12:43 +000010098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000010099$as_echo "$ac_cv_prog_c_openmp" >&6; }
10100 case $ac_cv_prog_c_openmp in #(
10101 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000010102 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000010103 *)
cristy8b350f62009-11-15 23:12:43 +000010104 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000010105 esac
10106 fi
10107
10108
10109CFLAGS="$OPENMP_CFLAGS $CFLAGS"
10110MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
10111
cristy391f1ce2010-09-09 17:23:28 +000010112if test "$enable_openmp" != no; then
10113 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
10114 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
10115 fi
10116fi
cristy3ed852e2009-09-05 21:47:34 +000010117
cristy736173a2009-09-20 21:18:22 +000010118# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +000010119
10120
cristy73bd4a52010-10-05 11:24:23 +000010121ac_ext=c
10122ac_cpp='$CPP $CPPFLAGS'
10123ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10124ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10125ac_compiler_gnu=$ac_cv_c_compiler_gnu
10126
10127ax_pthread_ok=no
10128
10129# We used to check for pthread.h first, but this fails if pthread.h
10130# requires special compiler flags (e.g. on True64 or Sequent).
10131# It gets checked for in the link test anyway.
10132
10133# First of all, check if the user has set any of the PTHREAD_LIBS,
10134# etcetera environment variables, and if threads linking works using
10135# them:
10136if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
10137 save_CFLAGS="$CFLAGS"
10138 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
10139 save_LIBS="$LIBS"
10140 LIBS="$PTHREAD_LIBS $LIBS"
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
10142$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
10143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10144/* end confdefs.h. */
10145
10146/* Override any GCC internal prototype to avoid an error.
10147 Use char because int might match the return type of a GCC
10148 builtin and then its argument prototype would still apply. */
10149#ifdef __cplusplus
10150extern "C"
10151#endif
10152char pthread_join ();
10153int
10154main ()
10155{
10156return pthread_join ();
10157 ;
10158 return 0;
10159}
10160_ACEOF
10161if ac_fn_c_try_link "$LINENO"; then :
10162 ax_pthread_ok=yes
10163fi
10164rm -f core conftest.err conftest.$ac_objext \
10165 conftest$ac_exeext conftest.$ac_ext
10166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
10167$as_echo "$ax_pthread_ok" >&6; }
10168 if test x"$ax_pthread_ok" = xno; then
10169 PTHREAD_LIBS=""
10170 PTHREAD_CFLAGS=""
10171 fi
10172 LIBS="$save_LIBS"
10173 CFLAGS="$save_CFLAGS"
10174fi
10175
10176# We must check for the threads library under a number of different
10177# names; the ordering is very important because some systems
10178# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
10179# libraries is broken (non-POSIX).
10180
10181# Create a list of thread flags to try. Items starting with a "-" are
10182# C compiler flags, and other items are library names, except for "none"
10183# which indicates that we try without any flags at all, and "pthread-config"
10184# which is a program returning the flags for the Pth emulation library.
10185
cristy2ec87cc2013-02-18 17:46:50 +000010186ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy73bd4a52010-10-05 11:24:23 +000010187
10188# The ordering *is* (sometimes) important. Some notes on the
10189# individual items follow:
10190
10191# pthreads: AIX (must check this before -lpthread)
10192# none: in case threads are in libc; should be tried before -Kthread and
10193# other compiler flags to prevent continual compiler warnings
10194# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
10195# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
10196# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
10197# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
10198# -pthreads: Solaris/gcc
10199# -mthreads: Mingw32/gcc, Lynx/gcc
10200# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
10201# doesn't hurt to check since this sometimes defines pthreads too;
10202# also defines -D_REENTRANT)
10203# ... -mt is also the pthreads flag for HP/aCC
10204# pthread: Linux, etcetera
10205# --thread-safe: KAI C++
10206# pthread-config: use pthread-config program (for GNU Pth library)
10207
cristy2ec87cc2013-02-18 17:46:50 +000010208case ${host_os} in
10209 solaris*)
cristy73bd4a52010-10-05 11:24:23 +000010210
10211 # On Solaris (at least, for some versions), libc contains stubbed
10212 # (non-functional) versions of the pthreads routines, so link-based
10213 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
10214 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
10215 # a function called by this macro, so we could check for that, but
10216 # who knows whether they'll stub that too in a future libc.) So,
10217 # we'll just look for -pthreads and -lpthread first:
10218
10219 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
10220 ;;
10221
cristy2ec87cc2013-02-18 17:46:50 +000010222 darwin*)
cristya316db12011-10-24 00:49:45 +000010223 ax_pthread_flags="-pthread $ax_pthread_flags"
10224 ;;
cristy73bd4a52010-10-05 11:24:23 +000010225esac
10226
cristy17491be2014-06-24 01:10:53 +000010227# Clang doesn't consider unrecognized options an error unless we specify
10228# -Werror. We throw in some extra Clang-specific options to ensure that
10229# this doesn't happen for GCC, which also accepts -Werror.
10230
10231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
10232$as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; }
10233save_CFLAGS="$CFLAGS"
10234ax_pthread_extra_flags="-Werror"
10235CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
10236cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10237/* end confdefs.h. */
10238int foo(void);
10239int
10240main ()
10241{
10242foo()
10243 ;
10244 return 0;
10245}
10246_ACEOF
10247if ac_fn_c_try_compile "$LINENO"; then :
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10249$as_echo "yes" >&6; }
10250else
10251 ax_pthread_extra_flags=
10252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10253$as_echo "no" >&6; }
10254fi
10255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10256CFLAGS="$save_CFLAGS"
10257
cristy73bd4a52010-10-05 11:24:23 +000010258if test x"$ax_pthread_ok" = xno; then
10259for flag in $ax_pthread_flags; do
10260
10261 case $flag in
10262 none)
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
10264$as_echo_n "checking whether pthreads work without any flags... " >&6; }
10265 ;;
10266
10267 -*)
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
10269$as_echo_n "checking whether pthreads work with $flag... " >&6; }
10270 PTHREAD_CFLAGS="$flag"
10271 ;;
10272
cristya316db12011-10-24 00:49:45 +000010273 pthread-config)
10274 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +000010275set dummy pthread-config; ac_word=$2
10276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10277$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010278if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010279 $as_echo_n "(cached) " >&6
10280else
10281 if test -n "$ax_pthread_config"; then
10282 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
10283else
10284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10285for as_dir in $PATH
10286do
10287 IFS=$as_save_IFS
10288 test -z "$as_dir" && as_dir=.
10289 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010291 ac_cv_prog_ax_pthread_config="yes"
10292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10293 break 2
10294 fi
10295done
10296 done
10297IFS=$as_save_IFS
10298
10299 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
10300fi
10301fi
10302ax_pthread_config=$ac_cv_prog_ax_pthread_config
10303if test -n "$ax_pthread_config"; then
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
10305$as_echo "$ax_pthread_config" >&6; }
10306else
10307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10308$as_echo "no" >&6; }
10309fi
10310
10311
cristya316db12011-10-24 00:49:45 +000010312 if test x"$ax_pthread_config" = xno; then continue; fi
10313 PTHREAD_CFLAGS="`pthread-config --cflags`"
10314 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
10315 ;;
cristy73bd4a52010-10-05 11:24:23 +000010316
10317 *)
10318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
10319$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
10320 PTHREAD_LIBS="-l$flag"
10321 ;;
10322 esac
10323
10324 save_LIBS="$LIBS"
10325 save_CFLAGS="$CFLAGS"
10326 LIBS="$PTHREAD_LIBS $LIBS"
cristy17491be2014-06-24 01:10:53 +000010327 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
cristy73bd4a52010-10-05 11:24:23 +000010328
10329 # Check for various functions. We must include pthread.h,
10330 # since some functions may be macros. (On the Sequent, we
10331 # need a special flag -Kthread to make this header compile.)
10332 # We check for pthread_join because it is in -lpthread on IRIX
10333 # while pthread_create is in libc. We check for pthread_attr_init
10334 # due to DEC craziness with -lpthreads. We check for
10335 # pthread_cleanup_push because it is one of the few pthread
10336 # functions on Solaris that doesn't have a non-functional libc stub.
10337 # We try pthread_create on general principles.
10338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10339/* end confdefs.h. */
10340#include <pthread.h>
cristya316db12011-10-24 00:49:45 +000010341 static void routine(void *a) { a = 0; }
10342 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +000010343int
10344main ()
10345{
10346pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +000010347 pthread_create(&th, 0, start_routine, 0);
10348 pthread_join(th, 0);
10349 pthread_attr_init(&attr);
10350 pthread_cleanup_push(routine, 0);
10351 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +000010352 ;
10353 return 0;
10354}
10355_ACEOF
10356if ac_fn_c_try_link "$LINENO"; then :
10357 ax_pthread_ok=yes
10358fi
10359rm -f core conftest.err conftest.$ac_objext \
10360 conftest$ac_exeext conftest.$ac_ext
10361
10362 LIBS="$save_LIBS"
10363 CFLAGS="$save_CFLAGS"
10364
10365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
10366$as_echo "$ax_pthread_ok" >&6; }
10367 if test "x$ax_pthread_ok" = xyes; then
10368 break;
10369 fi
10370
10371 PTHREAD_LIBS=""
10372 PTHREAD_CFLAGS=""
10373done
10374fi
10375
10376# Various other checks:
10377if test "x$ax_pthread_ok" = xyes; then
10378 save_LIBS="$LIBS"
10379 LIBS="$PTHREAD_LIBS $LIBS"
10380 save_CFLAGS="$CFLAGS"
10381 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
10382
10383 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +000010384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +000010385$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +000010386 attr_name=unknown
10387 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
10388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000010389/* end confdefs.h. */
10390#include <pthread.h>
10391int
10392main ()
10393{
cristya316db12011-10-24 00:49:45 +000010394int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +000010395 ;
10396 return 0;
10397}
10398_ACEOF
10399if ac_fn_c_try_link "$LINENO"; then :
10400 attr_name=$attr; break
10401fi
10402rm -f core conftest.err conftest.$ac_objext \
10403 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +000010404 done
cristy73bd4a52010-10-05 11:24:23 +000010405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
10406$as_echo "$attr_name" >&6; }
10407 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
10408
10409cat >>confdefs.h <<_ACEOF
10410#define PTHREAD_CREATE_JOINABLE $attr_name
10411_ACEOF
10412
10413 fi
10414
10415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
10416$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
10417 flag=no
cristy2ec87cc2013-02-18 17:46:50 +000010418 case ${host_os} in
10419 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
10420 osf* | hpux*) flag="-D_REENTRANT";;
10421 solaris*)
10422 if test "$GCC" = "yes"; then
10423 flag="-D_REENTRANT"
10424 else
cristy17491be2014-06-24 01:10:53 +000010425 # TODO: What about Clang on Solaris?
cristy2ec87cc2013-02-18 17:46:50 +000010426 flag="-mt -D_REENTRANT"
10427 fi
10428 ;;
cristy73bd4a52010-10-05 11:24:23 +000010429 esac
cristy17491be2014-06-24 01:10:53 +000010430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
10431$as_echo "$flag" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000010432 if test "x$flag" != xno; then
10433 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
10434 fi
10435
cristya316db12011-10-24 00:49:45 +000010436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
10437$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
10438if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
10439 $as_echo_n "(cached) " >&6
10440else
10441
10442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10443/* end confdefs.h. */
cristy17491be2014-06-24 01:10:53 +000010444#include <pthread.h>
cristya316db12011-10-24 00:49:45 +000010445int
10446main ()
10447{
10448int i = PTHREAD_PRIO_INHERIT;
10449 ;
10450 return 0;
10451}
10452_ACEOF
10453if ac_fn_c_try_link "$LINENO"; then :
10454 ax_cv_PTHREAD_PRIO_INHERIT=yes
10455else
10456 ax_cv_PTHREAD_PRIO_INHERIT=no
10457fi
10458rm -f core conftest.err conftest.$ac_objext \
10459 conftest$ac_exeext conftest.$ac_ext
10460
10461fi
10462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
10463$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
10464 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
10465
10466$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
10467
10468fi
10469
cristy73bd4a52010-10-05 11:24:23 +000010470 LIBS="$save_LIBS"
10471 CFLAGS="$save_CFLAGS"
10472
cristy23493c42013-04-11 16:04:59 +000010473 # More AIX lossage: compile with *_r variant
10474 if test "x$GCC" != xyes; then
10475 case $host_os in
10476 aix*)
10477 case "x/$CC" in #(
10478 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
10479 #handle absolute path differently from PATH based program lookup
10480 case "x$CC" in #(
10481 x/*) :
10482 if as_fn_executable_p ${CC}_r; then :
10483 PTHREAD_CC="${CC}_r"
10484fi ;; #(
10485 *) :
10486 for ac_prog in ${CC}_r
cristy73bd4a52010-10-05 11:24:23 +000010487do
10488 # Extract the first word of "$ac_prog", so it can be a program name with args.
10489set dummy $ac_prog; ac_word=$2
10490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10491$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010492if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010493 $as_echo_n "(cached) " >&6
10494else
10495 if test -n "$PTHREAD_CC"; then
10496 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
10497else
10498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10499for as_dir in $PATH
10500do
10501 IFS=$as_save_IFS
10502 test -z "$as_dir" && as_dir=.
10503 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010505 ac_cv_prog_PTHREAD_CC="$ac_prog"
10506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10507 break 2
10508 fi
10509done
10510 done
10511IFS=$as_save_IFS
10512
10513fi
10514fi
10515PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
10516if test -n "$PTHREAD_CC"; then
10517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
10518$as_echo "$PTHREAD_CC" >&6; }
10519else
10520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10521$as_echo "no" >&6; }
10522fi
10523
10524
10525 test -n "$PTHREAD_CC" && break
10526done
cristy23493c42013-04-11 16:04:59 +000010527test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10528 ;;
10529esac ;; #(
10530 *) :
10531 ;;
10532esac
10533 ;;
10534 esac
cristya316db12011-10-24 00:49:45 +000010535 fi
cristy73bd4a52010-10-05 11:24:23 +000010536fi
10537
cristy23493c42013-04-11 16:04:59 +000010538test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10539
cristy73bd4a52010-10-05 11:24:23 +000010540
10541
10542
10543
10544# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
10545if test x"$ax_pthread_ok" = xyes; then
10546
10547$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10548
10549 :
10550else
10551 ax_pthread_ok=no
10552
10553fi
10554ac_ext=c
10555ac_cpp='$CPP $CPPFLAGS'
10556ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10557ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10558ac_compiler_gnu=$ac_cv_c_compiler_gnu
10559
10560
10561
10562# Check whether --enable-opencl was given.
10563if test "${enable_opencl+set}" = set; then :
cristy48794642012-09-02 15:19:08 +000010564 enableval=$enable_opencl; enable_opencl=$enableval
cristy73bd4a52010-10-05 11:24:23 +000010565else
cristy48794642012-09-02 15:19:08 +000010566 enable_opencl='no'
cristy73bd4a52010-10-05 11:24:23 +000010567fi
10568
10569
cristy48794642012-09-02 15:19:08 +000010570if test "$enable_opencl" = 'yes'; then
cristy73bd4a52010-10-05 11:24:23 +000010571 ac_ext=c
10572ac_cpp='$CPP $CPPFLAGS'
10573ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10574ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10575ac_compiler_gnu=$ac_cv_c_compiler_gnu
10576
cristy75314cc2012-09-15 23:08:29 +000010577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
10578$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
10579if ${ax_cv_c_compiler_ms+:} false; then :
10580 $as_echo_n "(cached) " >&6
10581else
10582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10583/* end confdefs.h. */
10584
10585int
10586main ()
10587{
10588#ifndef _MSC_VER
10589 choke me
10590#endif
10591
10592 ;
10593 return 0;
10594}
10595_ACEOF
10596if ac_fn_c_try_compile "$LINENO"; then :
10597 ax_compiler_ms=yes
10598else
10599 ax_compiler_ms=no
10600fi
10601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10602ax_cv_c_compiler_ms=$ax_compiler_ms
10603
10604fi
10605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
10606$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000010607 if test X$ax_compiler_ms = Xno; then :
10608 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
10609fi
10610
10611 ax_save_CPPFLAGS=$CPPFLAGS
cristyfdc7d122013-08-17 20:46:45 +000010612 ax_save_CL_CFLAGS=$CL_CFLAGS
10613
10614 found_opencl_header='no'
cristy73bd4a52010-10-05 11:24:23 +000010615 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
10616 for ac_header in CL/cl.h OpenCL/cl.h
10617do :
10618 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10619ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000010620if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000010621 cat >>confdefs.h <<_ACEOF
10622#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10623_ACEOF
cristyfdc7d122013-08-17 20:46:45 +000010624 found_opencl_header='yes'
10625 break;
10626else
10627 found_opencl_header='no'
cristy73bd4a52010-10-05 11:24:23 +000010628fi
10629
10630done
10631
cristyfdc7d122013-08-17 20:46:45 +000010632
10633 if test X$found_opencl_header = Xno; then :
10634 { ac_cv_header_CL_cl_h=; unset ac_cv_header_CL_cl_h;}
10635 { ac_cv_header_OpenCL_cl_h=; unset ac_cv_header_OpenCL_cl_h;}
10636 CL_CFLAGS="-I$AMDAPPSDKROOT/include"
10637 CPPFLAGS="$ax_save_CPPFLAGS $CL_CFLAGS"
10638 for ac_header in CL/cl.h OpenCL/cl.h
10639do :
10640 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10641ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10642if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10643 cat >>confdefs.h <<_ACEOF
10644#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10645_ACEOF
10646 found_opencl_header='yes'
10647 break;
10648else
10649 found_opencl_header='no'
10650fi
10651
10652done
10653
10654
10655fi
10656
10657 CPPFLAGS="$ax_save_CPPFLAGS"
cristy73bd4a52010-10-05 11:24:23 +000010658
10659 for ac_header in windows.h
10660do :
10661 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000010662if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000010663 cat >>confdefs.h <<_ACEOF
10664#define HAVE_WINDOWS_H 1
10665_ACEOF
10666
10667fi
10668
10669done
10670
10671
10672
10673
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
10675$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010676if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010677 $as_echo_n "(cached) " >&6
10678else
10679 ax_cv_check_cl_libcl=no
10680 case $host_cpu in
cristyfdc7d122013-08-17 20:46:45 +000010681 x86_64) ax_check_cl_libdir=lib64
10682 ax_check_cl_amd_libdir=x86_64
10683 ;;
10684 *) ax_check_cl_libdir=lib
10685 ax_check_cl_amd_libdir=x86
10686 ;;
cristy73bd4a52010-10-05 11:24:23 +000010687 esac
10688 ax_save_CPPFLAGS=$CPPFLAGS
10689 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
10690 ax_save_LIBS=$LIBS
10691 LIBS=""
10692 ax_check_libs="-lOpenCL -lCL -lclparser"
10693 for ax_lib in $ax_check_libs; do
10694 if test X$ax_compiler_ms = Xyes; then :
10695 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
10696else
10697 ax_try_lib=$ax_lib
10698fi
10699 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
10700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10701/* end confdefs.h. */
10702
10703 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10704 # include <windows.h>
10705 # endif
10706 # ifdef HAVE_CL_CL_H
10707 # include <CL/cl.h>
10708 # elif defined(HAVE_OPENCL_CL_H)
10709 # include <OpenCL/cl.h>
10710 # else
10711 # error no CL.h
10712 # endif
10713int
10714main ()
10715{
10716clCreateContextFromType(0,0,0,0,0)
10717 ;
10718 return 0;
10719}
10720_ACEOF
10721if ac_fn_c_try_link "$LINENO"; then :
10722 ax_cv_check_cl_libcl=$ax_try_lib; break
10723else
10724 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"
10725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10726/* end confdefs.h. */
10727
10728 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10729 # include <windows.h>
10730 # endif
10731 # ifdef HAVE_CL_CL_H
10732 # include <CL/cl.h>
10733 # elif defined(HAVE_OPENCL_CL_H)
10734 # include <OpenCL/cl.h>
10735 # else
10736 # error no CL.h
10737 # endif
10738int
10739main ()
10740{
10741clCreateContextFromType(0,0,0,0,0)
10742 ;
10743 return 0;
10744}
10745_ACEOF
10746if ac_fn_c_try_link "$LINENO"; then :
10747 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
10748else
cristy78c5a0c2010-12-04 20:00:59 +000010749 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 +000010750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10751/* end confdefs.h. */
10752
10753 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10754 # include <windows.h>
10755 # endif
10756 # ifdef HAVE_CL_CL_H
10757 # include <CL/cl.h>
10758 # elif defined(HAVE_OPENCL_CL_H)
10759 # include <OpenCL/cl.h>
10760 # else
10761 # error no CL.h
10762 # endif
10763int
10764main ()
10765{
10766clCreateContextFromType(0,0,0,0,0)
10767 ;
10768 return 0;
10769}
10770_ACEOF
10771if ac_fn_c_try_link "$LINENO"; then :
10772 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
cristyfdc7d122013-08-17 20:46:45 +000010773else
10774 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"
10775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10776/* end confdefs.h. */
10777
10778 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10779 # include <windows.h>
10780 # endif
10781 # ifdef HAVE_CL_CL_H
10782 # include <CL/cl.h>
10783 # elif defined(HAVE_OPENCL_CL_H)
10784 # include <OpenCL/cl.h>
10785 # else
10786 # error no CL.h
10787 # endif
10788int
10789main ()
10790{
10791clCreateContextFromType(0,0,0,0,0)
10792 ;
10793 return 0;
10794}
10795_ACEOF
10796if ac_fn_c_try_link "$LINENO"; then :
10797 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_amd_flags"; break
10798
10799fi
10800rm -f core conftest.err conftest.$ac_objext \
10801 conftest$ac_exeext conftest.$ac_ext
10802
10803
cristy73bd4a52010-10-05 11:24:23 +000010804fi
10805rm -f core conftest.err conftest.$ac_objext \
10806 conftest$ac_exeext conftest.$ac_ext
10807fi
10808rm -f core conftest.err conftest.$ac_objext \
10809 conftest$ac_exeext conftest.$ac_ext
10810fi
10811rm -f core conftest.err conftest.$ac_objext \
10812 conftest$ac_exeext conftest.$ac_ext
10813 done
10814
cristyc3f8b8e2011-12-22 14:55:16 +000010815 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy78c5a0c2010-12-04 20:00:59 +000010816 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +000010817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10818/* end confdefs.h. */
10819
10820 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10821 # include <windows.h>
10822 # endif
10823 # ifdef HAVE_CL_CL_H
10824 # include <CL/cl.h>
10825 # elif defined(HAVE_OPENCL_CL_H)
10826 # include <OpenCL/cl.h>
10827 # else
10828 # error no CL.h
10829 # endif
10830int
10831main ()
10832{
10833clCreateContextFromType(0,0,0,0,0)
10834 ;
10835 return 0;
10836}
10837_ACEOF
10838if ac_fn_c_try_link "$LINENO"; then :
10839 ax_cv_check_cl_libcl=$LIBS
10840fi
10841rm -f core conftest.err conftest.$ac_objext \
10842 conftest$ac_exeext conftest.$ac_ext
10843fi
10844
10845 LIBS=$ax_save_LIBS
10846 CPPFLAGS=$ax_save_CPPFLAGS
10847fi
10848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
10849$as_echo "$ax_cv_check_cl_libcl" >&6; }
10850
10851 if test "X$ax_cv_check_cl_libcl" = Xno; then :
10852 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
10853else
10854 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
10855$as_echo "#define _OPENCL 1" >>confdefs.h
10856
10857fi
10858 ac_ext=c
10859ac_cpp='$CPP $CPPFLAGS'
10860ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10861ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10862ac_compiler_gnu=$ac_cv_c_compiler_gnu
10863
10864fi
10865
10866
10867
cristy0c832c62014-03-07 22:21:04 +000010868#remove static link on Linux
10869CL_LIBS=`echo $CL_LIBS | $SED -e 's/-lOpenCL //'`
10870
cristy73bd4a52010-10-05 11:24:23 +000010871
cristyc7083c12009-10-14 03:16:55 +000010872CFLAGS="$CL_CFLAGS $CFLAGS"
cristyfdc7d122013-08-17 20:46:45 +000010873CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
cristyc7083c12009-10-14 03:16:55 +000010874LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +000010875
cristy391f1ce2010-09-09 17:23:28 +000010876if test "$enable_opencl" != no; then
cristy6e3607c2011-09-13 13:59:17 +000010877 if test "X$ax_cv_check_cl_libcl" != Xno; then :
cristy391f1ce2010-09-09 17:23:28 +000010878 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
10879 fi
cristyfd9dcd42010-08-08 18:07:02 +000010880fi
cristy2e8b51d2009-10-17 18:26:15 +000010881
cristy3ed852e2009-09-05 21:47:34 +000010882########
10883#
10884# Check for large file support
10885#
10886########
10887# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +000010888if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010889 enableval=$enable_largefile;
10890fi
10891
10892if test "$enable_largefile" != no; then
10893
cristy8b350f62009-11-15 23:12:43 +000010894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010895$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010896if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010897 $as_echo_n "(cached) " >&6
10898else
10899 ac_cv_sys_largefile_CC=no
10900 if test "$GCC" != yes; then
10901 ac_save_CC=$CC
10902 while :; do
10903 # IRIX 6.2 and later do not support large files by default,
10904 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +000010905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010906/* end confdefs.h. */
10907#include <sys/types.h>
10908 /* Check that off_t can represent 2**63 - 1 correctly.
10909 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10910 since some C++ compilers masquerading as C compilers
10911 incorrectly reject 9223372036854775807. */
10912#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10913 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10914 && LARGE_OFF_T % 2147483647 == 1)
10915 ? 1 : -1];
10916int
10917main ()
10918{
10919
10920 ;
10921 return 0;
10922}
10923_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010924 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010925 break
cristy3ed852e2009-09-05 21:47:34 +000010926fi
cristy3ed852e2009-09-05 21:47:34 +000010927rm -f core conftest.err conftest.$ac_objext
10928 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +000010929 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010930 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +000010931fi
cristy3ed852e2009-09-05 21:47:34 +000010932rm -f core conftest.err conftest.$ac_objext
10933 break
10934 done
10935 CC=$ac_save_CC
10936 rm -f conftest.$ac_ext
10937 fi
10938fi
cristy8b350f62009-11-15 23:12:43 +000010939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000010940$as_echo "$ac_cv_sys_largefile_CC" >&6; }
10941 if test "$ac_cv_sys_largefile_CC" != no; then
10942 CC=$CC$ac_cv_sys_largefile_CC
10943 fi
10944
cristy8b350f62009-11-15 23:12:43 +000010945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010946$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010947if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010948 $as_echo_n "(cached) " >&6
10949else
10950 while :; do
cristy8b350f62009-11-15 23:12:43 +000010951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010952/* end confdefs.h. */
10953#include <sys/types.h>
10954 /* Check that off_t can represent 2**63 - 1 correctly.
10955 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10956 since some C++ compilers masquerading as C compilers
10957 incorrectly reject 9223372036854775807. */
10958#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10959 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10960 && LARGE_OFF_T % 2147483647 == 1)
10961 ? 1 : -1];
10962int
10963main ()
10964{
10965
10966 ;
10967 return 0;
10968}
10969_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010970if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010971 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +000010972fi
cristy3ed852e2009-09-05 21:47:34 +000010973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010975/* end confdefs.h. */
10976#define _FILE_OFFSET_BITS 64
10977#include <sys/types.h>
10978 /* Check that off_t can represent 2**63 - 1 correctly.
10979 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10980 since some C++ compilers masquerading as C compilers
10981 incorrectly reject 9223372036854775807. */
10982#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10983 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10984 && LARGE_OFF_T % 2147483647 == 1)
10985 ? 1 : -1];
10986int
10987main ()
10988{
10989
10990 ;
10991 return 0;
10992}
10993_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010994if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010995 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +000010996fi
cristy3ed852e2009-09-05 21:47:34 +000010997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10998 ac_cv_sys_file_offset_bits=unknown
10999 break
11000done
11001fi
cristy8b350f62009-11-15 23:12:43 +000011002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +000011003$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11004case $ac_cv_sys_file_offset_bits in #(
11005 no | unknown) ;;
11006 *)
11007cat >>confdefs.h <<_ACEOF
11008#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11009_ACEOF
11010;;
11011esac
11012rm -rf conftest*
11013 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +000011014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000011015$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011016if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000011017 $as_echo_n "(cached) " >&6
11018else
11019 while :; do
cristy8b350f62009-11-15 23:12:43 +000011020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011021/* end confdefs.h. */
11022#include <sys/types.h>
11023 /* Check that off_t can represent 2**63 - 1 correctly.
11024 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11025 since some C++ compilers masquerading as C compilers
11026 incorrectly reject 9223372036854775807. */
11027#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11028 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11029 && LARGE_OFF_T % 2147483647 == 1)
11030 ? 1 : -1];
11031int
11032main ()
11033{
11034
11035 ;
11036 return 0;
11037}
11038_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011039if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011040 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +000011041fi
cristy3ed852e2009-09-05 21:47:34 +000011042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000011043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011044/* end confdefs.h. */
11045#define _LARGE_FILES 1
11046#include <sys/types.h>
11047 /* Check that off_t can represent 2**63 - 1 correctly.
11048 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11049 since some C++ compilers masquerading as C compilers
11050 incorrectly reject 9223372036854775807. */
11051#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11052 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11053 && LARGE_OFF_T % 2147483647 == 1)
11054 ? 1 : -1];
11055int
11056main ()
11057{
11058
11059 ;
11060 return 0;
11061}
11062_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011063if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011064 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +000011065fi
cristy3ed852e2009-09-05 21:47:34 +000011066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11067 ac_cv_sys_large_files=unknown
11068 break
11069done
11070fi
cristy8b350f62009-11-15 23:12:43 +000011071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +000011072$as_echo "$ac_cv_sys_large_files" >&6; }
11073case $ac_cv_sys_large_files in #(
11074 no | unknown) ;;
11075 *)
11076cat >>confdefs.h <<_ACEOF
11077#define _LARGE_FILES $ac_cv_sys_large_files
11078_ACEOF
11079;;
11080esac
11081rm -rf conftest*
11082 fi
cristy14fefe52012-05-21 00:59:18 +000011083
11084
cristy3ed852e2009-09-05 21:47:34 +000011085fi
11086
cristy8b350f62009-11-15 23:12:43 +000011087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000011088$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011089if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000011090 $as_echo_n "(cached) " >&6
11091else
11092 while :; do
cristy8b350f62009-11-15 23:12:43 +000011093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011094/* end confdefs.h. */
11095#include <sys/types.h> /* for off_t */
11096 #include <stdio.h>
11097int
11098main ()
11099{
11100int (*fp) (FILE *, off_t, int) = fseeko;
11101 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11102 ;
11103 return 0;
11104}
11105_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011106if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011107 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +000011108fi
cristy8b350f62009-11-15 23:12:43 +000011109rm -f core conftest.err conftest.$ac_objext \
11110 conftest$ac_exeext conftest.$ac_ext
11111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011112/* end confdefs.h. */
11113#define _LARGEFILE_SOURCE 1
11114#include <sys/types.h> /* for off_t */
11115 #include <stdio.h>
11116int
11117main ()
11118{
11119int (*fp) (FILE *, off_t, int) = fseeko;
11120 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11121 ;
11122 return 0;
11123}
11124_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011125if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011126 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +000011127fi
cristy8b350f62009-11-15 23:12:43 +000011128rm -f core conftest.err conftest.$ac_objext \
11129 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011130 ac_cv_sys_largefile_source=unknown
11131 break
11132done
11133fi
cristy8b350f62009-11-15 23:12:43 +000011134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +000011135$as_echo "$ac_cv_sys_largefile_source" >&6; }
11136case $ac_cv_sys_largefile_source in #(
11137 no | unknown) ;;
11138 *)
11139cat >>confdefs.h <<_ACEOF
11140#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
11141_ACEOF
11142;;
11143esac
11144rm -rf conftest*
11145
11146# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
11147# in glibc 2.1.3, but that breaks too many other things.
11148# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
11149if test $ac_cv_sys_largefile_source != unknown; then
11150
cristy8b350f62009-11-15 23:12:43 +000011151$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000011152
11153fi
11154
11155LFS_CPPFLAGS=''
11156if test "$enable_largefile" != no; then
cristyc1e0cc12011-09-21 16:41:16 +000011157 case $ac_cv_sys_file_offset_bits in
11158 no)
11159 # nothing to do here as the host supports LFS fine
11160 ;;
11161 unknown)
cristy8b350f62009-11-15 23:12:43 +000011162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +000011163$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011164 if test "$cross_compiling" = yes; then :
11165 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000011166$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000011167as_fn_error $? "cannot run test program while cross compiling
11168See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000011169else
cristy8b350f62009-11-15 23:12:43 +000011170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11171/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000011172#include <unistd.h>
11173 main () {
11174 exit(!(sizeof(off_t) == 8));
11175 }
cristyda16f162011-02-19 23:52:17 +000011176int
11177main ()
11178{
11179
11180 ;
11181 return 0;
11182}
cristy3ed852e2009-09-05 21:47:34 +000011183_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011184if ac_fn_c_try_run "$LINENO"; then :
11185 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000011186
cristyad38abe2012-12-23 23:03:21 +000011187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11188$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000011189else
cristyad38abe2012-12-23 23:03:21 +000011190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11191$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000011192fi
cristy8b350f62009-11-15 23:12:43 +000011193rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11194 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011195fi
11196
cristyc1e0cc12011-09-21 16:41:16 +000011197 ;;
11198 *)
11199 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
11200 ;;
11201 esac
cristy3ed852e2009-09-05 21:47:34 +000011202 if test "$ac_cv_sys_large_files" != 'no'; then
11203 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
11204 fi
11205 if test "$ac_cv_sys_largefile_source" != 'no'; then
11206 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
11207 fi
11208fi
11209
11210
cristy3ed852e2009-09-05 21:47:34 +000011211# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +000011212enable_dlopen=yes
11213
11214
11215
11216case `pwd` in
11217 *\ * | *\ *)
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11219$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11220esac
11221
11222
11223
cristy99bd5232011-12-07 14:38:20 +000011224macro_version='2.4.2'
11225macro_revision='1.3337'
cristy73bd4a52010-10-05 11:24:23 +000011226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239ltmain="$ac_aux_dir/ltmain.sh"
11240
cristy0c60a692010-11-04 01:09:47 +000011241# Backslashify metacharacters that are still active within
11242# double-quoted strings.
11243sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11244
11245# Same as above, but do not quote variable references.
11246double_quote_subst='s/\(["`\\]\)/\\\1/g'
11247
11248# Sed substitution to delay expansion of an escaped shell variable in a
11249# double_quote_subst'ed string.
11250delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11251
11252# Sed substitution to delay expansion of an escaped single quote.
11253delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11254
11255# Sed substitution to avoid accidental globbing in evaled expressions
11256no_glob_subst='s/\*/\\\*/g'
11257
cristy73bd4a52010-10-05 11:24:23 +000011258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11259$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011260if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011261 $as_echo_n "(cached) " >&6
11262else
11263 if test -n "$NM"; then
11264 # Let the user override the test.
11265 lt_cv_path_NM="$NM"
11266else
11267 lt_nm_to_check="${ac_tool_prefix}nm"
11268 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11269 lt_nm_to_check="$lt_nm_to_check nm"
11270 fi
11271 for lt_tmp_nm in $lt_nm_to_check; do
11272 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11273 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11274 IFS="$lt_save_ifs"
11275 test -z "$ac_dir" && ac_dir=.
11276 tmp_nm="$ac_dir/$lt_tmp_nm"
11277 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11278 # Check to see if the nm accepts a BSD-compat flag.
11279 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11280 # nm: unknown option "B" ignored
11281 # Tru64's nm complains that /dev/null is an invalid object file
11282 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11283 */dev/null* | *'Invalid file or object type'*)
11284 lt_cv_path_NM="$tmp_nm -B"
11285 break
11286 ;;
11287 *)
11288 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11289 */dev/null*)
11290 lt_cv_path_NM="$tmp_nm -p"
11291 break
11292 ;;
11293 *)
11294 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11295 continue # so that we can try to find one that supports BSD flags
11296 ;;
11297 esac
11298 ;;
11299 esac
11300 fi
11301 done
11302 IFS="$lt_save_ifs"
11303 done
11304 : ${lt_cv_path_NM=no}
11305fi
11306fi
11307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11308$as_echo "$lt_cv_path_NM" >&6; }
11309if test "$lt_cv_path_NM" != "no"; then
11310 NM="$lt_cv_path_NM"
11311else
11312 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +000011313 if test -n "$DUMPBIN"; then :
11314 # Let the user override the test.
11315 else
11316 if test -n "$ac_tool_prefix"; then
11317 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000011318 do
11319 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11320set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11322$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011323if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011324 $as_echo_n "(cached) " >&6
11325else
11326 if test -n "$DUMPBIN"; then
11327 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11328else
11329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11330for as_dir in $PATH
11331do
11332 IFS=$as_save_IFS
11333 test -z "$as_dir" && as_dir=.
11334 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011336 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11338 break 2
11339 fi
11340done
11341 done
11342IFS=$as_save_IFS
11343
11344fi
11345fi
11346DUMPBIN=$ac_cv_prog_DUMPBIN
11347if test -n "$DUMPBIN"; then
11348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11349$as_echo "$DUMPBIN" >&6; }
11350else
11351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11352$as_echo "no" >&6; }
11353fi
11354
11355
11356 test -n "$DUMPBIN" && break
11357 done
11358fi
11359if test -z "$DUMPBIN"; then
11360 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +000011361 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000011362do
11363 # Extract the first word of "$ac_prog", so it can be a program name with args.
11364set dummy $ac_prog; ac_word=$2
11365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11366$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011367if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011368 $as_echo_n "(cached) " >&6
11369else
11370 if test -n "$ac_ct_DUMPBIN"; then
11371 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11372else
11373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11374for as_dir in $PATH
11375do
11376 IFS=$as_save_IFS
11377 test -z "$as_dir" && as_dir=.
11378 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011380 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11382 break 2
11383 fi
11384done
11385 done
11386IFS=$as_save_IFS
11387
11388fi
11389fi
11390ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11391if test -n "$ac_ct_DUMPBIN"; then
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11393$as_echo "$ac_ct_DUMPBIN" >&6; }
11394else
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11396$as_echo "no" >&6; }
11397fi
11398
11399
11400 test -n "$ac_ct_DUMPBIN" && break
11401done
11402
11403 if test "x$ac_ct_DUMPBIN" = x; then
11404 DUMPBIN=":"
11405 else
11406 case $cross_compiling:$ac_tool_warned in
11407yes:)
11408{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11409$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11410ac_tool_warned=yes ;;
11411esac
11412 DUMPBIN=$ac_ct_DUMPBIN
11413 fi
11414fi
11415
cristy0c60a692010-11-04 01:09:47 +000011416 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11417 *COFF*)
11418 DUMPBIN="$DUMPBIN -symbols"
11419 ;;
11420 *)
11421 DUMPBIN=:
11422 ;;
11423 esac
11424 fi
cristy73bd4a52010-10-05 11:24:23 +000011425
11426 if test "$DUMPBIN" != ":"; then
11427 NM="$DUMPBIN"
11428 fi
11429fi
11430test -z "$NM" && NM=nm
11431
11432
11433
11434
11435
11436
11437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11438$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011439if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011440 $as_echo_n "(cached) " >&6
11441else
11442 lt_cv_nm_interface="BSD nm"
11443 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000011444 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000011445 (eval "$ac_compile" 2>conftest.err)
11446 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000011447 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000011448 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11449 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000011450 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000011451 cat conftest.out >&5
11452 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11453 lt_cv_nm_interface="MS dumpbin"
11454 fi
11455 rm -f conftest*
11456fi
11457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11458$as_echo "$lt_cv_nm_interface" >&6; }
11459
11460# find the maximum length of command line arguments
11461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11462$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011463if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011464 $as_echo_n "(cached) " >&6
11465else
11466 i=0
11467 teststring="ABCD"
11468
11469 case $build_os in
11470 msdosdjgpp*)
11471 # On DJGPP, this test can blow up pretty badly due to problems in libc
11472 # (any single argument exceeding 2000 bytes causes a buffer overrun
11473 # during glob expansion). Even if it were fixed, the result of this
11474 # check would be larger than it should be.
11475 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11476 ;;
11477
11478 gnu*)
11479 # Under GNU Hurd, this test is not required because there is
11480 # no limit to the length of command line arguments.
11481 # Libtool will interpret -1 as no limit whatsoever
11482 lt_cv_sys_max_cmd_len=-1;
11483 ;;
11484
11485 cygwin* | mingw* | cegcc*)
11486 # On Win9x/ME, this test blows up -- it succeeds, but takes
11487 # about 5 minutes as the teststring grows exponentially.
11488 # Worse, since 9x/ME are not pre-emptively multitasking,
11489 # you end up with a "frozen" computer, even though with patience
11490 # the test eventually succeeds (with a max line length of 256k).
11491 # Instead, let's just punt: use the minimum linelength reported by
11492 # all of the supported platforms: 8192 (on NT/2K/XP).
11493 lt_cv_sys_max_cmd_len=8192;
11494 ;;
11495
cristy0c60a692010-11-04 01:09:47 +000011496 mint*)
11497 # On MiNT this can take a long time and run out of memory.
11498 lt_cv_sys_max_cmd_len=8192;
11499 ;;
11500
cristy73bd4a52010-10-05 11:24:23 +000011501 amigaos*)
11502 # On AmigaOS with pdksh, this test takes hours, literally.
11503 # So we just punt and use a minimum line length of 8192.
11504 lt_cv_sys_max_cmd_len=8192;
11505 ;;
11506
11507 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11508 # This has been around since 386BSD, at least. Likely further.
11509 if test -x /sbin/sysctl; then
11510 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11511 elif test -x /usr/sbin/sysctl; then
11512 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11513 else
11514 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11515 fi
11516 # And add a safety zone
11517 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11518 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11519 ;;
11520
11521 interix*)
11522 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11523 lt_cv_sys_max_cmd_len=196608
11524 ;;
11525
cristy99bd5232011-12-07 14:38:20 +000011526 os2*)
11527 # The test takes a long time on OS/2.
11528 lt_cv_sys_max_cmd_len=8192
11529 ;;
11530
cristy73bd4a52010-10-05 11:24:23 +000011531 osf*)
11532 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11533 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11534 # nice to cause kernel panics so lets avoid the loop below.
11535 # First set a reasonable default.
11536 lt_cv_sys_max_cmd_len=16384
11537 #
11538 if test -x /sbin/sysconfig; then
11539 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11540 *1*) lt_cv_sys_max_cmd_len=-1 ;;
11541 esac
11542 fi
11543 ;;
11544 sco3.2v5*)
11545 lt_cv_sys_max_cmd_len=102400
11546 ;;
11547 sysv5* | sco5v6* | sysv4.2uw2*)
11548 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11549 if test -n "$kargmax"; then
11550 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
11551 else
11552 lt_cv_sys_max_cmd_len=32768
11553 fi
11554 ;;
11555 *)
11556 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11557 if test -n "$lt_cv_sys_max_cmd_len"; then
11558 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11559 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11560 else
11561 # Make teststring a little bigger before we do anything with it.
11562 # a 1K string should be a reasonable start.
11563 for i in 1 2 3 4 5 6 7 8 ; do
11564 teststring=$teststring$teststring
11565 done
11566 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11567 # If test is not a shell built-in, we'll probably end up computing a
11568 # maximum length that is only half of the actual maximum length, but
11569 # we can't tell.
cristy99bd5232011-12-07 14:38:20 +000011570 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
cristy0c60a692010-11-04 01:09:47 +000011571 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +000011572 test $i != 17 # 1/2 MB should be enough
11573 do
11574 i=`expr $i + 1`
11575 teststring=$teststring$teststring
11576 done
11577 # Only check the string length outside the loop.
11578 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11579 teststring=
11580 # Add a significant safety factor because C++ compilers can tack on
11581 # massive amounts of additional arguments before passing them to the
11582 # linker. It appears as though 1/2 is a usable value.
11583 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11584 fi
11585 ;;
11586 esac
11587
11588fi
11589
11590if test -n $lt_cv_sys_max_cmd_len ; then
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11592$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11593else
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11595$as_echo "none" >&6; }
11596fi
11597max_cmd_len=$lt_cv_sys_max_cmd_len
11598
11599
11600
11601
11602
11603
11604: ${CP="cp -f"}
11605: ${MV="mv -f"}
11606: ${RM="rm -f"}
11607
11608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11609$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11610# Try some XSI features
11611xsi_shell=no
11612( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +000011613 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
11614 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +000011615 && eval 'test $(( 1 + 1 )) -eq 2 \
11616 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11617 && xsi_shell=yes
11618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11619$as_echo "$xsi_shell" >&6; }
11620
11621
11622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11623$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11624lt_shell_append=no
11625( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11626 >/dev/null 2>&1 \
11627 && lt_shell_append=yes
11628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11629$as_echo "$lt_shell_append" >&6; }
11630
11631
11632if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11633 lt_unset=unset
11634else
11635 lt_unset=false
11636fi
11637
11638
11639
11640
11641
11642# test EBCDIC or ASCII
11643case `echo X|tr X '\101'` in
11644 A) # ASCII based system
11645 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11646 lt_SP2NL='tr \040 \012'
11647 lt_NL2SP='tr \015\012 \040\040'
11648 ;;
11649 *) # EBCDIC based system
11650 lt_SP2NL='tr \100 \n'
11651 lt_NL2SP='tr \r\n \100\100'
11652 ;;
11653esac
11654
11655
11656
11657
11658
11659
11660
11661
11662
cristyda16f162011-02-19 23:52:17 +000011663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11664$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11665if ${lt_cv_to_host_file_cmd+:} false; then :
11666 $as_echo_n "(cached) " >&6
11667else
11668 case $host in
11669 *-*-mingw* )
11670 case $build in
11671 *-*-mingw* ) # actually msys
11672 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11673 ;;
11674 *-*-cygwin* )
11675 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11676 ;;
11677 * ) # otherwise, assume *nix
11678 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11679 ;;
11680 esac
11681 ;;
11682 *-*-cygwin* )
11683 case $build in
11684 *-*-mingw* ) # actually msys
11685 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11686 ;;
11687 *-*-cygwin* )
11688 lt_cv_to_host_file_cmd=func_convert_file_noop
11689 ;;
11690 * ) # otherwise, assume *nix
11691 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11692 ;;
11693 esac
11694 ;;
11695 * ) # unhandled hosts (and "normal" native builds)
11696 lt_cv_to_host_file_cmd=func_convert_file_noop
11697 ;;
11698esac
11699
11700fi
11701
11702to_host_file_cmd=$lt_cv_to_host_file_cmd
11703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11704$as_echo "$lt_cv_to_host_file_cmd" >&6; }
11705
11706
11707
11708
11709
11710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11711$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11712if ${lt_cv_to_tool_file_cmd+:} false; then :
11713 $as_echo_n "(cached) " >&6
11714else
11715 #assume ordinary cross tools, or native build.
11716lt_cv_to_tool_file_cmd=func_convert_file_noop
11717case $host in
11718 *-*-mingw* )
11719 case $build in
11720 *-*-mingw* ) # actually msys
11721 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11722 ;;
11723 esac
11724 ;;
11725esac
11726
11727fi
11728
11729to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11731$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11732
11733
11734
11735
11736
cristy73bd4a52010-10-05 11:24:23 +000011737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11738$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011739if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011740 $as_echo_n "(cached) " >&6
11741else
11742 lt_cv_ld_reload_flag='-r'
11743fi
11744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11745$as_echo "$lt_cv_ld_reload_flag" >&6; }
11746reload_flag=$lt_cv_ld_reload_flag
11747case $reload_flag in
11748"" | " "*) ;;
11749*) reload_flag=" $reload_flag" ;;
11750esac
11751reload_cmds='$LD$reload_flag -o $output$reload_objs'
11752case $host_os in
cristyda16f162011-02-19 23:52:17 +000011753 cygwin* | mingw* | pw32* | cegcc*)
11754 if test "$GCC" != yes; then
11755 reload_cmds=false
11756 fi
11757 ;;
cristy73bd4a52010-10-05 11:24:23 +000011758 darwin*)
11759 if test "$GCC" = yes; then
11760 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11761 else
11762 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11763 fi
11764 ;;
11765esac
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775if test -n "$ac_tool_prefix"; then
11776 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11777set dummy ${ac_tool_prefix}objdump; ac_word=$2
11778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11779$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011780if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011781 $as_echo_n "(cached) " >&6
11782else
11783 if test -n "$OBJDUMP"; then
11784 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11785else
11786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11787for as_dir in $PATH
11788do
11789 IFS=$as_save_IFS
11790 test -z "$as_dir" && as_dir=.
11791 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011793 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11795 break 2
11796 fi
11797done
11798 done
11799IFS=$as_save_IFS
11800
11801fi
11802fi
11803OBJDUMP=$ac_cv_prog_OBJDUMP
11804if test -n "$OBJDUMP"; then
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11806$as_echo "$OBJDUMP" >&6; }
11807else
11808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11809$as_echo "no" >&6; }
11810fi
11811
11812
11813fi
11814if test -z "$ac_cv_prog_OBJDUMP"; then
11815 ac_ct_OBJDUMP=$OBJDUMP
11816 # Extract the first word of "objdump", so it can be a program name with args.
11817set dummy objdump; ac_word=$2
11818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11819$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011820if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011821 $as_echo_n "(cached) " >&6
11822else
11823 if test -n "$ac_ct_OBJDUMP"; then
11824 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11825else
11826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11827for as_dir in $PATH
11828do
11829 IFS=$as_save_IFS
11830 test -z "$as_dir" && as_dir=.
11831 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011833 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11835 break 2
11836 fi
11837done
11838 done
11839IFS=$as_save_IFS
11840
11841fi
11842fi
11843ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11844if test -n "$ac_ct_OBJDUMP"; then
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11846$as_echo "$ac_ct_OBJDUMP" >&6; }
11847else
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11849$as_echo "no" >&6; }
11850fi
11851
11852 if test "x$ac_ct_OBJDUMP" = x; then
11853 OBJDUMP="false"
11854 else
11855 case $cross_compiling:$ac_tool_warned in
11856yes:)
11857{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11858$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11859ac_tool_warned=yes ;;
11860esac
11861 OBJDUMP=$ac_ct_OBJDUMP
11862 fi
11863else
11864 OBJDUMP="$ac_cv_prog_OBJDUMP"
11865fi
11866
11867test -z "$OBJDUMP" && OBJDUMP=objdump
11868
11869
11870
11871
11872
11873
11874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11875$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011876if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011877 $as_echo_n "(cached) " >&6
11878else
11879 lt_cv_file_magic_cmd='$MAGIC_CMD'
11880lt_cv_file_magic_test_file=
11881lt_cv_deplibs_check_method='unknown'
11882# Need to set the preceding variable on all platforms that support
11883# interlibrary dependencies.
11884# 'none' -- dependencies not supported.
11885# `unknown' -- same as none, but documents that we really don't know.
11886# 'pass_all' -- all dependencies passed with no checks.
11887# 'test_compile' -- check by making test program.
11888# 'file_magic [[regex]]' -- check by looking for files in library path
11889# which responds to the $file_magic_cmd with a given extended regex.
11890# If you have `file' or equivalent on your system and you're not sure
11891# whether `pass_all' will *always* work, you probably want this one.
11892
11893case $host_os in
11894aix[4-9]*)
11895 lt_cv_deplibs_check_method=pass_all
11896 ;;
11897
11898beos*)
11899 lt_cv_deplibs_check_method=pass_all
11900 ;;
11901
11902bsdi[45]*)
11903 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11904 lt_cv_file_magic_cmd='/usr/bin/file -L'
11905 lt_cv_file_magic_test_file=/shlib/libc.so
11906 ;;
11907
11908cygwin*)
11909 # func_win32_libid is a shell function defined in ltmain.sh
11910 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11911 lt_cv_file_magic_cmd='func_win32_libid'
11912 ;;
11913
11914mingw* | pw32*)
11915 # Base MSYS/MinGW do not provide the 'file' command needed by
11916 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11917 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000011918 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11919 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000011920 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11921 lt_cv_file_magic_cmd='func_win32_libid'
11922 else
cristy0c60a692010-11-04 01:09:47 +000011923 # Keep this pattern in sync with the one in func_win32_libid.
11924 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 +000011925 lt_cv_file_magic_cmd='$OBJDUMP -f'
11926 fi
11927 ;;
11928
cristy0c60a692010-11-04 01:09:47 +000011929cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000011930 # use the weaker test based on 'objdump'. See mingw*.
11931 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11932 lt_cv_file_magic_cmd='$OBJDUMP -f'
11933 ;;
11934
11935darwin* | rhapsody*)
11936 lt_cv_deplibs_check_method=pass_all
11937 ;;
11938
11939freebsd* | dragonfly*)
11940 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11941 case $host_cpu in
11942 i*86 )
11943 # Not sure whether the presence of OpenBSD here was a mistake.
11944 # Let's accept both of them until this is cleared up.
11945 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11946 lt_cv_file_magic_cmd=/usr/bin/file
11947 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11948 ;;
11949 esac
11950 else
11951 lt_cv_deplibs_check_method=pass_all
11952 fi
11953 ;;
11954
11955gnu*)
11956 lt_cv_deplibs_check_method=pass_all
11957 ;;
11958
cristy0c60a692010-11-04 01:09:47 +000011959haiku*)
11960 lt_cv_deplibs_check_method=pass_all
11961 ;;
11962
cristy73bd4a52010-10-05 11:24:23 +000011963hpux10.20* | hpux11*)
11964 lt_cv_file_magic_cmd=/usr/bin/file
11965 case $host_cpu in
11966 ia64*)
11967 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11968 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11969 ;;
11970 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000011971 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 +000011972 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11973 ;;
11974 *)
cristy0c60a692010-11-04 01:09:47 +000011975 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 +000011976 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11977 ;;
11978 esac
11979 ;;
11980
11981interix[3-9]*)
11982 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11983 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11984 ;;
11985
11986irix5* | irix6* | nonstopux*)
11987 case $LD in
11988 *-32|*"-32 ") libmagic=32-bit;;
11989 *-n32|*"-n32 ") libmagic=N32;;
11990 *-64|*"-64 ") libmagic=64-bit;;
11991 *) libmagic=never-match;;
11992 esac
11993 lt_cv_deplibs_check_method=pass_all
11994 ;;
11995
cristy99bd5232011-12-07 14:38:20 +000011996# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000011997linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000011998 lt_cv_deplibs_check_method=pass_all
11999 ;;
12000
12001netbsd*)
12002 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12003 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12004 else
12005 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12006 fi
12007 ;;
12008
12009newos6*)
12010 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12011 lt_cv_file_magic_cmd=/usr/bin/file
12012 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12013 ;;
12014
12015*nto* | *qnx*)
12016 lt_cv_deplibs_check_method=pass_all
12017 ;;
12018
12019openbsd*)
12020 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12021 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12022 else
12023 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12024 fi
12025 ;;
12026
12027osf3* | osf4* | osf5*)
12028 lt_cv_deplibs_check_method=pass_all
12029 ;;
12030
12031rdos*)
12032 lt_cv_deplibs_check_method=pass_all
12033 ;;
12034
12035solaris*)
12036 lt_cv_deplibs_check_method=pass_all
12037 ;;
12038
12039sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12040 lt_cv_deplibs_check_method=pass_all
12041 ;;
12042
12043sysv4 | sysv4.3*)
12044 case $host_vendor in
12045 motorola)
12046 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]'
12047 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12048 ;;
12049 ncr)
12050 lt_cv_deplibs_check_method=pass_all
12051 ;;
12052 sequent)
12053 lt_cv_file_magic_cmd='/bin/file'
12054 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12055 ;;
12056 sni)
12057 lt_cv_file_magic_cmd='/bin/file'
12058 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12059 lt_cv_file_magic_test_file=/lib/libc.so
12060 ;;
12061 siemens)
12062 lt_cv_deplibs_check_method=pass_all
12063 ;;
12064 pc)
12065 lt_cv_deplibs_check_method=pass_all
12066 ;;
12067 esac
12068 ;;
12069
12070tpf*)
12071 lt_cv_deplibs_check_method=pass_all
12072 ;;
12073esac
12074
12075fi
12076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12077$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000012078
12079file_magic_glob=
12080want_nocaseglob=no
12081if test "$build" = "$host"; then
12082 case $host_os in
12083 mingw* | pw32*)
12084 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
12085 want_nocaseglob=yes
12086 else
12087 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
12088 fi
12089 ;;
12090 esac
12091fi
12092
cristy73bd4a52010-10-05 11:24:23 +000012093file_magic_cmd=$lt_cv_file_magic_cmd
12094deplibs_check_method=$lt_cv_deplibs_check_method
12095test -z "$deplibs_check_method" && deplibs_check_method=unknown
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
cristyda16f162011-02-19 23:52:17 +000012108
12109
12110
12111
12112
12113
12114
12115
12116
12117
cristy73bd4a52010-10-05 11:24:23 +000012118if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000012119 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12120set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000012121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12122$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012123if ${ac_cv_prog_DLLTOOL+:} false; then :
12124 $as_echo_n "(cached) " >&6
12125else
12126 if test -n "$DLLTOOL"; then
12127 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12128else
12129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12130for as_dir in $PATH
12131do
12132 IFS=$as_save_IFS
12133 test -z "$as_dir" && as_dir=.
12134 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012136 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12138 break 2
12139 fi
12140done
12141 done
12142IFS=$as_save_IFS
12143
12144fi
12145fi
12146DLLTOOL=$ac_cv_prog_DLLTOOL
12147if test -n "$DLLTOOL"; then
12148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12149$as_echo "$DLLTOOL" >&6; }
12150else
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12152$as_echo "no" >&6; }
12153fi
12154
12155
12156fi
12157if test -z "$ac_cv_prog_DLLTOOL"; then
12158 ac_ct_DLLTOOL=$DLLTOOL
12159 # Extract the first word of "dlltool", so it can be a program name with args.
12160set dummy dlltool; ac_word=$2
12161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12162$as_echo_n "checking for $ac_word... " >&6; }
12163if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
12164 $as_echo_n "(cached) " >&6
12165else
12166 if test -n "$ac_ct_DLLTOOL"; then
12167 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12168else
12169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12170for as_dir in $PATH
12171do
12172 IFS=$as_save_IFS
12173 test -z "$as_dir" && as_dir=.
12174 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012176 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12178 break 2
12179 fi
12180done
12181 done
12182IFS=$as_save_IFS
12183
12184fi
12185fi
12186ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12187if test -n "$ac_ct_DLLTOOL"; then
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12189$as_echo "$ac_ct_DLLTOOL" >&6; }
12190else
12191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12192$as_echo "no" >&6; }
12193fi
12194
12195 if test "x$ac_ct_DLLTOOL" = x; then
12196 DLLTOOL="false"
12197 else
12198 case $cross_compiling:$ac_tool_warned in
12199yes:)
12200{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12201$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12202ac_tool_warned=yes ;;
12203esac
12204 DLLTOOL=$ac_ct_DLLTOOL
12205 fi
12206else
12207 DLLTOOL="$ac_cv_prog_DLLTOOL"
12208fi
12209
12210test -z "$DLLTOOL" && DLLTOOL=dlltool
12211
12212
12213
12214
12215
12216
12217
12218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12219$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
12220if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
12221 $as_echo_n "(cached) " >&6
12222else
12223 lt_cv_sharedlib_from_linklib_cmd='unknown'
12224
12225case $host_os in
12226cygwin* | mingw* | pw32* | cegcc*)
12227 # two different shell functions defined in ltmain.sh
12228 # decide which to use based on capabilities of $DLLTOOL
12229 case `$DLLTOOL --help 2>&1` in
12230 *--identify-strict*)
12231 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12232 ;;
12233 *)
12234 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12235 ;;
12236 esac
12237 ;;
12238*)
12239 # fallback: assume linklib IS sharedlib
12240 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
12241 ;;
12242esac
12243
12244fi
12245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12246$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12247sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12248test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12249
12250
12251
12252
12253
12254
12255
12256if test -n "$ac_tool_prefix"; then
12257 for ac_prog in ar
12258 do
12259 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12260set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12262$as_echo_n "checking for $ac_word... " >&6; }
12263if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012264 $as_echo_n "(cached) " >&6
12265else
12266 if test -n "$AR"; then
12267 ac_cv_prog_AR="$AR" # Let the user override the test.
12268else
12269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12270for as_dir in $PATH
12271do
12272 IFS=$as_save_IFS
12273 test -z "$as_dir" && as_dir=.
12274 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012276 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000012277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12278 break 2
12279 fi
12280done
12281 done
12282IFS=$as_save_IFS
12283
12284fi
12285fi
12286AR=$ac_cv_prog_AR
12287if test -n "$AR"; then
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12289$as_echo "$AR" >&6; }
12290else
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12292$as_echo "no" >&6; }
12293fi
12294
12295
cristyda16f162011-02-19 23:52:17 +000012296 test -n "$AR" && break
12297 done
cristy73bd4a52010-10-05 11:24:23 +000012298fi
cristyda16f162011-02-19 23:52:17 +000012299if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000012300 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000012301 for ac_prog in ar
12302do
12303 # Extract the first word of "$ac_prog", so it can be a program name with args.
12304set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000012305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12306$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012307if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012308 $as_echo_n "(cached) " >&6
12309else
12310 if test -n "$ac_ct_AR"; then
12311 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12312else
12313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12314for as_dir in $PATH
12315do
12316 IFS=$as_save_IFS
12317 test -z "$as_dir" && as_dir=.
12318 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012320 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000012321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12322 break 2
12323 fi
12324done
12325 done
12326IFS=$as_save_IFS
12327
12328fi
12329fi
12330ac_ct_AR=$ac_cv_prog_ac_ct_AR
12331if test -n "$ac_ct_AR"; then
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12333$as_echo "$ac_ct_AR" >&6; }
12334else
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12336$as_echo "no" >&6; }
12337fi
12338
cristyda16f162011-02-19 23:52:17 +000012339
12340 test -n "$ac_ct_AR" && break
12341done
12342
cristy73bd4a52010-10-05 11:24:23 +000012343 if test "x$ac_ct_AR" = x; then
12344 AR="false"
12345 else
12346 case $cross_compiling:$ac_tool_warned in
12347yes:)
12348{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12349$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12350ac_tool_warned=yes ;;
12351esac
12352 AR=$ac_ct_AR
12353 fi
cristy73bd4a52010-10-05 11:24:23 +000012354fi
12355
cristyda16f162011-02-19 23:52:17 +000012356: ${AR=ar}
12357: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000012358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
cristyda16f162011-02-19 23:52:17 +000012369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12370$as_echo_n "checking for archiver @FILE support... " >&6; }
12371if ${lt_cv_ar_at_file+:} false; then :
12372 $as_echo_n "(cached) " >&6
12373else
12374 lt_cv_ar_at_file=no
12375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12376/* end confdefs.h. */
12377
12378int
12379main ()
12380{
12381
12382 ;
12383 return 0;
12384}
12385_ACEOF
12386if ac_fn_c_try_compile "$LINENO"; then :
12387 echo conftest.$ac_objext > conftest.lst
12388 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12389 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12390 (eval $lt_ar_try) 2>&5
12391 ac_status=$?
12392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12393 test $ac_status = 0; }
12394 if test "$ac_status" -eq 0; then
12395 # Ensure the archiver fails upon bogus file names.
12396 rm -f conftest.$ac_objext libconftest.a
12397 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12398 (eval $lt_ar_try) 2>&5
12399 ac_status=$?
12400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12401 test $ac_status = 0; }
12402 if test "$ac_status" -ne 0; then
12403 lt_cv_ar_at_file=@
12404 fi
12405 fi
12406 rm -f conftest.* libconftest.a
12407
12408fi
12409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12410
12411fi
12412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12413$as_echo "$lt_cv_ar_at_file" >&6; }
12414
12415if test "x$lt_cv_ar_at_file" = xno; then
12416 archiver_list_spec=
12417else
12418 archiver_list_spec=$lt_cv_ar_at_file
12419fi
12420
12421
12422
12423
12424
12425
12426
cristy73bd4a52010-10-05 11:24:23 +000012427if test -n "$ac_tool_prefix"; then
12428 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12429set dummy ${ac_tool_prefix}strip; ac_word=$2
12430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12431$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012432if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012433 $as_echo_n "(cached) " >&6
12434else
12435 if test -n "$STRIP"; then
12436 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12437else
12438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12439for as_dir in $PATH
12440do
12441 IFS=$as_save_IFS
12442 test -z "$as_dir" && as_dir=.
12443 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012445 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12447 break 2
12448 fi
12449done
12450 done
12451IFS=$as_save_IFS
12452
12453fi
12454fi
12455STRIP=$ac_cv_prog_STRIP
12456if test -n "$STRIP"; then
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12458$as_echo "$STRIP" >&6; }
12459else
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12461$as_echo "no" >&6; }
12462fi
12463
12464
12465fi
12466if test -z "$ac_cv_prog_STRIP"; then
12467 ac_ct_STRIP=$STRIP
12468 # Extract the first word of "strip", so it can be a program name with args.
12469set dummy strip; ac_word=$2
12470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12471$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012472if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012473 $as_echo_n "(cached) " >&6
12474else
12475 if test -n "$ac_ct_STRIP"; then
12476 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12477else
12478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12479for as_dir in $PATH
12480do
12481 IFS=$as_save_IFS
12482 test -z "$as_dir" && as_dir=.
12483 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012485 ac_cv_prog_ac_ct_STRIP="strip"
12486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12487 break 2
12488 fi
12489done
12490 done
12491IFS=$as_save_IFS
12492
12493fi
12494fi
12495ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12496if test -n "$ac_ct_STRIP"; then
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12498$as_echo "$ac_ct_STRIP" >&6; }
12499else
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12501$as_echo "no" >&6; }
12502fi
12503
12504 if test "x$ac_ct_STRIP" = x; then
12505 STRIP=":"
12506 else
12507 case $cross_compiling:$ac_tool_warned in
12508yes:)
12509{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12510$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12511ac_tool_warned=yes ;;
12512esac
12513 STRIP=$ac_ct_STRIP
12514 fi
12515else
12516 STRIP="$ac_cv_prog_STRIP"
12517fi
12518
12519test -z "$STRIP" && STRIP=:
12520
12521
12522
12523
12524
12525
12526if test -n "$ac_tool_prefix"; then
12527 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12528set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12530$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012531if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012532 $as_echo_n "(cached) " >&6
12533else
12534 if test -n "$RANLIB"; then
12535 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12536else
12537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12538for as_dir in $PATH
12539do
12540 IFS=$as_save_IFS
12541 test -z "$as_dir" && as_dir=.
12542 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012544 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12546 break 2
12547 fi
12548done
12549 done
12550IFS=$as_save_IFS
12551
12552fi
12553fi
12554RANLIB=$ac_cv_prog_RANLIB
12555if test -n "$RANLIB"; then
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12557$as_echo "$RANLIB" >&6; }
12558else
12559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12560$as_echo "no" >&6; }
12561fi
12562
12563
12564fi
12565if test -z "$ac_cv_prog_RANLIB"; then
12566 ac_ct_RANLIB=$RANLIB
12567 # Extract the first word of "ranlib", so it can be a program name with args.
12568set dummy ranlib; ac_word=$2
12569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12570$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012571if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012572 $as_echo_n "(cached) " >&6
12573else
12574 if test -n "$ac_ct_RANLIB"; then
12575 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12576else
12577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12578for as_dir in $PATH
12579do
12580 IFS=$as_save_IFS
12581 test -z "$as_dir" && as_dir=.
12582 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012584 ac_cv_prog_ac_ct_RANLIB="ranlib"
12585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12586 break 2
12587 fi
12588done
12589 done
12590IFS=$as_save_IFS
12591
12592fi
12593fi
12594ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12595if test -n "$ac_ct_RANLIB"; then
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12597$as_echo "$ac_ct_RANLIB" >&6; }
12598else
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12600$as_echo "no" >&6; }
12601fi
12602
12603 if test "x$ac_ct_RANLIB" = x; then
12604 RANLIB=":"
12605 else
12606 case $cross_compiling:$ac_tool_warned in
12607yes:)
12608{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12609$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12610ac_tool_warned=yes ;;
12611esac
12612 RANLIB=$ac_ct_RANLIB
12613 fi
12614else
12615 RANLIB="$ac_cv_prog_RANLIB"
12616fi
12617
12618test -z "$RANLIB" && RANLIB=:
12619
12620
12621
12622
12623
12624
12625# Determine commands to create old-style static archives.
12626old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12627old_postinstall_cmds='chmod 644 $oldlib'
12628old_postuninstall_cmds=
12629
12630if test -n "$RANLIB"; then
12631 case $host_os in
12632 openbsd*)
cristy99bd5232011-12-07 14:38:20 +000012633 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012634 ;;
12635 *)
cristy99bd5232011-12-07 14:38:20 +000012636 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012637 ;;
12638 esac
cristy99bd5232011-12-07 14:38:20 +000012639 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012640fi
12641
cristy0c60a692010-11-04 01:09:47 +000012642case $host_os in
12643 darwin*)
12644 lock_old_archive_extraction=yes ;;
12645 *)
12646 lock_old_archive_extraction=no ;;
12647esac
12648
12649
12650
12651
12652
12653
cristy73bd4a52010-10-05 11:24:23 +000012654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687# If no C compiler was specified, use CC.
12688LTCC=${LTCC-"$CC"}
12689
12690# If no C compiler flags were specified, use CFLAGS.
12691LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12692
12693# Allow CC to be a program name with arguments.
12694compiler=$CC
12695
12696
12697# Check for command to grab the raw symbol name followed by C symbol from nm.
12698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12699$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012700if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012701 $as_echo_n "(cached) " >&6
12702else
12703
12704# These are sane defaults that work on at least a few old systems.
12705# [They come from Ultrix. What could be older than Ultrix?!! ;)]
12706
12707# Character class describing NM global symbol codes.
12708symcode='[BCDEGRST]'
12709
12710# Regexp to match symbols that can be accessed directly from C.
12711sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12712
12713# Define system-specific variables.
12714case $host_os in
12715aix*)
12716 symcode='[BCDT]'
12717 ;;
12718cygwin* | mingw* | pw32* | cegcc*)
12719 symcode='[ABCDGISTW]'
12720 ;;
12721hpux*)
12722 if test "$host_cpu" = ia64; then
12723 symcode='[ABCDEGRST]'
12724 fi
12725 ;;
12726irix* | nonstopux*)
12727 symcode='[BCDEGRST]'
12728 ;;
12729osf*)
12730 symcode='[BCDEGQRST]'
12731 ;;
12732solaris*)
12733 symcode='[BDRT]'
12734 ;;
12735sco3.2v5*)
12736 symcode='[DT]'
12737 ;;
12738sysv4.2uw2*)
12739 symcode='[DT]'
12740 ;;
12741sysv5* | sco5v6* | unixware* | OpenUNIX*)
12742 symcode='[ABDT]'
12743 ;;
12744sysv4)
12745 symcode='[DFNSTU]'
12746 ;;
12747esac
12748
12749# If we're using GNU nm, then use its standard symbol codes.
12750case `$NM -V 2>&1` in
12751*GNU* | *'with BFD'*)
12752 symcode='[ABCDGIRSTW]' ;;
12753esac
12754
12755# Transform an extracted symbol line into a proper C declaration.
12756# Some systems (esp. on ia64) link data and code symbols differently,
12757# so use this general approach.
12758lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12759
12760# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000012761lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
12762lt_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 +000012763
12764# Handle CRLF in mingw tool chain
12765opt_cr=
12766case $build_os in
12767mingw*)
12768 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12769 ;;
12770esac
12771
12772# Try without a prefix underscore, then with it.
12773for ac_symprfx in "" "_"; do
12774
12775 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12776 symxfrm="\\1 $ac_symprfx\\2 \\2"
12777
12778 # Write the raw and C identifiers.
12779 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12780 # Fake it for dumpbin and say T for any non-static function
12781 # and D for any global variable.
12782 # Also find C++ and __fastcall symbols from MSVC++,
12783 # which start with @ or ?.
12784 lt_cv_sys_global_symbol_pipe="$AWK '"\
12785" {last_section=section; section=\$ 3};"\
cristy99bd5232011-12-07 14:38:20 +000012786" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
cristy73bd4a52010-10-05 11:24:23 +000012787" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12788" \$ 0!~/External *\|/{next};"\
12789" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12790" {if(hide[section]) next};"\
12791" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12792" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12793" s[1]~/^[@?]/{print s[1], s[1]; next};"\
12794" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12795" ' prfx=^$ac_symprfx"
12796 else
12797 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12798 fi
cristyda16f162011-02-19 23:52:17 +000012799 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000012800
12801 # Check to see that the pipe works correctly.
12802 pipe_works=no
12803
12804 rm -f conftest*
12805 cat > conftest.$ac_ext <<_LT_EOF
12806#ifdef __cplusplus
12807extern "C" {
12808#endif
12809char nm_test_var;
12810void nm_test_func(void);
12811void nm_test_func(void){}
12812#ifdef __cplusplus
12813}
12814#endif
12815int main(){nm_test_var='a';nm_test_func();return(0);}
12816_LT_EOF
12817
12818 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12819 (eval $ac_compile) 2>&5
12820 ac_status=$?
12821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12822 test $ac_status = 0; }; then
12823 # Now try to grab the symbols.
12824 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000012825 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12826 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000012827 ac_status=$?
12828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12829 test $ac_status = 0; } && test -s "$nlist"; then
12830 # Try sorting and uniquifying the output.
12831 if sort "$nlist" | uniq > "$nlist"T; then
12832 mv -f "$nlist"T "$nlist"
12833 else
12834 rm -f "$nlist"T
12835 fi
12836
12837 # Make sure that we snagged all the symbols we need.
12838 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12839 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12840 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000012841/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
12842#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12843/* DATA imports from DLLs on WIN32 con't be const, because runtime
12844 relocations are performed -- see ld's documentation on pseudo-relocs. */
12845# define LT_DLSYM_CONST
12846#elif defined(__osf__)
12847/* This system does not cope well with relocations in const data. */
12848# define LT_DLSYM_CONST
12849#else
12850# define LT_DLSYM_CONST const
12851#endif
12852
cristy73bd4a52010-10-05 11:24:23 +000012853#ifdef __cplusplus
12854extern "C" {
12855#endif
12856
12857_LT_EOF
12858 # Now generate the symbol file.
12859 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12860
12861 cat <<_LT_EOF >> conftest.$ac_ext
12862
12863/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000012864LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000012865 const char *name;
12866 void *address;
12867}
12868lt__PROGRAM__LTX_preloaded_symbols[] =
12869{
12870 { "@PROGRAM@", (void *) 0 },
12871_LT_EOF
12872 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12873 cat <<\_LT_EOF >> conftest.$ac_ext
12874 {0, (void *) 0}
12875};
12876
12877/* This works around a problem in FreeBSD linker */
12878#ifdef FREEBSD_WORKAROUND
12879static const void *lt_preloaded_setup() {
12880 return lt__PROGRAM__LTX_preloaded_symbols;
12881}
12882#endif
12883
12884#ifdef __cplusplus
12885}
12886#endif
12887_LT_EOF
12888 # Now try linking the two files.
12889 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000012890 lt_globsym_save_LIBS=$LIBS
12891 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012892 LIBS="conftstm.$ac_objext"
12893 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12894 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12895 (eval $ac_link) 2>&5
12896 ac_status=$?
12897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12898 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12899 pipe_works=yes
12900 fi
cristyda16f162011-02-19 23:52:17 +000012901 LIBS=$lt_globsym_save_LIBS
12902 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012903 else
12904 echo "cannot find nm_test_func in $nlist" >&5
12905 fi
12906 else
12907 echo "cannot find nm_test_var in $nlist" >&5
12908 fi
12909 else
12910 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12911 fi
12912 else
12913 echo "$progname: failed program was:" >&5
12914 cat conftest.$ac_ext >&5
12915 fi
12916 rm -rf conftest* conftst*
12917
12918 # Do not use the global_symbol_pipe unless it works.
12919 if test "$pipe_works" = yes; then
12920 break
12921 else
12922 lt_cv_sys_global_symbol_pipe=
12923 fi
12924done
12925
12926fi
12927
12928if test -z "$lt_cv_sys_global_symbol_pipe"; then
12929 lt_cv_sys_global_symbol_to_cdecl=
12930fi
12931if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12933$as_echo "failed" >&6; }
12934else
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12936$as_echo "ok" >&6; }
12937fi
12938
cristyda16f162011-02-19 23:52:17 +000012939# Response file support.
12940if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12941 nm_file_list_spec='@'
12942elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12943 nm_file_list_spec='@'
12944fi
cristy73bd4a52010-10-05 11:24:23 +000012945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
cristyda16f162011-02-19 23:52:17 +000012966
12967
12968
12969
12970
12971
12972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12973$as_echo_n "checking for sysroot... " >&6; }
12974
12975# Check whether --with-sysroot was given.
12976if test "${with_sysroot+set}" = set; then :
12977 withval=$with_sysroot;
12978else
12979 with_sysroot=no
12980fi
12981
12982
12983lt_sysroot=
12984case ${with_sysroot} in #(
12985 yes)
12986 if test "$GCC" = yes; then
12987 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12988 fi
12989 ;; #(
12990 /*)
12991 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12992 ;; #(
12993 no|'')
12994 ;; #(
12995 *)
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12997$as_echo "${with_sysroot}" >&6; }
12998 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12999 ;;
13000esac
13001
13002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
13003$as_echo "${lt_sysroot:-no}" >&6; }
13004
13005
13006
13007
13008
cristy73bd4a52010-10-05 11:24:23 +000013009# Check whether --enable-libtool-lock was given.
13010if test "${enable_libtool_lock+set}" = set; then :
13011 enableval=$enable_libtool_lock;
13012fi
13013
13014test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13015
13016# Some flags need to be propagated to the compiler or linker for good
13017# libtool support.
13018case $host in
13019ia64-*-hpux*)
13020 # Find out which ABI we are using.
13021 echo 'int i;' > conftest.$ac_ext
13022 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13023 (eval $ac_compile) 2>&5
13024 ac_status=$?
13025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13026 test $ac_status = 0; }; then
13027 case `/usr/bin/file conftest.$ac_objext` in
13028 *ELF-32*)
13029 HPUX_IA64_MODE="32"
13030 ;;
13031 *ELF-64*)
13032 HPUX_IA64_MODE="64"
13033 ;;
13034 esac
13035 fi
13036 rm -rf conftest*
13037 ;;
13038*-*-irix6*)
13039 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000013040 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000013041 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13042 (eval $ac_compile) 2>&5
13043 ac_status=$?
13044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13045 test $ac_status = 0; }; then
13046 if test "$lt_cv_prog_gnu_ld" = yes; then
13047 case `/usr/bin/file conftest.$ac_objext` in
13048 *32-bit*)
13049 LD="${LD-ld} -melf32bsmip"
13050 ;;
13051 *N32*)
13052 LD="${LD-ld} -melf32bmipn32"
13053 ;;
13054 *64-bit*)
13055 LD="${LD-ld} -melf64bmip"
13056 ;;
13057 esac
13058 else
13059 case `/usr/bin/file conftest.$ac_objext` in
13060 *32-bit*)
13061 LD="${LD-ld} -32"
13062 ;;
13063 *N32*)
13064 LD="${LD-ld} -n32"
13065 ;;
13066 *64-bit*)
13067 LD="${LD-ld} -64"
13068 ;;
13069 esac
13070 fi
13071 fi
13072 rm -rf conftest*
13073 ;;
13074
cristyd95b7a52013-10-23 13:12:53 +000013075x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
cristy73bd4a52010-10-05 11:24:23 +000013076s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13077 # Find out which ABI we are using.
13078 echo 'int i;' > conftest.$ac_ext
13079 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13080 (eval $ac_compile) 2>&5
13081 ac_status=$?
13082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13083 test $ac_status = 0; }; then
13084 case `/usr/bin/file conftest.o` in
13085 *32-bit*)
13086 case $host in
13087 x86_64-*kfreebsd*-gnu)
13088 LD="${LD-ld} -m elf_i386_fbsd"
13089 ;;
13090 x86_64-*linux*)
13091 LD="${LD-ld} -m elf_i386"
13092 ;;
cristya5bda012013-11-03 18:05:38 +000013093 powerpc64le-*linux*)
cristyd95b7a52013-10-23 13:12:53 +000013094 LD="${LD-ld} -m elf32lppclinux"
13095 ;;
cristya5bda012013-11-03 18:05:38 +000013096 powerpc64-*linux*)
cristy73bd4a52010-10-05 11:24:23 +000013097 LD="${LD-ld} -m elf32ppclinux"
13098 ;;
13099 s390x-*linux*)
13100 LD="${LD-ld} -m elf_s390"
13101 ;;
13102 sparc64-*linux*)
13103 LD="${LD-ld} -m elf32_sparc"
13104 ;;
13105 esac
13106 ;;
13107 *64-bit*)
13108 case $host in
13109 x86_64-*kfreebsd*-gnu)
13110 LD="${LD-ld} -m elf_x86_64_fbsd"
13111 ;;
13112 x86_64-*linux*)
13113 LD="${LD-ld} -m elf_x86_64"
13114 ;;
cristyd95b7a52013-10-23 13:12:53 +000013115 powerpcle-*linux*)
13116 LD="${LD-ld} -m elf64lppc"
13117 ;;
13118 powerpc-*linux*)
cristy73bd4a52010-10-05 11:24:23 +000013119 LD="${LD-ld} -m elf64ppc"
13120 ;;
13121 s390*-*linux*|s390*-*tpf*)
13122 LD="${LD-ld} -m elf64_s390"
13123 ;;
13124 sparc*-*linux*)
13125 LD="${LD-ld} -m elf64_sparc"
13126 ;;
13127 esac
13128 ;;
13129 esac
13130 fi
13131 rm -rf conftest*
13132 ;;
13133
13134*-*-sco3.2v5*)
13135 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13136 SAVE_CFLAGS="$CFLAGS"
13137 CFLAGS="$CFLAGS -belf"
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13139$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013140if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013141 $as_echo_n "(cached) " >&6
13142else
13143 ac_ext=c
13144ac_cpp='$CPP $CPPFLAGS'
13145ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13146ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13147ac_compiler_gnu=$ac_cv_c_compiler_gnu
13148
13149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13150/* end confdefs.h. */
13151
13152int
13153main ()
13154{
13155
13156 ;
13157 return 0;
13158}
13159_ACEOF
13160if ac_fn_c_try_link "$LINENO"; then :
13161 lt_cv_cc_needs_belf=yes
13162else
13163 lt_cv_cc_needs_belf=no
13164fi
13165rm -f core conftest.err conftest.$ac_objext \
13166 conftest$ac_exeext conftest.$ac_ext
13167 ac_ext=c
13168ac_cpp='$CPP $CPPFLAGS'
13169ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13170ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13171ac_compiler_gnu=$ac_cv_c_compiler_gnu
13172
13173fi
13174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13175$as_echo "$lt_cv_cc_needs_belf" >&6; }
13176 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13177 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13178 CFLAGS="$SAVE_CFLAGS"
13179 fi
13180 ;;
cristy99bd5232011-12-07 14:38:20 +000013181*-*solaris*)
cristy73bd4a52010-10-05 11:24:23 +000013182 # Find out which ABI we are using.
13183 echo 'int i;' > conftest.$ac_ext
13184 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13185 (eval $ac_compile) 2>&5
13186 ac_status=$?
13187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13188 test $ac_status = 0; }; then
13189 case `/usr/bin/file conftest.o` in
13190 *64-bit*)
13191 case $lt_cv_prog_gnu_ld in
cristy99bd5232011-12-07 14:38:20 +000013192 yes*)
13193 case $host in
13194 i?86-*-solaris*)
13195 LD="${LD-ld} -m elf_x86_64"
13196 ;;
13197 sparc*-*-solaris*)
13198 LD="${LD-ld} -m elf64_sparc"
13199 ;;
13200 esac
13201 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
13202 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
13203 LD="${LD-ld}_sol2"
13204 fi
13205 ;;
cristy73bd4a52010-10-05 11:24:23 +000013206 *)
13207 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13208 LD="${LD-ld} -64"
13209 fi
13210 ;;
13211 esac
13212 ;;
13213 esac
13214 fi
13215 rm -rf conftest*
13216 ;;
13217esac
13218
13219need_locks="$enable_libtool_lock"
13220
cristyda16f162011-02-19 23:52:17 +000013221if test -n "$ac_tool_prefix"; then
13222 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
13223set dummy ${ac_tool_prefix}mt; ac_word=$2
13224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13225$as_echo_n "checking for $ac_word... " >&6; }
13226if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
13227 $as_echo_n "(cached) " >&6
13228else
13229 if test -n "$MANIFEST_TOOL"; then
13230 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13231else
13232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13233for as_dir in $PATH
13234do
13235 IFS=$as_save_IFS
13236 test -z "$as_dir" && as_dir=.
13237 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000013239 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13241 break 2
13242 fi
13243done
13244 done
13245IFS=$as_save_IFS
13246
13247fi
13248fi
13249MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13250if test -n "$MANIFEST_TOOL"; then
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13252$as_echo "$MANIFEST_TOOL" >&6; }
13253else
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13255$as_echo "no" >&6; }
13256fi
13257
13258
13259fi
13260if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13261 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13262 # Extract the first word of "mt", so it can be a program name with args.
13263set dummy mt; ac_word=$2
13264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13265$as_echo_n "checking for $ac_word... " >&6; }
13266if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13267 $as_echo_n "(cached) " >&6
13268else
13269 if test -n "$ac_ct_MANIFEST_TOOL"; then
13270 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13271else
13272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13273for as_dir in $PATH
13274do
13275 IFS=$as_save_IFS
13276 test -z "$as_dir" && as_dir=.
13277 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000013279 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13281 break 2
13282 fi
13283done
13284 done
13285IFS=$as_save_IFS
13286
13287fi
13288fi
13289ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13290if test -n "$ac_ct_MANIFEST_TOOL"; then
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13292$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13293else
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13295$as_echo "no" >&6; }
13296fi
13297
13298 if test "x$ac_ct_MANIFEST_TOOL" = x; then
13299 MANIFEST_TOOL=":"
13300 else
13301 case $cross_compiling:$ac_tool_warned in
13302yes:)
13303{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13304$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13305ac_tool_warned=yes ;;
13306esac
13307 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13308 fi
13309else
13310 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13311fi
13312
13313test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13315$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13316if ${lt_cv_path_mainfest_tool+:} false; then :
13317 $as_echo_n "(cached) " >&6
13318else
13319 lt_cv_path_mainfest_tool=no
13320 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13321 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13322 cat conftest.err >&5
13323 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13324 lt_cv_path_mainfest_tool=yes
13325 fi
13326 rm -f conftest*
13327fi
13328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13329$as_echo "$lt_cv_path_mainfest_tool" >&6; }
13330if test "x$lt_cv_path_mainfest_tool" != xyes; then
13331 MANIFEST_TOOL=:
13332fi
13333
13334
13335
13336
13337
cristy73bd4a52010-10-05 11:24:23 +000013338
13339 case $host_os in
13340 rhapsody* | darwin*)
13341 if test -n "$ac_tool_prefix"; then
13342 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13343set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13345$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013346if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013347 $as_echo_n "(cached) " >&6
13348else
13349 if test -n "$DSYMUTIL"; then
13350 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13351else
13352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13353for as_dir in $PATH
13354do
13355 IFS=$as_save_IFS
13356 test -z "$as_dir" && as_dir=.
13357 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013358 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013359 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13361 break 2
13362 fi
13363done
13364 done
13365IFS=$as_save_IFS
13366
13367fi
13368fi
13369DSYMUTIL=$ac_cv_prog_DSYMUTIL
13370if test -n "$DSYMUTIL"; then
13371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13372$as_echo "$DSYMUTIL" >&6; }
13373else
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13375$as_echo "no" >&6; }
13376fi
13377
13378
13379fi
13380if test -z "$ac_cv_prog_DSYMUTIL"; then
13381 ac_ct_DSYMUTIL=$DSYMUTIL
13382 # Extract the first word of "dsymutil", so it can be a program name with args.
13383set dummy dsymutil; ac_word=$2
13384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13385$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013386if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013387 $as_echo_n "(cached) " >&6
13388else
13389 if test -n "$ac_ct_DSYMUTIL"; then
13390 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13391else
13392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13393for as_dir in $PATH
13394do
13395 IFS=$as_save_IFS
13396 test -z "$as_dir" && as_dir=.
13397 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013399 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13401 break 2
13402 fi
13403done
13404 done
13405IFS=$as_save_IFS
13406
13407fi
13408fi
13409ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13410if test -n "$ac_ct_DSYMUTIL"; then
13411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13412$as_echo "$ac_ct_DSYMUTIL" >&6; }
13413else
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13415$as_echo "no" >&6; }
13416fi
13417
13418 if test "x$ac_ct_DSYMUTIL" = x; then
13419 DSYMUTIL=":"
13420 else
13421 case $cross_compiling:$ac_tool_warned in
13422yes:)
13423{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13424$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13425ac_tool_warned=yes ;;
13426esac
13427 DSYMUTIL=$ac_ct_DSYMUTIL
13428 fi
13429else
13430 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13431fi
13432
13433 if test -n "$ac_tool_prefix"; then
13434 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13435set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13437$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013438if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013439 $as_echo_n "(cached) " >&6
13440else
13441 if test -n "$NMEDIT"; then
13442 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13443else
13444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13445for as_dir in $PATH
13446do
13447 IFS=$as_save_IFS
13448 test -z "$as_dir" && as_dir=.
13449 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013451 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13453 break 2
13454 fi
13455done
13456 done
13457IFS=$as_save_IFS
13458
13459fi
13460fi
13461NMEDIT=$ac_cv_prog_NMEDIT
13462if test -n "$NMEDIT"; then
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13464$as_echo "$NMEDIT" >&6; }
13465else
13466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13467$as_echo "no" >&6; }
13468fi
13469
13470
13471fi
13472if test -z "$ac_cv_prog_NMEDIT"; then
13473 ac_ct_NMEDIT=$NMEDIT
13474 # Extract the first word of "nmedit", so it can be a program name with args.
13475set dummy nmedit; ac_word=$2
13476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13477$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013478if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013479 $as_echo_n "(cached) " >&6
13480else
13481 if test -n "$ac_ct_NMEDIT"; then
13482 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13483else
13484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13485for as_dir in $PATH
13486do
13487 IFS=$as_save_IFS
13488 test -z "$as_dir" && as_dir=.
13489 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013491 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13493 break 2
13494 fi
13495done
13496 done
13497IFS=$as_save_IFS
13498
13499fi
13500fi
13501ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13502if test -n "$ac_ct_NMEDIT"; then
13503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13504$as_echo "$ac_ct_NMEDIT" >&6; }
13505else
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13507$as_echo "no" >&6; }
13508fi
13509
13510 if test "x$ac_ct_NMEDIT" = x; then
13511 NMEDIT=":"
13512 else
13513 case $cross_compiling:$ac_tool_warned in
13514yes:)
13515{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13516$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13517ac_tool_warned=yes ;;
13518esac
13519 NMEDIT=$ac_ct_NMEDIT
13520 fi
13521else
13522 NMEDIT="$ac_cv_prog_NMEDIT"
13523fi
13524
13525 if test -n "$ac_tool_prefix"; then
13526 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13527set dummy ${ac_tool_prefix}lipo; ac_word=$2
13528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13529$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013530if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013531 $as_echo_n "(cached) " >&6
13532else
13533 if test -n "$LIPO"; then
13534 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13535else
13536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13537for as_dir in $PATH
13538do
13539 IFS=$as_save_IFS
13540 test -z "$as_dir" && as_dir=.
13541 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013543 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13545 break 2
13546 fi
13547done
13548 done
13549IFS=$as_save_IFS
13550
13551fi
13552fi
13553LIPO=$ac_cv_prog_LIPO
13554if test -n "$LIPO"; then
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13556$as_echo "$LIPO" >&6; }
13557else
13558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13559$as_echo "no" >&6; }
13560fi
13561
13562
13563fi
13564if test -z "$ac_cv_prog_LIPO"; then
13565 ac_ct_LIPO=$LIPO
13566 # Extract the first word of "lipo", so it can be a program name with args.
13567set dummy lipo; ac_word=$2
13568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13569$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013570if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013571 $as_echo_n "(cached) " >&6
13572else
13573 if test -n "$ac_ct_LIPO"; then
13574 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13575else
13576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13577for as_dir in $PATH
13578do
13579 IFS=$as_save_IFS
13580 test -z "$as_dir" && as_dir=.
13581 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013583 ac_cv_prog_ac_ct_LIPO="lipo"
13584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13585 break 2
13586 fi
13587done
13588 done
13589IFS=$as_save_IFS
13590
13591fi
13592fi
13593ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13594if test -n "$ac_ct_LIPO"; then
13595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13596$as_echo "$ac_ct_LIPO" >&6; }
13597else
13598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13599$as_echo "no" >&6; }
13600fi
13601
13602 if test "x$ac_ct_LIPO" = x; then
13603 LIPO=":"
13604 else
13605 case $cross_compiling:$ac_tool_warned in
13606yes:)
13607{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13608$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13609ac_tool_warned=yes ;;
13610esac
13611 LIPO=$ac_ct_LIPO
13612 fi
13613else
13614 LIPO="$ac_cv_prog_LIPO"
13615fi
13616
13617 if test -n "$ac_tool_prefix"; then
13618 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13619set dummy ${ac_tool_prefix}otool; ac_word=$2
13620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13621$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013622if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013623 $as_echo_n "(cached) " >&6
13624else
13625 if test -n "$OTOOL"; then
13626 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13627else
13628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13629for as_dir in $PATH
13630do
13631 IFS=$as_save_IFS
13632 test -z "$as_dir" && as_dir=.
13633 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013635 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13637 break 2
13638 fi
13639done
13640 done
13641IFS=$as_save_IFS
13642
13643fi
13644fi
13645OTOOL=$ac_cv_prog_OTOOL
13646if test -n "$OTOOL"; then
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13648$as_echo "$OTOOL" >&6; }
13649else
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13651$as_echo "no" >&6; }
13652fi
13653
13654
13655fi
13656if test -z "$ac_cv_prog_OTOOL"; then
13657 ac_ct_OTOOL=$OTOOL
13658 # Extract the first word of "otool", so it can be a program name with args.
13659set dummy otool; ac_word=$2
13660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13661$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013662if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013663 $as_echo_n "(cached) " >&6
13664else
13665 if test -n "$ac_ct_OTOOL"; then
13666 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13667else
13668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13669for as_dir in $PATH
13670do
13671 IFS=$as_save_IFS
13672 test -z "$as_dir" && as_dir=.
13673 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013675 ac_cv_prog_ac_ct_OTOOL="otool"
13676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13677 break 2
13678 fi
13679done
13680 done
13681IFS=$as_save_IFS
13682
13683fi
13684fi
13685ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13686if test -n "$ac_ct_OTOOL"; then
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13688$as_echo "$ac_ct_OTOOL" >&6; }
13689else
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13691$as_echo "no" >&6; }
13692fi
13693
13694 if test "x$ac_ct_OTOOL" = x; then
13695 OTOOL=":"
13696 else
13697 case $cross_compiling:$ac_tool_warned in
13698yes:)
13699{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13700$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13701ac_tool_warned=yes ;;
13702esac
13703 OTOOL=$ac_ct_OTOOL
13704 fi
13705else
13706 OTOOL="$ac_cv_prog_OTOOL"
13707fi
13708
13709 if test -n "$ac_tool_prefix"; then
13710 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13711set dummy ${ac_tool_prefix}otool64; ac_word=$2
13712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13713$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013714if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013715 $as_echo_n "(cached) " >&6
13716else
13717 if test -n "$OTOOL64"; then
13718 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13719else
13720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13721for as_dir in $PATH
13722do
13723 IFS=$as_save_IFS
13724 test -z "$as_dir" && as_dir=.
13725 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013727 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13729 break 2
13730 fi
13731done
13732 done
13733IFS=$as_save_IFS
13734
13735fi
13736fi
13737OTOOL64=$ac_cv_prog_OTOOL64
13738if test -n "$OTOOL64"; then
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13740$as_echo "$OTOOL64" >&6; }
13741else
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13743$as_echo "no" >&6; }
13744fi
13745
13746
13747fi
13748if test -z "$ac_cv_prog_OTOOL64"; then
13749 ac_ct_OTOOL64=$OTOOL64
13750 # Extract the first word of "otool64", so it can be a program name with args.
13751set dummy otool64; ac_word=$2
13752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13753$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013754if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013755 $as_echo_n "(cached) " >&6
13756else
13757 if test -n "$ac_ct_OTOOL64"; then
13758 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13759else
13760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13761for as_dir in $PATH
13762do
13763 IFS=$as_save_IFS
13764 test -z "$as_dir" && as_dir=.
13765 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013767 ac_cv_prog_ac_ct_OTOOL64="otool64"
13768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13769 break 2
13770 fi
13771done
13772 done
13773IFS=$as_save_IFS
13774
13775fi
13776fi
13777ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13778if test -n "$ac_ct_OTOOL64"; then
13779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13780$as_echo "$ac_ct_OTOOL64" >&6; }
13781else
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13783$as_echo "no" >&6; }
13784fi
13785
13786 if test "x$ac_ct_OTOOL64" = x; then
13787 OTOOL64=":"
13788 else
13789 case $cross_compiling:$ac_tool_warned in
13790yes:)
13791{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13792$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13793ac_tool_warned=yes ;;
13794esac
13795 OTOOL64=$ac_ct_OTOOL64
13796 fi
13797else
13798 OTOOL64="$ac_cv_prog_OTOOL64"
13799fi
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13828$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013829if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013830 $as_echo_n "(cached) " >&6
13831else
13832 lt_cv_apple_cc_single_mod=no
13833 if test -z "${LT_MULTI_MODULE}"; then
13834 # By default we will add the -single_module flag. You can override
13835 # by either setting the environment variable LT_MULTI_MODULE
13836 # non-empty at configure time, or by adding -multi_module to the
13837 # link flags.
13838 rm -rf libconftest.dylib*
13839 echo "int foo(void){return 1;}" > conftest.c
13840 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13841-dynamiclib -Wl,-single_module conftest.c" >&5
13842 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13843 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13844 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013845 # If there is a non-empty error log, and "single_module"
13846 # appears in it, assume the flag caused a linker warning
13847 if test -s conftest.err && $GREP single_module conftest.err; then
13848 cat conftest.err >&5
13849 # Otherwise, if the output was created with a 0 exit code from
13850 # the compiler, it worked.
13851 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
cristy73bd4a52010-10-05 11:24:23 +000013852 lt_cv_apple_cc_single_mod=yes
13853 else
13854 cat conftest.err >&5
13855 fi
13856 rm -rf libconftest.dylib*
13857 rm -f conftest.*
13858 fi
13859fi
13860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13861$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013862
cristy73bd4a52010-10-05 11:24:23 +000013863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13864$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013865if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013866 $as_echo_n "(cached) " >&6
13867else
13868 lt_cv_ld_exported_symbols_list=no
13869 save_LDFLAGS=$LDFLAGS
13870 echo "_main" > conftest.sym
13871 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13873/* end confdefs.h. */
13874
13875int
13876main ()
13877{
13878
13879 ;
13880 return 0;
13881}
13882_ACEOF
13883if ac_fn_c_try_link "$LINENO"; then :
13884 lt_cv_ld_exported_symbols_list=yes
13885else
13886 lt_cv_ld_exported_symbols_list=no
13887fi
13888rm -f core conftest.err conftest.$ac_objext \
13889 conftest$ac_exeext conftest.$ac_ext
13890 LDFLAGS="$save_LDFLAGS"
13891
13892fi
13893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13894$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013895
cristy0c60a692010-11-04 01:09:47 +000013896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13897$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013898if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000013899 $as_echo_n "(cached) " >&6
13900else
13901 lt_cv_ld_force_load=no
13902 cat > conftest.c << _LT_EOF
13903int forced_loaded() { return 2;}
13904_LT_EOF
13905 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13906 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13907 echo "$AR cru libconftest.a conftest.o" >&5
13908 $AR cru libconftest.a conftest.o 2>&5
13909 echo "$RANLIB libconftest.a" >&5
13910 $RANLIB libconftest.a 2>&5
13911 cat > conftest.c << _LT_EOF
13912int main() { return 0;}
13913_LT_EOF
13914 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13915 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13916 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013917 if test -s conftest.err && $GREP force_load conftest.err; then
13918 cat conftest.err >&5
13919 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
cristy0c60a692010-11-04 01:09:47 +000013920 lt_cv_ld_force_load=yes
13921 else
13922 cat conftest.err >&5
13923 fi
13924 rm -f conftest.err libconftest.a conftest conftest.c
13925 rm -rf conftest.dSYM
13926
13927fi
13928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13929$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000013930 case $host_os in
13931 rhapsody* | darwin1.[012])
13932 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13933 darwin1.*)
13934 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13935 darwin*) # darwin 5.x on
13936 # if running on 10.5 or later, the deployment target defaults
13937 # to the OS version, if on x86, and 10.4, the deployment
13938 # target defaults to 10.4. Don't you love it?
13939 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13940 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13941 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13942 10.[012]*)
13943 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13944 10.*)
13945 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13946 esac
13947 ;;
13948 esac
13949 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13950 _lt_dar_single_mod='$single_module'
13951 fi
13952 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13953 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13954 else
13955 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13956 fi
cristy0c60a692010-11-04 01:09:47 +000013957 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000013958 _lt_dsymutil='~$DSYMUTIL $lib || :'
13959 else
13960 _lt_dsymutil=
13961 fi
13962 ;;
13963 esac
13964
13965for ac_header in dlfcn.h
13966do :
13967 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13968"
cristyda16f162011-02-19 23:52:17 +000013969if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000013970 cat >>confdefs.h <<_ACEOF
13971#define HAVE_DLFCN_H 1
13972_ACEOF
13973
13974fi
13975
13976done
13977
13978
13979
cristy73bd4a52010-10-05 11:24:23 +000013980
cristyda16f162011-02-19 23:52:17 +000013981func_stripname_cnf ()
13982{
13983 case ${2} in
13984 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13985 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13986 esac
13987} # func_stripname_cnf
13988
13989
13990
cristy73bd4a52010-10-05 11:24:23 +000013991
13992
13993# Set options
13994enable_win32_dll=yes
13995
13996case $host in
cristy0c60a692010-11-04 01:09:47 +000013997*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000013998 if test -n "$ac_tool_prefix"; then
13999 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
14000set dummy ${ac_tool_prefix}as; ac_word=$2
14001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14002$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014003if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014004 $as_echo_n "(cached) " >&6
14005else
14006 if test -n "$AS"; then
14007 ac_cv_prog_AS="$AS" # Let the user override the test.
14008else
14009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14010for as_dir in $PATH
14011do
14012 IFS=$as_save_IFS
14013 test -z "$as_dir" && as_dir=.
14014 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014016 ac_cv_prog_AS="${ac_tool_prefix}as"
14017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14018 break 2
14019 fi
14020done
14021 done
14022IFS=$as_save_IFS
14023
14024fi
14025fi
14026AS=$ac_cv_prog_AS
14027if test -n "$AS"; then
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
14029$as_echo "$AS" >&6; }
14030else
14031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14032$as_echo "no" >&6; }
14033fi
14034
14035
14036fi
14037if test -z "$ac_cv_prog_AS"; then
14038 ac_ct_AS=$AS
14039 # Extract the first word of "as", so it can be a program name with args.
14040set dummy as; ac_word=$2
14041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14042$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014043if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014044 $as_echo_n "(cached) " >&6
14045else
14046 if test -n "$ac_ct_AS"; then
14047 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
14048else
14049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14050for as_dir in $PATH
14051do
14052 IFS=$as_save_IFS
14053 test -z "$as_dir" && as_dir=.
14054 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014056 ac_cv_prog_ac_ct_AS="as"
14057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14058 break 2
14059 fi
14060done
14061 done
14062IFS=$as_save_IFS
14063
14064fi
14065fi
14066ac_ct_AS=$ac_cv_prog_ac_ct_AS
14067if test -n "$ac_ct_AS"; then
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
14069$as_echo "$ac_ct_AS" >&6; }
14070else
14071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14072$as_echo "no" >&6; }
14073fi
14074
14075 if test "x$ac_ct_AS" = x; then
14076 AS="false"
14077 else
14078 case $cross_compiling:$ac_tool_warned in
14079yes:)
14080{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14081$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14082ac_tool_warned=yes ;;
14083esac
14084 AS=$ac_ct_AS
14085 fi
14086else
14087 AS="$ac_cv_prog_AS"
14088fi
14089
14090 if test -n "$ac_tool_prefix"; then
14091 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
14092set dummy ${ac_tool_prefix}dlltool; ac_word=$2
14093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14094$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014095if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014096 $as_echo_n "(cached) " >&6
14097else
14098 if test -n "$DLLTOOL"; then
14099 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
14100else
14101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14102for as_dir in $PATH
14103do
14104 IFS=$as_save_IFS
14105 test -z "$as_dir" && as_dir=.
14106 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014108 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
14109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14110 break 2
14111 fi
14112done
14113 done
14114IFS=$as_save_IFS
14115
14116fi
14117fi
14118DLLTOOL=$ac_cv_prog_DLLTOOL
14119if test -n "$DLLTOOL"; then
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
14121$as_echo "$DLLTOOL" >&6; }
14122else
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14124$as_echo "no" >&6; }
14125fi
14126
14127
14128fi
14129if test -z "$ac_cv_prog_DLLTOOL"; then
14130 ac_ct_DLLTOOL=$DLLTOOL
14131 # Extract the first word of "dlltool", so it can be a program name with args.
14132set dummy dlltool; ac_word=$2
14133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14134$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014135if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014136 $as_echo_n "(cached) " >&6
14137else
14138 if test -n "$ac_ct_DLLTOOL"; then
14139 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
14140else
14141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14142for as_dir in $PATH
14143do
14144 IFS=$as_save_IFS
14145 test -z "$as_dir" && as_dir=.
14146 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014148 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
14149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14150 break 2
14151 fi
14152done
14153 done
14154IFS=$as_save_IFS
14155
14156fi
14157fi
14158ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
14159if test -n "$ac_ct_DLLTOOL"; then
14160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
14161$as_echo "$ac_ct_DLLTOOL" >&6; }
14162else
14163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14164$as_echo "no" >&6; }
14165fi
14166
14167 if test "x$ac_ct_DLLTOOL" = x; then
14168 DLLTOOL="false"
14169 else
14170 case $cross_compiling:$ac_tool_warned in
14171yes:)
14172{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14173$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14174ac_tool_warned=yes ;;
14175esac
14176 DLLTOOL=$ac_ct_DLLTOOL
14177 fi
14178else
14179 DLLTOOL="$ac_cv_prog_DLLTOOL"
14180fi
14181
14182 if test -n "$ac_tool_prefix"; then
14183 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
14184set dummy ${ac_tool_prefix}objdump; ac_word=$2
14185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14186$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014187if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014188 $as_echo_n "(cached) " >&6
14189else
14190 if test -n "$OBJDUMP"; then
14191 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
14192else
14193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14194for as_dir in $PATH
14195do
14196 IFS=$as_save_IFS
14197 test -z "$as_dir" && as_dir=.
14198 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014200 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
14201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14202 break 2
14203 fi
14204done
14205 done
14206IFS=$as_save_IFS
14207
14208fi
14209fi
14210OBJDUMP=$ac_cv_prog_OBJDUMP
14211if test -n "$OBJDUMP"; then
14212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
14213$as_echo "$OBJDUMP" >&6; }
14214else
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14216$as_echo "no" >&6; }
14217fi
14218
14219
14220fi
14221if test -z "$ac_cv_prog_OBJDUMP"; then
14222 ac_ct_OBJDUMP=$OBJDUMP
14223 # Extract the first word of "objdump", so it can be a program name with args.
14224set dummy objdump; ac_word=$2
14225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14226$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014227if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014228 $as_echo_n "(cached) " >&6
14229else
14230 if test -n "$ac_ct_OBJDUMP"; then
14231 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
14232else
14233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14234for as_dir in $PATH
14235do
14236 IFS=$as_save_IFS
14237 test -z "$as_dir" && as_dir=.
14238 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014240 ac_cv_prog_ac_ct_OBJDUMP="objdump"
14241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14242 break 2
14243 fi
14244done
14245 done
14246IFS=$as_save_IFS
14247
14248fi
14249fi
14250ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
14251if test -n "$ac_ct_OBJDUMP"; then
14252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
14253$as_echo "$ac_ct_OBJDUMP" >&6; }
14254else
14255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14256$as_echo "no" >&6; }
14257fi
14258
14259 if test "x$ac_ct_OBJDUMP" = x; then
14260 OBJDUMP="false"
14261 else
14262 case $cross_compiling:$ac_tool_warned in
14263yes:)
14264{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14265$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14266ac_tool_warned=yes ;;
14267esac
14268 OBJDUMP=$ac_ct_OBJDUMP
14269 fi
14270else
14271 OBJDUMP="$ac_cv_prog_OBJDUMP"
14272fi
14273
14274 ;;
14275esac
14276
14277test -z "$AS" && AS=as
14278
14279
14280
14281
14282
14283test -z "$DLLTOOL" && DLLTOOL=dlltool
14284
14285
14286
14287
14288
14289test -z "$OBJDUMP" && OBJDUMP=objdump
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299 # Check whether --enable-shared was given.
14300if test "${enable_shared+set}" = set; then :
14301 enableval=$enable_shared; p=${PACKAGE-default}
14302 case $enableval in
14303 yes) enable_shared=yes ;;
14304 no) enable_shared=no ;;
14305 *)
14306 enable_shared=no
14307 # Look at the argument we got. We use all the common list separators.
14308 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14309 for pkg in $enableval; do
14310 IFS="$lt_save_ifs"
14311 if test "X$pkg" = "X$p"; then
14312 enable_shared=yes
14313 fi
14314 done
14315 IFS="$lt_save_ifs"
14316 ;;
14317 esac
14318else
14319 enable_shared=yes
14320fi
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330 # Check whether --enable-static was given.
14331if test "${enable_static+set}" = set; then :
14332 enableval=$enable_static; p=${PACKAGE-default}
14333 case $enableval in
14334 yes) enable_static=yes ;;
14335 no) enable_static=no ;;
14336 *)
14337 enable_static=no
14338 # Look at the argument we got. We use all the common list separators.
14339 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14340 for pkg in $enableval; do
14341 IFS="$lt_save_ifs"
14342 if test "X$pkg" = "X$p"; then
14343 enable_static=yes
14344 fi
14345 done
14346 IFS="$lt_save_ifs"
14347 ;;
14348 esac
14349else
14350 enable_static=yes
14351fi
14352
14353
14354
14355
14356
14357
14358
14359
14360
14361
14362# Check whether --with-pic was given.
14363if test "${with_pic+set}" = set; then :
cristy99bd5232011-12-07 14:38:20 +000014364 withval=$with_pic; lt_p=${PACKAGE-default}
14365 case $withval in
14366 yes|no) pic_mode=$withval ;;
14367 *)
14368 pic_mode=default
14369 # Look at the argument we got. We use all the common list separators.
14370 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14371 for lt_pkg in $withval; do
14372 IFS="$lt_save_ifs"
14373 if test "X$lt_pkg" = "X$lt_p"; then
14374 pic_mode=yes
14375 fi
14376 done
14377 IFS="$lt_save_ifs"
14378 ;;
14379 esac
cristy73bd4a52010-10-05 11:24:23 +000014380else
14381 pic_mode=default
14382fi
14383
14384
14385test -z "$pic_mode" && pic_mode=default
14386
14387
14388
14389
14390
14391
14392
14393 # Check whether --enable-fast-install was given.
14394if test "${enable_fast_install+set}" = set; then :
14395 enableval=$enable_fast_install; p=${PACKAGE-default}
14396 case $enableval in
14397 yes) enable_fast_install=yes ;;
14398 no) enable_fast_install=no ;;
14399 *)
14400 enable_fast_install=no
14401 # Look at the argument we got. We use all the common list separators.
14402 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14403 for pkg in $enableval; do
14404 IFS="$lt_save_ifs"
14405 if test "X$pkg" = "X$p"; then
14406 enable_fast_install=yes
14407 fi
14408 done
14409 IFS="$lt_save_ifs"
14410 ;;
14411 esac
14412else
14413 enable_fast_install=yes
14414fi
14415
14416
14417
14418
14419
14420
14421
14422
14423
14424
14425
14426# This can be used to rebuild libtool when needed
14427LIBTOOL_DEPS="$ltmain"
14428
14429# Always use our own libtool.
14430LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455
cristy0c60a692010-11-04 01:09:47 +000014456
cristy99bd5232011-12-07 14:38:20 +000014457
14458
14459
14460
cristy73bd4a52010-10-05 11:24:23 +000014461test -z "$LN_S" && LN_S="ln -s"
14462
14463
14464
14465
14466
14467
14468
14469
14470
14471
14472
14473
14474
14475
14476if test -n "${ZSH_VERSION+set}" ; then
14477 setopt NO_GLOB_SUBST
14478fi
14479
14480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14481$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014482if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014483 $as_echo_n "(cached) " >&6
14484else
14485 rm -f .libs 2>/dev/null
14486mkdir .libs 2>/dev/null
14487if test -d .libs; then
14488 lt_cv_objdir=.libs
14489else
14490 # MS-DOS does not allow filenames that begin with a dot.
14491 lt_cv_objdir=_libs
14492fi
14493rmdir .libs 2>/dev/null
14494fi
14495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14496$as_echo "$lt_cv_objdir" >&6; }
14497objdir=$lt_cv_objdir
14498
14499
14500
14501
14502
14503cat >>confdefs.h <<_ACEOF
14504#define LT_OBJDIR "$lt_cv_objdir/"
14505_ACEOF
14506
14507
14508
14509
cristy73bd4a52010-10-05 11:24:23 +000014510case $host_os in
14511aix3*)
14512 # AIX sometimes has problems with the GCC collect2 program. For some
14513 # reason, if we set the COLLECT_NAMES environment variable, the problems
14514 # vanish in a puff of smoke.
14515 if test "X${COLLECT_NAMES+set}" != Xset; then
14516 COLLECT_NAMES=
14517 export COLLECT_NAMES
14518 fi
14519 ;;
14520esac
14521
cristy73bd4a52010-10-05 11:24:23 +000014522# Global variables:
14523ofile=libtool
14524can_build_shared=yes
14525
14526# All known linkers require a `.a' archive for static linking (except MSVC,
14527# which needs '.lib').
14528libext=a
14529
14530with_gnu_ld="$lt_cv_prog_gnu_ld"
14531
14532old_CC="$CC"
14533old_CFLAGS="$CFLAGS"
14534
14535# Set sane defaults for various variables
14536test -z "$CC" && CC=cc
14537test -z "$LTCC" && LTCC=$CC
14538test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14539test -z "$LD" && LD=ld
14540test -z "$ac_objext" && ac_objext=o
14541
14542for cc_temp in $compiler""; do
14543 case $cc_temp in
14544 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14545 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14546 \-*) ;;
14547 *) break;;
14548 esac
14549done
cristy0c60a692010-11-04 01:09:47 +000014550cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000014551
14552
14553# Only perform the check for file, if the check method requires it
14554test -z "$MAGIC_CMD" && MAGIC_CMD=file
14555case $deplibs_check_method in
14556file_magic*)
14557 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14559$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014560if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014561 $as_echo_n "(cached) " >&6
14562else
14563 case $MAGIC_CMD in
14564[\\/*] | ?:[\\/]*)
14565 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14566 ;;
14567*)
14568 lt_save_MAGIC_CMD="$MAGIC_CMD"
14569 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14570 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14571 for ac_dir in $ac_dummy; do
14572 IFS="$lt_save_ifs"
14573 test -z "$ac_dir" && ac_dir=.
14574 if test -f $ac_dir/${ac_tool_prefix}file; then
14575 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14576 if test -n "$file_magic_test_file"; then
14577 case $deplibs_check_method in
14578 "file_magic "*)
14579 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14580 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14581 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14582 $EGREP "$file_magic_regex" > /dev/null; then
14583 :
14584 else
14585 cat <<_LT_EOF 1>&2
14586
14587*** Warning: the command libtool uses to detect shared libraries,
14588*** $file_magic_cmd, produces output that libtool cannot recognize.
14589*** The result is that libtool may fail to recognize shared libraries
14590*** as such. This will affect the creation of libtool libraries that
14591*** depend on shared libraries, but programs linked with such libtool
14592*** libraries will work regardless of this problem. Nevertheless, you
14593*** may want to report the problem to your system manager and/or to
14594*** bug-libtool@gnu.org
14595
14596_LT_EOF
14597 fi ;;
14598 esac
14599 fi
14600 break
14601 fi
14602 done
14603 IFS="$lt_save_ifs"
14604 MAGIC_CMD="$lt_save_MAGIC_CMD"
14605 ;;
14606esac
14607fi
14608
14609MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14610if test -n "$MAGIC_CMD"; then
14611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14612$as_echo "$MAGIC_CMD" >&6; }
14613else
14614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14615$as_echo "no" >&6; }
14616fi
14617
14618
14619
14620
14621
14622if test -z "$lt_cv_path_MAGIC_CMD"; then
14623 if test -n "$ac_tool_prefix"; then
14624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14625$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014626if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014627 $as_echo_n "(cached) " >&6
14628else
14629 case $MAGIC_CMD in
14630[\\/*] | ?:[\\/]*)
14631 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14632 ;;
14633*)
14634 lt_save_MAGIC_CMD="$MAGIC_CMD"
14635 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14636 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14637 for ac_dir in $ac_dummy; do
14638 IFS="$lt_save_ifs"
14639 test -z "$ac_dir" && ac_dir=.
14640 if test -f $ac_dir/file; then
14641 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14642 if test -n "$file_magic_test_file"; then
14643 case $deplibs_check_method in
14644 "file_magic "*)
14645 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14646 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14647 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14648 $EGREP "$file_magic_regex" > /dev/null; then
14649 :
14650 else
14651 cat <<_LT_EOF 1>&2
14652
14653*** Warning: the command libtool uses to detect shared libraries,
14654*** $file_magic_cmd, produces output that libtool cannot recognize.
14655*** The result is that libtool may fail to recognize shared libraries
14656*** as such. This will affect the creation of libtool libraries that
14657*** depend on shared libraries, but programs linked with such libtool
14658*** libraries will work regardless of this problem. Nevertheless, you
14659*** may want to report the problem to your system manager and/or to
14660*** bug-libtool@gnu.org
14661
14662_LT_EOF
14663 fi ;;
14664 esac
14665 fi
14666 break
14667 fi
14668 done
14669 IFS="$lt_save_ifs"
14670 MAGIC_CMD="$lt_save_MAGIC_CMD"
14671 ;;
14672esac
14673fi
14674
14675MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14676if test -n "$MAGIC_CMD"; then
14677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14678$as_echo "$MAGIC_CMD" >&6; }
14679else
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14681$as_echo "no" >&6; }
14682fi
14683
14684
14685 else
14686 MAGIC_CMD=:
14687 fi
14688fi
14689
14690 fi
14691 ;;
14692esac
14693
14694# Use C for the default configuration in the libtool script
14695
14696lt_save_CC="$CC"
14697ac_ext=c
14698ac_cpp='$CPP $CPPFLAGS'
14699ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14700ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14701ac_compiler_gnu=$ac_cv_c_compiler_gnu
14702
14703
14704# Source file extension for C test sources.
14705ac_ext=c
14706
14707# Object file extension for compiled C test sources.
14708objext=o
14709objext=$objext
14710
14711# Code to be used in simple compile tests
14712lt_simple_compile_test_code="int some_variable = 0;"
14713
14714# Code to be used in simple link tests
14715lt_simple_link_test_code='int main(){return(0);}'
14716
14717
14718
14719
14720
14721
14722
14723# If no C compiler was specified, use CC.
14724LTCC=${LTCC-"$CC"}
14725
14726# If no C compiler flags were specified, use CFLAGS.
14727LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14728
14729# Allow CC to be a program name with arguments.
14730compiler=$CC
14731
14732# Save the default compiler, since it gets overwritten when the other
14733# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14734compiler_DEFAULT=$CC
14735
14736# save warnings/boilerplate of simple test code
14737ac_outfile=conftest.$ac_objext
14738echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14739eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14740_lt_compiler_boilerplate=`cat conftest.err`
14741$RM conftest*
14742
14743ac_outfile=conftest.$ac_objext
14744echo "$lt_simple_link_test_code" >conftest.$ac_ext
14745eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14746_lt_linker_boilerplate=`cat conftest.err`
14747$RM -r conftest*
14748
14749
14750## CAVEAT EMPTOR:
14751## There is no encapsulation within the following macros, do not change
14752## the running order or otherwise move them around unless you know exactly
14753## what you are doing...
14754if test -n "$compiler"; then
14755
14756lt_prog_compiler_no_builtin_flag=
14757
14758if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000014759 case $cc_basename in
14760 nvcc*)
14761 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14762 *)
14763 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14764 esac
cristy73bd4a52010-10-05 11:24:23 +000014765
14766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14767$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014768if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014769 $as_echo_n "(cached) " >&6
14770else
14771 lt_cv_prog_compiler_rtti_exceptions=no
14772 ac_outfile=conftest.$ac_objext
14773 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14774 lt_compiler_flag="-fno-rtti -fno-exceptions"
14775 # Insert the option either (1) after the last *FLAGS variable, or
14776 # (2) before a word containing "conftest.", or (3) at the end.
14777 # Note that $ac_compile itself does not contain backslashes and begins
14778 # with a dollar sign (not a hyphen), so the echo should work correctly.
14779 # The option is referenced via a variable to avoid confusing sed.
14780 lt_compile=`echo "$ac_compile" | $SED \
14781 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14782 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14783 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014784 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014785 (eval "$lt_compile" 2>conftest.err)
14786 ac_status=$?
14787 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014789 if (exit $ac_status) && test -s "$ac_outfile"; then
14790 # The compiler can only warn and ignore the option if not recognized
14791 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014792 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014793 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14794 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14795 lt_cv_prog_compiler_rtti_exceptions=yes
14796 fi
14797 fi
14798 $RM conftest*
14799
14800fi
14801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14802$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14803
14804if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14805 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14806else
14807 :
14808fi
14809
14810fi
14811
14812
14813
14814
14815
14816
14817 lt_prog_compiler_wl=
14818lt_prog_compiler_pic=
14819lt_prog_compiler_static=
14820
cristy73bd4a52010-10-05 11:24:23 +000014821
14822 if test "$GCC" = yes; then
14823 lt_prog_compiler_wl='-Wl,'
14824 lt_prog_compiler_static='-static'
14825
14826 case $host_os in
14827 aix*)
14828 # All AIX code is PIC.
14829 if test "$host_cpu" = ia64; then
14830 # AIX 5 now supports IA64 processor
14831 lt_prog_compiler_static='-Bstatic'
14832 fi
14833 ;;
14834
14835 amigaos*)
14836 case $host_cpu in
14837 powerpc)
14838 # see comment about AmigaOS4 .so support
14839 lt_prog_compiler_pic='-fPIC'
14840 ;;
14841 m68k)
14842 # FIXME: we need at least 68020 code to build shared libraries, but
14843 # adding the `-m68020' flag to GCC prevents building anything better,
14844 # like `-m68040'.
14845 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14846 ;;
14847 esac
14848 ;;
14849
14850 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14851 # PIC is the default for these OSes.
14852 ;;
14853
14854 mingw* | cygwin* | pw32* | os2* | cegcc*)
14855 # This hack is so that the source file can tell whether it is being
14856 # built for inclusion in a dll (and should export symbols for example).
14857 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14858 # (--disable-auto-import) libraries
14859 lt_prog_compiler_pic='-DDLL_EXPORT'
14860 ;;
14861
14862 darwin* | rhapsody*)
14863 # PIC is the default on this platform
14864 # Common symbols not allowed in MH_DYLIB files
14865 lt_prog_compiler_pic='-fno-common'
14866 ;;
14867
cristy0c60a692010-11-04 01:09:47 +000014868 haiku*)
14869 # PIC is the default for Haiku.
14870 # The "-static" flag exists, but is broken.
14871 lt_prog_compiler_static=
14872 ;;
14873
cristy73bd4a52010-10-05 11:24:23 +000014874 hpux*)
14875 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14876 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14877 # sets the default TLS model and affects inlining.
14878 case $host_cpu in
14879 hppa*64*)
14880 # +Z the default
14881 ;;
14882 *)
14883 lt_prog_compiler_pic='-fPIC'
14884 ;;
14885 esac
14886 ;;
14887
14888 interix[3-9]*)
14889 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14890 # Instead, we relocate shared libraries at runtime.
14891 ;;
14892
14893 msdosdjgpp*)
14894 # Just because we use GCC doesn't mean we suddenly get shared libraries
14895 # on systems that don't support them.
14896 lt_prog_compiler_can_build_shared=no
14897 enable_shared=no
14898 ;;
14899
14900 *nto* | *qnx*)
14901 # QNX uses GNU C++, but need to define -shared option too, otherwise
14902 # it will coredump.
14903 lt_prog_compiler_pic='-fPIC -shared'
14904 ;;
14905
14906 sysv4*MP*)
14907 if test -d /usr/nec; then
14908 lt_prog_compiler_pic=-Kconform_pic
14909 fi
14910 ;;
14911
14912 *)
14913 lt_prog_compiler_pic='-fPIC'
14914 ;;
14915 esac
cristy0c60a692010-11-04 01:09:47 +000014916
14917 case $cc_basename in
14918 nvcc*) # Cuda Compiler Driver 2.2
14919 lt_prog_compiler_wl='-Xlinker '
cristy99bd5232011-12-07 14:38:20 +000014920 if test -n "$lt_prog_compiler_pic"; then
14921 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14922 fi
cristy0c60a692010-11-04 01:09:47 +000014923 ;;
14924 esac
cristy73bd4a52010-10-05 11:24:23 +000014925 else
14926 # PORTME Check for flag to pass linker flags through the system compiler.
14927 case $host_os in
14928 aix*)
14929 lt_prog_compiler_wl='-Wl,'
14930 if test "$host_cpu" = ia64; then
14931 # AIX 5 now supports IA64 processor
14932 lt_prog_compiler_static='-Bstatic'
14933 else
14934 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14935 fi
14936 ;;
14937
14938 mingw* | cygwin* | pw32* | os2* | cegcc*)
14939 # This hack is so that the source file can tell whether it is being
14940 # built for inclusion in a dll (and should export symbols for example).
14941 lt_prog_compiler_pic='-DDLL_EXPORT'
14942 ;;
14943
14944 hpux9* | hpux10* | hpux11*)
14945 lt_prog_compiler_wl='-Wl,'
14946 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14947 # not for PA HP-UX.
14948 case $host_cpu in
14949 hppa*64*|ia64*)
14950 # +Z the default
14951 ;;
14952 *)
14953 lt_prog_compiler_pic='+Z'
14954 ;;
14955 esac
14956 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14957 lt_prog_compiler_static='${wl}-a ${wl}archive'
14958 ;;
14959
14960 irix5* | irix6* | nonstopux*)
14961 lt_prog_compiler_wl='-Wl,'
14962 # PIC (with -KPIC) is the default.
14963 lt_prog_compiler_static='-non_shared'
14964 ;;
14965
cristy0c60a692010-11-04 01:09:47 +000014966 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014967 case $cc_basename in
14968 # old Intel for x86_64 which still supported -KPIC.
14969 ecc*)
14970 lt_prog_compiler_wl='-Wl,'
14971 lt_prog_compiler_pic='-KPIC'
14972 lt_prog_compiler_static='-static'
14973 ;;
14974 # icc used to be incompatible with GCC.
14975 # ICC 10 doesn't accept -KPIC any more.
14976 icc* | ifort*)
14977 lt_prog_compiler_wl='-Wl,'
14978 lt_prog_compiler_pic='-fPIC'
14979 lt_prog_compiler_static='-static'
14980 ;;
14981 # Lahey Fortran 8.1.
14982 lf95*)
14983 lt_prog_compiler_wl='-Wl,'
14984 lt_prog_compiler_pic='--shared'
14985 lt_prog_compiler_static='--static'
14986 ;;
cristyda16f162011-02-19 23:52:17 +000014987 nagfor*)
14988 # NAG Fortran compiler
14989 lt_prog_compiler_wl='-Wl,-Wl,,'
14990 lt_prog_compiler_pic='-PIC'
14991 lt_prog_compiler_static='-Bstatic'
14992 ;;
cristy0c60a692010-11-04 01:09:47 +000014993 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000014994 # Portland Group compilers (*not* the Pentium gcc compiler,
14995 # which looks to be a dead project)
14996 lt_prog_compiler_wl='-Wl,'
14997 lt_prog_compiler_pic='-fpic'
14998 lt_prog_compiler_static='-Bstatic'
14999 ;;
15000 ccc*)
15001 lt_prog_compiler_wl='-Wl,'
15002 # All Alpha code is PIC.
15003 lt_prog_compiler_static='-non_shared'
15004 ;;
cristy0c60a692010-11-04 01:09:47 +000015005 xl* | bgxl* | bgf* | mpixl*)
15006 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000015007 lt_prog_compiler_wl='-Wl,'
15008 lt_prog_compiler_pic='-qpic'
15009 lt_prog_compiler_static='-qstaticlink'
15010 ;;
15011 *)
15012 case `$CC -V 2>&1 | sed 5q` in
cristy99bd5232011-12-07 14:38:20 +000015013 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
cristy0c60a692010-11-04 01:09:47 +000015014 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15015 lt_prog_compiler_pic='-KPIC'
15016 lt_prog_compiler_static='-Bstatic'
15017 lt_prog_compiler_wl=''
15018 ;;
cristy99bd5232011-12-07 14:38:20 +000015019 *Sun\ F* | *Sun*Fortran*)
15020 lt_prog_compiler_pic='-KPIC'
15021 lt_prog_compiler_static='-Bstatic'
15022 lt_prog_compiler_wl='-Qoption ld '
15023 ;;
cristy73bd4a52010-10-05 11:24:23 +000015024 *Sun\ C*)
15025 # Sun C 5.9
15026 lt_prog_compiler_pic='-KPIC'
15027 lt_prog_compiler_static='-Bstatic'
15028 lt_prog_compiler_wl='-Wl,'
15029 ;;
cristy99bd5232011-12-07 14:38:20 +000015030 *Intel*\ [CF]*Compiler*)
15031 lt_prog_compiler_wl='-Wl,'
15032 lt_prog_compiler_pic='-fPIC'
15033 lt_prog_compiler_static='-static'
15034 ;;
15035 *Portland\ Group*)
15036 lt_prog_compiler_wl='-Wl,'
15037 lt_prog_compiler_pic='-fpic'
15038 lt_prog_compiler_static='-Bstatic'
15039 ;;
cristy73bd4a52010-10-05 11:24:23 +000015040 esac
15041 ;;
15042 esac
15043 ;;
15044
15045 newsos6)
15046 lt_prog_compiler_pic='-KPIC'
15047 lt_prog_compiler_static='-Bstatic'
15048 ;;
15049
15050 *nto* | *qnx*)
15051 # QNX uses GNU C++, but need to define -shared option too, otherwise
15052 # it will coredump.
15053 lt_prog_compiler_pic='-fPIC -shared'
15054 ;;
15055
15056 osf3* | osf4* | osf5*)
15057 lt_prog_compiler_wl='-Wl,'
15058 # All OSF/1 code is PIC.
15059 lt_prog_compiler_static='-non_shared'
15060 ;;
15061
15062 rdos*)
15063 lt_prog_compiler_static='-non_shared'
15064 ;;
15065
15066 solaris*)
15067 lt_prog_compiler_pic='-KPIC'
15068 lt_prog_compiler_static='-Bstatic'
15069 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000015070 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000015071 lt_prog_compiler_wl='-Qoption ld ';;
15072 *)
15073 lt_prog_compiler_wl='-Wl,';;
15074 esac
15075 ;;
15076
15077 sunos4*)
15078 lt_prog_compiler_wl='-Qoption ld '
15079 lt_prog_compiler_pic='-PIC'
15080 lt_prog_compiler_static='-Bstatic'
15081 ;;
15082
15083 sysv4 | sysv4.2uw2* | sysv4.3*)
15084 lt_prog_compiler_wl='-Wl,'
15085 lt_prog_compiler_pic='-KPIC'
15086 lt_prog_compiler_static='-Bstatic'
15087 ;;
15088
15089 sysv4*MP*)
15090 if test -d /usr/nec ;then
15091 lt_prog_compiler_pic='-Kconform_pic'
15092 lt_prog_compiler_static='-Bstatic'
15093 fi
15094 ;;
15095
15096 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15097 lt_prog_compiler_wl='-Wl,'
15098 lt_prog_compiler_pic='-KPIC'
15099 lt_prog_compiler_static='-Bstatic'
15100 ;;
15101
15102 unicos*)
15103 lt_prog_compiler_wl='-Wl,'
15104 lt_prog_compiler_can_build_shared=no
15105 ;;
15106
15107 uts4*)
15108 lt_prog_compiler_pic='-pic'
15109 lt_prog_compiler_static='-Bstatic'
15110 ;;
15111
15112 *)
15113 lt_prog_compiler_can_build_shared=no
15114 ;;
15115 esac
15116 fi
15117
15118case $host_os in
15119 # For platforms which do not support PIC, -DPIC is meaningless:
15120 *djgpp*)
15121 lt_prog_compiler_pic=
15122 ;;
15123 *)
15124 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15125 ;;
15126esac
cristy73bd4a52010-10-05 11:24:23 +000015127
cristyda16f162011-02-19 23:52:17 +000015128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15129$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15130if ${lt_cv_prog_compiler_pic+:} false; then :
15131 $as_echo_n "(cached) " >&6
15132else
15133 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
15134fi
15135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
15136$as_echo "$lt_cv_prog_compiler_pic" >&6; }
15137lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000015138
15139#
15140# Check to make sure the PIC flag actually works.
15141#
15142if test -n "$lt_prog_compiler_pic"; then
15143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15144$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015145if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015146 $as_echo_n "(cached) " >&6
15147else
15148 lt_cv_prog_compiler_pic_works=no
15149 ac_outfile=conftest.$ac_objext
15150 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15151 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15152 # Insert the option either (1) after the last *FLAGS variable, or
15153 # (2) before a word containing "conftest.", or (3) at the end.
15154 # Note that $ac_compile itself does not contain backslashes and begins
15155 # with a dollar sign (not a hyphen), so the echo should work correctly.
15156 # The option is referenced via a variable to avoid confusing sed.
15157 lt_compile=`echo "$ac_compile" | $SED \
15158 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15159 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15160 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000015161 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000015162 (eval "$lt_compile" 2>conftest.err)
15163 ac_status=$?
15164 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000015165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000015166 if (exit $ac_status) && test -s "$ac_outfile"; then
15167 # The compiler can only warn and ignore the option if not recognized
15168 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000015169 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000015170 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15171 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15172 lt_cv_prog_compiler_pic_works=yes
15173 fi
15174 fi
15175 $RM conftest*
15176
15177fi
15178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15179$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15180
15181if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15182 case $lt_prog_compiler_pic in
15183 "" | " "*) ;;
15184 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15185 esac
15186else
15187 lt_prog_compiler_pic=
15188 lt_prog_compiler_can_build_shared=no
15189fi
15190
15191fi
15192
15193
15194
15195
15196
15197
cristyda16f162011-02-19 23:52:17 +000015198
15199
15200
15201
15202
cristy73bd4a52010-10-05 11:24:23 +000015203#
15204# Check to make sure the static flag actually works.
15205#
15206wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15208$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015209if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015210 $as_echo_n "(cached) " >&6
15211else
15212 lt_cv_prog_compiler_static_works=no
15213 save_LDFLAGS="$LDFLAGS"
15214 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15215 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15216 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15217 # The linker can only warn and ignore the option if not recognized
15218 # So say no if there are warnings
15219 if test -s conftest.err; then
15220 # Append any errors to the config.log.
15221 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000015222 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000015223 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15224 if diff conftest.exp conftest.er2 >/dev/null; then
15225 lt_cv_prog_compiler_static_works=yes
15226 fi
15227 else
15228 lt_cv_prog_compiler_static_works=yes
15229 fi
15230 fi
15231 $RM -r conftest*
15232 LDFLAGS="$save_LDFLAGS"
15233
15234fi
15235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15236$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15237
15238if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15239 :
15240else
15241 lt_prog_compiler_static=
15242fi
15243
15244
15245
15246
15247
15248
15249
15250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15251$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015252if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015253 $as_echo_n "(cached) " >&6
15254else
15255 lt_cv_prog_compiler_c_o=no
15256 $RM -r conftest 2>/dev/null
15257 mkdir conftest
15258 cd conftest
15259 mkdir out
15260 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15261
15262 lt_compiler_flag="-o out/conftest2.$ac_objext"
15263 # Insert the option either (1) after the last *FLAGS variable, or
15264 # (2) before a word containing "conftest.", or (3) at the end.
15265 # Note that $ac_compile itself does not contain backslashes and begins
15266 # with a dollar sign (not a hyphen), so the echo should work correctly.
15267 lt_compile=`echo "$ac_compile" | $SED \
15268 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15269 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15270 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000015271 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000015272 (eval "$lt_compile" 2>out/conftest.err)
15273 ac_status=$?
15274 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000015275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000015276 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15277 then
15278 # The compiler can only warn and ignore the option if not recognized
15279 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000015280 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000015281 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15282 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15283 lt_cv_prog_compiler_c_o=yes
15284 fi
15285 fi
15286 chmod u+w . 2>&5
15287 $RM conftest*
15288 # SGI C++ compiler will create directory out/ii_files/ for
15289 # template instantiation
15290 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15291 $RM out/* && rmdir out
15292 cd ..
15293 $RM -r conftest
15294 $RM conftest*
15295
15296fi
15297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15298$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15299
15300
15301
15302
15303
15304
15305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15306$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015307if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015308 $as_echo_n "(cached) " >&6
15309else
15310 lt_cv_prog_compiler_c_o=no
15311 $RM -r conftest 2>/dev/null
15312 mkdir conftest
15313 cd conftest
15314 mkdir out
15315 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15316
15317 lt_compiler_flag="-o out/conftest2.$ac_objext"
15318 # Insert the option either (1) after the last *FLAGS variable, or
15319 # (2) before a word containing "conftest.", or (3) at the end.
15320 # Note that $ac_compile itself does not contain backslashes and begins
15321 # with a dollar sign (not a hyphen), so the echo should work correctly.
15322 lt_compile=`echo "$ac_compile" | $SED \
15323 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15324 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15325 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000015326 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000015327 (eval "$lt_compile" 2>out/conftest.err)
15328 ac_status=$?
15329 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000015330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000015331 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15332 then
15333 # The compiler can only warn and ignore the option if not recognized
15334 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000015335 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000015336 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15337 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15338 lt_cv_prog_compiler_c_o=yes
15339 fi
15340 fi
15341 chmod u+w . 2>&5
15342 $RM conftest*
15343 # SGI C++ compiler will create directory out/ii_files/ for
15344 # template instantiation
15345 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15346 $RM out/* && rmdir out
15347 cd ..
15348 $RM -r conftest
15349 $RM conftest*
15350
15351fi
15352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15353$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15354
15355
15356
15357
15358hard_links="nottested"
15359if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15360 # do not overwrite the value of need_locks provided by the user
15361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15362$as_echo_n "checking if we can lock with hard links... " >&6; }
15363 hard_links=yes
15364 $RM conftest*
15365 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15366 touch conftest.a
15367 ln conftest.a conftest.b 2>&5 || hard_links=no
15368 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15370$as_echo "$hard_links" >&6; }
15371 if test "$hard_links" = no; then
15372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15373$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15374 need_locks=warn
15375 fi
15376else
15377 need_locks=no
15378fi
15379
15380
15381
15382
15383
15384
15385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15386$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15387
15388 runpath_var=
15389 allow_undefined_flag=
15390 always_export_symbols=no
15391 archive_cmds=
15392 archive_expsym_cmds=
15393 compiler_needs_object=no
15394 enable_shared_with_static_runtimes=no
15395 export_dynamic_flag_spec=
15396 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15397 hardcode_automatic=no
15398 hardcode_direct=no
15399 hardcode_direct_absolute=no
15400 hardcode_libdir_flag_spec=
cristy73bd4a52010-10-05 11:24:23 +000015401 hardcode_libdir_separator=
15402 hardcode_minus_L=no
15403 hardcode_shlibpath_var=unsupported
15404 inherit_rpath=no
15405 link_all_deplibs=unknown
15406 module_cmds=
15407 module_expsym_cmds=
15408 old_archive_from_new_cmds=
15409 old_archive_from_expsyms_cmds=
15410 thread_safe_flag_spec=
15411 whole_archive_flag_spec=
15412 # include_expsyms should be a list of space-separated symbols to be *always*
15413 # included in the symbol list
15414 include_expsyms=
15415 # exclude_expsyms can be an extended regexp of symbols to exclude
15416 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15417 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15418 # as well as any symbol that contains `d'.
15419 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15420 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15421 # platforms (ab)use it in PIC code, but their linkers get confused if
15422 # the symbol is explicitly referenced. Since portable code cannot
15423 # rely on this symbol name, it's probably fine to never include it in
15424 # preloaded symbol tables.
15425 # Exclude shared library initialization/finalization symbols.
15426 extract_expsyms_cmds=
15427
15428 case $host_os in
15429 cygwin* | mingw* | pw32* | cegcc*)
15430 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15431 # When not using gcc, we currently assume that we are using
15432 # Microsoft Visual C++.
15433 if test "$GCC" != yes; then
15434 with_gnu_ld=no
15435 fi
15436 ;;
15437 interix*)
15438 # we just hope/assume this is gcc and not c89 (= MSVC++)
15439 with_gnu_ld=yes
15440 ;;
15441 openbsd*)
15442 with_gnu_ld=no
15443 ;;
15444 esac
15445
15446 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000015447
15448 # On some targets, GNU ld is compatible enough with the native linker
15449 # that we're better off using the native interface for both.
15450 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000015451 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000015452 case $host_os in
15453 aix*)
15454 # The AIX port of GNU ld has always aspired to compatibility
15455 # with the native linker. However, as the warning in the GNU ld
15456 # block says, versions before 2.19.5* couldn't really create working
15457 # shared libraries, regardless of the interface used.
15458 case `$LD -v 2>&1` in
15459 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15460 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15461 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15462 *)
15463 lt_use_gnu_ld_interface=yes
15464 ;;
15465 esac
15466 ;;
15467 *)
15468 lt_use_gnu_ld_interface=yes
15469 ;;
15470 esac
15471 fi
15472
15473 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000015474 # If archive_cmds runs LD, not CC, wlarc should be empty
15475 wlarc='${wl}'
15476
15477 # Set some defaults for GNU ld with shared library support. These
15478 # are reset later if shared libraries are not supported. Putting them
15479 # here allows them to be overridden if necessary.
15480 runpath_var=LD_RUN_PATH
15481 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15482 export_dynamic_flag_spec='${wl}--export-dynamic'
15483 # ancient GNU ld didn't support --whole-archive et. al.
15484 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15485 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15486 else
15487 whole_archive_flag_spec=
15488 fi
15489 supports_anon_versioning=no
15490 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000015491 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000015492 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15493 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15494 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15495 *\ 2.11.*) ;; # other 2.11 versions
15496 *) supports_anon_versioning=yes ;;
15497 esac
15498
15499 # See if GNU ld supports shared libraries.
15500 case $host_os in
15501 aix[3-9]*)
15502 # On AIX/PPC, the GNU linker is very broken
15503 if test "$host_cpu" != ia64; then
15504 ld_shlibs=no
15505 cat <<_LT_EOF 1>&2
15506
cristy0c60a692010-11-04 01:09:47 +000015507*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000015508*** to be unable to reliably create shared libraries on AIX.
15509*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000015510*** really care for shared libraries, you may want to install binutils
15511*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15512*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000015513
15514_LT_EOF
15515 fi
15516 ;;
15517
15518 amigaos*)
15519 case $host_cpu in
15520 powerpc)
15521 # see comment about AmigaOS4 .so support
15522 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15523 archive_expsym_cmds=''
15524 ;;
15525 m68k)
15526 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)'
15527 hardcode_libdir_flag_spec='-L$libdir'
15528 hardcode_minus_L=yes
15529 ;;
15530 esac
15531 ;;
15532
15533 beos*)
15534 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15535 allow_undefined_flag=unsupported
15536 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15537 # support --undefined. This deserves some investigation. FIXME
15538 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15539 else
15540 ld_shlibs=no
15541 fi
15542 ;;
15543
15544 cygwin* | mingw* | pw32* | cegcc*)
15545 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15546 # as there is no search path for DLLs.
15547 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000015548 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000015549 allow_undefined_flag=unsupported
15550 always_export_symbols=no
15551 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000015552 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'
15553 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 +000015554
15555 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15556 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15557 # If the export-symbols file already is a .def file (1st line
15558 # is EXPORTS), use it as is; otherwise, prepend...
15559 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15560 cp $export_symbols $output_objdir/$soname.def;
15561 else
15562 echo EXPORTS > $output_objdir/$soname.def;
15563 cat $export_symbols >> $output_objdir/$soname.def;
15564 fi~
15565 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15566 else
15567 ld_shlibs=no
15568 fi
15569 ;;
15570
cristy0c60a692010-11-04 01:09:47 +000015571 haiku*)
15572 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15573 link_all_deplibs=yes
15574 ;;
15575
cristy73bd4a52010-10-05 11:24:23 +000015576 interix[3-9]*)
15577 hardcode_direct=no
15578 hardcode_shlibpath_var=no
15579 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15580 export_dynamic_flag_spec='${wl}-E'
15581 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15582 # Instead, shared libraries are loaded at an image base (0x10000000 by
15583 # default) and relocated if they conflict, which is a slow very memory
15584 # consuming and fragmenting process. To avoid this, we pick a random,
15585 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15586 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15587 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15588 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'
15589 ;;
15590
cristy0c60a692010-11-04 01:09:47 +000015591 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000015592 tmp_diet=no
15593 if test "$host_os" = linux-dietlibc; then
15594 case $cc_basename in
15595 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15596 esac
15597 fi
15598 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15599 && test "$tmp_diet" = no
15600 then
cristyda16f162011-02-19 23:52:17 +000015601 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000015602 tmp_sharedflag='-shared'
15603 case $cc_basename,$host_cpu in
15604 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000015605 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 +000015606 tmp_addflag=' $pic_flag'
15607 ;;
cristy0c60a692010-11-04 01:09:47 +000015608 pgf77* | pgf90* | pgf95* | pgfortran*)
15609 # Portland Group f77 and f90 compilers
15610 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 +000015611 tmp_addflag=' $pic_flag -Mnomain' ;;
15612 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15613 tmp_addflag=' -i_dynamic' ;;
15614 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15615 tmp_addflag=' -i_dynamic -nofor_main' ;;
15616 ifc* | ifort*) # Intel Fortran compiler
15617 tmp_addflag=' -nofor_main' ;;
15618 lf95*) # Lahey Fortran 8.1
15619 whole_archive_flag_spec=
15620 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000015621 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000015622 tmp_sharedflag='-qmkshrobj'
15623 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000015624 nvcc*) # Cuda Compiler Driver 2.2
15625 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'
15626 compiler_needs_object=yes
15627 ;;
cristy73bd4a52010-10-05 11:24:23 +000015628 esac
15629 case `$CC -V 2>&1 | sed 5q` in
15630 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000015631 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 +000015632 compiler_needs_object=yes
15633 tmp_sharedflag='-G' ;;
15634 *Sun\ F*) # Sun Fortran 8.3
15635 tmp_sharedflag='-G' ;;
15636 esac
15637 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15638
15639 if test "x$supports_anon_versioning" = xyes; then
15640 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15641 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15642 echo "local: *; };" >> $output_objdir/$libname.ver~
15643 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15644 fi
15645
15646 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000015647 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000015648 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15649 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
cristy99bd5232011-12-07 14:38:20 +000015650 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cristy0c60a692010-11-04 01:09:47 +000015651 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015652 if test "x$supports_anon_versioning" = xyes; then
15653 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15654 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15655 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000015656 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015657 fi
15658 ;;
15659 esac
15660 else
15661 ld_shlibs=no
15662 fi
15663 ;;
15664
15665 netbsd*)
15666 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15667 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15668 wlarc=
15669 else
cristyda16f162011-02-19 23:52:17 +000015670 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15671 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 +000015672 fi
15673 ;;
15674
15675 solaris*)
15676 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15677 ld_shlibs=no
15678 cat <<_LT_EOF 1>&2
15679
15680*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15681*** create shared libraries on Solaris systems. Therefore, libtool
15682*** is disabling shared libraries support. We urge you to upgrade GNU
15683*** binutils to release 2.9.1 or newer. Another option is to modify
15684*** your PATH or compiler configuration so that the native linker is
15685*** used, and then restart.
15686
15687_LT_EOF
15688 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000015689 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15690 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 +000015691 else
15692 ld_shlibs=no
15693 fi
15694 ;;
15695
15696 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15697 case `$LD -v 2>&1` in
15698 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15699 ld_shlibs=no
15700 cat <<_LT_EOF 1>&2
15701
15702*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15703*** reliably create shared libraries on SCO systems. Therefore, libtool
15704*** is disabling shared libraries support. We urge you to upgrade GNU
15705*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15706*** your PATH or compiler configuration so that the native linker is
15707*** used, and then restart.
15708
15709_LT_EOF
15710 ;;
15711 *)
15712 # For security reasons, it is highly recommended that you always
15713 # use absolute paths for naming shared libraries, and exclude the
15714 # DT_RUNPATH tag from executables and libraries. But doing so
15715 # requires that you compile everything twice, which is a pain.
15716 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15717 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15718 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15719 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15720 else
15721 ld_shlibs=no
15722 fi
15723 ;;
15724 esac
15725 ;;
15726
15727 sunos4*)
15728 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15729 wlarc=
15730 hardcode_direct=yes
15731 hardcode_shlibpath_var=no
15732 ;;
15733
15734 *)
15735 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000015736 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15737 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 +000015738 else
15739 ld_shlibs=no
15740 fi
15741 ;;
15742 esac
15743
15744 if test "$ld_shlibs" = no; then
15745 runpath_var=
15746 hardcode_libdir_flag_spec=
15747 export_dynamic_flag_spec=
15748 whole_archive_flag_spec=
15749 fi
15750 else
15751 # PORTME fill in a description of your system's linker (not GNU ld)
15752 case $host_os in
15753 aix3*)
15754 allow_undefined_flag=unsupported
15755 always_export_symbols=yes
15756 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'
15757 # Note: this linker hardcodes the directories in LIBPATH if there
15758 # are no directories specified by -L.
15759 hardcode_minus_L=yes
15760 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15761 # Neither direct hardcoding nor static linking is supported with a
15762 # broken collect2.
15763 hardcode_direct=unsupported
15764 fi
15765 ;;
15766
15767 aix[4-9]*)
15768 if test "$host_cpu" = ia64; then
15769 # On IA64, the linker does run time linking by default, so we don't
15770 # have to do anything special.
15771 aix_use_runtimelinking=no
15772 exp_sym_flag='-Bexport'
15773 no_entry_flag=""
15774 else
15775 # If we're using GNU nm, then we don't want the "-C" option.
15776 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000015777 # Also, AIX nm treats weak defined symbols like other global
15778 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000015779 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000015780 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 +000015781 else
15782 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'
15783 fi
15784 aix_use_runtimelinking=no
15785
15786 # Test if we are trying to use run time linking or normal
15787 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15788 # need to do runtime linking.
15789 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15790 for ld_flag in $LDFLAGS; do
15791 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15792 aix_use_runtimelinking=yes
15793 break
15794 fi
15795 done
15796 ;;
15797 esac
15798
15799 exp_sym_flag='-bexport'
15800 no_entry_flag='-bnoentry'
15801 fi
15802
15803 # When large executables or shared objects are built, AIX ld can
15804 # have problems creating the table of contents. If linking a library
15805 # or program results in "error TOC overflow" add -mminimal-toc to
15806 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15807 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15808
15809 archive_cmds=''
15810 hardcode_direct=yes
15811 hardcode_direct_absolute=yes
15812 hardcode_libdir_separator=':'
15813 link_all_deplibs=yes
15814 file_list_spec='${wl}-f,'
15815
15816 if test "$GCC" = yes; then
15817 case $host_os in aix4.[012]|aix4.[012].*)
15818 # We only want to do this on AIX 4.2 and lower, the check
15819 # below for broken collect2 doesn't work under 4.3+
15820 collect2name=`${CC} -print-prog-name=collect2`
15821 if test -f "$collect2name" &&
15822 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15823 then
15824 # We have reworked collect2
15825 :
15826 else
15827 # We have old collect2
15828 hardcode_direct=unsupported
15829 # It fails to find uninstalled libraries when the uninstalled
15830 # path is not listed in the libpath. Setting hardcode_minus_L
15831 # to unsupported forces relinking
15832 hardcode_minus_L=yes
15833 hardcode_libdir_flag_spec='-L$libdir'
15834 hardcode_libdir_separator=
15835 fi
15836 ;;
15837 esac
15838 shared_flag='-shared'
15839 if test "$aix_use_runtimelinking" = yes; then
15840 shared_flag="$shared_flag "'${wl}-G'
15841 fi
15842 else
15843 # not using gcc
15844 if test "$host_cpu" = ia64; then
15845 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15846 # chokes on -Wl,-G. The following line is correct:
15847 shared_flag='-G'
15848 else
15849 if test "$aix_use_runtimelinking" = yes; then
15850 shared_flag='${wl}-G'
15851 else
15852 shared_flag='${wl}-bM:SRE'
15853 fi
15854 fi
15855 fi
15856
15857 export_dynamic_flag_spec='${wl}-bexpall'
15858 # It seems that -bexpall does not export symbols beginning with
15859 # underscore (_), so it is better to generate a list of symbols to export.
15860 always_export_symbols=yes
15861 if test "$aix_use_runtimelinking" = yes; then
15862 # Warning - without using the other runtime loading flags (-brtl),
15863 # -berok will link without error, but may produce a broken library.
15864 allow_undefined_flag='-berok'
15865 # Determine the default libpath from the value encoded in an
15866 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015867 if test "${lt_cv_aix_libpath+set}" = set; then
15868 aix_libpath=$lt_cv_aix_libpath
15869else
15870 if ${lt_cv_aix_libpath_+:} false; then :
15871 $as_echo_n "(cached) " >&6
15872else
15873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015874/* end confdefs.h. */
15875
15876int
15877main ()
15878{
15879
15880 ;
15881 return 0;
15882}
15883_ACEOF
15884if ac_fn_c_try_link "$LINENO"; then :
15885
cristyda16f162011-02-19 23:52:17 +000015886 lt_aix_libpath_sed='
15887 /Import File Strings/,/^$/ {
15888 /^0/ {
15889 s/^0 *\([^ ]*\) *$/\1/
15890 p
15891 }
15892 }'
15893 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15894 # Check for a 64-bit object if we didn't find anything.
15895 if test -z "$lt_cv_aix_libpath_"; then
15896 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15897 fi
cristy73bd4a52010-10-05 11:24:23 +000015898fi
15899rm -f core conftest.err conftest.$ac_objext \
15900 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015901 if test -z "$lt_cv_aix_libpath_"; then
15902 lt_cv_aix_libpath_="/usr/lib:/lib"
15903 fi
15904
15905fi
15906
15907 aix_libpath=$lt_cv_aix_libpath_
15908fi
cristy73bd4a52010-10-05 11:24:23 +000015909
15910 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000015911 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 +000015912 else
15913 if test "$host_cpu" = ia64; then
15914 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15915 allow_undefined_flag="-z nodefs"
15916 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"
15917 else
15918 # Determine the default libpath from the value encoded in an
15919 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015920 if test "${lt_cv_aix_libpath+set}" = set; then
15921 aix_libpath=$lt_cv_aix_libpath
15922else
15923 if ${lt_cv_aix_libpath_+:} false; then :
15924 $as_echo_n "(cached) " >&6
15925else
15926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015927/* end confdefs.h. */
15928
15929int
15930main ()
15931{
15932
15933 ;
15934 return 0;
15935}
15936_ACEOF
15937if ac_fn_c_try_link "$LINENO"; then :
15938
cristyda16f162011-02-19 23:52:17 +000015939 lt_aix_libpath_sed='
15940 /Import File Strings/,/^$/ {
15941 /^0/ {
15942 s/^0 *\([^ ]*\) *$/\1/
15943 p
15944 }
15945 }'
15946 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15947 # Check for a 64-bit object if we didn't find anything.
15948 if test -z "$lt_cv_aix_libpath_"; then
15949 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15950 fi
cristy73bd4a52010-10-05 11:24:23 +000015951fi
15952rm -f core conftest.err conftest.$ac_objext \
15953 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015954 if test -z "$lt_cv_aix_libpath_"; then
15955 lt_cv_aix_libpath_="/usr/lib:/lib"
15956 fi
15957
15958fi
15959
15960 aix_libpath=$lt_cv_aix_libpath_
15961fi
cristy73bd4a52010-10-05 11:24:23 +000015962
15963 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15964 # Warning - without using the other run time loading flags,
15965 # -berok will link without error, but may produce a broken library.
15966 no_undefined_flag=' ${wl}-bernotok'
15967 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000015968 if test "$with_gnu_ld" = yes; then
15969 # We only use this code for GNU lds that support --whole-archive.
15970 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15971 else
15972 # Exported symbols can be pulled into shared objects from archives
15973 whole_archive_flag_spec='$convenience'
15974 fi
cristy73bd4a52010-10-05 11:24:23 +000015975 archive_cmds_need_lc=yes
15976 # This is similar to how AIX traditionally builds its shared libraries.
15977 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'
15978 fi
15979 fi
15980 ;;
15981
15982 amigaos*)
15983 case $host_cpu in
15984 powerpc)
15985 # see comment about AmigaOS4 .so support
15986 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15987 archive_expsym_cmds=''
15988 ;;
15989 m68k)
15990 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)'
15991 hardcode_libdir_flag_spec='-L$libdir'
15992 hardcode_minus_L=yes
15993 ;;
15994 esac
15995 ;;
15996
15997 bsdi[45]*)
15998 export_dynamic_flag_spec=-rdynamic
15999 ;;
16000
16001 cygwin* | mingw* | pw32* | cegcc*)
16002 # When not using gcc, we currently assume that we are using
16003 # Microsoft Visual C++.
16004 # hardcode_libdir_flag_spec is actually meaningless, as there is
16005 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000016006 case $cc_basename in
16007 cl*)
16008 # Native MSVC
16009 hardcode_libdir_flag_spec=' '
16010 allow_undefined_flag=unsupported
16011 always_export_symbols=yes
16012 file_list_spec='@'
16013 # Tell ltmain to make .lib files, not .a files.
16014 libext=lib
16015 # Tell ltmain to make .dll files, not .so files.
16016 shrext_cmds=".dll"
16017 # FIXME: Setting linknames here is a bad hack.
16018 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
16019 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16020 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
16021 else
16022 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
16023 fi~
16024 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16025 linknames='
16026 # The linker will not automatically build a static lib if we build a DLL.
16027 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
16028 enable_shared_with_static_runtimes=yes
cristy99bd5232011-12-07 14:38:20 +000016029 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
cristyda16f162011-02-19 23:52:17 +000016030 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16031 # Don't use ranlib
16032 old_postinstall_cmds='chmod 644 $oldlib'
16033 postlink_cmds='lt_outputfile="@OUTPUT@"~
16034 lt_tool_outputfile="@TOOL_OUTPUT@"~
16035 case $lt_outputfile in
16036 *.exe|*.EXE) ;;
16037 *)
16038 lt_outputfile="$lt_outputfile.exe"
16039 lt_tool_outputfile="$lt_tool_outputfile.exe"
16040 ;;
16041 esac~
16042 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
16043 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16044 $RM "$lt_outputfile.manifest";
16045 fi'
16046 ;;
16047 *)
16048 # Assume MSVC wrapper
16049 hardcode_libdir_flag_spec=' '
16050 allow_undefined_flag=unsupported
16051 # Tell ltmain to make .lib files, not .a files.
16052 libext=lib
16053 # Tell ltmain to make .dll files, not .so files.
16054 shrext_cmds=".dll"
16055 # FIXME: Setting linknames here is a bad hack.
16056 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16057 # The linker will automatically build a .lib file if we build a DLL.
16058 old_archive_from_new_cmds='true'
16059 # FIXME: Should let the user specify the lib program.
16060 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16061 enable_shared_with_static_runtimes=yes
16062 ;;
16063 esac
cristy73bd4a52010-10-05 11:24:23 +000016064 ;;
16065
16066 darwin* | rhapsody*)
16067
16068
16069 archive_cmds_need_lc=no
16070 hardcode_direct=no
16071 hardcode_automatic=yes
16072 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000016073 if test "$lt_cv_ld_force_load" = "yes"; then
16074 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 +000016075
cristy0c60a692010-11-04 01:09:47 +000016076 else
16077 whole_archive_flag_spec=''
16078 fi
cristy73bd4a52010-10-05 11:24:23 +000016079 link_all_deplibs=yes
16080 allow_undefined_flag="$_lt_dar_allow_undefined"
16081 case $cc_basename in
16082 ifort*) _lt_dar_can_shared=yes ;;
16083 *) _lt_dar_can_shared=$GCC ;;
16084 esac
16085 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000016086 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000016087 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16088 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16089 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}"
16090 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}"
16091
16092 else
16093 ld_shlibs=no
16094 fi
16095
16096 ;;
16097
16098 dgux*)
16099 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16100 hardcode_libdir_flag_spec='-L$libdir'
16101 hardcode_shlibpath_var=no
16102 ;;
16103
cristy73bd4a52010-10-05 11:24:23 +000016104 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16105 # support. Future versions do this automatically, but an explicit c++rt0.o
16106 # does not break anything, and helps significantly (at the cost of a little
16107 # extra space).
16108 freebsd2.2*)
16109 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16110 hardcode_libdir_flag_spec='-R$libdir'
16111 hardcode_direct=yes
16112 hardcode_shlibpath_var=no
16113 ;;
16114
16115 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
cristy99bd5232011-12-07 14:38:20 +000016116 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000016117 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16118 hardcode_direct=yes
16119 hardcode_minus_L=yes
16120 hardcode_shlibpath_var=no
16121 ;;
16122
16123 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16124 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000016125 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000016126 hardcode_libdir_flag_spec='-R$libdir'
16127 hardcode_direct=yes
16128 hardcode_shlibpath_var=no
16129 ;;
16130
16131 hpux9*)
16132 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000016133 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 +000016134 else
16135 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'
16136 fi
16137 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16138 hardcode_libdir_separator=:
16139 hardcode_direct=yes
16140
16141 # hardcode_minus_L: Not really in the search PATH,
16142 # but as the default location of the library.
16143 hardcode_minus_L=yes
16144 export_dynamic_flag_spec='${wl}-E'
16145 ;;
16146
16147 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000016148 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000016149 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 +000016150 else
16151 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16152 fi
16153 if test "$with_gnu_ld" = no; then
16154 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cristy73bd4a52010-10-05 11:24:23 +000016155 hardcode_libdir_separator=:
16156 hardcode_direct=yes
16157 hardcode_direct_absolute=yes
16158 export_dynamic_flag_spec='${wl}-E'
16159 # hardcode_minus_L: Not really in the search PATH,
16160 # but as the default location of the library.
16161 hardcode_minus_L=yes
16162 fi
16163 ;;
16164
16165 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000016166 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000016167 case $host_cpu in
16168 hppa*64*)
16169 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16170 ;;
16171 ia64*)
cristyda16f162011-02-19 23:52:17 +000016172 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000016173 ;;
16174 *)
cristyda16f162011-02-19 23:52:17 +000016175 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 +000016176 ;;
16177 esac
16178 else
16179 case $host_cpu in
16180 hppa*64*)
16181 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16182 ;;
16183 ia64*)
16184 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16185 ;;
16186 *)
cristy0c60a692010-11-04 01:09:47 +000016187
16188 # Older versions of the 11.00 compiler do not understand -b yet
16189 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16191$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016192if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016193 $as_echo_n "(cached) " >&6
16194else
16195 lt_cv_prog_compiler__b=no
16196 save_LDFLAGS="$LDFLAGS"
16197 LDFLAGS="$LDFLAGS -b"
16198 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16199 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16200 # The linker can only warn and ignore the option if not recognized
16201 # So say no if there are warnings
16202 if test -s conftest.err; then
16203 # Append any errors to the config.log.
16204 cat conftest.err 1>&5
16205 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16206 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16207 if diff conftest.exp conftest.er2 >/dev/null; then
16208 lt_cv_prog_compiler__b=yes
16209 fi
16210 else
16211 lt_cv_prog_compiler__b=yes
16212 fi
16213 fi
16214 $RM -r conftest*
16215 LDFLAGS="$save_LDFLAGS"
16216
16217fi
16218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16219$as_echo "$lt_cv_prog_compiler__b" >&6; }
16220
16221if test x"$lt_cv_prog_compiler__b" = xyes; then
16222 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16223else
16224 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16225fi
16226
cristy73bd4a52010-10-05 11:24:23 +000016227 ;;
16228 esac
16229 fi
16230 if test "$with_gnu_ld" = no; then
16231 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16232 hardcode_libdir_separator=:
16233
16234 case $host_cpu in
16235 hppa*64*|ia64*)
16236 hardcode_direct=no
16237 hardcode_shlibpath_var=no
16238 ;;
16239 *)
16240 hardcode_direct=yes
16241 hardcode_direct_absolute=yes
16242 export_dynamic_flag_spec='${wl}-E'
16243
16244 # hardcode_minus_L: Not really in the search PATH,
16245 # but as the default location of the library.
16246 hardcode_minus_L=yes
16247 ;;
16248 esac
16249 fi
16250 ;;
16251
16252 irix5* | irix6* | nonstopux*)
16253 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000016254 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 +000016255 # Try to use the -exported_symbol ld option, if it does not
16256 # work, assume that -exports_file does not work either and
16257 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000016258 # This should be the same for all languages, so no per-tag cache variable.
16259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
16260$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
16261if ${lt_cv_irix_exported_symbol+:} false; then :
16262 $as_echo_n "(cached) " >&6
16263else
16264 save_LDFLAGS="$LDFLAGS"
16265 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016267/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000016268int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000016269_ACEOF
16270if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000016271 lt_cv_irix_exported_symbol=yes
16272else
16273 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000016274fi
16275rm -f core conftest.err conftest.$ac_objext \
16276 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000016277 LDFLAGS="$save_LDFLAGS"
16278fi
16279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
16280$as_echo "$lt_cv_irix_exported_symbol" >&6; }
16281 if test "$lt_cv_irix_exported_symbol" = yes; then
16282 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'
16283 fi
cristy73bd4a52010-10-05 11:24:23 +000016284 else
cristy0c60a692010-11-04 01:09:47 +000016285 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'
16286 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 +000016287 fi
16288 archive_cmds_need_lc='no'
16289 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16290 hardcode_libdir_separator=:
16291 inherit_rpath=yes
16292 link_all_deplibs=yes
16293 ;;
16294
16295 netbsd*)
16296 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16297 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16298 else
16299 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16300 fi
16301 hardcode_libdir_flag_spec='-R$libdir'
16302 hardcode_direct=yes
16303 hardcode_shlibpath_var=no
16304 ;;
16305
16306 newsos6)
16307 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16308 hardcode_direct=yes
16309 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16310 hardcode_libdir_separator=:
16311 hardcode_shlibpath_var=no
16312 ;;
16313
16314 *nto* | *qnx*)
16315 ;;
16316
16317 openbsd*)
16318 if test -f /usr/libexec/ld.so; then
16319 hardcode_direct=yes
16320 hardcode_shlibpath_var=no
16321 hardcode_direct_absolute=yes
16322 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16323 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16324 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16325 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16326 export_dynamic_flag_spec='${wl}-E'
16327 else
16328 case $host_os in
16329 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16330 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16331 hardcode_libdir_flag_spec='-R$libdir'
16332 ;;
16333 *)
16334 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16335 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16336 ;;
16337 esac
16338 fi
16339 else
16340 ld_shlibs=no
16341 fi
16342 ;;
16343
16344 os2*)
16345 hardcode_libdir_flag_spec='-L$libdir'
16346 hardcode_minus_L=yes
16347 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000016348 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 +000016349 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16350 ;;
16351
16352 osf3*)
16353 if test "$GCC" = yes; then
16354 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000016355 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 +000016356 else
16357 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000016358 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 +000016359 fi
16360 archive_cmds_need_lc='no'
16361 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16362 hardcode_libdir_separator=:
16363 ;;
16364
16365 osf4* | osf5*) # as osf3* with the addition of -msym flag
16366 if test "$GCC" = yes; then
16367 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000016368 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 +000016369 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16370 else
16371 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000016372 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 +000016373 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 +000016374 $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 +000016375
16376 # Both c and cxx compiler support -rpath directly
16377 hardcode_libdir_flag_spec='-rpath $libdir'
16378 fi
16379 archive_cmds_need_lc='no'
16380 hardcode_libdir_separator=:
16381 ;;
16382
16383 solaris*)
16384 no_undefined_flag=' -z defs'
16385 if test "$GCC" = yes; then
16386 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000016387 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 +000016388 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 +000016389 $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 +000016390 else
16391 case `$CC -V 2>&1` in
16392 *"Compilers 5.0"*)
16393 wlarc=''
16394 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16395 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16396 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16397 ;;
16398 *)
16399 wlarc='${wl}'
16400 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16401 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16402 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16403 ;;
16404 esac
16405 fi
16406 hardcode_libdir_flag_spec='-R$libdir'
16407 hardcode_shlibpath_var=no
16408 case $host_os in
16409 solaris2.[0-5] | solaris2.[0-5].*) ;;
16410 *)
16411 # The compiler driver will combine and reorder linker options,
16412 # but understands `-z linker_flag'. GCC discards it without `$wl',
16413 # but is careful enough not to reorder.
16414 # Supported since Solaris 2.6 (maybe 2.5.1?)
16415 if test "$GCC" = yes; then
16416 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16417 else
16418 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16419 fi
16420 ;;
16421 esac
16422 link_all_deplibs=yes
16423 ;;
16424
16425 sunos4*)
16426 if test "x$host_vendor" = xsequent; then
16427 # Use $CC to link under sequent, because it throws in some extra .o
16428 # files that make .init and .fini sections work.
16429 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16430 else
16431 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16432 fi
16433 hardcode_libdir_flag_spec='-L$libdir'
16434 hardcode_direct=yes
16435 hardcode_minus_L=yes
16436 hardcode_shlibpath_var=no
16437 ;;
16438
16439 sysv4)
16440 case $host_vendor in
16441 sni)
16442 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16443 hardcode_direct=yes # is this really true???
16444 ;;
16445 siemens)
16446 ## LD is ld it makes a PLAMLIB
16447 ## CC just makes a GrossModule.
16448 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16449 reload_cmds='$CC -r -o $output$reload_objs'
16450 hardcode_direct=no
16451 ;;
16452 motorola)
16453 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16454 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16455 ;;
16456 esac
16457 runpath_var='LD_RUN_PATH'
16458 hardcode_shlibpath_var=no
16459 ;;
16460
16461 sysv4.3*)
16462 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16463 hardcode_shlibpath_var=no
16464 export_dynamic_flag_spec='-Bexport'
16465 ;;
16466
16467 sysv4*MP*)
16468 if test -d /usr/nec; then
16469 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16470 hardcode_shlibpath_var=no
16471 runpath_var=LD_RUN_PATH
16472 hardcode_runpath_var=yes
16473 ld_shlibs=yes
16474 fi
16475 ;;
16476
16477 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16478 no_undefined_flag='${wl}-z,text'
16479 archive_cmds_need_lc=no
16480 hardcode_shlibpath_var=no
16481 runpath_var='LD_RUN_PATH'
16482
16483 if test "$GCC" = yes; then
16484 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16485 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16486 else
16487 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16488 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16489 fi
16490 ;;
16491
16492 sysv5* | sco3.2v5* | sco5v6*)
16493 # Note: We can NOT use -z defs as we might desire, because we do not
16494 # link with -lc, and that would cause any symbols used from libc to
16495 # always be unresolved, which means just about no library would
16496 # ever link correctly. If we're not using GNU ld we use -z text
16497 # though, which does catch some bad symbols but isn't as heavy-handed
16498 # as -z defs.
16499 no_undefined_flag='${wl}-z,text'
16500 allow_undefined_flag='${wl}-z,nodefs'
16501 archive_cmds_need_lc=no
16502 hardcode_shlibpath_var=no
16503 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16504 hardcode_libdir_separator=':'
16505 link_all_deplibs=yes
16506 export_dynamic_flag_spec='${wl}-Bexport'
16507 runpath_var='LD_RUN_PATH'
16508
16509 if test "$GCC" = yes; then
16510 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16511 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16512 else
16513 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16514 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16515 fi
16516 ;;
16517
16518 uts4*)
16519 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16520 hardcode_libdir_flag_spec='-L$libdir'
16521 hardcode_shlibpath_var=no
16522 ;;
16523
16524 *)
16525 ld_shlibs=no
16526 ;;
16527 esac
16528
16529 if test x$host_vendor = xsni; then
16530 case $host in
16531 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16532 export_dynamic_flag_spec='${wl}-Blargedynsym'
16533 ;;
16534 esac
16535 fi
16536 fi
16537
16538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16539$as_echo "$ld_shlibs" >&6; }
16540test "$ld_shlibs" = no && can_build_shared=no
16541
16542with_gnu_ld=$with_gnu_ld
16543
16544
16545
16546
16547
16548
16549
16550
16551
16552
16553
16554
16555
16556
16557
16558#
16559# Do we need to explicitly link libc?
16560#
16561case "x$archive_cmds_need_lc" in
16562x|xyes)
16563 # Assume -lc should be added
16564 archive_cmds_need_lc=yes
16565
16566 if test "$enable_shared" = yes && test "$GCC" = yes; then
16567 case $archive_cmds in
16568 *'~'*)
16569 # FIXME: we may have to deal with multi-command sequences.
16570 ;;
16571 '$CC '*)
16572 # Test whether the compiler implicitly links with -lc since on some
16573 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16574 # to ld, don't add -lc before -lgcc.
16575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16576$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016577if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016578 $as_echo_n "(cached) " >&6
16579else
16580 $RM conftest*
16581 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016582
cristy0c60a692010-11-04 01:09:47 +000016583 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000016584 (eval $ac_compile) 2>&5
16585 ac_status=$?
16586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16587 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000016588 soname=conftest
16589 lib=conftest
16590 libobjs=conftest.$ac_objext
16591 deplibs=
16592 wl=$lt_prog_compiler_wl
16593 pic_flag=$lt_prog_compiler_pic
16594 compiler_flags=-v
16595 linker_flags=-v
16596 verstring=
16597 output_objdir=.
16598 libname=conftest
16599 lt_save_allow_undefined_flag=$allow_undefined_flag
16600 allow_undefined_flag=
16601 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 +000016602 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16603 ac_status=$?
16604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16605 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000016606 then
16607 lt_cv_archive_cmds_need_lc=no
16608 else
16609 lt_cv_archive_cmds_need_lc=yes
16610 fi
16611 allow_undefined_flag=$lt_save_allow_undefined_flag
16612 else
16613 cat conftest.err 1>&5
16614 fi
16615 $RM conftest*
16616
16617fi
16618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16619$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16620 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000016621 ;;
16622 esac
16623 fi
16624 ;;
16625esac
16626
16627
16628
16629
16630
16631
16632
16633
16634
16635
16636
16637
16638
16639
16640
16641
16642
16643
16644
16645
16646
16647
16648
16649
16650
16651
16652
16653
16654
16655
16656
16657
16658
16659
16660
16661
16662
16663
16664
16665
16666
16667
16668
16669
16670
16671
16672
16673
16674
16675
16676
16677
16678
16679
16680
16681
16682
16683
16684
16685
16686
16687
16688
16689
16690
16691
16692
16693
16694
16695
16696
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
16736
16737
16738
16739
16740
16741
16742
16743
16744
16745
16746
16747
16748
16749
16750
16751
16752
16753
16754
16755
16756
16757
16758
16759
16760
16761
16762
16763
16764
16765
16766
16767
16768
16769
16770
16771
16772
16773
16774
16775
16776
16777
cristy73bd4a52010-10-05 11:24:23 +000016778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16779$as_echo_n "checking dynamic linker characteristics... " >&6; }
16780
16781if test "$GCC" = yes; then
16782 case $host_os in
16783 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16784 *) lt_awk_arg="/^libraries:/" ;;
16785 esac
cristy0c60a692010-11-04 01:09:47 +000016786 case $host_os in
16787 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16788 *) lt_sed_strip_eq="s,=/,/,g" ;;
16789 esac
16790 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16791 case $lt_search_path_spec in
16792 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000016793 # if the path contains ";" then we assume it to be the separator
16794 # otherwise default to the standard path separator (i.e. ":") - it is
16795 # assumed that no part of a normal pathname contains ";" but that should
16796 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000016797 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16798 ;;
16799 *)
16800 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16801 ;;
16802 esac
cristy73bd4a52010-10-05 11:24:23 +000016803 # Ok, now we have the path, separated by spaces, we can step through it
16804 # and add multilib dir if necessary.
16805 lt_tmp_lt_search_path_spec=
16806 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16807 for lt_sys_path in $lt_search_path_spec; do
16808 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16809 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16810 else
16811 test -d "$lt_sys_path" && \
16812 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16813 fi
16814 done
cristy0c60a692010-11-04 01:09:47 +000016815 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000016816BEGIN {RS=" "; FS="/|\n";} {
16817 lt_foo="";
16818 lt_count=0;
16819 for (lt_i = NF; lt_i > 0; lt_i--) {
16820 if ($lt_i != "" && $lt_i != ".") {
16821 if ($lt_i == "..") {
16822 lt_count++;
16823 } else {
16824 if (lt_count == 0) {
16825 lt_foo="/" $lt_i lt_foo;
16826 } else {
16827 lt_count--;
16828 }
16829 }
16830 }
16831 }
16832 if (lt_foo != "") { lt_freq[lt_foo]++; }
16833 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16834}'`
cristy0c60a692010-11-04 01:09:47 +000016835 # AWK program above erroneously prepends '/' to C:/dos/paths
16836 # for these hosts.
16837 case $host_os in
16838 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16839 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16840 esac
16841 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000016842else
16843 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16844fi
16845library_names_spec=
16846libname_spec='lib$name'
16847soname_spec=
16848shrext_cmds=".so"
16849postinstall_cmds=
16850postuninstall_cmds=
16851finish_cmds=
16852finish_eval=
16853shlibpath_var=
16854shlibpath_overrides_runpath=unknown
16855version_type=none
16856dynamic_linker="$host_os ld.so"
16857sys_lib_dlsearch_path_spec="/lib /usr/lib"
16858need_lib_prefix=unknown
16859hardcode_into_libs=no
16860
16861# when you set need_version to no, make sure it does not cause -set_version
16862# flags to be left without arguments
16863need_version=unknown
16864
16865case $host_os in
16866aix3*)
cristy99bd5232011-12-07 14:38:20 +000016867 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016868 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16869 shlibpath_var=LIBPATH
16870
16871 # AIX 3 has no versioning support, so we append a major version to the name.
16872 soname_spec='${libname}${release}${shared_ext}$major'
16873 ;;
16874
16875aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000016876 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016877 need_lib_prefix=no
16878 need_version=no
16879 hardcode_into_libs=yes
16880 if test "$host_cpu" = ia64; then
16881 # AIX 5 supports IA64
16882 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16883 shlibpath_var=LD_LIBRARY_PATH
16884 else
16885 # With GCC up to 2.95.x, collect2 would create an import file
16886 # for dependence libraries. The import file would start with
16887 # the line `#! .'. This would cause the generated library to
16888 # depend on `.', always an invalid library. This was fixed in
16889 # development snapshots of GCC prior to 3.0.
16890 case $host_os in
16891 aix4 | aix4.[01] | aix4.[01].*)
16892 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16893 echo ' yes '
16894 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16895 :
16896 else
16897 can_build_shared=no
16898 fi
16899 ;;
16900 esac
16901 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16902 # soname into executable. Probably we can add versioning support to
16903 # collect2, so additional links can be useful in future.
16904 if test "$aix_use_runtimelinking" = yes; then
16905 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16906 # instead of lib<name>.a to let people know that these are not
16907 # typical AIX shared libraries.
16908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16909 else
16910 # We preserve .a as extension for shared libraries through AIX4.2
16911 # and later when we are not doing run time linking.
16912 library_names_spec='${libname}${release}.a $libname.a'
16913 soname_spec='${libname}${release}${shared_ext}$major'
16914 fi
16915 shlibpath_var=LIBPATH
16916 fi
16917 ;;
16918
16919amigaos*)
16920 case $host_cpu in
16921 powerpc)
16922 # Since July 2007 AmigaOS4 officially supports .so libraries.
16923 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16925 ;;
16926 m68k)
16927 library_names_spec='$libname.ixlibrary $libname.a'
16928 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000016929 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 +000016930 ;;
16931 esac
16932 ;;
16933
16934beos*)
16935 library_names_spec='${libname}${shared_ext}'
16936 dynamic_linker="$host_os ld.so"
16937 shlibpath_var=LIBRARY_PATH
16938 ;;
16939
16940bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000016941 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016942 need_version=no
16943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16944 soname_spec='${libname}${release}${shared_ext}$major'
16945 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16946 shlibpath_var=LD_LIBRARY_PATH
16947 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16948 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16949 # the default ld.so.conf also contains /usr/contrib/lib and
16950 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16951 # libtool to hard-code these into programs
16952 ;;
16953
16954cygwin* | mingw* | pw32* | cegcc*)
16955 version_type=windows
16956 shrext_cmds=".dll"
16957 need_version=no
16958 need_lib_prefix=no
16959
cristyda16f162011-02-19 23:52:17 +000016960 case $GCC,$cc_basename in
16961 yes,*)
16962 # gcc
cristy73bd4a52010-10-05 11:24:23 +000016963 library_names_spec='$libname.dll.a'
16964 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16965 postinstall_cmds='base_file=`basename \${file}`~
16966 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16967 dldir=$destdir/`dirname \$dlpath`~
16968 test -d \$dldir || mkdir -p \$dldir~
16969 $install_prog $dir/$dlname \$dldir/$dlname~
16970 chmod a+x \$dldir/$dlname~
16971 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16972 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16973 fi'
16974 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16975 dlpath=$dir/\$dldll~
16976 $RM \$dlpath'
16977 shlibpath_overrides_runpath=yes
16978
16979 case $host_os in
16980 cygwin*)
16981 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16982 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000016983
16984 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000016985 ;;
16986 mingw* | cegcc*)
16987 # MinGW DLLs use traditional 'lib' prefix
16988 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000016989 ;;
16990 pw32*)
16991 # pw32 DLLs use 'pw' prefix rather than 'lib'
16992 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16993 ;;
16994 esac
cristyda16f162011-02-19 23:52:17 +000016995 dynamic_linker='Win32 ld.exe'
16996 ;;
16997
16998 *,cl*)
16999 # Native MSVC
17000 libname_spec='$name'
17001 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17002 library_names_spec='${libname}.dll.lib'
17003
17004 case $build_os in
17005 mingw*)
17006 sys_lib_search_path_spec=
17007 lt_save_ifs=$IFS
17008 IFS=';'
17009 for lt_path in $LIB
17010 do
17011 IFS=$lt_save_ifs
17012 # Let DOS variable expansion print the short 8.3 style file name.
17013 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17014 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17015 done
17016 IFS=$lt_save_ifs
17017 # Convert to MSYS style.
17018 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17019 ;;
17020 cygwin*)
17021 # Convert to unix form, then to dos form, then back to unix form
17022 # but this time dos style (no spaces!) so that the unix form looks
17023 # like /cygdrive/c/PROGRA~1:/cygdr...
17024 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17025 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17026 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17027 ;;
17028 *)
17029 sys_lib_search_path_spec="$LIB"
17030 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17031 # It is most probably a Windows format PATH.
17032 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17033 else
17034 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17035 fi
17036 # FIXME: find the short name or the path components, as spaces are
17037 # common. (e.g. "Program Files" -> "PROGRA~1")
17038 ;;
17039 esac
17040
17041 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17042 postinstall_cmds='base_file=`basename \${file}`~
17043 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17044 dldir=$destdir/`dirname \$dlpath`~
17045 test -d \$dldir || mkdir -p \$dldir~
17046 $install_prog $dir/$dlname \$dldir/$dlname'
17047 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17048 dlpath=$dir/\$dldll~
17049 $RM \$dlpath'
17050 shlibpath_overrides_runpath=yes
17051 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000017052 ;;
17053
17054 *)
cristyda16f162011-02-19 23:52:17 +000017055 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000017056 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000017057 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000017058 ;;
17059 esac
cristy73bd4a52010-10-05 11:24:23 +000017060 # FIXME: first we should search . and the directory the executable is in
17061 shlibpath_var=PATH
17062 ;;
17063
17064darwin* | rhapsody*)
17065 dynamic_linker="$host_os dyld"
17066 version_type=darwin
17067 need_lib_prefix=no
17068 need_version=no
17069 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17070 soname_spec='${libname}${release}${major}$shared_ext'
17071 shlibpath_overrides_runpath=yes
17072 shlibpath_var=DYLD_LIBRARY_PATH
17073 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17074
17075 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17076 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17077 ;;
17078
17079dgux*)
cristy99bd5232011-12-07 14:38:20 +000017080 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017081 need_lib_prefix=no
17082 need_version=no
17083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17084 soname_spec='${libname}${release}${shared_ext}$major'
17085 shlibpath_var=LD_LIBRARY_PATH
17086 ;;
17087
cristy73bd4a52010-10-05 11:24:23 +000017088freebsd* | dragonfly*)
17089 # DragonFly does not have aout. When/if they implement a new
17090 # versioning mechanism, adjust this.
17091 if test -x /usr/bin/objformat; then
17092 objformat=`/usr/bin/objformat`
17093 else
17094 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000017095 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000017096 *) objformat=elf ;;
17097 esac
17098 fi
17099 version_type=freebsd-$objformat
17100 case $version_type in
17101 freebsd-elf*)
17102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17103 need_version=no
17104 need_lib_prefix=no
17105 ;;
17106 freebsd-*)
17107 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17108 need_version=yes
17109 ;;
17110 esac
17111 shlibpath_var=LD_LIBRARY_PATH
17112 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000017113 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000017114 shlibpath_overrides_runpath=yes
17115 ;;
17116 freebsd3.[01]* | freebsdelf3.[01]*)
17117 shlibpath_overrides_runpath=yes
17118 hardcode_into_libs=yes
17119 ;;
17120 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17121 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17122 shlibpath_overrides_runpath=no
17123 hardcode_into_libs=yes
17124 ;;
17125 *) # from 4.6 on, and DragonFly
17126 shlibpath_overrides_runpath=yes
17127 hardcode_into_libs=yes
17128 ;;
17129 esac
17130 ;;
17131
17132gnu*)
cristy99bd5232011-12-07 14:38:20 +000017133 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017134 need_lib_prefix=no
17135 need_version=no
17136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17137 soname_spec='${libname}${release}${shared_ext}$major'
17138 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000017139 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000017140 hardcode_into_libs=yes
17141 ;;
17142
cristy0c60a692010-11-04 01:09:47 +000017143haiku*)
cristy99bd5232011-12-07 14:38:20 +000017144 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000017145 need_lib_prefix=no
17146 need_version=no
17147 dynamic_linker="$host_os runtime_loader"
17148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17149 soname_spec='${libname}${release}${shared_ext}$major'
17150 shlibpath_var=LIBRARY_PATH
17151 shlibpath_overrides_runpath=yes
17152 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17153 hardcode_into_libs=yes
17154 ;;
17155
cristy73bd4a52010-10-05 11:24:23 +000017156hpux9* | hpux10* | hpux11*)
17157 # Give a soname corresponding to the major version so that dld.sl refuses to
17158 # link against other versions.
17159 version_type=sunos
17160 need_lib_prefix=no
17161 need_version=no
17162 case $host_cpu in
17163 ia64*)
17164 shrext_cmds='.so'
17165 hardcode_into_libs=yes
17166 dynamic_linker="$host_os dld.so"
17167 shlibpath_var=LD_LIBRARY_PATH
17168 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17170 soname_spec='${libname}${release}${shared_ext}$major'
17171 if test "X$HPUX_IA64_MODE" = X32; then
17172 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17173 else
17174 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17175 fi
17176 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17177 ;;
17178 hppa*64*)
17179 shrext_cmds='.sl'
17180 hardcode_into_libs=yes
17181 dynamic_linker="$host_os dld.sl"
17182 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17183 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17185 soname_spec='${libname}${release}${shared_ext}$major'
17186 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17187 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17188 ;;
17189 *)
17190 shrext_cmds='.sl'
17191 dynamic_linker="$host_os dld.sl"
17192 shlibpath_var=SHLIB_PATH
17193 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17195 soname_spec='${libname}${release}${shared_ext}$major'
17196 ;;
17197 esac
cristy0c60a692010-11-04 01:09:47 +000017198 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000017199 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000017200 # or fails outright, so override atomically:
17201 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000017202 ;;
17203
17204interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000017205 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017206 need_lib_prefix=no
17207 need_version=no
17208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17209 soname_spec='${libname}${release}${shared_ext}$major'
17210 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17211 shlibpath_var=LD_LIBRARY_PATH
17212 shlibpath_overrides_runpath=no
17213 hardcode_into_libs=yes
17214 ;;
17215
17216irix5* | irix6* | nonstopux*)
17217 case $host_os in
17218 nonstopux*) version_type=nonstopux ;;
17219 *)
17220 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000017221 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017222 else
17223 version_type=irix
17224 fi ;;
17225 esac
17226 need_lib_prefix=no
17227 need_version=no
17228 soname_spec='${libname}${release}${shared_ext}$major'
17229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17230 case $host_os in
17231 irix5* | nonstopux*)
17232 libsuff= shlibsuff=
17233 ;;
17234 *)
17235 case $LD in # libtool.m4 will add one of these switches to LD
17236 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17237 libsuff= shlibsuff= libmagic=32-bit;;
17238 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17239 libsuff=32 shlibsuff=N32 libmagic=N32;;
17240 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17241 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17242 *) libsuff= shlibsuff= libmagic=never-match;;
17243 esac
17244 ;;
17245 esac
17246 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17247 shlibpath_overrides_runpath=no
17248 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17249 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17250 hardcode_into_libs=yes
17251 ;;
17252
17253# No shared lib support for Linux oldld, aout, or coff.
17254linux*oldld* | linux*aout* | linux*coff*)
17255 dynamic_linker=no
17256 ;;
17257
cristy99bd5232011-12-07 14:38:20 +000017258# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000017259linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000017260 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017261 need_lib_prefix=no
17262 need_version=no
17263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17264 soname_spec='${libname}${release}${shared_ext}$major'
17265 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17266 shlibpath_var=LD_LIBRARY_PATH
17267 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000017268
cristy73bd4a52010-10-05 11:24:23 +000017269 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000017270 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000017271 $as_echo_n "(cached) " >&6
17272else
17273 lt_cv_shlibpath_overrides_runpath=no
17274 save_LDFLAGS=$LDFLAGS
17275 save_libdir=$libdir
17276 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17277 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017279/* end confdefs.h. */
17280
17281int
17282main ()
17283{
17284
17285 ;
17286 return 0;
17287}
17288_ACEOF
17289if ac_fn_c_try_link "$LINENO"; then :
17290 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000017291 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000017292fi
17293fi
17294rm -f core conftest.err conftest.$ac_objext \
17295 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017296 LDFLAGS=$save_LDFLAGS
17297 libdir=$save_libdir
17298
17299fi
17300
17301 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000017302
17303 # This implies no fast_install, which is unacceptable.
17304 # Some rework will be needed to allow for fast_install
17305 # before this can be enabled.
17306 hardcode_into_libs=yes
17307
17308 # Add ABI-specific directories to the system library path.
17309 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
17310
17311 # Append ld.so.conf contents to the search path
17312 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000017313 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 +000017314 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000017315
cristy73bd4a52010-10-05 11:24:23 +000017316 fi
17317
17318 # We used to test for /lib/ld.so.1 and disable shared libraries on
17319 # powerpc, because MkLinux only supported shared libraries with the
17320 # GNU dynamic linker. Since this was broken with cross compilers,
17321 # most powerpc-linux boxes support dynamic linking these days and
17322 # people can always --disable-shared, the test was removed, and we
17323 # assume the GNU/Linux dynamic linker is in use.
17324 dynamic_linker='GNU/Linux ld.so'
17325 ;;
17326
17327netbsd*)
17328 version_type=sunos
17329 need_lib_prefix=no
17330 need_version=no
17331 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17333 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17334 dynamic_linker='NetBSD (a.out) ld.so'
17335 else
17336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17337 soname_spec='${libname}${release}${shared_ext}$major'
17338 dynamic_linker='NetBSD ld.elf_so'
17339 fi
17340 shlibpath_var=LD_LIBRARY_PATH
17341 shlibpath_overrides_runpath=yes
17342 hardcode_into_libs=yes
17343 ;;
17344
17345newsos6)
cristy99bd5232011-12-07 14:38:20 +000017346 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17348 shlibpath_var=LD_LIBRARY_PATH
17349 shlibpath_overrides_runpath=yes
17350 ;;
17351
17352*nto* | *qnx*)
17353 version_type=qnx
17354 need_lib_prefix=no
17355 need_version=no
17356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17357 soname_spec='${libname}${release}${shared_ext}$major'
17358 shlibpath_var=LD_LIBRARY_PATH
17359 shlibpath_overrides_runpath=no
17360 hardcode_into_libs=yes
17361 dynamic_linker='ldqnx.so'
17362 ;;
17363
17364openbsd*)
17365 version_type=sunos
17366 sys_lib_dlsearch_path_spec="/usr/lib"
17367 need_lib_prefix=no
17368 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17369 case $host_os in
17370 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17371 *) need_version=no ;;
17372 esac
17373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17374 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17375 shlibpath_var=LD_LIBRARY_PATH
17376 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17377 case $host_os in
17378 openbsd2.[89] | openbsd2.[89].*)
17379 shlibpath_overrides_runpath=no
17380 ;;
17381 *)
17382 shlibpath_overrides_runpath=yes
17383 ;;
17384 esac
17385 else
17386 shlibpath_overrides_runpath=yes
17387 fi
17388 ;;
17389
17390os2*)
17391 libname_spec='$name'
17392 shrext_cmds=".dll"
17393 need_lib_prefix=no
17394 library_names_spec='$libname${shared_ext} $libname.a'
17395 dynamic_linker='OS/2 ld.exe'
17396 shlibpath_var=LIBPATH
17397 ;;
17398
17399osf3* | osf4* | osf5*)
17400 version_type=osf
17401 need_lib_prefix=no
17402 need_version=no
17403 soname_spec='${libname}${release}${shared_ext}$major'
17404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17405 shlibpath_var=LD_LIBRARY_PATH
17406 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17407 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17408 ;;
17409
17410rdos*)
17411 dynamic_linker=no
17412 ;;
17413
17414solaris*)
cristy99bd5232011-12-07 14:38:20 +000017415 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017416 need_lib_prefix=no
17417 need_version=no
17418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17419 soname_spec='${libname}${release}${shared_ext}$major'
17420 shlibpath_var=LD_LIBRARY_PATH
17421 shlibpath_overrides_runpath=yes
17422 hardcode_into_libs=yes
17423 # ldd complains unless libraries are executable
17424 postinstall_cmds='chmod +x $lib'
17425 ;;
17426
17427sunos4*)
17428 version_type=sunos
17429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17430 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17431 shlibpath_var=LD_LIBRARY_PATH
17432 shlibpath_overrides_runpath=yes
17433 if test "$with_gnu_ld" = yes; then
17434 need_lib_prefix=no
17435 fi
17436 need_version=yes
17437 ;;
17438
17439sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000017440 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17442 soname_spec='${libname}${release}${shared_ext}$major'
17443 shlibpath_var=LD_LIBRARY_PATH
17444 case $host_vendor in
17445 sni)
17446 shlibpath_overrides_runpath=no
17447 need_lib_prefix=no
17448 runpath_var=LD_RUN_PATH
17449 ;;
17450 siemens)
17451 need_lib_prefix=no
17452 ;;
17453 motorola)
17454 need_lib_prefix=no
17455 need_version=no
17456 shlibpath_overrides_runpath=no
17457 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17458 ;;
17459 esac
17460 ;;
17461
17462sysv4*MP*)
17463 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000017464 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017465 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17466 soname_spec='$libname${shared_ext}.$major'
17467 shlibpath_var=LD_LIBRARY_PATH
17468 fi
17469 ;;
17470
17471sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17472 version_type=freebsd-elf
17473 need_lib_prefix=no
17474 need_version=no
17475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17476 soname_spec='${libname}${release}${shared_ext}$major'
17477 shlibpath_var=LD_LIBRARY_PATH
17478 shlibpath_overrides_runpath=yes
17479 hardcode_into_libs=yes
17480 if test "$with_gnu_ld" = yes; then
17481 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17482 else
17483 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17484 case $host_os in
17485 sco3.2v5*)
17486 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17487 ;;
17488 esac
17489 fi
17490 sys_lib_dlsearch_path_spec='/usr/lib'
17491 ;;
17492
17493tpf*)
17494 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000017495 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017496 need_lib_prefix=no
17497 need_version=no
17498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17499 shlibpath_var=LD_LIBRARY_PATH
17500 shlibpath_overrides_runpath=no
17501 hardcode_into_libs=yes
17502 ;;
17503
17504uts4*)
cristy99bd5232011-12-07 14:38:20 +000017505 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17507 soname_spec='${libname}${release}${shared_ext}$major'
17508 shlibpath_var=LD_LIBRARY_PATH
17509 ;;
17510
17511*)
17512 dynamic_linker=no
17513 ;;
17514esac
17515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17516$as_echo "$dynamic_linker" >&6; }
17517test "$dynamic_linker" = no && can_build_shared=no
17518
17519variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17520if test "$GCC" = yes; then
17521 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17522fi
17523
17524if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17525 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17526fi
17527if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17528 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17529fi
17530
17531
17532
17533
17534
17535
17536
17537
17538
17539
17540
17541
17542
17543
17544
17545
17546
17547
17548
17549
17550
17551
17552
17553
17554
17555
17556
17557
17558
17559
17560
17561
17562
17563
17564
17565
17566
17567
17568
17569
17570
17571
17572
17573
17574
17575
17576
17577
17578
17579
17580
17581
17582
17583
17584
17585
17586
17587
17588
17589
17590
17591
17592
17593
17594
17595
17596
17597
17598
17599
17600
17601
17602
17603
17604
17605
17606
17607
17608
17609
17610
17611
17612
17613
17614
17615
17616
cristy0c60a692010-11-04 01:09:47 +000017617
17618
17619
17620
17621
cristy73bd4a52010-10-05 11:24:23 +000017622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17623$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17624hardcode_action=
17625if test -n "$hardcode_libdir_flag_spec" ||
17626 test -n "$runpath_var" ||
17627 test "X$hardcode_automatic" = "Xyes" ; then
17628
17629 # We can hardcode non-existent directories.
17630 if test "$hardcode_direct" != no &&
17631 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17632 # have to relink, otherwise we might link with an installed library
17633 # when we should be linking with a yet-to-be-installed one
17634 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17635 test "$hardcode_minus_L" != no; then
17636 # Linking always hardcodes the temporary library directory.
17637 hardcode_action=relink
17638 else
17639 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17640 hardcode_action=immediate
17641 fi
17642else
17643 # We cannot hardcode anything, or else we can only hardcode existing
17644 # directories.
17645 hardcode_action=unsupported
17646fi
17647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17648$as_echo "$hardcode_action" >&6; }
17649
17650if test "$hardcode_action" = relink ||
17651 test "$inherit_rpath" = yes; then
17652 # Fast installation is not supported
17653 enable_fast_install=no
17654elif test "$shlibpath_overrides_runpath" = yes ||
17655 test "$enable_shared" = no; then
17656 # Fast installation is not necessary
17657 enable_fast_install=needless
17658fi
17659
17660
17661
17662
17663
17664
17665 if test "x$enable_dlopen" != xyes; then
17666 enable_dlopen=unknown
17667 enable_dlopen_self=unknown
17668 enable_dlopen_self_static=unknown
17669else
17670 lt_cv_dlopen=no
17671 lt_cv_dlopen_libs=
17672
17673 case $host_os in
17674 beos*)
17675 lt_cv_dlopen="load_add_on"
17676 lt_cv_dlopen_libs=
17677 lt_cv_dlopen_self=yes
17678 ;;
17679
17680 mingw* | pw32* | cegcc*)
17681 lt_cv_dlopen="LoadLibrary"
17682 lt_cv_dlopen_libs=
17683 ;;
17684
17685 cygwin*)
17686 lt_cv_dlopen="dlopen"
17687 lt_cv_dlopen_libs=
17688 ;;
17689
17690 darwin*)
17691 # if libdl is installed we need to link against it
17692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17693$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017694if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017695 $as_echo_n "(cached) " >&6
17696else
17697 ac_check_lib_save_LIBS=$LIBS
17698LIBS="-ldl $LIBS"
17699cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17700/* end confdefs.h. */
17701
17702/* Override any GCC internal prototype to avoid an error.
17703 Use char because int might match the return type of a GCC
17704 builtin and then its argument prototype would still apply. */
17705#ifdef __cplusplus
17706extern "C"
17707#endif
17708char dlopen ();
17709int
17710main ()
17711{
17712return dlopen ();
17713 ;
17714 return 0;
17715}
17716_ACEOF
17717if ac_fn_c_try_link "$LINENO"; then :
17718 ac_cv_lib_dl_dlopen=yes
17719else
17720 ac_cv_lib_dl_dlopen=no
17721fi
17722rm -f core conftest.err conftest.$ac_objext \
17723 conftest$ac_exeext conftest.$ac_ext
17724LIBS=$ac_check_lib_save_LIBS
17725fi
17726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17727$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017728if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017729 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17730else
17731
17732 lt_cv_dlopen="dyld"
17733 lt_cv_dlopen_libs=
17734 lt_cv_dlopen_self=yes
17735
17736fi
17737
17738 ;;
17739
17740 *)
17741 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000017742if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017743 lt_cv_dlopen="shl_load"
17744else
17745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17746$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017747if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017748 $as_echo_n "(cached) " >&6
17749else
17750 ac_check_lib_save_LIBS=$LIBS
17751LIBS="-ldld $LIBS"
17752cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17753/* end confdefs.h. */
17754
17755/* Override any GCC internal prototype to avoid an error.
17756 Use char because int might match the return type of a GCC
17757 builtin and then its argument prototype would still apply. */
17758#ifdef __cplusplus
17759extern "C"
17760#endif
17761char shl_load ();
17762int
17763main ()
17764{
17765return shl_load ();
17766 ;
17767 return 0;
17768}
17769_ACEOF
17770if ac_fn_c_try_link "$LINENO"; then :
17771 ac_cv_lib_dld_shl_load=yes
17772else
17773 ac_cv_lib_dld_shl_load=no
17774fi
17775rm -f core conftest.err conftest.$ac_objext \
17776 conftest$ac_exeext conftest.$ac_ext
17777LIBS=$ac_check_lib_save_LIBS
17778fi
17779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17780$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000017781if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017782 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17783else
17784 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000017785if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017786 lt_cv_dlopen="dlopen"
17787else
17788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17789$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017790if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017791 $as_echo_n "(cached) " >&6
17792else
17793 ac_check_lib_save_LIBS=$LIBS
17794LIBS="-ldl $LIBS"
17795cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17796/* end confdefs.h. */
17797
17798/* Override any GCC internal prototype to avoid an error.
17799 Use char because int might match the return type of a GCC
17800 builtin and then its argument prototype would still apply. */
17801#ifdef __cplusplus
17802extern "C"
17803#endif
17804char dlopen ();
17805int
17806main ()
17807{
17808return dlopen ();
17809 ;
17810 return 0;
17811}
17812_ACEOF
17813if ac_fn_c_try_link "$LINENO"; then :
17814 ac_cv_lib_dl_dlopen=yes
17815else
17816 ac_cv_lib_dl_dlopen=no
17817fi
17818rm -f core conftest.err conftest.$ac_objext \
17819 conftest$ac_exeext conftest.$ac_ext
17820LIBS=$ac_check_lib_save_LIBS
17821fi
17822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17823$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017824if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017825 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17826else
17827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17828$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017829if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017830 $as_echo_n "(cached) " >&6
17831else
17832 ac_check_lib_save_LIBS=$LIBS
17833LIBS="-lsvld $LIBS"
17834cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17835/* end confdefs.h. */
17836
17837/* Override any GCC internal prototype to avoid an error.
17838 Use char because int might match the return type of a GCC
17839 builtin and then its argument prototype would still apply. */
17840#ifdef __cplusplus
17841extern "C"
17842#endif
17843char dlopen ();
17844int
17845main ()
17846{
17847return dlopen ();
17848 ;
17849 return 0;
17850}
17851_ACEOF
17852if ac_fn_c_try_link "$LINENO"; then :
17853 ac_cv_lib_svld_dlopen=yes
17854else
17855 ac_cv_lib_svld_dlopen=no
17856fi
17857rm -f core conftest.err conftest.$ac_objext \
17858 conftest$ac_exeext conftest.$ac_ext
17859LIBS=$ac_check_lib_save_LIBS
17860fi
17861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17862$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017863if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017864 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17865else
17866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17867$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017868if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017869 $as_echo_n "(cached) " >&6
17870else
17871 ac_check_lib_save_LIBS=$LIBS
17872LIBS="-ldld $LIBS"
17873cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17874/* end confdefs.h. */
17875
17876/* Override any GCC internal prototype to avoid an error.
17877 Use char because int might match the return type of a GCC
17878 builtin and then its argument prototype would still apply. */
17879#ifdef __cplusplus
17880extern "C"
17881#endif
17882char dld_link ();
17883int
17884main ()
17885{
17886return dld_link ();
17887 ;
17888 return 0;
17889}
17890_ACEOF
17891if ac_fn_c_try_link "$LINENO"; then :
17892 ac_cv_lib_dld_dld_link=yes
17893else
17894 ac_cv_lib_dld_dld_link=no
17895fi
17896rm -f core conftest.err conftest.$ac_objext \
17897 conftest$ac_exeext conftest.$ac_ext
17898LIBS=$ac_check_lib_save_LIBS
17899fi
17900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17901$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000017902if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017903 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17904fi
17905
17906
17907fi
17908
17909
17910fi
17911
17912
17913fi
17914
17915
17916fi
17917
17918
17919fi
17920
17921 ;;
17922 esac
17923
17924 if test "x$lt_cv_dlopen" != xno; then
17925 enable_dlopen=yes
17926 else
17927 enable_dlopen=no
17928 fi
17929
17930 case $lt_cv_dlopen in
17931 dlopen)
17932 save_CPPFLAGS="$CPPFLAGS"
17933 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17934
17935 save_LDFLAGS="$LDFLAGS"
17936 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17937
17938 save_LIBS="$LIBS"
17939 LIBS="$lt_cv_dlopen_libs $LIBS"
17940
17941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17942$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017943if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017944 $as_echo_n "(cached) " >&6
17945else
17946 if test "$cross_compiling" = yes; then :
17947 lt_cv_dlopen_self=cross
17948else
17949 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17950 lt_status=$lt_dlunknown
17951 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017952#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017953#include "confdefs.h"
17954
17955#if HAVE_DLFCN_H
17956#include <dlfcn.h>
17957#endif
17958
17959#include <stdio.h>
17960
17961#ifdef RTLD_GLOBAL
17962# define LT_DLGLOBAL RTLD_GLOBAL
17963#else
17964# ifdef DL_GLOBAL
17965# define LT_DLGLOBAL DL_GLOBAL
17966# else
17967# define LT_DLGLOBAL 0
17968# endif
17969#endif
17970
17971/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17972 find out it does not work in some platform. */
17973#ifndef LT_DLLAZY_OR_NOW
17974# ifdef RTLD_LAZY
17975# define LT_DLLAZY_OR_NOW RTLD_LAZY
17976# else
17977# ifdef DL_LAZY
17978# define LT_DLLAZY_OR_NOW DL_LAZY
17979# else
17980# ifdef RTLD_NOW
17981# define LT_DLLAZY_OR_NOW RTLD_NOW
17982# else
17983# ifdef DL_NOW
17984# define LT_DLLAZY_OR_NOW DL_NOW
17985# else
17986# define LT_DLLAZY_OR_NOW 0
17987# endif
17988# endif
17989# endif
17990# endif
17991#endif
17992
cristy0c60a692010-11-04 01:09:47 +000017993/* When -fvisbility=hidden is used, assume the code has been annotated
17994 correspondingly for the symbols needed. */
17995#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017996int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017997#endif
17998
cristyda16f162011-02-19 23:52:17 +000017999int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000018000int main ()
18001{
18002 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18003 int status = $lt_dlunknown;
18004
18005 if (self)
18006 {
18007 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000018008 else
18009 {
18010 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18011 else puts (dlerror ());
18012 }
cristy73bd4a52010-10-05 11:24:23 +000018013 /* dlclose (self); */
18014 }
18015 else
18016 puts (dlerror ());
18017
18018 return status;
18019}
18020_LT_EOF
18021 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18022 (eval $ac_link) 2>&5
18023 ac_status=$?
18024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18025 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18026 (./conftest; exit; ) >&5 2>/dev/null
18027 lt_status=$?
18028 case x$lt_status in
18029 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18030 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18031 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18032 esac
18033 else :
18034 # compilation failed
18035 lt_cv_dlopen_self=no
18036 fi
18037fi
18038rm -fr conftest*
18039
18040
18041fi
18042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18043$as_echo "$lt_cv_dlopen_self" >&6; }
18044
18045 if test "x$lt_cv_dlopen_self" = xyes; then
18046 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18048$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018049if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018050 $as_echo_n "(cached) " >&6
18051else
18052 if test "$cross_compiling" = yes; then :
18053 lt_cv_dlopen_self_static=cross
18054else
18055 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18056 lt_status=$lt_dlunknown
18057 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000018058#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000018059#include "confdefs.h"
18060
18061#if HAVE_DLFCN_H
18062#include <dlfcn.h>
18063#endif
18064
18065#include <stdio.h>
18066
18067#ifdef RTLD_GLOBAL
18068# define LT_DLGLOBAL RTLD_GLOBAL
18069#else
18070# ifdef DL_GLOBAL
18071# define LT_DLGLOBAL DL_GLOBAL
18072# else
18073# define LT_DLGLOBAL 0
18074# endif
18075#endif
18076
18077/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18078 find out it does not work in some platform. */
18079#ifndef LT_DLLAZY_OR_NOW
18080# ifdef RTLD_LAZY
18081# define LT_DLLAZY_OR_NOW RTLD_LAZY
18082# else
18083# ifdef DL_LAZY
18084# define LT_DLLAZY_OR_NOW DL_LAZY
18085# else
18086# ifdef RTLD_NOW
18087# define LT_DLLAZY_OR_NOW RTLD_NOW
18088# else
18089# ifdef DL_NOW
18090# define LT_DLLAZY_OR_NOW DL_NOW
18091# else
18092# define LT_DLLAZY_OR_NOW 0
18093# endif
18094# endif
18095# endif
18096# endif
18097#endif
18098
cristy0c60a692010-11-04 01:09:47 +000018099/* When -fvisbility=hidden is used, assume the code has been annotated
18100 correspondingly for the symbols needed. */
18101#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000018102int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000018103#endif
18104
cristyda16f162011-02-19 23:52:17 +000018105int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000018106int main ()
18107{
18108 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18109 int status = $lt_dlunknown;
18110
18111 if (self)
18112 {
18113 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000018114 else
18115 {
18116 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18117 else puts (dlerror ());
18118 }
cristy73bd4a52010-10-05 11:24:23 +000018119 /* dlclose (self); */
18120 }
18121 else
18122 puts (dlerror ());
18123
18124 return status;
18125}
18126_LT_EOF
18127 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18128 (eval $ac_link) 2>&5
18129 ac_status=$?
18130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18131 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18132 (./conftest; exit; ) >&5 2>/dev/null
18133 lt_status=$?
18134 case x$lt_status in
18135 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18136 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18137 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18138 esac
18139 else :
18140 # compilation failed
18141 lt_cv_dlopen_self_static=no
18142 fi
18143fi
18144rm -fr conftest*
18145
18146
18147fi
18148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18149$as_echo "$lt_cv_dlopen_self_static" >&6; }
18150 fi
18151
18152 CPPFLAGS="$save_CPPFLAGS"
18153 LDFLAGS="$save_LDFLAGS"
18154 LIBS="$save_LIBS"
18155 ;;
18156 esac
18157
18158 case $lt_cv_dlopen_self in
18159 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18160 *) enable_dlopen_self=unknown ;;
18161 esac
18162
18163 case $lt_cv_dlopen_self_static in
18164 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18165 *) enable_dlopen_self_static=unknown ;;
18166 esac
18167fi
18168
18169
18170
18171
18172
18173
18174
18175
18176
18177
18178
18179
18180
18181
18182
18183
18184
18185striplib=
18186old_striplib=
18187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18188$as_echo_n "checking whether stripping libraries is possible... " >&6; }
18189if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18190 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18191 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18193$as_echo "yes" >&6; }
18194else
18195# FIXME - insert some real tests, host_os isn't really good enough
18196 case $host_os in
18197 darwin*)
18198 if test -n "$STRIP" ; then
18199 striplib="$STRIP -x"
18200 old_striplib="$STRIP -S"
18201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18202$as_echo "yes" >&6; }
18203 else
18204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18205$as_echo "no" >&6; }
18206 fi
18207 ;;
18208 *)
18209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18210$as_echo "no" >&6; }
18211 ;;
18212 esac
18213fi
18214
18215
18216
18217
18218
18219
18220
18221
18222
18223
18224
18225
18226 # Report which library types will actually be built
18227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18228$as_echo_n "checking if libtool supports shared libraries... " >&6; }
18229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18230$as_echo "$can_build_shared" >&6; }
18231
18232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18233$as_echo_n "checking whether to build shared libraries... " >&6; }
18234 test "$can_build_shared" = "no" && enable_shared=no
18235
18236 # On AIX, shared libraries and static libraries use the same namespace, and
18237 # are all built from PIC.
18238 case $host_os in
18239 aix3*)
18240 test "$enable_shared" = yes && enable_static=no
18241 if test -n "$RANLIB"; then
18242 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18243 postinstall_cmds='$RANLIB $lib'
18244 fi
18245 ;;
18246
18247 aix[4-9]*)
18248 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18249 test "$enable_shared" = yes && enable_static=no
18250 fi
18251 ;;
18252 esac
18253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18254$as_echo "$enable_shared" >&6; }
18255
18256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18257$as_echo_n "checking whether to build static libraries... " >&6; }
18258 # Make sure either enable_shared or enable_static is yes.
18259 test "$enable_shared" = yes || enable_static=yes
18260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18261$as_echo "$enable_static" >&6; }
18262
18263
18264
18265
18266fi
18267ac_ext=c
18268ac_cpp='$CPP $CPPFLAGS'
18269ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18270ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18271ac_compiler_gnu=$ac_cv_c_compiler_gnu
18272
18273CC="$lt_save_CC"
18274
cristy0c60a692010-11-04 01:09:47 +000018275 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18276 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18277 (test "X$CXX" != "Xg++"))) ; then
18278 ac_ext=cpp
18279ac_cpp='$CXXCPP $CPPFLAGS'
18280ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18281ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18282ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18284$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18285if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000018286 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000018287 $as_echo_n "(cached) " >&6
18288else
18289 # Double quotes because CXXCPP needs to be expanded
18290 for CXXCPP in "$CXX -E" "/lib/cpp"
18291 do
18292 ac_preproc_ok=false
18293for ac_cxx_preproc_warn_flag in '' yes
18294do
18295 # Use a header file that comes with gcc, so configuring glibc
18296 # with a fresh cross-compiler works.
18297 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18298 # <limits.h> exists even on freestanding compilers.
18299 # On the NeXT, cc -E runs the code through the compiler's parser,
18300 # not just through cpp. "Syntax error" is here to catch this case.
18301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18302/* end confdefs.h. */
18303#ifdef __STDC__
18304# include <limits.h>
18305#else
18306# include <assert.h>
18307#endif
18308 Syntax error
18309_ACEOF
18310if ac_fn_cxx_try_cpp "$LINENO"; then :
18311
18312else
18313 # Broken: fails on valid input.
18314continue
18315fi
cristyda16f162011-02-19 23:52:17 +000018316rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018317
18318 # OK, works on sane cases. Now check whether nonexistent headers
18319 # can be detected and how.
18320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18321/* end confdefs.h. */
18322#include <ac_nonexistent.h>
18323_ACEOF
18324if ac_fn_cxx_try_cpp "$LINENO"; then :
18325 # Broken: success on invalid input.
18326continue
18327else
18328 # Passes both tests.
18329ac_preproc_ok=:
18330break
18331fi
cristyda16f162011-02-19 23:52:17 +000018332rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018333
18334done
18335# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000018336rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018337if $ac_preproc_ok; then :
18338 break
18339fi
18340
18341 done
18342 ac_cv_prog_CXXCPP=$CXXCPP
18343
18344fi
18345 CXXCPP=$ac_cv_prog_CXXCPP
18346else
18347 ac_cv_prog_CXXCPP=$CXXCPP
18348fi
18349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18350$as_echo "$CXXCPP" >&6; }
18351ac_preproc_ok=false
18352for ac_cxx_preproc_warn_flag in '' yes
18353do
18354 # Use a header file that comes with gcc, so configuring glibc
18355 # with a fresh cross-compiler works.
18356 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18357 # <limits.h> exists even on freestanding compilers.
18358 # On the NeXT, cc -E runs the code through the compiler's parser,
18359 # not just through cpp. "Syntax error" is here to catch this case.
18360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18361/* end confdefs.h. */
18362#ifdef __STDC__
18363# include <limits.h>
18364#else
18365# include <assert.h>
18366#endif
18367 Syntax error
18368_ACEOF
18369if ac_fn_cxx_try_cpp "$LINENO"; then :
18370
18371else
18372 # Broken: fails on valid input.
18373continue
18374fi
cristyda16f162011-02-19 23:52:17 +000018375rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018376
18377 # OK, works on sane cases. Now check whether nonexistent headers
18378 # can be detected and how.
18379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18380/* end confdefs.h. */
18381#include <ac_nonexistent.h>
18382_ACEOF
18383if ac_fn_cxx_try_cpp "$LINENO"; then :
18384 # Broken: success on invalid input.
18385continue
18386else
18387 # Passes both tests.
18388ac_preproc_ok=:
18389break
18390fi
cristyda16f162011-02-19 23:52:17 +000018391rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018392
18393done
18394# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000018395rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018396if $ac_preproc_ok; then :
18397
18398else
18399 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18400$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18401as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
18402See \`config.log' for more details" "$LINENO" 5; }
18403fi
18404
18405ac_ext=c
18406ac_cpp='$CPP $CPPFLAGS'
18407ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18408ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18409ac_compiler_gnu=$ac_cv_c_compiler_gnu
18410
18411else
18412 _lt_caught_CXX_error=yes
18413fi
cristy73bd4a52010-10-05 11:24:23 +000018414
18415ac_ext=cpp
18416ac_cpp='$CXXCPP $CPPFLAGS'
18417ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18418ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18419ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18420
18421archive_cmds_need_lc_CXX=no
18422allow_undefined_flag_CXX=
18423always_export_symbols_CXX=no
18424archive_expsym_cmds_CXX=
18425compiler_needs_object_CXX=no
18426export_dynamic_flag_spec_CXX=
18427hardcode_direct_CXX=no
18428hardcode_direct_absolute_CXX=no
18429hardcode_libdir_flag_spec_CXX=
cristy73bd4a52010-10-05 11:24:23 +000018430hardcode_libdir_separator_CXX=
18431hardcode_minus_L_CXX=no
18432hardcode_shlibpath_var_CXX=unsupported
18433hardcode_automatic_CXX=no
18434inherit_rpath_CXX=no
18435module_cmds_CXX=
18436module_expsym_cmds_CXX=
18437link_all_deplibs_CXX=unknown
18438old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000018439reload_flag_CXX=$reload_flag
18440reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000018441no_undefined_flag_CXX=
18442whole_archive_flag_spec_CXX=
18443enable_shared_with_static_runtimes_CXX=no
18444
18445# Source file extension for C++ test sources.
18446ac_ext=cpp
18447
18448# Object file extension for compiled C++ test sources.
18449objext=o
18450objext_CXX=$objext
18451
18452# No sense in running all these tests if we already determined that
18453# the CXX compiler isn't working. Some variables (like enable_shared)
18454# are currently assumed to apply to all compilers on this platform,
18455# and will be corrupted by setting them based on a non-working compiler.
18456if test "$_lt_caught_CXX_error" != yes; then
18457 # Code to be used in simple compile tests
18458 lt_simple_compile_test_code="int some_variable = 0;"
18459
18460 # Code to be used in simple link tests
18461 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18462
18463 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18464
18465
18466
18467
18468
18469
18470# If no C compiler was specified, use CC.
18471LTCC=${LTCC-"$CC"}
18472
18473# If no C compiler flags were specified, use CFLAGS.
18474LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18475
18476# Allow CC to be a program name with arguments.
18477compiler=$CC
18478
18479
18480 # save warnings/boilerplate of simple test code
18481 ac_outfile=conftest.$ac_objext
18482echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18483eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18484_lt_compiler_boilerplate=`cat conftest.err`
18485$RM conftest*
18486
18487 ac_outfile=conftest.$ac_objext
18488echo "$lt_simple_link_test_code" >conftest.$ac_ext
18489eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18490_lt_linker_boilerplate=`cat conftest.err`
18491$RM -r conftest*
18492
18493
18494 # Allow CC to be a program name with arguments.
18495 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000018496 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018497 lt_save_LD=$LD
18498 lt_save_GCC=$GCC
18499 GCC=$GXX
18500 lt_save_with_gnu_ld=$with_gnu_ld
18501 lt_save_path_LD=$lt_cv_path_LD
18502 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18503 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18504 else
18505 $as_unset lt_cv_prog_gnu_ld
18506 fi
18507 if test -n "${lt_cv_path_LDCXX+set}"; then
18508 lt_cv_path_LD=$lt_cv_path_LDCXX
18509 else
18510 $as_unset lt_cv_path_LD
18511 fi
18512 test -z "${LDCXX+set}" || LD=$LDCXX
18513 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000018514 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018515 compiler=$CC
18516 compiler_CXX=$CC
18517 for cc_temp in $compiler""; do
18518 case $cc_temp in
18519 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18520 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18521 \-*) ;;
18522 *) break;;
18523 esac
18524done
cristy0c60a692010-11-04 01:09:47 +000018525cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000018526
18527
18528 if test -n "$compiler"; then
18529 # We don't want -fno-exception when compiling C++ code, so set the
18530 # no_builtin_flag separately
18531 if test "$GXX" = yes; then
18532 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18533 else
18534 lt_prog_compiler_no_builtin_flag_CXX=
18535 fi
18536
18537 if test "$GXX" = yes; then
18538 # Set up default GNU C++ configuration
18539
18540
18541
18542# Check whether --with-gnu-ld was given.
18543if test "${with_gnu_ld+set}" = set; then :
18544 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18545else
18546 with_gnu_ld=no
18547fi
18548
18549ac_prog=ld
18550if test "$GCC" = yes; then
18551 # Check if gcc -print-prog-name=ld gives a path.
18552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18553$as_echo_n "checking for ld used by $CC... " >&6; }
18554 case $host in
18555 *-*-mingw*)
18556 # gcc leaves a trailing carriage return which upsets mingw
18557 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18558 *)
18559 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18560 esac
18561 case $ac_prog in
18562 # Accept absolute paths.
18563 [\\/]* | ?:[\\/]*)
18564 re_direlt='/[^/][^/]*/\.\./'
18565 # Canonicalize the pathname of ld
18566 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18567 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18568 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18569 done
18570 test -z "$LD" && LD="$ac_prog"
18571 ;;
18572 "")
18573 # If it fails, then pretend we aren't using GCC.
18574 ac_prog=ld
18575 ;;
18576 *)
18577 # If it is relative, then search for the first ld in PATH.
18578 with_gnu_ld=unknown
18579 ;;
18580 esac
18581elif test "$with_gnu_ld" = yes; then
18582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18583$as_echo_n "checking for GNU ld... " >&6; }
18584else
18585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18586$as_echo_n "checking for non-GNU ld... " >&6; }
18587fi
cristyda16f162011-02-19 23:52:17 +000018588if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018589 $as_echo_n "(cached) " >&6
18590else
18591 if test -z "$LD"; then
18592 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18593 for ac_dir in $PATH; do
18594 IFS="$lt_save_ifs"
18595 test -z "$ac_dir" && ac_dir=.
18596 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18597 lt_cv_path_LD="$ac_dir/$ac_prog"
18598 # Check to see if the program is GNU ld. I'd rather use --version,
18599 # but apparently some variants of GNU ld only accept -v.
18600 # Break only if it was the GNU/non-GNU ld that we prefer.
18601 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18602 *GNU* | *'with BFD'*)
18603 test "$with_gnu_ld" != no && break
18604 ;;
18605 *)
18606 test "$with_gnu_ld" != yes && break
18607 ;;
18608 esac
18609 fi
18610 done
18611 IFS="$lt_save_ifs"
18612else
18613 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18614fi
18615fi
18616
18617LD="$lt_cv_path_LD"
18618if test -n "$LD"; then
18619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18620$as_echo "$LD" >&6; }
18621else
18622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18623$as_echo "no" >&6; }
18624fi
cristy98dddb52010-11-04 00:30:15 +000018625test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000018626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18627$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018628if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018629 $as_echo_n "(cached) " >&6
18630else
18631 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18632case `$LD -v 2>&1 </dev/null` in
18633*GNU* | *'with BFD'*)
18634 lt_cv_prog_gnu_ld=yes
18635 ;;
18636*)
18637 lt_cv_prog_gnu_ld=no
18638 ;;
18639esac
18640fi
18641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18642$as_echo "$lt_cv_prog_gnu_ld" >&6; }
18643with_gnu_ld=$lt_cv_prog_gnu_ld
18644
18645
18646
18647
18648
18649
18650
18651 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18652 # archiving commands below assume that GNU ld is being used.
18653 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000018654 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18655 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 +000018656
18657 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18658 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18659
18660 # If archive_cmds runs LD, not CC, wlarc should be empty
18661 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18662 # investigate it a little bit more. (MM)
18663 wlarc='${wl}'
18664
18665 # ancient GNU ld didn't support --whole-archive et. al.
18666 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18667 $GREP 'no-whole-archive' > /dev/null; then
18668 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18669 else
18670 whole_archive_flag_spec_CXX=
18671 fi
18672 else
18673 with_gnu_ld=no
18674 wlarc=
18675
18676 # A generic and very simple default shared library creation
18677 # command for GNU C++ for the case where it uses the native
18678 # linker, instead of GNU ld. If possible, this setting should
18679 # overridden to take advantage of the native linker features on
18680 # the platform it is being used on.
18681 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18682 fi
18683
18684 # Commands to make compiler produce verbose output that lists
18685 # what "hidden" libraries, object files and flags are used when
18686 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018687 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018688
18689 else
18690 GXX=no
18691 with_gnu_ld=no
18692 wlarc=
18693 fi
18694
18695 # PORTME: fill in a description of your system's C++ link characteristics
18696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18697$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18698 ld_shlibs_CXX=yes
18699 case $host_os in
18700 aix3*)
18701 # FIXME: insert proper C++ library support
18702 ld_shlibs_CXX=no
18703 ;;
18704 aix[4-9]*)
18705 if test "$host_cpu" = ia64; then
18706 # On IA64, the linker does run time linking by default, so we don't
18707 # have to do anything special.
18708 aix_use_runtimelinking=no
18709 exp_sym_flag='-Bexport'
18710 no_entry_flag=""
18711 else
18712 aix_use_runtimelinking=no
18713
18714 # Test if we are trying to use run time linking or normal
18715 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18716 # need to do runtime linking.
18717 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18718 for ld_flag in $LDFLAGS; do
18719 case $ld_flag in
18720 *-brtl*)
18721 aix_use_runtimelinking=yes
18722 break
18723 ;;
18724 esac
18725 done
18726 ;;
18727 esac
18728
18729 exp_sym_flag='-bexport'
18730 no_entry_flag='-bnoentry'
18731 fi
18732
18733 # When large executables or shared objects are built, AIX ld can
18734 # have problems creating the table of contents. If linking a library
18735 # or program results in "error TOC overflow" add -mminimal-toc to
18736 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18737 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18738
18739 archive_cmds_CXX=''
18740 hardcode_direct_CXX=yes
18741 hardcode_direct_absolute_CXX=yes
18742 hardcode_libdir_separator_CXX=':'
18743 link_all_deplibs_CXX=yes
18744 file_list_spec_CXX='${wl}-f,'
18745
18746 if test "$GXX" = yes; then
18747 case $host_os in aix4.[012]|aix4.[012].*)
18748 # We only want to do this on AIX 4.2 and lower, the check
18749 # below for broken collect2 doesn't work under 4.3+
18750 collect2name=`${CC} -print-prog-name=collect2`
18751 if test -f "$collect2name" &&
18752 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18753 then
18754 # We have reworked collect2
18755 :
18756 else
18757 # We have old collect2
18758 hardcode_direct_CXX=unsupported
18759 # It fails to find uninstalled libraries when the uninstalled
18760 # path is not listed in the libpath. Setting hardcode_minus_L
18761 # to unsupported forces relinking
18762 hardcode_minus_L_CXX=yes
18763 hardcode_libdir_flag_spec_CXX='-L$libdir'
18764 hardcode_libdir_separator_CXX=
18765 fi
18766 esac
18767 shared_flag='-shared'
18768 if test "$aix_use_runtimelinking" = yes; then
18769 shared_flag="$shared_flag "'${wl}-G'
18770 fi
18771 else
18772 # not using gcc
18773 if test "$host_cpu" = ia64; then
18774 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18775 # chokes on -Wl,-G. The following line is correct:
18776 shared_flag='-G'
18777 else
18778 if test "$aix_use_runtimelinking" = yes; then
18779 shared_flag='${wl}-G'
18780 else
18781 shared_flag='${wl}-bM:SRE'
18782 fi
18783 fi
18784 fi
18785
18786 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18787 # It seems that -bexpall does not export symbols beginning with
18788 # underscore (_), so it is better to generate a list of symbols to
18789 # export.
18790 always_export_symbols_CXX=yes
18791 if test "$aix_use_runtimelinking" = yes; then
18792 # Warning - without using the other runtime loading flags (-brtl),
18793 # -berok will link without error, but may produce a broken library.
18794 allow_undefined_flag_CXX='-berok'
18795 # Determine the default libpath from the value encoded in an empty
18796 # executable.
cristyda16f162011-02-19 23:52:17 +000018797 if test "${lt_cv_aix_libpath+set}" = set; then
18798 aix_libpath=$lt_cv_aix_libpath
18799else
18800 if ${lt_cv_aix_libpath__CXX+:} false; then :
18801 $as_echo_n "(cached) " >&6
18802else
18803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018804/* end confdefs.h. */
18805
18806int
18807main ()
18808{
18809
18810 ;
18811 return 0;
18812}
18813_ACEOF
18814if ac_fn_cxx_try_link "$LINENO"; then :
18815
cristyda16f162011-02-19 23:52:17 +000018816 lt_aix_libpath_sed='
18817 /Import File Strings/,/^$/ {
18818 /^0/ {
18819 s/^0 *\([^ ]*\) *$/\1/
18820 p
18821 }
18822 }'
18823 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18824 # Check for a 64-bit object if we didn't find anything.
18825 if test -z "$lt_cv_aix_libpath__CXX"; then
18826 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18827 fi
cristy73bd4a52010-10-05 11:24:23 +000018828fi
18829rm -f core conftest.err conftest.$ac_objext \
18830 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018831 if test -z "$lt_cv_aix_libpath__CXX"; then
18832 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18833 fi
18834
18835fi
18836
18837 aix_libpath=$lt_cv_aix_libpath__CXX
18838fi
cristy73bd4a52010-10-05 11:24:23 +000018839
18840 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18841
cristy0c60a692010-11-04 01:09:47 +000018842 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 +000018843 else
18844 if test "$host_cpu" = ia64; then
18845 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18846 allow_undefined_flag_CXX="-z nodefs"
18847 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"
18848 else
18849 # Determine the default libpath from the value encoded in an
18850 # empty executable.
cristyda16f162011-02-19 23:52:17 +000018851 if test "${lt_cv_aix_libpath+set}" = set; then
18852 aix_libpath=$lt_cv_aix_libpath
18853else
18854 if ${lt_cv_aix_libpath__CXX+:} false; then :
18855 $as_echo_n "(cached) " >&6
18856else
18857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018858/* end confdefs.h. */
18859
18860int
18861main ()
18862{
18863
18864 ;
18865 return 0;
18866}
18867_ACEOF
18868if ac_fn_cxx_try_link "$LINENO"; then :
18869
cristyda16f162011-02-19 23:52:17 +000018870 lt_aix_libpath_sed='
18871 /Import File Strings/,/^$/ {
18872 /^0/ {
18873 s/^0 *\([^ ]*\) *$/\1/
18874 p
18875 }
18876 }'
18877 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18878 # Check for a 64-bit object if we didn't find anything.
18879 if test -z "$lt_cv_aix_libpath__CXX"; then
18880 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18881 fi
cristy73bd4a52010-10-05 11:24:23 +000018882fi
18883rm -f core conftest.err conftest.$ac_objext \
18884 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018885 if test -z "$lt_cv_aix_libpath__CXX"; then
18886 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18887 fi
18888
18889fi
18890
18891 aix_libpath=$lt_cv_aix_libpath__CXX
18892fi
cristy73bd4a52010-10-05 11:24:23 +000018893
18894 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18895 # Warning - without using the other run time loading flags,
18896 # -berok will link without error, but may produce a broken library.
18897 no_undefined_flag_CXX=' ${wl}-bernotok'
18898 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000018899 if test "$with_gnu_ld" = yes; then
18900 # We only use this code for GNU lds that support --whole-archive.
18901 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18902 else
18903 # Exported symbols can be pulled into shared objects from archives
18904 whole_archive_flag_spec_CXX='$convenience'
18905 fi
cristy73bd4a52010-10-05 11:24:23 +000018906 archive_cmds_need_lc_CXX=yes
18907 # This is similar to how AIX traditionally builds its shared
18908 # libraries.
18909 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'
18910 fi
18911 fi
18912 ;;
18913
18914 beos*)
18915 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18916 allow_undefined_flag_CXX=unsupported
18917 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18918 # support --undefined. This deserves some investigation. FIXME
18919 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18920 else
18921 ld_shlibs_CXX=no
18922 fi
18923 ;;
18924
18925 chorus*)
18926 case $cc_basename in
18927 *)
18928 # FIXME: insert proper C++ library support
18929 ld_shlibs_CXX=no
18930 ;;
18931 esac
18932 ;;
18933
18934 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000018935 case $GXX,$cc_basename in
18936 ,cl* | no,cl*)
18937 # Native MSVC
18938 # hardcode_libdir_flag_spec is actually meaningless, as there is
18939 # no search path for DLLs.
18940 hardcode_libdir_flag_spec_CXX=' '
18941 allow_undefined_flag_CXX=unsupported
18942 always_export_symbols_CXX=yes
18943 file_list_spec_CXX='@'
18944 # Tell ltmain to make .lib files, not .a files.
18945 libext=lib
18946 # Tell ltmain to make .dll files, not .so files.
18947 shrext_cmds=".dll"
18948 # FIXME: Setting linknames here is a bad hack.
18949 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
18950 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18951 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
18952 else
18953 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
18954 fi~
18955 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
18956 linknames='
18957 # The linker will not automatically build a static lib if we build a DLL.
18958 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
18959 enable_shared_with_static_runtimes_CXX=yes
18960 # Don't use ranlib
18961 old_postinstall_cmds_CXX='chmod 644 $oldlib'
18962 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
18963 lt_tool_outputfile="@TOOL_OUTPUT@"~
18964 case $lt_outputfile in
18965 *.exe|*.EXE) ;;
18966 *)
18967 lt_outputfile="$lt_outputfile.exe"
18968 lt_tool_outputfile="$lt_tool_outputfile.exe"
18969 ;;
18970 esac~
18971 func_to_tool_file "$lt_outputfile"~
18972 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
18973 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
18974 $RM "$lt_outputfile.manifest";
18975 fi'
18976 ;;
18977 *)
18978 # g++
18979 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18980 # as there is no search path for DLLs.
18981 hardcode_libdir_flag_spec_CXX='-L$libdir'
18982 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18983 allow_undefined_flag_CXX=unsupported
18984 always_export_symbols_CXX=no
18985 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000018986
cristyda16f162011-02-19 23:52:17 +000018987 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18988 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'
18989 # If the export-symbols file already is a .def file (1st line
18990 # is EXPORTS), use it as is; otherwise, prepend...
18991 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18992 cp $export_symbols $output_objdir/$soname.def;
18993 else
18994 echo EXPORTS > $output_objdir/$soname.def;
18995 cat $export_symbols >> $output_objdir/$soname.def;
18996 fi~
18997 $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'
18998 else
18999 ld_shlibs_CXX=no
19000 fi
19001 ;;
19002 esac
19003 ;;
cristy73bd4a52010-10-05 11:24:23 +000019004 darwin* | rhapsody*)
19005
19006
19007 archive_cmds_need_lc_CXX=no
19008 hardcode_direct_CXX=no
19009 hardcode_automatic_CXX=yes
19010 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000019011 if test "$lt_cv_ld_force_load" = "yes"; then
19012 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 +000019013
cristy0c60a692010-11-04 01:09:47 +000019014 else
19015 whole_archive_flag_spec_CXX=''
19016 fi
cristy73bd4a52010-10-05 11:24:23 +000019017 link_all_deplibs_CXX=yes
19018 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19019 case $cc_basename in
19020 ifort*) _lt_dar_can_shared=yes ;;
19021 *) _lt_dar_can_shared=$GCC ;;
19022 esac
19023 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000019024 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000019025 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}"
19026 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19027 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}"
19028 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}"
19029 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19030 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}"
19031 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}"
19032 fi
19033
19034 else
19035 ld_shlibs_CXX=no
19036 fi
19037
19038 ;;
19039
19040 dgux*)
19041 case $cc_basename in
19042 ec++*)
19043 # FIXME: insert proper C++ library support
19044 ld_shlibs_CXX=no
19045 ;;
19046 ghcx*)
19047 # Green Hills C++ Compiler
19048 # FIXME: insert proper C++ library support
19049 ld_shlibs_CXX=no
19050 ;;
19051 *)
19052 # FIXME: insert proper C++ library support
19053 ld_shlibs_CXX=no
19054 ;;
19055 esac
19056 ;;
19057
cristy99bd5232011-12-07 14:38:20 +000019058 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000019059 # C++ shared libraries reported to be fairly broken before
19060 # switch to ELF
19061 ld_shlibs_CXX=no
19062 ;;
19063
19064 freebsd-elf*)
19065 archive_cmds_need_lc_CXX=no
19066 ;;
19067
19068 freebsd* | dragonfly*)
19069 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19070 # conventions
19071 ld_shlibs_CXX=yes
19072 ;;
19073
19074 gnu*)
19075 ;;
19076
cristy0c60a692010-11-04 01:09:47 +000019077 haiku*)
19078 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19079 link_all_deplibs_CXX=yes
19080 ;;
19081
cristy73bd4a52010-10-05 11:24:23 +000019082 hpux9*)
19083 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19084 hardcode_libdir_separator_CXX=:
19085 export_dynamic_flag_spec_CXX='${wl}-E'
19086 hardcode_direct_CXX=yes
19087 hardcode_minus_L_CXX=yes # Not in the search PATH,
19088 # but as the default
19089 # location of the library.
19090
19091 case $cc_basename in
19092 CC*)
19093 # FIXME: insert proper C++ library support
19094 ld_shlibs_CXX=no
19095 ;;
19096 aCC*)
19097 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'
19098 # Commands to make compiler produce verbose output that lists
19099 # what "hidden" libraries, object files and flags are used when
19100 # linking a shared library.
19101 #
19102 # There doesn't appear to be a way to prevent this compiler from
19103 # explicitly linking system object files so we need to strip them
19104 # from the output so that they don't get included in the library
19105 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000019106 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 +000019107 ;;
19108 *)
19109 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000019110 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 +000019111 else
19112 # FIXME: insert proper C++ library support
19113 ld_shlibs_CXX=no
19114 fi
19115 ;;
19116 esac
19117 ;;
19118
19119 hpux10*|hpux11*)
19120 if test $with_gnu_ld = no; then
19121 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19122 hardcode_libdir_separator_CXX=:
19123
19124 case $host_cpu in
19125 hppa*64*|ia64*)
19126 ;;
19127 *)
19128 export_dynamic_flag_spec_CXX='${wl}-E'
19129 ;;
19130 esac
19131 fi
19132 case $host_cpu in
19133 hppa*64*|ia64*)
19134 hardcode_direct_CXX=no
19135 hardcode_shlibpath_var_CXX=no
19136 ;;
19137 *)
19138 hardcode_direct_CXX=yes
19139 hardcode_direct_absolute_CXX=yes
19140 hardcode_minus_L_CXX=yes # Not in the search PATH,
19141 # but as the default
19142 # location of the library.
19143 ;;
19144 esac
19145
19146 case $cc_basename in
19147 CC*)
19148 # FIXME: insert proper C++ library support
19149 ld_shlibs_CXX=no
19150 ;;
19151 aCC*)
19152 case $host_cpu in
19153 hppa*64*)
19154 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19155 ;;
19156 ia64*)
19157 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19158 ;;
19159 *)
19160 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19161 ;;
19162 esac
19163 # Commands to make compiler produce verbose output that lists
19164 # what "hidden" libraries, object files and flags are used when
19165 # linking a shared library.
19166 #
19167 # There doesn't appear to be a way to prevent this compiler from
19168 # explicitly linking system object files so we need to strip them
19169 # from the output so that they don't get included in the library
19170 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000019171 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 +000019172 ;;
19173 *)
19174 if test "$GXX" = yes; then
19175 if test $with_gnu_ld = no; then
19176 case $host_cpu in
19177 hppa*64*)
19178 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19179 ;;
19180 ia64*)
cristyda16f162011-02-19 23:52:17 +000019181 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 +000019182 ;;
19183 *)
cristyda16f162011-02-19 23:52:17 +000019184 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 +000019185 ;;
19186 esac
19187 fi
19188 else
19189 # FIXME: insert proper C++ library support
19190 ld_shlibs_CXX=no
19191 fi
19192 ;;
19193 esac
19194 ;;
19195
19196 interix[3-9]*)
19197 hardcode_direct_CXX=no
19198 hardcode_shlibpath_var_CXX=no
19199 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19200 export_dynamic_flag_spec_CXX='${wl}-E'
19201 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19202 # Instead, shared libraries are loaded at an image base (0x10000000 by
19203 # default) and relocated if they conflict, which is a slow very memory
19204 # consuming and fragmenting process. To avoid this, we pick a random,
19205 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19206 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19207 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'
19208 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'
19209 ;;
19210 irix5* | irix6*)
19211 case $cc_basename in
19212 CC*)
19213 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000019214 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 +000019215
19216 # Archives containing C++ object files must be created using
19217 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19218 # necessary to make sure instantiated templates are included
19219 # in the archive.
19220 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19221 ;;
19222 *)
19223 if test "$GXX" = yes; then
19224 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000019225 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 +000019226 else
cristyda16f162011-02-19 23:52:17 +000019227 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 +000019228 fi
19229 fi
19230 link_all_deplibs_CXX=yes
19231 ;;
19232 esac
19233 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19234 hardcode_libdir_separator_CXX=:
19235 inherit_rpath_CXX=yes
19236 ;;
19237
cristy0c60a692010-11-04 01:09:47 +000019238 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000019239 case $cc_basename in
19240 KCC*)
19241 # Kuck and Associates, Inc. (KAI) C++ Compiler
19242
19243 # KCC will only create a shared library if the output file
19244 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19245 # to its proper name (with version) after linking.
19246 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'
19247 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'
19248 # Commands to make compiler produce verbose output that lists
19249 # what "hidden" libraries, object files and flags are used when
19250 # linking a shared library.
19251 #
19252 # There doesn't appear to be a way to prevent this compiler from
19253 # explicitly linking system object files so we need to strip them
19254 # from the output so that they don't get included in the library
19255 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000019256 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 +000019257
19258 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19259 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19260
19261 # Archives containing C++ object files must be created using
19262 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19263 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19264 ;;
19265 icpc* | ecpc* )
19266 # Intel C++
19267 with_gnu_ld=yes
19268 # version 8.0 and above of icpc choke on multiply defined symbols
19269 # if we add $predep_objects and $postdep_objects, however 7.1 and
19270 # earlier do not add the objects themselves.
19271 case `$CC -V 2>&1` in
19272 *"Version 7."*)
19273 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19274 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'
19275 ;;
19276 *) # Version 8.0 or newer
19277 tmp_idyn=
19278 case $host_cpu in
19279 ia64*) tmp_idyn=' -i_dynamic';;
19280 esac
19281 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19282 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'
19283 ;;
19284 esac
19285 archive_cmds_need_lc_CXX=no
19286 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19287 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19288 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19289 ;;
19290 pgCC* | pgcpp*)
19291 # Portland Group C++ compiler
19292 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000019293 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000019294 prelink_cmds_CXX='tpldir=Template.dir~
19295 rm -rf $tpldir~
19296 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000019297 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000019298 old_archive_cmds_CXX='tpldir=Template.dir~
19299 rm -rf $tpldir~
19300 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000019301 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000019302 $RANLIB $oldlib'
19303 archive_cmds_CXX='tpldir=Template.dir~
19304 rm -rf $tpldir~
19305 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000019306 $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 +000019307 archive_expsym_cmds_CXX='tpldir=Template.dir~
19308 rm -rf $tpldir~
19309 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000019310 $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 +000019311 ;;
cristy0c60a692010-11-04 01:09:47 +000019312 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000019313 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19314 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'
19315 ;;
19316 esac
19317
19318 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19319 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000019320 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 +000019321 ;;
19322 cxx*)
19323 # Compaq C++
19324 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19325 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'
19326
19327 runpath_var=LD_RUN_PATH
19328 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19329 hardcode_libdir_separator_CXX=:
19330
19331 # Commands to make compiler produce verbose output that lists
19332 # what "hidden" libraries, object files and flags are used when
19333 # linking a shared library.
19334 #
19335 # There doesn't appear to be a way to prevent this compiler from
19336 # explicitly linking system object files so we need to strip them
19337 # from the output so that they don't get included in the library
19338 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000019339 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 +000019340 ;;
cristy0c60a692010-11-04 01:09:47 +000019341 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000019342 # IBM XL 8.0 on PPC, with GNU ld
19343 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19344 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19345 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19346 if test "x$supports_anon_versioning" = xyes; then
19347 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19348 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19349 echo "local: *; };" >> $output_objdir/$libname.ver~
19350 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19351 fi
19352 ;;
19353 *)
19354 case `$CC -V 2>&1 | sed 5q` in
19355 *Sun\ C*)
19356 # Sun C++ 5.9
19357 no_undefined_flag_CXX=' -zdefs'
19358 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19359 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'
19360 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000019361 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 +000019362 compiler_needs_object_CXX=yes
19363
19364 # Not sure whether something based on
19365 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19366 # would be better.
cristy0c60a692010-11-04 01:09:47 +000019367 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000019368
19369 # Archives containing C++ object files must be created using
19370 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19371 # necessary to make sure instantiated templates are included
19372 # in the archive.
19373 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19374 ;;
19375 esac
19376 ;;
19377 esac
19378 ;;
19379
19380 lynxos*)
19381 # FIXME: insert proper C++ library support
19382 ld_shlibs_CXX=no
19383 ;;
19384
19385 m88k*)
19386 # FIXME: insert proper C++ library support
19387 ld_shlibs_CXX=no
19388 ;;
19389
19390 mvs*)
19391 case $cc_basename in
19392 cxx*)
19393 # FIXME: insert proper C++ library support
19394 ld_shlibs_CXX=no
19395 ;;
19396 *)
19397 # FIXME: insert proper C++ library support
19398 ld_shlibs_CXX=no
19399 ;;
19400 esac
19401 ;;
19402
19403 netbsd*)
19404 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19405 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19406 wlarc=
19407 hardcode_libdir_flag_spec_CXX='-R$libdir'
19408 hardcode_direct_CXX=yes
19409 hardcode_shlibpath_var_CXX=no
19410 fi
19411 # Workaround some broken pre-1.5 toolchains
19412 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19413 ;;
19414
19415 *nto* | *qnx*)
19416 ld_shlibs_CXX=yes
19417 ;;
19418
19419 openbsd2*)
19420 # C++ shared libraries are fairly broken
19421 ld_shlibs_CXX=no
19422 ;;
19423
19424 openbsd*)
19425 if test -f /usr/libexec/ld.so; then
19426 hardcode_direct_CXX=yes
19427 hardcode_shlibpath_var_CXX=no
19428 hardcode_direct_absolute_CXX=yes
19429 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19430 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19431 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19432 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19433 export_dynamic_flag_spec_CXX='${wl}-E'
19434 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19435 fi
cristy0c60a692010-11-04 01:09:47 +000019436 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000019437 else
19438 ld_shlibs_CXX=no
19439 fi
19440 ;;
19441
19442 osf3* | osf4* | osf5*)
19443 case $cc_basename in
19444 KCC*)
19445 # Kuck and Associates, Inc. (KAI) C++ Compiler
19446
19447 # KCC will only create a shared library if the output file
19448 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19449 # to its proper name (with version) after linking.
19450 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'
19451
19452 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19453 hardcode_libdir_separator_CXX=:
19454
19455 # Archives containing C++ object files must be created using
19456 # the KAI C++ compiler.
19457 case $host in
19458 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19459 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19460 esac
19461 ;;
19462 RCC*)
19463 # Rational C++ 2.4.1
19464 # FIXME: insert proper C++ library support
19465 ld_shlibs_CXX=no
19466 ;;
19467 cxx*)
19468 case $host in
19469 osf3*)
19470 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000019471 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 +000019472 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19473 ;;
19474 *)
19475 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000019476 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 +000019477 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19478 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000019479 $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 +000019480 $RM $lib.exp'
19481 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19482 ;;
19483 esac
19484
19485 hardcode_libdir_separator_CXX=:
19486
19487 # Commands to make compiler produce verbose output that lists
19488 # what "hidden" libraries, object files and flags are used when
19489 # linking a shared library.
19490 #
19491 # There doesn't appear to be a way to prevent this compiler from
19492 # explicitly linking system object files so we need to strip them
19493 # from the output so that they don't get included in the library
19494 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000019495 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 +000019496 ;;
19497 *)
19498 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19499 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19500 case $host in
19501 osf3*)
cristy0c60a692010-11-04 01:09:47 +000019502 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 +000019503 ;;
19504 *)
cristyda16f162011-02-19 23:52:17 +000019505 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 +000019506 ;;
19507 esac
19508
19509 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19510 hardcode_libdir_separator_CXX=:
19511
19512 # Commands to make compiler produce verbose output that lists
19513 # what "hidden" libraries, object files and flags are used when
19514 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000019515 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000019516
19517 else
19518 # FIXME: insert proper C++ library support
19519 ld_shlibs_CXX=no
19520 fi
19521 ;;
19522 esac
19523 ;;
19524
19525 psos*)
19526 # FIXME: insert proper C++ library support
19527 ld_shlibs_CXX=no
19528 ;;
19529
19530 sunos4*)
19531 case $cc_basename in
19532 CC*)
19533 # Sun C++ 4.x
19534 # FIXME: insert proper C++ library support
19535 ld_shlibs_CXX=no
19536 ;;
19537 lcc*)
19538 # Lucid
19539 # FIXME: insert proper C++ library support
19540 ld_shlibs_CXX=no
19541 ;;
19542 *)
19543 # FIXME: insert proper C++ library support
19544 ld_shlibs_CXX=no
19545 ;;
19546 esac
19547 ;;
19548
19549 solaris*)
19550 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019551 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019552 # Sun C++ 4.2, 5.x and Centerline C++
19553 archive_cmds_need_lc_CXX=yes
19554 no_undefined_flag_CXX=' -zdefs'
19555 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19556 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19557 $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'
19558
19559 hardcode_libdir_flag_spec_CXX='-R$libdir'
19560 hardcode_shlibpath_var_CXX=no
19561 case $host_os in
19562 solaris2.[0-5] | solaris2.[0-5].*) ;;
19563 *)
19564 # The compiler driver will combine and reorder linker options,
19565 # but understands `-z linker_flag'.
19566 # Supported since Solaris 2.6 (maybe 2.5.1?)
19567 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19568 ;;
19569 esac
19570 link_all_deplibs_CXX=yes
19571
cristy0c60a692010-11-04 01:09:47 +000019572 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000019573
19574 # Archives containing C++ object files must be created using
19575 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19576 # necessary to make sure instantiated templates are included
19577 # in the archive.
19578 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19579 ;;
19580 gcx*)
19581 # Green Hills C++ Compiler
19582 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19583
19584 # The C++ compiler must be used to create the archive.
19585 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19586 ;;
19587 *)
19588 # GNU C++ compiler with Solaris linker
19589 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19590 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19591 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000019592 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 +000019593 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 +000019594 $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 +000019595
19596 # Commands to make compiler produce verbose output that lists
19597 # what "hidden" libraries, object files and flags are used when
19598 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000019599 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000019600 else
19601 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19602 # platform.
19603 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19604 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19605 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19606
19607 # Commands to make compiler produce verbose output that lists
19608 # what "hidden" libraries, object files and flags are used when
19609 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000019610 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000019611 fi
19612
19613 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19614 case $host_os in
19615 solaris2.[0-5] | solaris2.[0-5].*) ;;
19616 *)
19617 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19618 ;;
19619 esac
19620 fi
19621 ;;
19622 esac
19623 ;;
19624
19625 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19626 no_undefined_flag_CXX='${wl}-z,text'
19627 archive_cmds_need_lc_CXX=no
19628 hardcode_shlibpath_var_CXX=no
19629 runpath_var='LD_RUN_PATH'
19630
19631 case $cc_basename in
19632 CC*)
19633 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19634 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19635 ;;
19636 *)
19637 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19638 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19639 ;;
19640 esac
19641 ;;
19642
19643 sysv5* | sco3.2v5* | sco5v6*)
19644 # Note: We can NOT use -z defs as we might desire, because we do not
19645 # link with -lc, and that would cause any symbols used from libc to
19646 # always be unresolved, which means just about no library would
19647 # ever link correctly. If we're not using GNU ld we use -z text
19648 # though, which does catch some bad symbols but isn't as heavy-handed
19649 # as -z defs.
19650 no_undefined_flag_CXX='${wl}-z,text'
19651 allow_undefined_flag_CXX='${wl}-z,nodefs'
19652 archive_cmds_need_lc_CXX=no
19653 hardcode_shlibpath_var_CXX=no
19654 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19655 hardcode_libdir_separator_CXX=':'
19656 link_all_deplibs_CXX=yes
19657 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19658 runpath_var='LD_RUN_PATH'
19659
19660 case $cc_basename in
19661 CC*)
19662 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19663 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 +000019664 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19665 '"$old_archive_cmds_CXX"
19666 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19667 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000019668 ;;
19669 *)
19670 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19671 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19672 ;;
19673 esac
19674 ;;
19675
19676 tandem*)
19677 case $cc_basename in
19678 NCC*)
19679 # NonStop-UX NCC 3.20
19680 # FIXME: insert proper C++ library support
19681 ld_shlibs_CXX=no
19682 ;;
19683 *)
19684 # FIXME: insert proper C++ library support
19685 ld_shlibs_CXX=no
19686 ;;
19687 esac
19688 ;;
19689
19690 vxworks*)
19691 # FIXME: insert proper C++ library support
19692 ld_shlibs_CXX=no
19693 ;;
19694
19695 *)
19696 # FIXME: insert proper C++ library support
19697 ld_shlibs_CXX=no
19698 ;;
19699 esac
19700
19701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19702$as_echo "$ld_shlibs_CXX" >&6; }
19703 test "$ld_shlibs_CXX" = no && can_build_shared=no
19704
19705 GCC_CXX="$GXX"
19706 LD_CXX="$LD"
19707
19708 ## CAVEAT EMPTOR:
19709 ## There is no encapsulation within the following macros, do not change
19710 ## the running order or otherwise move them around unless you know exactly
19711 ## what you are doing...
19712 # Dependencies to place before and after the object being linked:
19713predep_objects_CXX=
19714postdep_objects_CXX=
19715predeps_CXX=
19716postdeps_CXX=
19717compiler_lib_search_path_CXX=
19718
19719cat > conftest.$ac_ext <<_LT_EOF
19720class Foo
19721{
19722public:
19723 Foo (void) { a = 0; }
19724private:
19725 int a;
19726};
19727_LT_EOF
19728
cristyda16f162011-02-19 23:52:17 +000019729
19730_lt_libdeps_save_CFLAGS=$CFLAGS
19731case "$CC $CFLAGS " in #(
19732*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
19733*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
cristy99bd5232011-12-07 14:38:20 +000019734*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
cristyda16f162011-02-19 23:52:17 +000019735esac
19736
cristy73bd4a52010-10-05 11:24:23 +000019737if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19738 (eval $ac_compile) 2>&5
19739 ac_status=$?
19740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19741 test $ac_status = 0; }; then
19742 # Parse the compiler output and extract the necessary
19743 # objects, libraries and library flags.
19744
19745 # Sentinel used to keep track of whether or not we are before
19746 # the conftest object file.
19747 pre_test_object_deps_done=no
19748
19749 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000019750 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000019751
19752 -L* | -R* | -l*)
19753 # Some compilers place space between "-{L,R}" and the path.
19754 # Remove the space.
19755 if test $p = "-L" ||
19756 test $p = "-R"; then
19757 prev=$p
19758 continue
cristy73bd4a52010-10-05 11:24:23 +000019759 fi
19760
cristyda16f162011-02-19 23:52:17 +000019761 # Expand the sysroot to ease extracting the directories later.
19762 if test -z "$prev"; then
19763 case $p in
19764 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
19765 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
19766 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
19767 esac
19768 fi
19769 case $p in
19770 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
19771 esac
cristy73bd4a52010-10-05 11:24:23 +000019772 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000019773 case ${prev} in
19774 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000019775 # Internal compiler library paths should come after those
19776 # provided the user. The postdeps already come after the
19777 # user supplied libs so there is no need to process them.
19778 if test -z "$compiler_lib_search_path_CXX"; then
19779 compiler_lib_search_path_CXX="${prev}${p}"
19780 else
19781 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19782 fi
19783 ;;
19784 # The "-l" case would never come before the object being
19785 # linked, so don't bother handling this case.
19786 esac
19787 else
19788 if test -z "$postdeps_CXX"; then
19789 postdeps_CXX="${prev}${p}"
19790 else
19791 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19792 fi
19793 fi
cristyda16f162011-02-19 23:52:17 +000019794 prev=
cristy73bd4a52010-10-05 11:24:23 +000019795 ;;
19796
cristyda16f162011-02-19 23:52:17 +000019797 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000019798 *.$objext)
19799 # This assumes that the test object file only shows up
19800 # once in the compiler output.
19801 if test "$p" = "conftest.$objext"; then
19802 pre_test_object_deps_done=yes
19803 continue
19804 fi
19805
19806 if test "$pre_test_object_deps_done" = no; then
19807 if test -z "$predep_objects_CXX"; then
19808 predep_objects_CXX="$p"
19809 else
19810 predep_objects_CXX="$predep_objects_CXX $p"
19811 fi
19812 else
19813 if test -z "$postdep_objects_CXX"; then
19814 postdep_objects_CXX="$p"
19815 else
19816 postdep_objects_CXX="$postdep_objects_CXX $p"
19817 fi
19818 fi
19819 ;;
19820
19821 *) ;; # Ignore the rest.
19822
19823 esac
19824 done
19825
19826 # Clean up.
19827 rm -f a.out a.exe
19828else
19829 echo "libtool.m4: error: problem compiling CXX test program"
19830fi
19831
19832$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000019833CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000019834
19835# PORTME: override above test on systems where it is broken
19836case $host_os in
19837interix[3-9]*)
19838 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19839 # hack all around it, let's just trust "g++" to DTRT.
19840 predep_objects_CXX=
19841 postdep_objects_CXX=
19842 postdeps_CXX=
19843 ;;
19844
19845linux*)
19846 case `$CC -V 2>&1 | sed 5q` in
19847 *Sun\ C*)
19848 # Sun C++ 5.9
19849
19850 # The more standards-conforming stlport4 library is
19851 # incompatible with the Cstd library. Avoid specifying
19852 # it if it's in CXXFLAGS. Ignore libCrun as
19853 # -library=stlport4 depends on it.
19854 case " $CXX $CXXFLAGS " in
19855 *" -library=stlport4 "*)
19856 solaris_use_stlport4=yes
19857 ;;
19858 esac
19859
19860 if test "$solaris_use_stlport4" != yes; then
19861 postdeps_CXX='-library=Cstd -library=Crun'
19862 fi
19863 ;;
19864 esac
19865 ;;
19866
19867solaris*)
19868 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019869 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019870 # The more standards-conforming stlport4 library is
19871 # incompatible with the Cstd library. Avoid specifying
19872 # it if it's in CXXFLAGS. Ignore libCrun as
19873 # -library=stlport4 depends on it.
19874 case " $CXX $CXXFLAGS " in
19875 *" -library=stlport4 "*)
19876 solaris_use_stlport4=yes
19877 ;;
19878 esac
19879
19880 # Adding this requires a known-good setup of shared libraries for
19881 # Sun compiler versions before 5.6, else PIC objects from an old
19882 # archive will be linked into the output, leading to subtle bugs.
19883 if test "$solaris_use_stlport4" != yes; then
19884 postdeps_CXX='-library=Cstd -library=Crun'
19885 fi
19886 ;;
19887 esac
19888 ;;
19889esac
19890
19891
19892case " $postdeps_CXX " in
19893*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19894esac
19895 compiler_lib_search_dirs_CXX=
19896if test -n "${compiler_lib_search_path_CXX}"; then
19897 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19898fi
19899
19900
19901
19902
19903
19904
19905
19906
19907
19908
19909
19910
19911
19912
19913
19914
19915
19916
19917
19918
19919
19920
19921
19922
19923
19924
19925
19926
19927
19928
19929
19930 lt_prog_compiler_wl_CXX=
19931lt_prog_compiler_pic_CXX=
19932lt_prog_compiler_static_CXX=
19933
cristy73bd4a52010-10-05 11:24:23 +000019934
19935 # C++ specific cases for pic, static, wl, etc.
19936 if test "$GXX" = yes; then
19937 lt_prog_compiler_wl_CXX='-Wl,'
19938 lt_prog_compiler_static_CXX='-static'
19939
19940 case $host_os in
19941 aix*)
19942 # All AIX code is PIC.
19943 if test "$host_cpu" = ia64; then
19944 # AIX 5 now supports IA64 processor
19945 lt_prog_compiler_static_CXX='-Bstatic'
19946 fi
19947 ;;
19948
19949 amigaos*)
19950 case $host_cpu in
19951 powerpc)
19952 # see comment about AmigaOS4 .so support
19953 lt_prog_compiler_pic_CXX='-fPIC'
19954 ;;
19955 m68k)
19956 # FIXME: we need at least 68020 code to build shared libraries, but
19957 # adding the `-m68020' flag to GCC prevents building anything better,
19958 # like `-m68040'.
19959 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19960 ;;
19961 esac
19962 ;;
19963
19964 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19965 # PIC is the default for these OSes.
19966 ;;
19967 mingw* | cygwin* | os2* | pw32* | cegcc*)
19968 # This hack is so that the source file can tell whether it is being
19969 # built for inclusion in a dll (and should export symbols for example).
19970 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19971 # (--disable-auto-import) libraries
19972 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19973 ;;
19974 darwin* | rhapsody*)
19975 # PIC is the default on this platform
19976 # Common symbols not allowed in MH_DYLIB files
19977 lt_prog_compiler_pic_CXX='-fno-common'
19978 ;;
19979 *djgpp*)
19980 # DJGPP does not support shared libraries at all
19981 lt_prog_compiler_pic_CXX=
19982 ;;
cristy0c60a692010-11-04 01:09:47 +000019983 haiku*)
19984 # PIC is the default for Haiku.
19985 # The "-static" flag exists, but is broken.
19986 lt_prog_compiler_static_CXX=
19987 ;;
cristy73bd4a52010-10-05 11:24:23 +000019988 interix[3-9]*)
19989 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19990 # Instead, we relocate shared libraries at runtime.
19991 ;;
19992 sysv4*MP*)
19993 if test -d /usr/nec; then
19994 lt_prog_compiler_pic_CXX=-Kconform_pic
19995 fi
19996 ;;
19997 hpux*)
19998 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19999 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20000 # sets the default TLS model and affects inlining.
20001 case $host_cpu in
20002 hppa*64*)
20003 ;;
20004 *)
20005 lt_prog_compiler_pic_CXX='-fPIC'
20006 ;;
20007 esac
20008 ;;
20009 *qnx* | *nto*)
20010 # QNX uses GNU C++, but need to define -shared option too, otherwise
20011 # it will coredump.
20012 lt_prog_compiler_pic_CXX='-fPIC -shared'
20013 ;;
20014 *)
20015 lt_prog_compiler_pic_CXX='-fPIC'
20016 ;;
20017 esac
20018 else
20019 case $host_os in
20020 aix[4-9]*)
20021 # All AIX code is PIC.
20022 if test "$host_cpu" = ia64; then
20023 # AIX 5 now supports IA64 processor
20024 lt_prog_compiler_static_CXX='-Bstatic'
20025 else
20026 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20027 fi
20028 ;;
20029 chorus*)
20030 case $cc_basename in
20031 cxch68*)
20032 # Green Hills C++ Compiler
20033 # _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"
20034 ;;
20035 esac
20036 ;;
cristyda16f162011-02-19 23:52:17 +000020037 mingw* | cygwin* | os2* | pw32* | cegcc*)
20038 # This hack is so that the source file can tell whether it is being
20039 # built for inclusion in a dll (and should export symbols for example).
20040 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20041 ;;
cristy73bd4a52010-10-05 11:24:23 +000020042 dgux*)
20043 case $cc_basename in
20044 ec++*)
20045 lt_prog_compiler_pic_CXX='-KPIC'
20046 ;;
20047 ghcx*)
20048 # Green Hills C++ Compiler
20049 lt_prog_compiler_pic_CXX='-pic'
20050 ;;
20051 *)
20052 ;;
20053 esac
20054 ;;
20055 freebsd* | dragonfly*)
20056 # FreeBSD uses GNU C++
20057 ;;
20058 hpux9* | hpux10* | hpux11*)
20059 case $cc_basename in
20060 CC*)
20061 lt_prog_compiler_wl_CXX='-Wl,'
20062 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20063 if test "$host_cpu" != ia64; then
20064 lt_prog_compiler_pic_CXX='+Z'
20065 fi
20066 ;;
20067 aCC*)
20068 lt_prog_compiler_wl_CXX='-Wl,'
20069 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20070 case $host_cpu in
20071 hppa*64*|ia64*)
20072 # +Z the default
20073 ;;
20074 *)
20075 lt_prog_compiler_pic_CXX='+Z'
20076 ;;
20077 esac
20078 ;;
20079 *)
20080 ;;
20081 esac
20082 ;;
20083 interix*)
20084 # This is c89, which is MS Visual C++ (no shared libs)
20085 # Anyone wants to do a port?
20086 ;;
20087 irix5* | irix6* | nonstopux*)
20088 case $cc_basename in
20089 CC*)
20090 lt_prog_compiler_wl_CXX='-Wl,'
20091 lt_prog_compiler_static_CXX='-non_shared'
20092 # CC pic flag -KPIC is the default.
20093 ;;
20094 *)
20095 ;;
20096 esac
20097 ;;
cristy0c60a692010-11-04 01:09:47 +000020098 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000020099 case $cc_basename in
20100 KCC*)
20101 # KAI C++ Compiler
20102 lt_prog_compiler_wl_CXX='--backend -Wl,'
20103 lt_prog_compiler_pic_CXX='-fPIC'
20104 ;;
20105 ecpc* )
20106 # old Intel C++ for x86_64 which still supported -KPIC.
20107 lt_prog_compiler_wl_CXX='-Wl,'
20108 lt_prog_compiler_pic_CXX='-KPIC'
20109 lt_prog_compiler_static_CXX='-static'
20110 ;;
20111 icpc* )
20112 # Intel C++, used to be incompatible with GCC.
20113 # ICC 10 doesn't accept -KPIC any more.
20114 lt_prog_compiler_wl_CXX='-Wl,'
20115 lt_prog_compiler_pic_CXX='-fPIC'
20116 lt_prog_compiler_static_CXX='-static'
20117 ;;
20118 pgCC* | pgcpp*)
20119 # Portland Group C++ compiler
20120 lt_prog_compiler_wl_CXX='-Wl,'
20121 lt_prog_compiler_pic_CXX='-fpic'
20122 lt_prog_compiler_static_CXX='-Bstatic'
20123 ;;
20124 cxx*)
20125 # Compaq C++
20126 # Make sure the PIC flag is empty. It appears that all Alpha
20127 # Linux and Compaq Tru64 Unix objects are PIC.
20128 lt_prog_compiler_pic_CXX=
20129 lt_prog_compiler_static_CXX='-non_shared'
20130 ;;
cristy0c60a692010-11-04 01:09:47 +000020131 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20132 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000020133 lt_prog_compiler_wl_CXX='-Wl,'
20134 lt_prog_compiler_pic_CXX='-qpic'
20135 lt_prog_compiler_static_CXX='-qstaticlink'
20136 ;;
20137 *)
20138 case `$CC -V 2>&1 | sed 5q` in
20139 *Sun\ C*)
20140 # Sun C++ 5.9
20141 lt_prog_compiler_pic_CXX='-KPIC'
20142 lt_prog_compiler_static_CXX='-Bstatic'
20143 lt_prog_compiler_wl_CXX='-Qoption ld '
20144 ;;
20145 esac
20146 ;;
20147 esac
20148 ;;
20149 lynxos*)
20150 ;;
20151 m88k*)
20152 ;;
20153 mvs*)
20154 case $cc_basename in
20155 cxx*)
20156 lt_prog_compiler_pic_CXX='-W c,exportall'
20157 ;;
20158 *)
20159 ;;
20160 esac
20161 ;;
20162 netbsd*)
20163 ;;
20164 *qnx* | *nto*)
20165 # QNX uses GNU C++, but need to define -shared option too, otherwise
20166 # it will coredump.
20167 lt_prog_compiler_pic_CXX='-fPIC -shared'
20168 ;;
20169 osf3* | osf4* | osf5*)
20170 case $cc_basename in
20171 KCC*)
20172 lt_prog_compiler_wl_CXX='--backend -Wl,'
20173 ;;
20174 RCC*)
20175 # Rational C++ 2.4.1
20176 lt_prog_compiler_pic_CXX='-pic'
20177 ;;
20178 cxx*)
20179 # Digital/Compaq C++
20180 lt_prog_compiler_wl_CXX='-Wl,'
20181 # Make sure the PIC flag is empty. It appears that all Alpha
20182 # Linux and Compaq Tru64 Unix objects are PIC.
20183 lt_prog_compiler_pic_CXX=
20184 lt_prog_compiler_static_CXX='-non_shared'
20185 ;;
20186 *)
20187 ;;
20188 esac
20189 ;;
20190 psos*)
20191 ;;
20192 solaris*)
20193 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000020194 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000020195 # Sun C++ 4.2, 5.x and Centerline C++
20196 lt_prog_compiler_pic_CXX='-KPIC'
20197 lt_prog_compiler_static_CXX='-Bstatic'
20198 lt_prog_compiler_wl_CXX='-Qoption ld '
20199 ;;
20200 gcx*)
20201 # Green Hills C++ Compiler
20202 lt_prog_compiler_pic_CXX='-PIC'
20203 ;;
20204 *)
20205 ;;
20206 esac
20207 ;;
20208 sunos4*)
20209 case $cc_basename in
20210 CC*)
20211 # Sun C++ 4.x
20212 lt_prog_compiler_pic_CXX='-pic'
20213 lt_prog_compiler_static_CXX='-Bstatic'
20214 ;;
20215 lcc*)
20216 # Lucid
20217 lt_prog_compiler_pic_CXX='-pic'
20218 ;;
20219 *)
20220 ;;
20221 esac
20222 ;;
20223 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20224 case $cc_basename in
20225 CC*)
20226 lt_prog_compiler_wl_CXX='-Wl,'
20227 lt_prog_compiler_pic_CXX='-KPIC'
20228 lt_prog_compiler_static_CXX='-Bstatic'
20229 ;;
20230 esac
20231 ;;
20232 tandem*)
20233 case $cc_basename in
20234 NCC*)
20235 # NonStop-UX NCC 3.20
20236 lt_prog_compiler_pic_CXX='-KPIC'
20237 ;;
20238 *)
20239 ;;
20240 esac
20241 ;;
20242 vxworks*)
20243 ;;
20244 *)
20245 lt_prog_compiler_can_build_shared_CXX=no
20246 ;;
20247 esac
20248 fi
20249
20250case $host_os in
20251 # For platforms which do not support PIC, -DPIC is meaningless:
20252 *djgpp*)
20253 lt_prog_compiler_pic_CXX=
20254 ;;
20255 *)
20256 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20257 ;;
20258esac
cristy73bd4a52010-10-05 11:24:23 +000020259
cristyda16f162011-02-19 23:52:17 +000020260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20261$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20262if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
20263 $as_echo_n "(cached) " >&6
20264else
20265 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
20266fi
20267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
20268$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
20269lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000020270
20271#
20272# Check to make sure the PIC flag actually works.
20273#
20274if test -n "$lt_prog_compiler_pic_CXX"; then
20275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20276$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020277if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020278 $as_echo_n "(cached) " >&6
20279else
20280 lt_cv_prog_compiler_pic_works_CXX=no
20281 ac_outfile=conftest.$ac_objext
20282 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20283 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20284 # Insert the option either (1) after the last *FLAGS variable, or
20285 # (2) before a word containing "conftest.", or (3) at the end.
20286 # Note that $ac_compile itself does not contain backslashes and begins
20287 # with a dollar sign (not a hyphen), so the echo should work correctly.
20288 # The option is referenced via a variable to avoid confusing sed.
20289 lt_compile=`echo "$ac_compile" | $SED \
20290 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20291 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20292 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000020293 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000020294 (eval "$lt_compile" 2>conftest.err)
20295 ac_status=$?
20296 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000020297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000020298 if (exit $ac_status) && test -s "$ac_outfile"; then
20299 # The compiler can only warn and ignore the option if not recognized
20300 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000020301 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000020302 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20303 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20304 lt_cv_prog_compiler_pic_works_CXX=yes
20305 fi
20306 fi
20307 $RM conftest*
20308
20309fi
20310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20311$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20312
20313if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20314 case $lt_prog_compiler_pic_CXX in
20315 "" | " "*) ;;
20316 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20317 esac
20318else
20319 lt_prog_compiler_pic_CXX=
20320 lt_prog_compiler_can_build_shared_CXX=no
20321fi
20322
20323fi
20324
20325
20326
cristyda16f162011-02-19 23:52:17 +000020327
20328
cristy73bd4a52010-10-05 11:24:23 +000020329#
20330# Check to make sure the static flag actually works.
20331#
20332wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20334$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020335if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020336 $as_echo_n "(cached) " >&6
20337else
20338 lt_cv_prog_compiler_static_works_CXX=no
20339 save_LDFLAGS="$LDFLAGS"
20340 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20341 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20342 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20343 # The linker can only warn and ignore the option if not recognized
20344 # So say no if there are warnings
20345 if test -s conftest.err; then
20346 # Append any errors to the config.log.
20347 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000020348 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000020349 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20350 if diff conftest.exp conftest.er2 >/dev/null; then
20351 lt_cv_prog_compiler_static_works_CXX=yes
20352 fi
20353 else
20354 lt_cv_prog_compiler_static_works_CXX=yes
20355 fi
20356 fi
20357 $RM -r conftest*
20358 LDFLAGS="$save_LDFLAGS"
20359
20360fi
20361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20362$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20363
20364if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20365 :
20366else
20367 lt_prog_compiler_static_CXX=
20368fi
20369
20370
20371
20372
20373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20374$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020375if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020376 $as_echo_n "(cached) " >&6
20377else
20378 lt_cv_prog_compiler_c_o_CXX=no
20379 $RM -r conftest 2>/dev/null
20380 mkdir conftest
20381 cd conftest
20382 mkdir out
20383 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20384
20385 lt_compiler_flag="-o out/conftest2.$ac_objext"
20386 # Insert the option either (1) after the last *FLAGS variable, or
20387 # (2) before a word containing "conftest.", or (3) at the end.
20388 # Note that $ac_compile itself does not contain backslashes and begins
20389 # with a dollar sign (not a hyphen), so the echo should work correctly.
20390 lt_compile=`echo "$ac_compile" | $SED \
20391 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20392 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20393 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000020394 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000020395 (eval "$lt_compile" 2>out/conftest.err)
20396 ac_status=$?
20397 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000020398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000020399 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20400 then
20401 # The compiler can only warn and ignore the option if not recognized
20402 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000020403 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000020404 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20405 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20406 lt_cv_prog_compiler_c_o_CXX=yes
20407 fi
20408 fi
20409 chmod u+w . 2>&5
20410 $RM conftest*
20411 # SGI C++ compiler will create directory out/ii_files/ for
20412 # template instantiation
20413 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20414 $RM out/* && rmdir out
20415 cd ..
20416 $RM -r conftest
20417 $RM conftest*
20418
20419fi
20420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20421$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20422
20423
20424
20425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20426$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020427if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020428 $as_echo_n "(cached) " >&6
20429else
20430 lt_cv_prog_compiler_c_o_CXX=no
20431 $RM -r conftest 2>/dev/null
20432 mkdir conftest
20433 cd conftest
20434 mkdir out
20435 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20436
20437 lt_compiler_flag="-o out/conftest2.$ac_objext"
20438 # Insert the option either (1) after the last *FLAGS variable, or
20439 # (2) before a word containing "conftest.", or (3) at the end.
20440 # Note that $ac_compile itself does not contain backslashes and begins
20441 # with a dollar sign (not a hyphen), so the echo should work correctly.
20442 lt_compile=`echo "$ac_compile" | $SED \
20443 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20444 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20445 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000020446 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000020447 (eval "$lt_compile" 2>out/conftest.err)
20448 ac_status=$?
20449 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000020450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000020451 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20452 then
20453 # The compiler can only warn and ignore the option if not recognized
20454 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000020455 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000020456 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20457 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20458 lt_cv_prog_compiler_c_o_CXX=yes
20459 fi
20460 fi
20461 chmod u+w . 2>&5
20462 $RM conftest*
20463 # SGI C++ compiler will create directory out/ii_files/ for
20464 # template instantiation
20465 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20466 $RM out/* && rmdir out
20467 cd ..
20468 $RM -r conftest
20469 $RM conftest*
20470
20471fi
20472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20473$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20474
20475
20476
20477
20478hard_links="nottested"
20479if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20480 # do not overwrite the value of need_locks provided by the user
20481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20482$as_echo_n "checking if we can lock with hard links... " >&6; }
20483 hard_links=yes
20484 $RM conftest*
20485 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20486 touch conftest.a
20487 ln conftest.a conftest.b 2>&5 || hard_links=no
20488 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20490$as_echo "$hard_links" >&6; }
20491 if test "$hard_links" = no; then
20492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20493$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20494 need_locks=warn
20495 fi
20496else
20497 need_locks=no
20498fi
20499
20500
20501
20502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20503$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20504
20505 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000020506 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000020507 case $host_os in
20508 aix[4-9]*)
20509 # If we're using GNU nm, then we don't want the "-C" option.
20510 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000020511 # Also, AIX nm treats weak defined symbols like other global defined
20512 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000020513 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000020514 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 +000020515 else
20516 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'
20517 fi
20518 ;;
20519 pw32*)
20520 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000020521 ;;
cristy73bd4a52010-10-05 11:24:23 +000020522 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000020523 case $cc_basename in
cristy99bd5232011-12-07 14:38:20 +000020524 cl*)
20525 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
20526 ;;
cristyda16f162011-02-19 23:52:17 +000020527 *)
20528 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'
20529 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
20530 ;;
20531 esac
20532 ;;
cristy73bd4a52010-10-05 11:24:23 +000020533 *)
20534 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000020535 ;;
cristy73bd4a52010-10-05 11:24:23 +000020536 esac
cristy73bd4a52010-10-05 11:24:23 +000020537
20538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20539$as_echo "$ld_shlibs_CXX" >&6; }
20540test "$ld_shlibs_CXX" = no && can_build_shared=no
20541
20542with_gnu_ld_CXX=$with_gnu_ld
20543
20544
20545
20546
20547
20548
20549#
20550# Do we need to explicitly link libc?
20551#
20552case "x$archive_cmds_need_lc_CXX" in
20553x|xyes)
20554 # Assume -lc should be added
20555 archive_cmds_need_lc_CXX=yes
20556
20557 if test "$enable_shared" = yes && test "$GCC" = yes; then
20558 case $archive_cmds_CXX in
20559 *'~'*)
20560 # FIXME: we may have to deal with multi-command sequences.
20561 ;;
20562 '$CC '*)
20563 # Test whether the compiler implicitly links with -lc since on some
20564 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20565 # to ld, don't add -lc before -lgcc.
20566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20567$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020568if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000020569 $as_echo_n "(cached) " >&6
20570else
20571 $RM conftest*
20572 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000020573
cristy0c60a692010-11-04 01:09:47 +000020574 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000020575 (eval $ac_compile) 2>&5
20576 ac_status=$?
20577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20578 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000020579 soname=conftest
20580 lib=conftest
20581 libobjs=conftest.$ac_objext
20582 deplibs=
20583 wl=$lt_prog_compiler_wl_CXX
20584 pic_flag=$lt_prog_compiler_pic_CXX
20585 compiler_flags=-v
20586 linker_flags=-v
20587 verstring=
20588 output_objdir=.
20589 libname=conftest
20590 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20591 allow_undefined_flag_CXX=
20592 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 +000020593 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20594 ac_status=$?
20595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20596 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000020597 then
20598 lt_cv_archive_cmds_need_lc_CXX=no
20599 else
20600 lt_cv_archive_cmds_need_lc_CXX=yes
20601 fi
20602 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20603 else
20604 cat conftest.err 1>&5
20605 fi
20606 $RM conftest*
20607
20608fi
20609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20610$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20611 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000020612 ;;
20613 esac
20614 fi
20615 ;;
20616esac
20617
20618
20619
20620
20621
20622
20623
20624
20625
20626
20627
20628
20629
20630
20631
20632
20633
20634
20635
20636
20637
20638
20639
20640
20641
20642
20643
20644
20645
20646
20647
20648
20649
20650
20651
20652
20653
20654
20655
20656
20657
20658
20659
20660
20661
20662
20663
20664
20665
20666
20667
20668
20669
20670
20671
20672
20673
20674
20675
20676
20677
20678
cristy73bd4a52010-10-05 11:24:23 +000020679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20680$as_echo_n "checking dynamic linker characteristics... " >&6; }
20681
20682library_names_spec=
20683libname_spec='lib$name'
20684soname_spec=
20685shrext_cmds=".so"
20686postinstall_cmds=
20687postuninstall_cmds=
20688finish_cmds=
20689finish_eval=
20690shlibpath_var=
20691shlibpath_overrides_runpath=unknown
20692version_type=none
20693dynamic_linker="$host_os ld.so"
20694sys_lib_dlsearch_path_spec="/lib /usr/lib"
20695need_lib_prefix=unknown
20696hardcode_into_libs=no
20697
20698# when you set need_version to no, make sure it does not cause -set_version
20699# flags to be left without arguments
20700need_version=unknown
20701
20702case $host_os in
20703aix3*)
cristy99bd5232011-12-07 14:38:20 +000020704 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020705 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20706 shlibpath_var=LIBPATH
20707
20708 # AIX 3 has no versioning support, so we append a major version to the name.
20709 soname_spec='${libname}${release}${shared_ext}$major'
20710 ;;
20711
20712aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000020713 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020714 need_lib_prefix=no
20715 need_version=no
20716 hardcode_into_libs=yes
20717 if test "$host_cpu" = ia64; then
20718 # AIX 5 supports IA64
20719 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20720 shlibpath_var=LD_LIBRARY_PATH
20721 else
20722 # With GCC up to 2.95.x, collect2 would create an import file
20723 # for dependence libraries. The import file would start with
20724 # the line `#! .'. This would cause the generated library to
20725 # depend on `.', always an invalid library. This was fixed in
20726 # development snapshots of GCC prior to 3.0.
20727 case $host_os in
20728 aix4 | aix4.[01] | aix4.[01].*)
20729 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20730 echo ' yes '
20731 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20732 :
20733 else
20734 can_build_shared=no
20735 fi
20736 ;;
20737 esac
20738 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20739 # soname into executable. Probably we can add versioning support to
20740 # collect2, so additional links can be useful in future.
20741 if test "$aix_use_runtimelinking" = yes; then
20742 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20743 # instead of lib<name>.a to let people know that these are not
20744 # typical AIX shared libraries.
20745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20746 else
20747 # We preserve .a as extension for shared libraries through AIX4.2
20748 # and later when we are not doing run time linking.
20749 library_names_spec='${libname}${release}.a $libname.a'
20750 soname_spec='${libname}${release}${shared_ext}$major'
20751 fi
20752 shlibpath_var=LIBPATH
20753 fi
20754 ;;
20755
20756amigaos*)
20757 case $host_cpu in
20758 powerpc)
20759 # Since July 2007 AmigaOS4 officially supports .so libraries.
20760 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20762 ;;
20763 m68k)
20764 library_names_spec='$libname.ixlibrary $libname.a'
20765 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000020766 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 +000020767 ;;
20768 esac
20769 ;;
20770
20771beos*)
20772 library_names_spec='${libname}${shared_ext}'
20773 dynamic_linker="$host_os ld.so"
20774 shlibpath_var=LIBRARY_PATH
20775 ;;
20776
20777bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000020778 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020779 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 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20783 shlibpath_var=LD_LIBRARY_PATH
20784 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20785 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20786 # the default ld.so.conf also contains /usr/contrib/lib and
20787 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20788 # libtool to hard-code these into programs
20789 ;;
20790
20791cygwin* | mingw* | pw32* | cegcc*)
20792 version_type=windows
20793 shrext_cmds=".dll"
20794 need_version=no
20795 need_lib_prefix=no
20796
cristyda16f162011-02-19 23:52:17 +000020797 case $GCC,$cc_basename in
20798 yes,*)
20799 # gcc
cristy73bd4a52010-10-05 11:24:23 +000020800 library_names_spec='$libname.dll.a'
20801 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20802 postinstall_cmds='base_file=`basename \${file}`~
20803 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20804 dldir=$destdir/`dirname \$dlpath`~
20805 test -d \$dldir || mkdir -p \$dldir~
20806 $install_prog $dir/$dlname \$dldir/$dlname~
20807 chmod a+x \$dldir/$dlname~
20808 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20809 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20810 fi'
20811 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20812 dlpath=$dir/\$dldll~
20813 $RM \$dlpath'
20814 shlibpath_overrides_runpath=yes
20815
20816 case $host_os in
20817 cygwin*)
20818 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20819 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000020820
cristy73bd4a52010-10-05 11:24:23 +000020821 ;;
20822 mingw* | cegcc*)
20823 # MinGW DLLs use traditional 'lib' prefix
20824 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000020825 ;;
20826 pw32*)
20827 # pw32 DLLs use 'pw' prefix rather than 'lib'
20828 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20829 ;;
20830 esac
cristyda16f162011-02-19 23:52:17 +000020831 dynamic_linker='Win32 ld.exe'
20832 ;;
20833
20834 *,cl*)
20835 # Native MSVC
20836 libname_spec='$name'
20837 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20838 library_names_spec='${libname}.dll.lib'
20839
20840 case $build_os in
20841 mingw*)
20842 sys_lib_search_path_spec=
20843 lt_save_ifs=$IFS
20844 IFS=';'
20845 for lt_path in $LIB
20846 do
20847 IFS=$lt_save_ifs
20848 # Let DOS variable expansion print the short 8.3 style file name.
20849 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
20850 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
20851 done
20852 IFS=$lt_save_ifs
20853 # Convert to MSYS style.
20854 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
20855 ;;
20856 cygwin*)
20857 # Convert to unix form, then to dos form, then back to unix form
20858 # but this time dos style (no spaces!) so that the unix form looks
20859 # like /cygdrive/c/PROGRA~1:/cygdr...
20860 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
20861 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
20862 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20863 ;;
20864 *)
20865 sys_lib_search_path_spec="$LIB"
20866 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
20867 # It is most probably a Windows format PATH.
20868 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20869 else
20870 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20871 fi
20872 # FIXME: find the short name or the path components, as spaces are
20873 # common. (e.g. "Program Files" -> "PROGRA~1")
20874 ;;
20875 esac
20876
20877 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20878 postinstall_cmds='base_file=`basename \${file}`~
20879 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20880 dldir=$destdir/`dirname \$dlpath`~
20881 test -d \$dldir || mkdir -p \$dldir~
20882 $install_prog $dir/$dlname \$dldir/$dlname'
20883 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20884 dlpath=$dir/\$dldll~
20885 $RM \$dlpath'
20886 shlibpath_overrides_runpath=yes
20887 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000020888 ;;
20889
20890 *)
cristyda16f162011-02-19 23:52:17 +000020891 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000020892 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000020893 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000020894 ;;
20895 esac
cristy73bd4a52010-10-05 11:24:23 +000020896 # FIXME: first we should search . and the directory the executable is in
20897 shlibpath_var=PATH
20898 ;;
20899
20900darwin* | rhapsody*)
20901 dynamic_linker="$host_os dyld"
20902 version_type=darwin
20903 need_lib_prefix=no
20904 need_version=no
20905 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20906 soname_spec='${libname}${release}${major}$shared_ext'
20907 shlibpath_overrides_runpath=yes
20908 shlibpath_var=DYLD_LIBRARY_PATH
20909 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20910
20911 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20912 ;;
20913
20914dgux*)
cristy99bd5232011-12-07 14:38:20 +000020915 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020916 need_lib_prefix=no
20917 need_version=no
20918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20919 soname_spec='${libname}${release}${shared_ext}$major'
20920 shlibpath_var=LD_LIBRARY_PATH
20921 ;;
20922
cristy73bd4a52010-10-05 11:24:23 +000020923freebsd* | dragonfly*)
20924 # DragonFly does not have aout. When/if they implement a new
20925 # versioning mechanism, adjust this.
20926 if test -x /usr/bin/objformat; then
20927 objformat=`/usr/bin/objformat`
20928 else
20929 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020930 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000020931 *) objformat=elf ;;
20932 esac
20933 fi
20934 version_type=freebsd-$objformat
20935 case $version_type in
20936 freebsd-elf*)
20937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20938 need_version=no
20939 need_lib_prefix=no
20940 ;;
20941 freebsd-*)
20942 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20943 need_version=yes
20944 ;;
20945 esac
20946 shlibpath_var=LD_LIBRARY_PATH
20947 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020948 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000020949 shlibpath_overrides_runpath=yes
20950 ;;
20951 freebsd3.[01]* | freebsdelf3.[01]*)
20952 shlibpath_overrides_runpath=yes
20953 hardcode_into_libs=yes
20954 ;;
20955 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20956 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20957 shlibpath_overrides_runpath=no
20958 hardcode_into_libs=yes
20959 ;;
20960 *) # from 4.6 on, and DragonFly
20961 shlibpath_overrides_runpath=yes
20962 hardcode_into_libs=yes
20963 ;;
20964 esac
20965 ;;
20966
20967gnu*)
cristy99bd5232011-12-07 14:38:20 +000020968 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020969 need_lib_prefix=no
20970 need_version=no
20971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20972 soname_spec='${libname}${release}${shared_ext}$major'
20973 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000020974 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000020975 hardcode_into_libs=yes
20976 ;;
20977
cristy0c60a692010-11-04 01:09:47 +000020978haiku*)
cristy99bd5232011-12-07 14:38:20 +000020979 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000020980 need_lib_prefix=no
20981 need_version=no
20982 dynamic_linker="$host_os runtime_loader"
20983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20984 soname_spec='${libname}${release}${shared_ext}$major'
20985 shlibpath_var=LIBRARY_PATH
20986 shlibpath_overrides_runpath=yes
20987 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
20988 hardcode_into_libs=yes
20989 ;;
20990
cristy73bd4a52010-10-05 11:24:23 +000020991hpux9* | hpux10* | hpux11*)
20992 # Give a soname corresponding to the major version so that dld.sl refuses to
20993 # link against other versions.
20994 version_type=sunos
20995 need_lib_prefix=no
20996 need_version=no
20997 case $host_cpu in
20998 ia64*)
20999 shrext_cmds='.so'
21000 hardcode_into_libs=yes
21001 dynamic_linker="$host_os dld.so"
21002 shlibpath_var=LD_LIBRARY_PATH
21003 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21005 soname_spec='${libname}${release}${shared_ext}$major'
21006 if test "X$HPUX_IA64_MODE" = X32; then
21007 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21008 else
21009 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21010 fi
21011 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21012 ;;
21013 hppa*64*)
21014 shrext_cmds='.sl'
21015 hardcode_into_libs=yes
21016 dynamic_linker="$host_os dld.sl"
21017 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21018 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21020 soname_spec='${libname}${release}${shared_ext}$major'
21021 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21022 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21023 ;;
21024 *)
21025 shrext_cmds='.sl'
21026 dynamic_linker="$host_os dld.sl"
21027 shlibpath_var=SHLIB_PATH
21028 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21030 soname_spec='${libname}${release}${shared_ext}$major'
21031 ;;
21032 esac
cristy0c60a692010-11-04 01:09:47 +000021033 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000021034 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000021035 # or fails outright, so override atomically:
21036 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000021037 ;;
21038
21039interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000021040 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021041 need_lib_prefix=no
21042 need_version=no
21043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21044 soname_spec='${libname}${release}${shared_ext}$major'
21045 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21046 shlibpath_var=LD_LIBRARY_PATH
21047 shlibpath_overrides_runpath=no
21048 hardcode_into_libs=yes
21049 ;;
21050
21051irix5* | irix6* | nonstopux*)
21052 case $host_os in
21053 nonstopux*) version_type=nonstopux ;;
21054 *)
21055 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000021056 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021057 else
21058 version_type=irix
21059 fi ;;
21060 esac
21061 need_lib_prefix=no
21062 need_version=no
21063 soname_spec='${libname}${release}${shared_ext}$major'
21064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21065 case $host_os in
21066 irix5* | nonstopux*)
21067 libsuff= shlibsuff=
21068 ;;
21069 *)
21070 case $LD in # libtool.m4 will add one of these switches to LD
21071 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21072 libsuff= shlibsuff= libmagic=32-bit;;
21073 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21074 libsuff=32 shlibsuff=N32 libmagic=N32;;
21075 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21076 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21077 *) libsuff= shlibsuff= libmagic=never-match;;
21078 esac
21079 ;;
21080 esac
21081 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21082 shlibpath_overrides_runpath=no
21083 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21084 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21085 hardcode_into_libs=yes
21086 ;;
21087
21088# No shared lib support for Linux oldld, aout, or coff.
21089linux*oldld* | linux*aout* | linux*coff*)
21090 dynamic_linker=no
21091 ;;
21092
cristy99bd5232011-12-07 14:38:20 +000021093# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000021094linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000021095 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021096 need_lib_prefix=no
21097 need_version=no
21098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21099 soname_spec='${libname}${release}${shared_ext}$major'
21100 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21101 shlibpath_var=LD_LIBRARY_PATH
21102 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000021103
cristy73bd4a52010-10-05 11:24:23 +000021104 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000021105 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000021106 $as_echo_n "(cached) " >&6
21107else
21108 lt_cv_shlibpath_overrides_runpath=no
21109 save_LDFLAGS=$LDFLAGS
21110 save_libdir=$libdir
21111 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21112 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000021114/* end confdefs.h. */
21115
21116int
21117main ()
21118{
21119
21120 ;
21121 return 0;
21122}
21123_ACEOF
21124if ac_fn_cxx_try_link "$LINENO"; then :
21125 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000021126 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000021127fi
21128fi
21129rm -f core conftest.err conftest.$ac_objext \
21130 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000021131 LDFLAGS=$save_LDFLAGS
21132 libdir=$save_libdir
21133
21134fi
21135
21136 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000021137
21138 # This implies no fast_install, which is unacceptable.
21139 # Some rework will be needed to allow for fast_install
21140 # before this can be enabled.
21141 hardcode_into_libs=yes
21142
21143 # Add ABI-specific directories to the system library path.
21144 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
21145
21146 # Append ld.so.conf contents to the search path
21147 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000021148 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 +000021149 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000021150
cristy73bd4a52010-10-05 11:24:23 +000021151 fi
21152
21153 # We used to test for /lib/ld.so.1 and disable shared libraries on
21154 # powerpc, because MkLinux only supported shared libraries with the
21155 # GNU dynamic linker. Since this was broken with cross compilers,
21156 # most powerpc-linux boxes support dynamic linking these days and
21157 # people can always --disable-shared, the test was removed, and we
21158 # assume the GNU/Linux dynamic linker is in use.
21159 dynamic_linker='GNU/Linux ld.so'
21160 ;;
21161
21162netbsd*)
21163 version_type=sunos
21164 need_lib_prefix=no
21165 need_version=no
21166 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21168 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21169 dynamic_linker='NetBSD (a.out) ld.so'
21170 else
21171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21172 soname_spec='${libname}${release}${shared_ext}$major'
21173 dynamic_linker='NetBSD ld.elf_so'
21174 fi
21175 shlibpath_var=LD_LIBRARY_PATH
21176 shlibpath_overrides_runpath=yes
21177 hardcode_into_libs=yes
21178 ;;
21179
21180newsos6)
cristy99bd5232011-12-07 14:38:20 +000021181 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21183 shlibpath_var=LD_LIBRARY_PATH
21184 shlibpath_overrides_runpath=yes
21185 ;;
21186
21187*nto* | *qnx*)
21188 version_type=qnx
21189 need_lib_prefix=no
21190 need_version=no
21191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21192 soname_spec='${libname}${release}${shared_ext}$major'
21193 shlibpath_var=LD_LIBRARY_PATH
21194 shlibpath_overrides_runpath=no
21195 hardcode_into_libs=yes
21196 dynamic_linker='ldqnx.so'
21197 ;;
21198
21199openbsd*)
21200 version_type=sunos
21201 sys_lib_dlsearch_path_spec="/usr/lib"
21202 need_lib_prefix=no
21203 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21204 case $host_os in
21205 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21206 *) need_version=no ;;
21207 esac
21208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21209 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21210 shlibpath_var=LD_LIBRARY_PATH
21211 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21212 case $host_os in
21213 openbsd2.[89] | openbsd2.[89].*)
21214 shlibpath_overrides_runpath=no
21215 ;;
21216 *)
21217 shlibpath_overrides_runpath=yes
21218 ;;
21219 esac
21220 else
21221 shlibpath_overrides_runpath=yes
21222 fi
21223 ;;
21224
21225os2*)
21226 libname_spec='$name'
21227 shrext_cmds=".dll"
21228 need_lib_prefix=no
21229 library_names_spec='$libname${shared_ext} $libname.a'
21230 dynamic_linker='OS/2 ld.exe'
21231 shlibpath_var=LIBPATH
21232 ;;
21233
21234osf3* | osf4* | osf5*)
21235 version_type=osf
21236 need_lib_prefix=no
21237 need_version=no
21238 soname_spec='${libname}${release}${shared_ext}$major'
21239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21240 shlibpath_var=LD_LIBRARY_PATH
21241 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21242 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21243 ;;
21244
21245rdos*)
21246 dynamic_linker=no
21247 ;;
21248
21249solaris*)
cristy99bd5232011-12-07 14:38:20 +000021250 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021251 need_lib_prefix=no
21252 need_version=no
21253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21254 soname_spec='${libname}${release}${shared_ext}$major'
21255 shlibpath_var=LD_LIBRARY_PATH
21256 shlibpath_overrides_runpath=yes
21257 hardcode_into_libs=yes
21258 # ldd complains unless libraries are executable
21259 postinstall_cmds='chmod +x $lib'
21260 ;;
21261
21262sunos4*)
21263 version_type=sunos
21264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21265 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21266 shlibpath_var=LD_LIBRARY_PATH
21267 shlibpath_overrides_runpath=yes
21268 if test "$with_gnu_ld" = yes; then
21269 need_lib_prefix=no
21270 fi
21271 need_version=yes
21272 ;;
21273
21274sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000021275 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21277 soname_spec='${libname}${release}${shared_ext}$major'
21278 shlibpath_var=LD_LIBRARY_PATH
21279 case $host_vendor in
21280 sni)
21281 shlibpath_overrides_runpath=no
21282 need_lib_prefix=no
21283 runpath_var=LD_RUN_PATH
21284 ;;
21285 siemens)
21286 need_lib_prefix=no
21287 ;;
21288 motorola)
21289 need_lib_prefix=no
21290 need_version=no
21291 shlibpath_overrides_runpath=no
21292 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21293 ;;
21294 esac
21295 ;;
21296
21297sysv4*MP*)
21298 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000021299 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021300 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21301 soname_spec='$libname${shared_ext}.$major'
21302 shlibpath_var=LD_LIBRARY_PATH
21303 fi
21304 ;;
21305
21306sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21307 version_type=freebsd-elf
21308 need_lib_prefix=no
21309 need_version=no
21310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21311 soname_spec='${libname}${release}${shared_ext}$major'
21312 shlibpath_var=LD_LIBRARY_PATH
21313 shlibpath_overrides_runpath=yes
21314 hardcode_into_libs=yes
21315 if test "$with_gnu_ld" = yes; then
21316 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21317 else
21318 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21319 case $host_os in
21320 sco3.2v5*)
21321 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21322 ;;
21323 esac
21324 fi
21325 sys_lib_dlsearch_path_spec='/usr/lib'
21326 ;;
21327
21328tpf*)
21329 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000021330 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021331 need_lib_prefix=no
21332 need_version=no
21333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21334 shlibpath_var=LD_LIBRARY_PATH
21335 shlibpath_overrides_runpath=no
21336 hardcode_into_libs=yes
21337 ;;
21338
21339uts4*)
cristy99bd5232011-12-07 14:38:20 +000021340 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21342 soname_spec='${libname}${release}${shared_ext}$major'
21343 shlibpath_var=LD_LIBRARY_PATH
21344 ;;
21345
21346*)
21347 dynamic_linker=no
21348 ;;
21349esac
21350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21351$as_echo "$dynamic_linker" >&6; }
21352test "$dynamic_linker" = no && can_build_shared=no
21353
21354variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21355if test "$GCC" = yes; then
21356 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21357fi
21358
21359if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21360 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21361fi
21362if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21363 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21364fi
21365
21366
21367
21368
21369
21370
21371
21372
21373
21374
21375
21376
21377
21378
21379
21380
21381
21382
21383
21384
21385
21386
21387
21388
21389
21390
21391
21392
21393
21394
21395
21396
21397
21398
21399
21400
cristy0c60a692010-11-04 01:09:47 +000021401
21402
cristy73bd4a52010-10-05 11:24:23 +000021403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21404$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21405hardcode_action_CXX=
21406if test -n "$hardcode_libdir_flag_spec_CXX" ||
21407 test -n "$runpath_var_CXX" ||
21408 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21409
21410 # We can hardcode non-existent directories.
21411 if test "$hardcode_direct_CXX" != no &&
21412 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21413 # have to relink, otherwise we might link with an installed library
21414 # when we should be linking with a yet-to-be-installed one
21415 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21416 test "$hardcode_minus_L_CXX" != no; then
21417 # Linking always hardcodes the temporary library directory.
21418 hardcode_action_CXX=relink
21419 else
21420 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21421 hardcode_action_CXX=immediate
21422 fi
21423else
21424 # We cannot hardcode anything, or else we can only hardcode existing
21425 # directories.
21426 hardcode_action_CXX=unsupported
21427fi
21428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21429$as_echo "$hardcode_action_CXX" >&6; }
21430
21431if test "$hardcode_action_CXX" = relink ||
21432 test "$inherit_rpath_CXX" = yes; then
21433 # Fast installation is not supported
21434 enable_fast_install=no
21435elif test "$shlibpath_overrides_runpath" = yes ||
21436 test "$enable_shared" = no; then
21437 # Fast installation is not necessary
21438 enable_fast_install=needless
21439fi
21440
21441
21442
21443
21444
21445
21446
21447 fi # test -n "$compiler"
21448
21449 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000021450 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000021451 LDCXX=$LD
21452 LD=$lt_save_LD
21453 GCC=$lt_save_GCC
21454 with_gnu_ld=$lt_save_with_gnu_ld
21455 lt_cv_path_LDCXX=$lt_cv_path_LD
21456 lt_cv_path_LD=$lt_save_path_LD
21457 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21458 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21459fi # test "$_lt_caught_CXX_error" != yes
21460
21461ac_ext=c
21462ac_cpp='$CPP $CPPFLAGS'
21463ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21464ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21465ac_compiler_gnu=$ac_cv_c_compiler_gnu
21466
21467
21468
21469
21470
21471
21472
21473
21474
21475
21476
21477
21478
cristy99bd5232011-12-07 14:38:20 +000021479
21480
cristy73bd4a52010-10-05 11:24:23 +000021481 ac_config_commands="$ac_config_commands libtool"
21482
21483
21484
21485
21486# Only expand once:
21487
21488
21489
cristy3ed852e2009-09-05 21:47:34 +000021490
21491
cristy3ed852e2009-09-05 21:47:34 +000021492# Check to see if building shared libraries
21493libtool_build_shared_libs='no'
21494if test "$enable_shared" = 'yes'; then
21495 libtool_build_shared_libs='yes'
21496fi
21497
21498# Check to see if building static libraries
21499libtool_build_static_libs='no'
21500if test "$enable_static" = 'yes'; then
21501 libtool_build_static_libs='yes'
21502fi
21503
cristy73bd4a52010-10-05 11:24:23 +000021504 if test "${libtool_build_shared_libs}" = 'yes'; then
21505 WITH_SHARED_LIBS_TRUE=
21506 WITH_SHARED_LIBS_FALSE='#'
21507else
21508 WITH_SHARED_LIBS_TRUE='#'
21509 WITH_SHARED_LIBS_FALSE=
21510fi
21511
cristy3ed852e2009-09-05 21:47:34 +000021512#
21513# Enable support for building loadable modules
21514#
cristyaf4cbf32012-10-16 23:47:41 +000021515build_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000021516
21517# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000021518if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021519 withval=$with_modules; with_modules=$withval
21520else
cristy5a1cefd2010-01-06 20:42:35 +000021521 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000021522fi
21523
21524
21525# Only allow building loadable modules if we are building shared libraries
21526if test "$with_modules" != 'no' ; then
21527 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000021528 { $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 +000021529$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
cristyc6722092012-10-14 00:19:31 +000021530 build_modules='no'
21531 else
21532 build_modules='yes'
21533 fi
cristy3ed852e2009-09-05 21:47:34 +000021534fi
cristyc6722092012-10-14 00:19:31 +000021535if test "$build_modules" != 'no' ; then
cristy3ed852e2009-09-05 21:47:34 +000021536
cristy8b350f62009-11-15 23:12:43 +000021537$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021538
cristyfa161182012-12-19 15:45:28 +000021539 MAGICK_FEATURES="$MAGICK_FEATURES Modules"
cristy3ed852e2009-09-05 21:47:34 +000021540fi
cristyc6722092012-10-14 00:19:31 +000021541 if test "$build_modules" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +000021542 WITH_MODULES_TRUE=
21543 WITH_MODULES_FALSE='#'
21544else
21545 WITH_MODULES_TRUE='#'
21546 WITH_MODULES_FALSE=
21547fi
21548
cristy3ed852e2009-09-05 21:47:34 +000021549
cristy3ed852e2009-09-05 21:47:34 +000021550# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000021551# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000021552# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000021553if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021554 enableval=$enable_delegate_build; enable_delegate_build=$enableval
21555else
21556 enable_delegate_build='no'
21557fi
21558
21559
21560# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000021561if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021562 enableval=$enable_deprecated; enable_deprecated=$enableval
21563else
21564 enable_deprecated='no'
21565fi
21566
21567
21568if test "$enable_deprecated" = 'yes'; then
21569
cristy8b350f62009-11-15 23:12:43 +000021570$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021571
21572else
21573 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
21574fi
21575
21576# Build a version of ImageMagick which operates uninstalled.
21577# Used to build distributions located via MAGICK_HOME / executable path
21578# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000021579if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021580 enableval=$enable_installed; enable_installed=$enableval
21581else
21582 enable_installed='yes'
21583fi
21584
21585
21586if test "$enable_installed" = 'yes'; then
21587
cristy8b350f62009-11-15 23:12:43 +000021588$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021589
21590else
21591 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
21592fi
21593
21594# Permit enciphering and deciphering image pixels.
21595# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000021596if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021597 enableval=$enable_cipher; enable_cipher=$enableval
21598else
21599 enable_cipher='yes'
21600fi
21601
21602
21603if test "$enable_cipher" = 'yes'; then
21604
cristy8b350f62009-11-15 23:12:43 +000021605$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021606
21607fi
21608
cristy6e3607c2011-09-13 13:59:17 +000021609# Build a zero-configuration version of ImageMagick.
21610# Check whether --enable-zero-configuration was given.
21611if test "${enable_zero_configuration+set}" = set; then :
21612 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
cristy3ed852e2009-09-05 21:47:34 +000021613else
cristy6e3607c2011-09-13 13:59:17 +000021614 enable_zero_configuration='no'
cristy3ed852e2009-09-05 21:47:34 +000021615fi
21616
21617
cristy6e3607c2011-09-13 13:59:17 +000021618if test "$enable_zero_configuration" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021619
cristy6e3607c2011-09-13 13:59:17 +000021620$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021621
cristy81af5702011-09-13 14:20:58 +000021622 MAGICK_FEATURES="Zero-Configuration $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021623fi
21624
21625# Build a high dynamic range version of ImageMagick.
21626# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000021627if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021628 enableval=$enable_hdri; enable_hdri=$enableval
21629else
cristy191c0b72012-08-12 16:29:52 +000021630 enable_hdri='yes'
cristy3ed852e2009-09-05 21:47:34 +000021631fi
21632
21633
21634MAGICK_HDRI=""
21635if test "$enable_hdri" = 'yes'; then
21636 MAGICK_HDRI="HDRI"
cristye52f12f2012-12-31 15:32:36 +000021637 magick_hdri_enable='1';
cristyfd9dcd42010-08-08 18:07:02 +000021638 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristye52f12f2012-12-31 15:32:36 +000021639else
21640 magick_hdri_enable='0'
cristy3ed852e2009-09-05 21:47:34 +000021641fi
21642
cristye52f12f2012-12-31 15:32:36 +000021643cat >>confdefs.h <<_ACEOF
21644#define HDRI_ENABLE_OBSOLETE_IN_H $magick_hdri_enable
21645_ACEOF
21646
21647MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
21648CFLAGS="$CFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
cristy72062382012-12-31 16:49:52 +000021649CPPFLAGS="$CPPFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
cristye52f12f2012-12-31 15:32:36 +000021650
cristy3ed852e2009-09-05 21:47:34 +000021651# Build a version of ImageMagick with assert statements.
21652# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000021653if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021654 enableval=$enable_assert; enable_assert=$enableval
21655else
21656 enable_assert='yes'
21657fi
21658
21659
21660if test "$enable_assert" = 'no'; then
21661
cristy8b350f62009-11-15 23:12:43 +000021662$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021663
21664fi
21665
cristya448bd22011-10-14 12:38:13 +000021666# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
cristy73bd4a52010-10-05 11:24:23 +000021667
21668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
21669$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
21670 # Check whether --enable-maintainer-mode was given.
21671if test "${enable_maintainer_mode+set}" = set; then :
21672 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
21673else
21674 USE_MAINTAINER_MODE=no
21675fi
21676
21677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
21678$as_echo "$USE_MAINTAINER_MODE" >&6; }
21679 if test $USE_MAINTAINER_MODE = yes; then
21680 MAINTAINER_MODE_TRUE=
21681 MAINTAINER_MODE_FALSE='#'
21682else
21683 MAINTAINER_MODE_TRUE='#'
21684 MAINTAINER_MODE_FALSE=
21685fi
21686
21687 MAINT=$MAINTAINER_MODE_TRUE
21688
21689
cristy3ed852e2009-09-05 21:47:34 +000021690
cristy944e51f2013-04-16 18:45:02 +000021691# Enable hugepages support
21692# Check whether --enable-hugepages was given.
21693if test "${enable_hugepages+set}" = set; then :
21694 enableval=$enable_hugepages; enable_hugepages=$enableval
21695else
21696 enable_hugepages='no'
21697fi
21698
21699
cristy3ed852e2009-09-05 21:47:34 +000021700# Enable ccmalloc memory debugging support
21701# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000021702if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021703 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
21704else
21705 enable_ccmalloc='no'
21706fi
21707
21708
21709# Enable Electric Fence memory debugging support
21710# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000021711if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021712 enableval=$enable_efence; enable_efence=$enableval
21713else
21714 enable_efence='no'
21715fi
21716
21717
21718# Enable prof-based profiling support
21719# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000021720if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021721 enableval=$enable_prof; enable_prof=$enableval
21722else
21723 enable_prof='no'
21724fi
21725
21726
21727# Enable gprof-based profiling support
21728# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000021729if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021730 enableval=$enable_gprof; enable_gprof=$enableval
21731else
21732 enable_gprof='no'
21733fi
21734
21735
21736# Enable gcov-based profiling support
21737# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000021738if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021739 enableval=$enable_gcov; enable_gcov=$enableval
21740else
21741 enable_gcov='no'
21742fi
21743
21744
21745enable_profiling='no'
21746if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21747 enable_profiling='yes'
21748 if test "$libtool_build_shared_libs" = 'yes'; then
21749 echo "Warning: Can not profile code using shared libraries"
21750 fi
21751fi
21752
21753# Magick API method prefix
21754
21755# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000021756if test "${with_method_prefix+set}" = set; then :
cristyfc3d0222012-02-07 15:05:57 +000021757 withval=$with_method_prefix; with_method_prefix=$withval
cristy3ed852e2009-09-05 21:47:34 +000021758else
cristyfc3d0222012-02-07 15:05:57 +000021759 with_method_prefix='no'
cristy3ed852e2009-09-05 21:47:34 +000021760fi
21761
21762
cristyfc3d0222012-02-07 15:05:57 +000021763if test "$with_method_prefix" != 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000021764
21765cat >>confdefs.h <<_ACEOF
21766#define NAMESPACE_PREFIX $with_method_prefix
21767_ACEOF
21768
cristyfc3d0222012-02-07 15:05:57 +000021769 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-method-prefix "
cristy3ed852e2009-09-05 21:47:34 +000021770fi
21771
cristy71d8c202012-03-20 17:05:01 +000021772# Enable legacy support (default no)
21773# Check whether --enable-legacy-support was given.
21774if test "${enable_legacy_support+set}" = set; then :
21775 enableval=$enable_legacy_support; with_legacy_support=$enableval
21776else
21777 with_legacy_support='no'
21778fi
21779
21780 if test "$with_legacy_support" != 'no'; then
21781 LEGACY_SUPPORT_TRUE=
21782 LEGACY_SUPPORT_FALSE='#'
21783else
21784 LEGACY_SUPPORT_TRUE='#'
21785 LEGACY_SUPPORT_FALSE=
21786fi
21787
21788
cristy3ed852e2009-09-05 21:47:34 +000021789# Number of bits in a Quantum
21790
21791# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000021792if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021793 withval=$with_quantum_depth; with_quantum_depth=$withval
21794else
21795 with_quantum_depth=16
21796fi
21797
21798
21799if test "$with_quantum_depth" != '8'; then
21800 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21801fi
21802
21803case "${with_quantum_depth}" in
21804 8 ) ;;
21805 16 ) ;;
21806 32 ) ;;
21807 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000021808 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021809esac
21810QUANTUM_DEPTH="$with_quantum_depth"
21811
21812cat >>confdefs.h <<_ACEOF
cristye52f12f2012-12-31 15:32:36 +000021813#define QUANTUM_DEPTH_OBSOLETE_IN_H $QUANTUM_DEPTH
cristy3ed852e2009-09-05 21:47:34 +000021814_ACEOF
21815
cristya371edf2013-02-06 13:42:17 +000021816MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristye52f12f2012-12-31 15:32:36 +000021817CFLAGS="$CFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristy72062382012-12-31 16:49:52 +000021818CPPFLAGS="$CPPFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristy3ed852e2009-09-05 21:47:34 +000021819
cristy01ff9f32012-12-01 18:15:29 +000021820# define a lib suffix for abi purpose
cristy7a26abd2012-12-03 00:18:59 +000021821MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}"
cristye386d192012-12-01 21:05:20 +000021822if test "$enable_hdri" = 'yes'; then
cristy7a26abd2012-12-03 00:18:59 +000021823 MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}${MAGICK_HDRI}"
cristye386d192012-12-01 21:05:20 +000021824fi
cristy01ff9f32012-12-01 18:15:29 +000021825
21826
cristy3ed852e2009-09-05 21:47:34 +000021827# Set pixel cache threshold
21828
21829# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000021830if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021831 withval=$with_cache; with_cache=$withval
21832else
21833 with_cache=''
21834fi
21835
21836
21837if test "$with_cache" != ''; then
21838
21839cat >>confdefs.h <<_ACEOF
21840#define PixelCacheThreshold $with_cache
21841_ACEOF
21842
21843 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21844fi
21845
21846# Disable/Enable support for full delegate paths
21847
21848# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000021849if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021850 withval=$with_frozenpaths; with_frozenpaths=$withval
21851else
21852 with_frozenpaths='no'
21853fi
21854
21855
21856# Enable build/install of Magick++
21857
21858# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000021859if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021860 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21861else
21862 with_magick_plus_plus='yes'
21863fi
21864
21865
cristy3a75f062012-09-08 23:29:40 +000021866# Encode the this name into the shared library.
21867
21868# Check whether --with-package-release-name was given.
21869if test "${with_package_release_name+set}" = set; then :
21870 withval=$with_package_release_name; MAGICK_LT_RELEASE_OPTS="-release $withval"
21871fi
21872
21873
21874
cristy3ed852e2009-09-05 21:47:34 +000021875# Disable build/install of PerlMagick.
21876
21877# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000021878if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021879 withval=$with_perl; with_perl=$withval
21880else
cristyb5f4e2f2010-04-25 00:49:11 +000021881 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000021882fi
21883
21884
21885# Options to pass when configuring PerlMagick
21886
21887# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000021888if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000021889 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000021890fi
21891
21892
cristy3ed852e2009-09-05 21:47:34 +000021893
cristy3b0097d2014-11-04 15:34:47 +000021894# Enable jemalloc, object-caching memory allocation library.
21895
21896# Check whether --with-jemalloc was given.
21897if test "${with_jemalloc+set}" = set; then :
21898 withval=$with_jemalloc; with_jemalloc=$withval
21899else
21900 with_jemalloc='no'
21901fi
21902
21903if test "$with_jemalloc" != 'yes' ; then
21904 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jemalloc=$with_jemalloc "
21905fi
21906
cristy3ed852e2009-09-05 21:47:34 +000021907# Enable umem, object-caching memory allocation library.
21908
21909# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000021910if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021911 withval=$with_umem; with_umem=$withval
21912else
21913 with_umem='no'
21914fi
21915
21916if test "$with_umem" != 'yes' ; then
21917 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
21918fi
21919
21920#
21921# Specify path to shared libstdc++ if not in normal location
21922#
21923
21924# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000021925if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021926 withval=$with_libstdc; with_libstdc=$withval
21927else
21928 with_libstdc=''
21929fi
21930
21931
21932if test "$with_libstdc" != ''; then
21933 if test -d "$with_libstdc"; then
21934 LIBSTDCLDFLAGS="-L$with_libstdc"
21935 fi
21936fi
21937
21938
21939# Does gcc required -traditional?
21940if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000021941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021942$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021943if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021944 $as_echo_n "(cached) " >&6
21945else
21946 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000021947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021948/* end confdefs.h. */
21949#include <sgtty.h>
21950Autoconf TIOCGETP
21951_ACEOF
21952if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021953 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021954 ac_cv_prog_gcc_traditional=yes
21955else
21956 ac_cv_prog_gcc_traditional=no
21957fi
21958rm -f conftest*
21959
21960
21961 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000021962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021963/* end confdefs.h. */
21964#include <termio.h>
21965Autoconf TCGETA
21966_ACEOF
21967if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021968 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021969 ac_cv_prog_gcc_traditional=yes
21970fi
21971rm -f conftest*
21972
21973 fi
21974fi
cristy8b350f62009-11-15 23:12:43 +000021975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021976$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
21977 if test $ac_cv_prog_gcc_traditional = yes; then
21978 CC="$CC -traditional"
21979 fi
21980fi
21981
21982
21983########
21984#
21985# Set defines required to build DLLs and modules using MinGW
21986#
21987########
21988# These options are set for multi-thread DLL module build
21989# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
21990# module: _DLL
21991# executable/Magick++: _DLL _MAGICKMOD_
21992MODULE_EXTRA_CPPFLAGS=''
21993LIBRARY_EXTRA_CPPFLAGS=''
21994if test "${native_win32_build}" = 'yes'; then
21995 if test "${libtool_build_shared_libs}" = 'yes'; then
21996 CPPFLAGS="$CPPFLAGS -D_DLL"
21997 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
21998 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
21999 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
cristyc6722092012-10-14 00:19:31 +000022000 if test "$build_modules" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000022001 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
22002 else
22003 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
22004 fi
22005 else
22006 CPPFLAGS="$CPPFLAGS -D_LIB"
22007 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
22008 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
22009 fi
22010 if test "$with_threads" = 'yes'; then
22011 CPPFLAGS="$CPPFLAGS -D_MT"
22012 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
22013 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
22014 fi
22015fi
22016
22017
22018
22019# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000022020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000022021$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022022if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022023 $as_echo_n "(cached) " >&6
22024else
cristy8b350f62009-11-15 23:12:43 +000022025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022026/* end confdefs.h. */
22027#include <stdlib.h>
22028#include <stdarg.h>
22029#include <string.h>
22030#include <float.h>
22031
22032int
22033main ()
22034{
22035
22036 ;
22037 return 0;
22038}
22039_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022040if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022041 ac_cv_header_stdc=yes
22042else
cristy8b350f62009-11-15 23:12:43 +000022043 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000022044fi
cristy3ed852e2009-09-05 21:47:34 +000022045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22046
22047if test $ac_cv_header_stdc = yes; then
22048 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000022049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022050/* end confdefs.h. */
22051#include <string.h>
22052
22053_ACEOF
22054if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022055 $EGREP "memchr" >/dev/null 2>&1; then :
22056
cristy3ed852e2009-09-05 21:47:34 +000022057else
22058 ac_cv_header_stdc=no
22059fi
22060rm -f conftest*
22061
22062fi
22063
22064if test $ac_cv_header_stdc = yes; then
22065 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000022066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022067/* end confdefs.h. */
22068#include <stdlib.h>
22069
22070_ACEOF
22071if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022072 $EGREP "free" >/dev/null 2>&1; then :
22073
cristy3ed852e2009-09-05 21:47:34 +000022074else
22075 ac_cv_header_stdc=no
22076fi
22077rm -f conftest*
22078
22079fi
22080
22081if test $ac_cv_header_stdc = yes; then
22082 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000022083 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022084 :
22085else
cristy8b350f62009-11-15 23:12:43 +000022086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022087/* end confdefs.h. */
22088#include <ctype.h>
22089#include <stdlib.h>
22090#if ((' ' & 0x0FF) == 0x020)
22091# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22092# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22093#else
22094# define ISLOWER(c) \
22095 (('a' <= (c) && (c) <= 'i') \
22096 || ('j' <= (c) && (c) <= 'r') \
22097 || ('s' <= (c) && (c) <= 'z'))
22098# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22099#endif
22100
22101#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22102int
22103main ()
22104{
22105 int i;
22106 for (i = 0; i < 256; i++)
22107 if (XOR (islower (i), ISLOWER (i))
22108 || toupper (i) != TOUPPER (i))
22109 return 2;
22110 return 0;
22111}
22112_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022113if ac_fn_c_try_run "$LINENO"; then :
22114
cristy3ed852e2009-09-05 21:47:34 +000022115else
cristy8b350f62009-11-15 23:12:43 +000022116 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000022117fi
cristy8b350f62009-11-15 23:12:43 +000022118rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22119 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022120fi
22121
cristy3ed852e2009-09-05 21:47:34 +000022122fi
22123fi
cristy8b350f62009-11-15 23:12:43 +000022124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000022125$as_echo "$ac_cv_header_stdc" >&6; }
22126if test $ac_cv_header_stdc = yes; then
22127
cristy8b350f62009-11-15 23:12:43 +000022128$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022129
22130fi
22131
22132if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000022133 { $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 +000022134 header files. Compilation cannot proceed. Please install the ANSI C
22135 headers and rerun this script." >&5
22136$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
22137 header files. Compilation cannot proceed. Please install the ANSI C
22138 headers and rerun this script." >&2;};
22139fi
cristya0b81c32010-01-22 02:54:33 +000022140
22141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
22142$as_echo_n "checking whether to enable assertions... " >&6; }
22143 # Check whether --enable-assert was given.
22144if test "${enable_assert+set}" = set; then :
22145 enableval=$enable_assert; ac_enable_assert=$enableval
22146 if test "x$enableval" = xno; then :
22147
22148$as_echo "#define NDEBUG 1" >>confdefs.h
22149
22150elif test "x$enableval" != xyes; then :
22151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
22152$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
22153 ac_enable_assert=yes
22154fi
22155else
22156 ac_enable_assert=yes
22157fi
22158
22159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
22160$as_echo "$ac_enable_assert" >&6; }
22161
cristy3ed852e2009-09-05 21:47:34 +000022162ac_header_dirent=no
22163for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22164 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000022165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000022166$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022167if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022168 $as_echo_n "(cached) " >&6
22169else
cristy8b350f62009-11-15 23:12:43 +000022170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022171/* end confdefs.h. */
22172#include <sys/types.h>
22173#include <$ac_hdr>
22174
22175int
22176main ()
22177{
22178if ((DIR *) 0)
22179return 0;
22180 ;
22181 return 0;
22182}
22183_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022184if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022185 eval "$as_ac_Header=yes"
22186else
cristy8b350f62009-11-15 23:12:43 +000022187 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000022188fi
cristy3ed852e2009-09-05 21:47:34 +000022189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22190fi
cristy8b350f62009-11-15 23:12:43 +000022191eval ac_res=\$$as_ac_Header
22192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000022193$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000022194if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022195 cat >>confdefs.h <<_ACEOF
22196#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22197_ACEOF
22198
22199ac_header_dirent=$ac_hdr; break
22200fi
22201
22202done
22203# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22204if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000022205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022206$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022207if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022208 $as_echo_n "(cached) " >&6
22209else
22210 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000022211cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022212/* end confdefs.h. */
22213
22214/* Override any GCC internal prototype to avoid an error.
22215 Use char because int might match the return type of a GCC
22216 builtin and then its argument prototype would still apply. */
22217#ifdef __cplusplus
22218extern "C"
22219#endif
22220char opendir ();
22221int
22222main ()
22223{
22224return opendir ();
22225 ;
22226 return 0;
22227}
22228_ACEOF
22229for ac_lib in '' dir; do
22230 if test -z "$ac_lib"; then
22231 ac_res="none required"
22232 else
22233 ac_res=-l$ac_lib
22234 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22235 fi
cristy8b350f62009-11-15 23:12:43 +000022236 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022237 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000022238fi
cristy8b350f62009-11-15 23:12:43 +000022239rm -f core conftest.err conftest.$ac_objext \
22240 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000022241 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022242 break
22243fi
22244done
cristyda16f162011-02-19 23:52:17 +000022245if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000022246
cristy3ed852e2009-09-05 21:47:34 +000022247else
22248 ac_cv_search_opendir=no
22249fi
22250rm conftest.$ac_ext
22251LIBS=$ac_func_search_save_LIBS
22252fi
cristy8b350f62009-11-15 23:12:43 +000022253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022254$as_echo "$ac_cv_search_opendir" >&6; }
22255ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000022256if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000022257 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22258
22259fi
22260
22261else
cristy8b350f62009-11-15 23:12:43 +000022262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022263$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022264if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022265 $as_echo_n "(cached) " >&6
22266else
22267 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000022268cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022269/* end confdefs.h. */
22270
22271/* Override any GCC internal prototype to avoid an error.
22272 Use char because int might match the return type of a GCC
22273 builtin and then its argument prototype would still apply. */
22274#ifdef __cplusplus
22275extern "C"
22276#endif
22277char opendir ();
22278int
22279main ()
22280{
22281return opendir ();
22282 ;
22283 return 0;
22284}
22285_ACEOF
22286for ac_lib in '' x; do
22287 if test -z "$ac_lib"; then
22288 ac_res="none required"
22289 else
22290 ac_res=-l$ac_lib
22291 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22292 fi
cristy8b350f62009-11-15 23:12:43 +000022293 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022294 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000022295fi
cristy8b350f62009-11-15 23:12:43 +000022296rm -f core conftest.err conftest.$ac_objext \
22297 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000022298 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022299 break
22300fi
22301done
cristyda16f162011-02-19 23:52:17 +000022302if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000022303
cristy3ed852e2009-09-05 21:47:34 +000022304else
22305 ac_cv_search_opendir=no
22306fi
22307rm conftest.$ac_ext
22308LIBS=$ac_func_search_save_LIBS
22309fi
cristy8b350f62009-11-15 23:12:43 +000022310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022311$as_echo "$ac_cv_search_opendir" >&6; }
22312ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000022313if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000022314 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22315
22316fi
22317
22318fi
22319
22320
22321# Check additional headers
cristy03f187e2013-01-24 00:22:19 +000022322for 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 +000022323do :
22324 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22325ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000022326if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022327 cat >>confdefs.h <<_ACEOF
22328#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22329_ACEOF
22330
22331fi
22332
22333done
22334
22335
22336########
22337#
22338# Checks for typedefs, structures, and compiler characteristics.
22339#
22340########
22341
cristy8b350f62009-11-15 23:12:43 +000022342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000022343$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022344if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022345 $as_echo_n "(cached) " >&6
22346else
cristy8b350f62009-11-15 23:12:43 +000022347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022348/* end confdefs.h. */
22349
cristy14fefe52012-05-21 00:59:18 +000022350 #include <stdbool.h>
22351 #ifndef bool
22352 "error: bool is not defined"
22353 #endif
22354 #ifndef false
22355 "error: false is not defined"
22356 #endif
22357 #if false
22358 "error: false is not 0"
22359 #endif
22360 #ifndef true
22361 "error: true is not defined"
22362 #endif
22363 #if true != 1
22364 "error: true is not 1"
22365 #endif
22366 #ifndef __bool_true_false_are_defined
22367 "error: __bool_true_false_are_defined is not defined"
22368 #endif
cristy3ed852e2009-09-05 21:47:34 +000022369
cristy14fefe52012-05-21 00:59:18 +000022370 struct s { _Bool s: 1; _Bool t; } s;
cristy3ed852e2009-09-05 21:47:34 +000022371
cristy14fefe52012-05-21 00:59:18 +000022372 char a[true == 1 ? 1 : -1];
22373 char b[false == 0 ? 1 : -1];
22374 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
22375 char d[(bool) 0.5 == true ? 1 : -1];
22376 /* See body of main program for 'e'. */
22377 char f[(_Bool) 0.0 == false ? 1 : -1];
22378 char g[true];
22379 char h[sizeof (_Bool)];
22380 char i[sizeof s.t];
22381 enum { j = false, k = true, l = false * true, m = true * 256 };
22382 /* The following fails for
22383 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
22384 _Bool n[m];
22385 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
22386 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
22387 /* Catch a bug in an HP-UX C compiler. See
22388 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
22389 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
22390 */
22391 _Bool q = true;
22392 _Bool *pq = &q;
cristy3ed852e2009-09-05 21:47:34 +000022393
22394int
22395main ()
22396{
22397
cristy14fefe52012-05-21 00:59:18 +000022398 bool e = &s;
22399 *pq |= q;
22400 *pq |= ! q;
22401 /* Refer to every declared value, to avoid compiler optimizations. */
22402 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
22403 + !m + !n + !o + !p + !q + !pq);
cristy3ed852e2009-09-05 21:47:34 +000022404
22405 ;
22406 return 0;
22407}
22408_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022409if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022410 ac_cv_header_stdbool_h=yes
22411else
cristy8b350f62009-11-15 23:12:43 +000022412 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000022413fi
cristy3ed852e2009-09-05 21:47:34 +000022414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22415fi
cristy8b350f62009-11-15 23:12:43 +000022416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000022417$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy14fefe52012-05-21 00:59:18 +000022418 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000022419if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000022420
22421cat >>confdefs.h <<_ACEOF
22422#define HAVE__BOOL 1
22423_ACEOF
22424
22425
22426fi
22427
cristy14fefe52012-05-21 00:59:18 +000022428
cristy3ed852e2009-09-05 21:47:34 +000022429if test $ac_cv_header_stdbool_h = yes; then
22430
cristy8b350f62009-11-15 23:12:43 +000022431$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022432
22433fi
22434
cristy8b350f62009-11-15 23:12:43 +000022435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022436$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022437if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022438 $as_echo_n "(cached) " >&6
22439else
cristy8b350f62009-11-15 23:12:43 +000022440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022441/* end confdefs.h. */
22442
22443int
22444main ()
22445{
22446
22447volatile int x;
22448int * volatile y = (int *) 0;
22449return !x && !y;
22450 ;
22451 return 0;
22452}
22453_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022454if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022455 ac_cv_c_volatile=yes
22456else
cristy8b350f62009-11-15 23:12:43 +000022457 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000022458fi
cristy3ed852e2009-09-05 21:47:34 +000022459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22460fi
cristy8b350f62009-11-15 23:12:43 +000022461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022462$as_echo "$ac_cv_c_volatile" >&6; }
22463if test $ac_cv_c_volatile = no; then
22464
cristy8b350f62009-11-15 23:12:43 +000022465$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022466
22467fi
22468
cristy8b350f62009-11-15 23:12:43 +000022469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000022470$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022471if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022472 $as_echo_n "(cached) " >&6
22473else
cristy8b350f62009-11-15 23:12:43 +000022474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022475/* end confdefs.h. */
22476#define x(y) #y
22477
22478char *s = x(teststring);
22479_ACEOF
22480if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022481 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022482 ac_cv_c_stringize=no
22483else
22484 ac_cv_c_stringize=yes
22485fi
22486rm -f conftest*
22487
22488fi
cristy8b350f62009-11-15 23:12:43 +000022489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000022490$as_echo "$ac_cv_c_stringize" >&6; }
22491if test $ac_cv_c_stringize = yes; then
22492
cristy8b350f62009-11-15 23:12:43 +000022493$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022494
22495fi
22496
cristy8b350f62009-11-15 23:12:43 +000022497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022498$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022499if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022500 $as_echo_n "(cached) " >&6
22501else
cristy8b350f62009-11-15 23:12:43 +000022502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022503/* end confdefs.h. */
22504#include <sys/types.h>
22505#include <sys/stat.h>
22506
22507#if defined S_ISBLK && defined S_IFDIR
22508extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22509#endif
22510
22511#if defined S_ISBLK && defined S_IFCHR
22512extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22513#endif
22514
22515#if defined S_ISLNK && defined S_IFREG
22516extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22517#endif
22518
22519#if defined S_ISSOCK && defined S_IFREG
22520extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22521#endif
22522
22523_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022524if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022525 ac_cv_header_stat_broken=no
22526else
cristy8b350f62009-11-15 23:12:43 +000022527 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000022528fi
cristy3ed852e2009-09-05 21:47:34 +000022529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22530fi
cristy8b350f62009-11-15 23:12:43 +000022531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022532$as_echo "$ac_cv_header_stat_broken" >&6; }
22533if test $ac_cv_header_stat_broken = yes; then
22534
cristy8b350f62009-11-15 23:12:43 +000022535$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022536
22537fi
22538
cristy8b350f62009-11-15 23:12:43 +000022539{ $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 +000022540$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022541if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022542 $as_echo_n "(cached) " >&6
22543else
cristy8b350f62009-11-15 23:12:43 +000022544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022545/* end confdefs.h. */
22546#include <sys/types.h>
22547#include <sys/time.h>
22548#include <time.h>
22549
22550int
22551main ()
22552{
22553if ((struct tm *) 0)
22554return 0;
22555 ;
22556 return 0;
22557}
22558_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022559if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022560 ac_cv_header_time=yes
22561else
cristy8b350f62009-11-15 23:12:43 +000022562 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000022563fi
cristy3ed852e2009-09-05 21:47:34 +000022564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22565fi
cristy8b350f62009-11-15 23:12:43 +000022566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000022567$as_echo "$ac_cv_header_time" >&6; }
22568if test $ac_cv_header_time = yes; then
22569
cristy8b350f62009-11-15 23:12:43 +000022570$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022571
22572fi
22573
cristy8b350f62009-11-15 23:12:43 +000022574{ $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 +000022575$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022576if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022577 $as_echo_n "(cached) " >&6
22578else
cristy8b350f62009-11-15 23:12:43 +000022579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022580/* end confdefs.h. */
22581#include <sys/types.h>
22582#include <time.h>
22583
22584int
22585main ()
22586{
22587struct tm tm;
22588 int *p = &tm.tm_sec;
22589 return !p;
22590 ;
22591 return 0;
22592}
22593_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022594if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022595 ac_cv_struct_tm=time.h
22596else
cristy8b350f62009-11-15 23:12:43 +000022597 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000022598fi
cristy3ed852e2009-09-05 21:47:34 +000022599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22600fi
cristy8b350f62009-11-15 23:12:43 +000022601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000022602$as_echo "$ac_cv_struct_tm" >&6; }
22603if test $ac_cv_struct_tm = sys/time.h; then
22604
cristy8b350f62009-11-15 23:12:43 +000022605$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022606
22607fi
22608
cristy92703d82010-04-26 00:18:18 +000022609ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
22610#include <$ac_cv_struct_tm>
22611
22612"
cristyda16f162011-02-19 23:52:17 +000022613if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022614
22615cat >>confdefs.h <<_ACEOF
22616#define HAVE_STRUCT_TM_TM_ZONE 1
22617_ACEOF
22618
22619
22620fi
22621
22622if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22623
22624$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
22625
22626else
22627 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
22628"
cristyda16f162011-02-19 23:52:17 +000022629if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022630 ac_have_decl=1
22631else
22632 ac_have_decl=0
22633fi
22634
22635cat >>confdefs.h <<_ACEOF
22636#define HAVE_DECL_TZNAME $ac_have_decl
22637_ACEOF
22638
22639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
22640$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022641if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000022642 $as_echo_n "(cached) " >&6
22643else
22644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22645/* end confdefs.h. */
22646#include <time.h>
22647#if !HAVE_DECL_TZNAME
22648extern char *tzname[];
22649#endif
22650
22651int
22652main ()
22653{
22654return tzname[0][0];
22655 ;
22656 return 0;
22657}
22658_ACEOF
22659if ac_fn_c_try_link "$LINENO"; then :
22660 ac_cv_var_tzname=yes
22661else
22662 ac_cv_var_tzname=no
22663fi
22664rm -f core conftest.err conftest.$ac_objext \
22665 conftest$ac_exeext conftest.$ac_ext
22666fi
22667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
22668$as_echo "$ac_cv_var_tzname" >&6; }
22669 if test $ac_cv_var_tzname = yes; then
22670
22671$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
22672
22673 fi
22674fi
22675
cristy8b350f62009-11-15 23:12:43 +000022676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000022677$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022678if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022679 $as_echo_n "(cached) " >&6
22680else
22681 echo '#! /bin/cat
22682exit 69
22683' >conftest
22684chmod u+x conftest
22685(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
22686if test $? -ne 69; then
22687 ac_cv_sys_interpreter=yes
22688else
22689 ac_cv_sys_interpreter=no
22690fi
22691rm -f conftest
22692fi
cristy8b350f62009-11-15 23:12:43 +000022693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000022694$as_echo "$ac_cv_sys_interpreter" >&6; }
22695interpval=$ac_cv_sys_interpreter
22696
22697
cristye80f9cb2013-01-09 01:09:31 +000022698#
22699# Checks for language qualifiers and semantics.
22700#
22701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
22702$as_echo_n "checking whether char is unsigned... " >&6; }
22703if ${ac_cv_c_char_unsigned+:} false; then :
22704 $as_echo_n "(cached) " >&6
22705else
22706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22707/* end confdefs.h. */
22708$ac_includes_default
22709int
22710main ()
22711{
22712static int test_array [1 - 2 * !(((char) -1) < 0)];
22713test_array [0] = 0;
22714return test_array [0];
22715
22716 ;
22717 return 0;
22718}
22719_ACEOF
22720if ac_fn_c_try_compile "$LINENO"; then :
22721 ac_cv_c_char_unsigned=no
22722else
22723 ac_cv_c_char_unsigned=yes
22724fi
22725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22726fi
22727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
22728$as_echo "$ac_cv_c_char_unsigned" >&6; }
22729if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
22730 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
22731
22732fi
22733
22734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
22735$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
22736if ${ac_cv_c_const+:} false; then :
22737 $as_echo_n "(cached) " >&6
22738else
22739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22740/* end confdefs.h. */
22741
22742int
22743main ()
22744{
22745
22746#ifndef __cplusplus
22747 /* Ultrix mips cc rejects this sort of thing. */
22748 typedef int charset[2];
22749 const charset cs = { 0, 0 };
22750 /* SunOS 4.1.1 cc rejects this. */
22751 char const *const *pcpcc;
22752 char **ppc;
22753 /* NEC SVR4.0.2 mips cc rejects this. */
22754 struct point {int x, y;};
22755 static struct point const zero = {0,0};
22756 /* AIX XL C 1.02.0.0 rejects this.
22757 It does not let you subtract one const X* pointer from another in
22758 an arm of an if-expression whose if-part is not a constant
22759 expression */
22760 const char *g = "string";
22761 pcpcc = &g + (g ? g-g : 0);
22762 /* HPUX 7.0 cc rejects these. */
22763 ++pcpcc;
22764 ppc = (char**) pcpcc;
22765 pcpcc = (char const *const *) ppc;
22766 { /* SCO 3.2v4 cc rejects this sort of thing. */
22767 char tx;
22768 char *t = &tx;
22769 char const *s = 0 ? (char *) 0 : (char const *) 0;
22770
22771 *t++ = 0;
22772 if (s) return 0;
22773 }
22774 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22775 int x[] = {25, 17};
22776 const int *foo = &x[0];
22777 ++foo;
22778 }
22779 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22780 typedef const int *iptr;
22781 iptr p = 0;
22782 ++p;
22783 }
22784 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
22785 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22786 struct s { int j; const int *ap[3]; } bx;
22787 struct s *b = &bx; b->j = 5;
22788 }
22789 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22790 const int foo = 10;
22791 if (!foo) return 0;
22792 }
22793 return !cs[0] && !zero.x;
22794#endif
22795
22796 ;
22797 return 0;
22798}
22799_ACEOF
22800if ac_fn_c_try_compile "$LINENO"; then :
22801 ac_cv_c_const=yes
22802else
22803 ac_cv_c_const=no
22804fi
22805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22806fi
22807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
22808$as_echo "$ac_cv_c_const" >&6; }
22809if test $ac_cv_c_const = no; then
22810
22811$as_echo "#define const /**/" >>confdefs.h
22812
22813fi
22814
cristy8b350f62009-11-15 23:12:43 +000022815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022816$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022817if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022818 $as_echo_n "(cached) " >&6
22819else
22820 ac_cv_c_inline=no
22821for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000022822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022823/* end confdefs.h. */
22824#ifndef __cplusplus
22825typedef int foo_t;
22826static $ac_kw foo_t static_foo () {return 0; }
22827$ac_kw foo_t foo () {return 0; }
22828#endif
22829
22830_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022831if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022832 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022833fi
cristy3ed852e2009-09-05 21:47:34 +000022834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22835 test "$ac_cv_c_inline" != no && break
22836done
22837
22838fi
cristy8b350f62009-11-15 23:12:43 +000022839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022840$as_echo "$ac_cv_c_inline" >&6; }
22841
cristy3ed852e2009-09-05 21:47:34 +000022842case $ac_cv_c_inline in
22843 inline | yes) ;;
22844 *)
22845 case $ac_cv_c_inline in
22846 no) ac_val=;;
22847 *) ac_val=$ac_cv_c_inline;;
22848 esac
22849 cat >>confdefs.h <<_ACEOF
22850#ifndef __cplusplus
22851#define inline $ac_val
22852#endif
22853_ACEOF
22854 ;;
22855esac
22856
cristy8b350f62009-11-15 23:12:43 +000022857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000022858$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022859if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022860 $as_echo_n "(cached) " >&6
22861else
22862 ac_cv_c_restrict=no
22863 # The order here caters to the fact that C++ does not require restrict.
22864 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000022865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022866/* end confdefs.h. */
22867typedef int * int_ptr;
22868 int foo (int_ptr $ac_kw ip) {
22869 return ip[0];
22870 }
22871int
22872main ()
22873{
22874int s[1];
22875 int * $ac_kw t = s;
22876 t[0] = 0;
22877 return foo(t)
22878 ;
22879 return 0;
22880}
22881_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022882if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022883 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022884fi
cristy3ed852e2009-09-05 21:47:34 +000022885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22886 test "$ac_cv_c_restrict" != no && break
22887 done
22888
22889fi
cristy8b350f62009-11-15 23:12:43 +000022890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000022891$as_echo "$ac_cv_c_restrict" >&6; }
22892
cristy3ed852e2009-09-05 21:47:34 +000022893 case $ac_cv_c_restrict in
22894 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000022895 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022896 ;;
22897 *) cat >>confdefs.h <<_ACEOF
22898#define restrict $ac_cv_c_restrict
22899_ACEOF
22900 ;;
22901 esac
22902
cristye80f9cb2013-01-09 01:09:31 +000022903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
22904$as_echo_n "checking for working volatile... " >&6; }
22905if ${ac_cv_c_volatile+:} false; then :
22906 $as_echo_n "(cached) " >&6
22907else
22908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22909/* end confdefs.h. */
22910
22911int
22912main ()
22913{
22914
22915volatile int x;
22916int * volatile y = (int *) 0;
22917return !x && !y;
22918 ;
22919 return 0;
22920}
22921_ACEOF
22922if ac_fn_c_try_compile "$LINENO"; then :
22923 ac_cv_c_volatile=yes
22924else
22925 ac_cv_c_volatile=no
22926fi
22927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22928fi
22929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
22930$as_echo "$ac_cv_c_volatile" >&6; }
22931if test $ac_cv_c_volatile = no; then
22932
22933$as_echo "#define volatile /**/" >>confdefs.h
22934
22935fi
22936
cristy3ed852e2009-09-05 21:47:34 +000022937
22938# If words are stored with the most significant byte first (like
22939# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000022940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022941$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022942if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022943 $as_echo_n "(cached) " >&6
22944else
22945 ac_cv_c_bigendian=unknown
22946 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000022947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022948/* end confdefs.h. */
22949#ifndef __APPLE_CC__
22950 not a universal capable compiler
22951 #endif
22952 typedef int dummy;
22953
22954_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022955if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022956
22957 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000022958 # there are at least two -arch flags with different values.
22959 ac_arch=
22960 ac_prev=
22961 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22962 if test -n "$ac_prev"; then
22963 case $ac_word in
22964 i?86 | x86_64 | ppc | ppc64)
22965 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22966 ac_arch=$ac_word
22967 else
22968 ac_cv_c_bigendian=universal
22969 break
22970 fi
22971 ;;
22972 esac
22973 ac_prev=
22974 elif test "x$ac_word" = "x-arch"; then
22975 ac_prev=arch
22976 fi
22977 done
cristy3ed852e2009-09-05 21:47:34 +000022978fi
cristy3ed852e2009-09-05 21:47:34 +000022979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22980 if test $ac_cv_c_bigendian = unknown; then
22981 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000022982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022983/* end confdefs.h. */
22984#include <sys/types.h>
22985 #include <sys/param.h>
22986
22987int
22988main ()
22989{
22990#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22991 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22992 && LITTLE_ENDIAN)
22993 bogus endian macros
22994 #endif
22995
22996 ;
22997 return 0;
22998}
22999_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023000if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023001 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000023002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023003/* end confdefs.h. */
23004#include <sys/types.h>
23005 #include <sys/param.h>
23006
23007int
23008main ()
23009{
23010#if BYTE_ORDER != BIG_ENDIAN
23011 not big endian
23012 #endif
23013
23014 ;
23015 return 0;
23016}
23017_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023018if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023019 ac_cv_c_bigendian=yes
23020else
cristy8b350f62009-11-15 23:12:43 +000023021 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000023022fi
cristy3ed852e2009-09-05 21:47:34 +000023023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023024fi
cristy3ed852e2009-09-05 21:47:34 +000023025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23026 fi
23027 if test $ac_cv_c_bigendian = unknown; then
23028 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000023029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023030/* end confdefs.h. */
23031#include <limits.h>
23032
23033int
23034main ()
23035{
23036#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
23037 bogus endian macros
23038 #endif
23039
23040 ;
23041 return 0;
23042}
23043_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023044if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023045 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000023046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023047/* end confdefs.h. */
23048#include <limits.h>
23049
23050int
23051main ()
23052{
23053#ifndef _BIG_ENDIAN
23054 not big endian
23055 #endif
23056
23057 ;
23058 return 0;
23059}
23060_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023061if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023062 ac_cv_c_bigendian=yes
23063else
cristy8b350f62009-11-15 23:12:43 +000023064 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000023065fi
cristy3ed852e2009-09-05 21:47:34 +000023066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023067fi
cristy3ed852e2009-09-05 21:47:34 +000023068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23069 fi
23070 if test $ac_cv_c_bigendian = unknown; then
23071 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000023072 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023073 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000023074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023075/* end confdefs.h. */
23076short int ascii_mm[] =
23077 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23078 short int ascii_ii[] =
23079 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23080 int use_ascii (int i) {
23081 return ascii_mm[i] + ascii_ii[i];
23082 }
23083 short int ebcdic_ii[] =
23084 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23085 short int ebcdic_mm[] =
23086 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23087 int use_ebcdic (int i) {
23088 return ebcdic_mm[i] + ebcdic_ii[i];
23089 }
23090 extern int foo;
23091
23092int
23093main ()
23094{
23095return use_ascii (foo) == use_ebcdic (foo);
23096 ;
23097 return 0;
23098}
23099_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023100if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023101 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
23102 ac_cv_c_bigendian=yes
23103 fi
23104 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23105 if test "$ac_cv_c_bigendian" = unknown; then
23106 ac_cv_c_bigendian=no
23107 else
23108 # finding both strings is unlikely to happen, but who knows?
23109 ac_cv_c_bigendian=unknown
23110 fi
23111 fi
cristy3ed852e2009-09-05 21:47:34 +000023112fi
cristy3ed852e2009-09-05 21:47:34 +000023113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23114else
cristy8b350f62009-11-15 23:12:43 +000023115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023116/* end confdefs.h. */
23117$ac_includes_default
23118int
23119main ()
23120{
23121
23122 /* Are we little or big endian? From Harbison&Steele. */
23123 union
23124 {
23125 long int l;
23126 char c[sizeof (long int)];
23127 } u;
23128 u.l = 1;
23129 return u.c[sizeof (long int) - 1] == 1;
23130
23131 ;
23132 return 0;
23133}
23134_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023135if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023136 ac_cv_c_bigendian=no
23137else
cristy8b350f62009-11-15 23:12:43 +000023138 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000023139fi
cristy8b350f62009-11-15 23:12:43 +000023140rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23141 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023142fi
23143
cristy3ed852e2009-09-05 21:47:34 +000023144 fi
23145fi
cristy8b350f62009-11-15 23:12:43 +000023146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000023147$as_echo "$ac_cv_c_bigendian" >&6; }
23148 case $ac_cv_c_bigendian in #(
23149 yes)
cristy8b350f62009-11-15 23:12:43 +000023150 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023151;; #(
23152 no)
23153 ;; #(
23154 universal)
23155
cristy8b350f62009-11-15 23:12:43 +000023156$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023157
23158 ;; #(
23159 *)
cristy98dddb52010-11-04 00:30:15 +000023160 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000023161 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000023162 esac
23163
23164
cristy501c8042011-05-26 17:46:28 +000023165# Define to a suitable type, if standard headers do not define it.
23166ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
23167case $ac_cv_c_int8_t in #(
23168 no|yes) ;; #(
23169 *)
cristy3ed852e2009-09-05 21:47:34 +000023170
23171cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000023172#define int8_t $ac_cv_c_int8_t
23173_ACEOF
23174;;
23175esac
23176
23177ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
23178case $ac_cv_c_int16_t in #(
23179 no|yes) ;; #(
23180 *)
23181
23182cat >>confdefs.h <<_ACEOF
23183#define int16_t $ac_cv_c_int16_t
23184_ACEOF
23185;;
23186esac
23187
23188ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
23189case $ac_cv_c_int32_t in #(
23190 no|yes) ;; #(
23191 *)
23192
23193cat >>confdefs.h <<_ACEOF
23194#define int32_t $ac_cv_c_int32_t
23195_ACEOF
23196;;
23197esac
23198
23199ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
23200case $ac_cv_c_int64_t in #(
23201 no|yes) ;; #(
23202 *)
23203
23204cat >>confdefs.h <<_ACEOF
23205#define int64_t $ac_cv_c_int64_t
23206_ACEOF
23207;;
23208esac
23209
23210
cristy045228a2013-06-23 11:00:16 +000023211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23212$as_echo_n "checking for unsigned long long int... " >&6; }
23213if ${ac_cv_type_unsigned_long_long_int+:} false; then :
cristy501c8042011-05-26 17:46:28 +000023214 $as_echo_n "(cached) " >&6
23215else
cristy045228a2013-06-23 11:00:16 +000023216 ac_cv_type_unsigned_long_long_int=yes
23217 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
23218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000023219/* end confdefs.h. */
23220
23221 /* For now, do not test the preprocessor; as of 2007 there are too many
cristy5ed9c6e2013-07-14 21:20:31 +000023222 implementations with broken preprocessors. Perhaps this can
23223 be revisited in 2012. In the meantime, code should not expect
23224 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000023225 /* Test literals. */
23226 long long int ll = 9223372036854775807ll;
23227 long long int nll = -9223372036854775807LL;
23228 unsigned long long int ull = 18446744073709551615ULL;
23229 /* Test constant expressions. */
23230 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristy5ed9c6e2013-07-14 21:20:31 +000023231 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023232 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristy5ed9c6e2013-07-14 21:20:31 +000023233 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023234 int i = 63;
23235int
23236main ()
23237{
23238/* Test availability of runtime routines for shift and division. */
23239 long long int llmax = 9223372036854775807ll;
23240 unsigned long long int ullmax = 18446744073709551615ull;
23241 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristy5ed9c6e2013-07-14 21:20:31 +000023242 | (llmax / ll) | (llmax % ll)
23243 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23244 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000023245 ;
23246 return 0;
23247}
23248
23249_ACEOF
23250if ac_fn_c_try_link "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000023251
23252else
23253 ac_cv_type_unsigned_long_long_int=no
23254fi
23255rm -f core conftest.err conftest.$ac_objext \
23256 conftest$ac_exeext conftest.$ac_ext
23257 fi
23258fi
23259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23260$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23261 if test $ac_cv_type_unsigned_long_long_int = yes; then
23262
23263$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23264
23265 fi
23266
23267
23268
23269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
23270$as_echo_n "checking for long long int... " >&6; }
23271if ${ac_cv_type_long_long_int+:} false; then :
23272 $as_echo_n "(cached) " >&6
23273else
cristy501c8042011-05-26 17:46:28 +000023274 ac_cv_type_long_long_int=yes
cristy045228a2013-06-23 11:00:16 +000023275 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
cristy5ed9c6e2013-07-14 21:20:31 +000023276 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
23277 if test $ac_cv_type_long_long_int = yes; then
23278 if test "$cross_compiling" = yes; then :
cristy045228a2013-06-23 11:00:16 +000023279 :
cristy501c8042011-05-26 17:46:28 +000023280else
23281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23282/* end confdefs.h. */
23283#include <limits.h>
cristy5ed9c6e2013-07-14 21:20:31 +000023284 #ifndef LLONG_MAX
23285 # define HALF \
23286 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
23287 # define LLONG_MAX (HALF - 1 + HALF)
23288 #endif
cristy501c8042011-05-26 17:46:28 +000023289int
23290main ()
23291{
23292long long int n = 1;
cristy5ed9c6e2013-07-14 21:20:31 +000023293 int i;
23294 for (i = 0; ; i++)
23295 {
23296 long long int m = n << i;
23297 if (m >> i != n)
23298 return 1;
23299 if (LLONG_MAX / 2 < m)
23300 break;
23301 }
23302 return 0;
cristy501c8042011-05-26 17:46:28 +000023303 ;
23304 return 0;
23305}
23306_ACEOF
23307if ac_fn_c_try_run "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000023308
cristy501c8042011-05-26 17:46:28 +000023309else
23310 ac_cv_type_long_long_int=no
23311fi
23312rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23313 conftest.$ac_objext conftest.beam conftest.$ac_ext
23314fi
23315
cristy5ed9c6e2013-07-14 21:20:31 +000023316 fi
cristy045228a2013-06-23 11:00:16 +000023317 fi
cristy501c8042011-05-26 17:46:28 +000023318fi
23319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
23320$as_echo "$ac_cv_type_long_long_int" >&6; }
23321 if test $ac_cv_type_long_long_int = yes; then
23322
23323$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
23324
23325 fi
23326
23327
23328
23329 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
23330if test "x$ac_cv_type_intmax_t" = xyes; then :
23331
23332$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
23333
23334else
23335 test $ac_cv_type_long_long_int = yes \
23336 && ac_type='long long int' \
23337 || ac_type='long int'
23338
23339cat >>confdefs.h <<_ACEOF
23340#define intmax_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000023341_ACEOF
23342
23343fi
23344
23345
cristy501c8042011-05-26 17:46:28 +000023346
23347 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
23348if test "x$ac_cv_type_intptr_t" = xyes; then :
23349
23350$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023351
cristy3ed852e2009-09-05 21:47:34 +000023352else
cristy501c8042011-05-26 17:46:28 +000023353 for ac_type in 'int' 'long int' 'long long int'; do
23354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23355/* end confdefs.h. */
23356$ac_includes_default
23357int
23358main ()
23359{
23360static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000023361test_array [0] = 0;
23362return test_array [0];
cristy501c8042011-05-26 17:46:28 +000023363
23364 ;
23365 return 0;
23366}
23367_ACEOF
23368if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023369
23370cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000023371#define intptr_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000023372_ACEOF
23373
cristy501c8042011-05-26 17:46:28 +000023374 ac_type=
23375fi
23376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23377 test -z "$ac_type" && break
23378 done
cristy3ed852e2009-09-05 21:47:34 +000023379fi
23380
23381
cristy3ed852e2009-09-05 21:47:34 +000023382
cristy501c8042011-05-26 17:46:28 +000023383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
23384$as_echo_n "checking for long double... " >&6; }
23385if ${ac_cv_type_long_double+:} false; then :
23386 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +000023387else
cristy501c8042011-05-26 17:46:28 +000023388 if test "$GCC" = yes; then
23389 ac_cv_type_long_double=yes
23390 else
23391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23392/* end confdefs.h. */
23393/* The Stardent Vistra knows sizeof (long double), but does
23394 not support it. */
23395 long double foo = 0.0L;
23396int
23397main ()
23398{
23399static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
23400 sizeof (double) <= sizeof (long double))];
cristy14fefe52012-05-21 00:59:18 +000023401test_array [0] = 0;
23402return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000023403
cristy501c8042011-05-26 17:46:28 +000023404 ;
23405 return 0;
23406}
cristy3ed852e2009-09-05 21:47:34 +000023407_ACEOF
cristy501c8042011-05-26 17:46:28 +000023408if ac_fn_c_try_compile "$LINENO"; then :
23409 ac_cv_type_long_double=yes
cristy3ed852e2009-09-05 21:47:34 +000023410else
cristy501c8042011-05-26 17:46:28 +000023411 ac_cv_type_long_double=no
cristy3ed852e2009-09-05 21:47:34 +000023412fi
cristy501c8042011-05-26 17:46:28 +000023413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23414 fi
cristy3ed852e2009-09-05 21:47:34 +000023415fi
cristy501c8042011-05-26 17:46:28 +000023416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
23417$as_echo "$ac_cv_type_long_double" >&6; }
23418 if test $ac_cv_type_long_double = yes; then
cristy3ed852e2009-09-05 21:47:34 +000023419
cristy501c8042011-05-26 17:46:28 +000023420$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023421
cristy501c8042011-05-26 17:46:28 +000023422 fi
23423
cristy3ed852e2009-09-05 21:47:34 +000023424
cristy8b350f62009-11-15 23:12:43 +000023425 { $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 +000023426$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023427if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023428 $as_echo_n "(cached) " >&6
23429else
cristy8b350f62009-11-15 23:12:43 +000023430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023431/* end confdefs.h. */
23432#include <float.h>
23433 long double const a[] =
23434 {
23435 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
23436 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
23437 };
23438 long double
23439 f (long double x)
23440 {
23441 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
23442 + (x ? f (x) : 'c'));
23443 }
23444
23445int
23446main ()
23447{
23448static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
23449 + (DBL_MANT_DIG < LDBL_MANT_DIG)
23450 - (LDBL_MAX_EXP < DBL_MAX_EXP)
23451 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
23452 && (int) LDBL_EPSILON == 0
23453 )];
cristy14fefe52012-05-21 00:59:18 +000023454test_array [0] = 0;
23455return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000023456
23457 ;
23458 return 0;
23459}
23460_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023461if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023462 ac_cv_type_long_double_wider=yes
23463else
cristy8b350f62009-11-15 23:12:43 +000023464 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000023465fi
cristy3ed852e2009-09-05 21:47:34 +000023466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23467fi
cristy8b350f62009-11-15 23:12:43 +000023468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000023469$as_echo "$ac_cv_type_long_double_wider" >&6; }
23470 if test $ac_cv_type_long_double_wider = yes; then
23471
cristy8b350f62009-11-15 23:12:43 +000023472$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023473
23474 fi
23475
23476
cristy045228a2013-06-23 11:00:16 +000023477
cristy501c8042011-05-26 17:46:28 +000023478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
23479$as_echo_n "checking for long long int... " >&6; }
23480if ${ac_cv_type_long_long_int+:} false; then :
23481 $as_echo_n "(cached) " >&6
23482else
cristy501c8042011-05-26 17:46:28 +000023483 ac_cv_type_long_long_int=yes
cristy045228a2013-06-23 11:00:16 +000023484 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
cristy5ed9c6e2013-07-14 21:20:31 +000023485 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
23486 if test $ac_cv_type_long_long_int = yes; then
23487 if test "$cross_compiling" = yes; then :
cristy045228a2013-06-23 11:00:16 +000023488 :
cristy501c8042011-05-26 17:46:28 +000023489else
23490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23491/* end confdefs.h. */
23492#include <limits.h>
cristy5ed9c6e2013-07-14 21:20:31 +000023493 #ifndef LLONG_MAX
23494 # define HALF \
23495 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
23496 # define LLONG_MAX (HALF - 1 + HALF)
23497 #endif
cristy501c8042011-05-26 17:46:28 +000023498int
23499main ()
23500{
23501long long int n = 1;
cristy5ed9c6e2013-07-14 21:20:31 +000023502 int i;
23503 for (i = 0; ; i++)
23504 {
23505 long long int m = n << i;
23506 if (m >> i != n)
23507 return 1;
23508 if (LLONG_MAX / 2 < m)
23509 break;
23510 }
23511 return 0;
cristy501c8042011-05-26 17:46:28 +000023512 ;
23513 return 0;
23514}
23515_ACEOF
23516if ac_fn_c_try_run "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000023517
cristy501c8042011-05-26 17:46:28 +000023518else
23519 ac_cv_type_long_long_int=no
23520fi
23521rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23522 conftest.$ac_objext conftest.beam conftest.$ac_ext
23523fi
23524
cristy5ed9c6e2013-07-14 21:20:31 +000023525 fi
cristy045228a2013-06-23 11:00:16 +000023526 fi
cristy501c8042011-05-26 17:46:28 +000023527fi
23528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
23529$as_echo "$ac_cv_type_long_long_int" >&6; }
23530 if test $ac_cv_type_long_long_int = yes; then
23531
23532$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
23533
23534 fi
23535
23536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
23537$as_echo_n "checking for mbstate_t... " >&6; }
23538if ${ac_cv_type_mbstate_t+:} false; then :
23539 $as_echo_n "(cached) " >&6
23540else
23541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23542/* end confdefs.h. */
23543$ac_includes_default
23544# include <wchar.h>
23545int
23546main ()
23547{
23548mbstate_t x; return sizeof x;
23549 ;
23550 return 0;
23551}
23552_ACEOF
23553if ac_fn_c_try_compile "$LINENO"; then :
23554 ac_cv_type_mbstate_t=yes
23555else
23556 ac_cv_type_mbstate_t=no
23557fi
23558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23559fi
23560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
23561$as_echo "$ac_cv_type_mbstate_t" >&6; }
23562 if test $ac_cv_type_mbstate_t = yes; then
23563
23564$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
23565
23566 else
23567
23568$as_echo "#define mbstate_t int" >>confdefs.h
23569
23570 fi
23571ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
23572if test "x$ac_cv_type_mode_t" = xyes; then :
23573
23574else
23575
23576cat >>confdefs.h <<_ACEOF
23577#define mode_t int
23578_ACEOF
23579
23580fi
23581
23582ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
23583if test "x$ac_cv_type_off_t" = xyes; then :
23584
23585else
23586
23587cat >>confdefs.h <<_ACEOF
23588#define off_t long int
23589_ACEOF
23590
23591fi
23592
23593ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
23594if test "x$ac_cv_type_pid_t" = xyes; then :
23595
23596else
23597
23598cat >>confdefs.h <<_ACEOF
23599#define pid_t int
23600_ACEOF
23601
23602fi
23603
23604ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
23605if test "x$ac_cv_type_size_t" = xyes; then :
23606
23607else
23608
23609cat >>confdefs.h <<_ACEOF
23610#define size_t unsigned int
23611_ACEOF
23612
23613fi
23614
23615ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23616if test "x$ac_cv_type_ssize_t" = xyes; then :
23617
23618else
23619
23620cat >>confdefs.h <<_ACEOF
23621#define ssize_t int
23622_ACEOF
23623
23624fi
23625
23626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
23627$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
23628if ${ac_cv_type_uid_t+:} false; then :
23629 $as_echo_n "(cached) " >&6
23630else
23631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23632/* end confdefs.h. */
23633#include <sys/types.h>
23634
23635_ACEOF
23636if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23637 $EGREP "uid_t" >/dev/null 2>&1; then :
23638 ac_cv_type_uid_t=yes
23639else
23640 ac_cv_type_uid_t=no
23641fi
23642rm -f conftest*
23643
23644fi
23645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
23646$as_echo "$ac_cv_type_uid_t" >&6; }
23647if test $ac_cv_type_uid_t = no; then
23648
23649$as_echo "#define uid_t int" >>confdefs.h
23650
23651
23652$as_echo "#define gid_t int" >>confdefs.h
23653
23654fi
23655
23656ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
23657case $ac_cv_c_uint8_t in #(
23658 no|yes) ;; #(
23659 *)
23660
23661$as_echo "#define _UINT8_T 1" >>confdefs.h
23662
23663
23664cat >>confdefs.h <<_ACEOF
23665#define uint8_t $ac_cv_c_uint8_t
23666_ACEOF
23667;;
23668 esac
23669
23670ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
23671case $ac_cv_c_uint16_t in #(
23672 no|yes) ;; #(
23673 *)
23674
23675
23676cat >>confdefs.h <<_ACEOF
23677#define uint16_t $ac_cv_c_uint16_t
23678_ACEOF
23679;;
23680 esac
23681
23682ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
23683case $ac_cv_c_uint32_t in #(
23684 no|yes) ;; #(
23685 *)
23686
23687$as_echo "#define _UINT32_T 1" >>confdefs.h
23688
23689
23690cat >>confdefs.h <<_ACEOF
23691#define uint32_t $ac_cv_c_uint32_t
23692_ACEOF
23693;;
23694 esac
23695
23696ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
23697case $ac_cv_c_uint64_t in #(
23698 no|yes) ;; #(
23699 *)
23700
23701$as_echo "#define _UINT64_T 1" >>confdefs.h
23702
23703
23704cat >>confdefs.h <<_ACEOF
23705#define uint64_t $ac_cv_c_uint64_t
23706_ACEOF
23707;;
23708 esac
23709
23710
cristy501c8042011-05-26 17:46:28 +000023711
23712 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
23713if test "x$ac_cv_type_uintmax_t" = xyes; then :
23714
23715$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
23716
23717else
23718 test $ac_cv_type_unsigned_long_long_int = yes \
23719 && ac_type='unsigned long long int' \
23720 || ac_type='unsigned long int'
23721
23722cat >>confdefs.h <<_ACEOF
23723#define uintmax_t $ac_type
23724_ACEOF
23725
23726fi
23727
23728
23729
23730 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23731if test "x$ac_cv_type_uintptr_t" = xyes; then :
23732
23733$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
23734
23735else
23736 for ac_type in 'unsigned int' 'unsigned long int' \
23737 'unsigned long long int'; do
23738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23739/* end confdefs.h. */
23740$ac_includes_default
23741int
23742main ()
23743{
23744static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000023745test_array [0] = 0;
23746return test_array [0];
cristy501c8042011-05-26 17:46:28 +000023747
23748 ;
23749 return 0;
23750}
23751_ACEOF
23752if ac_fn_c_try_compile "$LINENO"; then :
23753
23754cat >>confdefs.h <<_ACEOF
23755#define uintptr_t $ac_type
23756_ACEOF
23757
23758 ac_type=
23759fi
23760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23761 test -z "$ac_type" && break
23762 done
23763fi
23764
23765
23766
23767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23768$as_echo_n "checking for unsigned long long int... " >&6; }
23769if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23770 $as_echo_n "(cached) " >&6
23771else
cristy045228a2013-06-23 11:00:16 +000023772 ac_cv_type_unsigned_long_long_int=yes
23773 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
23774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000023775/* end confdefs.h. */
23776
23777 /* For now, do not test the preprocessor; as of 2007 there are too many
cristy5ed9c6e2013-07-14 21:20:31 +000023778 implementations with broken preprocessors. Perhaps this can
23779 be revisited in 2012. In the meantime, code should not expect
23780 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000023781 /* Test literals. */
23782 long long int ll = 9223372036854775807ll;
23783 long long int nll = -9223372036854775807LL;
23784 unsigned long long int ull = 18446744073709551615ULL;
23785 /* Test constant expressions. */
23786 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristy5ed9c6e2013-07-14 21:20:31 +000023787 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023788 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristy5ed9c6e2013-07-14 21:20:31 +000023789 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023790 int i = 63;
23791int
23792main ()
23793{
23794/* Test availability of runtime routines for shift and division. */
23795 long long int llmax = 9223372036854775807ll;
23796 unsigned long long int ullmax = 18446744073709551615ull;
23797 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristy5ed9c6e2013-07-14 21:20:31 +000023798 | (llmax / ll) | (llmax % ll)
23799 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23800 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000023801 ;
23802 return 0;
23803}
23804
23805_ACEOF
23806if ac_fn_c_try_link "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000023807
cristy501c8042011-05-26 17:46:28 +000023808else
23809 ac_cv_type_unsigned_long_long_int=no
23810fi
23811rm -f core conftest.err conftest.$ac_objext \
23812 conftest$ac_exeext conftest.$ac_ext
cristy045228a2013-06-23 11:00:16 +000023813 fi
cristy501c8042011-05-26 17:46:28 +000023814fi
23815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23816$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23817 if test $ac_cv_type_unsigned_long_long_int = yes; then
23818
23819$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23820
23821 fi
23822
23823
cristyfec31822013-05-23 12:32:12 +000023824# Float_t and double_t are intended to be the the most efficient type.
23825ac_fn_c_check_type "$LINENO" "float_t" "ac_cv_type_float_t" "#include <math.h>
23826"
23827if test "x$ac_cv_type_float_t" = xyes; then :
23828
23829cat >>confdefs.h <<_ACEOF
23830#define HAVE_FLOAT_T 1
23831_ACEOF
23832
23833
23834fi
23835
23836ac_fn_c_check_type "$LINENO" "double_t" "ac_cv_type_double_t" "#include <math.h>
23837"
23838if test "x$ac_cv_type_double_t" = xyes; then :
23839
23840cat >>confdefs.h <<_ACEOF
23841#define HAVE_DOUBLE_T 1
23842_ACEOF
23843
23844
23845fi
23846
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.
23851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float_t" >&5
23852$as_echo_n "checking size of float_t... " >&6; }
23853if ${ac_cv_sizeof_float_t+:} false; then :
23854 $as_echo_n "(cached) " >&6
23855else
23856 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float_t))" "ac_cv_sizeof_float_t" "#include <math.h>
23857"; then :
23858
23859else
23860 if test "$ac_cv_type_float_t" = yes; then
23861 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23862$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23863as_fn_error 77 "cannot compute sizeof (float_t)
23864See \`config.log' for more details" "$LINENO" 5; }
23865 else
23866 ac_cv_sizeof_float_t=0
23867 fi
23868fi
23869
23870fi
23871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float_t" >&5
23872$as_echo "$ac_cv_sizeof_float_t" >&6; }
23873
23874
23875
23876cat >>confdefs.h <<_ACEOF
23877#define SIZEOF_FLOAT_T $ac_cv_sizeof_float_t
23878_ACEOF
23879
23880
23881# The cast to long int works around a bug in the HP C Compiler
23882# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23883# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23884# This bug is HP SR number 8606223364.
23885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double_t" >&5
23886$as_echo_n "checking size of double_t... " >&6; }
23887if ${ac_cv_sizeof_double_t+:} false; then :
23888 $as_echo_n "(cached) " >&6
23889else
23890 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double_t))" "ac_cv_sizeof_double_t" "#include <math.h>
23891"; then :
23892
23893else
23894 if test "$ac_cv_type_double_t" = yes; then
23895 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23896$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23897as_fn_error 77 "cannot compute sizeof (double_t)
23898See \`config.log' for more details" "$LINENO" 5; }
23899 else
23900 ac_cv_sizeof_double_t=0
23901 fi
23902fi
23903
23904fi
23905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double_t" >&5
23906$as_echo "$ac_cv_sizeof_double_t" >&6; }
23907
23908
23909
23910cat >>confdefs.h <<_ACEOF
23911#define SIZEOF_DOUBLE_T $ac_cv_sizeof_double_t
23912_ACEOF
23913
23914
23915
cristy9b86f202012-11-28 21:55:35 +000023916# Get size of float, double and long double for comparaison.
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.
23921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
23922$as_echo_n "checking size of float... " >&6; }
23923if ${ac_cv_sizeof_float+:} false; then :
23924 $as_echo_n "(cached) " >&6
23925else
23926 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
23927
23928else
23929 if test "$ac_cv_type_float" = yes; then
23930 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23931$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23932as_fn_error 77 "cannot compute sizeof (float)
23933See \`config.log' for more details" "$LINENO" 5; }
23934 else
23935 ac_cv_sizeof_float=0
23936 fi
23937fi
23938
23939fi
23940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
23941$as_echo "$ac_cv_sizeof_float" >&6; }
23942
23943
23944
23945cat >>confdefs.h <<_ACEOF
23946#define SIZEOF_FLOAT $ac_cv_sizeof_float
23947_ACEOF
23948
23949
23950# The cast to long int works around a bug in the HP C Compiler
23951# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23952# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23953# This bug is HP SR number 8606223364.
23954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
23955$as_echo_n "checking size of double... " >&6; }
23956if ${ac_cv_sizeof_double+:} false; then :
23957 $as_echo_n "(cached) " >&6
23958else
23959 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
23960
23961else
23962 if test "$ac_cv_type_double" = yes; then
23963 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23964$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23965as_fn_error 77 "cannot compute sizeof (double)
23966See \`config.log' for more details" "$LINENO" 5; }
23967 else
23968 ac_cv_sizeof_double=0
23969 fi
23970fi
23971
23972fi
23973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
23974$as_echo "$ac_cv_sizeof_double" >&6; }
23975
23976
23977
23978cat >>confdefs.h <<_ACEOF
23979#define SIZEOF_DOUBLE $ac_cv_sizeof_double
23980_ACEOF
23981
23982
cristy9e2b6242014-03-25 11:49:41 +000023983# The cast to long int works around a bug in the HP C Compiler
cristyfec31822013-05-23 12:32:12 +000023984# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23985# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23986# This bug is HP SR number 8606223364.
23987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
23988$as_echo_n "checking size of long double... " >&6; }
23989if ${ac_cv_sizeof_long_double+:} false; then :
23990 $as_echo_n "(cached) " >&6
23991else
23992 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
23993
23994else
23995 if test "$ac_cv_type_long_double" = yes; then
23996 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23997$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23998as_fn_error 77 "cannot compute sizeof (long double)
23999See \`config.log' for more details" "$LINENO" 5; }
24000 else
24001 ac_cv_sizeof_long_double=0
24002 fi
24003fi
24004
24005fi
24006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
24007$as_echo "$ac_cv_sizeof_long_double" >&6; }
24008
24009
24010
24011cat >>confdefs.h <<_ACEOF
24012#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
24013_ACEOF
24014
24015
cristyf0cf9a22012-10-24 12:05:01 +000024016
cristy3ed852e2009-09-05 21:47:34 +000024017# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
24018# The cast to long int works around a bug in the HP C Compiler
24019# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24020# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24021# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000024023$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024024if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024025 $as_echo_n "(cached) " >&6
24026else
cristy8b350f62009-11-15 23:12:43 +000024027 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 +000024028
cristy3ed852e2009-09-05 21:47:34 +000024029else
cristy8b350f62009-11-15 23:12:43 +000024030 if test "$ac_cv_type_signed_short" = yes; then
24031 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024032$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024033as_fn_error 77 "cannot compute sizeof (signed short)
24034See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024035 else
24036 ac_cv_sizeof_signed_short=0
24037 fi
24038fi
cristy8b350f62009-11-15 23:12:43 +000024039
cristy3ed852e2009-09-05 21:47:34 +000024040fi
cristy8b350f62009-11-15 23:12:43 +000024041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000024042$as_echo "$ac_cv_sizeof_signed_short" >&6; }
24043
24044
24045
24046cat >>confdefs.h <<_ACEOF
24047#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
24048_ACEOF
24049
24050
24051
24052# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
24053# The cast to long int works around a bug in the HP C Compiler
24054# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24055# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24056# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000024058$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024059if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024060 $as_echo_n "(cached) " >&6
24061else
cristy8b350f62009-11-15 23:12:43 +000024062 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 +000024063
cristy3ed852e2009-09-05 21:47:34 +000024064else
cristy8b350f62009-11-15 23:12:43 +000024065 if test "$ac_cv_type_unsigned_short" = yes; then
24066 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024067$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024068as_fn_error 77 "cannot compute sizeof (unsigned short)
24069See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024070 else
24071 ac_cv_sizeof_unsigned_short=0
24072 fi
24073fi
cristy8b350f62009-11-15 23:12:43 +000024074
cristy3ed852e2009-09-05 21:47:34 +000024075fi
cristy8b350f62009-11-15 23:12:43 +000024076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000024077$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
24078
24079
24080
24081cat >>confdefs.h <<_ACEOF
24082#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
24083_ACEOF
24084
24085
24086
24087# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
24088# The cast to long int works around a bug in the HP C Compiler
24089# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24090# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24091# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024093$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024094if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024095 $as_echo_n "(cached) " >&6
24096else
cristy8b350f62009-11-15 23:12:43 +000024097 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 +000024098
cristy3ed852e2009-09-05 21:47:34 +000024099else
cristy8b350f62009-11-15 23:12:43 +000024100 if test "$ac_cv_type_signed_int" = yes; then
24101 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024102$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024103as_fn_error 77 "cannot compute sizeof (signed int)
24104See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024105 else
24106 ac_cv_sizeof_signed_int=0
24107 fi
24108fi
cristy8b350f62009-11-15 23:12:43 +000024109
cristy3ed852e2009-09-05 21:47:34 +000024110fi
cristy8b350f62009-11-15 23:12:43 +000024111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024112$as_echo "$ac_cv_sizeof_signed_int" >&6; }
24113
24114
24115
24116cat >>confdefs.h <<_ACEOF
24117#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
24118_ACEOF
24119
24120
24121
24122# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
24123# The cast to long int works around a bug in the HP C Compiler
24124# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24125# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24126# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024128$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024129if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024130 $as_echo_n "(cached) " >&6
24131else
cristy8b350f62009-11-15 23:12:43 +000024132 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 +000024133
cristy3ed852e2009-09-05 21:47:34 +000024134else
cristy8b350f62009-11-15 23:12:43 +000024135 if test "$ac_cv_type_unsigned_int" = yes; then
24136 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024137$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024138as_fn_error 77 "cannot compute sizeof (unsigned int)
24139See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024140 else
24141 ac_cv_sizeof_unsigned_int=0
24142 fi
24143fi
cristy8b350f62009-11-15 23:12:43 +000024144
cristy3ed852e2009-09-05 21:47:34 +000024145fi
cristy8b350f62009-11-15 23:12:43 +000024146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024147$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
24148
24149
24150
24151cat >>confdefs.h <<_ACEOF
24152#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
24153_ACEOF
24154
24155
24156
24157# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
24158# The cast to long int works around a bug in the HP C Compiler
24159# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24160# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24161# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024163$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024164if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024165 $as_echo_n "(cached) " >&6
24166else
cristy8b350f62009-11-15 23:12:43 +000024167 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 +000024168
cristy3ed852e2009-09-05 21:47:34 +000024169else
cristy8b350f62009-11-15 23:12:43 +000024170 if test "$ac_cv_type_signed_long" = yes; then
24171 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024172$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024173as_fn_error 77 "cannot compute sizeof (signed long)
24174See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024175 else
24176 ac_cv_sizeof_signed_long=0
24177 fi
24178fi
cristy8b350f62009-11-15 23:12:43 +000024179
cristy3ed852e2009-09-05 21:47:34 +000024180fi
cristy8b350f62009-11-15 23:12:43 +000024181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024182$as_echo "$ac_cv_sizeof_signed_long" >&6; }
24183
24184
24185
24186cat >>confdefs.h <<_ACEOF
24187#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
24188_ACEOF
24189
24190
24191
24192# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
24193# The cast to long int works around a bug in the HP C Compiler
24194# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24195# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24196# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024198$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024199if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024200 $as_echo_n "(cached) " >&6
24201else
cristy8b350f62009-11-15 23:12:43 +000024202 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 +000024203
cristy3ed852e2009-09-05 21:47:34 +000024204else
cristy8b350f62009-11-15 23:12:43 +000024205 if test "$ac_cv_type_unsigned_long" = yes; then
24206 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024207$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024208as_fn_error 77 "cannot compute sizeof (unsigned long)
24209See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024210 else
24211 ac_cv_sizeof_unsigned_long=0
24212 fi
24213fi
cristy8b350f62009-11-15 23:12:43 +000024214
cristy3ed852e2009-09-05 21:47:34 +000024215fi
cristy8b350f62009-11-15 23:12:43 +000024216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024217$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
24218
24219
24220
24221cat >>confdefs.h <<_ACEOF
24222#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
24223_ACEOF
24224
24225
24226
24227# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
24228# 'signed long long' is not supported then the value defined is zero.
24229# The cast to long int works around a bug in the HP C Compiler
24230# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24231# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24232# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024234$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024235if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024236 $as_echo_n "(cached) " >&6
24237else
cristy8b350f62009-11-15 23:12:43 +000024238 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 +000024239
cristy3ed852e2009-09-05 21:47:34 +000024240else
cristy8b350f62009-11-15 23:12:43 +000024241 if test "$ac_cv_type_signed_long_long" = yes; then
24242 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024243$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024244as_fn_error 77 "cannot compute sizeof (signed long long)
24245See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024246 else
24247 ac_cv_sizeof_signed_long_long=0
24248 fi
24249fi
cristy8b350f62009-11-15 23:12:43 +000024250
cristy3ed852e2009-09-05 21:47:34 +000024251fi
cristy8b350f62009-11-15 23:12:43 +000024252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024253$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
24254
24255
24256
24257cat >>confdefs.h <<_ACEOF
24258#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
24259_ACEOF
24260
24261
24262
24263# Obtain size of a 'unsigned long long' and define as
24264# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
24265# supported then the value defined is zero.
24266# The cast to long int works around a bug in the HP C Compiler
24267# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24268# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24269# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024271$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024272if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024273 $as_echo_n "(cached) " >&6
24274else
cristy8b350f62009-11-15 23:12:43 +000024275 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 +000024276
cristy3ed852e2009-09-05 21:47:34 +000024277else
cristy8b350f62009-11-15 23:12:43 +000024278 if test "$ac_cv_type_unsigned_long_long" = yes; then
24279 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024280$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024281as_fn_error 77 "cannot compute sizeof (unsigned long long)
24282See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024283 else
24284 ac_cv_sizeof_unsigned_long_long=0
24285 fi
24286fi
cristy8b350f62009-11-15 23:12:43 +000024287
cristy3ed852e2009-09-05 21:47:34 +000024288fi
cristy8b350f62009-11-15 23:12:43 +000024289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024290$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
24291
24292
24293
24294cat >>confdefs.h <<_ACEOF
24295#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
24296_ACEOF
24297
24298
24299
cristyfec31822013-05-23 12:32:12 +000024300# Obtain size of off_t and define as SIZEOF_OFF_T
24301# The cast to long int works around a bug in the HP C Compiler
24302# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24303# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24304# This bug is HP SR number 8606223364.
24305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
24306$as_echo_n "checking size of off_t... " >&6; }
24307if ${ac_cv_sizeof_off_t+:} false; then :
24308 $as_echo_n "(cached) " >&6
24309else
24310 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
24311
24312else
24313 if test "$ac_cv_type_off_t" = yes; then
24314 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24315$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24316as_fn_error 77 "cannot compute sizeof (off_t)
24317See \`config.log' for more details" "$LINENO" 5; }
24318 else
24319 ac_cv_sizeof_off_t=0
24320 fi
24321fi
24322
24323fi
24324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
24325$as_echo "$ac_cv_sizeof_off_t" >&6; }
24326
24327
24328
24329cat >>confdefs.h <<_ACEOF
24330#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
24331_ACEOF
24332
24333
24334
24335# Obtain size of size_t and define as SIZEOF_SIZE_T
24336# The cast to long int works around a bug in the HP C Compiler
24337# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24338# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24339# This bug is HP SR number 8606223364.
24340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
24341$as_echo_n "checking size of size_t... " >&6; }
24342if ${ac_cv_sizeof_size_t+:} false; then :
24343 $as_echo_n "(cached) " >&6
24344else
24345 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
24346
24347else
24348 if test "$ac_cv_type_size_t" = yes; then
24349 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24350$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24351as_fn_error 77 "cannot compute sizeof (size_t)
24352See \`config.log' for more details" "$LINENO" 5; }
24353 else
24354 ac_cv_sizeof_size_t=0
24355 fi
24356fi
24357
24358fi
24359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
24360$as_echo "$ac_cv_sizeof_size_t" >&6; }
24361
24362
24363
24364cat >>confdefs.h <<_ACEOF
24365#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
24366_ACEOF
24367
24368
24369
24370# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
24371# The cast to long int works around a bug in the HP C Compiler
24372# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24373# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24374# This bug is HP SR number 8606223364.
24375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
24376$as_echo_n "checking size of ssize_t... " >&6; }
24377if ${ac_cv_sizeof_ssize_t+:} false; then :
24378 $as_echo_n "(cached) " >&6
24379else
24380 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
24381
24382else
24383 if test "$ac_cv_type_ssize_t" = yes; then
24384 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24385$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24386as_fn_error 77 "cannot compute sizeof (ssize_t)
24387See \`config.log' for more details" "$LINENO" 5; }
24388 else
24389 ac_cv_sizeof_ssize_t=0
24390 fi
24391fi
24392
24393fi
24394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
24395$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
24396
24397
24398
24399cat >>confdefs.h <<_ACEOF
24400#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
24401_ACEOF
24402
24403
24404
cristy3ed852e2009-09-05 21:47:34 +000024405# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
24406# The cast to long int works around a bug in the HP C Compiler
24407# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24408# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24409# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000024411$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024412if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024413 $as_echo_n "(cached) " >&6
24414else
cristy8b350f62009-11-15 23:12:43 +000024415 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 +000024416
cristy3ed852e2009-09-05 21:47:34 +000024417else
cristy8b350f62009-11-15 23:12:43 +000024418 if test "$ac_cv_type_unsigned_intp" = yes; then
24419 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024420$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024421as_fn_error 77 "cannot compute sizeof (unsigned int*)
24422See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024423 else
24424 ac_cv_sizeof_unsigned_intp=0
24425 fi
24426fi
cristy8b350f62009-11-15 23:12:43 +000024427
cristy3ed852e2009-09-05 21:47:34 +000024428fi
cristy8b350f62009-11-15 23:12:43 +000024429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024430$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
24431
24432
24433
24434cat >>confdefs.h <<_ACEOF
24435#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
24436_ACEOF
24437
24438
24439
24440#
24441# Compute sized types for current CPU and compiler options.
24442#
24443
cristy8b350f62009-11-15 23:12:43 +000024444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024445$as_echo_n "checking for signed 8-bit type... " >&6; }
24446INT8_T='signed char'
cristyad38abe2012-12-23 23:03:21 +000024447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
24448$as_echo "$INT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024449
24450
cristy8b350f62009-11-15 23:12:43 +000024451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024452$as_echo_n "checking for unsigned 8-bit type... " >&6; }
24453UINT8_T='unsigned char'
cristyad38abe2012-12-23 23:03:21 +000024454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
24455$as_echo "$UINT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024456
24457
cristy8b350f62009-11-15 23:12:43 +000024458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024459$as_echo_n "checking for signed 16-bit type... " >&6; }
24460INT16_T='signed short'
cristyad38abe2012-12-23 23:03:21 +000024461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
24462$as_echo "$INT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024463
24464
cristy8b350f62009-11-15 23:12:43 +000024465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024466$as_echo_n "checking for unsigned 16-bit type... " >&6; }
24467UINT16_T='unsigned short'
cristyad38abe2012-12-23 23:03:21 +000024468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
24469$as_echo "$UINT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024470
24471
cristy8b350f62009-11-15 23:12:43 +000024472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024473$as_echo_n "checking for signed 32-bit type... " >&6; }
24474INT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024475INT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024476if test $ac_cv_sizeof_signed_int -eq 4; then
24477 INT32_T='signed int'
cristy6d5e20f2011-04-25 13:48:54 +000024478 INT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000024479elif test $ac_cv_sizeof_signed_long -eq 4; then
24480 INT32_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000024481 INT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024482fi
cristyad38abe2012-12-23 23:03:21 +000024483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
24484$as_echo "$INT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024485
24486
cristy6d5e20f2011-04-25 13:48:54 +000024487
cristy8b350f62009-11-15 23:12:43 +000024488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024489$as_echo_n "checking for unsigned 32-bit type... " >&6; }
24490UINT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024491UINT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024492if test $ac_cv_sizeof_unsigned_int -eq 4; then
24493 UINT32_T='unsigned int'
cristy6d5e20f2011-04-25 13:48:54 +000024494 UINT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000024495elif test $ac_cv_sizeof_unsigned_long -eq 4; then
24496 UINT32_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024497 UINT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024498fi
cristyad38abe2012-12-23 23:03:21 +000024499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
24500$as_echo "$UINT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024501
24502
cristy6d5e20f2011-04-25 13:48:54 +000024503
cristy8b350f62009-11-15 23:12:43 +000024504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024505$as_echo_n "checking for signed 64-bit type... " >&6; }
24506INT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024507INT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024508if test $ac_cv_sizeof_signed_long -eq 8; then
24509 INT64_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000024510 INT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024511elif test $ac_cv_sizeof_signed_long_long -eq 8; then
24512 INT64_T='signed long long'
cristy6d5e20f2011-04-25 13:48:54 +000024513 INT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024514fi
cristy3a99dcf2011-12-17 01:29:40 +000024515case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000024516 mingw* )
24517 INT64_F='"I64"'
24518 ;;
24519esac
cristyad38abe2012-12-23 23:03:21 +000024520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
24521$as_echo "$INT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024522
24523
cristy6d5e20f2011-04-25 13:48:54 +000024524
cristy8b350f62009-11-15 23:12:43 +000024525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024526$as_echo_n "checking for unsigned 64-bit type... " >&6; }
24527UINT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024528UINT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024529if test $ac_cv_sizeof_unsigned_long -eq 8; then
24530 UINT64_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024531 UINT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024532elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
24533 UINT64_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000024534 UINT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024535fi
cristy3a99dcf2011-12-17 01:29:40 +000024536case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000024537 mingw* )
24538 UINT64_F='"I64"'
24539 ;;
24540esac
cristyad38abe2012-12-23 23:03:21 +000024541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
24542$as_echo "$UINT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024543
24544
cristy6d5e20f2011-04-25 13:48:54 +000024545
cristy8b350f62009-11-15 23:12:43 +000024546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024547$as_echo_n "checking for unsigned maximum type... " >&6; }
24548UINTMAX_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024549UINTMAX_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024550if test "$UINT64_T" != 'none'; then
24551 UINTMAX_T=$UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +000024552 UINTMAX_F=$UINT64_F
cristy3ed852e2009-09-05 21:47:34 +000024553elif test "$UINT32_T" != 'none'; then
24554 UINTMAX_T=$UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +000024555 UINTMAX_F=$UINT32_F
cristy3ed852e2009-09-05 21:47:34 +000024556fi
cristyad38abe2012-12-23 23:03:21 +000024557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
24558$as_echo "$UINTMAX_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024559
24560
cristy6d5e20f2011-04-25 13:48:54 +000024561
cristy8b350f62009-11-15 23:12:43 +000024562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024563$as_echo_n "checking for pointer difference type... " >&6; }
24564UINTPTR_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024565UINTPTR_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024566if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
24567 UINTPTR_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024568 UINTPTR_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024569elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
24570 UINTPTR_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000024571 UINTPTR_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024572fi
cristyad38abe2012-12-23 23:03:21 +000024573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
24574$as_echo "$UINTPTR_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024575
24576
cristy6d5e20f2011-04-25 13:48:54 +000024577
cristy8b350f62009-11-15 23:12:43 +000024578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000024579$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024580cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024581/* end confdefs.h. */
24582
24583int
24584main ()
24585{
24586{ const char *func = __func__; return(func != 0 ? 0 : 1); }
24587 ;
24588 return 0;
24589}
24590_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024591if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000024592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24593$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024594else
cristyad38abe2012-12-23 23:03:21 +000024595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24596$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000024598$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024600/* end confdefs.h. */
24601
24602int
24603main ()
24604{
24605{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
24606 ;
24607 return 0;
24608}
24609_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024610if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000024611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24612$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024613
cristy8b350f62009-11-15 23:12:43 +000024614$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024615
24616else
cristyad38abe2012-12-23 23:03:21 +000024617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24618$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024619
cristy8b350f62009-11-15 23:12:43 +000024620$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024621
24622fi
cristy3ed852e2009-09-05 21:47:34 +000024623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24624fi
cristy3ed852e2009-09-05 21:47:34 +000024625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24626
24627########
24628#
24629# Check for functions
24630#
24631########
cristy8b350f62009-11-15 23:12:43 +000024632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024633$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024634if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024635 $as_echo_n "(cached) " >&6
24636else
cristy8b350f62009-11-15 23:12:43 +000024637 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024638 ac_cv_func_closedir_void=yes
24639else
cristy8b350f62009-11-15 23:12:43 +000024640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024641/* end confdefs.h. */
24642$ac_includes_default
24643#include <$ac_header_dirent>
24644#ifndef __cplusplus
24645int closedir ();
24646#endif
24647
24648int
24649main ()
24650{
24651return closedir (opendir (".")) != 0;
24652 ;
24653 return 0;
24654}
24655_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024656if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024657 ac_cv_func_closedir_void=no
24658else
cristy8b350f62009-11-15 23:12:43 +000024659 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000024660fi
cristy8b350f62009-11-15 23:12:43 +000024661rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24662 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024663fi
24664
cristy3ed852e2009-09-05 21:47:34 +000024665fi
cristy8b350f62009-11-15 23:12:43 +000024666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024667$as_echo "$ac_cv_func_closedir_void" >&6; }
24668if test $ac_cv_func_closedir_void = yes; then
24669
cristy8b350f62009-11-15 23:12:43 +000024670$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024671
24672fi
24673
cristycd4c5312009-11-22 01:19:08 +000024674
24675
24676
24677 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000024678do :
24679 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000024680ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
24681"
cristy98dddb52010-11-04 00:30:15 +000024682if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024683 cat >>confdefs.h <<_ACEOF
24684#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24685_ACEOF
24686
24687fi
24688
24689done
24690
cristycd4c5312009-11-22 01:19:08 +000024691
24692
24693
24694
24695
24696
24697
cristy3ed852e2009-09-05 21:47:34 +000024698for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000024699do :
24700 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024701if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024702 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024703#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000024704_ACEOF
24705
24706fi
24707done
24708
cristy8b350f62009-11-15 23:12:43 +000024709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000024710$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024711if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024712 $as_echo_n "(cached) " >&6
24713else
cristy8b350f62009-11-15 23:12:43 +000024714 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024715 ac_cv_func_mmap_fixed_mapped=no
24716else
cristy8b350f62009-11-15 23:12:43 +000024717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024718/* end confdefs.h. */
24719$ac_includes_default
24720/* malloc might have been renamed as rpl_malloc. */
24721#undef malloc
24722
24723/* Thanks to Mike Haertel and Jim Avera for this test.
24724 Here is a matrix of mmap possibilities:
24725 mmap private not fixed
24726 mmap private fixed at somewhere currently unmapped
24727 mmap private fixed at somewhere already mapped
24728 mmap shared not fixed
24729 mmap shared fixed at somewhere currently unmapped
24730 mmap shared fixed at somewhere already mapped
24731 For private mappings, we should verify that changes cannot be read()
24732 back from the file, nor mmap's back from the file at a different
24733 address. (There have been systems where private was not correctly
24734 implemented like the infamous i386 svr4.0, and systems where the
24735 VM page cache was not coherent with the file system buffer cache
24736 like early versions of FreeBSD and possibly contemporary NetBSD.)
24737 For shared mappings, we should conversely verify that changes get
24738 propagated back to all the places they're supposed to be.
24739
24740 Grep wants private fixed already mapped.
24741 The main things grep needs to know about mmap are:
24742 * does it exist and is it safe to write into the mmap'd area
24743 * how to use it (BSD variants) */
24744
24745#include <fcntl.h>
24746#include <sys/mman.h>
24747
24748#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24749char *malloc ();
24750#endif
24751
24752/* This mess was copied from the GNU getpagesize.h. */
24753#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000024754# ifdef _SC_PAGESIZE
24755# define getpagesize() sysconf(_SC_PAGESIZE)
24756# else /* no _SC_PAGESIZE */
24757# ifdef HAVE_SYS_PARAM_H
24758# include <sys/param.h>
24759# ifdef EXEC_PAGESIZE
24760# define getpagesize() EXEC_PAGESIZE
24761# else /* no EXEC_PAGESIZE */
24762# ifdef NBPG
24763# define getpagesize() NBPG * CLSIZE
24764# ifndef CLSIZE
24765# define CLSIZE 1
24766# endif /* no CLSIZE */
24767# else /* no NBPG */
24768# ifdef NBPC
24769# define getpagesize() NBPC
24770# else /* no NBPC */
24771# ifdef PAGESIZE
24772# define getpagesize() PAGESIZE
24773# endif /* PAGESIZE */
24774# endif /* no NBPC */
24775# endif /* no NBPG */
24776# endif /* no EXEC_PAGESIZE */
24777# else /* no HAVE_SYS_PARAM_H */
24778# define getpagesize() 8192 /* punt totally */
24779# endif /* no HAVE_SYS_PARAM_H */
24780# endif /* no _SC_PAGESIZE */
24781
24782#endif /* no HAVE_GETPAGESIZE */
24783
24784int
24785main ()
24786{
24787 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000024788 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000024789 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000024790 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000024791
24792 pagesize = getpagesize ();
24793
24794 /* First, make a file with some known garbage in it. */
24795 data = (char *) malloc (pagesize);
24796 if (!data)
24797 return 1;
24798 for (i = 0; i < pagesize; ++i)
24799 *(data + i) = rand ();
24800 umask (0);
24801 fd = creat ("conftest.mmap", 0600);
24802 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024803 return 2;
cristy3ed852e2009-09-05 21:47:34 +000024804 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024805 return 3;
cristy3ed852e2009-09-05 21:47:34 +000024806 close (fd);
24807
cristycd4c5312009-11-22 01:19:08 +000024808 /* Next, check that the tail of a page is zero-filled. File must have
24809 non-zero length, otherwise we risk SIGBUS for entire page. */
24810 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24811 if (fd2 < 0)
24812 return 4;
cristyc54f5d42009-11-27 21:36:31 +000024813 cdata2 = "";
24814 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000024815 return 5;
cristyc54f5d42009-11-27 21:36:31 +000024816 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000024817 if (data2 == MAP_FAILED)
24818 return 6;
24819 for (i = 0; i < pagesize; ++i)
24820 if (*(data2 + i))
24821 return 7;
24822 close (fd2);
24823 if (munmap (data2, pagesize))
24824 return 8;
24825
cristy3ed852e2009-09-05 21:47:34 +000024826 /* Next, try to mmap the file at a fixed address which already has
24827 something else allocated at it. If we can, also make sure that
24828 we see the same garbage. */
24829 fd = open ("conftest.mmap", O_RDWR);
24830 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024831 return 9;
cristy3ed852e2009-09-05 21:47:34 +000024832 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24833 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000024834 return 10;
cristy3ed852e2009-09-05 21:47:34 +000024835 for (i = 0; i < pagesize; ++i)
24836 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000024837 return 11;
cristy3ed852e2009-09-05 21:47:34 +000024838
24839 /* Finally, make sure that changes to the mapped area do not
24840 percolate back to the file as seen by read(). (This is a bug on
24841 some variants of i386 svr4.0.) */
24842 for (i = 0; i < pagesize; ++i)
24843 *(data2 + i) = *(data2 + i) + 1;
24844 data3 = (char *) malloc (pagesize);
24845 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000024846 return 12;
cristy3ed852e2009-09-05 21:47:34 +000024847 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024848 return 13;
cristy3ed852e2009-09-05 21:47:34 +000024849 for (i = 0; i < pagesize; ++i)
24850 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000024851 return 14;
cristy3ed852e2009-09-05 21:47:34 +000024852 close (fd);
24853 return 0;
24854}
24855_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024856if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024857 ac_cv_func_mmap_fixed_mapped=yes
24858else
cristy8b350f62009-11-15 23:12:43 +000024859 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000024860fi
cristy8b350f62009-11-15 23:12:43 +000024861rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24862 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024863fi
24864
cristy3ed852e2009-09-05 21:47:34 +000024865fi
cristy8b350f62009-11-15 23:12:43 +000024866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000024867$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24868if test $ac_cv_func_mmap_fixed_mapped = yes; then
24869
cristy8b350f62009-11-15 23:12:43 +000024870$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024871
24872fi
cristycd4c5312009-11-22 01:19:08 +000024873rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000024874
cristy3ed852e2009-09-05 21:47:34 +000024875for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000024876do :
24877 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000024878if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024879 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024880#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000024881_ACEOF
24882
24883fi
24884
24885done
24886
cristy3ed852e2009-09-05 21:47:34 +000024887for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000024888do :
24889 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24890ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024891if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024892 cat >>confdefs.h <<_ACEOF
24893#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24894_ACEOF
24895
24896fi
24897done
24898
24899if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024901$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024902if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024903 $as_echo_n "(cached) " >&6
24904else
cristy8b350f62009-11-15 23:12:43 +000024905 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024906 ac_cv_func_fork_works=cross
24907else
cristy8b350f62009-11-15 23:12:43 +000024908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024909/* end confdefs.h. */
24910$ac_includes_default
24911int
24912main ()
24913{
24914
24915 /* By Ruediger Kuhlmann. */
24916 return fork () < 0;
24917
24918 ;
24919 return 0;
24920}
24921_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024922if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024923 ac_cv_func_fork_works=yes
24924else
cristy8b350f62009-11-15 23:12:43 +000024925 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024926fi
cristy8b350f62009-11-15 23:12:43 +000024927rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24928 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024929fi
24930
cristy3ed852e2009-09-05 21:47:34 +000024931fi
cristy8b350f62009-11-15 23:12:43 +000024932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024933$as_echo "$ac_cv_func_fork_works" >&6; }
24934
24935else
24936 ac_cv_func_fork_works=$ac_cv_func_fork
24937fi
24938if test "x$ac_cv_func_fork_works" = xcross; then
24939 case $host in
24940 *-*-amigaos* | *-*-msdosdjgpp*)
24941 # Override, as these systems have only a dummy fork() stub
24942 ac_cv_func_fork_works=no
24943 ;;
24944 *)
24945 ac_cv_func_fork_works=yes
24946 ;;
24947 esac
cristy8b350f62009-11-15 23:12:43 +000024948 { $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 +000024949$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24950fi
24951ac_cv_func_vfork_works=$ac_cv_func_vfork
24952if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024954$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024955if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024956 $as_echo_n "(cached) " >&6
24957else
cristy8b350f62009-11-15 23:12:43 +000024958 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024959 ac_cv_func_vfork_works=cross
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/* Thanks to Paul Eggert for this test. */
24964$ac_includes_default
24965#include <sys/wait.h>
24966#ifdef HAVE_VFORK_H
24967# include <vfork.h>
24968#endif
24969/* On some sparc systems, changes by the child to local and incoming
24970 argument registers are propagated back to the parent. The compiler
24971 is told about this with #include <vfork.h>, but some compilers
24972 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24973 static variable whose address is put into a register that is
24974 clobbered by the vfork. */
24975static void
24976#ifdef __cplusplus
24977sparc_address_test (int arg)
24978# else
24979sparc_address_test (arg) int arg;
24980#endif
24981{
24982 static pid_t child;
24983 if (!child) {
24984 child = vfork ();
24985 if (child < 0) {
24986 perror ("vfork");
24987 _exit(2);
24988 }
24989 if (!child) {
24990 arg = getpid();
24991 write(-1, "", 0);
24992 _exit (arg);
24993 }
24994 }
24995}
24996
24997int
24998main ()
24999{
25000 pid_t parent = getpid ();
25001 pid_t child;
25002
25003 sparc_address_test (0);
25004
25005 child = vfork ();
25006
25007 if (child == 0) {
25008 /* Here is another test for sparc vfork register problems. This
25009 test uses lots of local variables, at least as many local
25010 variables as main has allocated so far including compiler
25011 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25012 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25013 reuse the register of parent for one of the local variables,
25014 since it will think that parent can't possibly be used any more
25015 in this routine. Assigning to the local variable will thus
25016 munge parent in the parent process. */
25017 pid_t
25018 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25019 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25020 /* Convince the compiler that p..p7 are live; otherwise, it might
25021 use the same hardware register for all 8 local variables. */
25022 if (p != p1 || p != p2 || p != p3 || p != p4
25023 || p != p5 || p != p6 || p != p7)
25024 _exit(1);
25025
25026 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25027 from child file descriptors. If the child closes a descriptor
25028 before it execs or exits, this munges the parent's descriptor
25029 as well. Test for this by closing stdout in the child. */
25030 _exit(close(fileno(stdout)) != 0);
25031 } else {
25032 int status;
25033 struct stat st;
25034
25035 while (wait(&status) != child)
25036 ;
25037 return (
25038 /* Was there some problem with vforking? */
25039 child < 0
25040
25041 /* Did the child fail? (This shouldn't happen.) */
25042 || status
25043
25044 /* Did the vfork/compiler bug occur? */
25045 || parent != getpid()
25046
25047 /* Did the file descriptor bug occur? */
25048 || fstat(fileno(stdout), &st) != 0
25049 );
25050 }
25051}
25052_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025053if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025054 ac_cv_func_vfork_works=yes
25055else
cristy8b350f62009-11-15 23:12:43 +000025056 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000025057fi
cristy8b350f62009-11-15 23:12:43 +000025058rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25059 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025060fi
25061
cristy3ed852e2009-09-05 21:47:34 +000025062fi
cristy8b350f62009-11-15 23:12:43 +000025063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000025064$as_echo "$ac_cv_func_vfork_works" >&6; }
25065
25066fi;
25067if test "x$ac_cv_func_fork_works" = xcross; then
25068 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000025069 { $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 +000025070$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25071fi
25072
25073if test "x$ac_cv_func_vfork_works" = xyes; then
25074
cristy8b350f62009-11-15 23:12:43 +000025075$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025076
25077else
25078
cristy8b350f62009-11-15 23:12:43 +000025079$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025080
25081fi
25082if test "x$ac_cv_func_fork_works" = xyes; then
25083
cristy8b350f62009-11-15 23:12:43 +000025084$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025085
25086fi
25087
cristy8b350f62009-11-15 23:12:43 +000025088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025089$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025090if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025091 $as_echo_n "(cached) " >&6
25092else
cristy8b350f62009-11-15 23:12:43 +000025093 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025094 ac_cv_func_memcmp_working=no
25095else
cristy8b350f62009-11-15 23:12:43 +000025096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025097/* end confdefs.h. */
25098$ac_includes_default
25099int
25100main ()
25101{
25102
25103 /* Some versions of memcmp are not 8-bit clean. */
25104 char c0 = '\100', c1 = '\200', c2 = '\201';
25105 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
25106 return 1;
25107
25108 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
25109 or more and with at least one buffer not starting on a 4-byte boundary.
25110 William Lewis provided this test program. */
25111 {
25112 char foo[21];
25113 char bar[21];
25114 int i;
25115 for (i = 0; i < 4; i++)
25116 {
25117 char *a = foo + i;
25118 char *b = bar + i;
25119 strcpy (a, "--------01111111");
25120 strcpy (b, "--------10000000");
25121 if (memcmp (a, b, 16) >= 0)
25122 return 1;
25123 }
25124 return 0;
25125 }
25126
25127 ;
25128 return 0;
25129}
25130_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025131if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025132 ac_cv_func_memcmp_working=yes
25133else
cristy8b350f62009-11-15 23:12:43 +000025134 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000025135fi
cristy8b350f62009-11-15 23:12:43 +000025136rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25137 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025138fi
25139
cristy3ed852e2009-09-05 21:47:34 +000025140fi
cristy8b350f62009-11-15 23:12:43 +000025141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000025142$as_echo "$ac_cv_func_memcmp_working" >&6; }
25143test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
25144 *" memcmp.$ac_objext "* ) ;;
25145 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
25146 ;;
25147esac
25148
25149
cristy3ed852e2009-09-05 21:47:34 +000025150for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000025151do :
25152 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25153ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000025154if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025155 cat >>confdefs.h <<_ACEOF
25156#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25157_ACEOF
25158
25159fi
25160
25161done
25162
cristy8b350f62009-11-15 23:12:43 +000025163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000025164$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025165if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025166 $as_echo_n "(cached) " >&6
25167else
25168 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
25169 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
25170 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000025171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025172/* end confdefs.h. */
25173$ac_includes_default
25174#ifdef HAVE_SYS_SELECT_H
25175# include <sys/select.h>
25176#endif
25177#ifdef HAVE_SYS_SOCKET_H
25178# include <sys/socket.h>
25179#endif
25180
25181int
25182main ()
25183{
25184extern int select ($ac_arg1,
25185 $ac_arg234, $ac_arg234, $ac_arg234,
25186 $ac_arg5);
25187 ;
25188 return 0;
25189}
25190_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025191if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025192 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000025193fi
cristy3ed852e2009-09-05 21:47:34 +000025194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25195 done
25196 done
25197done
25198# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000025199: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000025200
25201fi
cristy8b350f62009-11-15 23:12:43 +000025202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000025203$as_echo "$ac_cv_func_select_args" >&6; }
25204ac_save_IFS=$IFS; IFS=','
25205set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
25206IFS=$ac_save_IFS
25207shift
25208
25209cat >>confdefs.h <<_ACEOF
25210#define SELECT_TYPE_ARG1 $1
25211_ACEOF
25212
25213
25214cat >>confdefs.h <<_ACEOF
25215#define SELECT_TYPE_ARG234 ($2)
25216_ACEOF
25217
25218
25219cat >>confdefs.h <<_ACEOF
25220#define SELECT_TYPE_ARG5 ($3)
25221_ACEOF
25222
25223rm -f conftest*
25224
cristyda16f162011-02-19 23:52:17 +000025225if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025226 $as_echo_n "(cached) " >&6
25227else
25228 ac_cv_func_setvbuf_reversed=no
25229fi
25230
25231
cristy8b350f62009-11-15 23:12:43 +000025232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000025233$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025234if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025235 $as_echo_n "(cached) " >&6
25236else
cristy8b350f62009-11-15 23:12:43 +000025237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025238/* end confdefs.h. */
25239#include <sys/types.h>
25240#include <signal.h>
25241
25242int
25243main ()
25244{
25245return *(signal (0, 0)) (0) == 1;
25246 ;
25247 return 0;
25248}
25249_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025250if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025251 ac_cv_type_signal=int
25252else
cristy8b350f62009-11-15 23:12:43 +000025253 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000025254fi
cristy3ed852e2009-09-05 21:47:34 +000025255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25256fi
cristy8b350f62009-11-15 23:12:43 +000025257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000025258$as_echo "$ac_cv_type_signal" >&6; }
25259
25260cat >>confdefs.h <<_ACEOF
25261#define RETSIGTYPE $ac_cv_type_signal
25262_ACEOF
25263
25264
cristy8b350f62009-11-15 23:12:43 +000025265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000025266$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025267if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025268 $as_echo_n "(cached) " >&6
25269else
cristy8b350f62009-11-15 23:12:43 +000025270 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025271 ac_cv_func_strtod=no
25272else
cristy8b350f62009-11-15 23:12:43 +000025273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025274/* end confdefs.h. */
25275
25276$ac_includes_default
25277#ifndef strtod
25278double strtod ();
25279#endif
25280int
25281main()
25282{
25283 {
25284 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
25285 char *string = " +69";
25286 char *term;
25287 double value;
25288 value = strtod (string, &term);
25289 if (value != 69 || term != (string + 4))
25290 return 1;
25291 }
25292
25293 {
25294 /* Under Solaris 2.4, strtod returns the wrong value for the
25295 terminating character under some conditions. */
25296 char *string = "NaN";
25297 char *term;
25298 strtod (string, &term);
25299 if (term != string && *(term - 1) == 0)
25300 return 1;
25301 }
25302 return 0;
25303}
25304
25305_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025306if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025307 ac_cv_func_strtod=yes
25308else
cristy8b350f62009-11-15 23:12:43 +000025309 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000025310fi
cristy8b350f62009-11-15 23:12:43 +000025311rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25312 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025313fi
25314
cristy3ed852e2009-09-05 21:47:34 +000025315fi
cristy8b350f62009-11-15 23:12:43 +000025316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000025317$as_echo "$ac_cv_func_strtod" >&6; }
25318if test $ac_cv_func_strtod = no; then
25319 case " $LIBOBJS " in
25320 *" strtod.$ac_objext "* ) ;;
25321 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
25322 ;;
25323esac
25324
cristy8b350f62009-11-15 23:12:43 +000025325ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000025326if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025327
cristy3ed852e2009-09-05 21:47:34 +000025328fi
25329
cristy3ed852e2009-09-05 21:47:34 +000025330if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000025331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000025332$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025333if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025334 $as_echo_n "(cached) " >&6
25335else
25336 ac_check_lib_save_LIBS=$LIBS
25337LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025338cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025339/* end confdefs.h. */
25340
25341/* Override any GCC internal prototype to avoid an error.
25342 Use char because int might match the return type of a GCC
25343 builtin and then its argument prototype would still apply. */
25344#ifdef __cplusplus
25345extern "C"
25346#endif
25347char pow ();
25348int
25349main ()
25350{
25351return pow ();
25352 ;
25353 return 0;
25354}
25355_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025356if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025357 ac_cv_lib_m_pow=yes
25358else
cristy8b350f62009-11-15 23:12:43 +000025359 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000025360fi
cristy8b350f62009-11-15 23:12:43 +000025361rm -f core conftest.err conftest.$ac_objext \
25362 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025363LIBS=$ac_check_lib_save_LIBS
25364fi
cristy8b350f62009-11-15 23:12:43 +000025365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000025366$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000025367if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025368 POW_LIB=-lm
25369else
cristy8b350f62009-11-15 23:12:43 +000025370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000025371$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
25372fi
25373
25374fi
25375
25376fi
25377
cristy7d4a1d62011-10-13 15:54:12 +000025378ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
25379if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
25380 ac_have_decl=1
25381else
25382 ac_have_decl=0
25383fi
25384
25385cat >>confdefs.h <<_ACEOF
25386#define HAVE_DECL_STRERROR_R $ac_have_decl
25387_ACEOF
25388
25389for ac_func in strerror_r
25390do :
25391 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
25392if test "x$ac_cv_func_strerror_r" = xyes; then :
25393 cat >>confdefs.h <<_ACEOF
25394#define HAVE_STRERROR_R 1
25395_ACEOF
25396
25397fi
25398done
25399
25400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
25401$as_echo_n "checking whether strerror_r returns char *... " >&6; }
25402if ${ac_cv_func_strerror_r_char_p+:} false; then :
25403 $as_echo_n "(cached) " >&6
25404else
25405
25406 ac_cv_func_strerror_r_char_p=no
25407 if test $ac_cv_have_decl_strerror_r = yes; then
25408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25409/* end confdefs.h. */
25410$ac_includes_default
25411int
25412main ()
25413{
25414
25415 char buf[100];
25416 char x = *strerror_r (0, buf, sizeof buf);
25417 char *p = strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000025418 return !p || x;
cristy7d4a1d62011-10-13 15:54:12 +000025419
25420 ;
25421 return 0;
25422}
25423_ACEOF
25424if ac_fn_c_try_compile "$LINENO"; then :
25425 ac_cv_func_strerror_r_char_p=yes
25426fi
25427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25428 else
25429 # strerror_r is not declared. Choose between
25430 # systems that have relatively inaccessible declarations for the
25431 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
25432 # former has a strerror_r that returns char*, while the latter
25433 # has a strerror_r that returns `int'.
25434 # This test should segfault on the DEC system.
25435 if test "$cross_compiling" = yes; then :
25436 :
25437else
25438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25439/* end confdefs.h. */
25440$ac_includes_default
25441 extern char *strerror_r ();
25442int
25443main ()
25444{
25445char buf[100];
25446 char x = *strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000025447 return ! isalpha (x);
cristy7d4a1d62011-10-13 15:54:12 +000025448 ;
25449 return 0;
25450}
25451_ACEOF
25452if ac_fn_c_try_run "$LINENO"; then :
25453 ac_cv_func_strerror_r_char_p=yes
25454fi
25455rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25456 conftest.$ac_objext conftest.beam conftest.$ac_ext
25457fi
25458
25459 fi
25460
25461fi
25462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
25463$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
25464if test $ac_cv_func_strerror_r_char_p = yes; then
25465
25466$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
25467
25468fi
25469
cristy3ed852e2009-09-05 21:47:34 +000025470for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000025471do :
25472 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000025473if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025474 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025475#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000025476_ACEOF
25477
cristy8b350f62009-11-15 23:12:43 +000025478ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000025479if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025480
cristy8b350f62009-11-15 23:12:43 +000025481$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025482
25483fi
25484
25485fi
25486done
25487
25488
25489
cristy161b9262010-03-20 19:34:32 +000025490#
25491# Find math library
25492#
25493MATH_LIBS=''
25494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
25495$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025496if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000025497 $as_echo_n "(cached) " >&6
25498else
25499 ac_check_lib_save_LIBS=$LIBS
25500LIBS="-lm $LIBS"
25501cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25502/* end confdefs.h. */
25503
25504/* Override any GCC internal prototype to avoid an error.
25505 Use char because int might match the return type of a GCC
25506 builtin and then its argument prototype would still apply. */
25507#ifdef __cplusplus
25508extern "C"
25509#endif
25510char sqrt ();
25511int
25512main ()
25513{
25514return sqrt ();
25515 ;
25516 return 0;
25517}
25518_ACEOF
25519if ac_fn_c_try_link "$LINENO"; then :
25520 ac_cv_lib_m_sqrt=yes
25521else
25522 ac_cv_lib_m_sqrt=no
25523fi
25524rm -f core conftest.err conftest.$ac_objext \
25525 conftest$ac_exeext conftest.$ac_ext
25526LIBS=$ac_check_lib_save_LIBS
25527fi
25528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
25529$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000025530if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000025531 MATH_LIBS="-lm"
25532fi
25533
25534LIBS="$MATH_LIBS $LIBS"
25535
25536
cristy85572162013-01-04 19:19:32 +000025537#
25538# Find socket library
25539#
cristy8a5d7f42013-01-06 15:24:33 +000025540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
25541$as_echo_n "checking for library containing gethostbyname... " >&6; }
25542if ${ac_cv_search_gethostbyname+:} false; then :
25543 $as_echo_n "(cached) " >&6
25544else
25545 ac_func_search_save_LIBS=$LIBS
25546cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25547/* end confdefs.h. */
25548
25549/* Override any GCC internal prototype to avoid an error.
25550 Use char because int might match the return type of a GCC
25551 builtin and then its argument prototype would still apply. */
25552#ifdef __cplusplus
25553extern "C"
25554#endif
25555char gethostbyname ();
25556int
25557main ()
25558{
25559return gethostbyname ();
25560 ;
25561 return 0;
25562}
25563_ACEOF
25564for ac_lib in '' resolv nsl; do
25565 if test -z "$ac_lib"; then
25566 ac_res="none required"
25567 else
25568 ac_res=-l$ac_lib
25569 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25570 fi
25571 if ac_fn_c_try_link "$LINENO"; then :
25572 ac_cv_search_gethostbyname=$ac_res
25573fi
25574rm -f core conftest.err conftest.$ac_objext \
25575 conftest$ac_exeext
25576 if ${ac_cv_search_gethostbyname+:} false; then :
25577 break
25578fi
25579done
25580if ${ac_cv_search_gethostbyname+:} false; then :
25581
25582else
25583 ac_cv_search_gethostbyname=no
25584fi
25585rm conftest.$ac_ext
25586LIBS=$ac_func_search_save_LIBS
25587fi
25588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
25589$as_echo "$ac_cv_search_gethostbyname" >&6; }
25590ac_res=$ac_cv_search_gethostbyname
25591if test "$ac_res" != no; then :
25592 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25593
25594fi
25595
cristy85572162013-01-04 19:19:32 +000025596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
25597$as_echo_n "checking for library containing socket... " >&6; }
25598if ${ac_cv_search_socket+:} false; then :
25599 $as_echo_n "(cached) " >&6
25600else
25601 ac_func_search_save_LIBS=$LIBS
25602cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25603/* end confdefs.h. */
25604
25605/* Override any GCC internal prototype to avoid an error.
25606 Use char because int might match the return type of a GCC
25607 builtin and then its argument prototype would still apply. */
25608#ifdef __cplusplus
25609extern "C"
25610#endif
25611char socket ();
25612int
25613main ()
25614{
25615return socket ();
25616 ;
25617 return 0;
25618}
25619_ACEOF
25620for ac_lib in '' socket; do
25621 if test -z "$ac_lib"; then
25622 ac_res="none required"
25623 else
25624 ac_res=-l$ac_lib
25625 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25626 fi
25627 if ac_fn_c_try_link "$LINENO"; then :
25628 ac_cv_search_socket=$ac_res
25629fi
25630rm -f core conftest.err conftest.$ac_objext \
25631 conftest$ac_exeext
25632 if ${ac_cv_search_socket+:} false; then :
25633 break
25634fi
25635done
25636if ${ac_cv_search_socket+:} false; then :
25637
25638else
25639 ac_cv_search_socket=no
25640fi
25641rm conftest.$ac_ext
25642LIBS=$ac_func_search_save_LIBS
25643fi
25644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
25645$as_echo "$ac_cv_search_socket" >&6; }
25646ac_res=$ac_cv_search_socket
25647if test "$ac_res" != no; then :
25648 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25649
cristy85572162013-01-04 19:19:32 +000025650
cristy8a5d7f42013-01-06 15:24:33 +000025651$as_echo "#define HAVE_SOCKET 1" >>confdefs.h
cristy85572162013-01-04 19:19:32 +000025652
cristy03f187e2013-01-24 00:22:19 +000025653 MAGICK_FEATURES="DPC $MAGICK_FEATURES"
cristy85572162013-01-04 19:19:32 +000025654
25655fi
25656
25657
25658for 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 +000025659do :
25660 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25661ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025662if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025663 cat >>confdefs.h <<_ACEOF
25664#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25665_ACEOF
25666
25667fi
25668done
25669
25670
cristye43a45e2009-09-28 14:49:00 +000025671#
25672# Check for clock_gettime().
25673#
cristy8b350f62009-11-15 23:12:43 +000025674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025675$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025676if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025677 $as_echo_n "(cached) " >&6
25678else
25679 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000025680cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025681/* end confdefs.h. */
25682
25683/* Override any GCC internal prototype to avoid an error.
25684 Use char because int might match the return type of a GCC
25685 builtin and then its argument prototype would still apply. */
25686#ifdef __cplusplus
25687extern "C"
25688#endif
25689char clock_gettime ();
25690int
25691main ()
25692{
25693return clock_gettime ();
25694 ;
25695 return 0;
25696}
25697_ACEOF
25698for ac_lib in '' rt; do
25699 if test -z "$ac_lib"; then
25700 ac_res="none required"
25701 else
25702 ac_res=-l$ac_lib
25703 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25704 fi
cristy8b350f62009-11-15 23:12:43 +000025705 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025706 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000025707fi
cristy8b350f62009-11-15 23:12:43 +000025708rm -f core conftest.err conftest.$ac_objext \
25709 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000025710 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025711 break
25712fi
25713done
cristyda16f162011-02-19 23:52:17 +000025714if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000025715
cristye43a45e2009-09-28 14:49:00 +000025716else
25717 ac_cv_search_clock_gettime=no
25718fi
25719rm conftest.$ac_ext
25720LIBS=$ac_func_search_save_LIBS
25721fi
cristy8b350f62009-11-15 23:12:43 +000025722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025723$as_echo "$ac_cv_search_clock_gettime" >&6; }
25724ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000025725if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000025726 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25727
25728
cristy8b350f62009-11-15 23:12:43 +000025729$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025730
cristy8b350f62009-11-15 23:12:43 +000025731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000025732$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025734/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000025735
25736 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000025737int
25738main ()
25739{
25740clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000025741 ;
25742 return 0;
25743}
25744_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025745if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025746
cristyad38abe2012-12-23 23:03:21 +000025747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25748$as_echo "yes" >&6; }
cristye43a45e2009-09-28 14:49:00 +000025749
cristy8b350f62009-11-15 23:12:43 +000025750$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025751
25752
25753else
cristyad38abe2012-12-23 23:03:21 +000025754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25755$as_echo "no" >&6; }
cristye43a45e2009-09-28 14:49:00 +000025756
25757fi
cristye43a45e2009-09-28 14:49:00 +000025758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25759
25760else
25761
cristy8b350f62009-11-15 23:12:43 +000025762 for ac_func in gettimeofday ftime
25763do :
25764 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25765ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025766if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000025767 cat >>confdefs.h <<_ACEOF
25768#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25769_ACEOF
25770 break
25771fi
25772done
25773
25774
25775
25776fi
25777
25778
cristy3ed852e2009-09-05 21:47:34 +000025779########
25780#
25781# Check for function prototypes
25782#
25783########
25784
cristy8b350f62009-11-15 23:12:43 +000025785ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000025786#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025787"
cristyda16f162011-02-19 23:52:17 +000025788if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025789 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025790else
cristy8b350f62009-11-15 23:12:43 +000025791 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025792fi
25793
cristy3ed852e2009-09-05 21:47:34 +000025794cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025795#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025796_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025797ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000025798#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025799"
cristyda16f162011-02-19 23:52:17 +000025800if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025801 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025802else
cristy8b350f62009-11-15 23:12:43 +000025803 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025804fi
25805
cristy3ed852e2009-09-05 21:47:34 +000025806cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025807#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025808_ACEOF
25809
25810
cristy8b350f62009-11-15 23:12:43 +000025811ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000025812#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000025813"
cristyda16f162011-02-19 23:52:17 +000025814if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025815 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025816else
cristy8b350f62009-11-15 23:12:43 +000025817 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025818fi
25819
cristy3ed852e2009-09-05 21:47:34 +000025820cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025821#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025822_ACEOF
25823
25824
cristy8b350f62009-11-15 23:12:43 +000025825ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000025826#include <stdio.h>
25827#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000025828"
cristyda16f162011-02-19 23:52:17 +000025829if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025830 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025831else
cristy8b350f62009-11-15 23:12:43 +000025832 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025833fi
25834
cristy3ed852e2009-09-05 21:47:34 +000025835cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025836#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025837_ACEOF
25838
25839
cristy3ed852e2009-09-05 21:47:34 +000025840########
25841#
25842# C++ Support Tests (For Magick++)
25843#
25844########
25845have_magick_plus_plus='no'
25846if test "$with_magick_plus_plus" = 'yes'; then
25847 OLIBS="$LIBS"
25848 LIBS=''
25849 ac_ext=cpp
25850ac_cpp='$CXXCPP $CPPFLAGS'
25851ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25852ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25853ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25854
25855
25856 # Full set of headers used...
25857 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
25858 # functional iomanip iosfwd iostream iterator list string strstream utility
25859 ac_ext=cpp
25860ac_cpp='$CXXCPP $CPPFLAGS'
25861ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25862ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25863ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25864
25865 ac_ext=cpp
25866ac_cpp='$CXXCPP $CPPFLAGS'
25867ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25868ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25869ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25870if test -z "$CXX"; then
25871 if test -n "$CCC"; then
25872 CXX=$CCC
25873 else
25874 if test -n "$ac_tool_prefix"; then
25875 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25876 do
25877 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
25878set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025880$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025881if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025882 $as_echo_n "(cached) " >&6
25883else
25884 if test -n "$CXX"; then
25885 ac_cv_prog_CXX="$CXX" # Let the user override the test.
25886else
25887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25888for as_dir in $PATH
25889do
25890 IFS=$as_save_IFS
25891 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025892 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025894 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025896 break 2
25897 fi
25898done
cristy8b350f62009-11-15 23:12:43 +000025899 done
cristy3ed852e2009-09-05 21:47:34 +000025900IFS=$as_save_IFS
25901
25902fi
25903fi
25904CXX=$ac_cv_prog_CXX
25905if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025907$as_echo "$CXX" >&6; }
25908else
cristy8b350f62009-11-15 23:12:43 +000025909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025910$as_echo "no" >&6; }
25911fi
25912
25913
25914 test -n "$CXX" && break
25915 done
25916fi
25917if test -z "$CXX"; then
25918 ac_ct_CXX=$CXX
25919 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25920do
25921 # Extract the first word of "$ac_prog", so it can be a program name with args.
25922set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025924$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025925if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025926 $as_echo_n "(cached) " >&6
25927else
25928 if test -n "$ac_ct_CXX"; then
25929 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
25930else
25931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25932for as_dir in $PATH
25933do
25934 IFS=$as_save_IFS
25935 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025936 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025938 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025940 break 2
25941 fi
25942done
cristy8b350f62009-11-15 23:12:43 +000025943 done
cristy3ed852e2009-09-05 21:47:34 +000025944IFS=$as_save_IFS
25945
25946fi
25947fi
25948ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
25949if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025951$as_echo "$ac_ct_CXX" >&6; }
25952else
cristy8b350f62009-11-15 23:12:43 +000025953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025954$as_echo "no" >&6; }
25955fi
25956
25957
25958 test -n "$ac_ct_CXX" && break
25959done
25960
25961 if test "x$ac_ct_CXX" = x; then
25962 CXX="g++"
25963 else
25964 case $cross_compiling:$ac_tool_warned in
25965yes:)
cristy8b350f62009-11-15 23:12:43 +000025966{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025967$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25968ac_tool_warned=yes ;;
25969esac
25970 CXX=$ac_ct_CXX
25971 fi
25972fi
25973
25974 fi
25975fi
25976# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000025977$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000025978set X $ac_compile
25979ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000025980for ac_option in --version -v -V -qversion; do
25981 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000025982case "(($ac_try" in
25983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25984 *) ac_try_echo=$ac_try;;
25985esac
cristy8b350f62009-11-15 23:12:43 +000025986eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
25987$as_echo "$ac_try_echo"; } >&5
25988 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000025989 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025990 if test -s conftest.err; then
25991 sed '10a\
25992... rest of stderr output deleted ...
25993 10q' conftest.err >conftest.er1
25994 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000025995 fi
cristycd4c5312009-11-22 01:19:08 +000025996 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000025997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25998 test $ac_status = 0; }
25999done
cristy3ed852e2009-09-05 21:47:34 +000026000
cristy8b350f62009-11-15 23:12:43 +000026001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000026002$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026003if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026004 $as_echo_n "(cached) " >&6
26005else
cristy8b350f62009-11-15 23:12:43 +000026006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026007/* end confdefs.h. */
26008
26009int
26010main ()
26011{
26012#ifndef __GNUC__
26013 choke me
26014#endif
26015
26016 ;
26017 return 0;
26018}
26019_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026020if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026021 ac_compiler_gnu=yes
26022else
cristy8b350f62009-11-15 23:12:43 +000026023 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000026024fi
cristy3ed852e2009-09-05 21:47:34 +000026025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26026ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
26027
26028fi
cristy8b350f62009-11-15 23:12:43 +000026029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000026030$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
26031if test $ac_compiler_gnu = yes; then
26032 GXX=yes
26033else
26034 GXX=
26035fi
26036ac_test_CXXFLAGS=${CXXFLAGS+set}
26037ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000026038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000026039$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026040if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026041 $as_echo_n "(cached) " >&6
26042else
26043 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
26044 ac_cxx_werror_flag=yes
26045 ac_cv_prog_cxx_g=no
26046 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000026047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026048/* end confdefs.h. */
26049
26050int
26051main ()
26052{
26053
26054 ;
26055 return 0;
26056}
26057_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026058if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026059 ac_cv_prog_cxx_g=yes
26060else
cristy8b350f62009-11-15 23:12:43 +000026061 CXXFLAGS=""
26062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026063/* end confdefs.h. */
26064
26065int
26066main ()
26067{
26068
26069 ;
26070 return 0;
26071}
26072_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026073if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026074
cristy8b350f62009-11-15 23:12:43 +000026075else
26076 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000026077 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000026078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026079/* end confdefs.h. */
26080
26081int
26082main ()
26083{
26084
26085 ;
26086 return 0;
26087}
26088_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026089if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026090 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000026091fi
cristy3ed852e2009-09-05 21:47:34 +000026092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26093fi
cristy3ed852e2009-09-05 21:47:34 +000026094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26095fi
cristy3ed852e2009-09-05 21:47:34 +000026096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26097 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
26098fi
cristy8b350f62009-11-15 23:12:43 +000026099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000026100$as_echo "$ac_cv_prog_cxx_g" >&6; }
26101if test "$ac_test_CXXFLAGS" = set; then
26102 CXXFLAGS=$ac_save_CXXFLAGS
26103elif test $ac_cv_prog_cxx_g = yes; then
26104 if test "$GXX" = yes; then
26105 CXXFLAGS="-g -O2"
26106 else
26107 CXXFLAGS="-g"
26108 fi
26109else
26110 if test "$GXX" = yes; then
26111 CXXFLAGS="-O2"
26112 else
26113 CXXFLAGS=
26114 fi
26115fi
26116ac_ext=cpp
26117ac_cpp='$CXXCPP $CPPFLAGS'
26118ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26119ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26120ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26121
cristy73bd4a52010-10-05 11:24:23 +000026122depcc="$CXX" am_compiler_list=
26123
26124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
26125$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026126if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026127 $as_echo_n "(cached) " >&6
26128else
26129 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
26130 # We make a subdir and do the tests there. Otherwise we can end up
26131 # making bogus files that we don't know about and never remove. For
26132 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +000026133 # making a dummy file named 'D' -- because '-MD' means "put the output
26134 # in D".
cristy7247bba2012-02-05 16:37:27 +000026135 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +000026136 mkdir conftest.dir
26137 # Copy depcomp to subdir because otherwise we won't find it if we're
26138 # using a relative directory.
26139 cp "$am_depcomp" conftest.dir
26140 cd conftest.dir
26141 # We will build objects and dependencies in a subdirectory because
26142 # it helps to detect inapplicable dependency modes. For instance
26143 # both Tru64's cc and ICC support -MD to output dependencies as a
26144 # side effect of compilation, but ICC will put the dependencies in
26145 # the current directory while Tru64 will put them in the object
26146 # directory.
26147 mkdir sub
26148
26149 am_cv_CXX_dependencies_compiler_type=none
26150 if test "$am_compiler_list" = ""; then
26151 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
26152 fi
26153 am__universal=false
26154 case " $depcc " in #(
26155 *\ -arch\ *\ -arch\ *) am__universal=true ;;
26156 esac
26157
26158 for depmode in $am_compiler_list; do
26159 # Setup a source with many dependencies, because some compilers
26160 # like to wrap large dependency lists on column 80 (with \), and
26161 # we should not choose a depcomp mode which is confused by this.
26162 #
26163 # We need to recreate these files for each test, as the compiler may
26164 # overwrite some of them when testing with obscure command lines.
26165 # This happens at least with the AIX C compiler.
26166 : > sub/conftest.c
26167 for i in 1 2 3 4 5 6; do
26168 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +000026169 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
26170 # Solaris 10 /bin/sh.
26171 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +000026172 done
26173 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
26174
cristyc0890a62012-07-19 00:18:20 +000026175 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +000026176 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +000026177 # handle '-M -o', and we need to detect this. Also, some Intel
26178 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +000026179 am__obj=sub/conftest.${OBJEXT-o}
26180 am__minus_obj="-o $am__obj"
26181 case $depmode in
26182 gcc)
26183 # This depmode causes a compiler race in universal mode.
26184 test "$am__universal" = false || continue
26185 ;;
26186 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +000026187 # After this tag, mechanisms are not by side-effect, so they'll
26188 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +000026189 if test "x$enable_dependency_tracking" = xyes; then
26190 continue
26191 else
26192 break
26193 fi
26194 ;;
cristy7247bba2012-02-05 16:37:27 +000026195 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +000026196 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +000026197 # not run yet. These depmodes are late enough in the game, and
26198 # so weak that their functioning should not be impacted.
26199 am__obj=conftest.${OBJEXT-o}
26200 am__minus_obj=
26201 ;;
26202 none) break ;;
26203 esac
26204 if depmode=$depmode \
26205 source=sub/conftest.c object=$am__obj \
26206 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
26207 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
26208 >/dev/null 2>conftest.err &&
26209 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
26210 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
26211 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
26212 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
26213 # icc doesn't choke on unknown options, it will just issue warnings
26214 # or remarks (even with -Werror). So we grep stderr for any message
26215 # that says an option was ignored or not supported.
26216 # When given -MP, icc 7.0 and 7.1 complain thusly:
26217 # icc: Command line warning: ignoring option '-M'; no argument required
26218 # The diagnosis changed in icc 8.0:
26219 # icc: Command line remark: option '-MP' not supported
26220 if (grep 'ignoring option' conftest.err ||
26221 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
26222 am_cv_CXX_dependencies_compiler_type=$depmode
26223 break
26224 fi
26225 fi
26226 done
26227
26228 cd ..
26229 rm -rf conftest.dir
26230else
26231 am_cv_CXX_dependencies_compiler_type=none
26232fi
26233
26234fi
26235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
26236$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
26237CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
26238
26239 if
26240 test "x$enable_dependency_tracking" != xno \
26241 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
26242 am__fastdepCXX_TRUE=
26243 am__fastdepCXX_FALSE='#'
26244else
26245 am__fastdepCXX_TRUE='#'
26246 am__fastdepCXX_FALSE=
26247fi
26248
26249
26250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
26251$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026252if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026253 $as_echo_n "(cached) " >&6
26254else
26255
26256 ac_ext=cpp
26257ac_cpp='$CXXCPP $CPPFLAGS'
26258ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26259ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26260ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26261
26262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26263/* end confdefs.h. */
26264
26265int f(int x){return 1;}
26266int f(char x){return 1;}
26267int f(bool x){return 1;}
26268
26269int
26270main ()
26271{
26272bool b = true; return f(b);
26273 ;
26274 return 0;
26275}
26276_ACEOF
26277if ac_fn_cxx_try_compile "$LINENO"; then :
26278 ax_cv_cxx_bool=yes
26279else
26280 ax_cv_cxx_bool=no
26281fi
26282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26283 ac_ext=cpp
26284ac_cpp='$CXXCPP $CPPFLAGS'
26285ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26286ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26287ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26288
26289
26290fi
26291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
26292$as_echo "$ax_cv_cxx_bool" >&6; }
26293if test "$ax_cv_cxx_bool" = yes; then
26294
26295$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
26296
26297fi
26298
26299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
26300$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026301if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026302 $as_echo_n "(cached) " >&6
26303else
cristy17491be2014-06-24 01:10:53 +000026304 ac_ext=cpp
cristy73bd4a52010-10-05 11:24:23 +000026305ac_cpp='$CXXCPP $CPPFLAGS'
26306ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26307ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26308ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26309
26310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26311/* end confdefs.h. */
26312namespace Outer { namespace Inner { int i = 0; }}
cristy17491be2014-06-24 01:10:53 +000026313 using namespace Outer::Inner; int foo(void) { return i;}
cristy73bd4a52010-10-05 11:24:23 +000026314_ACEOF
26315if ac_fn_cxx_try_compile "$LINENO"; then :
26316 ax_cv_cxx_namespaces=yes
26317else
26318 ax_cv_cxx_namespaces=no
26319fi
26320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26321 ac_ext=cpp
26322ac_cpp='$CXXCPP $CPPFLAGS'
26323ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26324ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26325ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26326
26327
26328fi
26329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
26330$as_echo "$ax_cv_cxx_namespaces" >&6; }
26331if test "$ax_cv_cxx_namespaces" = yes; then
26332
26333$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
26334
26335fi
26336
26337
26338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
26339$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026340if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026341 $as_echo_n "(cached) " >&6
26342else
26343
26344 ac_ext=cpp
26345ac_cpp='$CXXCPP $CPPFLAGS'
26346ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26347ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26348ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26349
26350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26351/* end confdefs.h. */
26352#include <iostream>
26353 std::istream& is = std::cin;
26354int
26355main ()
26356{
26357
26358 ;
26359 return 0;
26360}
26361_ACEOF
26362if ac_fn_cxx_try_compile "$LINENO"; then :
26363 ax_cv_cxx_have_std_namespace=yes
26364else
26365 ax_cv_cxx_have_std_namespace=no
26366fi
26367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26368 ac_ext=cpp
26369ac_cpp='$CXXCPP $CPPFLAGS'
26370ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26371ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26372ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26373
26374
26375fi
26376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
26377$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
26378 if test "$ax_cv_cxx_have_std_namespace" = yes; then
26379
26380$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
26381
26382 fi
26383
26384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
26385$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026386if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026387 $as_echo_n "(cached) " >&6
26388else
26389
26390
26391 ac_ext=cpp
26392ac_cpp='$CXXCPP $CPPFLAGS'
26393ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26394ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26395ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26396
26397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26398/* end confdefs.h. */
26399#include <iostream>
26400#include <map>
26401#include <iomanip>
26402#include <cmath>
26403#ifdef HAVE_NAMESPACES
26404using namespace std;
26405#endif
26406int
26407main ()
26408{
26409return 0;
26410 ;
26411 return 0;
26412}
26413_ACEOF
26414if ac_fn_cxx_try_compile "$LINENO"; then :
26415 ac_cv_cxx_have_std_libs=yes
26416else
26417 ac_cv_cxx_have_std_libs=no
26418fi
26419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26420 ac_ext=cpp
26421ac_cpp='$CXXCPP $CPPFLAGS'
26422ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26423ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26424ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26425
26426
26427fi
26428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
26429$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
26430if test "$ac_cv_cxx_have_std_libs" = yes; then
26431
26432$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
26433
26434fi
26435
cristy3ed852e2009-09-05 21:47:34 +000026436
26437 OPENMP_CXXFLAGS=
26438 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000026439if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026440 enableval=$enable_openmp;
26441fi
26442
26443 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000026444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
26445$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026446if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026447 $as_echo_n "(cached) " >&6
26448else
cristy8b350f62009-11-15 23:12:43 +000026449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26450/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000026451
26452#ifndef _OPENMP
26453 choke me
26454#endif
26455#include <omp.h>
26456int main () { return omp_get_num_threads (); }
26457
26458_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026459if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026460 ac_cv_prog_cxx_openmp='none needed'
26461else
cristy8b350f62009-11-15 23:12:43 +000026462 ac_cv_prog_cxx_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +000026463 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
26464 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +000026465 ac_save_CXXFLAGS=$CXXFLAGS
26466 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000026467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26468/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000026469
26470#ifndef _OPENMP
26471 choke me
26472#endif
26473#include <omp.h>
26474int main () { return omp_get_num_threads (); }
26475
26476_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026477if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026478 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000026479fi
cristy8b350f62009-11-15 23:12:43 +000026480rm -f core conftest.err conftest.$ac_objext \
26481 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026482 CXXFLAGS=$ac_save_CXXFLAGS
26483 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
26484 break
26485 fi
26486 done
26487fi
cristy8b350f62009-11-15 23:12:43 +000026488rm -f core conftest.err conftest.$ac_objext \
26489 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026490fi
cristy8b350f62009-11-15 23:12:43 +000026491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026492$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
26493 case $ac_cv_prog_cxx_openmp in #(
26494 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000026495 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000026496 *)
cristy8b350f62009-11-15 23:12:43 +000026497 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000026498 esac
26499 fi
26500
26501
26502 ac_ext=c
26503ac_cpp='$CPP $CPPFLAGS'
26504ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26505ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26506ac_compiler_gnu=$ac_cv_c_compiler_gnu
26507
26508
cristy8b350f62009-11-15 23:12:43 +000026509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000026510$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
26511 if \
cristy964cb7f2010-04-25 23:18:00 +000026512 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026513 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000026514 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026515 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000026516 have_magick_plus_plus='yes'
26517 else
26518 have_magick_plus_plus='no (failed tests)'
26519 fi
cristyad38abe2012-12-23 23:03:21 +000026520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
26521$as_echo "$have_magick_plus_plus" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026522 LIBS="$OLIBS"
26523fi
cristy73bd4a52010-10-05 11:24:23 +000026524 if test "$have_magick_plus_plus" = 'yes'; then
26525 WITH_MAGICK_PLUS_PLUS_TRUE=
26526 WITH_MAGICK_PLUS_PLUS_FALSE='#'
26527else
26528 WITH_MAGICK_PLUS_PLUS_TRUE='#'
26529 WITH_MAGICK_PLUS_PLUS_FALSE=
26530fi
26531
cristy3ed852e2009-09-05 21:47:34 +000026532
26533# Only check for delegate libraries in subdirectories if requested.
26534if test "$enable_delegate_build" != 'no'; then
26535 # Check for delegate sub-directories and add -I & -L options as required.
26536 # This presumes that delegates are installed as detailed in the ImageMagick
26537 # README. If delegates are installed in a standard location where the
26538 # compiler will automatically find them then these options should not be
26539 # required.
26540
26541 #
26542 # Most delegates have includes in the same directory as the library, but not all...
26543 #
26544 # Includes
cristy834307f2015-01-25 00:43:41 +000026545 for dir in bzlib fftw fpx gslib/src jp2 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 +000026546 if test -d "$builddir/$dir"; then
26547 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
26548 else
26549 if test -d "$srcdirfull/$dir"; then
26550 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
26551 fi
26552 fi
26553 done
26554
26555 # Libraries
cristy834307f2015-01-25 00:43:41 +000026556 for dir in bzlib fftw fpx gslib/src 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 +000026557 if test -d "$builddir/$dir/.libs"; then
26558 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
26559 else
26560 if test -d "$srcdirfull/$dir/.libs"; then
26561 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
26562 fi
26563 fi
26564 if test -d "$builddir/$dir"; then
26565 LDFLAGS="$LDFLAGS -L$builddir/$dir"
26566 else
26567 if test -d "$srcdirfull/$dir"; then
26568 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
26569 fi
26570 fi
26571 done
26572fi
26573
26574# Assume that delegate headers reside under same directory as ImageMagick
26575# installation prefix.
cristybdabdd62013-03-04 17:43:36 +000026576MAGICK_CPPFLAGS="-I$INCLUDE_DIR/${PACKAGE_NAME}-$MAGICK_MAJOR_VERSION $MAGICK_CPPFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000026577
26578#
26579# Find the X11 RGB database
26580#
cristy8b350f62009-11-15 23:12:43 +000026581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000026582$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026583if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026584 $as_echo_n "(cached) " >&6
26585else
26586 # Look for the header file in a standard set of common directories.
26587# Check X11 before X11Rn because it is often a symlink to the current release.
26588 for ac_dir in \
26589 /lib/usr/lib/X11 \
26590 /usr/X11/lib \
26591 /usr/X11R4/lib \
26592 /usr/X11R5/lib \
26593 /usr/X11R6/lib \
26594 /usr/X11R7/lib \
26595 /usr/X386/lib \
26596 /usr/XFree86/lib/X11 \
26597 /usr/athena/lib \
26598 /usr/lib \
26599 /usr/lib/X11 \
26600 /usr/lib/X11R4 \
26601 /usr/lib/X11R5 \
26602 /usr/lib/X11R6 \
26603 /usr/lib/X11R7 \
26604 /usr/local/X11/lib \
26605 /usr/local/X11R4/lib \
26606 /usr/local/X11R5/lib \
26607 /usr/local/X11R6/lib \
26608 /usr/local/lib \
26609 /usr/local/lib/X11 \
26610 /usr/local/lib/X11R4 \
26611 /usr/local/lib/X11R5 \
26612 /usr/local/lib/X11R6 \
26613 /usr/local/lib/X11R7 \
26614 /usr/local/x11r5/lib \
26615 /usr/lpp/Xamples/lib \
26616 /usr/openwin/lib \
26617 /usr/openwin/share/lib \
26618 /usr/unsupported/lib \
26619 /usr/x386/lib \
26620 ; do
26621 if test -f "$ac_dir/X11/rgb.txt"; then
26622 im_cv_x_configure="$ac_dir/X11/"
26623 break
26624 elif test -f "$ac_dir/rgb.txt"; then
26625 im_cv_x_configure="$ac_dir/"
26626 break
26627 fi
26628
26629 done
26630fi
cristy8b350f62009-11-15 23:12:43 +000026631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000026632$as_echo "$im_cv_x_configure" >&6; }
26633X11_CONFIGURE_PATH="$im_cv_x_configure"
26634case "${build_os}" in
26635 mingw* )
26636 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
26637 ;;
26638esac
26639
26640cat >>confdefs.h <<_ACEOF
26641#define X11_CONFIGURE_PATH "$X11ConfigurePath"
26642_ACEOF
26643
26644
26645#
26646# Find OpenMP library
26647#
26648GOMP_LIBS=''
26649if test "$enable_openmp" != 'no'; then
26650 if test "${GCC}" = "yes"; then
cristy18307f12011-12-30 01:20:16 +000026651 # Open64 (passes for GCC but uses different OpenMP implementation)
26652 if test "x$GOMP_LIBS" = x ; then
26653 if $CC --version 2>&1 | grep Open64 > /dev/null ; then
26654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp_get_num_procs in -lopenmp" >&5
26655$as_echo_n "checking for omp_get_num_procs in -lopenmp... " >&6; }
26656if ${ac_cv_lib_openmp_omp_get_num_procs+:} false; then :
26657 $as_echo_n "(cached) " >&6
26658else
26659 ac_check_lib_save_LIBS=$LIBS
26660LIBS="-lopenmp $LIBS"
26661cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26662/* end confdefs.h. */
26663
26664/* Override any GCC internal prototype to avoid an error.
26665 Use char because int might match the return type of a GCC
26666 builtin and then its argument prototype would still apply. */
26667#ifdef __cplusplus
26668extern "C"
26669#endif
26670char omp_get_num_procs ();
26671int
26672main ()
26673{
26674return omp_get_num_procs ();
26675 ;
26676 return 0;
26677}
26678_ACEOF
26679if ac_fn_c_try_link "$LINENO"; then :
26680 ac_cv_lib_openmp_omp_get_num_procs=yes
26681else
26682 ac_cv_lib_openmp_omp_get_num_procs=no
26683fi
26684rm -f core conftest.err conftest.$ac_objext \
26685 conftest$ac_exeext conftest.$ac_ext
26686LIBS=$ac_check_lib_save_LIBS
26687fi
26688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openmp_omp_get_num_procs" >&5
26689$as_echo "$ac_cv_lib_openmp_omp_get_num_procs" >&6; }
26690if test "x$ac_cv_lib_openmp_omp_get_num_procs" = xyes; then :
26691 GOMP_LIBS="-lopenmp"
26692fi
26693
26694 fi
26695 fi
26696 # GCC
26697 if test "x$GOMP_LIBS" = x ; then
26698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026699$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026700if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026701 $as_echo_n "(cached) " >&6
26702else
26703 ac_check_lib_save_LIBS=$LIBS
26704LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026705cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026706/* end confdefs.h. */
26707
26708/* Override any GCC internal prototype to avoid an error.
26709 Use char because int might match the return type of a GCC
26710 builtin and then its argument prototype would still apply. */
26711#ifdef __cplusplus
26712extern "C"
26713#endif
26714char GOMP_parallel_start ();
26715int
26716main ()
26717{
26718return GOMP_parallel_start ();
26719 ;
26720 return 0;
26721}
26722_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026723if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026724 ac_cv_lib_gomp_GOMP_parallel_start=yes
26725else
cristy8b350f62009-11-15 23:12:43 +000026726 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000026727fi
cristy8b350f62009-11-15 23:12:43 +000026728rm -f core conftest.err conftest.$ac_objext \
26729 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026730LIBS=$ac_check_lib_save_LIBS
26731fi
cristy8b350f62009-11-15 23:12:43 +000026732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000026733$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000026734if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026735 GOMP_LIBS="-lgomp"
26736fi
cristy18307f12011-12-30 01:20:16 +000026737
26738 fi
cristy3ed852e2009-09-05 21:47:34 +000026739 else
cristy18307f12011-12-30 01:20:16 +000026740 # Sun CC
26741 if test "x$GOMP_LIBS" = x ; then
26742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000026743$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026744if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026745 $as_echo_n "(cached) " >&6
26746else
26747 ac_check_lib_save_LIBS=$LIBS
26748LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026749cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026750/* end confdefs.h. */
26751
26752/* Override any GCC internal prototype to avoid an error.
26753 Use char because int might match the return type of a GCC
26754 builtin and then its argument prototype would still apply. */
26755#ifdef __cplusplus
26756extern "C"
26757#endif
26758char sunw_mp_register_warn ();
26759int
26760main ()
26761{
26762return sunw_mp_register_warn ();
26763 ;
26764 return 0;
26765}
26766_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026767if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026768 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
26769else
cristy8b350f62009-11-15 23:12:43 +000026770 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000026771fi
cristy8b350f62009-11-15 23:12:43 +000026772rm -f core conftest.err conftest.$ac_objext \
26773 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026774LIBS=$ac_check_lib_save_LIBS
26775fi
cristy8b350f62009-11-15 23:12:43 +000026776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000026777$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000026778if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026779 GOMP_LIBS="-lmtsk"
26780fi
cristy18307f12011-12-30 01:20:16 +000026781
26782 fi
26783 # AIX xlc
26784 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026786$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026787if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026788 $as_echo_n "(cached) " >&6
26789else
26790 ac_check_lib_save_LIBS=$LIBS
26791LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026792cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026793/* end confdefs.h. */
26794
26795/* Override any GCC internal prototype to avoid an error.
26796 Use char because int might match the return type of a GCC
26797 builtin and then its argument prototype would still apply. */
26798#ifdef __cplusplus
26799extern "C"
26800#endif
26801char _xlsmpFlush ();
26802int
26803main ()
26804{
26805return _xlsmpFlush ();
26806 ;
26807 return 0;
26808}
26809_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026810if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026811 ac_cv_lib_xlsmp__xlsmpFlush=yes
26812else
cristy8b350f62009-11-15 23:12:43 +000026813 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000026814fi
cristy8b350f62009-11-15 23:12:43 +000026815rm -f core conftest.err conftest.$ac_objext \
26816 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026817LIBS=$ac_check_lib_save_LIBS
26818fi
cristy8b350f62009-11-15 23:12:43 +000026819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000026820$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000026821if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026822 GOMP_LIBS="-lxlsmp"
26823fi
cristy18307f12011-12-30 01:20:16 +000026824
26825 fi
26826 # SGI IRIX 6.5 MIPSpro C/C++
26827 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026829$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026830if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026831 $as_echo_n "(cached) " >&6
26832else
26833 ac_check_lib_save_LIBS=$LIBS
26834LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026835cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026836/* end confdefs.h. */
26837
26838/* Override any GCC internal prototype to avoid an error.
26839 Use char because int might match the return type of a GCC
26840 builtin and then its argument prototype would still apply. */
26841#ifdef __cplusplus
26842extern "C"
26843#endif
26844char mp_destroy ();
26845int
26846main ()
26847{
26848return mp_destroy ();
26849 ;
26850 return 0;
26851}
26852_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026853if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026854 ac_cv_lib_mp_mp_destroy=yes
26855else
cristy8b350f62009-11-15 23:12:43 +000026856 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000026857fi
cristy8b350f62009-11-15 23:12:43 +000026858rm -f core conftest.err conftest.$ac_objext \
26859 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026860LIBS=$ac_check_lib_save_LIBS
26861fi
cristy8b350f62009-11-15 23:12:43 +000026862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000026863$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000026864if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026865 GOMP_LIBS="-lmp"
26866fi
cristy18307f12011-12-30 01:20:16 +000026867
26868 fi
cristy3ed852e2009-09-05 21:47:34 +000026869 fi
26870 LIBS="$GOMP_LIBS $LIBS"
26871fi
26872
26873
cristy12ac8192014-11-04 13:59:13 +000026874#
cristy3b0097d2014-11-04 15:34:47 +000026875# Check for jemalloc.
cristy12ac8192014-11-04 13:59:13 +000026876#
cristy3b0097d2014-11-04 15:34:47 +000026877have_jemalloc='no'
26878JEMALLOC_LIBS=''
26879if test "$with_jemalloc" != 'no'; then
26880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JEMALLOC support " >&5
26881$as_echo_n "checking for JEMALLOC support ... " >&6; }
26882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26883$as_echo "" >&6; }
26884 failed=0
26885 passed=0
26886 ac_fn_c_check_header_mongrel "$LINENO" "jemalloc/jemalloc.h" "ac_cv_header_jemalloc_jemalloc_h" "$ac_includes_default"
26887if test "x$ac_cv_header_jemalloc_jemalloc_h" = xyes; then :
cristy22007ae2014-11-04 15:59:22 +000026888 passed=`expr $passed + 1`
26889else
26890 failed=`expr $failed + 1`
cristy12ac8192014-11-04 13:59:13 +000026891fi
26892
26893
cristy3b0097d2014-11-04 15:34:47 +000026894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc_stats_print in -ljemalloc" >&5
26895$as_echo_n "checking for malloc_stats_print in -ljemalloc... " >&6; }
26896if ${ac_cv_lib_jemalloc_malloc_stats_print+:} false; then :
cristy12ac8192014-11-04 13:59:13 +000026897 $as_echo_n "(cached) " >&6
26898else
26899 ac_check_lib_save_LIBS=$LIBS
26900LIBS="-ljemalloc $LIBS"
26901cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26902/* 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
cristy3b0097d2014-11-04 15:34:47 +000026910char malloc_stats_print ();
cristy12ac8192014-11-04 13:59:13 +000026911int
26912main ()
26913{
cristy3b0097d2014-11-04 15:34:47 +000026914return malloc_stats_print ();
cristy12ac8192014-11-04 13:59:13 +000026915 ;
26916 return 0;
26917}
26918_ACEOF
26919if ac_fn_c_try_link "$LINENO"; then :
cristy3b0097d2014-11-04 15:34:47 +000026920 ac_cv_lib_jemalloc_malloc_stats_print=yes
cristy12ac8192014-11-04 13:59:13 +000026921else
cristy3b0097d2014-11-04 15:34:47 +000026922 ac_cv_lib_jemalloc_malloc_stats_print=no
cristy12ac8192014-11-04 13:59:13 +000026923fi
26924rm -f core conftest.err conftest.$ac_objext \
26925 conftest$ac_exeext conftest.$ac_ext
26926LIBS=$ac_check_lib_save_LIBS
26927fi
cristy3b0097d2014-11-04 15:34:47 +000026928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jemalloc_malloc_stats_print" >&5
26929$as_echo "$ac_cv_lib_jemalloc_malloc_stats_print" >&6; }
26930if test "x$ac_cv_lib_jemalloc_malloc_stats_print" = xyes; then :
cristy22007ae2014-11-04 15:59:22 +000026931 passed=`expr $passed + 1`
26932else
26933 failed=`expr $failed + 1`
cristy12ac8192014-11-04 13:59:13 +000026934fi
26935
cristy3b0097d2014-11-04 15:34:47 +000026936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jemalloc memory allocation library is complete" >&5
26937$as_echo_n "checking if jemalloc memory allocation library is complete... " >&6; }
26938 if test $passed -gt 0; then
26939 if test $failed -gt 0; then
26940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26941$as_echo "no -- some components failed test" >&6; }
26942 have_jemalloc='no (failed tests)'
26943 else
26944 JEMALLOC_LIBS='-ljemalloc'
26945 LIBS="$JEMALLOC_LIBS $LIBS"
cristy12ac8192014-11-04 13:59:13 +000026946
cristy3b0097d2014-11-04 15:34:47 +000026947$as_echo "#define HasJEMALLOC 1" >>confdefs.h
cristy12ac8192014-11-04 13:59:13 +000026948
cristy3b0097d2014-11-04 15:34:47 +000026949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26950$as_echo "yes" >&6; }
26951 have_jemalloc='yes'
26952 fi
cristy12ac8192014-11-04 13:59:13 +000026953 else
cristy3b0097d2014-11-04 15:34:47 +000026954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26955$as_echo "no" >&6; }
cristy12ac8192014-11-04 13:59:13 +000026956 fi
26957fi
cristy3b0097d2014-11-04 15:34:47 +000026958 if test "$have_jemalloc" = 'yes'; then
26959 HasJEMALLOC_TRUE=
26960 HasJEMALLOC_FALSE='#'
26961else
26962 HasJEMALLOC_TRUE='#'
26963 HasJEMALLOC_FALSE=
cristy12ac8192014-11-04 13:59:13 +000026964fi
26965
cristy3b0097d2014-11-04 15:34:47 +000026966
26967
cristy3ed852e2009-09-05 21:47:34 +000026968#
26969# Check for umem.
26970#
26971have_umem='no'
26972UMEM_LIBS=''
26973if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000026975$as_echo_n "checking for UMEM support ... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000026976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26977$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026978 failed=0
26979 passed=0
cristy8b350f62009-11-15 23:12:43 +000026980 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026981if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026982 passed=`expr $passed + 1`
26983else
26984 failed=`expr $failed + 1`
26985fi
26986
26987
cristy8b350f62009-11-15 23:12:43 +000026988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026989$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026990if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026991 $as_echo_n "(cached) " >&6
26992else
26993 ac_check_lib_save_LIBS=$LIBS
26994LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026995cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026996/* end confdefs.h. */
26997
26998/* Override any GCC internal prototype to avoid an error.
26999 Use char because int might match the return type of a GCC
27000 builtin and then its argument prototype would still apply. */
27001#ifdef __cplusplus
27002extern "C"
27003#endif
27004char umem_alloc ();
27005int
27006main ()
27007{
27008return umem_alloc ();
27009 ;
27010 return 0;
27011}
27012_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027013if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027014 ac_cv_lib_umem_umem_alloc=yes
27015else
cristy8b350f62009-11-15 23:12:43 +000027016 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000027017fi
cristy8b350f62009-11-15 23:12:43 +000027018rm -f core conftest.err conftest.$ac_objext \
27019 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027020LIBS=$ac_check_lib_save_LIBS
27021fi
cristy8b350f62009-11-15 23:12:43 +000027022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027023$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000027024if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027025 passed=`expr $passed + 1`
27026else
27027 failed=`expr $failed + 1`
27028fi
27029
cristy8b350f62009-11-15 23:12:43 +000027030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000027031$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027032if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027033 $as_echo_n "(cached) " >&6
27034else
27035 ac_check_lib_save_LIBS=$LIBS
27036LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027037cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027038/* end confdefs.h. */
27039
27040/* Override any GCC internal prototype to avoid an error.
27041 Use char because int might match the return type of a GCC
27042 builtin and then its argument prototype would still apply. */
27043#ifdef __cplusplus
27044extern "C"
27045#endif
27046char umem_free ();
27047int
27048main ()
27049{
27050return umem_free ();
27051 ;
27052 return 0;
27053}
27054_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027055if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027056 ac_cv_lib_umem_umem_free=yes
27057else
cristy8b350f62009-11-15 23:12:43 +000027058 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000027059fi
cristy8b350f62009-11-15 23:12:43 +000027060rm -f core conftest.err conftest.$ac_objext \
27061 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027062LIBS=$ac_check_lib_save_LIBS
27063fi
cristy8b350f62009-11-15 23:12:43 +000027064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000027065$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000027066if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027067 passed=`expr $passed + 1`
27068else
27069 failed=`expr $failed + 1`
27070fi
27071
cristy8b350f62009-11-15 23:12:43 +000027072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027073$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
27074 if test $passed -gt 0; then
27075 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000027076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27077$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027078 have_umem='no (failed tests)'
27079 else
27080 UMEM_LIBS='-lumem'
27081 LIBS="$UMEM_LIBS $LIBS"
27082
cristy8b350f62009-11-15 23:12:43 +000027083$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027084
cristyad38abe2012-12-23 23:03:21 +000027085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27086$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027087 have_umem='yes'
27088 fi
27089 else
cristyad38abe2012-12-23 23:03:21 +000027090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27091$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027092 fi
27093fi
cristy73bd4a52010-10-05 11:24:23 +000027094 if test "$have_umem" = 'yes'; then
27095 HasUMEM_TRUE=
27096 HasUMEM_FALSE='#'
27097else
27098 HasUMEM_TRUE='#'
27099 HasUMEM_FALSE=
27100fi
27101
cristy3ed852e2009-09-05 21:47:34 +000027102
27103
27104#
27105# Add support for ccmalloc memory debugging library if requested
27106#
27107have_ccmalloc='no'
27108CCMALLOC_LIBS=''
27109if test "$enable_ccmalloc" = 'yes'; then
27110 # Extract the first word of "ccmalloc", so it can be a program name with args.
27111set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000027112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000027113$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027114if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027115 $as_echo_n "(cached) " >&6
27116else
27117 case $CCMALLOCDelegate in
27118 [\\/]* | ?:[\\/]*)
27119 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
27120 ;;
27121 *)
27122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27123for as_dir in $PATH
27124do
27125 IFS=$as_save_IFS
27126 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000027127 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000027128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000027129 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000027130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027131 break 2
27132 fi
27133done
cristy8b350f62009-11-15 23:12:43 +000027134 done
cristy3ed852e2009-09-05 21:47:34 +000027135IFS=$as_save_IFS
27136
27137 ;;
27138esac
27139fi
27140CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
27141if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000027142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027143$as_echo "$CCMALLOCDelegate" >&6; }
27144else
cristy8b350f62009-11-15 23:12:43 +000027145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027146$as_echo "no" >&6; }
27147fi
27148
27149
27150 if test -n "$CCMALLOCDelegate"; then
27151 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
27152 OLIBS="$LIBS"
27153 # Assume that gcc is used with ccmalloc.
27154 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000027155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027156$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027157if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027158 $as_echo_n "(cached) " >&6
27159else
27160 ac_check_lib_save_LIBS=$LIBS
27161LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027162cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027163/* end confdefs.h. */
27164
27165/* Override any GCC internal prototype to avoid an error.
27166 Use char because int might match the return type of a GCC
27167 builtin and then its argument prototype would still apply. */
27168#ifdef __cplusplus
27169extern "C"
27170#endif
27171char ccmalloc_malloc ();
27172int
27173main ()
27174{
27175return ccmalloc_malloc ();
27176 ;
27177 return 0;
27178}
27179_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027180if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027181 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
27182else
cristy8b350f62009-11-15 23:12:43 +000027183 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000027184fi
cristy8b350f62009-11-15 23:12:43 +000027185rm -f core conftest.err conftest.$ac_objext \
27186 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027187LIBS=$ac_check_lib_save_LIBS
27188fi
cristy8b350f62009-11-15 23:12:43 +000027189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027190$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000027191if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027192 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
27193fi
27194
27195 if test -n "$CCMALLOC_LIBS"; then
27196 LIBS="$OLIBS"
27197 LIBS="$LIBS $CCMALLOC_LIBS"
27198 have_ccmalloc='yes'
27199 else
27200 LIBS="$OLIBS"
27201 fi
27202 fi
27203fi
27204
27205#
cristy944e51f2013-04-16 18:45:02 +000027206# Add support for 'huge pages' if requested
27207#
27208if test "x$enable_hugepages" != "xno"; then :
27209
27210
27211$as_echo "#define HAVE_HUGEPAGES 1" >>confdefs.h
27212
27213
27214fi
27215
27216#
cristy3ed852e2009-09-05 21:47:34 +000027217# Add support for efence memory debugging library if requested
27218#
27219if test "$enable_efence" = 'yes'; then
27220 EFENCE_LIBS='-lefence'
27221 LIBS="$EFENCE_LIBS $LIBS"
27222fi
27223
cristy3ed852e2009-09-05 21:47:34 +000027224
27225#
27226# Check for BZLIB
27227#
27228
27229
27230# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000027231if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027232 withval=$with_bzlib; with_bzlib=$withval
27233else
27234 with_bzlib='yes'
27235fi
27236
27237
27238if test "$with_bzlib" != 'yes'; then
27239 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
27240fi
27241
27242have_bzlib='no'
27243if test "$with_bzlib" != 'no'; then
27244 BZLIB_LIBS=''
cristyad38abe2012-12-23 23:03:21 +000027245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27246$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000027248$as_echo_n "checking for BZLIB... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27250$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027251 failed=0
27252 passed=0
27253 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000027254 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027255if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027256 passed=`expr $passed + 1`
27257else
27258 failed=`expr $failed + 1`
27259fi
27260
27261
cristy8b350f62009-11-15 23:12:43 +000027262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027263$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027264if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027265 $as_echo_n "(cached) " >&6
27266else
27267 ac_check_lib_save_LIBS=$LIBS
27268LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027269cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027270/* end confdefs.h. */
27271
27272/* Override any GCC internal prototype to avoid an error.
27273 Use char because int might match the return type of a GCC
27274 builtin and then its argument prototype would still apply. */
27275#ifdef __cplusplus
27276extern "C"
27277#endif
27278char BZ2_bzDecompress ();
27279int
27280main ()
27281{
27282return BZ2_bzDecompress ();
27283 ;
27284 return 0;
27285}
27286_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027287if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027288 ac_cv_lib_bz2_BZ2_bzDecompress=yes
27289else
cristy8b350f62009-11-15 23:12:43 +000027290 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000027291fi
cristy8b350f62009-11-15 23:12:43 +000027292rm -f core conftest.err conftest.$ac_objext \
27293 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027294LIBS=$ac_check_lib_save_LIBS
27295fi
cristy8b350f62009-11-15 23:12:43 +000027296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027297$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027298if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027299 found_libbz=`expr $found_libbz + 1`
27300fi
27301
27302 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027304$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027305if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027306 $as_echo_n "(cached) " >&6
27307else
27308 ac_check_lib_save_LIBS=$LIBS
27309LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027310cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027311/* end confdefs.h. */
27312
27313/* Override any GCC internal prototype to avoid an error.
27314 Use char because int might match the return type of a GCC
27315 builtin and then its argument prototype would still apply. */
27316#ifdef __cplusplus
27317extern "C"
27318#endif
27319char _imp__BZ2_decompress ();
27320int
27321main ()
27322{
27323return _imp__BZ2_decompress ();
27324 ;
27325 return 0;
27326}
27327_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027328if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027329 ac_cv_lib_bz2__imp__BZ2_decompress=yes
27330else
cristy8b350f62009-11-15 23:12:43 +000027331 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000027332fi
cristy8b350f62009-11-15 23:12:43 +000027333rm -f core conftest.err conftest.$ac_objext \
27334 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027335LIBS=$ac_check_lib_save_LIBS
27336fi
cristy8b350f62009-11-15 23:12:43 +000027337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027338$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027339if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027340 found_libbz=`expr $found_libbz + 1`
27341fi
27342
27343 fi
27344 if test $found_libbz -gt 0; then
27345 passed=`expr $passed + 1`
27346 else
27347 failed=`expr $failed + 1`
27348 fi
cristy8b350f62009-11-15 23:12:43 +000027349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027350$as_echo_n "checking if BZLIB package is complete... " >&6; }
27351 if test $passed -gt 0; then
27352 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000027353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27354$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027355 have_bzlib='no (failed tests)'
27356 else
27357 BZLIB_LIBS='-lbz2'
27358 LIBS="$BZLIB_LIBS $LIBS"
27359
cristy8b350f62009-11-15 23:12:43 +000027360$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027361
cristyad38abe2012-12-23 23:03:21 +000027362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27363$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027364 have_bzlib='yes'
27365 fi
27366 else
cristyad38abe2012-12-23 23:03:21 +000027367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27368$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027369 fi
27370fi
cristy73bd4a52010-10-05 11:24:23 +000027371 if test "$have_bzlib" = 'yes'; then
27372 BZLIB_DELEGATE_TRUE=
27373 BZLIB_DELEGATE_FALSE='#'
27374else
27375 BZLIB_DELEGATE_TRUE='#'
27376 BZLIB_DELEGATE_FALSE=
27377fi
27378
cristy3ed852e2009-09-05 21:47:34 +000027379
27380
27381#
27382# Find the X11 include and library directories.
27383#
27384IPC_LIBS=''
27385X11_LIBS=''
27386XEXT_LIBS=''
27387XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000027388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000027389$as_echo_n "checking for X... " >&6; }
27390
27391
27392# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000027393if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000027394 withval=$with_x;
27395fi
27396
27397# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
27398if test "x$with_x" = xno; then
27399 # The user explicitly disabled X.
27400 have_x=disabled
27401else
27402 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000027403 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000027404 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000027405 $as_echo_n "(cached) " >&6
27406else
27407 # One or both of the vars are not set, and there is no cached value.
27408ac_x_includes=no ac_x_libraries=no
27409rm -f -r conftest.dir
27410if mkdir conftest.dir; then
27411 cd conftest.dir
27412 cat >Imakefile <<'_ACEOF'
27413incroot:
27414 @echo incroot='${INCROOT}'
27415usrlibdir:
27416 @echo usrlibdir='${USRLIBDIR}'
27417libdir:
27418 @echo libdir='${LIBDIR}'
27419_ACEOF
27420 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000027421 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000027422 for ac_var in incroot usrlibdir libdir; do
27423 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
27424 done
27425 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
27426 for ac_extension in a so sl dylib la dll; do
27427 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
27428 test -f "$ac_im_libdir/libX11.$ac_extension"; then
27429 ac_im_usrlibdir=$ac_im_libdir; break
27430 fi
27431 done
27432 # Screen out bogus values from the imake configuration. They are
27433 # bogus both because they are the default anyway, and because
27434 # using them would break gcc on systems where it needs fixed includes.
27435 case $ac_im_incroot in
27436 /usr/include) ac_x_includes= ;;
27437 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
27438 esac
27439 case $ac_im_usrlibdir in
27440 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
27441 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
27442 esac
27443 fi
27444 cd ..
27445 rm -f -r conftest.dir
27446fi
27447
27448# Standard set of common directories for X headers.
27449# Check X11 before X11Rn because it is often a symlink to the current release.
27450ac_x_header_dirs='
27451/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000027452/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027453/usr/X11R6/include
27454/usr/X11R5/include
27455/usr/X11R4/include
27456
27457/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000027458/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027459/usr/include/X11R6
27460/usr/include/X11R5
27461/usr/include/X11R4
27462
27463/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000027464/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027465/usr/local/X11R6/include
27466/usr/local/X11R5/include
27467/usr/local/X11R4/include
27468
27469/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000027470/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027471/usr/local/include/X11R6
27472/usr/local/include/X11R5
27473/usr/local/include/X11R4
27474
27475/usr/X386/include
27476/usr/x386/include
27477/usr/XFree86/include/X11
27478
27479/usr/include
27480/usr/local/include
27481/usr/unsupported/include
27482/usr/athena/include
27483/usr/local/x11r5/include
27484/usr/lpp/Xamples/include
27485
27486/usr/openwin/include
27487/usr/openwin/share/include'
27488
27489if test "$ac_x_includes" = no; then
27490 # Guess where to find include files, by looking for Xlib.h.
27491 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000027492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027493/* end confdefs.h. */
27494#include <X11/Xlib.h>
27495_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027496if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027497 # We can compile using X headers with no special include directory.
27498ac_x_includes=
27499else
cristyc7083c12009-10-14 03:16:55 +000027500 for ac_dir in $ac_x_header_dirs; do
27501 if test -r "$ac_dir/X11/Xlib.h"; then
27502 ac_x_includes=$ac_dir
27503 break
27504 fi
27505done
27506fi
cristyda16f162011-02-19 23:52:17 +000027507rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027508fi # $ac_x_includes = no
27509
27510if test "$ac_x_libraries" = no; then
27511 # Check for the libraries.
27512 # See if we find them without any special options.
27513 # Don't add to $LIBS permanently.
27514 ac_save_LIBS=$LIBS
27515 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027517/* end confdefs.h. */
27518#include <X11/Xlib.h>
27519int
27520main ()
27521{
27522XrmInitialize ()
27523 ;
27524 return 0;
27525}
27526_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027527if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027528 LIBS=$ac_save_LIBS
27529# We can link X programs with no special library path.
27530ac_x_libraries=
27531else
cristy8b350f62009-11-15 23:12:43 +000027532 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000027533for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
27534do
27535 # Don't even attempt the hair of trying to link an X program!
27536 for ac_extension in a so sl dylib la dll; do
27537 if test -r "$ac_dir/libX11.$ac_extension"; then
27538 ac_x_libraries=$ac_dir
27539 break 2
27540 fi
27541 done
27542done
27543fi
cristy8b350f62009-11-15 23:12:43 +000027544rm -f core conftest.err conftest.$ac_objext \
27545 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027546fi # $ac_x_libraries = no
27547
27548case $ac_x_includes,$ac_x_libraries in #(
27549 no,* | *,no | *\'*)
27550 # Didn't find X, or a directory has "'" in its name.
27551 ac_cv_have_x="have_x=no";; #(
27552 *)
27553 # Record where we found X for the cache.
27554 ac_cv_have_x="have_x=yes\
27555 ac_x_includes='$ac_x_includes'\
27556 ac_x_libraries='$ac_x_libraries'"
27557esac
27558fi
27559;; #(
27560 *) have_x=yes;;
27561 esac
27562 eval "$ac_cv_have_x"
27563fi # $with_x != no
27564
27565if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000027566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000027567$as_echo "$have_x" >&6; }
27568 no_x=yes
27569else
27570 # If each of the values was on the command line, it overrides each guess.
27571 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
27572 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
27573 # Update the cache value to reflect the command line values.
27574 ac_cv_have_x="have_x=yes\
27575 ac_x_includes='$x_includes'\
27576 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000027577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000027578$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
27579fi
27580
cristy3ed852e2009-09-05 21:47:34 +000027581if test "$no_x" = yes; then
27582 # Not all programs may use this symbol, but it does not hurt to define it.
27583
cristy8b350f62009-11-15 23:12:43 +000027584$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027585
27586 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
27587else
27588 if test -n "$x_includes"; then
27589 X_CFLAGS="$X_CFLAGS -I$x_includes"
27590 fi
27591
27592 # It would also be nice to do this for all -L options, not just this one.
27593 if test -n "$x_libraries"; then
27594 X_LIBS="$X_LIBS -L$x_libraries"
27595 # For Solaris; some versions of Sun CC require a space after -R and
27596 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000027597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000027598$as_echo_n "checking whether -R must be followed by a space... " >&6; }
27599 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
27600 ac_xsave_c_werror_flag=$ac_c_werror_flag
27601 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000027602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027603/* end confdefs.h. */
27604
27605int
27606main ()
27607{
27608
27609 ;
27610 return 0;
27611}
27612_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027613if ac_fn_c_try_link "$LINENO"; then :
27614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027615$as_echo "no" >&6; }
27616 X_LIBS="$X_LIBS -R$x_libraries"
27617else
cristy8b350f62009-11-15 23:12:43 +000027618 LIBS="$ac_xsave_LIBS -R $x_libraries"
27619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027620/* end confdefs.h. */
27621
27622int
27623main ()
27624{
27625
27626 ;
27627 return 0;
27628}
27629_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027630if ac_fn_c_try_link "$LINENO"; then :
27631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027632$as_echo "yes" >&6; }
27633 X_LIBS="$X_LIBS -R $x_libraries"
27634else
cristy8b350f62009-11-15 23:12:43 +000027635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000027636$as_echo "neither works" >&6; }
27637fi
cristy8b350f62009-11-15 23:12:43 +000027638rm -f core conftest.err conftest.$ac_objext \
27639 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027640fi
cristy8b350f62009-11-15 23:12:43 +000027641rm -f core conftest.err conftest.$ac_objext \
27642 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027643 ac_c_werror_flag=$ac_xsave_c_werror_flag
27644 LIBS=$ac_xsave_LIBS
27645 fi
27646
27647 # Check for system-dependent libraries X programs must link with.
27648 # Do this before checking for the system-independent R6 libraries
27649 # (-lICE), since we may need -lsocket or whatever for X linking.
27650
27651 if test "$ISC" = yes; then
27652 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
27653 else
27654 # Martyn Johnson says this is needed for Ultrix, if the X
27655 # libraries were built with DECnet support. And Karl Berry says
27656 # the Alpha needs dnet_stub (dnet does not exist).
27657 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000027658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027659/* end confdefs.h. */
27660
27661/* Override any GCC internal prototype to avoid an error.
27662 Use char because int might match the return type of a GCC
27663 builtin and then its argument prototype would still apply. */
27664#ifdef __cplusplus
27665extern "C"
27666#endif
27667char XOpenDisplay ();
27668int
27669main ()
27670{
27671return XOpenDisplay ();
27672 ;
27673 return 0;
27674}
27675_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027676if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027677
cristy8b350f62009-11-15 23:12:43 +000027678else
27679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000027680$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027681if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027682 $as_echo_n "(cached) " >&6
27683else
27684 ac_check_lib_save_LIBS=$LIBS
27685LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027686cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027687/* end confdefs.h. */
27688
27689/* Override any GCC internal prototype to avoid an error.
27690 Use char because int might match the return type of a GCC
27691 builtin and then its argument prototype would still apply. */
27692#ifdef __cplusplus
27693extern "C"
27694#endif
27695char dnet_ntoa ();
27696int
27697main ()
27698{
27699return dnet_ntoa ();
27700 ;
27701 return 0;
27702}
27703_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027704if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027705 ac_cv_lib_dnet_dnet_ntoa=yes
27706else
cristy8b350f62009-11-15 23:12:43 +000027707 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027708fi
cristy8b350f62009-11-15 23:12:43 +000027709rm -f core conftest.err conftest.$ac_objext \
27710 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027711LIBS=$ac_check_lib_save_LIBS
27712fi
cristy8b350f62009-11-15 23:12:43 +000027713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027714$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027715if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027716 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
27717fi
27718
27719 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000027720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000027721$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027722if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027723 $as_echo_n "(cached) " >&6
27724else
27725 ac_check_lib_save_LIBS=$LIBS
27726LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027727cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027728/* end confdefs.h. */
27729
27730/* Override any GCC internal prototype to avoid an error.
27731 Use char because int might match the return type of a GCC
27732 builtin and then its argument prototype would still apply. */
27733#ifdef __cplusplus
27734extern "C"
27735#endif
27736char dnet_ntoa ();
27737int
27738main ()
27739{
27740return dnet_ntoa ();
27741 ;
27742 return 0;
27743}
27744_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027745if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027746 ac_cv_lib_dnet_stub_dnet_ntoa=yes
27747else
cristy8b350f62009-11-15 23:12:43 +000027748 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027749fi
cristy8b350f62009-11-15 23:12:43 +000027750rm -f core conftest.err conftest.$ac_objext \
27751 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027752LIBS=$ac_check_lib_save_LIBS
27753fi
cristy8b350f62009-11-15 23:12:43 +000027754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027755$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027756if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027757 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
27758fi
27759
27760 fi
27761fi
cristy8b350f62009-11-15 23:12:43 +000027762rm -f core conftest.err conftest.$ac_objext \
27763 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027764 LIBS="$ac_xsave_LIBS"
27765
27766 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27767 # to get the SysV transport functions.
27768 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27769 # needs -lnsl.
27770 # The nsl library prevents programs from opening the X display
27771 # on Irix 5.2, according to T.E. Dickey.
27772 # The functions gethostbyname, getservbyname, and inet_addr are
27773 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000027774 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000027775if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027776
cristy3ed852e2009-09-05 21:47:34 +000027777fi
27778
cristy3ed852e2009-09-05 21:47:34 +000027779 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027781$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027782if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027783 $as_echo_n "(cached) " >&6
27784else
27785 ac_check_lib_save_LIBS=$LIBS
27786LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027787cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027788/* end confdefs.h. */
27789
27790/* Override any GCC internal prototype to avoid an error.
27791 Use char because int might match the return type of a GCC
27792 builtin and then its argument prototype would still apply. */
27793#ifdef __cplusplus
27794extern "C"
27795#endif
27796char gethostbyname ();
27797int
27798main ()
27799{
27800return gethostbyname ();
27801 ;
27802 return 0;
27803}
27804_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027805if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027806 ac_cv_lib_nsl_gethostbyname=yes
27807else
cristy8b350f62009-11-15 23:12:43 +000027808 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027809fi
cristy8b350f62009-11-15 23:12:43 +000027810rm -f core conftest.err conftest.$ac_objext \
27811 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027812LIBS=$ac_check_lib_save_LIBS
27813fi
cristy8b350f62009-11-15 23:12:43 +000027814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027815$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027816if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027817 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
27818fi
27819
27820 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000027822$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027823if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027824 $as_echo_n "(cached) " >&6
27825else
27826 ac_check_lib_save_LIBS=$LIBS
27827LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027828cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027829/* end confdefs.h. */
27830
27831/* Override any GCC internal prototype to avoid an error.
27832 Use char because int might match the return type of a GCC
27833 builtin and then its argument prototype would still apply. */
27834#ifdef __cplusplus
27835extern "C"
27836#endif
27837char gethostbyname ();
27838int
27839main ()
27840{
27841return gethostbyname ();
27842 ;
27843 return 0;
27844}
27845_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027846if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027847 ac_cv_lib_bsd_gethostbyname=yes
27848else
cristy8b350f62009-11-15 23:12:43 +000027849 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027850fi
cristy8b350f62009-11-15 23:12:43 +000027851rm -f core conftest.err conftest.$ac_objext \
27852 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027853LIBS=$ac_check_lib_save_LIBS
27854fi
cristy8b350f62009-11-15 23:12:43 +000027855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027856$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027857if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027858 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27859fi
27860
27861 fi
27862 fi
27863
27864 # lieder@skyler.mavd.honeywell.com says without -lsocket,
27865 # socket/setsockopt and other routines are undefined under SCO ODT
27866 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
27867 # on later versions), says Simon Leinen: it contains gethostby*
27868 # variants that don't use the name server (or something). -lsocket
27869 # must be given before -lnsl if both are needed. We assume that
27870 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000027871 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000027872if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027873
cristy3ed852e2009-09-05 21:47:34 +000027874fi
27875
cristy3ed852e2009-09-05 21:47:34 +000027876 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000027877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000027878$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027879if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027880 $as_echo_n "(cached) " >&6
27881else
27882 ac_check_lib_save_LIBS=$LIBS
27883LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027884cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027885/* end confdefs.h. */
27886
27887/* Override any GCC internal prototype to avoid an error.
27888 Use char because int might match the return type of a GCC
27889 builtin and then its argument prototype would still apply. */
27890#ifdef __cplusplus
27891extern "C"
27892#endif
27893char connect ();
27894int
27895main ()
27896{
27897return connect ();
27898 ;
27899 return 0;
27900}
27901_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027902if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027903 ac_cv_lib_socket_connect=yes
27904else
cristy8b350f62009-11-15 23:12:43 +000027905 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000027906fi
cristy8b350f62009-11-15 23:12:43 +000027907rm -f core conftest.err conftest.$ac_objext \
27908 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027909LIBS=$ac_check_lib_save_LIBS
27910fi
cristy8b350f62009-11-15 23:12:43 +000027911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000027912$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000027913if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027914 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27915fi
27916
27917 fi
27918
27919 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000027920 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000027921if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027922
cristy3ed852e2009-09-05 21:47:34 +000027923fi
27924
cristy3ed852e2009-09-05 21:47:34 +000027925 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000027926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000027927$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027928if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027929 $as_echo_n "(cached) " >&6
27930else
27931 ac_check_lib_save_LIBS=$LIBS
27932LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027933cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027934/* end confdefs.h. */
27935
27936/* Override any GCC internal prototype to avoid an error.
27937 Use char because int might match the return type of a GCC
27938 builtin and then its argument prototype would still apply. */
27939#ifdef __cplusplus
27940extern "C"
27941#endif
27942char remove ();
27943int
27944main ()
27945{
27946return remove ();
27947 ;
27948 return 0;
27949}
27950_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027951if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027952 ac_cv_lib_posix_remove=yes
27953else
cristy8b350f62009-11-15 23:12:43 +000027954 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000027955fi
cristy8b350f62009-11-15 23:12:43 +000027956rm -f core conftest.err conftest.$ac_objext \
27957 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027958LIBS=$ac_check_lib_save_LIBS
27959fi
cristy8b350f62009-11-15 23:12:43 +000027960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000027961$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000027962if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027963 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27964fi
27965
27966 fi
27967
27968 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000027969 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000027970if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027971
cristy3ed852e2009-09-05 21:47:34 +000027972fi
27973
cristy3ed852e2009-09-05 21:47:34 +000027974 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000027975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027976$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027977if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027978 $as_echo_n "(cached) " >&6
27979else
27980 ac_check_lib_save_LIBS=$LIBS
27981LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027982cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027983/* end confdefs.h. */
27984
27985/* Override any GCC internal prototype to avoid an error.
27986 Use char because int might match the return type of a GCC
27987 builtin and then its argument prototype would still apply. */
27988#ifdef __cplusplus
27989extern "C"
27990#endif
27991char shmat ();
27992int
27993main ()
27994{
27995return shmat ();
27996 ;
27997 return 0;
27998}
27999_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028000if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028001 ac_cv_lib_ipc_shmat=yes
28002else
cristy8b350f62009-11-15 23:12:43 +000028003 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000028004fi
cristy8b350f62009-11-15 23:12:43 +000028005rm -f core conftest.err conftest.$ac_objext \
28006 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028007LIBS=$ac_check_lib_save_LIBS
28008fi
cristy8b350f62009-11-15 23:12:43 +000028009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000028010$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000028011if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028012 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
28013fi
28014
28015 fi
28016 fi
28017
28018 # Check for libraries that X11R6 Xt/Xaw programs need.
28019 ac_save_LDFLAGS=$LDFLAGS
28020 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
28021 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
28022 # check for ICE first), but we must link in the order -lSM -lICE or
28023 # we get undefined symbols. So assume we have SM if we have ICE.
28024 # These have to be linked with before -lX11, unlike the other
28025 # libraries we check for below, so use a different variable.
28026 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000028027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000028028$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028029if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028030 $as_echo_n "(cached) " >&6
28031else
28032 ac_check_lib_save_LIBS=$LIBS
28033LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028034cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028035/* end confdefs.h. */
28036
28037/* Override any GCC internal prototype to avoid an error.
28038 Use char because int might match the return type of a GCC
28039 builtin and then its argument prototype would still apply. */
28040#ifdef __cplusplus
28041extern "C"
28042#endif
28043char IceConnectionNumber ();
28044int
28045main ()
28046{
28047return IceConnectionNumber ();
28048 ;
28049 return 0;
28050}
28051_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028052if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028053 ac_cv_lib_ICE_IceConnectionNumber=yes
28054else
cristy8b350f62009-11-15 23:12:43 +000028055 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000028056fi
cristy8b350f62009-11-15 23:12:43 +000028057rm -f core conftest.err conftest.$ac_objext \
28058 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028059LIBS=$ac_check_lib_save_LIBS
28060fi
cristy8b350f62009-11-15 23:12:43 +000028061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000028062$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000028063if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028064 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
28065fi
28066
28067 LDFLAGS=$ac_save_LDFLAGS
28068
28069fi
28070
28071if test "$no_x" != 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000028072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28073$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000028075$as_echo_n "checking for X11... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28077$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028078 LDFLAGS="$LDFLAGS $X_LIBS"
28079 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
28080 LIBS="$X11_LIBS $LIBS"
28081 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
28082
28083
cristy8b350f62009-11-15 23:12:43 +000028084$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028085
28086 #
28087 # Check for X11 shared memory extension
28088 #
28089 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000028090 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000028091if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028092 have_shmctl='yes'
28093fi
28094
28095 if test "$have_shmctl" != 'yes'; then
28096 PERSIST_LIBS=$LIBS
28097 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000028098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028099/* end confdefs.h. */
28100
28101/* Override any GCC internal prototype to avoid an error.
28102 Use char because int might match the return type of a GCC
28103 builtin and then its argument prototype would still apply. */
28104#ifdef __cplusplus
28105extern "C"
28106#endif
28107char shmctl ();
28108int
28109main ()
28110{
28111return shmctl ();
28112 ;
28113 return 0;
28114}
28115_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028116if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028117 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000028118fi
cristy8b350f62009-11-15 23:12:43 +000028119rm -f core conftest.err conftest.$ac_objext \
28120 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028121 LIBS=$PERSIST_LIBS
28122 fi
28123
28124 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028126$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028127if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028128 $as_echo_n "(cached) " >&6
28129else
28130 ac_check_lib_save_LIBS=$LIBS
28131LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028132cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028133/* end confdefs.h. */
28134
28135/* Override any GCC internal prototype to avoid an error.
28136 Use char because int might match the return type of a GCC
28137 builtin and then its argument prototype would still apply. */
28138#ifdef __cplusplus
28139extern "C"
28140#endif
28141char XShmAttach ();
28142int
28143main ()
28144{
28145return XShmAttach ();
28146 ;
28147 return 0;
28148}
28149_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028150if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028151 ac_cv_lib_Xext_XShmAttach=yes
28152else
cristy8b350f62009-11-15 23:12:43 +000028153 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000028154fi
cristy8b350f62009-11-15 23:12:43 +000028155rm -f core conftest.err conftest.$ac_objext \
28156 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028157LIBS=$ac_check_lib_save_LIBS
28158fi
cristy8b350f62009-11-15 23:12:43 +000028159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000028160$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000028161if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028162 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000028163$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028164
28165fi
28166
28167 fi
28168
28169 #
28170 # Check for X11 shape extension
28171 #
cristy8b350f62009-11-15 23:12:43 +000028172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028173$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028174if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028175 $as_echo_n "(cached) " >&6
28176else
28177 ac_check_lib_save_LIBS=$LIBS
28178LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028179cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028180/* end confdefs.h. */
28181
28182/* Override any GCC internal prototype to avoid an error.
28183 Use char because int might match the return type of a GCC
28184 builtin and then its argument prototype would still apply. */
28185#ifdef __cplusplus
28186extern "C"
28187#endif
28188char XShapeCombineMask ();
28189int
28190main ()
28191{
28192return XShapeCombineMask ();
28193 ;
28194 return 0;
28195}
28196_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028197if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028198 ac_cv_lib_Xext_XShapeCombineMask=yes
28199else
cristy8b350f62009-11-15 23:12:43 +000028200 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000028201fi
cristy8b350f62009-11-15 23:12:43 +000028202rm -f core conftest.err conftest.$ac_objext \
28203 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028204LIBS=$ac_check_lib_save_LIBS
28205fi
cristy8b350f62009-11-15 23:12:43 +000028206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000028207$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000028208if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028209 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000028210$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028211
28212fi
28213
cristy8b350f62009-11-15 23:12:43 +000028214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000028215$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028216if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028217 $as_echo_n "(cached) " >&6
28218else
28219 ac_check_lib_save_LIBS=$LIBS
28220LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028221cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028222/* end confdefs.h. */
28223
28224/* Override any GCC internal prototype to avoid an error.
28225 Use char because int might match the return type of a GCC
28226 builtin and then its argument prototype would still apply. */
28227#ifdef __cplusplus
28228extern "C"
28229#endif
28230char XtSetEventDispatcher ();
28231int
28232main ()
28233{
28234return XtSetEventDispatcher ();
28235 ;
28236 return 0;
28237}
28238_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028239if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028240 ac_cv_lib_Xt_XtSetEventDispatcher=yes
28241else
cristy8b350f62009-11-15 23:12:43 +000028242 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000028243fi
cristy8b350f62009-11-15 23:12:43 +000028244rm -f core conftest.err conftest.$ac_objext \
28245 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028246LIBS=$ac_check_lib_save_LIBS
28247fi
cristy8b350f62009-11-15 23:12:43 +000028248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000028249$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000028250if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028251 XT_LIBS='-lXt'
28252fi
28253
28254 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
28255fi
28256if test "$no_x" != 'yes'; then
28257 have_x='yes'
28258else
28259 have_x='no'
28260fi
cristy73bd4a52010-10-05 11:24:23 +000028261 if test "$have_x" = 'yes'; then
28262 X11_DELEGATE_TRUE=
28263 X11_DELEGATE_FALSE='#'
28264else
28265 X11_DELEGATE_TRUE='#'
28266 X11_DELEGATE_FALSE=
28267fi
28268
cristy3ed852e2009-09-05 21:47:34 +000028269
28270
28271
28272
28273#
28274# Check for ZLIB
28275#
28276
28277# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000028278if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028279 withval=$with_zlib; with_zlib=$withval
28280else
28281 with_zlib='yes'
28282fi
28283
28284
28285if test "$with_zlib" != 'yes'; then
28286 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
28287fi
28288
28289have_zlib='no'
28290ZLIB_LIBS=''
28291if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28293$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000028295$as_echo_n "checking for ZLIB... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28297$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028298 ZLIB_LIBS=''
28299 failed=0
28300 passed=0
cristy8b350f62009-11-15 23:12:43 +000028301 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028302if test "x$ac_cv_header_zconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028303 passed=`expr $passed + 1`
28304else
28305 failed=`expr $failed + 1`
28306fi
28307
28308
cristy8b350f62009-11-15 23:12:43 +000028309 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028310if test "x$ac_cv_header_zlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028311 passed=`expr $passed + 1`
28312else
28313 failed=`expr $failed + 1`
28314fi
28315
28316
cristy8b350f62009-11-15 23:12:43 +000028317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028318$as_echo_n "checking for compress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028319if ${ac_cv_lib_z_compress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028320 $as_echo_n "(cached) " >&6
28321else
28322 ac_check_lib_save_LIBS=$LIBS
28323LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028324cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028325/* end confdefs.h. */
28326
28327/* Override any GCC internal prototype to avoid an error.
28328 Use char because int might match the return type of a GCC
28329 builtin and then its argument prototype would still apply. */
28330#ifdef __cplusplus
28331extern "C"
28332#endif
28333char compress ();
28334int
28335main ()
28336{
28337return compress ();
28338 ;
28339 return 0;
28340}
28341_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028342if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028343 ac_cv_lib_z_compress=yes
28344else
cristy8b350f62009-11-15 23:12:43 +000028345 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000028346fi
cristy8b350f62009-11-15 23:12:43 +000028347rm -f core conftest.err conftest.$ac_objext \
28348 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028349LIBS=$ac_check_lib_save_LIBS
28350fi
cristy8b350f62009-11-15 23:12:43 +000028351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000028352$as_echo "$ac_cv_lib_z_compress" >&6; }
cristyda16f162011-02-19 23:52:17 +000028353if test "x$ac_cv_lib_z_compress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028354 passed=`expr $passed + 1`
28355else
28356 failed=`expr $failed + 1`
28357fi
28358
cristy8b350f62009-11-15 23:12:43 +000028359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028360$as_echo_n "checking for uncompress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028361if ${ac_cv_lib_z_uncompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028362 $as_echo_n "(cached) " >&6
28363else
28364 ac_check_lib_save_LIBS=$LIBS
28365LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028366cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028367/* end confdefs.h. */
28368
28369/* Override any GCC internal prototype to avoid an error.
28370 Use char because int might match the return type of a GCC
28371 builtin and then its argument prototype would still apply. */
28372#ifdef __cplusplus
28373extern "C"
28374#endif
28375char uncompress ();
28376int
28377main ()
28378{
28379return uncompress ();
28380 ;
28381 return 0;
28382}
28383_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028384if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028385 ac_cv_lib_z_uncompress=yes
28386else
cristy8b350f62009-11-15 23:12:43 +000028387 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000028388fi
cristy8b350f62009-11-15 23:12:43 +000028389rm -f core conftest.err conftest.$ac_objext \
28390 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028391LIBS=$ac_check_lib_save_LIBS
28392fi
cristy8b350f62009-11-15 23:12:43 +000028393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000028394$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000028395if test "x$ac_cv_lib_z_uncompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028396 passed=`expr $passed + 1`
28397else
28398 failed=`expr $failed + 1`
28399fi
28400
cristy8b350f62009-11-15 23:12:43 +000028401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028402$as_echo_n "checking for deflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028403if ${ac_cv_lib_z_deflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028404 $as_echo_n "(cached) " >&6
28405else
28406 ac_check_lib_save_LIBS=$LIBS
28407LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028408cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028409/* end confdefs.h. */
28410
28411/* Override any GCC internal prototype to avoid an error.
28412 Use char because int might match the return type of a GCC
28413 builtin and then its argument prototype would still apply. */
28414#ifdef __cplusplus
28415extern "C"
28416#endif
28417char deflate ();
28418int
28419main ()
28420{
28421return deflate ();
28422 ;
28423 return 0;
28424}
28425_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028426if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028427 ac_cv_lib_z_deflate=yes
28428else
cristy8b350f62009-11-15 23:12:43 +000028429 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000028430fi
cristy8b350f62009-11-15 23:12:43 +000028431rm -f core conftest.err conftest.$ac_objext \
28432 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028433LIBS=$ac_check_lib_save_LIBS
28434fi
cristy8b350f62009-11-15 23:12:43 +000028435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028436$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000028437if test "x$ac_cv_lib_z_deflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028438 passed=`expr $passed + 1`
28439else
28440 failed=`expr $failed + 1`
28441fi
28442
cristy8b350f62009-11-15 23:12:43 +000028443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028444$as_echo_n "checking for inflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028445if ${ac_cv_lib_z_inflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028446 $as_echo_n "(cached) " >&6
28447else
28448 ac_check_lib_save_LIBS=$LIBS
28449LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028450cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028451/* end confdefs.h. */
28452
28453/* Override any GCC internal prototype to avoid an error.
28454 Use char because int might match the return type of a GCC
28455 builtin and then its argument prototype would still apply. */
28456#ifdef __cplusplus
28457extern "C"
28458#endif
28459char inflate ();
28460int
28461main ()
28462{
28463return inflate ();
28464 ;
28465 return 0;
28466}
28467_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028468if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028469 ac_cv_lib_z_inflate=yes
28470else
cristy8b350f62009-11-15 23:12:43 +000028471 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000028472fi
cristy8b350f62009-11-15 23:12:43 +000028473rm -f core conftest.err conftest.$ac_objext \
28474 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028475LIBS=$ac_check_lib_save_LIBS
28476fi
cristy8b350f62009-11-15 23:12:43 +000028477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028478$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000028479if test "x$ac_cv_lib_z_inflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028480 passed=`expr $passed + 1`
28481else
28482 failed=`expr $failed + 1`
28483fi
28484
cristy8b350f62009-11-15 23:12:43 +000028485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028486$as_echo_n "checking for gzseek in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028487if ${ac_cv_lib_z_gzseek+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028488 $as_echo_n "(cached) " >&6
28489else
28490 ac_check_lib_save_LIBS=$LIBS
28491LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028492cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028493/* end confdefs.h. */
28494
28495/* Override any GCC internal prototype to avoid an error.
28496 Use char because int might match the return type of a GCC
28497 builtin and then its argument prototype would still apply. */
28498#ifdef __cplusplus
28499extern "C"
28500#endif
28501char gzseek ();
28502int
28503main ()
28504{
28505return gzseek ();
28506 ;
28507 return 0;
28508}
28509_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028510if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028511 ac_cv_lib_z_gzseek=yes
28512else
cristy8b350f62009-11-15 23:12:43 +000028513 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000028514fi
cristy8b350f62009-11-15 23:12:43 +000028515rm -f core conftest.err conftest.$ac_objext \
28516 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028517LIBS=$ac_check_lib_save_LIBS
28518fi
cristy8b350f62009-11-15 23:12:43 +000028519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000028520$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristyda16f162011-02-19 23:52:17 +000028521if test "x$ac_cv_lib_z_gzseek" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028522 passed=`expr $passed + 1`
28523else
28524 failed=`expr $failed + 1`
28525fi
28526
cristy8b350f62009-11-15 23:12:43 +000028527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028528$as_echo_n "checking for gztell in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028529if ${ac_cv_lib_z_gztell+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028530 $as_echo_n "(cached) " >&6
28531else
28532 ac_check_lib_save_LIBS=$LIBS
28533LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028534cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028535/* end confdefs.h. */
28536
28537/* Override any GCC internal prototype to avoid an error.
28538 Use char because int might match the return type of a GCC
28539 builtin and then its argument prototype would still apply. */
28540#ifdef __cplusplus
28541extern "C"
28542#endif
28543char gztell ();
28544int
28545main ()
28546{
28547return gztell ();
28548 ;
28549 return 0;
28550}
28551_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028552if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028553 ac_cv_lib_z_gztell=yes
28554else
cristy8b350f62009-11-15 23:12:43 +000028555 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000028556fi
cristy8b350f62009-11-15 23:12:43 +000028557rm -f core conftest.err conftest.$ac_objext \
28558 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028559LIBS=$ac_check_lib_save_LIBS
28560fi
cristy8b350f62009-11-15 23:12:43 +000028561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000028562$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristyda16f162011-02-19 23:52:17 +000028563if test "x$ac_cv_lib_z_gztell" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028564 passed=`expr $passed + 1`
28565else
28566 failed=`expr $failed + 1`
28567fi
28568
cristy8b350f62009-11-15 23:12:43 +000028569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028570$as_echo_n "checking if ZLIB package is complete... " >&6; }
28571 if test $passed -gt 0; then
28572 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28574$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028575 have_zlib='no (failed tests)'
28576 else
28577 ZLIB_LIBS='-lz'
28578 LIBS="$ZLIB_LIBS $LIBS"
28579
cristy8b350f62009-11-15 23:12:43 +000028580$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028581
cristyad38abe2012-12-23 23:03:21 +000028582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28583$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028584 have_zlib='yes'
28585 fi
28586 else
cristyad38abe2012-12-23 23:03:21 +000028587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28588$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028589 fi
28590fi
cristy73bd4a52010-10-05 11:24:23 +000028591 if test "$have_zlib" = 'yes'; then
28592 ZLIB_DELEGATE_TRUE=
28593 ZLIB_DELEGATE_FALSE='#'
28594else
28595 ZLIB_DELEGATE_TRUE='#'
28596 ZLIB_DELEGATE_FALSE=
28597fi
28598
cristy3ed852e2009-09-05 21:47:34 +000028599
28600
cristy5eef09f2012-10-16 12:08:28 +000028601# whether modules are built or not.
28602with_ltdl='yes'
28603have_ltdl='no'
28604LTDL_LIBS=''
28605if test "$build_modules" != 'no' ; then
cristyad38abe2012-12-23 23:03:21 +000028606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28607$as_echo "-------------------------------------------------------------" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000028608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libltdl" >&5
28609$as_echo_n "checking for libltdl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28611$as_echo "" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000028612 failed=0
28613 passed=0
28614 ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
28615if test "x$ac_cv_header_ltdl_h" = xyes; then :
28616 passed=`expr $passed + 1`
28617else
28618 failed=`expr $failed + 1`
28619fi
28620
28621
28622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
28623$as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
28624if ${ac_cv_lib_ltdl_lt_dlinit+:} false; then :
28625 $as_echo_n "(cached) " >&6
28626else
28627 ac_check_lib_save_LIBS=$LIBS
28628LIBS="-lltdl $LIBS"
28629cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28630/* end confdefs.h. */
28631
28632/* Override any GCC internal prototype to avoid an error.
28633 Use char because int might match the return type of a GCC
28634 builtin and then its argument prototype would still apply. */
28635#ifdef __cplusplus
28636extern "C"
28637#endif
28638char lt_dlinit ();
28639int
28640main ()
28641{
28642return lt_dlinit ();
28643 ;
28644 return 0;
28645}
28646_ACEOF
28647if ac_fn_c_try_link "$LINENO"; then :
28648 ac_cv_lib_ltdl_lt_dlinit=yes
28649else
28650 ac_cv_lib_ltdl_lt_dlinit=no
28651fi
28652rm -f core conftest.err conftest.$ac_objext \
28653 conftest$ac_exeext conftest.$ac_ext
28654LIBS=$ac_check_lib_save_LIBS
28655fi
28656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
28657$as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
28658if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes; then :
28659 passed=`expr $passed + 1`
28660else
28661 failed=`expr $failed + 1`
28662fi
28663
28664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libltdl package is complete" >&5
28665$as_echo_n "checking if libltdl package is complete... " >&6; }
28666 if test $passed -gt 0 ; then
28667 if test $failed -gt 0 ; then
28668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28669$as_echo "no -- some components failed test" >&6; }
28670 have_ltdl='no (failed tests)'
28671 else
28672 LTDL_LIBS='-lltdl'
28673 LIBS="$LTDL_LIBS $LIBS"
28674
28675$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
28676
28677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28678$as_echo "yes" >&6; }
28679 have_ltdl='yes'
28680 fi
28681 else
28682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28683$as_echo "no" >&6; }
28684 fi
cristyaf4cbf32012-10-16 23:47:41 +000028685 if test "$have_ltdl" != 'yes' ; then
28686 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28687$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28688as_fn_error 1 "libltdl is required for modules build
28689See \`config.log' for more details" "$LINENO" 5; }
28690 fi
cristy5eef09f2012-10-16 12:08:28 +000028691fi
28692 if test "$have_ltdl" != 'no'; then
28693 WITH_LTDL_TRUE=
28694 WITH_LTDL_FALSE='#'
28695else
28696 WITH_LTDL_TRUE='#'
28697 WITH_LTDL_FALSE=
28698fi
28699
28700
cristy3ed852e2009-09-05 21:47:34 +000028701#
28702# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
28703#
28704LIB_DL=''
28705if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000028707$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028708if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028709 $as_echo_n "(cached) " >&6
28710else
28711 ac_check_lib_save_LIBS=$LIBS
28712LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028713cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028714/* end confdefs.h. */
28715
28716/* Override any GCC internal prototype to avoid an error.
28717 Use char because int might match the return type of a GCC
28718 builtin and then its argument prototype would still apply. */
28719#ifdef __cplusplus
28720extern "C"
28721#endif
28722char dlopen ();
28723int
28724main ()
28725{
28726return dlopen ();
28727 ;
28728 return 0;
28729}
28730_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028731if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028732 ac_cv_lib_dl_dlopen=yes
28733else
cristy8b350f62009-11-15 23:12:43 +000028734 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000028735fi
cristy8b350f62009-11-15 23:12:43 +000028736rm -f core conftest.err conftest.$ac_objext \
28737 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028738LIBS=$ac_check_lib_save_LIBS
28739fi
cristy8b350f62009-11-15 23:12:43 +000028740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028741$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000028742if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028743 LIB_DL='-ldl'
28744fi
28745
28746 LIBS="$LIB_DL $LIBS"
28747fi
28748
28749
28750
28751#
cristy5a3dc992014-12-05 19:50:04 +000028752# Set Apple font directory.
28753#
28754
28755# Check whether --with-apple-font-dir was given.
28756if test "${with_apple_font_dir+set}" = set; then :
28757 withval=$with_apple_font_dir; with_apple_font_dir=$withval
28758else
28759 with_apple_font_dir='default'
28760fi
28761
28762
28763if test "$with_apple_font_dir" != 'default'; then
28764 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-apple-font-dir=$with_apple_font_dir "
28765fi
28766
28767
28768#
cristy3ed852e2009-09-05 21:47:34 +000028769# Check for Autotrace delegate library.
28770#
28771
28772# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000028773if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028774 withval=$with_autotrace; with_autotrace=$withval
28775else
28776 with_autotrace='no'
28777fi
28778
28779
28780if test "$with_autotrace" != 'yes'; then
28781 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
28782fi
28783
28784have_autotrace='no'
28785AUTOTRACE_CFLAGS=""
28786AUTOTRACE_LIBS=""
28787AUTOTRACE_PKG=""
28788if test "x$with_autotrace" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000028789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28790$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028791
28792pkg_failed=no
28793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
28794$as_echo_n "checking for AUTOTRACE... " >&6; }
28795
28796if test -n "$AUTOTRACE_CFLAGS"; then
28797 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
28798 elif test -n "$PKG_CONFIG"; then
28799 if test -n "$PKG_CONFIG" && \
28800 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28801 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28802 ac_status=$?
28803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28804 test $ac_status = 0; }; then
28805 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
28806else
28807 pkg_failed=yes
28808fi
28809 else
28810 pkg_failed=untried
28811fi
28812if test -n "$AUTOTRACE_LIBS"; then
28813 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
28814 elif test -n "$PKG_CONFIG"; then
28815 if test -n "$PKG_CONFIG" && \
28816 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28817 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28818 ac_status=$?
28819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28820 test $ac_status = 0; }; then
28821 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
28822else
28823 pkg_failed=yes
28824fi
28825 else
28826 pkg_failed=untried
28827fi
28828
28829
28830
28831if test $pkg_failed = yes; then
28832
28833if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28834 _pkg_short_errors_supported=yes
28835else
28836 _pkg_short_errors_supported=no
28837fi
28838 if test $_pkg_short_errors_supported = yes; then
28839 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
28840 else
28841 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
28842 fi
28843 # Put the nasty error message in config.log where it belongs
28844 echo "$AUTOTRACE_PKG_ERRORS" >&5
28845
28846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28847$as_echo "no" >&6; }
28848 have_autotrace=no
28849elif test $pkg_failed = untried; then
28850 have_autotrace=no
28851else
28852 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
28853 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
28854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28855$as_echo "yes" >&6; }
28856 have_autotrace=yes
28857fi
cristyad38abe2012-12-23 23:03:21 +000028858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28859$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028860fi
28861
28862if test "$have_autotrace" = 'yes'; then
28863 failed=0
28864
cristy8b350f62009-11-15 23:12:43 +000028865$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028866
cristyc6722092012-10-14 00:19:31 +000028867 if test "$build_modules" = 'no'; then
cristyfa161182012-12-19 15:45:28 +000028868 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000028869 fi
28870fi
28871
cristy73bd4a52010-10-05 11:24:23 +000028872 if test "$have_autotrace" = 'yes'; then
28873 AUTOTRACE_DELEGATE_TRUE=
28874 AUTOTRACE_DELEGATE_FALSE='#'
28875else
28876 AUTOTRACE_DELEGATE_TRUE='#'
28877 AUTOTRACE_DELEGATE_FALSE=
28878fi
28879
cristy3ed852e2009-09-05 21:47:34 +000028880
28881
28882
28883
28884#
28885# Check for Display Postscript delegate library.
28886#
28887
28888# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000028889if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028890 withval=$with_dps; with_dps=$withval
28891else
28892 with_dps='yes'
28893fi
28894
28895
28896if test "$with_dps" != 'yes'; then
28897 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
28898fi
28899
28900have_dps='no'
28901DPS_LIBS=''
28902if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28904$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000028906$as_echo_n "checking for DPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28908$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028909 failed=0
28910 passed=0
28911 PERSIST_CPPFLAGS="$CPPFLAGS"
28912 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000028913 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 +000028914if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028915 passed=`expr $passed + 1`
28916else
28917 failed=`expr $failed + 1`
28918fi
28919
28920
28921 # DPS issues:
28922 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
28923 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
28924 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
28925 # ImageMagick itself doesn't use -lXt.
28926 have_libdps='no'
28927 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000028928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028929$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028930if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028931 $as_echo_n "(cached) " >&6
28932else
28933 ac_check_lib_save_LIBS=$LIBS
28934LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028935cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028936/* end confdefs.h. */
28937
28938/* Override any GCC internal prototype to avoid an error.
28939 Use char because int might match the return type of a GCC
28940 builtin and then its argument prototype would still apply. */
28941#ifdef __cplusplus
28942extern "C"
28943#endif
28944char DPSInitialize ();
28945int
28946main ()
28947{
28948return DPSInitialize ();
28949 ;
28950 return 0;
28951}
28952_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028953if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028954 ac_cv_lib_dps_DPSInitialize=yes
28955else
cristy8b350f62009-11-15 23:12:43 +000028956 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028957fi
cristy8b350f62009-11-15 23:12:43 +000028958rm -f core conftest.err conftest.$ac_objext \
28959 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028960LIBS=$ac_check_lib_save_LIBS
28961fi
cristy8b350f62009-11-15 23:12:43 +000028962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028963$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028964if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028965 have_libdps='yes'
28966else
28967 have_libdps='no'
28968fi
28969
28970 if test "$have_libdps" != 'yes'; then
28971 # Unset cache variable so we can try again.
28972 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000028973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028974$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028975if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028976 $as_echo_n "(cached) " >&6
28977else
28978 ac_check_lib_save_LIBS=$LIBS
28979LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028980cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028981/* end confdefs.h. */
28982
28983/* Override any GCC internal prototype to avoid an error.
28984 Use char because int might match the return type of a GCC
28985 builtin and then its argument prototype would still apply. */
28986#ifdef __cplusplus
28987extern "C"
28988#endif
28989char DPSInitialize ();
28990int
28991main ()
28992{
28993return DPSInitialize ();
28994 ;
28995 return 0;
28996}
28997_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028998if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028999 ac_cv_lib_dps_DPSInitialize=yes
29000else
cristy8b350f62009-11-15 23:12:43 +000029001 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000029002fi
cristy8b350f62009-11-15 23:12:43 +000029003rm -f core conftest.err conftest.$ac_objext \
29004 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029005LIBS=$ac_check_lib_save_LIBS
29006fi
cristy8b350f62009-11-15 23:12:43 +000029007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000029008$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000029009if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029010 have_libdps='yes'
29011else
29012 have_libdps='no'
29013fi
29014
29015 if test "$have_libdps" = 'yes'; then
29016 LIBDPS_XT='-lXt'
29017 fi
29018 fi
29019 if test "$have_libdps" = 'yes'; then
29020 passed=`expr $passed + 1`
29021 else
29022 failed=`expr $failed + 1`
29023 fi
cristy8b350f62009-11-15 23:12:43 +000029024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000029025$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029026if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029027 $as_echo_n "(cached) " >&6
29028else
29029 ac_check_lib_save_LIBS=$LIBS
29030LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029031cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029032/* end confdefs.h. */
29033
29034/* Override any GCC internal prototype to avoid an error.
29035 Use char because int might match the return type of a GCC
29036 builtin and then its argument prototype would still apply. */
29037#ifdef __cplusplus
29038extern "C"
29039#endif
29040char XDPSPixelsPerPoint ();
29041int
29042main ()
29043{
29044return XDPSPixelsPerPoint ();
29045 ;
29046 return 0;
29047}
29048_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029049if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029050 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
29051else
cristy8b350f62009-11-15 23:12:43 +000029052 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000029053fi
cristy8b350f62009-11-15 23:12:43 +000029054rm -f core conftest.err conftest.$ac_objext \
29055 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029056LIBS=$ac_check_lib_save_LIBS
29057fi
cristy8b350f62009-11-15 23:12:43 +000029058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000029059$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000029060if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029061 passed=`expr $passed + 1`
29062else
29063 failed=`expr $failed + 1`
29064fi
29065
cristy8b350f62009-11-15 23:12:43 +000029066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029067$as_echo_n "checking if DPS package is complete... " >&6; }
29068 if test $passed -gt 0; then
29069 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29071$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029072 have_dps='no (failed tests)'
29073 CPPFLAGS="$PERSIST_CPPFLAGS"
29074 else
29075 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
29076 LIBS="$DPS_LIBS $LIBS"
29077
cristy8b350f62009-11-15 23:12:43 +000029078$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029079
cristyad38abe2012-12-23 23:03:21 +000029080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29081$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029082 have_dps='yes'
29083 fi
29084 else
cristyad38abe2012-12-23 23:03:21 +000029085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29086$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029087 CPPFLAGS=$PERSIST_CPPFLAGS
29088 fi
29089fi
cristy73bd4a52010-10-05 11:24:23 +000029090 if test "$have_dps" = 'yes'; then
29091 DPS_DELEGATE_TRUE=
29092 DPS_DELEGATE_FALSE='#'
29093else
29094 DPS_DELEGATE_TRUE='#'
29095 DPS_DELEGATE_FALSE=
29096fi
29097
cristy3ed852e2009-09-05 21:47:34 +000029098
29099
29100
29101#
cristy430a7312010-01-21 20:44:04 +000029102# Set DejaVu font directory.
29103#
29104
29105# Check whether --with-dejavu-font-dir was given.
29106if test "${with_dejavu_font_dir+set}" = set; then :
29107 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
29108else
29109 with_dejavu_font_dir='default'
29110fi
29111
29112
29113if test "$with_dejavu_font_dir" != 'default'; then
29114 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
29115fi
29116
29117
29118#
cristy3ed852e2009-09-05 21:47:34 +000029119# Check for FFTW delegate library.
29120#
29121
29122# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000029123if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029124 withval=$with_fftw; with_fftw=$withval
29125else
29126 with_fftw='yes'
29127fi
29128
29129
29130if test "$with_fftw" != 'yes'; then
29131 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
29132fi
29133
cristy81beccd2011-10-03 18:17:24 +000029134have_fftw='no'
29135FFTW_LIBS=''
29136if test "$with_fftw" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29138$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000029139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
29140$as_echo_n "checking for FFTW... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29142$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000029143 failed=0
29144 passed=0
29145 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
29146if test "x$ac_cv_header_fftw3_h" = xyes; then :
29147 passed=`expr $passed + 1`
29148else
29149 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029150fi
29151
cristy81beccd2011-10-03 18:17:24 +000029152
29153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
29154$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
29155if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
29156 $as_echo_n "(cached) " >&6
29157else
29158 ac_check_lib_save_LIBS=$LIBS
29159LIBS="-lfftw3 $LIBS"
29160cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29161/* end confdefs.h. */
29162
29163/* Override any GCC internal prototype to avoid an error.
29164 Use char because int might match the return type of a GCC
29165 builtin and then its argument prototype would still apply. */
29166#ifdef __cplusplus
29167extern "C"
29168#endif
29169char fftw_execute ();
29170int
29171main ()
29172{
29173return fftw_execute ();
29174 ;
29175 return 0;
29176}
29177_ACEOF
29178if ac_fn_c_try_link "$LINENO"; then :
29179 ac_cv_lib_fftw3_fftw_execute=yes
29180else
29181 ac_cv_lib_fftw3_fftw_execute=no
29182fi
29183rm -f core conftest.err conftest.$ac_objext \
29184 conftest$ac_exeext conftest.$ac_ext
29185LIBS=$ac_check_lib_save_LIBS
29186fi
29187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
29188$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
29189if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
29190 passed=`expr $passed + 1`
29191else
29192 failed=`expr $failed + 1`
29193fi
29194
29195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
29196$as_echo_n "checking if FFTW package is complete... " >&6; }
29197 if test $passed -gt 0; then
29198 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29200$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000029201 have_fftw='no (failed tests)'
29202 else
29203 FFTW_LIBS='-lfftw3'
29204 LIBS="$FFTW_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000029205
cristy8b350f62009-11-15 23:12:43 +000029206$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029207
cristyad38abe2012-12-23 23:03:21 +000029208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29209$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000029210 have_fftw='yes'
29211 fi
29212 else
cristyad38abe2012-12-23 23:03:21 +000029213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29214$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029215 fi
29216fi
cristy73bd4a52010-10-05 11:24:23 +000029217 if test "$have_fftw" = 'yes'; then
29218 FFTW_DELEGATE_TRUE=
29219 FFTW_DELEGATE_FALSE='#'
29220else
29221 FFTW_DELEGATE_TRUE='#'
29222 FFTW_DELEGATE_FALSE=
29223fi
29224
cristy3ed852e2009-09-05 21:47:34 +000029225
29226
29227
29228#
29229# Check for FlashPIX delegate library.
29230#
29231
29232# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000029233if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029234 withval=$with_fpx; with_fpx=$withval
29235else
29236 with_fpx='yes'
29237fi
29238
29239
29240if test "$with_fpx" != 'yes'; then
29241 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
29242fi
29243
29244have_fpx='no'
29245FPX_LIBS=''
29246if test "$with_fpx" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29248$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000029250$as_echo_n "checking for FlashPIX... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29252$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029253 failed=0
29254 passed=0
29255 ac_ext=cpp
29256ac_cpp='$CXXCPP $CPPFLAGS'
29257ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29258ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29259ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29260
29261
cristy8b350f62009-11-15 23:12:43 +000029262ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029263if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029264 passed=`expr $passed + 1`
29265else
29266 failed=`expr $failed + 1`
29267fi
29268
29269
cristy8b350f62009-11-15 23:12:43 +000029270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000029271$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029272if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029273 $as_echo_n "(cached) " >&6
29274else
29275 ac_check_lib_save_LIBS=$LIBS
29276LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029277cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029278/* end confdefs.h. */
29279
29280/* Override any GCC internal prototype to avoid an error.
29281 Use char because int might match the return type of a GCC
29282 builtin and then its argument prototype would still apply. */
29283#ifdef __cplusplus
29284extern "C"
29285#endif
29286char FPX_OpenImageByFilename ();
29287int
29288main ()
29289{
29290return FPX_OpenImageByFilename ();
29291 ;
29292 return 0;
29293}
29294_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029295if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029296 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
29297else
cristy8b350f62009-11-15 23:12:43 +000029298 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000029299fi
cristy8b350f62009-11-15 23:12:43 +000029300rm -f core conftest.err conftest.$ac_objext \
29301 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029302LIBS=$ac_check_lib_save_LIBS
29303fi
cristy8b350f62009-11-15 23:12:43 +000029304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000029305$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000029306if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029307 passed=`expr $passed + 1`
29308else
29309 failed=`expr $failed + 1`
29310fi
29311
29312 ac_ext=c
29313ac_cpp='$CPP $CPPFLAGS'
29314ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29315ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29316ac_compiler_gnu=$ac_cv_c_compiler_gnu
29317
cristy8b350f62009-11-15 23:12:43 +000029318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029319$as_echo_n "checking if FlashPIX package is complete... " >&6; }
29320 if test $passed -gt 0; then
29321 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29323$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029324 have_fpx='no (failed tests)'
29325 else
29326 FPX_LIBS='-lfpx'
29327
cristy8b350f62009-11-15 23:12:43 +000029328$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029329
cristyad38abe2012-12-23 23:03:21 +000029330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29331$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029332 have_fpx='yes'
29333 PERLMAINCC="$CXX"
29334 fi
29335 else
cristyad38abe2012-12-23 23:03:21 +000029336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29337$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029338 fi
29339fi
cristy73bd4a52010-10-05 11:24:23 +000029340 if test "$have_fpx" = 'yes'; then
29341 FPX_DELEGATE_TRUE=
29342 FPX_DELEGATE_FALSE='#'
29343else
29344 FPX_DELEGATE_TRUE='#'
29345 FPX_DELEGATE_FALSE=
29346fi
29347
cristy3ed852e2009-09-05 21:47:34 +000029348
cristy853d9902014-08-21 18:50:43 +000029349
29350
29351#
29352# Check for DJVU delegate library.
29353#
29354
29355# Check whether --with-djvu was given.
29356if test "${with_djvu+set}" = set; then :
29357 withval=$with_djvu; with_djvu=$withval
29358else
29359 with_djvu='yes'
29360fi
29361
29362
29363if test "$with_djvu" != 'yes'; then
29364 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
29365fi
29366
29367have_djvu='no'
29368DJVU_LIBS=''
29369if test "$with_djvu" != 'no'; then
29370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29371$as_echo "-------------------------------------------------------------" >&6; }
29372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
29373$as_echo_n "checking for DJVU... " >&6; }
29374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29375$as_echo "" >&6; }
29376 failed=0
29377 passed=0
29378 ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default"
29379if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
29380 passed=`expr $passed + 1`
29381else
29382 failed=`expr $failed + 1`
29383fi
29384
29385
29386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
29387$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
29388if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
29389 $as_echo_n "(cached) " >&6
29390else
29391 ac_check_lib_save_LIBS=$LIBS
29392LIBS="-ldjvulibre $LIBS"
29393cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29394/* end confdefs.h. */
29395
29396/* Override any GCC internal prototype to avoid an error.
29397 Use char because int might match the return type of a GCC
29398 builtin and then its argument prototype would still apply. */
29399#ifdef __cplusplus
29400extern "C"
29401#endif
29402char ddjvu_context_create ();
29403int
29404main ()
29405{
29406return ddjvu_context_create ();
29407 ;
29408 return 0;
29409}
29410_ACEOF
29411if ac_fn_c_try_link "$LINENO"; then :
29412 ac_cv_lib_djvulibre_ddjvu_context_create=yes
29413else
29414 ac_cv_lib_djvulibre_ddjvu_context_create=no
29415fi
29416rm -f core conftest.err conftest.$ac_objext \
29417 conftest$ac_exeext conftest.$ac_ext
29418LIBS=$ac_check_lib_save_LIBS
29419fi
29420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
29421$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
29422if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
29423 passed=`expr $passed + 1`
29424else
29425 failed=`expr $failed + 1`
29426fi
29427
29428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
29429$as_echo_n "checking if DJVU package is complete... " >&6; }
29430 if test $passed -gt 0; then
29431 if test $failed -gt 0; then
29432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29433$as_echo "no -- some components failed test" >&6; }
29434 have_djvu='no (failed tests)'
29435 else
29436 DJVU_LIBS='-ldjvulibre'
29437 LIBS="$DJVU_LIBS $LIBS"
29438
29439$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
29440
29441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29442$as_echo "yes" >&6; }
29443 have_djvu='yes'
29444 fi
29445 else
29446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29447$as_echo "no" >&6; }
29448 fi
29449fi
29450 if test "$have_djvu" = 'yes'; then
29451 DJVU_DELEGATE_TRUE=
29452 DJVU_DELEGATE_FALSE='#'
29453else
29454 DJVU_DELEGATE_TRUE='#'
29455 DJVU_DELEGATE_FALSE=
29456fi
29457
29458
cristy3ed852e2009-09-05 21:47:34 +000029459
29460
29461#
29462# Check for fontconfig delegate library.
29463#
29464
29465# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000029466if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029467 withval=$with_fontconfig; with_fontconfig=$withval
29468else
cristyfc3d0222012-02-07 15:05:57 +000029469 with_fontconfig='yes'
cristy3ed852e2009-09-05 21:47:34 +000029470fi
29471
29472
29473if test "$with_fontconfig" != 'yes'; then
29474 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
29475fi
29476
29477have_fontconfig='no'
29478FONTCONFIG_CFLAGS=""
29479FONTCONFIG_LIBS=""
29480FONTCONFIG_PKG=""
29481if test "x$with_fontconfig" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29483$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029484
29485pkg_failed=no
29486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
29487$as_echo_n "checking for FONTCONFIG... " >&6; }
29488
29489if test -n "$FONTCONFIG_CFLAGS"; then
29490 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
29491 elif test -n "$PKG_CONFIG"; then
29492 if test -n "$PKG_CONFIG" && \
29493 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29494 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29495 ac_status=$?
29496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29497 test $ac_status = 0; }; then
29498 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
29499else
29500 pkg_failed=yes
29501fi
29502 else
29503 pkg_failed=untried
29504fi
29505if test -n "$FONTCONFIG_LIBS"; then
29506 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
29507 elif test -n "$PKG_CONFIG"; then
29508 if test -n "$PKG_CONFIG" && \
29509 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29510 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29511 ac_status=$?
29512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29513 test $ac_status = 0; }; then
29514 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
29515else
29516 pkg_failed=yes
29517fi
29518 else
29519 pkg_failed=untried
29520fi
29521
29522
29523
29524if test $pkg_failed = yes; then
29525
29526if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29527 _pkg_short_errors_supported=yes
29528else
29529 _pkg_short_errors_supported=no
29530fi
29531 if test $_pkg_short_errors_supported = yes; then
29532 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
29533 else
29534 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
29535 fi
29536 # Put the nasty error message in config.log where it belongs
29537 echo "$FONTCONFIG_PKG_ERRORS" >&5
29538
29539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29540$as_echo "no" >&6; }
29541 have_fontconfig=no
29542elif test $pkg_failed = untried; then
29543 have_fontconfig=no
29544else
29545 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
29546 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
29547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29548$as_echo "yes" >&6; }
29549 have_fontconfig=yes
29550fi
cristyad38abe2012-12-23 23:03:21 +000029551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29552$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029553fi
29554
29555if test "$have_fontconfig" = 'yes'; then
29556
cristy8b350f62009-11-15 23:12:43 +000029557$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029558
cristyc6722092012-10-14 00:19:31 +000029559 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000029560 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000029561 fi
cristy3ed852e2009-09-05 21:47:34 +000029562fi
29563
cristy73bd4a52010-10-05 11:24:23 +000029564 if test "$have_fontconfig" = 'yes'; then
29565 FONTCONFIG_DELEGATE_TRUE=
29566 FONTCONFIG_DELEGATE_FALSE='#'
29567else
29568 FONTCONFIG_DELEGATE_TRUE='#'
29569 FONTCONFIG_DELEGATE_FALSE=
29570fi
29571
cristy3ed852e2009-09-05 21:47:34 +000029572
29573
29574
29575
29576#
cristy03f187e2013-01-24 00:22:19 +000029577# Check for the Freetype delegate library.
cristy3ed852e2009-09-05 21:47:34 +000029578#
29579
29580# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000029581if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029582 withval=$with_freetype; with_freetype=$withval
29583else
29584 with_freetype='yes'
29585fi
29586
29587
cristy3ed852e2009-09-05 21:47:34 +000029588if test "$with_freetype" != 'yes'; then
29589 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
29590fi
29591
cristy81beccd2011-10-03 18:17:24 +000029592have_freetype='no'
cristy03f187e2013-01-24 00:22:19 +000029593FREETYPE_CFLAGS=""
29594FREETYPE_LIBS=""
29595FREETYPE_PKG=""
29596if test "x$with_freetype" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29598$as_echo "-------------------------------------------------------------" >&6; }
cristy03f187e2013-01-24 00:22:19 +000029599
29600pkg_failed=no
29601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
29602$as_echo_n "checking for FREETYPE... " >&6; }
29603
29604if test -n "$FREETYPE_CFLAGS"; then
29605 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
29606 elif test -n "$PKG_CONFIG"; then
29607 if test -n "$PKG_CONFIG" && \
29608 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
29609 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
29610 ac_status=$?
29611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29612 test $ac_status = 0; }; then
29613 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
29614else
29615 pkg_failed=yes
29616fi
29617 else
29618 pkg_failed=untried
29619fi
29620if test -n "$FREETYPE_LIBS"; then
29621 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
29622 elif test -n "$PKG_CONFIG"; then
29623 if test -n "$PKG_CONFIG" && \
29624 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
29625 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
29626 ac_status=$?
29627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29628 test $ac_status = 0; }; then
29629 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
29630else
29631 pkg_failed=yes
29632fi
29633 else
29634 pkg_failed=untried
29635fi
29636
29637
29638
29639if test $pkg_failed = yes; then
29640
29641if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29642 _pkg_short_errors_supported=yes
29643else
29644 _pkg_short_errors_supported=no
29645fi
29646 if test $_pkg_short_errors_supported = yes; then
29647 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1`
29648 else
29649 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1`
29650 fi
29651 # Put the nasty error message in config.log where it belongs
29652 echo "$FREETYPE_PKG_ERRORS" >&5
29653
29654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29655$as_echo "no" >&6; }
29656 have_freetype=no
29657elif test $pkg_failed = untried; then
29658 have_freetype=no
29659else
29660 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
29661 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
29662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29663$as_echo "yes" >&6; }
29664 have_freetype=yes
29665fi
cristyad38abe2012-12-23 23:03:21 +000029666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29667$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029668fi
29669
cristy03f187e2013-01-24 00:22:19 +000029670if test "$have_freetype" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029671
cristy8b350f62009-11-15 23:12:43 +000029672$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029673
cristy03f187e2013-01-24 00:22:19 +000029674 CFLAGS="$FREETYPE_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000029675fi
cristy03f187e2013-01-24 00:22:19 +000029676
cristy73bd4a52010-10-05 11:24:23 +000029677 if test "$have_freetype" = 'yes'; then
29678 FREETYPE_DELEGATE_TRUE=
29679 FREETYPE_DELEGATE_FALSE='#'
29680else
29681 FREETYPE_DELEGATE_TRUE='#'
29682 FREETYPE_DELEGATE_FALSE=
29683fi
29684
cristy3ed852e2009-09-05 21:47:34 +000029685
29686
29687
cristy03f187e2013-01-24 00:22:19 +000029688
cristy3ed852e2009-09-05 21:47:34 +000029689#
29690# Check for Ghostscript library or framework.
29691#
29692# Test for iapi.h & test for gsapi_new_instance in -lgs
29693# or -framework Ghostscript
29694
29695
29696# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000029697if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029698 withval=$with_gslib; with_gslib=$withval
29699else
29700 with_gslib='no'
29701fi
29702
29703
cristyb7931f12009-09-25 10:22:21 +000029704gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000029705if test "$with_gslib" != 'yes'; then
29706 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
29707fi
29708
29709have_gslib='no'
29710GS_LIBS=''
29711if test "$with_gslib" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29713$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000029715$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29717$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000029718 framework=0
cristy3ed852e2009-09-05 21:47:34 +000029719 failed=0
29720 passed=0
cristy8b350f62009-11-15 23:12:43 +000029721 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 +000029722if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029723 passed=`expr $passed + 1`
29724else
29725 failed=`expr $failed + 1`
29726fi
29727
29728
cristy8b350f62009-11-15 23:12:43 +000029729 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 +000029730if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029731 passed=`expr $passed + 1`
29732else
29733 failed=`expr $failed + 1`
29734fi
29735
29736
cristy73bd4a52010-10-05 11:24:23 +000029737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
29738$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029739if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000029740 $as_echo_n "(cached) " >&6
29741else
29742 ac_check_framework_save_LIBS=$LIBS
29743LIBS="-framework Ghostscript $LIBS"
29744cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29745/* end confdefs.h. */
29746
29747/* Override any GCC internal prototype to avoid an error.
29748 Use char because int might match the return type of a GCC
29749 builtin and then its argument prototype would still apply. */
29750#ifdef __cplusplus
29751extern "C"
29752#endif
29753char gsapi_new_instance ();
29754int
29755main ()
29756{
29757return gsapi_new_instance ();
29758 ;
29759 return 0;
29760}
29761_ACEOF
29762if ac_fn_c_try_link "$LINENO"; then :
29763 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
29764else
29765 ac_cv_framework_Ghostscript_gsapi_new_instance=no
29766fi
29767rm -f core conftest.err conftest.$ac_objext \
29768 conftest$ac_exeext conftest.$ac_ext
29769LIBS=$ac_check_framework_save_LIBS
29770fi
29771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
29772$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
29773if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
29774 framework=`expr $framework + 1`
29775else
29776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029777$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029778if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029779 $as_echo_n "(cached) " >&6
29780else
29781 ac_check_lib_save_LIBS=$LIBS
29782LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029783cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029784/* end confdefs.h. */
29785
29786/* Override any GCC internal prototype to avoid an error.
29787 Use char because int might match the return type of a GCC
29788 builtin and then its argument prototype would still apply. */
29789#ifdef __cplusplus
29790extern "C"
29791#endif
29792char gsapi_new_instance ();
29793int
29794main ()
29795{
29796return gsapi_new_instance ();
29797 ;
29798 return 0;
29799}
29800_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029801if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029802 ac_cv_lib_gs_gsapi_new_instance=yes
29803else
cristy8b350f62009-11-15 23:12:43 +000029804 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000029805fi
cristy8b350f62009-11-15 23:12:43 +000029806rm -f core conftest.err conftest.$ac_objext \
29807 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029808LIBS=$ac_check_lib_save_LIBS
29809fi
cristy8b350f62009-11-15 23:12:43 +000029810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000029811$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000029812if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029813 passed=`expr $passed + 1`
29814else
29815 failed=`expr $failed + 1`
29816fi
cristy73bd4a52010-10-05 11:24:23 +000029817
29818fi
cristy8b350f62009-11-15 23:12:43 +000029819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029820$as_echo_n "checking if Ghostscript package is complete... " >&6; }
29821 if test $passed -gt 0; then
29822 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29824$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029825 have_gslib='no (failed tests)'
29826 else
29827 if test $framework -gt 0; then
29828 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000029829 gslib_framework='yes'
cristyad38abe2012-12-23 23:03:21 +000029830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
29831$as_echo "yes, using framework." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029832 else
cristyad38abe2012-12-23 23:03:21 +000029833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
29834$as_echo "yes, using library." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029835 GS_LIBS='-lgs'
29836 fi
29837 LIBS="$GS_LIBS $LIBS"
29838
cristy8b350f62009-11-15 23:12:43 +000029839$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029840
29841 have_gslib='yes'
29842 fi
29843 else
cristyad38abe2012-12-23 23:03:21 +000029844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29845$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029846 fi
29847fi
cristy73bd4a52010-10-05 11:24:23 +000029848 if test "$have_gslib" = 'yes'; then
29849 GS_DELEGATE_TRUE=
29850 GS_DELEGATE_FALSE='#'
29851else
29852 GS_DELEGATE_TRUE='#'
29853 GS_DELEGATE_FALSE=
29854fi
29855
cristy3ed852e2009-09-05 21:47:34 +000029856
29857
29858# Set default font search path
29859
29860# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000029861if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029862 withval=$with_fontpath; with_fontpath=$withval
29863else
29864 with_fontpath=''
29865fi
29866
29867
29868if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
29869 with_fontpath=''
29870else
29871
29872cat >>confdefs.h <<_ACEOF
29873#define MAGICK_FONT_PATH "$with_fontpath"
29874_ACEOF
29875
29876fi
29877if test "$with_fontpath=" != ''; then
29878 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
29879fi
29880
29881# Set Ghostscript font directory
29882
29883# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029884if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029885 withval=$with_gs_font_dir; with_gs_font_dir=$withval
29886else
29887 with_gs_font_dir='default'
29888fi
29889
29890
29891if test "$with_gs_font_dir" != 'default'; then
29892 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
29893fi
29894
29895
29896#
29897# Check for GVC delegate library.
29898#
29899
29900# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000029901if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029902 withval=$with_gvc; with_gvc=$withval
29903else
cristy1b70dc82012-07-01 23:15:05 +000029904 with_gvc='no'
cristy3ed852e2009-09-05 21:47:34 +000029905fi
29906
29907
29908if test "$with_gvc" != 'yes'; then
29909 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
29910fi
29911
29912GVC_PKG=""
29913if test "x$with_gvc" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29915$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029916
29917pkg_failed=no
29918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
29919$as_echo_n "checking for GVC... " >&6; }
29920
29921if test -n "$GVC_CFLAGS"; then
29922 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
29923 elif test -n "$PKG_CONFIG"; then
29924 if test -n "$PKG_CONFIG" && \
29925 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29926 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29927 ac_status=$?
29928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29929 test $ac_status = 0; }; then
29930 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
29931else
29932 pkg_failed=yes
29933fi
29934 else
29935 pkg_failed=untried
29936fi
29937if test -n "$GVC_LIBS"; then
29938 pkg_cv_GVC_LIBS="$GVC_LIBS"
29939 elif test -n "$PKG_CONFIG"; then
29940 if test -n "$PKG_CONFIG" && \
29941 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29942 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29943 ac_status=$?
29944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29945 test $ac_status = 0; }; then
29946 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
29947else
29948 pkg_failed=yes
29949fi
29950 else
29951 pkg_failed=untried
29952fi
29953
29954
29955
29956if test $pkg_failed = yes; then
29957
29958if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29959 _pkg_short_errors_supported=yes
29960else
29961 _pkg_short_errors_supported=no
29962fi
29963 if test $_pkg_short_errors_supported = yes; then
29964 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
29965 else
29966 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
29967 fi
29968 # Put the nasty error message in config.log where it belongs
29969 echo "$GVC_PKG_ERRORS" >&5
29970
29971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29972$as_echo "no" >&6; }
29973 have_gvc=no
29974elif test $pkg_failed = untried; then
29975 have_gvc=no
29976else
29977 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
29978 GVC_LIBS=$pkg_cv_GVC_LIBS
29979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29980$as_echo "yes" >&6; }
29981 have_gvc=yes
29982fi
cristyad38abe2012-12-23 23:03:21 +000029983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29984$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029985fi
29986
29987if test "$have_gvc" = 'yes'; then
29988
cristy8b350f62009-11-15 23:12:43 +000029989$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029990
cristyc6722092012-10-14 00:19:31 +000029991 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000029992 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
29993 fi
29994fi
29995
cristy73bd4a52010-10-05 11:24:23 +000029996 if test "$have_gvc" = 'yes'; then
29997 GVC_DELEGATE_TRUE=
29998 GVC_DELEGATE_FALSE='#'
29999else
30000 GVC_DELEGATE_TRUE='#'
30001 GVC_DELEGATE_FALSE=
30002fi
30003
cristy3ed852e2009-09-05 21:47:34 +000030004
30005
30006
30007
30008#
30009# Check for JBIG delegate library.
30010#
30011
30012
30013# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000030014if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030015 withval=$with_jbig; with_jbig=$withval
30016else
30017 with_jbig='yes'
30018fi
30019
30020
30021have_jbig='no'
30022JBIG_LIBS=''
30023if test "$with_jbig" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000030024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30025$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000030027$as_echo_n "checking for JBIG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30029$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030030 failed=0
30031 passed=0
cristy8b350f62009-11-15 23:12:43 +000030032 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030033if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030034 passed=`expr $passed + 1`
30035else
30036 failed=`expr $failed + 1`
30037fi
30038
30039
cristy8b350f62009-11-15 23:12:43 +000030040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000030041$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030042if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030043 $as_echo_n "(cached) " >&6
30044else
30045 ac_check_lib_save_LIBS=$LIBS
30046LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030047cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030048/* end confdefs.h. */
30049
30050/* Override any GCC internal prototype to avoid an error.
30051 Use char because int might match the return type of a GCC
30052 builtin and then its argument prototype would still apply. */
30053#ifdef __cplusplus
30054extern "C"
30055#endif
30056char jbg_dec_init ();
30057int
30058main ()
30059{
30060return jbg_dec_init ();
30061 ;
30062 return 0;
30063}
30064_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030065if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030066 ac_cv_lib_jbig_jbg_dec_init=yes
30067else
cristy8b350f62009-11-15 23:12:43 +000030068 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000030069fi
cristy8b350f62009-11-15 23:12:43 +000030070rm -f core conftest.err conftest.$ac_objext \
30071 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030072LIBS=$ac_check_lib_save_LIBS
30073fi
cristy8b350f62009-11-15 23:12:43 +000030074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000030075$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000030076if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030077 passed=`expr $passed + 1`
30078else
30079 failed=`expr $failed + 1`
30080fi
30081
cristy8b350f62009-11-15 23:12:43 +000030082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030083$as_echo_n "checking if JBIG package is complete... " >&6; }
30084 if test $passed -gt 0; then
30085 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000030086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30087$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030088 have_jbig='no (failed tests)'
30089 else
30090 JBIG_LIBS='-ljbig'
30091 LIBS="$JBIG_LIBS $LIBS"
30092
cristy8b350f62009-11-15 23:12:43 +000030093$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030094
cristyad38abe2012-12-23 23:03:21 +000030095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30096$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030097 have_jbig='yes'
30098 fi
30099 else
cristyad38abe2012-12-23 23:03:21 +000030100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30101$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030102 fi
30103fi
cristy73bd4a52010-10-05 11:24:23 +000030104 if test "$have_jbig" = 'yes'; then
30105 JBIG_DELEGATE_TRUE=
30106 JBIG_DELEGATE_FALSE='#'
30107else
30108 JBIG_DELEGATE_TRUE='#'
30109 JBIG_DELEGATE_FALSE=
30110fi
30111
cristy3ed852e2009-09-05 21:47:34 +000030112
30113
30114
30115#
30116# Check for JPEG delegate library.
30117#
30118
30119# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000030120if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030121 withval=$with_jpeg; with_jpeg=$withval
30122else
30123 with_jpeg='yes'
30124fi
30125
30126
30127if test "$with_jpeg" != 'yes'; then
30128 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
30129fi
30130
30131have_jpeg='no'
30132JPEG_LIBS=''
30133if test "$with_jpeg" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000030134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30135$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000030137$as_echo_n "checking for JPEG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30139$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030140 failed=0
30141 passed=0
cristy8b350f62009-11-15 23:12:43 +000030142 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030143if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030144 passed=`expr $passed + 1`
30145else
30146 failed=`expr $failed + 1`
30147fi
30148
30149
cristy8b350f62009-11-15 23:12:43 +000030150 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030151if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030152 passed=`expr $passed + 1`
30153else
30154 failed=`expr $failed + 1`
30155fi
30156
30157
cristy8b350f62009-11-15 23:12:43 +000030158 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030159if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030160 passed=`expr $passed + 1`
30161else
30162 failed=`expr $failed + 1`
30163fi
30164
30165
cristy8b350f62009-11-15 23:12:43 +000030166 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030167if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030168 passed=`expr $passed + 1`
30169else
30170 failed=`expr $failed + 1`
30171fi
30172
30173
cristy8b350f62009-11-15 23:12:43 +000030174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000030175$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030176if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030177 $as_echo_n "(cached) " >&6
30178else
30179 ac_check_lib_save_LIBS=$LIBS
30180LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030181cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030182/* end confdefs.h. */
30183
30184/* Override any GCC internal prototype to avoid an error.
30185 Use char because int might match the return type of a GCC
30186 builtin and then its argument prototype would still apply. */
30187#ifdef __cplusplus
30188extern "C"
30189#endif
30190char jpeg_read_header ();
30191int
30192main ()
30193{
30194return jpeg_read_header ();
30195 ;
30196 return 0;
30197}
30198_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030199if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030200 ac_cv_lib_jpeg_jpeg_read_header=yes
30201else
cristy8b350f62009-11-15 23:12:43 +000030202 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000030203fi
cristy8b350f62009-11-15 23:12:43 +000030204rm -f core conftest.err conftest.$ac_objext \
30205 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030206LIBS=$ac_check_lib_save_LIBS
30207fi
cristy8b350f62009-11-15 23:12:43 +000030208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000030209$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000030210if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030211 passed=`expr $passed + 1`
30212else
30213 failed=`expr $failed + 1`
30214fi
30215
30216
30217# Test for compatible JPEG library
30218if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000030219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000030220$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030221if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030222 $as_echo_n "(cached) " >&6
30223else
cristy8b350f62009-11-15 23:12:43 +000030224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030225/* end confdefs.h. */
30226#include <stdio.h>
30227#include <stdlib.h>
30228#include <jpeglib.h>
30229
30230int
30231main ()
30232{
30233
30234#if JPEG_LIB_VERSION < 62
30235#error IJG JPEG library must be version 6b or newer!
30236#endif
30237return 0;
30238
30239 ;
30240 return 0;
30241}
30242_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030243if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030244 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
30245else
cristy8b350f62009-11-15 23:12:43 +000030246 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030247fi
cristy3ed852e2009-09-05 21:47:34 +000030248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30249fi
cristy8b350f62009-11-15 23:12:43 +000030250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000030251$as_echo "$ac_cv_jpeg_version_ok" >&6; }
30252fi
cristy8b350f62009-11-15 23:12:43 +000030253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030254$as_echo_n "checking if JPEG package is complete... " >&6; }
30255 if test $passed -gt 0; then
30256 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000030257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30258$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030259 have_jpeg='no (failed tests)'
30260 else
30261 JPEG_LIBS='-ljpeg'
30262 LIBS="$JPEG_LIBS $LIBS"
30263
cristy8b350f62009-11-15 23:12:43 +000030264$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030265
cristyad38abe2012-12-23 23:03:21 +000030266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30267$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030268 have_jpeg='yes'
30269 fi
30270 else
cristyad38abe2012-12-23 23:03:21 +000030271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30272$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030273 fi
30274fi
cristy73bd4a52010-10-05 11:24:23 +000030275 if test "$have_jpeg" = 'yes'; then
30276 JPEG_DELEGATE_TRUE=
30277 JPEG_DELEGATE_FALSE='#'
30278else
30279 JPEG_DELEGATE_TRUE='#'
30280 JPEG_DELEGATE_FALSE=
30281fi
30282
cristy3ed852e2009-09-05 21:47:34 +000030283
30284
30285
30286#
cristy3ed852e2009-09-05 21:47:34 +000030287# Check for LCMS delegate library.
30288#
cristy71203402010-06-18 13:12:03 +000030289# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000030290
30291# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000030292if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030293 withval=$with_lcms; with_lcms=$withval
30294else
30295 with_lcms='yes'
30296fi
30297
cristy71203402010-06-18 13:12:03 +000030298if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000030299 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
30300fi
30301
cristy71203402010-06-18 13:12:03 +000030302# Disable LCMS2.
30303
30304# Check whether --with-lcms2 was given.
30305if test "${with_lcms2+set}" = set; then :
30306 withval=$with_lcms2; with_lcms2=$withval
30307else
30308 with_lcms2='yes'
30309fi
30310
30311if test "$with_lcms2" != 'yes' ; then
30312 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
30313fi
30314
30315have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000030316LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000030317if test "$with_lcms2" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000030318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30319$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000030320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
30321$as_echo_n "checking for LCMS v2... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30323$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030324 failed=0
30325 passed=0
30326 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000030327
30328 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000030329 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030330if test "x$ac_cv_header_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030331 have_lcms_header='yes'
30332fi
30333
30334
30335 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000030336
30337$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
30338
cristy71203402010-06-18 13:12:03 +000030339 passed=`expr $passed + 1`
30340 fi
30341
30342 # Check for <lcms2/lcms2.h)
30343 if test "$have_lcms_header" != 'yes'; then
30344 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 +000030345if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030346 have_lcms_header='yes'
30347fi
30348
30349
cristy71203402010-06-18 13:12:03 +000030350 if test "$have_lcms_header" = 'yes'; then
30351 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000030352
cristy71203402010-06-18 13:12:03 +000030353$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000030354
cristy71203402010-06-18 13:12:03 +000030355 fi
cristyd09bcf92010-03-25 03:04:45 +000030356 fi
cristy71203402010-06-18 13:12:03 +000030357
30358 # Failed to find lcms header?
30359 if test "$have_lcms_header" != 'yes'; then
30360 failed=`expr $failed + 1`
30361 fi
30362
30363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
30364$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030365if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
cristyd09bcf92010-03-25 03:04:45 +000030366 $as_echo_n "(cached) " >&6
30367else
30368 ac_check_lib_save_LIBS=$LIBS
30369LIBS="-llcms2 $LIBS"
30370cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30371/* end confdefs.h. */
30372
30373/* Override any GCC internal prototype to avoid an error.
30374 Use char because int might match the return type of a GCC
30375 builtin and then its argument prototype would still apply. */
30376#ifdef __cplusplus
30377extern "C"
30378#endif
cristy71203402010-06-18 13:12:03 +000030379char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000030380int
30381main ()
30382{
cristy71203402010-06-18 13:12:03 +000030383return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000030384 ;
30385 return 0;
30386}
30387_ACEOF
30388if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000030389 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000030390else
cristy71203402010-06-18 13:12:03 +000030391 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000030392fi
30393rm -f core conftest.err conftest.$ac_objext \
30394 conftest$ac_exeext conftest.$ac_ext
30395LIBS=$ac_check_lib_save_LIBS
30396fi
cristy71203402010-06-18 13:12:03 +000030397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
30398$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000030399if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030400 passed=`expr $passed + 1`
30401else
30402 failed=`expr $failed + 1`
30403fi
30404
cristy71203402010-06-18 13:12:03 +000030405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
30406$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000030407 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030408 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000030409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30410$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000030411 have_lcms2='no (failed tests)'
30412 else
30413 LCMS_LIBS='-llcms2'
30414 LIBS="$LCMS_LIBS $LIBS"
cristyad38abe2012-12-23 23:03:21 +000030415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30416$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000030417 have_lcms2='yes'
30418 fi
cristyd09bcf92010-03-25 03:04:45 +000030419 else
cristyad38abe2012-12-23 23:03:21 +000030420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30421$as_echo "no" >&6; }
cristyd09bcf92010-03-25 03:04:45 +000030422 fi
30423fi
30424
cristy71203402010-06-18 13:12:03 +000030425#
30426# Check for LCMS v1 (1.11 or later)
30427#
30428if test $have_lcms2 = 'yes'; then
30429 with_lcms='no'
30430fi
30431
30432have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000030433if test "$with_lcms" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000030434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30435$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000030436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
30437$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30439$as_echo "" >&6; }
cristyd09bcf92010-03-25 03:04:45 +000030440 failed=0
30441 passed=0
30442 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000030443
30444 # Check for <lcms.h>
30445 if test "$have_lcms_header" != 'yes'; then
30446 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030447if test "x$ac_cv_header_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030448 have_lcms_header='yes'
30449fi
30450
30451
cristy71203402010-06-18 13:12:03 +000030452 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000030453 passed=`expr $passed + 1`
30454
cristy8b350f62009-11-15 23:12:43 +000030455$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030456
cristy71203402010-06-18 13:12:03 +000030457 fi
30458 fi
30459
30460 # Check for <lcms/lcms.h>
30461 if test "$have_lcms_header" != 'yes'; then
30462 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 +000030463if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030464 have_lcms_header='yes'
30465fi
30466
30467
cristy71203402010-06-18 13:12:03 +000030468 if test "$have_lcms_header" = 'yes'; then
30469 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030470
cristy8b350f62009-11-15 23:12:43 +000030471$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030472
cristy71203402010-06-18 13:12:03 +000030473 fi
cristy3ed852e2009-09-05 21:47:34 +000030474 fi
cristy71203402010-06-18 13:12:03 +000030475
30476 # Failed to find lcms header?
30477 if test "$have_lcms_header" != 'yes'; then
30478 failed=`expr $failed + 1`
30479 fi
30480
30481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
30482$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030483if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030484 $as_echo_n "(cached) " >&6
30485else
30486 ac_check_lib_save_LIBS=$LIBS
30487LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030488cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030489/* end confdefs.h. */
30490
30491/* Override any GCC internal prototype to avoid an error.
30492 Use char because int might match the return type of a GCC
30493 builtin and then its argument prototype would still apply. */
30494#ifdef __cplusplus
30495extern "C"
30496#endif
cristy71203402010-06-18 13:12:03 +000030497char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030498int
30499main ()
30500{
cristy71203402010-06-18 13:12:03 +000030501return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030502 ;
30503 return 0;
30504}
30505_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030506if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000030507 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000030508else
cristy71203402010-06-18 13:12:03 +000030509 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000030510fi
cristy8b350f62009-11-15 23:12:43 +000030511rm -f core conftest.err conftest.$ac_objext \
30512 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030513LIBS=$ac_check_lib_save_LIBS
30514fi
cristy71203402010-06-18 13:12:03 +000030515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
30516$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000030517if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030518 passed=`expr $passed + 1`
30519else
30520 failed=`expr $failed + 1`
30521fi
30522
cristy8b350f62009-11-15 23:12:43 +000030523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030524$as_echo_n "checking if LCMS package is complete... " >&6; }
30525 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030526 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000030527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30528$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000030529 have_lcms='no (failed tests)'
30530 else
30531 LCMS_LIBS='-llcms'
30532 LIBS="$LCMS_LIBS $LIBS"
cristyad38abe2012-12-23 23:03:21 +000030533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30534$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000030535 have_lcms='yes'
30536 fi
cristy3ed852e2009-09-05 21:47:34 +000030537 else
cristyad38abe2012-12-23 23:03:21 +000030538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30539$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030540 fi
30541fi
cristy71203402010-06-18 13:12:03 +000030542
cristy73bd4a52010-10-05 11:24:23 +000030543 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30544 LCMS_DELEGATE_TRUE=
30545 LCMS_DELEGATE_FALSE='#'
30546else
30547 LCMS_DELEGATE_TRUE='#'
30548 LCMS_DELEGATE_FALSE=
30549fi
30550
cristy71203402010-06-18 13:12:03 +000030551if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30552
30553$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
30554
30555fi
30556
cristy3ed852e2009-09-05 21:47:34 +000030557
30558
30559
30560#
cristy99db3872014-01-01 15:11:34 +000030561# Check for the OpenJP2 delegate library.
30562#
30563
30564# Check whether --with-openjp2 was given.
30565if test "${with_openjp2+set}" = set; then :
30566 withval=$with_openjp2; with_openjp2=$withval
30567else
30568 with_openjp2='yes'
30569fi
30570
30571
30572if test "$with_openjp2" != 'yes'; then
30573 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openjp2=$with_openjp2 "
30574fi
30575
30576have_openjp2='no'
30577LIBOPENJP2_CFLAGS=""
30578LIBOPENJP2_LIBS=""
30579LIBOPENJP2_PKG=""
30580if test "x$with_openjp2" = "xyes"; then
30581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30582$as_echo "-------------------------------------------------------------" >&6; }
30583
30584pkg_failed=no
30585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBOPENJP2" >&5
30586$as_echo_n "checking for LIBOPENJP2... " >&6; }
30587
30588if test -n "$LIBOPENJP2_CFLAGS"; then
30589 pkg_cv_LIBOPENJP2_CFLAGS="$LIBOPENJP2_CFLAGS"
30590 elif test -n "$PKG_CONFIG"; then
30591 if test -n "$PKG_CONFIG" && \
cristybc964932014-05-08 21:45:03 +000030592 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopenjp2 >= 2.1.0\""; } >&5
30593 ($PKG_CONFIG --exists --print-errors "libopenjp2 >= 2.1.0") 2>&5
cristy99db3872014-01-01 15:11:34 +000030594 ac_status=$?
30595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30596 test $ac_status = 0; }; then
cristybc964932014-05-08 21:45:03 +000030597 pkg_cv_LIBOPENJP2_CFLAGS=`$PKG_CONFIG --cflags "libopenjp2 >= 2.1.0" 2>/dev/null`
cristy99db3872014-01-01 15:11:34 +000030598else
30599 pkg_failed=yes
30600fi
30601 else
30602 pkg_failed=untried
30603fi
30604if test -n "$LIBOPENJP2_LIBS"; then
30605 pkg_cv_LIBOPENJP2_LIBS="$LIBOPENJP2_LIBS"
30606 elif test -n "$PKG_CONFIG"; then
30607 if test -n "$PKG_CONFIG" && \
cristybc964932014-05-08 21:45:03 +000030608 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopenjp2 >= 2.1.0\""; } >&5
30609 ($PKG_CONFIG --exists --print-errors "libopenjp2 >= 2.1.0") 2>&5
cristy99db3872014-01-01 15:11:34 +000030610 ac_status=$?
30611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30612 test $ac_status = 0; }; then
cristybc964932014-05-08 21:45:03 +000030613 pkg_cv_LIBOPENJP2_LIBS=`$PKG_CONFIG --libs "libopenjp2 >= 2.1.0" 2>/dev/null`
cristy99db3872014-01-01 15:11:34 +000030614else
30615 pkg_failed=yes
30616fi
30617 else
30618 pkg_failed=untried
30619fi
30620
30621
30622
30623if test $pkg_failed = yes; then
30624
30625if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30626 _pkg_short_errors_supported=yes
30627else
30628 _pkg_short_errors_supported=no
30629fi
30630 if test $_pkg_short_errors_supported = yes; then
cristybc964932014-05-08 21:45:03 +000030631 LIBOPENJP2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libopenjp2 >= 2.1.0" 2>&1`
cristy99db3872014-01-01 15:11:34 +000030632 else
cristybc964932014-05-08 21:45:03 +000030633 LIBOPENJP2_PKG_ERRORS=`$PKG_CONFIG --print-errors "libopenjp2 >= 2.1.0" 2>&1`
cristy99db3872014-01-01 15:11:34 +000030634 fi
30635 # Put the nasty error message in config.log where it belongs
30636 echo "$LIBOPENJP2_PKG_ERRORS" >&5
30637
30638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30639$as_echo "no" >&6; }
30640 have_openjp2=no
30641elif test $pkg_failed = untried; then
30642 have_openjp2=no
30643else
30644 LIBOPENJP2_CFLAGS=$pkg_cv_LIBOPENJP2_CFLAGS
30645 LIBOPENJP2_LIBS=$pkg_cv_LIBOPENJP2_LIBS
30646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30647$as_echo "yes" >&6; }
30648 have_openjp2=yes
30649fi
30650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30651$as_echo "" >&6; }
30652fi
30653
30654if test "$have_openjp2" = 'yes'; then
30655
30656$as_echo "#define LIBOPENJP2_DELEGATE 1" >>confdefs.h
30657
30658 if test "$build_modules" = 'no'; then
30659 CFLAGS="$LIBOPENJP2_CFLAGS $CFLAGS"
30660 fi
30661fi
30662
30663 if test "$have_openjp2" = 'yes'; then
30664 LIBOPENJP2_DELEGATE_TRUE=
30665 LIBOPENJP2_DELEGATE_FALSE='#'
30666else
30667 LIBOPENJP2_DELEGATE_TRUE='#'
30668 LIBOPENJP2_DELEGATE_FALSE=
30669fi
30670
30671
30672
30673
30674
30675
30676#
cristy3ed852e2009-09-05 21:47:34 +000030677# Check for the LQR (Liquid Rescale) delegate library.
30678#
30679
30680# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000030681if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030682 withval=$with_lqr; with_lqr=$withval
30683else
30684 with_lqr='yes'
30685fi
30686
30687
30688if test "$with_lqr" != 'yes'; then
30689 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
30690fi
30691
30692have_lqr='no'
30693LQR_CFLAGS=""
30694LQR_LIBS=""
30695LQR_PKG=""
30696if test "x$with_lqr" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30698$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030699
30700pkg_failed=no
30701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
30702$as_echo_n "checking for LQR... " >&6; }
30703
30704if test -n "$LQR_CFLAGS"; then
30705 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
30706 elif test -n "$PKG_CONFIG"; then
30707 if test -n "$PKG_CONFIG" && \
30708 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30709 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30710 ac_status=$?
30711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30712 test $ac_status = 0; }; then
30713 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
30714else
30715 pkg_failed=yes
30716fi
30717 else
30718 pkg_failed=untried
30719fi
30720if test -n "$LQR_LIBS"; then
30721 pkg_cv_LQR_LIBS="$LQR_LIBS"
30722 elif test -n "$PKG_CONFIG"; then
30723 if test -n "$PKG_CONFIG" && \
30724 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30725 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30726 ac_status=$?
30727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30728 test $ac_status = 0; }; then
30729 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
30730else
30731 pkg_failed=yes
30732fi
30733 else
30734 pkg_failed=untried
30735fi
30736
30737
30738
30739if test $pkg_failed = yes; then
30740
30741if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30742 _pkg_short_errors_supported=yes
30743else
30744 _pkg_short_errors_supported=no
30745fi
30746 if test $_pkg_short_errors_supported = yes; then
30747 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
30748 else
30749 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
30750 fi
30751 # Put the nasty error message in config.log where it belongs
30752 echo "$LQR_PKG_ERRORS" >&5
30753
30754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30755$as_echo "no" >&6; }
30756 have_lqr=no
30757elif test $pkg_failed = untried; then
30758 have_lqr=no
30759else
30760 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
30761 LQR_LIBS=$pkg_cv_LQR_LIBS
30762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30763$as_echo "yes" >&6; }
30764 have_lqr=yes
30765fi
cristyad38abe2012-12-23 23:03:21 +000030766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30767$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030768fi
30769
30770if test "$have_lqr" = 'yes'; then
30771
cristy8b350f62009-11-15 23:12:43 +000030772$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030773
30774 CFLAGS="$LQR_CFLAGS $CFLAGS"
30775fi
30776
cristy73bd4a52010-10-05 11:24:23 +000030777 if test "$have_lqr" = 'yes'; then
30778 LQR_DELEGATE_TRUE=
30779 LQR_DELEGATE_FALSE='#'
30780else
30781 LQR_DELEGATE_TRUE='#'
30782 LQR_DELEGATE_FALSE=
30783fi
30784
cristy3ed852e2009-09-05 21:47:34 +000030785
30786
30787
30788
cristy81beccd2011-10-03 18:17:24 +000030789# Disable LZMA (lzma library)
cristyfbb0ef02010-12-19 02:32:11 +000030790
30791# Check whether --with-lzma was given.
30792if test "${with_lzma+set}" = set; then :
30793 withval=$with_lzma; with_lzma=$withval
30794else
30795 with_lzma='yes'
30796fi
30797
cristy81beccd2011-10-03 18:17:24 +000030798if test "$with_lzma" != 'yes' ; then
cristyfbb0ef02010-12-19 02:32:11 +000030799 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
30800fi
30801
cristyb94e5002011-11-14 13:20:10 +000030802LZMA_PKG=""
30803if test "x$with_lzma" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30805$as_echo "-------------------------------------------------------------" >&6; }
cristyb94e5002011-11-14 13:20:10 +000030806
30807pkg_failed=no
30808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
cristyfbb0ef02010-12-19 02:32:11 +000030809$as_echo_n "checking for LZMA... " >&6; }
cristyb94e5002011-11-14 13:20:10 +000030810
30811if test -n "$LZMA_CFLAGS"; then
30812 pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
30813 elif test -n "$PKG_CONFIG"; then
30814 if test -n "$PKG_CONFIG" && \
30815 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30816 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30817 ac_status=$?
30818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30819 test $ac_status = 0; }; then
30820 pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null`
30821else
30822 pkg_failed=yes
30823fi
30824 else
30825 pkg_failed=untried
30826fi
30827if test -n "$LZMA_LIBS"; then
30828 pkg_cv_LZMA_LIBS="$LZMA_LIBS"
30829 elif test -n "$PKG_CONFIG"; then
30830 if test -n "$PKG_CONFIG" && \
30831 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30832 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30833 ac_status=$?
30834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30835 test $ac_status = 0; }; then
30836 pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null`
30837else
30838 pkg_failed=yes
30839fi
30840 else
30841 pkg_failed=untried
30842fi
30843
30844
30845
30846if test $pkg_failed = yes; then
30847
30848if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30849 _pkg_short_errors_supported=yes
30850else
30851 _pkg_short_errors_supported=no
30852fi
30853 if test $_pkg_short_errors_supported = yes; then
30854 LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "liblzma >= 2.9.0" 2>&1`
30855 else
30856 LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors "liblzma >= 2.9.0" 2>&1`
30857 fi
30858 # Put the nasty error message in config.log where it belongs
30859 echo "$LZMA_PKG_ERRORS" >&5
30860
30861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30862$as_echo "no" >&6; }
30863 have_lzma=no
30864elif test $pkg_failed = untried; then
30865 have_lzma=no
30866else
30867 LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
30868 LZMA_LIBS=$pkg_cv_LZMA_LIBS
30869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30870$as_echo "yes" >&6; }
30871 have_lzma=yes
30872fi
cristyad38abe2012-12-23 23:03:21 +000030873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30874$as_echo "" >&6; }
cristyfbb0ef02010-12-19 02:32:11 +000030875fi
30876
cristyb94e5002011-11-14 13:20:10 +000030877if test "$have_lzma" = 'yes'; then
cristyfbb0ef02010-12-19 02:32:11 +000030878
30879$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
30880
cristyc6722092012-10-14 00:19:31 +000030881 if test "$build_modules" = 'no'; then
cristyb94e5002011-11-14 13:20:10 +000030882 CPPFLAGS="$LZMA_CFLAGS $CPPFLAGS"
cristyfbb0ef02010-12-19 02:32:11 +000030883 fi
cristyfbb0ef02010-12-19 02:32:11 +000030884fi
cristyb94e5002011-11-14 13:20:10 +000030885
cristyfbb0ef02010-12-19 02:32:11 +000030886 if test "$have_lzma" = 'yes'; then
30887 LZMA_DELEGATE_TRUE=
30888 LZMA_DELEGATE_FALSE='#'
30889else
30890 LZMA_DELEGATE_TRUE='#'
30891 LZMA_DELEGATE_FALSE=
30892fi
30893
30894
30895
30896
cristyb94e5002011-11-14 13:20:10 +000030897
cristy3ed852e2009-09-05 21:47:34 +000030898#
30899# Check for the OpenEXR delegate library.
30900#
30901
30902# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000030903if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030904 withval=$with_openexr; with_openexr=$withval
30905else
30906 with_openexr='yes'
30907fi
30908
30909
30910if test "$with_openexr" != 'yes'; then
30911 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
30912fi
30913
30914have_openexr='no'
30915OPENEXR_CFLAGS=""
30916OPENEXR_LIBS=""
30917OPENEXR_PKG=""
30918if test "x$with_openexr" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30920$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030921
30922pkg_failed=no
30923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
30924$as_echo_n "checking for OPENEXR... " >&6; }
30925
30926if test -n "$OPENEXR_CFLAGS"; then
30927 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
30928 elif test -n "$PKG_CONFIG"; then
30929 if test -n "$PKG_CONFIG" && \
30930 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30931 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30932 ac_status=$?
30933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30934 test $ac_status = 0; }; then
30935 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
30936else
30937 pkg_failed=yes
30938fi
30939 else
30940 pkg_failed=untried
30941fi
30942if test -n "$OPENEXR_LIBS"; then
30943 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
30944 elif test -n "$PKG_CONFIG"; then
30945 if test -n "$PKG_CONFIG" && \
30946 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30947 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30948 ac_status=$?
30949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30950 test $ac_status = 0; }; then
30951 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
30952else
30953 pkg_failed=yes
30954fi
30955 else
30956 pkg_failed=untried
30957fi
30958
30959
30960
30961if test $pkg_failed = yes; then
30962
30963if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30964 _pkg_short_errors_supported=yes
30965else
30966 _pkg_short_errors_supported=no
30967fi
30968 if test $_pkg_short_errors_supported = yes; then
30969 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
30970 else
30971 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
30972 fi
30973 # Put the nasty error message in config.log where it belongs
30974 echo "$OPENEXR_PKG_ERRORS" >&5
30975
30976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30977$as_echo "no" >&6; }
30978 have_openexr=no
30979elif test $pkg_failed = untried; then
30980 have_openexr=no
30981else
30982 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
30983 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
30984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30985$as_echo "yes" >&6; }
30986 have_openexr=yes
30987fi
cristyad38abe2012-12-23 23:03:21 +000030988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30989$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030990fi
30991
30992if test "$have_openexr" = 'yes'; then
30993
cristy8b350f62009-11-15 23:12:43 +000030994$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030995
cristyc6722092012-10-14 00:19:31 +000030996 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000030997 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
30998 fi
30999fi
31000
cristy73bd4a52010-10-05 11:24:23 +000031001 if test "$have_openexr" = 'yes'; then
31002 OPENEXR_DELEGATE_TRUE=
31003 OPENEXR_DELEGATE_FALSE='#'
31004else
31005 OPENEXR_DELEGATE_TRUE='#'
31006 OPENEXR_DELEGATE_FALSE=
31007fi
31008
cristy3ed852e2009-09-05 21:47:34 +000031009
31010
31011
31012
31013#
cristy41cbe8a2011-10-27 01:35:18 +000031014# Check for PANGO delegate library.
31015#
31016
31017# Check whether --with-pango was given.
31018if test "${with_pango+set}" = set; then :
31019 withval=$with_pango; with_pango=$withval
31020else
cristyfc3d0222012-02-07 15:05:57 +000031021 with_pango='yes'
cristy41cbe8a2011-10-27 01:35:18 +000031022fi
31023
31024
31025if test "$with_pango" != 'yes'; then
31026 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
31027fi
31028
31029have_pango='no'
cristya054b762012-03-26 23:16:00 +000031030have_pangocairo='no'
cristy41cbe8a2011-10-27 01:35:18 +000031031PANGO_CFLAGS=""
31032PANGO_LIBS=""
31033PANGO_PKG=""
31034if test "x$with_pango" = "xyes"; then
31035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31036$as_echo "-------------------------------------------------------------" >&6; }
31037
31038pkg_failed=no
31039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
31040$as_echo_n "checking for PANGO... " >&6; }
31041
31042if test -n "$PANGO_CFLAGS"; then
31043 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
31044 elif test -n "$PKG_CONFIG"; then
31045 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000031046 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
31047 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000031048 ac_status=$?
31049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31050 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000031051 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000031052else
31053 pkg_failed=yes
31054fi
31055 else
31056 pkg_failed=untried
31057fi
31058if test -n "$PANGO_LIBS"; then
31059 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
31060 elif test -n "$PKG_CONFIG"; then
31061 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000031062 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
31063 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000031064 ac_status=$?
31065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31066 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000031067 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000031068else
31069 pkg_failed=yes
31070fi
31071 else
31072 pkg_failed=untried
31073fi
31074
31075
31076
31077if test $pkg_failed = yes; then
31078
31079if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31080 _pkg_short_errors_supported=yes
31081else
31082 _pkg_short_errors_supported=no
31083fi
31084 if test $_pkg_short_errors_supported = yes; then
cristya054b762012-03-26 23:16:00 +000031085 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000031086 else
cristya054b762012-03-26 23:16:00 +000031087 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000031088 fi
31089 # Put the nasty error message in config.log where it belongs
31090 echo "$PANGO_PKG_ERRORS" >&5
31091
31092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31093$as_echo "no" >&6; }
cristya054b762012-03-26 23:16:00 +000031094 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000031095elif test $pkg_failed = untried; then
cristya054b762012-03-26 23:16:00 +000031096 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000031097else
31098 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
31099 PANGO_LIBS=$pkg_cv_PANGO_LIBS
31100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31101$as_echo "yes" >&6; }
cristya054b762012-03-26 23:16:00 +000031102 have_pangocairo=yes
cristy41cbe8a2011-10-27 01:35:18 +000031103fi
31104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31105$as_echo "" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000031106
31107pkg_failed=no
31108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
31109$as_echo_n "checking for PANGO... " >&6; }
31110
31111if test -n "$PANGO_CFLAGS"; then
31112 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
31113 elif test -n "$PKG_CONFIG"; then
31114 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000031115 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
31116 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000031117 ac_status=$?
31118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31119 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000031120 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000031121else
31122 pkg_failed=yes
31123fi
31124 else
31125 pkg_failed=untried
31126fi
31127if test -n "$PANGO_LIBS"; then
31128 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
31129 elif test -n "$PKG_CONFIG"; then
31130 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000031131 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
31132 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000031133 ac_status=$?
31134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31135 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000031136 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000031137else
31138 pkg_failed=yes
31139fi
31140 else
31141 pkg_failed=untried
31142fi
31143
31144
31145
31146if test $pkg_failed = yes; then
31147
31148if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31149 _pkg_short_errors_supported=yes
31150else
31151 _pkg_short_errors_supported=no
31152fi
31153 if test $_pkg_short_errors_supported = yes; then
cristy2542fc62011-12-06 17:50:25 +000031154 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000031155 else
cristy2542fc62011-12-06 17:50:25 +000031156 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000031157 fi
31158 # Put the nasty error message in config.log where it belongs
31159 echo "$PANGO_PKG_ERRORS" >&5
31160
31161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31162$as_echo "no" >&6; }
31163 have_pango=no
31164elif test $pkg_failed = untried; then
31165 have_pango=no
31166else
31167 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
31168 PANGO_LIBS=$pkg_cv_PANGO_LIBS
31169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31170$as_echo "yes" >&6; }
31171 have_pango=yes
31172fi
31173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31174$as_echo "" >&6; }
cristy41cbe8a2011-10-27 01:35:18 +000031175fi
31176
31177if test "$have_pango" = 'yes'; then
31178
31179$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h
31180
cristyc6722092012-10-14 00:19:31 +000031181 if test "$build_modules" = 'no'; then
cristy41cbe8a2011-10-27 01:35:18 +000031182 CPPFLAGS="$PANGO_CFLAGS $CPPFLAGS"
31183 fi
31184fi
31185
cristya054b762012-03-26 23:16:00 +000031186if test "$have_pangocairo" = 'yes'; then
cristy41cbe8a2011-10-27 01:35:18 +000031187
cristya054b762012-03-26 23:16:00 +000031188$as_echo "#define PANGOCAIRO_DELEGATE 1" >>confdefs.h
cristy41cbe8a2011-10-27 01:35:18 +000031189
cristyc6722092012-10-14 00:19:31 +000031190 if test "$build_modules" = 'no'; then
cristya054b762012-03-26 23:16:00 +000031191 CPPFLAGS="$PANGOCAIRO_CFLAGS $CPPFLAGS"
cristy41cbe8a2011-10-27 01:35:18 +000031192 fi
31193fi
31194
31195 if test "$have_pango" = 'yes'; then
31196 PANGO_DELEGATE_TRUE=
31197 PANGO_DELEGATE_FALSE='#'
31198else
31199 PANGO_DELEGATE_TRUE='#'
31200 PANGO_DELEGATE_FALSE=
31201fi
31202
cristya054b762012-03-26 23:16:00 +000031203 if test "$have_pangocairo" = 'yes'; then
31204 PANGOCAIRO_DELEGATE_TRUE=
31205 PANGOCAIRO_DELEGATE_FALSE='#'
cristy41cbe8a2011-10-27 01:35:18 +000031206else
cristya054b762012-03-26 23:16:00 +000031207 PANGOCAIRO_DELEGATE_TRUE='#'
31208 PANGOCAIRO_DELEGATE_FALSE=
cristy41cbe8a2011-10-27 01:35:18 +000031209fi
31210
31211
31212
31213
31214
31215#
cristy3ed852e2009-09-05 21:47:34 +000031216# Check for PNG delegate library.
31217#
31218
31219# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000031220if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031221 withval=$with_png; with_png=$withval
31222else
31223 with_png='yes'
31224fi
31225
31226
31227if test "$with_png" != 'yes'; then
31228 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
31229fi
31230
cristy81beccd2011-10-03 18:17:24 +000031231have_png='no'
31232PNG_LIBS=''
31233
31234if test "$with_png" != 'no' -a "$have_zlib" != 'no' ; then
cristyad38abe2012-12-23 23:03:21 +000031235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31236$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5
31238$as_echo_n "checking for PNG support ... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000031239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31240$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031241 failed=0
31242 passed=0
31243 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
31244if test "x$ac_cv_header_png_h" = xyes; then :
31245 passed=`expr $passed + 1`
31246else
31247 failed=`expr $failed + 1`
cristy64877302011-08-23 19:10:31 +000031248fi
31249
cristy81beccd2011-10-03 18:17:24 +000031250
31251
31252 if test $passed -gt 0; then
glennrp3fc1c212013-01-10 01:52:32 +000031253 for var in 7 6 5 4 2 '' ; do
cristy0615f0e2011-10-12 11:36:46 +000031254 if test "$have_png" = 'no' ; then
31255 if test "x${var}" = 'x' ; then
cristy81beccd2011-10-03 18:17:24 +000031256 pnglib='png'
31257 else
31258 pnglib="png1${var}"
31259 fi
31260
31261# Test for compatible LIBPNG library
31262 failed=0
31263 passed=0
cristy0615f0e2011-10-12 11:36:46 +000031264 if test "$with_png" = 'yes' -o "$with_png" = "libpng1${var}" ; then
cristy81beccd2011-10-03 18:17:24 +000031265 if test "${pnglib}" != 'png' ; then
31266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5
31267$as_echo_n "checking for LIBPNG1${var} support ... " >&6; }
31268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31269/* end confdefs.h. */
31270#include <stdio.h>
31271#include <stdlib.h>
31272#include <png.h>
31273
31274int
31275main ()
31276{
31277
31278#if PNG_LIBPNG_VER_MINOR != ${var}
31279#error LIBPNG library must be version 1${var}!
31280Kaboom, Kaboom
31281#endif
31282return 0;
31283
31284 ;
31285 return 0;
31286}
31287_ACEOF
31288if ac_fn_c_try_compile "$LINENO"; then :
31289 ac_cv_libpng_ok='yes'
31290else
31291 ac_cv_libpng_ok='no'
31292fi
31293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31294 if test "$ac_cv_libpng_ok" = 'yes' ; then
31295 passed=`expr $passed + 1`
cristyad38abe2012-12-23 23:03:21 +000031296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31297$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031298 else
31299 failed=`expr $failed + 1`
cristyad38abe2012-12-23 23:03:21 +000031300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31301$as_echo "no" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031302 fi
31303 else
31304 passed=`expr $passed + 1`
cristyad38abe2012-12-23 23:03:21 +000031305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31306$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031307 fi
31308 fi
31309
31310 if test $passed -gt 0 -a $failed -le 0; then
cristy03f187e2013-01-24 00:22:19 +000031311 if test "1${var}" = '17' ; then
31312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng17" >&5
31313$as_echo_n "checking for png_get_io_ptr in -lpng17... " >&6; }
31314if ${ac_cv_lib_png17_png_get_io_ptr+:} false; then :
31315 $as_echo_n "(cached) " >&6
31316else
31317 ac_check_lib_save_LIBS=$LIBS
31318LIBS="-lpng17 $LIBS"
31319cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31320/* end confdefs.h. */
31321
31322/* Override any GCC internal prototype to avoid an error.
31323 Use char because int might match the return type of a GCC
31324 builtin and then its argument prototype would still apply. */
31325#ifdef __cplusplus
31326extern "C"
31327#endif
31328char png_get_io_ptr ();
31329int
31330main ()
31331{
31332return png_get_io_ptr ();
31333 ;
31334 return 0;
31335}
31336_ACEOF
31337if ac_fn_c_try_link "$LINENO"; then :
31338 ac_cv_lib_png17_png_get_io_ptr=yes
31339else
31340 ac_cv_lib_png17_png_get_io_ptr=no
31341fi
31342rm -f core conftest.err conftest.$ac_objext \
31343 conftest$ac_exeext conftest.$ac_ext
31344LIBS=$ac_check_lib_save_LIBS
31345fi
31346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png17_png_get_io_ptr" >&5
31347$as_echo "$ac_cv_lib_png17_png_get_io_ptr" >&6; }
31348if test "x$ac_cv_lib_png17_png_get_io_ptr" = xyes; then :
31349 passed=`expr $passed + 1`
31350else
31351 failed=`expr $failed + 1`
31352fi
31353
31354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng17" >&5
31355$as_echo_n "checking for png_longjmp in -lpng17... " >&6; }
31356if ${ac_cv_lib_png17_png_longjmp+:} false; then :
31357 $as_echo_n "(cached) " >&6
31358else
31359 ac_check_lib_save_LIBS=$LIBS
31360LIBS="-lpng17 $LIBS"
31361cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31362/* end confdefs.h. */
31363
31364/* Override any GCC internal prototype to avoid an error.
31365 Use char because int might match the return type of a GCC
31366 builtin and then its argument prototype would still apply. */
31367#ifdef __cplusplus
31368extern "C"
31369#endif
31370char png_longjmp ();
31371int
31372main ()
31373{
31374return png_longjmp ();
31375 ;
31376 return 0;
31377}
31378_ACEOF
31379if ac_fn_c_try_link "$LINENO"; then :
31380 ac_cv_lib_png17_png_longjmp=yes
31381else
31382 ac_cv_lib_png17_png_longjmp=no
31383fi
31384rm -f core conftest.err conftest.$ac_objext \
31385 conftest$ac_exeext conftest.$ac_ext
31386LIBS=$ac_check_lib_save_LIBS
31387fi
31388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png17_png_longjmp" >&5
31389$as_echo "$ac_cv_lib_png17_png_longjmp" >&6; }
31390if test "x$ac_cv_lib_png17_png_longjmp" = xyes; then :
31391 passed=`expr $passed + 1`
31392else
31393 failed=`expr $failed + 1`
31394fi
31395
31396 fi
31397 if test "1${var}" = '16' ; then
31398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng16" >&5
31399$as_echo_n "checking for png_get_io_ptr in -lpng16... " >&6; }
31400if ${ac_cv_lib_png16_png_get_io_ptr+:} false; then :
31401 $as_echo_n "(cached) " >&6
31402else
31403 ac_check_lib_save_LIBS=$LIBS
31404LIBS="-lpng16 $LIBS"
31405cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31406/* end confdefs.h. */
31407
31408/* Override any GCC internal prototype to avoid an error.
31409 Use char because int might match the return type of a GCC
31410 builtin and then its argument prototype would still apply. */
31411#ifdef __cplusplus
31412extern "C"
31413#endif
31414char png_get_io_ptr ();
31415int
31416main ()
31417{
31418return png_get_io_ptr ();
31419 ;
31420 return 0;
31421}
31422_ACEOF
31423if ac_fn_c_try_link "$LINENO"; then :
31424 ac_cv_lib_png16_png_get_io_ptr=yes
31425else
31426 ac_cv_lib_png16_png_get_io_ptr=no
31427fi
31428rm -f core conftest.err conftest.$ac_objext \
31429 conftest$ac_exeext conftest.$ac_ext
31430LIBS=$ac_check_lib_save_LIBS
31431fi
31432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png16_png_get_io_ptr" >&5
31433$as_echo "$ac_cv_lib_png16_png_get_io_ptr" >&6; }
31434if test "x$ac_cv_lib_png16_png_get_io_ptr" = xyes; then :
31435 passed=`expr $passed + 1`
31436else
31437 failed=`expr $failed + 1`
31438fi
31439
31440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng16" >&5
31441$as_echo_n "checking for png_longjmp in -lpng16... " >&6; }
31442if ${ac_cv_lib_png16_png_longjmp+:} false; then :
31443 $as_echo_n "(cached) " >&6
31444else
31445 ac_check_lib_save_LIBS=$LIBS
31446LIBS="-lpng16 $LIBS"
31447cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31448/* end confdefs.h. */
31449
31450/* Override any GCC internal prototype to avoid an error.
31451 Use char because int might match the return type of a GCC
31452 builtin and then its argument prototype would still apply. */
31453#ifdef __cplusplus
31454extern "C"
31455#endif
31456char png_longjmp ();
31457int
31458main ()
31459{
31460return png_longjmp ();
31461 ;
31462 return 0;
31463}
31464_ACEOF
31465if ac_fn_c_try_link "$LINENO"; then :
31466 ac_cv_lib_png16_png_longjmp=yes
31467else
31468 ac_cv_lib_png16_png_longjmp=no
31469fi
31470rm -f core conftest.err conftest.$ac_objext \
31471 conftest$ac_exeext conftest.$ac_ext
31472LIBS=$ac_check_lib_save_LIBS
31473fi
31474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png16_png_longjmp" >&5
31475$as_echo "$ac_cv_lib_png16_png_longjmp" >&6; }
31476if test "x$ac_cv_lib_png16_png_longjmp" = xyes; then :
31477 passed=`expr $passed + 1`
31478else
31479 failed=`expr $failed + 1`
31480fi
31481
31482 fi
cristy81beccd2011-10-03 18:17:24 +000031483 if test "1${var}" = '15' ; then
31484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5
31485$as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; }
31486if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then :
31487 $as_echo_n "(cached) " >&6
31488else
31489 ac_check_lib_save_LIBS=$LIBS
31490LIBS="-lpng15 $LIBS"
31491cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31492/* end confdefs.h. */
31493
31494/* Override any GCC internal prototype to avoid an error.
31495 Use char because int might match the return type of a GCC
31496 builtin and then its argument prototype would still apply. */
31497#ifdef __cplusplus
31498extern "C"
31499#endif
31500char png_get_io_ptr ();
31501int
31502main ()
31503{
31504return png_get_io_ptr ();
31505 ;
31506 return 0;
31507}
31508_ACEOF
31509if ac_fn_c_try_link "$LINENO"; then :
31510 ac_cv_lib_png15_png_get_io_ptr=yes
31511else
31512 ac_cv_lib_png15_png_get_io_ptr=no
31513fi
31514rm -f core conftest.err conftest.$ac_objext \
31515 conftest$ac_exeext conftest.$ac_ext
31516LIBS=$ac_check_lib_save_LIBS
31517fi
31518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5
31519$as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; }
31520if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then :
31521 passed=`expr $passed + 1`
31522else
31523 failed=`expr $failed + 1`
31524fi
31525
31526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5
31527$as_echo_n "checking for png_longjmp in -lpng15... " >&6; }
31528if ${ac_cv_lib_png15_png_longjmp+:} false; then :
31529 $as_echo_n "(cached) " >&6
31530else
31531 ac_check_lib_save_LIBS=$LIBS
31532LIBS="-lpng15 $LIBS"
31533cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31534/* end confdefs.h. */
31535
31536/* Override any GCC internal prototype to avoid an error.
31537 Use char because int might match the return type of a GCC
31538 builtin and then its argument prototype would still apply. */
31539#ifdef __cplusplus
31540extern "C"
31541#endif
31542char png_longjmp ();
31543int
31544main ()
31545{
31546return png_longjmp ();
31547 ;
31548 return 0;
31549}
31550_ACEOF
31551if ac_fn_c_try_link "$LINENO"; then :
31552 ac_cv_lib_png15_png_longjmp=yes
31553else
31554 ac_cv_lib_png15_png_longjmp=no
31555fi
31556rm -f core conftest.err conftest.$ac_objext \
31557 conftest$ac_exeext conftest.$ac_ext
31558LIBS=$ac_check_lib_save_LIBS
31559fi
31560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5
31561$as_echo "$ac_cv_lib_png15_png_longjmp" >&6; }
31562if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then :
31563 passed=`expr $passed + 1`
31564else
31565 failed=`expr $failed + 1`
31566fi
31567
31568 fi
31569 if test "1${var}" = '14' ; then
31570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5
31571$as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; }
31572if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then :
31573 $as_echo_n "(cached) " >&6
31574else
31575 ac_check_lib_save_LIBS=$LIBS
31576LIBS="-lpng14 $LIBS"
31577cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31578/* end confdefs.h. */
31579
31580/* Override any GCC internal prototype to avoid an error.
31581 Use char because int might match the return type of a GCC
31582 builtin and then its argument prototype would still apply. */
31583#ifdef __cplusplus
31584extern "C"
31585#endif
31586char png_get_io_ptr ();
31587int
31588main ()
31589{
31590return png_get_io_ptr ();
31591 ;
31592 return 0;
31593}
31594_ACEOF
31595if ac_fn_c_try_link "$LINENO"; then :
31596 ac_cv_lib_png14_png_get_io_ptr=yes
31597else
31598 ac_cv_lib_png14_png_get_io_ptr=no
31599fi
31600rm -f core conftest.err conftest.$ac_objext \
31601 conftest$ac_exeext conftest.$ac_ext
31602LIBS=$ac_check_lib_save_LIBS
31603fi
31604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5
31605$as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; }
31606if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then :
31607 passed=`expr $passed + 1`
31608else
31609 failed=`expr $failed + 1`
31610fi
31611
31612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5
31613$as_echo_n "checking for png_get_io_state in -lpng14... " >&6; }
31614if ${ac_cv_lib_png14_png_get_io_state+:} false; then :
31615 $as_echo_n "(cached) " >&6
31616else
31617 ac_check_lib_save_LIBS=$LIBS
31618LIBS="-lpng14 $LIBS"
31619cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31620/* end confdefs.h. */
31621
31622/* Override any GCC internal prototype to avoid an error.
31623 Use char because int might match the return type of a GCC
31624 builtin and then its argument prototype would still apply. */
31625#ifdef __cplusplus
31626extern "C"
31627#endif
31628char png_get_io_state ();
31629int
31630main ()
31631{
31632return png_get_io_state ();
31633 ;
31634 return 0;
31635}
31636_ACEOF
31637if ac_fn_c_try_link "$LINENO"; then :
31638 ac_cv_lib_png14_png_get_io_state=yes
31639else
31640 ac_cv_lib_png14_png_get_io_state=no
31641fi
31642rm -f core conftest.err conftest.$ac_objext \
31643 conftest$ac_exeext conftest.$ac_ext
31644LIBS=$ac_check_lib_save_LIBS
31645fi
31646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5
31647$as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; }
31648if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then :
31649 passed=`expr $passed + 1`
31650else
31651 failed=`expr $failed + 1`
31652fi
31653
31654 fi
31655 if test "1${var}" = '12' ; then
31656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5
31657$as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; }
31658if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then :
31659 $as_echo_n "(cached) " >&6
31660else
31661 ac_check_lib_save_LIBS=$LIBS
31662LIBS="-lpng12 $LIBS"
31663cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31664/* end confdefs.h. */
31665
31666/* Override any GCC internal prototype to avoid an error.
31667 Use char because int might match the return type of a GCC
31668 builtin and then its argument prototype would still apply. */
31669#ifdef __cplusplus
31670extern "C"
31671#endif
31672char png_get_io_ptr ();
31673int
31674main ()
31675{
31676return png_get_io_ptr ();
31677 ;
31678 return 0;
31679}
31680_ACEOF
31681if ac_fn_c_try_link "$LINENO"; then :
31682 ac_cv_lib_png12_png_get_io_ptr=yes
31683else
31684 ac_cv_lib_png12_png_get_io_ptr=no
31685fi
31686rm -f core conftest.err conftest.$ac_objext \
31687 conftest$ac_exeext conftest.$ac_ext
31688LIBS=$ac_check_lib_save_LIBS
31689fi
31690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5
31691$as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; }
31692if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then :
31693 passed=`expr $passed + 1`
31694else
31695 failed=`expr $failed + 1`
31696fi
31697
31698 fi
31699 if test "1${var}" = '1' ; then
31700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
31701$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
31702if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
31703 $as_echo_n "(cached) " >&6
31704else
31705 ac_check_lib_save_LIBS=$LIBS
31706LIBS="-lpng $LIBS"
31707cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31708/* end confdefs.h. */
31709
31710/* Override any GCC internal prototype to avoid an error.
31711 Use char because int might match the return type of a GCC
31712 builtin and then its argument prototype would still apply. */
31713#ifdef __cplusplus
31714extern "C"
31715#endif
31716char png_get_io_ptr ();
31717int
31718main ()
31719{
31720return png_get_io_ptr ();
31721 ;
31722 return 0;
31723}
31724_ACEOF
31725if ac_fn_c_try_link "$LINENO"; then :
31726 ac_cv_lib_png_png_get_io_ptr=yes
31727else
31728 ac_cv_lib_png_png_get_io_ptr=no
31729fi
31730rm -f core conftest.err conftest.$ac_objext \
31731 conftest$ac_exeext conftest.$ac_ext
31732LIBS=$ac_check_lib_save_LIBS
31733fi
31734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
31735$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
31736if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
31737 passed=`expr $passed + 1`
31738else
31739 failed=`expr $failed + 1`
31740fi
31741
31742 fi
31743 if test $passed -gt 0 -a $failed -le 0 ; then
31744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5
31745$as_echo_n "checking if ${pnglib} package is complete... " >&6; }
31746 if test $passed -gt 0 ; then
31747 if test $failed -gt 0 ; then
cristyad38abe2012-12-23 23:03:21 +000031748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31749$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031750 have_png='no (failed tests)'
31751 else
31752 PNG_LIBS="-l${pnglib}"
31753 LIBS="$PNG_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031754
cristy8b350f62009-11-15 23:12:43 +000031755$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031756
cristyad38abe2012-12-23 23:03:21 +000031757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31758$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031759 have_png='yes'
31760 fi
31761 fi
31762 fi
31763 fi
31764 fi
31765 done
31766 fi
cristy3ed852e2009-09-05 21:47:34 +000031767fi
cristy64877302011-08-23 19:10:31 +000031768
cristy73bd4a52010-10-05 11:24:23 +000031769 if test "$have_png" = 'yes'; then
31770 PNG_DELEGATE_TRUE=
31771 PNG_DELEGATE_FALSE='#'
31772else
31773 PNG_DELEGATE_TRUE='#'
31774 PNG_DELEGATE_FALSE=
31775fi
31776
cristy3ed852e2009-09-05 21:47:34 +000031777
cristy50d3f5c2011-09-10 20:09:06 +000031778
cristy3ed852e2009-09-05 21:47:34 +000031779
31780
31781#
31782# Check for RSVG delegate library.
31783#
31784
31785# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000031786if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031787 withval=$with_rsvg; with_rsvg=$withval
31788else
cristy1164d5f2012-08-15 00:58:25 +000031789 with_rsvg='no'
cristy3ed852e2009-09-05 21:47:34 +000031790fi
31791
31792
31793if test "$with_rsvg" != 'yes'; then
31794 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
31795fi
31796
31797have_rsvg='no'
31798have_cairo='no'
31799RSVG_CFLAGS=""
31800RSVG_LIBS=""
31801RSVG_PKG=""
31802if test "x$with_rsvg" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000031803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31804$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031805
31806pkg_failed=no
31807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
31808$as_echo_n "checking for RSVG... " >&6; }
31809
31810if test -n "$RSVG_CFLAGS"; then
31811 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
31812 elif test -n "$PKG_CONFIG"; then
31813 if test -n "$PKG_CONFIG" && \
31814 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31815 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31816 ac_status=$?
31817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31818 test $ac_status = 0; }; then
31819 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31820else
31821 pkg_failed=yes
31822fi
31823 else
31824 pkg_failed=untried
31825fi
31826if test -n "$RSVG_LIBS"; then
31827 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
31828 elif test -n "$PKG_CONFIG"; then
31829 if test -n "$PKG_CONFIG" && \
31830 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31831 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31832 ac_status=$?
31833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31834 test $ac_status = 0; }; then
31835 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31836else
31837 pkg_failed=yes
31838fi
31839 else
31840 pkg_failed=untried
31841fi
31842
31843
31844
31845if test $pkg_failed = yes; then
31846
31847if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31848 _pkg_short_errors_supported=yes
31849else
31850 _pkg_short_errors_supported=no
31851fi
31852 if test $_pkg_short_errors_supported = yes; then
31853 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31854 else
31855 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31856 fi
31857 # Put the nasty error message in config.log where it belongs
31858 echo "$RSVG_PKG_ERRORS" >&5
31859
31860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31861$as_echo "no" >&6; }
31862 have_rsvg=no
31863elif test $pkg_failed = untried; then
31864 have_rsvg=no
31865else
31866 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
31867 RSVG_LIBS=$pkg_cv_RSVG_LIBS
31868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31869$as_echo "yes" >&6; }
31870 have_rsvg=yes
31871fi
cristyad38abe2012-12-23 23:03:21 +000031872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31873$as_echo "" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031874
31875pkg_failed=no
31876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
31877$as_echo_n "checking for CAIRO_SVG... " >&6; }
31878
31879if test -n "$CAIRO_SVG_CFLAGS"; then
31880 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
31881 elif test -n "$PKG_CONFIG"; then
31882 if test -n "$PKG_CONFIG" && \
31883 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31884 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31885 ac_status=$?
31886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31887 test $ac_status = 0; }; then
31888 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
31889else
31890 pkg_failed=yes
31891fi
31892 else
31893 pkg_failed=untried
31894fi
31895if test -n "$CAIRO_SVG_LIBS"; then
31896 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
31897 elif test -n "$PKG_CONFIG"; then
31898 if test -n "$PKG_CONFIG" && \
31899 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31900 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31901 ac_status=$?
31902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31903 test $ac_status = 0; }; then
31904 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
31905else
31906 pkg_failed=yes
31907fi
31908 else
31909 pkg_failed=untried
31910fi
31911
31912
31913
31914if test $pkg_failed = yes; then
31915
31916if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31917 _pkg_short_errors_supported=yes
31918else
31919 _pkg_short_errors_supported=no
31920fi
31921 if test $_pkg_short_errors_supported = yes; then
31922 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
31923 else
31924 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
31925 fi
31926 # Put the nasty error message in config.log where it belongs
31927 echo "$CAIRO_SVG_PKG_ERRORS" >&5
31928
31929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31930$as_echo "no" >&6; }
31931 have_cairo=no
31932elif test $pkg_failed = untried; then
31933 have_cairo=no
31934else
31935 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
31936 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
31937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31938$as_echo "yes" >&6; }
31939 have_cairo=yes
31940fi
cristyad38abe2012-12-23 23:03:21 +000031941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31942$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031943fi
31944
31945if test "$have_rsvg" = 'yes'; then
31946
cristy8b350f62009-11-15 23:12:43 +000031947$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031948
cristyc6722092012-10-14 00:19:31 +000031949 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000031950 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
31951 fi
31952fi
31953
31954if test "$have_cairo" = 'yes'; then
31955
cristy8b350f62009-11-15 23:12:43 +000031956$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031957
cristyc6722092012-10-14 00:19:31 +000031958 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000031959 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
31960 fi
31961fi
31962
cristy73bd4a52010-10-05 11:24:23 +000031963 if test "$have_rsvg" = 'yes'; then
31964 RSVG_DELEGATE_TRUE=
31965 RSVG_DELEGATE_FALSE='#'
31966else
31967 RSVG_DELEGATE_TRUE='#'
31968 RSVG_DELEGATE_FALSE=
31969fi
31970
31971 if test "$have_cairo" = 'yes'; then
31972 CAIRO_DELEGATE_TRUE=
31973 CAIRO_DELEGATE_FALSE='#'
31974else
31975 CAIRO_DELEGATE_TRUE='#'
31976 CAIRO_DELEGATE_FALSE=
31977fi
31978
cristy3ed852e2009-09-05 21:47:34 +000031979
31980
31981
31982
31983#
31984# Check for TIFF delegate library.
31985#
31986
31987# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000031988if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031989 withval=$with_tiff; with_tiff=$withval
31990else
31991 with_tiff='yes'
31992fi
31993
31994
31995if test "$with_tiff" != 'yes'; then
31996 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
31997fi
31998
31999have_tiff='no'
32000TIFF_LIBS=''
32001if test "$with_tiff" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000032002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32003$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000032005$as_echo_n "checking for TIFF... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32007$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032008 failed=0
32009 passed=0
cristy8b350f62009-11-15 23:12:43 +000032010 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000032011if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032012 passed=`expr $passed + 1`
32013else
32014 failed=`expr $failed + 1`
32015fi
32016
32017
cristy8b350f62009-11-15 23:12:43 +000032018 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000032019if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032020 passed=`expr $passed + 1`
32021else
32022 failed=`expr $failed + 1`
32023fi
32024
32025
cristy8b350f62009-11-15 23:12:43 +000032026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000032027$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032028if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032029 $as_echo_n "(cached) " >&6
32030else
32031 ac_check_lib_save_LIBS=$LIBS
32032LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032033cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032034/* end confdefs.h. */
32035
32036/* Override any GCC internal prototype to avoid an error.
32037 Use char because int might match the return type of a GCC
32038 builtin and then its argument prototype would still apply. */
32039#ifdef __cplusplus
32040extern "C"
32041#endif
32042char TIFFOpen ();
32043int
32044main ()
32045{
32046return TIFFOpen ();
32047 ;
32048 return 0;
32049}
32050_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032051if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032052 ac_cv_lib_tiff_TIFFOpen=yes
32053else
cristy8b350f62009-11-15 23:12:43 +000032054 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000032055fi
cristy8b350f62009-11-15 23:12:43 +000032056rm -f core conftest.err conftest.$ac_objext \
32057 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032058LIBS=$ac_check_lib_save_LIBS
32059fi
cristy8b350f62009-11-15 23:12:43 +000032060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000032061$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000032062if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032063 passed=`expr $passed + 1`
32064else
32065 failed=`expr $failed + 1`
32066fi
32067
cristy8b350f62009-11-15 23:12:43 +000032068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000032069$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032070if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032071 $as_echo_n "(cached) " >&6
32072else
32073 ac_check_lib_save_LIBS=$LIBS
32074LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032075cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032076/* end confdefs.h. */
32077
32078/* Override any GCC internal prototype to avoid an error.
32079 Use char because int might match the return type of a GCC
32080 builtin and then its argument prototype would still apply. */
32081#ifdef __cplusplus
32082extern "C"
32083#endif
32084char TIFFClientOpen ();
32085int
32086main ()
32087{
32088return TIFFClientOpen ();
32089 ;
32090 return 0;
32091}
32092_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032093if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032094 ac_cv_lib_tiff_TIFFClientOpen=yes
32095else
cristy8b350f62009-11-15 23:12:43 +000032096 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000032097fi
cristy8b350f62009-11-15 23:12:43 +000032098rm -f core conftest.err conftest.$ac_objext \
32099 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032100LIBS=$ac_check_lib_save_LIBS
32101fi
cristy8b350f62009-11-15 23:12:43 +000032102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000032103$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000032104if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032105 passed=`expr $passed + 1`
32106else
32107 failed=`expr $failed + 1`
32108fi
32109
cristy8b350f62009-11-15 23:12:43 +000032110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000032111$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032112if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032113 $as_echo_n "(cached) " >&6
32114else
32115 ac_check_lib_save_LIBS=$LIBS
32116LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032117cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032118/* end confdefs.h. */
32119
32120/* Override any GCC internal prototype to avoid an error.
32121 Use char because int might match the return type of a GCC
32122 builtin and then its argument prototype would still apply. */
32123#ifdef __cplusplus
32124extern "C"
32125#endif
32126char TIFFIsByteSwapped ();
32127int
32128main ()
32129{
32130return TIFFIsByteSwapped ();
32131 ;
32132 return 0;
32133}
32134_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032135if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032136 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
32137else
cristy8b350f62009-11-15 23:12:43 +000032138 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000032139fi
cristy8b350f62009-11-15 23:12:43 +000032140rm -f core conftest.err conftest.$ac_objext \
32141 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032142LIBS=$ac_check_lib_save_LIBS
32143fi
cristy8b350f62009-11-15 23:12:43 +000032144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000032145$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000032146if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032147 passed=`expr $passed + 1`
32148else
32149 failed=`expr $failed + 1`
32150fi
32151
cristy8b350f62009-11-15 23:12:43 +000032152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000032153$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032154if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032155 $as_echo_n "(cached) " >&6
32156else
32157 ac_check_lib_save_LIBS=$LIBS
32158LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032159cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032160/* end confdefs.h. */
32161
32162/* Override any GCC internal prototype to avoid an error.
32163 Use char because int might match the return type of a GCC
32164 builtin and then its argument prototype would still apply. */
32165#ifdef __cplusplus
32166extern "C"
32167#endif
32168char TIFFReadRGBATile ();
32169int
32170main ()
32171{
32172return TIFFReadRGBATile ();
32173 ;
32174 return 0;
32175}
32176_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032177if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032178 ac_cv_lib_tiff_TIFFReadRGBATile=yes
32179else
cristy8b350f62009-11-15 23:12:43 +000032180 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000032181fi
cristy8b350f62009-11-15 23:12:43 +000032182rm -f core conftest.err conftest.$ac_objext \
32183 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032184LIBS=$ac_check_lib_save_LIBS
32185fi
cristy8b350f62009-11-15 23:12:43 +000032186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000032187$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000032188if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032189 passed=`expr $passed + 1`
32190else
32191 failed=`expr $failed + 1`
32192fi
32193
cristy8b350f62009-11-15 23:12:43 +000032194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000032195$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032196if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032197 $as_echo_n "(cached) " >&6
32198else
32199 ac_check_lib_save_LIBS=$LIBS
32200LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032201cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032202/* end confdefs.h. */
32203
32204/* Override any GCC internal prototype to avoid an error.
32205 Use char because int might match the return type of a GCC
32206 builtin and then its argument prototype would still apply. */
32207#ifdef __cplusplus
32208extern "C"
32209#endif
32210char TIFFReadRGBAStrip ();
32211int
32212main ()
32213{
32214return TIFFReadRGBAStrip ();
32215 ;
32216 return 0;
32217}
32218_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032219if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032220 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
32221else
cristy8b350f62009-11-15 23:12:43 +000032222 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000032223fi
cristy8b350f62009-11-15 23:12:43 +000032224rm -f core conftest.err conftest.$ac_objext \
32225 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032226LIBS=$ac_check_lib_save_LIBS
32227fi
cristy8b350f62009-11-15 23:12:43 +000032228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000032229$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000032230if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032231 passed=`expr $passed + 1`
32232else
32233 failed=`expr $failed + 1`
32234fi
32235
cristy8b350f62009-11-15 23:12:43 +000032236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000032237$as_echo_n "checking if TIFF package is complete... " >&6; }
32238 if test $passed -gt 0; then
32239 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000032240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32241$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032242 have_tiff='no (failed tests)'
32243 else
32244 TIFF_LIBS='-ltiff'
32245 LIBS="$TIFF_LIBS $LIBS"
32246
cristy8b350f62009-11-15 23:12:43 +000032247$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032248
cristyad38abe2012-12-23 23:03:21 +000032249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32250$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032251 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000032252 for ac_header in tiffconf.h
32253do :
32254 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000032255if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032256 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032257#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000032258_ACEOF
32259
32260fi
32261
32262done
32263
cristy8b350f62009-11-15 23:12:43 +000032264 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3f590e52011-11-14 14:29:44 +000032265 TIFFIsBigEndian TIFFReadEXIFDirectory TIFFSetErrorHandlerExt \
32266 TIFFSetTagExtender TIFFSetWarningHandlerExt \
32267 TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000032268do :
32269 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
32270ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000032271if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000032272 cat >>confdefs.h <<_ACEOF
32273#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
32274_ACEOF
32275
32276fi
32277done
32278
32279 fi
32280 else
cristyad38abe2012-12-23 23:03:21 +000032281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32282$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032283 fi
32284fi
cristy73bd4a52010-10-05 11:24:23 +000032285 if test "$have_tiff" = 'yes'; then
32286 TIFF_DELEGATE_TRUE=
32287 TIFF_DELEGATE_FALSE='#'
32288else
32289 TIFF_DELEGATE_TRUE='#'
32290 TIFF_DELEGATE_FALSE=
32291fi
32292
cristy3ed852e2009-09-05 21:47:34 +000032293
32294
32295
32296#
cristyb1860752011-03-14 00:27:46 +000032297# Check for WEBP delegate library.
32298#
32299
32300# Check whether --with-webp was given.
32301if test "${with_webp+set}" = set; then :
32302 withval=$with_webp; with_webp=$withval
32303else
32304 with_webp='yes'
32305fi
32306
32307
32308if test "$with_webp" != 'yes'; then
32309 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
32310fi
32311
32312have_webp='no'
32313WEBP_LIBS=''
32314if test "$with_webp" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000032315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32316$as_echo "-------------------------------------------------------------" >&6; }
cristyb1860752011-03-14 00:27:46 +000032317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
32318$as_echo_n "checking for WEBP... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32320$as_echo "" >&6; }
cristyb1860752011-03-14 00:27:46 +000032321 failed=0
32322 passed=0
32323 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
32324if test "x$ac_cv_header_webp_decode_h" = xyes; then :
32325 passed=`expr $passed + 1`
32326else
32327 failed=`expr $failed + 1`
32328fi
32329
32330
cristy6d670312013-03-22 23:23:01 +000032331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPPictureInitInternal in -lwebp" >&5
32332$as_echo_n "checking for WebPPictureInitInternal in -lwebp... " >&6; }
32333if ${ac_cv_lib_webp_WebPPictureInitInternal+:} false; then :
cristyb1860752011-03-14 00:27:46 +000032334 $as_echo_n "(cached) " >&6
32335else
32336 ac_check_lib_save_LIBS=$LIBS
32337LIBS="-lwebp $LIBS"
32338cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32339/* end confdefs.h. */
32340
32341/* Override any GCC internal prototype to avoid an error.
32342 Use char because int might match the return type of a GCC
32343 builtin and then its argument prototype would still apply. */
32344#ifdef __cplusplus
32345extern "C"
32346#endif
cristy6d670312013-03-22 23:23:01 +000032347char WebPPictureInitInternal ();
cristyb1860752011-03-14 00:27:46 +000032348int
32349main ()
32350{
cristy6d670312013-03-22 23:23:01 +000032351return WebPPictureInitInternal ();
cristyb1860752011-03-14 00:27:46 +000032352 ;
32353 return 0;
32354}
32355_ACEOF
32356if ac_fn_c_try_link "$LINENO"; then :
cristy6d670312013-03-22 23:23:01 +000032357 ac_cv_lib_webp_WebPPictureInitInternal=yes
cristyb1860752011-03-14 00:27:46 +000032358else
cristy6d670312013-03-22 23:23:01 +000032359 ac_cv_lib_webp_WebPPictureInitInternal=no
cristyb1860752011-03-14 00:27:46 +000032360fi
32361rm -f core conftest.err conftest.$ac_objext \
32362 conftest$ac_exeext conftest.$ac_ext
32363LIBS=$ac_check_lib_save_LIBS
32364fi
cristy6d670312013-03-22 23:23:01 +000032365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPPictureInitInternal" >&5
32366$as_echo "$ac_cv_lib_webp_WebPPictureInitInternal" >&6; }
32367if test "x$ac_cv_lib_webp_WebPPictureInitInternal" = xyes; then :
cristyb1860752011-03-14 00:27:46 +000032368 passed=`expr $passed + 1`
32369else
32370 failed=`expr $failed + 1`
32371fi
32372
32373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
32374$as_echo_n "checking if WEBP package is complete... " >&6; }
32375 if test $passed -gt 0; then
32376 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000032377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32378$as_echo "no -- some components failed test" >&6; }
cristyb1860752011-03-14 00:27:46 +000032379 have_webp='no (failed tests)'
32380 else
32381 WEBP_LIBS='-lwebp'
32382 LIBS="$WEBP_LIBS $LIBS"
32383
32384$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
32385
cristyad38abe2012-12-23 23:03:21 +000032386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32387$as_echo "yes" >&6; }
cristyb1860752011-03-14 00:27:46 +000032388 have_webp='yes'
32389 fi
32390 else
cristyad38abe2012-12-23 23:03:21 +000032391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32392$as_echo "no" >&6; }
cristyb1860752011-03-14 00:27:46 +000032393 fi
32394fi
32395 if test "$have_webp" = 'yes'; then
32396 WEBP_DELEGATE_TRUE=
32397 WEBP_DELEGATE_FALSE='#'
32398else
32399 WEBP_DELEGATE_TRUE='#'
32400 WEBP_DELEGATE_FALSE=
32401fi
32402
32403
32404
32405
32406#
cristy3ed852e2009-09-05 21:47:34 +000032407# Set Windows font directory.
32408#
32409
32410# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000032411if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032412 withval=$with_windows_font_dir; with_windows_font_dir=$withval
32413else
cristy5a3dc992014-12-05 19:50:04 +000032414 with_windows_font_dir='default'
cristy3ed852e2009-09-05 21:47:34 +000032415fi
32416
cristy5a3dc992014-12-05 19:50:04 +000032417
32418if test "$with_windows_font_dir" != 'default'; then
cristy3ed852e2009-09-05 21:47:34 +000032419 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
32420fi
32421
32422
32423#
32424# Check for WMF delegate library.
32425#
32426
32427# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000032428if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032429 withval=$with_wmf; with_wmf=$withval
32430else
cristyfc3d0222012-02-07 15:05:57 +000032431 with_wmf='no'
cristy3ed852e2009-09-05 21:47:34 +000032432fi
32433
32434
32435if test "$with_wmf" != 'yes'; then
32436 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
32437fi
32438
32439have_wmf='no'
32440WMF_LIBS=''
cristy03f7cf92011-12-15 01:40:41 +000032441WMF_LIBS_DEPS=''
32442OLIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032443if test "$with_wmf" != 'no'; then
cristy03f7cf92011-12-15 01:40:41 +000032444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32445$as_echo "-------------------------------------------------------------" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000032447$as_echo_n "checking for WMF... " >&6; }
cristy03f7cf92011-12-15 01:40:41 +000032448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32449$as_echo "" >&6; }
32450 have_libwmf='no'
32451 have_libwmflite='no'
32452 have_libwmf_ipa_h='no'
32453
32454 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
32455"
32456if test "x$ac_cv_header_libwmf_ipa_h" = xyes; then :
32457 have_libwmf_ipa_h='yes'
cristy3ed852e2009-09-05 21:47:34 +000032458fi
32459
32460
cristy03f7cf92011-12-15 01:40:41 +000032461 if test "$have_libwmf_ipa_h" = 'yes'; then
32462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
32463$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
32464if ${ac_cv_lib_wmflite_wmf_lite_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032465 $as_echo_n "(cached) " >&6
32466else
32467 ac_check_lib_save_LIBS=$LIBS
cristy03f7cf92011-12-15 01:40:41 +000032468LIBS="-lwmflite $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032469cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032470/* end confdefs.h. */
32471
32472/* Override any GCC internal prototype to avoid an error.
32473 Use char because int might match the return type of a GCC
32474 builtin and then its argument prototype would still apply. */
32475#ifdef __cplusplus
32476extern "C"
32477#endif
cristy03f7cf92011-12-15 01:40:41 +000032478char wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000032479int
32480main ()
32481{
cristy03f7cf92011-12-15 01:40:41 +000032482return wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000032483 ;
32484 return 0;
32485}
32486_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032487if ac_fn_c_try_link "$LINENO"; then :
cristy03f7cf92011-12-15 01:40:41 +000032488 ac_cv_lib_wmflite_wmf_lite_create=yes
cristy3ed852e2009-09-05 21:47:34 +000032489else
cristy03f7cf92011-12-15 01:40:41 +000032490 ac_cv_lib_wmflite_wmf_lite_create=no
cristy3ed852e2009-09-05 21:47:34 +000032491fi
cristy8b350f62009-11-15 23:12:43 +000032492rm -f core conftest.err conftest.$ac_objext \
32493 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032494LIBS=$ac_check_lib_save_LIBS
32495fi
cristy03f7cf92011-12-15 01:40:41 +000032496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
32497$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
32498if test "x$ac_cv_lib_wmflite_wmf_lite_create" = xyes; then :
32499 have_libwmflite='yes'
cristy9243a2d2011-08-22 17:32:32 +000032500fi
32501
cristy03f7cf92011-12-15 01:40:41 +000032502 if test "$have_libwmflite" = 'yes'; then
32503
32504$as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h
32505
32506 WMF_LIBS='-lwmflite'
glennrp33e524b2011-08-24 17:41:57 +000032507 LIBS="$WMF_LIBS $LIBS"
cristy03f7cf92011-12-15 01:40:41 +000032508 have_wmf='yes'
32509 else
32510 WMF_LIBS_DEPS=''
32511 WMF_CONFIG_LIBS=`libwmf-config --libs`
32512 for lib in xml2 expat freetype jpeg png z; do
32513 testlib="-l${lib}"
32514 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
32515 done
32516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5
32517$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
32518if ${ac_cv_lib_wmf_wmf_api_create+:} false; then :
32519 $as_echo_n "(cached) " >&6
32520else
32521 ac_check_lib_save_LIBS=$LIBS
32522LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
32523cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32524/* end confdefs.h. */
32525
32526/* Override any GCC internal prototype to avoid an error.
32527 Use char because int might match the return type of a GCC
32528 builtin and then its argument prototype would still apply. */
32529#ifdef __cplusplus
32530extern "C"
32531#endif
32532char wmf_api_create ();
32533int
32534main ()
32535{
32536return wmf_api_create ();
32537 ;
32538 return 0;
32539}
32540_ACEOF
32541if ac_fn_c_try_link "$LINENO"; then :
32542 ac_cv_lib_wmf_wmf_api_create=yes
32543else
32544 ac_cv_lib_wmf_wmf_api_create=no
32545fi
32546rm -f core conftest.err conftest.$ac_objext \
32547 conftest$ac_exeext conftest.$ac_ext
32548LIBS=$ac_check_lib_save_LIBS
32549fi
32550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5
32551$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
32552if test "x$ac_cv_lib_wmf_wmf_api_create" = xyes; then :
32553 have_libwmf='yes'
32554fi
32555
32556 if test "$have_libwmf" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032557
cristy8b350f62009-11-15 23:12:43 +000032558$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032559
cristy03f7cf92011-12-15 01:40:41 +000032560 WMF_LIBS='-lwmf'
32561 LIBS="$WMF_LIBS $LIBS"
32562 have_wmf='yes'
32563 else
32564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32565$as_echo "no -- some components failed test" >&6; }
32566 have_wmf='no (failed tests)'
32567 have_wmflite='no (failed tests)'
32568 LIBS="$OLIBS"
32569 WMF_LIBS=''
32570 fi
glennrp33e524b2011-08-24 17:41:57 +000032571 fi
cristy03f7cf92011-12-15 01:40:41 +000032572 fi
32573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
32574$as_echo_n "checking if WMF package is complete... " >&6; }
32575 if test "$have_wmf" = 'yes'; then
32576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32577$as_echo "yes" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032578 else
cristy03f7cf92011-12-15 01:40:41 +000032579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32580$as_echo "no" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032581 fi
cristy3ed852e2009-09-05 21:47:34 +000032582fi
cristy73bd4a52010-10-05 11:24:23 +000032583 if test "$have_wmf" = 'yes'; then
32584 WMF_DELEGATE_TRUE=
32585 WMF_DELEGATE_FALSE='#'
32586else
32587 WMF_DELEGATE_TRUE='#'
32588 WMF_DELEGATE_FALSE=
32589fi
32590
cristy3ed852e2009-09-05 21:47:34 +000032591
32592
32593
cristy81beccd2011-10-03 18:17:24 +000032594
32595
cristy3ed852e2009-09-05 21:47:34 +000032596#
32597# Check for XML delegate library.
32598#
32599
32600# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000032601if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032602 withval=$with_xml; with_xml=$withval
32603else
cristyfc3d0222012-02-07 15:05:57 +000032604 with_xml='yes'
cristy3ed852e2009-09-05 21:47:34 +000032605fi
32606
32607
cristy81beccd2011-10-03 18:17:24 +000032608if test "$with_xml" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000032609 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
32610fi
32611
cristy81beccd2011-10-03 18:17:24 +000032612have_xml='no'
32613XML_LIBS=''
32614if test "$with_xml" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000032615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32616$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
32618$as_echo_n "checking for XML... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32620$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032621 PERSIST_LDFLAGS=$LDFLAGS
32622 PERSIST_CPPFLAGS=$CPPFLAGS
32623 xml2_config=''
32624 # Extract the first word of "xml2-config", so it can be a program name with args.
32625set dummy xml2-config; ac_word=$2
32626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32627$as_echo_n "checking for $ac_word... " >&6; }
32628if ${ac_cv_path_xml2_config+:} false; then :
32629 $as_echo_n "(cached) " >&6
32630else
32631 case $xml2_config in
32632 [\\/]* | ?:[\\/]*)
32633 ac_cv_path_xml2_config="$xml2_config" # Let the user override the test with a path.
32634 ;;
32635 *)
32636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32637for as_dir in $PATH
32638do
32639 IFS=$as_save_IFS
32640 test -z "$as_dir" && as_dir=.
32641 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy81beccd2011-10-03 18:17:24 +000032643 ac_cv_path_xml2_config="$as_dir/$ac_word$ac_exec_ext"
32644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32645 break 2
32646 fi
32647done
32648 done
32649IFS=$as_save_IFS
32650
32651 ;;
32652esac
32653fi
32654xml2_config=$ac_cv_path_xml2_config
32655if test -n "$xml2_config"; then
32656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
32657$as_echo "$xml2_config" >&6; }
32658else
32659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32660$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032661fi
32662
cristy81beccd2011-10-03 18:17:24 +000032663 if test -n "$xml2_config"; then
32664 # Debian installs libxml headers under /usr/include/libxml2/libxml with
32665 # the shared library installed under /usr/lib, whereas the package
32666 # installs itself under $prefix/libxml and $prefix/lib.
cristy4a069772014-10-05 19:26:36 +000032667 xml2_prefix=`${xml2_config} --prefix`
cristy81beccd2011-10-03 18:17:24 +000032668 if test -d "${xml2_prefix}/include/libxml2"; then
32669 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
32670 fi
32671 if test "${xml2_prefix}" != '/usr'; then
32672 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
32673 fi
32674 fi
32675 failed=0
32676 passed=0
32677 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
32678if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
32679 passed=`expr $passed + 1`
32680else
32681 failed=`expr $failed + 1`
32682fi
32683
32684
32685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSAXVersion in -lxml2" >&5
32686$as_echo_n "checking for xmlSAXVersion in -lxml2... " >&6; }
32687if ${ac_cv_lib_xml2_xmlSAXVersion+:} false; then :
32688 $as_echo_n "(cached) " >&6
32689else
32690 ac_check_lib_save_LIBS=$LIBS
32691LIBS="-lxml2 $LIBS"
32692cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32693/* end confdefs.h. */
32694
32695/* Override any GCC internal prototype to avoid an error.
32696 Use char because int might match the return type of a GCC
32697 builtin and then its argument prototype would still apply. */
32698#ifdef __cplusplus
32699extern "C"
32700#endif
32701char xmlSAXVersion ();
32702int
32703main ()
32704{
32705return xmlSAXVersion ();
32706 ;
32707 return 0;
32708}
32709_ACEOF
32710if ac_fn_c_try_link "$LINENO"; then :
32711 ac_cv_lib_xml2_xmlSAXVersion=yes
32712else
32713 ac_cv_lib_xml2_xmlSAXVersion=no
32714fi
32715rm -f core conftest.err conftest.$ac_objext \
32716 conftest$ac_exeext conftest.$ac_ext
32717LIBS=$ac_check_lib_save_LIBS
32718fi
32719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSAXVersion" >&5
32720$as_echo "$ac_cv_lib_xml2_xmlSAXVersion" >&6; }
32721if test "x$ac_cv_lib_xml2_xmlSAXVersion" = xyes; then :
32722 passed=`expr $passed + 1`
32723else
32724 failed=`expr $failed + 1`
32725fi
32726
32727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseChunk in -lxml2" >&5
32728$as_echo_n "checking for xmlParseChunk in -lxml2... " >&6; }
32729if ${ac_cv_lib_xml2_xmlParseChunk+:} false; then :
32730 $as_echo_n "(cached) " >&6
32731else
32732 ac_check_lib_save_LIBS=$LIBS
32733LIBS="-lxml2 $LIBS"
32734cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32735/* end confdefs.h. */
32736
32737/* Override any GCC internal prototype to avoid an error.
32738 Use char because int might match the return type of a GCC
32739 builtin and then its argument prototype would still apply. */
32740#ifdef __cplusplus
32741extern "C"
32742#endif
32743char xmlParseChunk ();
32744int
32745main ()
32746{
32747return xmlParseChunk ();
32748 ;
32749 return 0;
32750}
32751_ACEOF
32752if ac_fn_c_try_link "$LINENO"; then :
32753 ac_cv_lib_xml2_xmlParseChunk=yes
32754else
32755 ac_cv_lib_xml2_xmlParseChunk=no
32756fi
32757rm -f core conftest.err conftest.$ac_objext \
32758 conftest$ac_exeext conftest.$ac_ext
32759LIBS=$ac_check_lib_save_LIBS
32760fi
32761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseChunk" >&5
32762$as_echo "$ac_cv_lib_xml2_xmlParseChunk" >&6; }
32763if test "x$ac_cv_lib_xml2_xmlParseChunk" = xyes; then :
32764 passed=`expr $passed + 1`
32765else
32766 failed=`expr $failed + 1`
32767fi
32768
32769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlCreatePushParserCtxt in -lxml2" >&5
32770$as_echo_n "checking for xmlCreatePushParserCtxt in -lxml2... " >&6; }
32771if ${ac_cv_lib_xml2_xmlCreatePushParserCtxt+:} false; then :
32772 $as_echo_n "(cached) " >&6
32773else
32774 ac_check_lib_save_LIBS=$LIBS
32775LIBS="-lxml2 $LIBS"
32776cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32777/* end confdefs.h. */
32778
32779/* Override any GCC internal prototype to avoid an error.
32780 Use char because int might match the return type of a GCC
32781 builtin and then its argument prototype would still apply. */
32782#ifdef __cplusplus
32783extern "C"
32784#endif
32785char xmlCreatePushParserCtxt ();
32786int
32787main ()
32788{
32789return xmlCreatePushParserCtxt ();
32790 ;
32791 return 0;
32792}
32793_ACEOF
32794if ac_fn_c_try_link "$LINENO"; then :
32795 ac_cv_lib_xml2_xmlCreatePushParserCtxt=yes
32796else
32797 ac_cv_lib_xml2_xmlCreatePushParserCtxt=no
32798fi
32799rm -f core conftest.err conftest.$ac_objext \
32800 conftest$ac_exeext conftest.$ac_ext
32801LIBS=$ac_check_lib_save_LIBS
32802fi
32803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&5
32804$as_echo "$ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&6; }
32805if test "x$ac_cv_lib_xml2_xmlCreatePushParserCtxt" = xyes; then :
32806 passed=`expr $passed + 1`
32807else
32808 failed=`expr $failed + 1`
32809fi
32810
32811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
32812$as_echo_n "checking if XML package is complete... " >&6; }
32813 if test $passed -gt 0; then
32814 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000032815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32816$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032817 have_xml='no (failed tests)'
32818 LDFLAGS="$PERSIST_LDFLAGS"
32819 CPPFLAGS="$PERSIST_CPPFLAGS"
32820 else
32821 XML_LIBS='-lxml2'
32822 LIBS="$XML_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032823
cristy8b350f62009-11-15 23:12:43 +000032824$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032825
cristyad38abe2012-12-23 23:03:21 +000032826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32827$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032828 have_xml='yes'
32829 fi
32830 else
cristyad38abe2012-12-23 23:03:21 +000032831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32832$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032833 fi
32834fi
cristy73bd4a52010-10-05 11:24:23 +000032835 if test "$have_xml" = 'yes'; then
32836 XML_DELEGATE_TRUE=
32837 XML_DELEGATE_FALSE='#'
32838else
32839 XML_DELEGATE_TRUE='#'
32840 XML_DELEGATE_FALSE=
32841fi
32842
cristy3ed852e2009-09-05 21:47:34 +000032843
32844
32845
32846# Substitute compiler name to build/link PerlMagick
32847#
32848
32849
32850#
32851# Configure install Paths
32852#
cristy7def36a2011-10-28 19:04:41 +000032853
cristy2a11bef2011-10-28 18:33:11 +000032854# Path to ImageMagick header files
cristybdabdd62013-03-04 17:43:36 +000032855INCLUDE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristye52f12f2012-12-31 15:32:36 +000032856INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}"
32857DEFINE_INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}/"
cristy2a11bef2011-10-28 18:33:11 +000032858case "${build_os}" in
32859 mingw* )
32860 DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1`
32861 ;;
32862esac
32863
32864cat >>confdefs.h <<_ACEOF
32865#define INCLUDE_PATH "$DEFINE_INCLUDE_PATH"
32866_ACEOF
32867
32868
cristy3ed852e2009-09-05 21:47:34 +000032869
cristye52f12f2012-12-31 15:32:36 +000032870# Path to ImageMagick header files (arch part)
32871INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}"
32872DEFINE_INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/"
32873case "${build_os}" in
32874 mingw* )
32875 DEFINE_INCLUDEARCH_PATH=`$WinPathScript "$DEFINE_INCLUDEARCH_PATH" 1`
32876 ;;
32877esac
32878
32879cat >>confdefs.h <<_ACEOF
32880#define INCLUDEARCH_PATH "$DEFINE_INCLUDE_PATH"
32881_ACEOF
32882
32883
32884
cristy3ed852e2009-09-05 21:47:34 +000032885# Subdirectory under lib to place ImageMagick lib files
32886LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
32887
32888cat >>confdefs.h <<_ACEOF
32889#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
32890_ACEOF
32891
32892
32893# Path to ImageMagick bin directory
32894EXECUTABLE_PATH="${BIN_DIR}"
32895DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
32896case "${build_os}" in
32897 mingw* )
32898 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
32899 ;;
32900esac
32901
32902cat >>confdefs.h <<_ACEOF
32903#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
32904_ACEOF
32905
32906
32907
32908# Path to ImageMagick lib
32909LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
32910DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
32911case "${build_os}" in
32912 mingw* )
32913 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
32914 ;;
32915esac
32916
32917cat >>confdefs.h <<_ACEOF
32918#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
32919_ACEOF
32920
32921
32922
cristy3ed852e2009-09-05 21:47:34 +000032923#
cristy8d0ff762013-03-10 20:33:28 +000032924# path to local binaries
32925if test "x$LIB_BIN_BASEDIRNAME" = "x"; then
32926 LIB_BIN_BASEDIRNAME="bin"
32927fi
32928
32929cat >>confdefs.h <<_ACEOF
32930#define LIB_BIN_BASEDIRNAME "$LIB_BIN_BASEDIRNAME"
32931_ACEOF
32932
32933
32934
32935if test "x$LIB_BIN_DIR" = "x"; then
32936 LIB_BIN_DIR=${LIB_BIN_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32937fi
32938
32939
32940LIB_BIN_DIR_RELATIVE_PATH=$LIB_BIN_DIR
32941
32942LIB_BIN_DIR_PATH="${LIBRARY_PATH}/${LIB_BIN_DIR_RELATIVE_PATH}"
32943
32944
32945#
cristy01ff9f32012-12-01 18:15:29 +000032946# path to modules lib
32947if test "x$MODULES_BASEDIRNAME" = "x"; then
32948 MODULES_BASEDIRNAME="modules"
32949fi
cristy3ed852e2009-09-05 21:47:34 +000032950
32951cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032952#define MODULES_BASEDIRNAME "$MODULES_BASEDIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032953_ACEOF
32954
cristy01ff9f32012-12-01 18:15:29 +000032955
32956
32957if test "x$MODULES_DIRNAME" = "x"; then
cristy4bdbd342012-12-03 18:41:18 +000032958 MODULES_DIRNAME=${MODULES_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32959else
cristy3ed852e2009-09-05 21:47:34 +000032960
32961cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032962#define MODULES_DIRNAME "$MODULES_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032963_ACEOF
32964
cristycf4a3c22012-12-02 21:47:25 +000032965fi
cristy01ff9f32012-12-01 18:15:29 +000032966
32967
cristy371d4812012-12-01 19:48:10 +000032968MODULES_RELATIVE_PATH="${MODULES_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032969
32970MODULES_PATH="${LIBRARY_PATH}/${MODULES_RELATIVE_PATH}"
32971
32972
32973#
32974# path to coders lib
32975if test "x$CODER_DIRNAME" = "x"; then
32976 CODER_DIRNAME="coders"
32977fi
32978
32979cat >>confdefs.h <<_ACEOF
32980#define CODER_DIRNAME "$CODER_DIRNAME"
32981_ACEOF
32982
32983
32984
cristy371d4812012-12-01 19:48:10 +000032985CODER_RELATIVE_PATH="${CODER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032986CODER_PATH="${MODULES_PATH}/${CODER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000032987
32988
32989#
32990# Subdirectory under lib to place ImageMagick filter module files
cristy01ff9f32012-12-01 18:15:29 +000032991#
32992# path to coders lib
32993if test "x$FILTER_DIRNAME" = "x"; then
32994 FILTER_DIRNAME="filters"
32995fi
cristy3ed852e2009-09-05 21:47:34 +000032996
32997cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032998#define FILTER_DIRNAME "$FILTER_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032999_ACEOF
33000
cristy3ed852e2009-09-05 21:47:34 +000033001
cristy3ed852e2009-09-05 21:47:34 +000033002
cristy371d4812012-12-01 19:48:10 +000033003FILTER_RELATIVE_PATH="${FILTER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000033004FILTER_PATH="${MODULES_PATH}/${FILTER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000033005
33006
33007#
33008# Path to ImageMagick documentation files
cristybdabdd62013-03-04 17:43:36 +000033009DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristyd55889c2011-03-27 00:50:24 +000033010DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
33011DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000033012case "${build_os}" in
33013 mingw* )
33014 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
33015 ;;
33016esac
33017
33018cat >>confdefs.h <<_ACEOF
33019#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
33020_ACEOF
33021
33022
33023
cristydd17feb2014-03-05 02:06:32 +000033024#
33025# Enable/Disable documentation
33026# Check whether --enable-docs was given.
33027if test "${enable_docs+set}" = set; then :
33028 enableval=$enable_docs; wantdocs=$enableval
33029else
cristy02272312014-03-07 00:55:25 +000033030 wantdocs=yes
cristydd17feb2014-03-05 02:06:32 +000033031fi
33032
cristy02272312014-03-07 00:55:25 +000033033 if test "$wantdocs" = "yes"; then
cristydd17feb2014-03-05 02:06:32 +000033034 INSTALL_DOC_TRUE=
33035 INSTALL_DOC_FALSE='#'
33036else
33037 INSTALL_DOC_TRUE='#'
33038 INSTALL_DOC_FALSE=
33039fi
33040
33041
cristy2a11bef2011-10-28 18:33:11 +000033042# Subdirectory to place architecture-dependent configuration files
cristybdabdd62013-03-04 17:43:36 +000033043CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristy45dbd322011-03-27 16:40:38 +000033044
33045cat >>confdefs.h <<_ACEOF
33046#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
33047_ACEOF
33048
cristy7def36a2011-10-28 19:04:41 +000033049CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
cristy45dbd322011-03-27 16:40:38 +000033050DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
33051case "${build_os}" in
33052 mingw* )
33053 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
33054 ;;
33055esac
33056
33057cat >>confdefs.h <<_ACEOF
33058#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
33059_ACEOF
33060
33061
33062
cristy2a11bef2011-10-28 18:33:11 +000033063# Subdirectory to place architecture-independent configuration files
cristybdabdd62013-03-04 17:43:36 +000033064SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristy3ed852e2009-09-05 21:47:34 +000033065
33066cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000033067#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000033068_ACEOF
33069
cristy670aa3c2011-11-03 00:54:00 +000033070SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
cristy4f820712011-04-01 12:35:43 +000033071DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000033072case "${build_os}" in
33073 mingw* )
cristy4f820712011-04-01 12:35:43 +000033074 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000033075 ;;
33076esac
33077
33078cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000033079#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000033080_ACEOF
33081
33082
33083
cristy54378032012-12-04 15:52:20 +000033084#
33085# Subdirectory to place architecture-dependent configuration files.
33086if test "x$SHAREARCH_BASEDIRNAME" = "x"; then
33087 SHAREARCH_BASEDIRNAME="config"
33088fi
cristy670aa3c2011-11-03 00:54:00 +000033089
33090cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000033091#define SHAREARCH_BASEDIRNAME "$SHAREARCH_BASEDIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000033092_ACEOF
33093
cristy54378032012-12-04 15:52:20 +000033094
33095
33096if test "x$SHAREARCH_DIRNAME" = "x"; then
33097 SHAREARCH_DIRNAME=${SHAREARCH_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
33098else
cristy670aa3c2011-11-03 00:54:00 +000033099
33100cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000033101#define SHAREARCH_DIRNAME "$SHAREARCH_DIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000033102_ACEOF
33103
cristy54378032012-12-04 15:52:20 +000033104fi
33105
33106
33107SHAREARCH_RELATIVE_PATH="${SHAREARCH_DIRNAME}"
33108
33109SHAREARCH_PATH="${LIBRARY_PATH}/${SHAREARCH_RELATIVE_PATH}"
cristy670aa3c2011-11-03 00:54:00 +000033110
33111
cristy3ed852e2009-09-05 21:47:34 +000033112#
33113# program_transform_name is formed for use in a Makefile, so create a
33114# modified version for use in a shell script.
33115configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
33116
33117# Default delegate definitions
cristyad38abe2012-12-23 23:03:21 +000033118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
33119$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000033120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000033121$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000033122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
33123$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000033124AutotraceDecodeDelegateDefault='autotrace'
cristy16b412d2014-12-15 11:09:48 +000033125BPGDecodeDelegateDefault='bpgdec'
33126BPGEncodeDelegateDefault='bpgenc'
cristy3d7f8062009-09-24 20:45:35 +000033127BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000033128BZIPDelegateDefault='bzip2'
33129BrowseDelegateDefault='xdg-open'
cristy3ed852e2009-09-05 21:47:34 +000033130CatDelegateDefault='cat'
33131DNGDecodeDelegateDefault='ufraw-batch'
cristy66f238e2014-05-16 12:21:48 +000033132DOCDecodeDelegateDefault='soffice'
cristy3ed852e2009-09-05 21:47:34 +000033133GVCDecodeDelegateDefault='dot'
33134DVIDecodeDelegateDefault='dvips'
33135EchoDelegateDefault='echo'
33136EditorDelegateDefault='xterm'
cristy3ed852e2009-09-05 21:47:34 +000033137ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
33138DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
33139MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
33140GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000033141HPGLDecodeDelegateDefault='hp2xx'
33142HTMLDecodeDelegateDefault='html2ps'
33143ILBMDecodeDelegateDefault='ilbmtoppm'
33144ILBMEncodeDelegateDefault='ppmtoilbm'
cristy71f53d52013-04-27 13:33:59 +000033145JXRDecodeDelegateDefault='JxrDecApp'
33146JXREncodeDelegateDefault='JxrEncApp'
cristy3ed852e2009-09-05 21:47:34 +000033147LPDelegateDefault='lp'
33148LPRDelegateDefault='lpr'
cristy3ed852e2009-09-05 21:47:34 +000033149LaunchDelegateDefault='gimp'
33150MANDelegateDefault='groff'
cristy81ab5af2013-10-06 18:28:39 +000033151MPEGDecodeDelegateDefault='avconv'
33152MPEGEncodeDelegateDefault='avconv'
cristy935c86e2010-06-05 23:50:07 +000033153MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000033154MVDelegateDefault='mv'
33155PCLDelegateDefault='pcl6'
33156PGPDecodeDelegateDefault='pgpv'
33157POVDelegateDefault='povray'
33158if test "$native_win32_build" = 'yes'; then
33159 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000033160elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000033161 PSDelegateDefault='gsc'
33162else
33163 PSDelegateDefault='gs'
33164fi
33165RLEEncodeDelegateDefault='rawtorle'
33166RMDelegateDefault='rm'
cristy5281e322012-02-09 21:12:45 +000033167RSVGDecodeDelegateDefault='rsvg-convert'
cristy3ed852e2009-09-05 21:47:34 +000033168SCANDecodeDelegateDefault='scanimage'
cristyec6934f2012-08-14 18:38:40 +000033169SVGDecodeDelegateDefault='inkscape'
cristy3ed852e2009-09-05 21:47:34 +000033170TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000033171UniconvertorDelegateDefault='uniconvertor'
cristy86e86092013-08-04 17:43:57 +000033172WebPDecodeDelegateDefault='dwebp'
33173WebPEncodeDelegateDefault='cwebp'
cristy3ed852e2009-09-05 21:47:34 +000033174WMFDecodeDelegateDefault='wmf2eps'
33175WWWDecodeDelegateDefault='curl'
33176XPSDelegateDefault='gxps'
33177ZipDelegateDefault='gzip'
33178
33179# Search for delegates
33180# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
33181set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033183$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033184if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033185 $as_echo_n "(cached) " >&6
33186else
33187 case $AutotraceDecodeDelegate in
33188 [\\/]* | ?:[\\/]*)
33189 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
33190 ;;
33191 *)
33192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33193for as_dir in $PATH
33194do
33195 IFS=$as_save_IFS
33196 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033197 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033199 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033201 break 2
33202 fi
33203done
cristy8b350f62009-11-15 23:12:43 +000033204 done
cristy3ed852e2009-09-05 21:47:34 +000033205IFS=$as_save_IFS
33206
33207 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
33208 ;;
33209esac
33210fi
33211AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
33212if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033214$as_echo "$AutotraceDecodeDelegate" >&6; }
33215else
cristy8b350f62009-11-15 23:12:43 +000033216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033217$as_echo "no" >&6; }
33218fi
33219
33220
cristy16b412d2014-12-15 11:09:48 +000033221# Extract the first word of ""$BGPDecodeDelegateDefault"", so it can be a program name with args.
33222set dummy "$BGPDecodeDelegateDefault"; ac_word=$2
33223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33224$as_echo_n "checking for $ac_word... " >&6; }
33225if ${ac_cv_path_BGPDecodeDelegate+:} false; then :
33226 $as_echo_n "(cached) " >&6
33227else
33228 case $BGPDecodeDelegate in
33229 [\\/]* | ?:[\\/]*)
33230 ac_cv_path_BGPDecodeDelegate="$BGPDecodeDelegate" # Let the user override the test with a path.
33231 ;;
33232 *)
33233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33234for as_dir in $PATH
33235do
33236 IFS=$as_save_IFS
33237 test -z "$as_dir" && as_dir=.
33238 for ac_exec_ext in '' $ac_executable_extensions; do
33239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33240 ac_cv_path_BGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33242 break 2
33243 fi
33244done
33245 done
33246IFS=$as_save_IFS
33247
33248 test -z "$ac_cv_path_BGPDecodeDelegate" && ac_cv_path_BGPDecodeDelegate=""$BGPDecodeDelegateDefault""
33249 ;;
33250esac
33251fi
33252BGPDecodeDelegate=$ac_cv_path_BGPDecodeDelegate
33253if test -n "$BGPDecodeDelegate"; then
33254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BGPDecodeDelegate" >&5
33255$as_echo "$BGPDecodeDelegate" >&6; }
33256else
33257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33258$as_echo "no" >&6; }
33259fi
33260
33261
33262# Extract the first word of ""$BGPEncodeDelegateDefault"", so it can be a program name with args.
33263set dummy "$BGPEncodeDelegateDefault"; ac_word=$2
33264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33265$as_echo_n "checking for $ac_word... " >&6; }
33266if ${ac_cv_path_BGPEncodeDelegate+:} false; then :
33267 $as_echo_n "(cached) " >&6
33268else
33269 case $BGPEncodeDelegate in
33270 [\\/]* | ?:[\\/]*)
33271 ac_cv_path_BGPEncodeDelegate="$BGPEncodeDelegate" # Let the user override the test with a path.
33272 ;;
33273 *)
33274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33275for as_dir in $PATH
33276do
33277 IFS=$as_save_IFS
33278 test -z "$as_dir" && as_dir=.
33279 for ac_exec_ext in '' $ac_executable_extensions; do
33280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33281 ac_cv_path_BGPEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33283 break 2
33284 fi
33285done
33286 done
33287IFS=$as_save_IFS
33288
33289 test -z "$ac_cv_path_BGPEncodeDelegate" && ac_cv_path_BGPEncodeDelegate=""$BGPEncodeDelegateDefault""
33290 ;;
33291esac
33292fi
33293BGPEncodeDelegate=$ac_cv_path_BGPEncodeDelegate
33294if test -n "$BGPEncodeDelegate"; then
33295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BGPEncodeDelegate" >&5
33296$as_echo "$BGPEncodeDelegate" >&6; }
33297else
33298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33299$as_echo "no" >&6; }
33300fi
33301
33302
cristy3ed852e2009-09-05 21:47:34 +000033303# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
33304set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033306$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033307if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033308 $as_echo_n "(cached) " >&6
33309else
33310 case $BlenderDecodeDelegate in
33311 [\\/]* | ?:[\\/]*)
33312 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
33313 ;;
33314 *)
33315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33316for as_dir in $PATH
33317do
33318 IFS=$as_save_IFS
33319 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033320 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033322 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033324 break 2
33325 fi
33326done
cristy8b350f62009-11-15 23:12:43 +000033327 done
cristy3ed852e2009-09-05 21:47:34 +000033328IFS=$as_save_IFS
33329
33330 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
33331 ;;
33332esac
33333fi
33334BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
33335if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033337$as_echo "$BlenderDecodeDelegate" >&6; }
33338else
cristy8b350f62009-11-15 23:12:43 +000033339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033340$as_echo "no" >&6; }
33341fi
33342
33343
33344# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
33345set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033347$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033348if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033349 $as_echo_n "(cached) " >&6
33350else
33351 case $BZIPDelegate in
33352 [\\/]* | ?:[\\/]*)
33353 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
33354 ;;
33355 *)
33356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33357for as_dir in $PATH
33358do
33359 IFS=$as_save_IFS
33360 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033361 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033363 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033365 break 2
33366 fi
33367done
cristy8b350f62009-11-15 23:12:43 +000033368 done
cristy3ed852e2009-09-05 21:47:34 +000033369IFS=$as_save_IFS
33370
33371 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
33372 ;;
33373esac
33374fi
33375BZIPDelegate=$ac_cv_path_BZIPDelegate
33376if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033378$as_echo "$BZIPDelegate" >&6; }
33379else
cristy8b350f62009-11-15 23:12:43 +000033380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033381$as_echo "no" >&6; }
33382fi
33383
33384
cristyc59f0e72012-08-27 12:59:33 +000033385for ac_prog in "$BrowseDelegateDefault" google-chrome firefox konqueror mozilla lynx
33386do
33387 # Extract the first word of "$ac_prog", so it can be a program name with args.
33388set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033390$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033391if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033392 $as_echo_n "(cached) " >&6
33393else
33394 case $BrowseDelegate in
33395 [\\/]* | ?:[\\/]*)
33396 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
33397 ;;
33398 *)
33399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33400for as_dir in $PATH
33401do
33402 IFS=$as_save_IFS
33403 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033404 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033406 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033408 break 2
33409 fi
33410done
cristy8b350f62009-11-15 23:12:43 +000033411 done
cristy3ed852e2009-09-05 21:47:34 +000033412IFS=$as_save_IFS
33413
cristy3ed852e2009-09-05 21:47:34 +000033414 ;;
33415esac
33416fi
33417BrowseDelegate=$ac_cv_path_BrowseDelegate
33418if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033420$as_echo "$BrowseDelegate" >&6; }
33421else
cristy8b350f62009-11-15 23:12:43 +000033422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033423$as_echo "no" >&6; }
33424fi
33425
33426
cristyc59f0e72012-08-27 12:59:33 +000033427 test -n "$BrowseDelegate" && break
33428done
33429test -n "$BrowseDelegate" || BrowseDelegate=""$BrowseDelegateDefault""
33430
cristy3ed852e2009-09-05 21:47:34 +000033431# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
33432set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033434$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033435if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033436 $as_echo_n "(cached) " >&6
33437else
33438 case $CatDelegate in
33439 [\\/]* | ?:[\\/]*)
33440 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
33441 ;;
33442 *)
33443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33444for as_dir in $PATH
33445do
33446 IFS=$as_save_IFS
33447 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033448 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033450 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033452 break 2
33453 fi
33454done
cristy8b350f62009-11-15 23:12:43 +000033455 done
cristy3ed852e2009-09-05 21:47:34 +000033456IFS=$as_save_IFS
33457
33458 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
33459 ;;
33460esac
33461fi
33462CatDelegate=$ac_cv_path_CatDelegate
33463if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033465$as_echo "$CatDelegate" >&6; }
33466else
cristy8b350f62009-11-15 23:12:43 +000033467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033468$as_echo "no" >&6; }
33469fi
33470
33471
33472# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
33473set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033475$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033476if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033477 $as_echo_n "(cached) " >&6
33478else
33479 case $DNGDecodeDelegate in
33480 [\\/]* | ?:[\\/]*)
33481 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
33482 ;;
33483 *)
33484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33485for as_dir in $PATH
33486do
33487 IFS=$as_save_IFS
33488 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033489 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033491 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033493 break 2
33494 fi
33495done
cristy8b350f62009-11-15 23:12:43 +000033496 done
cristy3ed852e2009-09-05 21:47:34 +000033497IFS=$as_save_IFS
33498
33499 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
33500 ;;
33501esac
33502fi
33503DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
33504if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033506$as_echo "$DNGDecodeDelegate" >&6; }
33507else
cristy8b350f62009-11-15 23:12:43 +000033508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033509$as_echo "no" >&6; }
33510fi
33511
33512
cristy66f238e2014-05-16 12:21:48 +000033513# Extract the first word of ""$DOCDecodeDelegateDefault"", so it can be a program name with args.
33514set dummy "$DOCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033516$as_echo_n "checking for $ac_word... " >&6; }
cristy66f238e2014-05-16 12:21:48 +000033517if ${ac_cv_path_DOCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033518 $as_echo_n "(cached) " >&6
33519else
cristy66f238e2014-05-16 12:21:48 +000033520 case $DOCDecodeDelegate in
cristy3ed852e2009-09-05 21:47:34 +000033521 [\\/]* | ?:[\\/]*)
cristy66f238e2014-05-16 12:21:48 +000033522 ac_cv_path_DOCDecodeDelegate="$DOCDecodeDelegate" # Let the user override the test with a path.
cristy3ed852e2009-09-05 21:47:34 +000033523 ;;
33524 *)
33525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33526for as_dir in $PATH
33527do
33528 IFS=$as_save_IFS
33529 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033530 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy66f238e2014-05-16 12:21:48 +000033532 ac_cv_path_DOCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033534 break 2
33535 fi
33536done
cristy8b350f62009-11-15 23:12:43 +000033537 done
cristy3ed852e2009-09-05 21:47:34 +000033538IFS=$as_save_IFS
33539
cristy66f238e2014-05-16 12:21:48 +000033540 test -z "$ac_cv_path_DOCDecodeDelegate" && ac_cv_path_DOCDecodeDelegate=""$DOCDecodeDelegateDefault""
cristy3ed852e2009-09-05 21:47:34 +000033541 ;;
33542esac
33543fi
cristy66f238e2014-05-16 12:21:48 +000033544DOCDecodeDelegate=$ac_cv_path_DOCDecodeDelegate
33545if test -n "$DOCDecodeDelegate"; then
33546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOCDecodeDelegate" >&5
33547$as_echo "$DOCDecodeDelegate" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000033548else
cristy8b350f62009-11-15 23:12:43 +000033549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033550$as_echo "no" >&6; }
33551fi
33552
33553
33554# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
33555set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033557$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033558if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033559 $as_echo_n "(cached) " >&6
33560else
33561 case $DVIDecodeDelegate in
33562 [\\/]* | ?:[\\/]*)
33563 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
33564 ;;
33565 *)
33566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33567for as_dir in $PATH
33568do
33569 IFS=$as_save_IFS
33570 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033571 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033573 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033575 break 2
33576 fi
33577done
cristy8b350f62009-11-15 23:12:43 +000033578 done
cristy3ed852e2009-09-05 21:47:34 +000033579IFS=$as_save_IFS
33580
33581 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
33582 ;;
33583esac
33584fi
33585DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
33586if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033588$as_echo "$DVIDecodeDelegate" >&6; }
33589else
cristy8b350f62009-11-15 23:12:43 +000033590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033591$as_echo "no" >&6; }
33592fi
33593
33594
cristy3ed852e2009-09-05 21:47:34 +000033595# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
33596set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033598$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033599if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033600 $as_echo_n "(cached) " >&6
33601else
33602 case $ConvertDelegate in
33603 [\\/]* | ?:[\\/]*)
33604 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
33605 ;;
33606 *)
33607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33608for as_dir in $PATH
33609do
33610 IFS=$as_save_IFS
33611 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033612 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033614 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033616 break 2
33617 fi
33618done
cristy8b350f62009-11-15 23:12:43 +000033619 done
cristy3ed852e2009-09-05 21:47:34 +000033620IFS=$as_save_IFS
33621
33622 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
33623 ;;
33624esac
33625fi
33626ConvertDelegate=$ac_cv_path_ConvertDelegate
33627if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033629$as_echo "$ConvertDelegate" >&6; }
33630else
cristy8b350f62009-11-15 23:12:43 +000033631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033632$as_echo "no" >&6; }
33633fi
33634
33635
33636# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
33637set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033639$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033640if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033641 $as_echo_n "(cached) " >&6
33642else
33643 case $DisplayDelegate in
33644 [\\/]* | ?:[\\/]*)
33645 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
33646 ;;
33647 *)
33648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33649for as_dir in $PATH
33650do
33651 IFS=$as_save_IFS
33652 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033653 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033655 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033657 break 2
33658 fi
33659done
cristy8b350f62009-11-15 23:12:43 +000033660 done
cristy3ed852e2009-09-05 21:47:34 +000033661IFS=$as_save_IFS
33662
33663 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
33664 ;;
33665esac
33666fi
33667DisplayDelegate=$ac_cv_path_DisplayDelegate
33668if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033670$as_echo "$DisplayDelegate" >&6; }
33671else
cristy8b350f62009-11-15 23:12:43 +000033672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033673$as_echo "no" >&6; }
33674fi
33675
33676
cristy66f238e2014-05-16 12:21:48 +000033677# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
33678set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033680$as_echo_n "checking for $ac_word... " >&6; }
cristy66f238e2014-05-16 12:21:48 +000033681if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033682 $as_echo_n "(cached) " >&6
33683else
cristy66f238e2014-05-16 12:21:48 +000033684 case $EchoDelegate in
cristy3ed852e2009-09-05 21:47:34 +000033685 [\\/]* | ?:[\\/]*)
cristy66f238e2014-05-16 12:21:48 +000033686 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
cristy3ed852e2009-09-05 21:47:34 +000033687 ;;
33688 *)
33689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33690for as_dir in $PATH
33691do
33692 IFS=$as_save_IFS
33693 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033694 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy66f238e2014-05-16 12:21:48 +000033696 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033698 break 2
33699 fi
33700done
cristy8b350f62009-11-15 23:12:43 +000033701 done
cristy3ed852e2009-09-05 21:47:34 +000033702IFS=$as_save_IFS
33703
cristy66f238e2014-05-16 12:21:48 +000033704 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
cristy3ed852e2009-09-05 21:47:34 +000033705 ;;
33706esac
33707fi
cristy66f238e2014-05-16 12:21:48 +000033708EchoDelegate=$ac_cv_path_EchoDelegate
33709if test -n "$EchoDelegate"; then
33710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
33711$as_echo "$EchoDelegate" >&6; }
33712else
33713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33714$as_echo "no" >&6; }
33715fi
33716
33717
33718# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
33719set dummy "$EditorDelegateDefault"; ac_word=$2
33720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33721$as_echo_n "checking for $ac_word... " >&6; }
33722if ${ac_cv_path_EditorDelegate+:} false; then :
33723 $as_echo_n "(cached) " >&6
33724else
33725 case $EditorDelegate in
33726 [\\/]* | ?:[\\/]*)
33727 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
33728 ;;
33729 *)
33730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33731for as_dir in $PATH
33732do
33733 IFS=$as_save_IFS
33734 test -z "$as_dir" && as_dir=.
33735 for ac_exec_ext in '' $ac_executable_extensions; do
33736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33737 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
33738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33739 break 2
33740 fi
33741done
33742 done
33743IFS=$as_save_IFS
33744
33745 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
33746 ;;
33747esac
33748fi
33749EditorDelegate=$ac_cv_path_EditorDelegate
33750if test -n "$EditorDelegate"; then
33751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
33752$as_echo "$EditorDelegate" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000033753else
cristy8b350f62009-11-15 23:12:43 +000033754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033755$as_echo "no" >&6; }
33756fi
33757
33758
33759# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
33760set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033762$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033763if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033764 $as_echo_n "(cached) " >&6
33765else
33766 case $GnuplotDecodeDelegate in
33767 [\\/]* | ?:[\\/]*)
33768 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
33769 ;;
33770 *)
33771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33772for as_dir in $PATH
33773do
33774 IFS=$as_save_IFS
33775 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033776 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033778 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033780 break 2
33781 fi
33782done
cristy8b350f62009-11-15 23:12:43 +000033783 done
cristy3ed852e2009-09-05 21:47:34 +000033784IFS=$as_save_IFS
33785
33786 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
33787 ;;
33788esac
33789fi
33790GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
33791if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033793$as_echo "$GnuplotDecodeDelegate" >&6; }
33794else
cristy8b350f62009-11-15 23:12:43 +000033795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033796$as_echo "no" >&6; }
33797fi
33798
33799
cristy66f238e2014-05-16 12:21:48 +000033800# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
33801set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
33802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33803$as_echo_n "checking for $ac_word... " >&6; }
33804if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
33805 $as_echo_n "(cached) " >&6
33806else
33807 case $GVCDecodeDelegate in
33808 [\\/]* | ?:[\\/]*)
33809 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
33810 ;;
33811 *)
33812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33813for as_dir in $PATH
33814do
33815 IFS=$as_save_IFS
33816 test -z "$as_dir" && as_dir=.
33817 for ac_exec_ext in '' $ac_executable_extensions; do
33818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33819 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33821 break 2
33822 fi
33823done
33824 done
33825IFS=$as_save_IFS
33826
33827 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
33828 ;;
33829esac
33830fi
33831GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
33832if test -n "$GVCDecodeDelegate"; then
33833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
33834$as_echo "$GVCDecodeDelegate" >&6; }
33835else
33836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33837$as_echo "no" >&6; }
33838fi
33839
33840
cristy3ed852e2009-09-05 21:47:34 +000033841# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
33842set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033844$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033845if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033846 $as_echo_n "(cached) " >&6
33847else
33848 case $HPGLDecodeDelegate in
33849 [\\/]* | ?:[\\/]*)
33850 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
33851 ;;
33852 *)
33853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33854for as_dir in $PATH
33855do
33856 IFS=$as_save_IFS
33857 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033858 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033860 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033862 break 2
33863 fi
33864done
cristy8b350f62009-11-15 23:12:43 +000033865 done
cristy3ed852e2009-09-05 21:47:34 +000033866IFS=$as_save_IFS
33867
33868 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
33869 ;;
33870esac
33871fi
33872HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
33873if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033875$as_echo "$HPGLDecodeDelegate" >&6; }
33876else
cristy8b350f62009-11-15 23:12:43 +000033877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033878$as_echo "no" >&6; }
33879fi
33880
33881
33882# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
33883set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033885$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033886if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033887 $as_echo_n "(cached) " >&6
33888else
33889 case $HTMLDecodeDelegate in
33890 [\\/]* | ?:[\\/]*)
33891 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
33892 ;;
33893 *)
33894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33895for as_dir in $PATH
33896do
33897 IFS=$as_save_IFS
33898 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033899 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033901 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033903 break 2
33904 fi
33905done
cristy8b350f62009-11-15 23:12:43 +000033906 done
cristy3ed852e2009-09-05 21:47:34 +000033907IFS=$as_save_IFS
33908
33909 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
33910 ;;
33911esac
33912fi
33913HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
33914if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033916$as_echo "$HTMLDecodeDelegate" >&6; }
33917else
cristy8b350f62009-11-15 23:12:43 +000033918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033919$as_echo "no" >&6; }
33920fi
33921
33922
33923# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
33924set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033926$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033927if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033928 $as_echo_n "(cached) " >&6
33929else
33930 case $ILBMDecodeDelegate in
33931 [\\/]* | ?:[\\/]*)
33932 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
33933 ;;
33934 *)
33935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33936for as_dir in $PATH
33937do
33938 IFS=$as_save_IFS
33939 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033940 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033942 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033944 break 2
33945 fi
33946done
cristy8b350f62009-11-15 23:12:43 +000033947 done
cristy3ed852e2009-09-05 21:47:34 +000033948IFS=$as_save_IFS
33949
33950 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
33951 ;;
33952esac
33953fi
33954ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
33955if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033957$as_echo "$ILBMDecodeDelegate" >&6; }
33958else
cristy8b350f62009-11-15 23:12:43 +000033959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033960$as_echo "no" >&6; }
33961fi
33962
33963
33964# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
33965set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033967$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033968if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033969 $as_echo_n "(cached) " >&6
33970else
33971 case $ILBMEncodeDelegate in
33972 [\\/]* | ?:[\\/]*)
33973 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
33974 ;;
33975 *)
33976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33977for as_dir in $PATH
33978do
33979 IFS=$as_save_IFS
33980 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033981 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033983 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033985 break 2
33986 fi
33987done
cristy8b350f62009-11-15 23:12:43 +000033988 done
cristy3ed852e2009-09-05 21:47:34 +000033989IFS=$as_save_IFS
33990
33991 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
33992 ;;
33993esac
33994fi
33995ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
33996if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033998$as_echo "$ILBMEncodeDelegate" >&6; }
33999else
cristy8b350f62009-11-15 23:12:43 +000034000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034001$as_echo "no" >&6; }
34002fi
34003
34004
cristy71f53d52013-04-27 13:33:59 +000034005# Extract the first word of ""$JXRDecodeDelegateDefault"", so it can be a program name with args.
34006set dummy "$JXRDecodeDelegateDefault"; ac_word=$2
34007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34008$as_echo_n "checking for $ac_word... " >&6; }
34009if ${ac_cv_path_JXRDecodeDelegate+:} false; then :
34010 $as_echo_n "(cached) " >&6
34011else
34012 case $JXRDecodeDelegate in
34013 [\\/]* | ?:[\\/]*)
34014 ac_cv_path_JXRDecodeDelegate="$JXRDecodeDelegate" # Let the user override the test with a path.
34015 ;;
34016 *)
34017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34018for as_dir in $PATH
34019do
34020 IFS=$as_save_IFS
34021 test -z "$as_dir" && as_dir=.
34022 for ac_exec_ext in '' $ac_executable_extensions; do
34023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34024 ac_cv_path_JXRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34026 break 2
34027 fi
34028done
34029 done
34030IFS=$as_save_IFS
34031
34032 test -z "$ac_cv_path_JXRDecodeDelegate" && ac_cv_path_JXRDecodeDelegate=""$JXRDecodeDelegateDefault""
34033 ;;
34034esac
34035fi
34036JXRDecodeDelegate=$ac_cv_path_JXRDecodeDelegate
34037if test -n "$JXRDecodeDelegate"; then
34038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXRDecodeDelegate" >&5
34039$as_echo "$JXRDecodeDelegate" >&6; }
34040else
34041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34042$as_echo "no" >&6; }
34043fi
34044
34045
34046# Extract the first word of ""$JXREncodeDelegateDefault"", so it can be a program name with args.
34047set dummy "$JXREncodeDelegateDefault"; ac_word=$2
34048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34049$as_echo_n "checking for $ac_word... " >&6; }
34050if ${ac_cv_path_JXREncodeDelegate+:} false; then :
34051 $as_echo_n "(cached) " >&6
34052else
34053 case $JXREncodeDelegate in
34054 [\\/]* | ?:[\\/]*)
34055 ac_cv_path_JXREncodeDelegate="$JXREncodeDelegate" # Let the user override the test with a path.
34056 ;;
34057 *)
34058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34059for as_dir in $PATH
34060do
34061 IFS=$as_save_IFS
34062 test -z "$as_dir" && as_dir=.
34063 for ac_exec_ext in '' $ac_executable_extensions; do
34064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34065 ac_cv_path_JXREncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34067 break 2
34068 fi
34069done
34070 done
34071IFS=$as_save_IFS
34072
34073 test -z "$ac_cv_path_JXREncodeDelegate" && ac_cv_path_JXREncodeDelegate=""$JXREncodeDelegateDefault""
34074 ;;
34075esac
34076fi
34077JXREncodeDelegate=$ac_cv_path_JXREncodeDelegate
34078if test -n "$JXREncodeDelegate"; then
34079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXREncodeDelegate" >&5
34080$as_echo "$JXREncodeDelegate" >&6; }
34081else
34082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34083$as_echo "no" >&6; }
34084fi
34085
34086
cristy3ed852e2009-09-05 21:47:34 +000034087# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
34088set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034090$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034091if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034092 $as_echo_n "(cached) " >&6
34093else
34094 case $LPDelegate in
34095 [\\/]* | ?:[\\/]*)
34096 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
34097 ;;
34098 *)
34099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34100for as_dir in $PATH
34101do
34102 IFS=$as_save_IFS
34103 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034104 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034106 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034108 break 2
34109 fi
34110done
cristy8b350f62009-11-15 23:12:43 +000034111 done
cristy3ed852e2009-09-05 21:47:34 +000034112IFS=$as_save_IFS
34113
34114 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
34115 ;;
34116esac
34117fi
34118LPDelegate=$ac_cv_path_LPDelegate
34119if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034121$as_echo "$LPDelegate" >&6; }
34122else
cristy8b350f62009-11-15 23:12:43 +000034123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034124$as_echo "no" >&6; }
34125fi
34126
34127
34128# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
34129set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034131$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034132if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034133 $as_echo_n "(cached) " >&6
34134else
34135 case $LPRDelegate in
34136 [\\/]* | ?:[\\/]*)
34137 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
34138 ;;
34139 *)
34140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34141for as_dir in $PATH
34142do
34143 IFS=$as_save_IFS
34144 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034145 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034147 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034149 break 2
34150 fi
34151done
cristy8b350f62009-11-15 23:12:43 +000034152 done
cristy3ed852e2009-09-05 21:47:34 +000034153IFS=$as_save_IFS
34154
34155 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
34156 ;;
34157esac
34158fi
34159LPRDelegate=$ac_cv_path_LPRDelegate
34160if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034162$as_echo "$LPRDelegate" >&6; }
34163else
cristy8b350f62009-11-15 23:12:43 +000034164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034165$as_echo "no" >&6; }
34166fi
34167
34168
cristy3ed852e2009-09-05 21:47:34 +000034169# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
34170set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034172$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034173if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034174 $as_echo_n "(cached) " >&6
34175else
34176 case $LaunchDelegate in
34177 [\\/]* | ?:[\\/]*)
34178 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
34179 ;;
34180 *)
34181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34182for as_dir in $PATH
34183do
34184 IFS=$as_save_IFS
34185 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034186 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034188 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034190 break 2
34191 fi
34192done
cristy8b350f62009-11-15 23:12:43 +000034193 done
cristy3ed852e2009-09-05 21:47:34 +000034194IFS=$as_save_IFS
34195
34196 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
34197 ;;
34198esac
34199fi
34200LaunchDelegate=$ac_cv_path_LaunchDelegate
34201if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034203$as_echo "$LaunchDelegate" >&6; }
34204else
cristy8b350f62009-11-15 23:12:43 +000034205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034206$as_echo "no" >&6; }
34207fi
34208
34209
34210# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
34211set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034213$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034214if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034215 $as_echo_n "(cached) " >&6
34216else
34217 case $MANDelegate in
34218 [\\/]* | ?:[\\/]*)
34219 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
34220 ;;
34221 *)
34222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34223for as_dir in $PATH
34224do
34225 IFS=$as_save_IFS
34226 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034227 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034229 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034231 break 2
34232 fi
34233done
cristy8b350f62009-11-15 23:12:43 +000034234 done
cristy3ed852e2009-09-05 21:47:34 +000034235IFS=$as_save_IFS
34236
34237 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
34238 ;;
34239esac
34240fi
34241MANDelegate=$ac_cv_path_MANDelegate
34242if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034244$as_echo "$MANDelegate" >&6; }
34245else
cristy8b350f62009-11-15 23:12:43 +000034246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034247$as_echo "no" >&6; }
34248fi
34249
34250
cristy66f238e2014-05-16 12:21:48 +000034251# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
34252set dummy "$MogrifyDelegateDefault"; ac_word=$2
34253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34254$as_echo_n "checking for $ac_word... " >&6; }
34255if ${ac_cv_path_MogrifyDelegate+:} false; then :
34256 $as_echo_n "(cached) " >&6
34257else
34258 case $MogrifyDelegate in
34259 [\\/]* | ?:[\\/]*)
34260 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
34261 ;;
34262 *)
34263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34264for as_dir in $PATH
34265do
34266 IFS=$as_save_IFS
34267 test -z "$as_dir" && as_dir=.
34268 for ac_exec_ext in '' $ac_executable_extensions; do
34269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34270 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
34271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34272 break 2
34273 fi
34274done
34275 done
34276IFS=$as_save_IFS
34277
34278 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
34279 ;;
34280esac
34281fi
34282MogrifyDelegate=$ac_cv_path_MogrifyDelegate
34283if test -n "$MogrifyDelegate"; then
34284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
34285$as_echo "$MogrifyDelegate" >&6; }
34286else
34287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34288$as_echo "no" >&6; }
34289fi
34290
34291
cristy3ed852e2009-09-05 21:47:34 +000034292# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
34293set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034295$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034296if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034297 $as_echo_n "(cached) " >&6
34298else
34299 case $MPEGDecodeDelegate in
34300 [\\/]* | ?:[\\/]*)
34301 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
34302 ;;
34303 *)
34304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34305for as_dir in $PATH
34306do
34307 IFS=$as_save_IFS
34308 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034309 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034311 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034313 break 2
34314 fi
34315done
cristy8b350f62009-11-15 23:12:43 +000034316 done
cristy3ed852e2009-09-05 21:47:34 +000034317IFS=$as_save_IFS
34318
34319 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
34320 ;;
34321esac
34322fi
34323MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
34324if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034326$as_echo "$MPEGDecodeDelegate" >&6; }
34327else
cristy8b350f62009-11-15 23:12:43 +000034328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034329$as_echo "no" >&6; }
34330fi
34331
34332
cristy058d15f2014-08-21 18:53:03 +000034333if test "$MPEGDecodeDelegate" = "$MPEGDecodeDelegateDefault" ; then
cristy81ab5af2013-10-06 18:28:39 +000034334 MPEGDecodeDelegateDefault='ffmpeg'
34335 # Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
34336set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
34337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34338$as_echo_n "checking for $ac_word... " >&6; }
34339if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
34340 $as_echo_n "(cached) " >&6
34341else
34342 case $MPEGDecodeDelegate in
34343 [\\/]* | ?:[\\/]*)
34344 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
34345 ;;
34346 *)
34347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34348for as_dir in $PATH
34349do
34350 IFS=$as_save_IFS
34351 test -z "$as_dir" && as_dir=.
34352 for ac_exec_ext in '' $ac_executable_extensions; do
34353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34354 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34356 break 2
34357 fi
34358done
34359 done
34360IFS=$as_save_IFS
34361
34362 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
34363 ;;
34364esac
34365fi
34366MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
34367if test -n "$MPEGDecodeDelegate"; then
34368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
34369$as_echo "$MPEGDecodeDelegate" >&6; }
34370else
34371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34372$as_echo "no" >&6; }
34373fi
34374
34375
34376fi;
cristy3ed852e2009-09-05 21:47:34 +000034377# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
34378set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034380$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034381if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034382 $as_echo_n "(cached) " >&6
34383else
34384 case $MPEGEncodeDelegate in
34385 [\\/]* | ?:[\\/]*)
34386 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
34387 ;;
34388 *)
34389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34390for as_dir in $PATH
34391do
34392 IFS=$as_save_IFS
34393 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034394 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034396 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034398 break 2
34399 fi
34400done
cristy8b350f62009-11-15 23:12:43 +000034401 done
cristy3ed852e2009-09-05 21:47:34 +000034402IFS=$as_save_IFS
34403
34404 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
34405 ;;
34406esac
34407fi
34408MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
34409if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034411$as_echo "$MPEGEncodeDelegate" >&6; }
34412else
cristy8b350f62009-11-15 23:12:43 +000034413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034414$as_echo "no" >&6; }
34415fi
34416
34417
cristy058d15f2014-08-21 18:53:03 +000034418if test "$MPEGEncodeDelegate" = "$MPEGEncodeDelegateDefault" ; then
cristy81ab5af2013-10-06 18:28:39 +000034419 MPEGEncodeDelegateDefault='ffmpeg'
34420 # Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
34421set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
34422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34423$as_echo_n "checking for $ac_word... " >&6; }
34424if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
34425 $as_echo_n "(cached) " >&6
34426else
34427 case $MPEGEncodeDelegate in
34428 [\\/]* | ?:[\\/]*)
34429 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
34430 ;;
34431 *)
34432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34433for as_dir in $PATH
34434do
34435 IFS=$as_save_IFS
34436 test -z "$as_dir" && as_dir=.
34437 for ac_exec_ext in '' $ac_executable_extensions; do
34438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34439 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34441 break 2
34442 fi
34443done
34444 done
34445IFS=$as_save_IFS
34446
34447 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
34448 ;;
34449esac
34450fi
34451MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
34452if test -n "$MPEGEncodeDelegate"; then
34453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
34454$as_echo "$MPEGEncodeDelegate" >&6; }
34455else
34456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34457$as_echo "no" >&6; }
34458fi
34459
34460
34461fi;
cristy935c86e2010-06-05 23:50:07 +000034462# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
34463set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
34464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34465$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034466if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000034467 $as_echo_n "(cached) " >&6
34468else
34469 case $MrSIDDecodeDelegate in
34470 [\\/]* | ?:[\\/]*)
34471 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
34472 ;;
34473 *)
34474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34475for as_dir in $PATH
34476do
34477 IFS=$as_save_IFS
34478 test -z "$as_dir" && as_dir=.
34479 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy935c86e2010-06-05 23:50:07 +000034481 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34483 break 2
34484 fi
34485done
34486 done
34487IFS=$as_save_IFS
34488
34489 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
34490 ;;
34491esac
34492fi
34493MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
34494if test -n "$MrSIDDecodeDelegate"; then
34495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
34496$as_echo "$MrSIDDecodeDelegate" >&6; }
34497else
34498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34499$as_echo "no" >&6; }
34500fi
34501
34502
cristy3ed852e2009-09-05 21:47:34 +000034503# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
34504set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034506$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034507if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034508 $as_echo_n "(cached) " >&6
34509else
34510 case $MVDelegate in
34511 [\\/]* | ?:[\\/]*)
34512 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
34513 ;;
34514 *)
34515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34516for as_dir in $PATH
34517do
34518 IFS=$as_save_IFS
34519 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034520 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034522 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034524 break 2
34525 fi
34526done
cristy8b350f62009-11-15 23:12:43 +000034527 done
cristy3ed852e2009-09-05 21:47:34 +000034528IFS=$as_save_IFS
34529
34530 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
34531 ;;
34532esac
34533fi
34534MVDelegate=$ac_cv_path_MVDelegate
34535if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034537$as_echo "$MVDelegate" >&6; }
34538else
cristy8b350f62009-11-15 23:12:43 +000034539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034540$as_echo "no" >&6; }
34541fi
34542
34543
34544# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
34545set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034547$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034548if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034549 $as_echo_n "(cached) " >&6
34550else
34551 case $PCLDelegate in
34552 [\\/]* | ?:[\\/]*)
34553 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
34554 ;;
34555 *)
34556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34557for as_dir in $PATH
34558do
34559 IFS=$as_save_IFS
34560 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034561 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034563 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034565 break 2
34566 fi
34567done
cristy8b350f62009-11-15 23:12:43 +000034568 done
cristy3ed852e2009-09-05 21:47:34 +000034569IFS=$as_save_IFS
34570
34571 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
34572 ;;
34573esac
34574fi
34575PCLDelegate=$ac_cv_path_PCLDelegate
34576if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034578$as_echo "$PCLDelegate" >&6; }
34579else
cristy8b350f62009-11-15 23:12:43 +000034580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034581$as_echo "no" >&6; }
34582fi
34583
34584
34585# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
34586set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034588$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034589if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034590 $as_echo_n "(cached) " >&6
34591else
34592 case $PGPDecodeDelegate in
34593 [\\/]* | ?:[\\/]*)
34594 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
34595 ;;
34596 *)
34597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34598for as_dir in $PATH
34599do
34600 IFS=$as_save_IFS
34601 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034602 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034604 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034606 break 2
34607 fi
34608done
cristy8b350f62009-11-15 23:12:43 +000034609 done
cristy3ed852e2009-09-05 21:47:34 +000034610IFS=$as_save_IFS
34611
34612 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
34613 ;;
34614esac
34615fi
34616PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
34617if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034619$as_echo "$PGPDecodeDelegate" >&6; }
34620else
cristy8b350f62009-11-15 23:12:43 +000034621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034622$as_echo "no" >&6; }
34623fi
34624
34625
34626# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
34627set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034629$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034630if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034631 $as_echo_n "(cached) " >&6
34632else
34633 case $POVDelegate in
34634 [\\/]* | ?:[\\/]*)
34635 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
34636 ;;
34637 *)
34638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34639for as_dir in $PATH
34640do
34641 IFS=$as_save_IFS
34642 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034643 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034645 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034647 break 2
34648 fi
34649done
cristy8b350f62009-11-15 23:12:43 +000034650 done
cristy3ed852e2009-09-05 21:47:34 +000034651IFS=$as_save_IFS
34652
34653 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
34654 ;;
34655esac
34656fi
34657POVDelegate=$ac_cv_path_POVDelegate
34658if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034660$as_echo "$POVDelegate" >&6; }
34661else
cristy8b350f62009-11-15 23:12:43 +000034662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034663$as_echo "no" >&6; }
34664fi
34665
34666
34667for ac_prog in gsx gsc "$PSDelegateDefault"
34668do
34669 # Extract the first word of "$ac_prog", so it can be a program name with args.
34670set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034672$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034673if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034674 $as_echo_n "(cached) " >&6
34675else
34676 case $PSDelegate in
34677 [\\/]* | ?:[\\/]*)
34678 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
34679 ;;
34680 *)
34681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34682for as_dir in $PATH
34683do
34684 IFS=$as_save_IFS
34685 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034686 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034688 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034690 break 2
34691 fi
34692done
cristy8b350f62009-11-15 23:12:43 +000034693 done
cristy3ed852e2009-09-05 21:47:34 +000034694IFS=$as_save_IFS
34695
34696 ;;
34697esac
34698fi
34699PSDelegate=$ac_cv_path_PSDelegate
34700if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034702$as_echo "$PSDelegate" >&6; }
34703else
cristy8b350f62009-11-15 23:12:43 +000034704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034705$as_echo "no" >&6; }
34706fi
34707
34708
34709 test -n "$PSDelegate" && break
34710done
34711test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
34712
34713# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
34714set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034716$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034717if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034718 $as_echo_n "(cached) " >&6
34719else
34720 case $RLEEncodeDelegate in
34721 [\\/]* | ?:[\\/]*)
34722 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
34723 ;;
34724 *)
34725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34726for as_dir in $PATH
34727do
34728 IFS=$as_save_IFS
34729 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034730 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034732 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034734 break 2
34735 fi
34736done
cristy8b350f62009-11-15 23:12:43 +000034737 done
cristy3ed852e2009-09-05 21:47:34 +000034738IFS=$as_save_IFS
34739
34740 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
34741 ;;
34742esac
34743fi
34744RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
34745if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034747$as_echo "$RLEEncodeDelegate" >&6; }
34748else
cristy8b350f62009-11-15 23:12:43 +000034749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034750$as_echo "no" >&6; }
34751fi
34752
34753
34754# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
34755set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034757$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034758if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034759 $as_echo_n "(cached) " >&6
34760else
34761 case $RMDelegate in
34762 [\\/]* | ?:[\\/]*)
34763 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
34764 ;;
34765 *)
34766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34767for as_dir in $PATH
34768do
34769 IFS=$as_save_IFS
34770 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034771 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034773 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034775 break 2
34776 fi
34777done
cristy8b350f62009-11-15 23:12:43 +000034778 done
cristy3ed852e2009-09-05 21:47:34 +000034779IFS=$as_save_IFS
34780
34781 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
34782 ;;
34783esac
34784fi
34785RMDelegate=$ac_cv_path_RMDelegate
34786if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034788$as_echo "$RMDelegate" >&6; }
34789else
cristy8b350f62009-11-15 23:12:43 +000034790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034791$as_echo "no" >&6; }
34792fi
34793
34794
cristy4689cf02010-02-17 21:15:45 +000034795# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
34796set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
34797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34798$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034799if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000034800 $as_echo_n "(cached) " >&6
34801else
34802 case $RSVGDecodeDelegate in
34803 [\\/]* | ?:[\\/]*)
34804 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
34805 ;;
34806 *)
34807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34808for as_dir in $PATH
34809do
34810 IFS=$as_save_IFS
34811 test -z "$as_dir" && as_dir=.
34812 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy4689cf02010-02-17 21:15:45 +000034814 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34816 break 2
34817 fi
34818done
34819 done
34820IFS=$as_save_IFS
34821
34822 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
34823 ;;
34824esac
34825fi
34826RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
34827if test -n "$RSVGDecodeDelegate"; then
34828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
34829$as_echo "$RSVGDecodeDelegate" >&6; }
34830else
34831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34832$as_echo "no" >&6; }
34833fi
34834
34835
cristy3ed852e2009-09-05 21:47:34 +000034836# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
34837set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034839$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034840if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034841 $as_echo_n "(cached) " >&6
34842else
34843 case $SCANDecodeDelegate in
34844 [\\/]* | ?:[\\/]*)
34845 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
34846 ;;
34847 *)
34848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34849for as_dir in $PATH
34850do
34851 IFS=$as_save_IFS
34852 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034853 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034855 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034857 break 2
34858 fi
34859done
cristy8b350f62009-11-15 23:12:43 +000034860 done
cristy3ed852e2009-09-05 21:47:34 +000034861IFS=$as_save_IFS
34862
34863 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
34864 ;;
34865esac
34866fi
34867SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
34868if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034870$as_echo "$SCANDecodeDelegate" >&6; }
34871else
cristy8b350f62009-11-15 23:12:43 +000034872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034873$as_echo "no" >&6; }
34874fi
34875
34876
cristyec6934f2012-08-14 18:38:40 +000034877# Extract the first word of ""$SVGDecodeDelegateDefault"", so it can be a program name with args.
34878set dummy "$SVGDecodeDelegateDefault"; ac_word=$2
34879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34880$as_echo_n "checking for $ac_word... " >&6; }
34881if ${ac_cv_path_SVGDecodeDelegate+:} false; then :
34882 $as_echo_n "(cached) " >&6
34883else
34884 case $SVGDecodeDelegate in
34885 [\\/]* | ?:[\\/]*)
34886 ac_cv_path_SVGDecodeDelegate="$SVGDecodeDelegate" # Let the user override the test with a path.
34887 ;;
34888 *)
34889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34890for as_dir in $PATH
34891do
34892 IFS=$as_save_IFS
34893 test -z "$as_dir" && as_dir=.
34894 for ac_exec_ext in '' $ac_executable_extensions; do
34895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34896 ac_cv_path_SVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34898 break 2
34899 fi
34900done
34901 done
34902IFS=$as_save_IFS
34903
34904 test -z "$ac_cv_path_SVGDecodeDelegate" && ac_cv_path_SVGDecodeDelegate=""$SVGDecodeDelegateDefault""
34905 ;;
34906esac
34907fi
34908SVGDecodeDelegate=$ac_cv_path_SVGDecodeDelegate
34909if test -n "$SVGDecodeDelegate"; then
34910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVGDecodeDelegate" >&5
34911$as_echo "$SVGDecodeDelegate" >&6; }
34912else
34913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34914$as_echo "no" >&6; }
34915fi
34916
34917
cristy3ed852e2009-09-05 21:47:34 +000034918# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
34919set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034921$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034922if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034923 $as_echo_n "(cached) " >&6
34924else
34925 case $TXTDelegate in
34926 [\\/]* | ?:[\\/]*)
34927 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
34928 ;;
34929 *)
34930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34931for as_dir in $PATH
34932do
34933 IFS=$as_save_IFS
34934 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034935 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034937 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034939 break 2
34940 fi
34941done
cristy8b350f62009-11-15 23:12:43 +000034942 done
cristy3ed852e2009-09-05 21:47:34 +000034943IFS=$as_save_IFS
34944
34945 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
34946 ;;
34947esac
34948fi
34949TXTDelegate=$ac_cv_path_TXTDelegate
34950if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034952$as_echo "$TXTDelegate" >&6; }
34953else
cristy8b350f62009-11-15 23:12:43 +000034954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034955$as_echo "no" >&6; }
34956fi
34957
34958
cristy5ac9ac82010-07-29 13:24:24 +000034959# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
34960set dummy "$UniconvertorDelegateDefault"; ac_word=$2
34961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34962$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034963if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000034964 $as_echo_n "(cached) " >&6
34965else
34966 case $UniconvertorDelegate in
34967 [\\/]* | ?:[\\/]*)
34968 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
34969 ;;
34970 *)
34971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34972for as_dir in $PATH
34973do
34974 IFS=$as_save_IFS
34975 test -z "$as_dir" && as_dir=.
34976 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy5ac9ac82010-07-29 13:24:24 +000034978 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
34979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34980 break 2
34981 fi
34982done
34983 done
34984IFS=$as_save_IFS
34985
34986 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
34987 ;;
34988esac
34989fi
34990UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
34991if test -n "$UniconvertorDelegate"; then
34992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
34993$as_echo "$UniconvertorDelegate" >&6; }
34994else
34995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34996$as_echo "no" >&6; }
34997fi
34998
34999
cristy86e86092013-08-04 17:43:57 +000035000# Extract the first word of ""$WebPDecodeDelegateDefault"", so it can be a program name with args.
35001set dummy "$WebPDecodeDelegateDefault"; ac_word=$2
35002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35003$as_echo_n "checking for $ac_word... " >&6; }
35004if ${ac_cv_path_WebPDecodeDelegate+:} false; then :
35005 $as_echo_n "(cached) " >&6
35006else
35007 case $WebPDecodeDelegate in
35008 [\\/]* | ?:[\\/]*)
35009 ac_cv_path_WebPDecodeDelegate="$WebPDecodeDelegate" # Let the user override the test with a path.
35010 ;;
35011 *)
35012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35013for as_dir in $PATH
35014do
35015 IFS=$as_save_IFS
35016 test -z "$as_dir" && as_dir=.
35017 for ac_exec_ext in '' $ac_executable_extensions; do
35018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35019 ac_cv_path_WebPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
35020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35021 break 2
35022 fi
35023done
35024 done
35025IFS=$as_save_IFS
35026
35027 test -z "$ac_cv_path_WebPDecodeDelegate" && ac_cv_path_WebPDecodeDelegate=""$WebPDecodeDelegateDefault""
35028 ;;
35029esac
35030fi
35031WebPDecodeDelegate=$ac_cv_path_WebPDecodeDelegate
35032if test -n "$WebPDecodeDelegate"; then
35033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WebPDecodeDelegate" >&5
35034$as_echo "$WebPDecodeDelegate" >&6; }
35035else
35036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35037$as_echo "no" >&6; }
35038fi
35039
35040
35041# Extract the first word of ""$WebPEncodeDelegateDefault"", so it can be a program name with args.
35042set dummy "$WebPEncodeDelegateDefault"; ac_word=$2
35043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35044$as_echo_n "checking for $ac_word... " >&6; }
35045if ${ac_cv_path_WebPEncodeDelegate+:} false; then :
35046 $as_echo_n "(cached) " >&6
35047else
35048 case $WebPEncodeDelegate in
35049 [\\/]* | ?:[\\/]*)
35050 ac_cv_path_WebPEncodeDelegate="$WebPEncodeDelegate" # Let the user override the test with a path.
35051 ;;
35052 *)
35053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35054for as_dir in $PATH
35055do
35056 IFS=$as_save_IFS
35057 test -z "$as_dir" && as_dir=.
35058 for ac_exec_ext in '' $ac_executable_extensions; do
35059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35060 ac_cv_path_WebPEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
35061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35062 break 2
35063 fi
35064done
35065 done
35066IFS=$as_save_IFS
35067
35068 test -z "$ac_cv_path_WebPEncodeDelegate" && ac_cv_path_WebPEncodeDelegate=""$WebPEncodeDelegateDefault""
35069 ;;
35070esac
35071fi
35072WebPEncodeDelegate=$ac_cv_path_WebPEncodeDelegate
35073if test -n "$WebPEncodeDelegate"; then
35074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WebPEncodeDelegate" >&5
35075$as_echo "$WebPEncodeDelegate" >&6; }
35076else
35077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35078$as_echo "no" >&6; }
35079fi
35080
35081
cristy3ed852e2009-09-05 21:47:34 +000035082# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
35083set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035085$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035086if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035087 $as_echo_n "(cached) " >&6
35088else
35089 case $WMFDecodeDelegate in
35090 [\\/]* | ?:[\\/]*)
35091 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
35092 ;;
35093 *)
35094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35095for as_dir in $PATH
35096do
35097 IFS=$as_save_IFS
35098 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035099 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035101 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035103 break 2
35104 fi
35105done
cristy8b350f62009-11-15 23:12:43 +000035106 done
cristy3ed852e2009-09-05 21:47:34 +000035107IFS=$as_save_IFS
35108
35109 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
35110 ;;
35111esac
35112fi
35113WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
35114if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000035115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000035116$as_echo "$WMFDecodeDelegate" >&6; }
35117else
cristy8b350f62009-11-15 23:12:43 +000035118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035119$as_echo "no" >&6; }
35120fi
35121
35122
35123# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
35124set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035126$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035127if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035128 $as_echo_n "(cached) " >&6
35129else
35130 case $WWWDecodeDelegate in
35131 [\\/]* | ?:[\\/]*)
35132 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
35133 ;;
35134 *)
35135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35136for as_dir in $PATH
35137do
35138 IFS=$as_save_IFS
35139 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035140 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035142 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035144 break 2
35145 fi
35146done
cristy8b350f62009-11-15 23:12:43 +000035147 done
cristy3ed852e2009-09-05 21:47:34 +000035148IFS=$as_save_IFS
35149
35150 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
35151 ;;
35152esac
35153fi
35154WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
35155if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000035156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000035157$as_echo "$WWWDecodeDelegate" >&6; }
35158else
cristy8b350f62009-11-15 23:12:43 +000035159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035160$as_echo "no" >&6; }
35161fi
35162
35163
35164# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
35165set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035167$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035168if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035169 $as_echo_n "(cached) " >&6
35170else
35171 case $XPSDelegate in
35172 [\\/]* | ?:[\\/]*)
35173 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
35174 ;;
35175 *)
35176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35177for as_dir in $PATH
35178do
35179 IFS=$as_save_IFS
35180 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035181 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035183 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035185 break 2
35186 fi
35187done
cristy8b350f62009-11-15 23:12:43 +000035188 done
cristy3ed852e2009-09-05 21:47:34 +000035189IFS=$as_save_IFS
35190
35191 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
35192 ;;
35193esac
35194fi
35195XPSDelegate=$ac_cv_path_XPSDelegate
35196if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000035197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000035198$as_echo "$XPSDelegate" >&6; }
35199else
cristy8b350f62009-11-15 23:12:43 +000035200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035201$as_echo "no" >&6; }
35202fi
35203
35204
35205# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
35206set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035208$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035209if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035210 $as_echo_n "(cached) " >&6
35211else
35212 case $ZipDelegate in
35213 [\\/]* | ?:[\\/]*)
35214 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
35215 ;;
35216 *)
35217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35218for as_dir in $PATH
35219do
35220 IFS=$as_save_IFS
35221 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035222 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035224 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035226 break 2
35227 fi
35228done
cristy8b350f62009-11-15 23:12:43 +000035229 done
cristy3ed852e2009-09-05 21:47:34 +000035230IFS=$as_save_IFS
35231
35232 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
35233 ;;
35234esac
35235fi
35236ZipDelegate=$ac_cv_path_ZipDelegate
35237if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000035238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000035239$as_echo "$ZipDelegate" >&6; }
35240else
cristy8b350f62009-11-15 23:12:43 +000035241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035242$as_echo "no" >&6; }
35243fi
35244
35245
35246
35247# Prefer lpr to lp; lp needs options tacked on.
35248if test "$LPRDelegate" != no; then
35249 PrintDelegate="$LPRDelegate"
35250else
35251 PrintDelegate="$LPDelegate -c -s"
35252fi
35253
35254
35255# Installed ImageMagick utiltity paths
35256ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
35257DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
35258MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
35259
35260# Set delegate booleans
cristy81ab5af2013-10-06 18:28:39 +000035261have_avconv='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_avconv='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000035262have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
35263have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
35264have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000035265have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000035266have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
35267have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000035268have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
35269
35270#
35271# Test for font directories
35272#
35273type_include_files=''
35274
cristy5a3dc992014-12-05 19:50:04 +000035275 Apple fonts.
35276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Apple fonts directory" >&5
35277$as_echo_n "checking for Apple fonts directory... " >&6; }
35278apple_font_dir=''
35279if test "${with_apple_font_dir}" != 'default'; then
35280 apple_font_dir="${with_apple_font_dir}/"
35281else
35282 for font_dir in '/Library/Fonts/'; do
35283 if test -f "${font_dir}Arial.ttf"; then
35284 apple_font_dir="${font_dir}"
35285 break 1
35286 fi
35287 done
35288fi
35289if test "${apple_font_dir}x" != 'x'; then
35290 type_include_files="${type_include_files} "'<include file="type-apple.xml" />'
35291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apple_font_dir" >&5
35292$as_echo "$apple_font_dir" >&6; }
35293else
35294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
35295$as_echo "not found!" >&6; };
35296fi
35297
35298
cristy430a7312010-01-21 20:44:04 +000035299# Dejavu fonts.
35300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
35301$as_echo_n "checking for Dejavu fonts directory... " >&6; }
35302dejavu_font_dir=''
35303if test "${with_dejavu_font_dir}" != 'default'; then
35304 dejavu_font_dir="${with_dejavu_font_dir}/"
35305else
35306 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
35307 if test -f "${font_dir}DejaVuSerif.ttf"; then
35308 dejavu_font_dir="${font_dir}"
35309 break 1
35310 fi
35311 done
35312fi
35313if test "${dejavu_font_dir}x" != 'x'; then
35314 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
cristyad38abe2012-12-23 23:03:21 +000035315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
35316$as_echo "$dejavu_font_dir" >&6; }
cristy430a7312010-01-21 20:44:04 +000035317else
cristyad38abe2012-12-23 23:03:21 +000035318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
35319$as_echo "not found!" >&6; };
cristy430a7312010-01-21 20:44:04 +000035320fi
35321
35322
cristy3ed852e2009-09-05 21:47:34 +000035323# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000035324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000035325$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
35326ghostscript_font_dir=''
35327if test "${with_gs_font_dir}" != 'default'; then
35328 ghostscript_font_dir="${with_gs_font_dir}/"
35329else
35330 if test "${native_win32_build}" = 'yes'; then
35331 # Native Windows Build
35332 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
35333 if test -f "${font_dir}a010013l.pfb"; then
35334 ghostscript_font_dir="$font_dir"
35335 break 1
35336 fi
35337 done
35338 if test "${PSDelegate}" != 'gswin32c'; then
35339 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
35340 fi
35341 else
35342 # Linux / Mac OS X / Unix Build
35343 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
35344 if test -f "${font_dir}a010013l.pfb"; then
35345 ghostscript_font_dir="${font_dir}"
35346 break 1
35347 fi
35348 done
35349 if test "${ghostscript_font_dir}x" = 'x'; then
35350 if test "$PSDelegate" != 'gs'; then
35351 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
35352 fi
35353 fi
35354 fi
35355fi
35356if test "${ghostscript_font_dir}x" != 'x'; then
35357 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristyad38abe2012-12-23 23:03:21 +000035358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
35359$as_echo "$ghostscript_font_dir" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035360else
cristyad38abe2012-12-23 23:03:21 +000035361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
35362$as_echo "not found!" >&6; };
cristy3ed852e2009-09-05 21:47:34 +000035363fi
35364
35365case "${build_os}" in
35366 mingw* )
35367 PSDelegate=`$WinPathScript "$PSDelegate" 1`
35368 ;;
35369esac
35370
cristy5a3dc992014-12-05 19:50:04 +000035371# Windows fonts.
35372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows fonts directory" >&5
35373$as_echo_n "checking for Windows fonts directory... " >&6; }
35374windows_font_dir=''
35375if test "${with_windows_font_dir}" != 'default'; then
35376 windows_font_dir="${with_windows_font_dir}/"
35377else
35378 for font_dir in '/usr/X11R6/lib/X11/fonts/truetype/' '/usr/X11R7/lib/X11/fonts/truetype/' '/usr/share/fonts/msttcore/'; do
35379 if test -f "${font_dir}arial.ttf"; then
35380 windows_font_dir="${font_dir}"
35381 break 1
35382 fi
35383 done
35384fi
35385if test "${windows_font_dir}x" != 'x'; then
35386 type_include_files="${type_include_files} "'<include file="type-windows.xml" />'
35387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $windows_font_dir" >&5
35388$as_echo "$windows_font_dir" >&6; }
35389else
35390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
35391$as_echo "not found!" >&6; };
35392fi
35393
35394
cristy3ed852e2009-09-05 21:47:34 +000035395
35396
35397#
35398# Handle case where user doesn't want frozen paths
35399#
35400if test "$with_frozenpaths" != 'yes'; then
35401 # Re-set delegate definitions to default (no paths)
35402 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy16b412d2014-12-15 11:09:48 +000035403 BGPDecodeDelegate="$BGPDecodeDelegateDefault"
35404 BGPEncodeDelegate="$BGPEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035405 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
35406 BZIPDelegate="$BZIPDelegateDefault"
35407 BrowseDelegate="$BrowseDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035408 CatDelegate="$CatDelegateDefault"
35409 ConvertDelegate="$ConvertDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000035410 DisplayDelegate="$DisplayDelegateDefault"
35411 DNGDecodeDelegate="$DNGDecodeDelegateDefault"
cristy66f238e2014-05-16 12:21:48 +000035412 DOCDecodeDelegate="$DOCDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035413 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
35414 EchoDelegate="$EchoDelegateDefault"
35415 EditorDelegate="$EditorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035416 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000035417 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035418 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
35419 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
35420 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
35421 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000035422 JXRDecodeDelegate="$JXRDecodeDelegateDefault"
35423 JXREncodeDelegate="$JXREncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035424 LPDelegate="$LPDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035425 LaunchDelegate="$LaunchDelegateDefault"
35426 MANDelegate="$MANDelegateDefault"
35427 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
35428 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035429 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000035430 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
35431 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035432 PCLDelegate="$PCLDelegateDefault"
35433 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
35434 POVDelegate="$POVDelegateDefault"
35435 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035436 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
35437 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000035438 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035439 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
cristyec6934f2012-08-14 18:38:40 +000035440 SVGDecodeDelegate="$SVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035441 ShowImageDelegate="$ShowImageDelegateDefault"
35442 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000035443 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy86e86092013-08-04 17:43:57 +000035444 WebPDecodeDelegate="$WebPDecodeDelegateDefault"
35445 WebPEncodeDelegate="$WebPEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035446 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
35447 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
35448 XPSDelegate="$XPSDelegateDefault"
35449 ZipDelegate="$ZipDelegateDefault"
35450fi
35451
35452# Delegate substitutions
35453
35454
35455
35456
35457
35458
35459
35460
35461
35462
35463
35464
35465
35466
35467
35468
35469
35470
35471
35472
35473
35474
35475
35476
35477
35478
35479
35480
35481
35482
35483
35484
35485
35486
35487
35488
35489
35490
35491
35492
cristy71f53d52013-04-27 13:33:59 +000035493
35494
cristy16b412d2014-12-15 11:09:48 +000035495
35496
cristy3ed852e2009-09-05 21:47:34 +000035497#
35498# RPM support.
35499#
35500RPM=''
35501for ac_prog in gnutar gtar tar
35502do
35503 # Extract the first word of "$ac_prog", so it can be a program name with args.
35504set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035506$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035507if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035508 $as_echo_n "(cached) " >&6
35509else
35510 if test -n "$TAR"; then
35511 ac_cv_prog_TAR="$TAR" # Let the user override the test.
35512else
35513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35514for as_dir in $PATH
35515do
35516 IFS=$as_save_IFS
35517 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035518 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035520 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035522 break 2
35523 fi
35524done
cristy8b350f62009-11-15 23:12:43 +000035525 done
cristy3ed852e2009-09-05 21:47:34 +000035526IFS=$as_save_IFS
35527
35528fi
35529fi
35530TAR=$ac_cv_prog_TAR
35531if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000035532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000035533$as_echo "$TAR" >&6; }
35534else
cristy8b350f62009-11-15 23:12:43 +000035535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035536$as_echo "no" >&6; }
35537fi
35538
35539
35540 test -n "$TAR" && break
35541done
35542
35543for ac_prog in perl
35544do
35545 # Extract the first word of "$ac_prog", so it can be a program name with args.
35546set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035548$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035549if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035550 $as_echo_n "(cached) " >&6
35551else
35552 if test -n "$PERL"; then
35553 ac_cv_prog_PERL="$PERL" # Let the user override the test.
35554else
35555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35556for as_dir in $PATH
35557do
35558 IFS=$as_save_IFS
35559 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035560 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035562 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035564 break 2
35565 fi
35566done
cristy8b350f62009-11-15 23:12:43 +000035567 done
cristy3ed852e2009-09-05 21:47:34 +000035568IFS=$as_save_IFS
35569
35570fi
35571fi
35572PERL=$ac_cv_prog_PERL
35573if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000035574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035575$as_echo "$PERL" >&6; }
35576else
cristy8b350f62009-11-15 23:12:43 +000035577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035578$as_echo "no" >&6; }
35579fi
35580
35581
35582 test -n "$PERL" && break
35583done
35584
35585for ac_prog in rpmbuild rpm
35586do
35587 # Extract the first word of "$ac_prog", so it can be a program name with args.
35588set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035590$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035591if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035592 $as_echo_n "(cached) " >&6
35593else
35594 if test -n "$RPM"; then
35595 ac_cv_prog_RPM="$RPM" # Let the user override the test.
35596else
35597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35598for as_dir in $PATH
35599do
35600 IFS=$as_save_IFS
35601 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035602 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035604 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035606 break 2
35607 fi
35608done
cristy8b350f62009-11-15 23:12:43 +000035609 done
cristy3ed852e2009-09-05 21:47:34 +000035610IFS=$as_save_IFS
35611
35612fi
35613fi
35614RPM=$ac_cv_prog_RPM
35615if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000035616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000035617$as_echo "$RPM" >&6; }
35618else
cristy8b350f62009-11-15 23:12:43 +000035619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035620$as_echo "no" >&6; }
35621fi
35622
35623
35624 test -n "$RPM" && break
35625done
35626
35627
cristy73bd4a52010-10-05 11:24:23 +000035628ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
35629
35630
35631AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
35632
35633
35634AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
35635
35636
35637AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
35638
35639
35640 if test "x$RPM" != "x" ; then
35641 RPM_DELEGATE_TRUE=
35642 RPM_DELEGATE_FALSE='#'
35643else
35644 RPM_DELEGATE_TRUE='#'
35645 RPM_DELEGATE_FALSE=
35646fi
35647
cristy3ed852e2009-09-05 21:47:34 +000035648
35649#
35650# 7ZIP support (http://p7zip.sourceforge.net/)
35651#
35652P7ZIP=''
35653for ac_prog in 7za
35654do
35655 # Extract the first word of "$ac_prog", so it can be a program name with args.
35656set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035658$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035659if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035660 $as_echo_n "(cached) " >&6
35661else
35662 if test -n "$P7ZIP"; then
35663 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
35664else
35665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35666for as_dir in $PATH
35667do
35668 IFS=$as_save_IFS
35669 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035670 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035672 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035674 break 2
35675 fi
35676done
cristy8b350f62009-11-15 23:12:43 +000035677 done
cristy3ed852e2009-09-05 21:47:34 +000035678IFS=$as_save_IFS
35679
35680fi
35681fi
35682P7ZIP=$ac_cv_prog_P7ZIP
35683if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000035684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000035685$as_echo "$P7ZIP" >&6; }
35686else
cristy8b350f62009-11-15 23:12:43 +000035687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035688$as_echo "no" >&6; }
35689fi
35690
35691
35692 test -n "$P7ZIP" && break
35693done
35694
35695
cristy73bd4a52010-10-05 11:24:23 +000035696 if test "x$P7ZIP" != "x" ; then
35697 P7ZIP_DELEGATE_TRUE=
35698 P7ZIP_DELEGATE_FALSE='#'
35699else
35700 P7ZIP_DELEGATE_TRUE='#'
35701 P7ZIP_DELEGATE_FALSE=
35702fi
35703
cristy3ed852e2009-09-05 21:47:34 +000035704
35705#
35706# ZIP support (http://www.info-zip.org/Zip.html)
35707#
35708ZIP=''
35709for ac_prog in zip
35710do
35711 # Extract the first word of "$ac_prog", so it can be a program name with args.
35712set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035714$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035715if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035716 $as_echo_n "(cached) " >&6
35717else
35718 if test -n "$ZIP"; then
35719 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
35720else
35721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35722for as_dir in $PATH
35723do
35724 IFS=$as_save_IFS
35725 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035726 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035728 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035730 break 2
35731 fi
35732done
cristy8b350f62009-11-15 23:12:43 +000035733 done
cristy3ed852e2009-09-05 21:47:34 +000035734IFS=$as_save_IFS
35735
35736fi
35737fi
35738ZIP=$ac_cv_prog_ZIP
35739if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000035740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000035741$as_echo "$ZIP" >&6; }
35742else
cristy8b350f62009-11-15 23:12:43 +000035743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035744$as_echo "no" >&6; }
35745fi
35746
35747
35748 test -n "$ZIP" && break
35749done
35750
35751
cristy73bd4a52010-10-05 11:24:23 +000035752 if test "x$ZIP" != "x" ; then
35753 ZIP_DELEGATE_TRUE=
35754 ZIP_DELEGATE_FALSE='#'
35755else
35756 ZIP_DELEGATE_TRUE='#'
35757 ZIP_DELEGATE_FALSE=
35758fi
35759
cristy3ed852e2009-09-05 21:47:34 +000035760
35761#
35762# GhostPCL related configuration.
35763#
35764PCLColorDevice=ppmraw
cristy8bc84082011-09-07 13:57:00 +000035765PCLCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000035766PCLMonoDevice=pbmraw
35767if test -z "$PCLVersion"; then
35768 PCLVersion='unknown'
35769fi
35770if test $have_pcl = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35772$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035774$as_echo_n "checking for PCL... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35776$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035777 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000035778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035779$as_echo_n "checking for pcl color device... " >&6; }
35780 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35781 :
35782 else
35783 PCLColorDevice=ppmraw
35784 fi
cristyad38abe2012-12-23 23:03:21 +000035785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
35786$as_echo "$PCLColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035787
35788 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035790$as_echo_n "checking for pcl CMYK device... " >&6; }
35791 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35792 :
35793 else
35794 PCLCMYKDevice=$PCLColorDevice
35795 fi
cristyad38abe2012-12-23 23:03:21 +000035796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
35797$as_echo "$PCLCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035798
35799 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035801$as_echo_n "checking for pcl mono device... " >&6; }
35802 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35803 :
35804 else
35805 PCLMonoDevice=$PCLColorDevice
35806 fi
cristyad38abe2012-12-23 23:03:21 +000035807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
35808$as_echo "$PCLMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035809fi
35810
35811
35812
35813
35814
35815
35816#
35817# GhostXPS related configuration.
35818#
35819XPSColorDevice=ppmraw
35820XPSCMYKDevice=bmpsep8
35821XPSMonoDevice=pbmraw
35822if test -z "$XPSVersion"; then
35823 XPSVersion='unknown'
35824fi
35825if test $have_xps = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35827$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000035829$as_echo_n "checking for XPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35831$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035832 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035834$as_echo_n "checking for xps color device... " >&6; }
35835 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35836 :
35837 else
35838 XPSColorDevice=ppmraw
35839 fi
cristyad38abe2012-12-23 23:03:21 +000035840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
35841$as_echo "$XPSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035842
35843 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035845$as_echo_n "checking for xps CMYK device... " >&6; }
35846 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35847 :
35848 else
35849 XPSCMYKDevice=$XPSColorDevice
35850 fi
cristyad38abe2012-12-23 23:03:21 +000035851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
35852$as_echo "$XPSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035853
35854 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035856$as_echo_n "checking for xps mono device... " >&6; }
35857 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35858 :
35859 else
35860 XPSMonoDevice=$XPSColorDevice
35861 fi
cristyad38abe2012-12-23 23:03:21 +000035862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
35863$as_echo "$XPSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035864fi
35865
35866
35867
35868
35869
35870
35871#
35872# Ghostscript related configuration.
35873#
cristya97426c2011-02-04 01:41:27 +000035874GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000035875GSColorDevice=pnmraw
35876GSCMYKDevice=pam
35877GSMonoDevice=pbmraw
35878GSPDFDevice=pdfwrite
cristyb096ea52013-10-26 20:56:38 +000035879GSPSDevice=ps2write
cristya5b91e72015-01-07 15:39:36 +000035880GSEPSDevice=eps2write
cristy3ed852e2009-09-05 21:47:34 +000035881GSVersion='unknown'
35882if test $have_gs = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35884$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000035886$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35888$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000035890$as_echo_n "checking for Ghostscript version... " >&6; }
35891 if GSVersion=`$PSDelegate --version`; then
35892 :
35893 else
35894 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
35895 fi
cristyad38abe2012-12-23 23:03:21 +000035896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
35897$as_echo "$GSVersion" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035898
35899 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000035900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035901$as_echo_n "checking for gs alpha device... " >&6; }
35902 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35903 :
35904 else
35905 GSAlphaDevice=pnmraw
35906 fi
cristyad38abe2012-12-23 23:03:21 +000035907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
35908$as_echo "$GSAlphaDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035909
35910 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035912$as_echo_n "checking for gs color device... " >&6; }
35913 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35914 :
35915 else
35916 GSColorDevice=pnmraw
35917 fi
cristyad38abe2012-12-23 23:03:21 +000035918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
35919$as_echo "$GSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035920
35921 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035923$as_echo_n "checking for gs CMYK device... " >&6; }
35924 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35925 :
35926 else
35927 GSCMYKDevice=bmpsep8
35928 fi
cristyad38abe2012-12-23 23:03:21 +000035929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
35930$as_echo "$GSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035931
35932 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035934$as_echo_n "checking for gs mono device... " >&6; }
35935 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35936 :
35937 else
35938 GSMonoDevice=$GSColorDevice
35939 fi
cristyad38abe2012-12-23 23:03:21 +000035940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
35941$as_echo "$GSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035942
35943 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000035944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035945$as_echo_n "checking for gs PDF writing device... " >&6; }
35946 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35947 :
35948 else
35949 GSPDFDevice=nodevice
35950 fi
cristyad38abe2012-12-23 23:03:21 +000035951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
35952$as_echo "$GSPDFDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035953
35954 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000035955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035956$as_echo_n "checking for gs PS writing device... " >&6; }
35957 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35958 :
35959 else
cristy15308162015-01-09 23:43:12 +000035960 GSPSDevice=pswrite
cristy3ed852e2009-09-05 21:47:34 +000035961 fi
cristyad38abe2012-12-23 23:03:21 +000035962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
35963$as_echo "$GSPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035964
35965 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000035966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035967$as_echo_n "checking for gs EPS writing device... " >&6; }
35968 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35969 :
35970 else
cristy15308162015-01-09 23:43:12 +000035971 GSEPSDevice=epswrite
cristy3ed852e2009-09-05 21:47:34 +000035972 fi
cristyad38abe2012-12-23 23:03:21 +000035973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
35974$as_echo "$GSEPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035975fi
35976
35977
35978
35979
35980
35981
35982
35983
35984
35985
35986#
35987# PerlMagick-related configuration
35988#
35989
35990# Look for PERL if PerlMagick requested
35991# If name/path of desired PERL interpreter is specified, look for that one first
35992have_perl='no'
35993if test "$with_perl" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000035994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35995$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035997$as_echo_n "checking for Perl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35999$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000036000 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000036001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000036002$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000036003if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000036004 $as_echo_n "(cached) " >&6
36005else
36006 ac_cv_path_PERL="$with_perl"
36007fi
cristy8b350f62009-11-15 23:12:43 +000036008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000036009$as_echo "$ac_cv_path_PERL" >&6; };
36010 PERL=$ac_cv_path_PERL
36011 have_perl="$ac_cv_path_PERL"
36012 else
36013 for ac_prog in perl perl5
36014do
36015 # Extract the first word of "$ac_prog", so it can be a program name with args.
36016set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000036017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000036018$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000036019if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000036020 $as_echo_n "(cached) " >&6
36021else
36022 case $PERL in
36023 [\\/]* | ?:[\\/]*)
36024 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
36025 ;;
36026 *)
36027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36028for as_dir in $PATH
36029do
36030 IFS=$as_save_IFS
36031 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000036032 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000036033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000036034 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000036035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000036036 break 2
36037 fi
36038done
cristy8b350f62009-11-15 23:12:43 +000036039 done
cristy3ed852e2009-09-05 21:47:34 +000036040IFS=$as_save_IFS
36041
36042 ;;
36043esac
36044fi
36045PERL=$ac_cv_path_PERL
36046if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000036047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000036048$as_echo "$PERL" >&6; }
36049else
cristy8b350f62009-11-15 23:12:43 +000036050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000036051$as_echo "no" >&6; }
36052fi
36053
36054
36055 test -n "$PERL" && break
36056done
36057 if test "$ac_cv_path_PERL"; then
36058 have_perl="$ac_cv_path_PERL"
36059 fi
36060 fi
36061fi
36062
cristy949301e2010-01-06 01:38:40 +000036063if test "$with_perl" != 'yes' ; then
36064 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
36065fi
36066
36067PERL_SUPPORTS_DESTDIR='no'
36068
cristy3ed852e2009-09-05 21:47:34 +000036069with_perl_static='no'
36070with_perl_dynamic='no'
36071if test "$have_perl" != 'no'; then
36072 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
36073 with_perl_static='yes'
36074 fi
36075 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
36076 with_perl_dynamic='yes'
36077 fi
36078 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000036079
36080
36081
36082
36083 if test -n "$PERL"; then :
36084
36085 ax_perl_version="5.8.1"
36086
36087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
36088$as_echo_n "checking for perl version... " >&6; }
36089
cristy17491be2014-06-24 01:10:53 +000036090 perl_version=`$PERL --version 2>&1 \
36091 | $SED -n -e '/This is perl/b inspect
36092b
36093: inspect
36094s/.* (\{0,1\}v\([0-9]*\.[0-9]*\.[0-9]*\))\{0,1\} .*/\1/;p'`
cristy73bd4a52010-10-05 11:24:23 +000036095
36096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
36097$as_echo "$perl_version" >&6; }
36098
36099 PERL_VERSION=$perl_version
36100
36101
36102
36103
36104
36105 # Used to indicate true or false condition
36106 ax_compare_version=false
36107
36108 # Convert the two version strings to be compared into a format that
36109 # allows a simple string comparison. The end result is that a version
36110 # string of the form 1.12.5-r617 will be converted to the form
36111 # 0001001200050617. In other words, each number is zero padded to four
36112 # digits, and non digits are removed.
36113
36114 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
36115 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
36116 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
36117 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
36118 -e 's/[^0-9]//g'`
36119
36120
36121 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
36122 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
36123 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
36124 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
36125 -e 's/[^0-9]//g'`
36126
36127
36128 ax_compare_version=`echo "x$ax_compare_version_A
36129x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
36130
36131
36132
36133 if test "$ax_compare_version" = "true" ; then
36134
36135 :
36136 PERL_SUPPORTS_DESTDIR='yes'
36137
36138 else
36139 :
36140 PERL_SUPPORTS_DESTDIR='no'
36141
36142 fi
36143
36144
36145else
36146
36147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
36148$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
36149 PERL_SUPPORTS_DESTDIR='no'
36150
cristy3ed852e2009-09-05 21:47:34 +000036151fi
cristy73bd4a52010-10-05 11:24:23 +000036152
36153fi
36154 if test "$have_perl" != 'no'; then
36155 WITH_PERL_TRUE=
36156 WITH_PERL_FALSE='#'
36157else
36158 WITH_PERL_TRUE='#'
36159 WITH_PERL_FALSE=
36160fi
36161
36162 if test $with_perl_static = 'yes'; then
36163 WITH_PERL_STATIC_TRUE=
36164 WITH_PERL_STATIC_FALSE='#'
36165else
36166 WITH_PERL_STATIC_TRUE='#'
36167 WITH_PERL_STATIC_FALSE=
36168fi
36169
36170 if test $with_perl_dynamic = 'yes'; then
36171 WITH_PERL_DYNAMIC_TRUE=
36172 WITH_PERL_DYNAMIC_FALSE='#'
36173else
36174 WITH_PERL_DYNAMIC_TRUE='#'
36175 WITH_PERL_DYNAMIC_FALSE=
36176fi
36177
cristy3ed852e2009-09-05 21:47:34 +000036178
36179
36180# Determine path to pick up MagickCore library from for use with building PerlMagick
36181MAGICKCORE_PATH="${LIB_DIR}"
36182if test $with_perl_static = 'yes'; then
36183 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
36184 libtool_objdir=$objdir
36185
36186 # Linker search path to library, followed by -lMagickCore
cristy4c08aed2011-07-01 19:47:50 +000036187 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
cristy3ed852e2009-09-05 21:47:34 +000036188fi
36189
36190
cristy2a3eb392012-12-17 13:39:20 +000036191# Create a simple string containing format names for all delegate libraries.
cristy422d5502012-12-22 22:20:57 +000036192MAGICK_DELEGATES=''
cristy2a3eb392012-12-17 13:39:20 +000036193if test "$have_autotrace" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036194 MAGICK_DELEGATES="$MAGICK_DELEGATES autotrace"
cristy3ed852e2009-09-05 21:47:34 +000036195fi
cristy2a3eb392012-12-17 13:39:20 +000036196if test "$have_bzlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036197 MAGICK_DELEGATES="$MAGICK_DELEGATES bzlib"
cristy2a3eb392012-12-17 13:39:20 +000036198fi
36199if test "$have_dps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036200 MAGICK_DELEGATES="$MAGICK_DELEGATES dps"
cristy2a3eb392012-12-17 13:39:20 +000036201fi
36202if test "$have_djvu" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036203 MAGICK_DELEGATES="$MAGICK_DELEGATES djvu"
cristy2a3eb392012-12-17 13:39:20 +000036204fi
cristy81ab5af2013-10-06 18:28:39 +000036205if test "$have_avconv" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036206 MAGICK_DELEGATES="$MAGICK_DELEGATES mpeg"
cristy2a3eb392012-12-17 13:39:20 +000036207fi
36208if test "$have_fftw" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036209 MAGICK_DELEGATES="$MAGICK_DELEGATES fftw"
cristy2a3eb392012-12-17 13:39:20 +000036210fi
cristy2a3eb392012-12-17 13:39:20 +000036211if test "$have_fpx" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036212 MAGICK_DELEGATES="$MAGICK_DELEGATES fpx"
cristy2a3eb392012-12-17 13:39:20 +000036213fi
36214if test "$have_fontconfig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036215 MAGICK_DELEGATES="$MAGICK_DELEGATES fontconfig"
cristy2a3eb392012-12-17 13:39:20 +000036216fi
36217if test "$have_freetype" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036218 MAGICK_DELEGATES="$MAGICK_DELEGATES freetype"
cristy2a3eb392012-12-17 13:39:20 +000036219fi
36220if test "$have_gslib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036221 MAGICK_DELEGATES="$MAGICK_DELEGATES gslib"
cristy2a3eb392012-12-17 13:39:20 +000036222fi
36223if test "$have_jbig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036224 MAGICK_DELEGATES="$MAGICK_DELEGATES jbig"
cristy2a3eb392012-12-17 13:39:20 +000036225fi
36226if test "$have_png$have_jpeg" = 'yesyes' ; then
cristy422d5502012-12-22 22:20:57 +000036227 MAGICK_DELEGATES="$MAGICK_DELEGATES jng"
cristy2a3eb392012-12-17 13:39:20 +000036228fi
36229if test "$have_jp2" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036230 MAGICK_DELEGATES="$MAGICK_DELEGATES jp2"
cristy2a3eb392012-12-17 13:39:20 +000036231fi
36232if test "$have_jpeg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036233 MAGICK_DELEGATES="$MAGICK_DELEGATES jpeg"
cristy2a3eb392012-12-17 13:39:20 +000036234fi
36235if test "$have_lcms" = 'yes' || test "$have_lcms2" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036236 MAGICK_DELEGATES="$MAGICK_DELEGATES lcms"
cristy2a3eb392012-12-17 13:39:20 +000036237fi
36238if test "$have_lqr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036239 MAGICK_DELEGATES="$MAGICK_DELEGATES lqr"
cristy2a3eb392012-12-17 13:39:20 +000036240fi
36241if test "$have_lzma" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036242 MAGICK_DELEGATES="$MAGICK_DELEGATES lzma"
cristy2a3eb392012-12-17 13:39:20 +000036243fi
36244if test "$have_openexr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036245 MAGICK_DELEGATES="$MAGICK_DELEGATES openexr"
cristy2a3eb392012-12-17 13:39:20 +000036246fi
cristy99db3872014-01-01 15:11:34 +000036247if test "$have_openjp2" = 'yes' ; then
36248 MAGICK_DELEGATES="$MAGICK_DELEGATES openjp2"
cristy3fe09452014-01-01 12:29:14 +000036249fi
cristy2a3eb392012-12-17 13:39:20 +000036250if test "$have_pango" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036251 MAGICK_DELEGATES="$MAGICK_DELEGATES pango"
cristy2a3eb392012-12-17 13:39:20 +000036252fi
36253if test "$have_png" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036254 MAGICK_DELEGATES="$MAGICK_DELEGATES png"
cristy2a3eb392012-12-17 13:39:20 +000036255fi
36256have_ps='no'
36257if test "$have_dps" = 'yes' || \
36258 test "$have_gs" = 'yes' || \
36259 test "${native_win32_build}" = 'yes' ; then
36260 have_ps='yes'
36261fi
36262if test "$have_ps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036263 MAGICK_DELEGATES="$MAGICK_DELEGATES ps"
cristy2a3eb392012-12-17 13:39:20 +000036264fi
cristy2a3eb392012-12-17 13:39:20 +000036265if test "$have_ra_ppm" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036266 MAGICK_DELEGATES="$MAGICK_DELEGATES rad"
cristy2a3eb392012-12-17 13:39:20 +000036267fi
36268if test "$have_rsvg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036269 MAGICK_DELEGATES="$MAGICK_DELEGATES rsvg"
cristy2a3eb392012-12-17 13:39:20 +000036270fi
36271if test "$have_tiff" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036272 MAGICK_DELEGATES="$MAGICK_DELEGATES tiff"
cristy2a3eb392012-12-17 13:39:20 +000036273fi
36274if test "$have_ttf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036275 MAGICK_DELEGATES="$MAGICK_DELEGATES ttf"
cristy2a3eb392012-12-17 13:39:20 +000036276fi
cristy3b640ed2013-07-29 00:27:59 +000036277if test "$have_webp" = 'yes' ; then
36278 MAGICK_DELEGATES="$MAGICK_DELEGATES webp"
36279fi
cristy2a3eb392012-12-17 13:39:20 +000036280if test "$have_wmf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036281 MAGICK_DELEGATES="$MAGICK_DELEGATES wmf"
cristy2a3eb392012-12-17 13:39:20 +000036282fi
36283if test "$have_x" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036284 MAGICK_DELEGATES="$MAGICK_DELEGATES x"
cristy2a3eb392012-12-17 13:39:20 +000036285fi
36286if test "$have_xml" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036287 MAGICK_DELEGATES="$MAGICK_DELEGATES xml"
cristy2a3eb392012-12-17 13:39:20 +000036288fi
36289if test "$have_zlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036290 MAGICK_DELEGATES="$MAGICK_DELEGATES zlib"
cristy2a3eb392012-12-17 13:39:20 +000036291fi
cristy2a3eb392012-12-17 13:39:20 +000036292# Remove extraneous spaces from output variables (asthetic)
cristy422d5502012-12-22 22:20:57 +000036293MAGICK_DELEGATES=`echo $MAGICK_DELEGATES | sed -e 's/ */ /g'`
cristy2a3eb392012-12-17 13:39:20 +000036294MAGICK_FEATURES=`echo $MAGICK_FEATURES | sed -e 's/ */ /g'`
cristy3ed852e2009-09-05 21:47:34 +000036295
36296
cristyfa161182012-12-19 15:45:28 +000036297
cristy3ed852e2009-09-05 21:47:34 +000036298#
36299# Handle special compiler flags
36300#
36301
36302# Add '-p' if prof source profiling support enabled
36303if test "$enable_prof" = 'yes'; then
36304 CFLAGS="-p $CFLAGS"
36305 CXXFLAGS="-p $CXXFLAGS"
36306 LDFLAGS="-p $LDFLAGS"
36307fi
36308
36309# Add '-pg' if gprof source profiling support enabled
36310if test "$enable_gprof" = 'yes'; then
36311 CFLAGS="-pg $CFLAGS"
36312 CXXFLAGS="-pg $CXXFLAGS"
36313 LDFLAGS="-pg $LDFLAGS"
36314fi
36315
36316# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
36317# This is a gcc-specific feature
36318if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000036319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000036320$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000036321if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000036322 $as_echo_n "(cached) " >&6
36323else
36324 ac_check_lib_save_LIBS=$LIBS
36325LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000036326cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000036327/* end confdefs.h. */
36328
36329/* Override any GCC internal prototype to avoid an error.
36330 Use char because int might match the return type of a GCC
36331 builtin and then its argument prototype would still apply. */
36332#ifdef __cplusplus
36333extern "C"
36334#endif
36335char _gcov_init ();
36336int
36337main ()
36338{
36339return _gcov_init ();
36340 ;
36341 return 0;
36342}
36343_ACEOF
cristy8b350f62009-11-15 23:12:43 +000036344if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000036345 ac_cv_lib_gcov__gcov_init=yes
36346else
cristy8b350f62009-11-15 23:12:43 +000036347 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000036348fi
cristy8b350f62009-11-15 23:12:43 +000036349rm -f core conftest.err conftest.$ac_objext \
36350 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000036351LIBS=$ac_check_lib_save_LIBS
36352fi
cristy8b350f62009-11-15 23:12:43 +000036353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000036354$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000036355if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000036356 cat >>confdefs.h <<_ACEOF
36357#define HAVE_LIBGCOV 1
36358_ACEOF
36359
36360 LIBS="-lgcov $LIBS"
36361
36362fi
36363
cristy8b350f62009-11-15 23:12:43 +000036364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000036365$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000036366if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000036367 $as_echo_n "(cached) " >&6
36368else
36369 ac_check_lib_save_LIBS=$LIBS
36370LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000036371cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000036372/* end confdefs.h. */
36373
36374/* Override any GCC internal prototype to avoid an error.
36375 Use char because int might match the return type of a GCC
36376 builtin and then its argument prototype would still apply. */
36377#ifdef __cplusplus
36378extern "C"
36379#endif
36380char __gcov_init ();
36381int
36382main ()
36383{
36384return __gcov_init ();
36385 ;
36386 return 0;
36387}
36388_ACEOF
cristy8b350f62009-11-15 23:12:43 +000036389if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000036390 ac_cv_lib_gcov___gcov_init=yes
36391else
cristy8b350f62009-11-15 23:12:43 +000036392 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000036393fi
cristy8b350f62009-11-15 23:12:43 +000036394rm -f core conftest.err conftest.$ac_objext \
36395 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000036396LIBS=$ac_check_lib_save_LIBS
36397fi
cristy8b350f62009-11-15 23:12:43 +000036398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000036399$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000036400if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000036401 cat >>confdefs.h <<_ACEOF
36402#define HAVE_LIBGCOV 1
36403_ACEOF
36404
36405 LIBS="-lgcov $LIBS"
36406
36407fi
36408
36409 case "$target_os" in
36410 darwin*)
36411 OSX_GCOV_LDFLAG="-Wl,-single_module"
36412 ;;
36413 *)
36414 OSX_GCOV_LDFLAG=""
36415 ;;
36416 esac
36417
36418 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
36419 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
36420 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
36421fi
36422
36423#
36424# Build library dependency list for libMagickCore
36425#
36426
cristyc6722092012-10-14 00:19:31 +000036427if test "$build_modules" != 'no'; then
cristy3b0097d2014-11-04 15:34:47 +000036428 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 $JEMALLOC_LIBS $THREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000036429else
cristy3b0097d2014-11-04 15:34:47 +000036430 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 $JEMALLOC_LIBS $THREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000036431fi
36432
36433
36434#
36435# Remove extraneous spaces from output variables (asthetic)
36436#
36437X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
36438X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
36439X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
36440X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
36441
36442CC=`echo $CC | sed -e 's/ */ /g'`
36443CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
36444CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
36445CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
cristy3ed852e2009-09-05 21:47:34 +000036446DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
36447LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
36448TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
36449MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
36450#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
36451
36452# Pass only user-provided LIBS as "global" libraries
36453LIBS=$USER_LIBS
36454
36455#AC_SUBST(CPPFLAGS)
36456
36457#AC_SUBST(LDFLAGS)
36458#AC_SUBST(X_PRE_LIBS)
36459#AC_SUBST(X_LIBS)
36460#AC_SUBST(X_EXTRA_LIBS)
36461
36462MAGICK_CFLAGS=$CFLAGS
36463MAGICK_CXXFLAGS="$CXXFLAGS"
36464MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
36465MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
36466MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
cristy31b9e072013-10-17 15:02:53 +000036467MAGICK_LIBS="$MAGICK_DEP_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000036468
36469
36470
36471
36472
36473
36474
36475
36476# Set configured scripts to executable.
36477ac_config_commands="$ac_config_commands default"
36478
cristy2bd4b6e2012-07-22 15:29:11 +000036479ac_config_commands="$ac_config_commands magick.sh.in"
36480
cristy3ed852e2009-09-05 21:47:34 +000036481ac_config_commands="$ac_config_commands MagickCore-config.in"
36482
cristy3ed852e2009-09-05 21:47:34 +000036483ac_config_commands="$ac_config_commands MagickWand-config.in"
36484
cristy3ed852e2009-09-05 21:47:34 +000036485ac_config_commands="$ac_config_commands Magick++-config.in"
36486
36487ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
36488
36489
cristyad38abe2012-12-23 23:03:21 +000036490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
36491$as_echo "-------------------------------------------------------------" >&6; }
36492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
36493$as_echo "Update ImageMagick configuration" >&6; }
cristy9af1cbf2014-12-28 22:03:09 +000036494
36495rm -f magick-version
36496
36497result_dejavu_font_dir='none'
36498if test "${dejavu_font_dir}x" != 'x'; then
36499 result_dejavu_font_dir=$dejavu_font_dir
36500fi
36501
36502result_ghostscript_font_dir='none'
36503if test "${ghostscript_font_dir}x" != 'x'; then
36504 result_ghostscript_font_dir=$ghostscript_font_dir
36505fi
36506
36507result_windows_font_dir='none'
36508if test "${windows_font_dir}x" != 'x'; then
36509 result_windows_font_dir=${windows_font_dir}
36510fi
36511
36512# ==============================================================================
36513# Generate build environment
36514# ==============================================================================
36515ac_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-apple.xml 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"
36516
cristy3ed852e2009-09-05 21:47:34 +000036517cat >confcache <<\_ACEOF
36518# This file is a shell script that caches the results of configure
36519# tests run on this system so they can be shared between configure
36520# scripts and configure runs, see configure's option --config-cache.
36521# It is not useful on other systems. If it contains results you don't
36522# want to keep, you may remove or edit it.
36523#
36524# config.status only pays attention to the cache file if you give it
36525# the --recheck option to rerun configure.
36526#
36527# `ac_cv_env_foo' variables (set or unset) will be overridden when
36528# loading this file, other *unset* `ac_cv_foo' will be assigned the
36529# following values.
36530
36531_ACEOF
36532
36533# The following way of writing the cache mishandles newlines in values,
36534# but we know of no workaround that is simple, portable, and efficient.
36535# So, we kill variables containing newlines.
36536# Ultrix sh set writes to stderr and can't be redirected directly,
36537# and sets the high bit in the cache file unless we assign to the vars.
36538(
36539 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
36540 eval ac_val=\$$ac_var
36541 case $ac_val in #(
36542 *${as_nl}*)
36543 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000036544 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000036545$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
36546 esac
36547 case $ac_var in #(
36548 _ | IFS | as_nl) ;; #(
36549 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000036550 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000036551 esac ;;
36552 esac
36553 done
36554
36555 (set) 2>&1 |
36556 case $as_nl`(ac_space=' '; set) 2>&1` in #(
36557 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000036558 # `set' does not quote correctly, so add quotes: double-quote
36559 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000036560 sed -n \
36561 "s/'/'\\\\''/g;
36562 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
36563 ;; #(
36564 *)
36565 # `set' quotes correctly as required by POSIX, so do not add quotes.
36566 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
36567 ;;
36568 esac |
36569 sort
36570) |
36571 sed '
36572 /^ac_cv_env_/b end
36573 t clear
36574 :clear
36575 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
36576 t end
36577 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
36578 :end' >>confcache
36579if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
36580 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000036581 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000036582 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000036583$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000036584 if test ! -f "$cache_file" || test -h "$cache_file"; then
36585 cat confcache >"$cache_file"
36586 else
36587 case $cache_file in #(
36588 */* | ?:*)
36589 mv -f confcache "$cache_file"$$ &&
36590 mv -f "$cache_file"$$ "$cache_file" ;; #(
36591 *)
36592 mv -f confcache "$cache_file" ;;
36593 esac
36594 fi
36595 fi
cristy3ed852e2009-09-05 21:47:34 +000036596 else
cristy8b350f62009-11-15 23:12:43 +000036597 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000036598$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
36599 fi
36600fi
36601rm -f confcache
36602
36603test "x$prefix" = xNONE && prefix=$ac_default_prefix
36604# Let make expand exec_prefix.
36605test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
36606
36607DEFS=-DHAVE_CONFIG_H
36608
36609ac_libobjs=
36610ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000036611U=
cristy3ed852e2009-09-05 21:47:34 +000036612for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
36613 # 1. Remove the extension, and $U if already installed.
36614 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
36615 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
36616 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
36617 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000036618 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
36619 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000036620done
36621LIBOBJS=$ac_libobjs
36622
36623LTLIBOBJS=$ac_ltlibobjs
36624
36625
cristyc0890a62012-07-19 00:18:20 +000036626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
36627$as_echo_n "checking that generated files are newer than configure... " >&6; }
36628 if test -n "$am_sleep_pid"; then
36629 # Hide warnings about reused PIDs.
36630 wait $am_sleep_pid 2>/dev/null
36631 fi
36632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
36633$as_echo "done" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000036634 if test -n "$EXEEXT"; then
36635 am__EXEEXT_TRUE=
36636 am__EXEEXT_FALSE='#'
36637else
36638 am__EXEEXT_TRUE='#'
36639 am__EXEEXT_FALSE=
36640fi
cristy3ed852e2009-09-05 21:47:34 +000036641
cristy9af1cbf2014-12-28 22:03:09 +000036642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
36643$as_echo_n "checking that generated files are newer than configure... " >&6; }
36644 if test -n "$am_sleep_pid"; then
36645 # Hide warnings about reused PIDs.
36646 wait $am_sleep_pid 2>/dev/null
36647 fi
36648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
36649$as_echo "done" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000036650if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036651 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036652Usually this means the macro was only invoked conditionally." "$LINENO" 5
36653fi
36654if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036655 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036656Usually this means the macro was only invoked conditionally." "$LINENO" 5
36657fi
36658if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036659 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036660Usually this means the macro was only invoked conditionally." "$LINENO" 5
36661fi
36662if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036663 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036664Usually this means the macro was only invoked conditionally." "$LINENO" 5
36665fi
cristy9b86f202012-11-28 21:55:35 +000036666if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
36667 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
36668Usually this means the macro was only invoked conditionally." "$LINENO" 5
36669fi
cristy73bd4a52010-10-05 11:24:23 +000036670if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036671 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036672Usually this means the macro was only invoked conditionally." "$LINENO" 5
36673fi
36674if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036675 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036676Usually this means the macro was only invoked conditionally." "$LINENO" 5
36677fi
36678if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036679 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036680Usually this means the macro was only invoked conditionally." "$LINENO" 5
36681fi
36682if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036683 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036684Usually this means the macro was only invoked conditionally." "$LINENO" 5
36685fi
cristy73bd4a52010-10-05 11:24:23 +000036686if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036687 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036688Usually this means the macro was only invoked conditionally." "$LINENO" 5
36689fi
36690if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036691 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036692Usually this means the macro was only invoked conditionally." "$LINENO" 5
36693fi
cristy73bd4a52010-10-05 11:24:23 +000036694if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036695 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036696Usually this means the macro was only invoked conditionally." "$LINENO" 5
36697fi
cristy71d8c202012-03-20 17:05:01 +000036698if test -z "${LEGACY_SUPPORT_TRUE}" && test -z "${LEGACY_SUPPORT_FALSE}"; then
36699 as_fn_error $? "conditional \"LEGACY_SUPPORT\" was never defined.
36700Usually this means the macro was only invoked conditionally." "$LINENO" 5
36701fi
cristy73bd4a52010-10-05 11:24:23 +000036702
36703if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036704 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036705Usually this means the macro was only invoked conditionally." "$LINENO" 5
36706fi
36707if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036708 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036709Usually this means the macro was only invoked conditionally." "$LINENO" 5
36710fi
cristy3b0097d2014-11-04 15:34:47 +000036711if test -z "${HasJEMALLOC_TRUE}" && test -z "${HasJEMALLOC_FALSE}"; then
36712 as_fn_error $? "conditional \"HasJEMALLOC\" was never defined.
36713Usually this means the macro was only invoked conditionally." "$LINENO" 5
36714fi
cristy73bd4a52010-10-05 11:24:23 +000036715if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036716 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036717Usually this means the macro was only invoked conditionally." "$LINENO" 5
36718fi
36719if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036720 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036721Usually this means the macro was only invoked conditionally." "$LINENO" 5
36722fi
36723if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036724 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036725Usually this means the macro was only invoked conditionally." "$LINENO" 5
36726fi
36727if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036728 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036729Usually this means the macro was only invoked conditionally." "$LINENO" 5
36730fi
cristy5eef09f2012-10-16 12:08:28 +000036731if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
36732 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
36733Usually this means the macro was only invoked conditionally." "$LINENO" 5
36734fi
cristy73bd4a52010-10-05 11:24:23 +000036735if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036736 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036737Usually this means the macro was only invoked conditionally." "$LINENO" 5
36738fi
36739if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036740 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036741Usually this means the macro was only invoked conditionally." "$LINENO" 5
36742fi
cristy73bd4a52010-10-05 11:24:23 +000036743if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036744 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036745Usually this means the macro was only invoked conditionally." "$LINENO" 5
36746fi
36747if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036748 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036749Usually this means the macro was only invoked conditionally." "$LINENO" 5
36750fi
cristy853d9902014-08-21 18:50:43 +000036751if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
36752 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
36753Usually this means the macro was only invoked conditionally." "$LINENO" 5
36754fi
cristy73bd4a52010-10-05 11:24:23 +000036755if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036756 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036757Usually this means the macro was only invoked conditionally." "$LINENO" 5
36758fi
36759if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036760 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036761Usually this means the macro was only invoked conditionally." "$LINENO" 5
36762fi
36763if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036764 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036765Usually this means the macro was only invoked conditionally." "$LINENO" 5
36766fi
36767if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036768 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036769Usually this means the macro was only invoked conditionally." "$LINENO" 5
36770fi
36771if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036772 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036773Usually this means the macro was only invoked conditionally." "$LINENO" 5
36774fi
36775if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036776 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036777Usually this means the macro was only invoked conditionally." "$LINENO" 5
36778fi
cristy73bd4a52010-10-05 11:24:23 +000036779if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036780 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036781Usually this means the macro was only invoked conditionally." "$LINENO" 5
36782fi
cristy99db3872014-01-01 15:11:34 +000036783if test -z "${LIBOPENJP2_DELEGATE_TRUE}" && test -z "${LIBOPENJP2_DELEGATE_FALSE}"; then
36784 as_fn_error $? "conditional \"LIBOPENJP2_DELEGATE\" was never defined.
36785Usually this means the macro was only invoked conditionally." "$LINENO" 5
36786fi
cristy73bd4a52010-10-05 11:24:23 +000036787if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036788 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036789Usually this means the macro was only invoked conditionally." "$LINENO" 5
36790fi
cristyfbb0ef02010-12-19 02:32:11 +000036791if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
36792 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
36793Usually this means the macro was only invoked conditionally." "$LINENO" 5
36794fi
cristy73bd4a52010-10-05 11:24:23 +000036795if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036796 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036797Usually this means the macro was only invoked conditionally." "$LINENO" 5
36798fi
cristy41cbe8a2011-10-27 01:35:18 +000036799if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
36800 as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
36801Usually this means the macro was only invoked conditionally." "$LINENO" 5
36802fi
cristya054b762012-03-26 23:16:00 +000036803if test -z "${PANGOCAIRO_DELEGATE_TRUE}" && test -z "${PANGOCAIRO_DELEGATE_FALSE}"; then
36804 as_fn_error $? "conditional \"PANGOCAIRO_DELEGATE\" was never defined.
cristy41cbe8a2011-10-27 01:35:18 +000036805Usually this means the macro was only invoked conditionally." "$LINENO" 5
36806fi
cristy73bd4a52010-10-05 11:24:23 +000036807if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036808 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036809Usually this means the macro was only invoked conditionally." "$LINENO" 5
36810fi
36811if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036812 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036813Usually this means the macro was only invoked conditionally." "$LINENO" 5
36814fi
36815if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036816 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036817Usually this means the macro was only invoked conditionally." "$LINENO" 5
36818fi
36819if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036820 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036821Usually this means the macro was only invoked conditionally." "$LINENO" 5
36822fi
cristyb1860752011-03-14 00:27:46 +000036823if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
36824 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
36825Usually this means the macro was only invoked conditionally." "$LINENO" 5
36826fi
cristy73bd4a52010-10-05 11:24:23 +000036827if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036828 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036829Usually this means the macro was only invoked conditionally." "$LINENO" 5
36830fi
36831if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036832 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036833Usually this means the macro was only invoked conditionally." "$LINENO" 5
36834fi
cristydd17feb2014-03-05 02:06:32 +000036835if test -z "${INSTALL_DOC_TRUE}" && test -z "${INSTALL_DOC_FALSE}"; then
36836 as_fn_error $? "conditional \"INSTALL_DOC\" was never defined.
36837Usually this means the macro was only invoked conditionally." "$LINENO" 5
36838fi
cristy73bd4a52010-10-05 11:24:23 +000036839if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036840 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036841Usually this means the macro was only invoked conditionally." "$LINENO" 5
36842fi
36843if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036844 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036845Usually this means the macro was only invoked conditionally." "$LINENO" 5
36846fi
36847if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036848 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036849Usually this means the macro was only invoked conditionally." "$LINENO" 5
36850fi
36851if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036852 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036853Usually this means the macro was only invoked conditionally." "$LINENO" 5
36854fi
36855if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036856 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036857Usually this means the macro was only invoked conditionally." "$LINENO" 5
36858fi
36859if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036860 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036861Usually this means the macro was only invoked conditionally." "$LINENO" 5
36862fi
cristy3ed852e2009-09-05 21:47:34 +000036863
cristyda16f162011-02-19 23:52:17 +000036864: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000036865ac_write_fail=0
36866ac_clean_files_save=$ac_clean_files
36867ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000036868{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000036869$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000036870as_write_fail=0
36871cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036872#! $SHELL
36873# Generated by $as_me.
36874# Run this file to recreate the current configuration.
36875# Compiler output produced by configure, useful for debugging
36876# configure, is in config.log if it exists.
36877
36878debug=false
36879ac_cs_recheck=false
36880ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000036881
cristy8b350f62009-11-15 23:12:43 +000036882SHELL=\${CONFIG_SHELL-$SHELL}
36883export SHELL
36884_ASEOF
36885cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
36886## -------------------- ##
36887## M4sh Initialization. ##
36888## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000036889
36890# Be more Bourne compatible
36891DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000036892if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000036893 emulate sh
36894 NULLCMD=:
36895 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
36896 # is contrary to our usage. Disable this feature.
36897 alias -g '${1+"$@"}'='"$@"'
36898 setopt NO_GLOB_SUBST
36899else
cristy8b350f62009-11-15 23:12:43 +000036900 case `(set -o) 2>/dev/null` in #(
36901 *posix*) :
36902 set -o posix ;; #(
36903 *) :
36904 ;;
cristy3ed852e2009-09-05 21:47:34 +000036905esac
cristy3ed852e2009-09-05 21:47:34 +000036906fi
36907
36908
cristy3ed852e2009-09-05 21:47:34 +000036909as_nl='
36910'
36911export as_nl
36912# Printing a long string crashes Solaris 7 /usr/bin/printf.
36913as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
36914as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
36915as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000036916# Prefer a ksh shell builtin over an external printf program on Solaris,
36917# but without wasting forks for bash or zsh.
36918if test -z "$BASH_VERSION$ZSH_VERSION" \
36919 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
36920 as_echo='print -r --'
36921 as_echo_n='print -rn --'
36922elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000036923 as_echo='printf %s\n'
36924 as_echo_n='printf %s'
36925else
36926 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
36927 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
36928 as_echo_n='/usr/ucb/echo -n'
36929 else
36930 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
36931 as_echo_n_body='eval
36932 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000036933 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000036934 *"$as_nl"*)
36935 expr "X$arg" : "X\\(.*\\)$as_nl";
36936 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
36937 esac;
36938 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
36939 '
36940 export as_echo_n_body
36941 as_echo_n='sh -c $as_echo_n_body as_echo'
36942 fi
36943 export as_echo_body
36944 as_echo='sh -c $as_echo_body as_echo'
36945fi
36946
36947# The user is always right.
36948if test "${PATH_SEPARATOR+set}" != set; then
36949 PATH_SEPARATOR=:
36950 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
36951 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
36952 PATH_SEPARATOR=';'
36953 }
36954fi
36955
cristy3ed852e2009-09-05 21:47:34 +000036956
36957# IFS
36958# We need space, tab and new line, in precisely that order. Quoting is
36959# there to prevent editors from complaining about space-tab.
36960# (If _AS_PATH_WALK were called with IFS unset, it would disable word
36961# splitting by setting IFS to empty value.)
36962IFS=" "" $as_nl"
36963
36964# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000036965as_myself=
cristy8b350f62009-11-15 23:12:43 +000036966case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000036967 *[\\/]* ) as_myself=$0 ;;
36968 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36969for as_dir in $PATH
36970do
36971 IFS=$as_save_IFS
36972 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000036973 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
36974 done
cristy3ed852e2009-09-05 21:47:34 +000036975IFS=$as_save_IFS
36976
36977 ;;
36978esac
36979# We did not find ourselves, most probably we were run as `sh COMMAND'
36980# in which case we are not to be found in the path.
36981if test "x$as_myself" = x; then
36982 as_myself=$0
36983fi
36984if test ! -f "$as_myself"; then
36985 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000036986 exit 1
cristy3ed852e2009-09-05 21:47:34 +000036987fi
36988
cristy8b350f62009-11-15 23:12:43 +000036989# Unset variables that we do not need and which cause bugs (e.g. in
36990# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
36991# suppresses any "Segmentation fault" message there. '((' could
36992# trigger a bug in pdksh 5.2.14.
36993for as_var in BASH_ENV ENV MAIL MAILPATH
36994do eval test x\${$as_var+set} = xset \
36995 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000036996done
36997PS1='$ '
36998PS2='> '
36999PS4='+ '
37000
37001# NLS nuisances.
37002LC_ALL=C
37003export LC_ALL
37004LANGUAGE=C
37005export LANGUAGE
37006
cristy8b350f62009-11-15 23:12:43 +000037007# CDPATH.
37008(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
37009
37010
cristy98dddb52010-11-04 00:30:15 +000037011# as_fn_error STATUS ERROR [LINENO LOG_FD]
37012# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000037013# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
37014# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000037015# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000037016as_fn_error ()
37017{
cristy98dddb52010-11-04 00:30:15 +000037018 as_status=$1; test $as_status -eq 0 && as_status=1
37019 if test "$4"; then
37020 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
37021 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000037022 fi
cristy98dddb52010-11-04 00:30:15 +000037023 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000037024 as_fn_exit $as_status
37025} # as_fn_error
37026
37027
37028# as_fn_set_status STATUS
37029# -----------------------
37030# Set $? to STATUS, without forking.
37031as_fn_set_status ()
37032{
37033 return $1
37034} # as_fn_set_status
37035
37036# as_fn_exit STATUS
37037# -----------------
37038# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
37039as_fn_exit ()
37040{
37041 set +e
37042 as_fn_set_status $1
37043 exit $1
37044} # as_fn_exit
37045
37046# as_fn_unset VAR
37047# ---------------
37048# Portably unset VAR.
37049as_fn_unset ()
37050{
37051 { eval $1=; unset $1;}
37052}
37053as_unset=as_fn_unset
37054# as_fn_append VAR VALUE
37055# ----------------------
37056# Append the text in VALUE to the end of the definition contained in VAR. Take
37057# advantage of any shell optimizations that allow amortized linear growth over
37058# repeated appends, instead of the typical quadratic growth present in naive
37059# implementations.
37060if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
37061 eval 'as_fn_append ()
37062 {
37063 eval $1+=\$2
37064 }'
37065else
37066 as_fn_append ()
37067 {
37068 eval $1=\$$1\$2
37069 }
37070fi # as_fn_append
37071
37072# as_fn_arith ARG...
37073# ------------------
37074# Perform arithmetic evaluation on the ARGs, and store the result in the
37075# global $as_val. Take advantage of shells that can avoid forks. The arguments
37076# must be portable across $(()) and expr.
37077if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
37078 eval 'as_fn_arith ()
37079 {
37080 as_val=$(( $* ))
37081 }'
37082else
37083 as_fn_arith ()
37084 {
37085 as_val=`expr "$@" || test $? -eq 1`
37086 }
37087fi # as_fn_arith
37088
37089
cristy3ed852e2009-09-05 21:47:34 +000037090if expr a : '\(a\)' >/dev/null 2>&1 &&
37091 test "X`expr 00001 : '.*\(...\)'`" = X001; then
37092 as_expr=expr
37093else
37094 as_expr=false
37095fi
37096
37097if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
37098 as_basename=basename
37099else
37100 as_basename=false
37101fi
37102
cristy8b350f62009-11-15 23:12:43 +000037103if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
37104 as_dirname=dirname
37105else
37106 as_dirname=false
37107fi
cristy3ed852e2009-09-05 21:47:34 +000037108
cristy3ed852e2009-09-05 21:47:34 +000037109as_me=`$as_basename -- "$0" ||
37110$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
37111 X"$0" : 'X\(//\)$' \| \
37112 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
37113$as_echo X/"$0" |
37114 sed '/^.*\/\([^/][^/]*\)\/*$/{
37115 s//\1/
37116 q
37117 }
37118 /^X\/\(\/\/\)$/{
37119 s//\1/
37120 q
37121 }
37122 /^X\/\(\/\).*/{
37123 s//\1/
37124 q
37125 }
37126 s/.*/./; q'`
37127
cristy8b350f62009-11-15 23:12:43 +000037128# Avoid depending upon Character Ranges.
37129as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37130as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
37131as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37132as_cr_digits='0123456789'
37133as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000037134
37135ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000037136case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000037137-n*)
cristy8b350f62009-11-15 23:12:43 +000037138 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000037139 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000037140 xy) ECHO_C='\c';;
37141 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
37142 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000037143 esac;;
37144*)
37145 ECHO_N='-n';;
37146esac
cristy3ed852e2009-09-05 21:47:34 +000037147
37148rm -f conf$$ conf$$.exe conf$$.file
37149if test -d conf$$.dir; then
37150 rm -f conf$$.dir/conf$$.file
37151else
37152 rm -f conf$$.dir
37153 mkdir conf$$.dir 2>/dev/null
37154fi
37155if (echo >conf$$.file) 2>/dev/null; then
37156 if ln -s conf$$.file conf$$ 2>/dev/null; then
37157 as_ln_s='ln -s'
37158 # ... but there are two gotchas:
37159 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
37160 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cristy14fefe52012-05-21 00:59:18 +000037161 # In both cases, we have to default to `cp -pR'.
cristy3ed852e2009-09-05 21:47:34 +000037162 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cristy14fefe52012-05-21 00:59:18 +000037163 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000037164 elif ln conf$$.file conf$$ 2>/dev/null; then
37165 as_ln_s=ln
37166 else
cristy14fefe52012-05-21 00:59:18 +000037167 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000037168 fi
37169else
cristy14fefe52012-05-21 00:59:18 +000037170 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000037171fi
37172rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
37173rmdir conf$$.dir 2>/dev/null
37174
cristy8b350f62009-11-15 23:12:43 +000037175
37176# as_fn_mkdir_p
37177# -------------
37178# Create "$as_dir" as a directory, including parents if necessary.
37179as_fn_mkdir_p ()
37180{
37181
37182 case $as_dir in #(
37183 -*) as_dir=./$as_dir;;
37184 esac
37185 test -d "$as_dir" || eval $as_mkdir_p || {
37186 as_dirs=
37187 while :; do
37188 case $as_dir in #(
37189 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
37190 *) as_qdir=$as_dir;;
37191 esac
37192 as_dirs="'$as_qdir' $as_dirs"
37193 as_dir=`$as_dirname -- "$as_dir" ||
37194$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37195 X"$as_dir" : 'X\(//\)[^/]' \| \
37196 X"$as_dir" : 'X\(//\)$' \| \
37197 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
37198$as_echo X"$as_dir" |
37199 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37200 s//\1/
37201 q
37202 }
37203 /^X\(\/\/\)[^/].*/{
37204 s//\1/
37205 q
37206 }
37207 /^X\(\/\/\)$/{
37208 s//\1/
37209 q
37210 }
37211 /^X\(\/\).*/{
37212 s//\1/
37213 q
37214 }
37215 s/.*/./; q'`
37216 test -d "$as_dir" && break
37217 done
37218 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000037219 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000037220
37221
37222} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000037223if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000037224 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000037225else
37226 test -d ./-p && rmdir ./-p
37227 as_mkdir_p=false
37228fi
37229
cristy14fefe52012-05-21 00:59:18 +000037230
37231# as_fn_executable_p FILE
37232# -----------------------
37233# Test if FILE is an executable regular file.
37234as_fn_executable_p ()
37235{
37236 test -f "$1" && test -x "$1"
37237} # as_fn_executable_p
37238as_test_x='test -x'
37239as_executable_p=as_fn_executable_p
cristy3ed852e2009-09-05 21:47:34 +000037240
37241# Sed expression to map a string onto a valid CPP name.
37242as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
37243
37244# Sed expression to map a string onto a valid variable name.
37245as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
37246
37247
37248exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000037249## ----------------------------------- ##
37250## Main body of $CONFIG_STATUS script. ##
37251## ----------------------------------- ##
37252_ASEOF
37253test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000037254
cristy8b350f62009-11-15 23:12:43 +000037255cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37256# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000037257# report actual input values of CONFIG_FILES etc. instead of their
37258# values after options handling.
37259ac_log="
cristy29eb34e2011-10-16 00:46:08 +000037260This file was extended by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +000037261generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000037262
37263 CONFIG_FILES = $CONFIG_FILES
37264 CONFIG_HEADERS = $CONFIG_HEADERS
37265 CONFIG_LINKS = $CONFIG_LINKS
37266 CONFIG_COMMANDS = $CONFIG_COMMANDS
37267 $ $0 $@
37268
37269on `(hostname || uname -n) 2>/dev/null | sed 1q`
37270"
37271
37272_ACEOF
37273
37274case $ac_config_files in *"
37275"*) set x $ac_config_files; shift; ac_config_files=$*;;
37276esac
37277
37278case $ac_config_headers in *"
37279"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
37280esac
37281
37282
37283cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37284# Files that config.status was made for.
37285config_files="$ac_config_files"
37286config_headers="$ac_config_headers"
37287config_commands="$ac_config_commands"
37288
37289_ACEOF
37290
37291cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37292ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000037293\`$as_me' instantiates files and other configuration actions
37294from templates according to the current configuration. Unless the files
37295and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000037296
cristy8b350f62009-11-15 23:12:43 +000037297Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000037298
37299 -h, --help print this help, then exit
37300 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000037301 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000037302 -q, --quiet, --silent
37303 do not print progress messages
37304 -d, --debug don't remove temporary files
37305 --recheck update $as_me by reconfiguring in the same conditions
37306 --file=FILE[:TEMPLATE]
37307 instantiate the configuration file FILE
37308 --header=FILE[:TEMPLATE]
37309 instantiate the configuration header FILE
37310
37311Configuration files:
37312$config_files
37313
37314Configuration headers:
37315$config_headers
37316
37317Configuration commands:
37318$config_commands
37319
cristy8b350f62009-11-15 23:12:43 +000037320Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000037321
37322_ACEOF
37323cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000037324ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000037325ac_cs_version="\\
cristy29eb34e2011-10-16 00:46:08 +000037326ImageMagick config.status 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +000037327configured by $0, generated by GNU Autoconf 2.69,
cristycd4c5312009-11-22 01:19:08 +000037328 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000037329
cristy14fefe52012-05-21 00:59:18 +000037330Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000037331This config.status script is free software; the Free Software Foundation
37332gives unlimited permission to copy, distribute and modify it."
37333
37334ac_pwd='$ac_pwd'
37335srcdir='$srcdir'
37336INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000037337MKDIR_P='$MKDIR_P'
37338AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000037339test -n "\$AWK" || AWK=awk
37340_ACEOF
37341
37342cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37343# The default lists apply if the user does not specify any file.
37344ac_need_defaults=:
37345while test $# != 0
37346do
37347 case $1 in
cristyda16f162011-02-19 23:52:17 +000037348 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000037349 ac_option=`expr "X$1" : 'X\([^=]*\)='`
37350 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
37351 ac_shift=:
37352 ;;
cristyda16f162011-02-19 23:52:17 +000037353 --*=)
37354 ac_option=`expr "X$1" : 'X\([^=]*\)='`
37355 ac_optarg=
37356 ac_shift=:
37357 ;;
cristy3ed852e2009-09-05 21:47:34 +000037358 *)
37359 ac_option=$1
37360 ac_optarg=$2
37361 ac_shift=shift
37362 ;;
37363 esac
37364
37365 case $ac_option in
37366 # Handling of the options.
37367 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
37368 ac_cs_recheck=: ;;
37369 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
37370 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000037371 --config | --confi | --conf | --con | --co | --c )
37372 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000037373 --debug | --debu | --deb | --de | --d | -d )
37374 debug=: ;;
37375 --file | --fil | --fi | --f )
37376 $ac_shift
37377 case $ac_optarg in
37378 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000037379 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000037380 esac
cristy8b350f62009-11-15 23:12:43 +000037381 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000037382 ac_need_defaults=false;;
37383 --header | --heade | --head | --hea )
37384 $ac_shift
37385 case $ac_optarg in
37386 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
37387 esac
cristy8b350f62009-11-15 23:12:43 +000037388 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000037389 ac_need_defaults=false;;
37390 --he | --h)
37391 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000037392 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000037393Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000037394 --help | --hel | -h )
37395 $as_echo "$ac_cs_usage"; exit ;;
37396 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
37397 | -silent | --silent | --silen | --sile | --sil | --si | --s)
37398 ac_cs_silent=: ;;
37399
37400 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000037401 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000037402Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000037403
cristy8b350f62009-11-15 23:12:43 +000037404 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000037405 ac_need_defaults=false ;;
37406
37407 esac
37408 shift
37409done
37410
37411ac_configure_extra_args=
37412
37413if $ac_cs_silent; then
37414 exec 6>/dev/null
37415 ac_configure_extra_args="$ac_configure_extra_args --silent"
37416fi
37417
37418_ACEOF
37419cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37420if \$ac_cs_recheck; then
cristy14fefe52012-05-21 00:59:18 +000037421 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
cristy3ed852e2009-09-05 21:47:34 +000037422 shift
37423 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
37424 CONFIG_SHELL='$SHELL'
37425 export CONFIG_SHELL
37426 exec "\$@"
37427fi
37428
37429_ACEOF
37430cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37431exec 5>>config.log
37432{
37433 echo
37434 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
37435## Running $as_me. ##
37436_ASBOX
37437 $as_echo "$ac_log"
37438} >&5
37439
37440_ACEOF
37441cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000037442#
37443# INIT-COMMANDS
37444#
37445PACKAGE="$PACKAGE"
37446AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
37447
37448
37449# The HP-UX ksh and POSIX shell print the target directory to stdout
37450# if CDPATH is set.
37451(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
37452
37453sed_quote_subst='$sed_quote_subst'
37454double_quote_subst='$double_quote_subst'
37455delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000037456SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
37457Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
37458GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
37459EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
37460FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
37461SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
37462ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
37463LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
37464macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
37465macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
37466AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
37467DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
37468OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
37469enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
37470enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
37471pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
37472enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
cristy99bd5232011-12-07 14:38:20 +000037473PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037474host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
37475host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
37476host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
37477build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
37478build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
37479build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
37480NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
37481LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
37482max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
37483ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
37484exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
37485lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
37486lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
37487lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037488lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
37489lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037490reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
37491reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
37492deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
37493file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037494file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
37495want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
37496sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037497AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
37498AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037499archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037500STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
37501RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
37502old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
37503old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
37504old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
37505lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
37506CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
37507CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
37508compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
37509GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
37510lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
37511lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
37512lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
37513lt_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 +000037514nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
37515lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037516objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
37517MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
37518lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037519lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037520lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037521lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
37522lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
37523need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037524MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037525DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
37526NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
37527LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
37528OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
37529OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
37530libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
37531shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
37532extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
37533archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
37534enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
37535export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
37536whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
37537compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
37538old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
37539old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
37540archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
37541archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
37542module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
37543module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
37544with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
37545allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
37546no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
37547hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037548hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
37549hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
37550hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
37551hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
37552hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
37553hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
37554inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
37555link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037556always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
37557export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
37558exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
37559include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
37560prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037561postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037562file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
37563variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
37564need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
37565need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
37566version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
37567runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
37568shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
37569shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
37570libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
37571library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
37572soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
37573install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
37574postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
37575postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
37576finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
37577finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
37578hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
37579sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
37580sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
37581hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
37582enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
37583enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
37584enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
37585old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
37586striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
37587compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
37588predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
37589postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
37590predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
37591postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
37592compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
37593LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
37594reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
37595reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37596old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37597compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
37598GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
37599lt_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 +000037600lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037601lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037602lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
37603lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
37604archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
37605enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
37606export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
37607whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
37608compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
37609old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37610old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37611archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37612archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37613module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37614module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37615with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
37616allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
37617no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
37618hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037619hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
37620hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
37621hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
37622hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
37623hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
37624hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
37625inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
37626link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037627always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
37628export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37629exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
37630include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
37631prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037632postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037633file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
37634hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
37635compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
37636predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
37637postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
37638predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
37639postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
37640compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000037641
37642LTCC='$LTCC'
37643LTCFLAGS='$LTCFLAGS'
37644compiler='$compiler_DEFAULT'
37645
cristy0c60a692010-11-04 01:09:47 +000037646# A function that is used when there is no print builtin or printf.
37647func_fallback_echo ()
37648{
37649 eval 'cat <<_LTECHO_EOF
37650\$1
37651_LTECHO_EOF'
37652}
37653
cristy73bd4a52010-10-05 11:24:23 +000037654# Quote evaled strings.
37655for var in SED \
37656GREP \
37657EGREP \
37658FGREP \
cristy0c60a692010-11-04 01:09:47 +000037659SHELL \
37660ECHO \
cristy73bd4a52010-10-05 11:24:23 +000037661LD \
cristy0c60a692010-11-04 01:09:47 +000037662AS \
37663DLLTOOL \
37664OBJDUMP \
cristy99bd5232011-12-07 14:38:20 +000037665PATH_SEPARATOR \
cristy73bd4a52010-10-05 11:24:23 +000037666NM \
37667LN_S \
37668lt_SP2NL \
37669lt_NL2SP \
37670reload_flag \
37671deplibs_check_method \
37672file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000037673file_magic_glob \
37674want_nocaseglob \
37675sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000037676AR \
37677AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000037678archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000037679STRIP \
37680RANLIB \
37681CC \
37682CFLAGS \
37683compiler \
37684lt_cv_sys_global_symbol_pipe \
37685lt_cv_sys_global_symbol_to_cdecl \
37686lt_cv_sys_global_symbol_to_c_name_address \
37687lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000037688nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000037689lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000037690lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000037691lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000037692lt_prog_compiler_static \
37693lt_cv_prog_compiler_c_o \
37694need_locks \
cristyda16f162011-02-19 23:52:17 +000037695MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000037696DSYMUTIL \
37697NMEDIT \
37698LIPO \
37699OTOOL \
37700OTOOL64 \
37701shrext_cmds \
37702export_dynamic_flag_spec \
37703whole_archive_flag_spec \
37704compiler_needs_object \
37705with_gnu_ld \
37706allow_undefined_flag \
37707no_undefined_flag \
37708hardcode_libdir_flag_spec \
cristy73bd4a52010-10-05 11:24:23 +000037709hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000037710exclude_expsyms \
37711include_expsyms \
37712file_list_spec \
37713variables_saved_for_relink \
37714libname_spec \
37715library_names_spec \
37716soname_spec \
cristy0c60a692010-11-04 01:09:47 +000037717install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000037718finish_eval \
37719old_striplib \
37720striplib \
37721compiler_lib_search_dirs \
37722predep_objects \
37723postdep_objects \
37724predeps \
37725postdeps \
37726compiler_lib_search_path \
37727LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000037728reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037729compiler_CXX \
37730lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037731lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000037732lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037733lt_prog_compiler_static_CXX \
37734lt_cv_prog_compiler_c_o_CXX \
37735export_dynamic_flag_spec_CXX \
37736whole_archive_flag_spec_CXX \
37737compiler_needs_object_CXX \
37738with_gnu_ld_CXX \
37739allow_undefined_flag_CXX \
37740no_undefined_flag_CXX \
37741hardcode_libdir_flag_spec_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037742hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037743exclude_expsyms_CXX \
37744include_expsyms_CXX \
37745file_list_spec_CXX \
37746compiler_lib_search_dirs_CXX \
37747predep_objects_CXX \
37748postdep_objects_CXX \
37749predeps_CXX \
37750postdeps_CXX \
37751compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000037752 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000037753 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000037754 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000037755 ;;
37756 *)
37757 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37758 ;;
37759 esac
37760done
37761
37762# Double-quote double-evaled strings.
37763for var in reload_cmds \
37764old_postinstall_cmds \
37765old_postuninstall_cmds \
37766old_archive_cmds \
37767extract_expsyms_cmds \
37768old_archive_from_new_cmds \
37769old_archive_from_expsyms_cmds \
37770archive_cmds \
37771archive_expsym_cmds \
37772module_cmds \
37773module_expsym_cmds \
37774export_symbols_cmds \
37775prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000037776postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000037777postinstall_cmds \
37778postuninstall_cmds \
37779finish_cmds \
37780sys_lib_search_path_spec \
37781sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000037782reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037783old_archive_cmds_CXX \
37784old_archive_from_new_cmds_CXX \
37785old_archive_from_expsyms_cmds_CXX \
37786archive_cmds_CXX \
37787archive_expsym_cmds_CXX \
37788module_cmds_CXX \
37789module_expsym_cmds_CXX \
37790export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000037791prelink_cmds_CXX \
37792postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000037793 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000037794 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000037795 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000037796 ;;
37797 *)
37798 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37799 ;;
37800 esac
37801done
37802
cristy73bd4a52010-10-05 11:24:23 +000037803ac_aux_dir='$ac_aux_dir'
37804xsi_shell='$xsi_shell'
37805lt_shell_append='$lt_shell_append'
37806
37807# See if we are running on zsh, and set the options which allow our
37808# commands through without removal of \ escapes INIT.
37809if test -n "\${ZSH_VERSION+set}" ; then
37810 setopt NO_GLOB_SUBST
37811fi
37812
37813
37814 PACKAGE='$PACKAGE'
37815 VERSION='$VERSION'
37816 TIMESTAMP='$TIMESTAMP'
37817 RM='$RM'
37818 ofile='$ofile'
37819
37820
37821
37822
37823
37824
cristy3ed852e2009-09-05 21:47:34 +000037825_ACEOF
37826
37827cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37828
37829# Handling of arguments.
37830for ac_config_target in $ac_config_targets
37831do
37832 case $ac_config_target in
37833 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy01ff9f32012-12-01 18:15:29 +000037834 "MagickCore/magick-baseconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-baseconfig.h" ;;
cristy9af1cbf2014-12-28 22:03:09 +000037835 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
37836 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
37837 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
37838 "magick.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS magick.sh.in" ;;
37839 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
37840 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
37841 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
37842 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
cristy305c5dd2012-09-13 00:30:13 +000037843 "common.shi") CONFIG_FILES="$CONFIG_FILES common.shi" ;;
cristy3ed852e2009-09-05 21:47:34 +000037844 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
37845 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
37846 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
37847 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
37848 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy2df32802012-09-17 01:15:28 +000037849 "config/Magick++.dox") CONFIG_FILES="$CONFIG_FILES config/Magick++.dox" ;;
cristy5a3dc992014-12-05 19:50:04 +000037850 "config/type-apple.xml") CONFIG_FILES="$CONFIG_FILES config/type-apple.xml" ;;
cristy430a7312010-01-21 20:44:04 +000037851 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000037852 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
37853 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
37854 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
37855 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
37856 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
cristy4c08aed2011-07-01 19:47:50 +000037857 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000037858 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
cristy4c08aed2011-07-01 19:47:50 +000037859 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
37860 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
37861 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000037862 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
37863 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
cristy3ed852e2009-09-05 21:47:34 +000037864 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
cristy8d0ff762013-03-10 20:33:28 +000037865 "PerlMagick/default/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Magick.pm" ;;
cristy3e049f82013-02-13 13:26:53 +000037866 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
cristy8d0ff762013-03-10 20:33:28 +000037867 "PerlMagick/default/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Makefile.PL" ;;
cristycf0cbcc2013-02-13 23:32:58 +000037868 "PerlMagick/quantum/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/Makefile.PL" ;;
37869 "PerlMagick/quantum/quantum.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.pm" ;;
37870 "PerlMagick/quantum/quantum.xs") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.xs" ;;
37871 "PerlMagick/quantum/typemap") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/typemap" ;;
cristy3ed852e2009-09-05 21:47:34 +000037872 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
37873 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
37874 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
37875 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
37876 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
37877 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
37878 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
37879 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
37880 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
37881 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
37882 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
37883 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
cristy4c08aed2011-07-01 19:47:50 +000037884 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
37885 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000037886
cristy98dddb52010-11-04 00:30:15 +000037887 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037888 esac
37889done
37890
37891
37892# If the user did not use the arguments to specify the items to instantiate,
37893# then the envvar interface is used. Set only those that are not.
37894# We use the long form for the default assignment because of an extremely
37895# bizarre bug on SunOS 4.1.3.
37896if $ac_need_defaults; then
37897 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
37898 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
37899 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
37900fi
37901
37902# Have a temporary directory for convenience. Make it in the build tree
37903# simply because there is no reason against having it here, and in addition,
37904# creating and moving files from /tmp can sometimes cause problems.
37905# Hook for its removal unless debugging.
37906# Note that there is a small window in which the directory will not be cleaned:
37907# after its creation but before its name has been assigned to `$tmp'.
37908$debug ||
37909{
cristyda16f162011-02-19 23:52:17 +000037910 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000037911 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000037912 : "${ac_tmp:=$tmp}"
37913 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000037914' 0
cristy8b350f62009-11-15 23:12:43 +000037915 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000037916}
37917# Create a (secure) tmp directory for tmp files.
37918
37919{
37920 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000037921 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000037922} ||
37923{
37924 tmp=./conf$$-$RANDOM
37925 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000037926} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037927ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000037928
37929# Set up the scripts for CONFIG_FILES section.
37930# No need to generate them if there are no CONFIG_FILES.
37931# This happens for instance with `./config.status config.h'.
37932if test -n "$CONFIG_FILES"; then
37933
37934
cristy8b350f62009-11-15 23:12:43 +000037935ac_cr=`echo X | tr X '\015'`
37936# On cygwin, bash can eat \r inside `` if the user requested igncr.
37937# But we know of no other shell where ac_cr would be empty at this
37938# point, so we can use a bashism as a fallback.
37939if test "x$ac_cr" = x; then
37940 eval ac_cr=\$\'\\r\'
37941fi
cristy3ed852e2009-09-05 21:47:34 +000037942ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
37943if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000037944 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000037945else
37946 ac_cs_awk_cr=$ac_cr
37947fi
37948
cristyda16f162011-02-19 23:52:17 +000037949echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000037950_ACEOF
37951
37952
37953{
37954 echo "cat >conf$$subs.awk <<_ACEOF" &&
37955 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
37956 echo "_ACEOF"
37957} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037958 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
37959ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000037960ac_delim='%!_!# '
37961for ac_last_try in false false false false false :; do
37962 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037963 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037964
37965 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
37966 if test $ac_delim_n = $ac_delim_num; then
37967 break
37968 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037969 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037970 else
37971 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37972 fi
37973done
37974rm -f conf$$subs.sh
37975
37976cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000037977cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037978_ACEOF
37979sed -n '
37980h
37981s/^/S["/; s/!.*/"]=/
37982p
37983g
37984s/^[^!]*!//
37985:repl
37986t repl
37987s/'"$ac_delim"'$//
37988t delim
37989:nl
37990h
cristycd4c5312009-11-22 01:19:08 +000037991s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037992t more1
37993s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
37994p
37995n
37996b repl
37997:more1
37998s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37999p
38000g
38001s/.\{148\}//
38002t nl
38003:delim
38004h
cristycd4c5312009-11-22 01:19:08 +000038005s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000038006t more2
38007s/["\\]/\\&/g; s/^/"/; s/$/"/
38008p
38009b
38010:more2
38011s/["\\]/\\&/g; s/^/"/; s/$/"\\/
38012p
38013g
38014s/.\{148\}//
38015t delim
38016' <conf$$subs.awk | sed '
38017/^[^""]/{
38018 N
38019 s/\n//
38020}
38021' >>$CONFIG_STATUS || ac_write_fail=1
38022rm -f conf$$subs.awk
38023cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38024_ACAWK
cristyda16f162011-02-19 23:52:17 +000038025cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000038026 for (key in S) S_is_set[key] = 1
38027 FS = ""
38028
38029}
38030{
38031 line = $ 0
38032 nfields = split(line, field, "@")
38033 substed = 0
38034 len = length(field[1])
38035 for (i = 2; i < nfields; i++) {
38036 key = field[i]
38037 keylen = length(key)
38038 if (S_is_set[key]) {
38039 value = S[key]
38040 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
38041 len += length(value) + length(field[++i])
38042 substed = 1
38043 } else
38044 len += 1 + keylen
38045 }
38046
38047 print line
38048}
38049
38050_ACAWK
38051_ACEOF
38052cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38053if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
38054 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
38055else
38056 cat
cristyda16f162011-02-19 23:52:17 +000038057fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000038058 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038059_ACEOF
38060
cristy98dddb52010-11-04 00:30:15 +000038061# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
38062# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000038063# trailing colons and then remove the whole line if VPATH becomes empty
38064# (actually we leave an empty line to preserve line numbers).
38065if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000038066 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
38067h
38068s///
38069s/^/:/
38070s/[ ]*$/:/
38071s/:\$(srcdir):/:/g
38072s/:\${srcdir}:/:/g
38073s/:@srcdir@:/:/g
38074s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000038075s/:*$//
cristy98dddb52010-11-04 00:30:15 +000038076x
38077s/\(=[ ]*\).*/\1/
38078G
38079s/\n//
cristy3ed852e2009-09-05 21:47:34 +000038080s/^[^=]*=[ ]*$//
38081}'
38082fi
38083
38084cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38085fi # test -n "$CONFIG_FILES"
38086
38087# Set up the scripts for CONFIG_HEADERS section.
38088# No need to generate them if there are no CONFIG_HEADERS.
38089# This happens for instance with `./config.status Makefile'.
38090if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000038091cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000038092BEGIN {
38093_ACEOF
38094
38095# Transform confdefs.h into an awk script `defines.awk', embedded as
38096# here-document in config.status, that substitutes the proper values into
38097# config.h.in to produce config.h.
38098
38099# Create a delimiter string that does not exist in confdefs.h, to ease
38100# handling of long lines.
38101ac_delim='%!_!# '
38102for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000038103 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
38104 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000038105 break
38106 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000038107 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038108 else
38109 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
38110 fi
38111done
38112
38113# For the awk script, D is an array of macro values keyed by name,
38114# likewise P contains macro parameters if any. Preserve backslash
38115# newline sequences.
38116
38117ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
38118sed -n '
38119s/.\{148\}/&'"$ac_delim"'/g
38120t rset
38121:rset
38122s/^[ ]*#[ ]*define[ ][ ]*/ /
38123t def
38124d
38125:def
38126s/\\$//
38127t bsnl
38128s/["\\]/\\&/g
38129s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
38130D["\1"]=" \3"/p
38131s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
38132d
38133:bsnl
38134s/["\\]/\\&/g
38135s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
38136D["\1"]=" \3\\\\\\n"\\/p
38137t cont
38138s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
38139t cont
38140d
38141:cont
38142n
38143s/.\{148\}/&'"$ac_delim"'/g
38144t clear
38145:clear
38146s/\\$//
38147t bsnlc
38148s/["\\]/\\&/g; s/^/"/; s/$/"/p
38149d
38150:bsnlc
38151s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
38152b cont
38153' <confdefs.h | sed '
38154s/'"$ac_delim"'/"\\\
38155"/g' >>$CONFIG_STATUS || ac_write_fail=1
38156
38157cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38158 for (key in D) D_is_set[key] = 1
38159 FS = ""
38160}
38161/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
38162 line = \$ 0
38163 split(line, arg, " ")
38164 if (arg[1] == "#") {
38165 defundef = arg[2]
38166 mac1 = arg[3]
38167 } else {
38168 defundef = substr(arg[1], 2)
38169 mac1 = arg[2]
38170 }
38171 split(mac1, mac2, "(") #)
38172 macro = mac2[1]
38173 prefix = substr(line, 1, index(line, defundef) - 1)
38174 if (D_is_set[macro]) {
38175 # Preserve the white space surrounding the "#".
38176 print prefix "define", macro P[macro] D[macro]
38177 next
38178 } else {
38179 # Replace #undef with comments. This is necessary, for example,
38180 # in the case of _POSIX_SOURCE, which is predefined and required
38181 # on some systems where configure will not decide to define it.
38182 if (defundef == "undef") {
38183 print "/*", prefix defundef, macro, "*/"
38184 next
38185 }
38186 }
38187}
38188{ print }
38189_ACAWK
38190_ACEOF
38191cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000038192 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038193fi # test -n "$CONFIG_HEADERS"
38194
38195
38196eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
38197shift
38198for ac_tag
38199do
38200 case $ac_tag in
38201 :[FHLC]) ac_mode=$ac_tag; continue;;
38202 esac
38203 case $ac_mode$ac_tag in
38204 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000038205 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000038206 :[FH]-) ac_tag=-:-;;
38207 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
38208 esac
38209 ac_save_IFS=$IFS
38210 IFS=:
38211 set x $ac_tag
38212 IFS=$ac_save_IFS
38213 shift
38214 ac_file=$1
38215 shift
38216
38217 case $ac_mode in
38218 :L) ac_source=$1;;
38219 :[FH])
38220 ac_file_inputs=
38221 for ac_f
38222 do
38223 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000038224 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000038225 *) # Look for the file first in the build tree, then in the source tree
38226 # (if the path is not absolute). The absolute path cannot be DOS-style,
38227 # because $ac_f cannot contain `:'.
38228 test -f "$ac_f" ||
38229 case $ac_f in
38230 [\\/$]*) false;;
38231 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
38232 esac ||
cristy98dddb52010-11-04 00:30:15 +000038233 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000038234 esac
38235 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000038236 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000038237 done
38238
38239 # Let's still pretend it is `configure' which instantiates (i.e., don't
38240 # use $as_me), people would be surprised to read:
38241 # /* config.h. Generated by config.status. */
38242 configure_input='Generated from '`
38243 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
38244 `' by configure.'
38245 if test x"$ac_file" != x-; then
38246 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000038247 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000038248$as_echo "$as_me: creating $ac_file" >&6;}
38249 fi
38250 # Neutralize special characters interpreted by sed in replacement strings.
38251 case $configure_input in #(
38252 *\&* | *\|* | *\\* )
38253 ac_sed_conf_input=`$as_echo "$configure_input" |
38254 sed 's/[\\\\&|]/\\\\&/g'`;; #(
38255 *) ac_sed_conf_input=$configure_input;;
38256 esac
38257
38258 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000038259 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000038260 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000038261 esac
38262 ;;
38263 esac
38264
38265 ac_dir=`$as_dirname -- "$ac_file" ||
38266$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38267 X"$ac_file" : 'X\(//\)[^/]' \| \
38268 X"$ac_file" : 'X\(//\)$' \| \
38269 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
38270$as_echo X"$ac_file" |
38271 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38272 s//\1/
38273 q
38274 }
38275 /^X\(\/\/\)[^/].*/{
38276 s//\1/
38277 q
38278 }
38279 /^X\(\/\/\)$/{
38280 s//\1/
38281 q
38282 }
38283 /^X\(\/\).*/{
38284 s//\1/
38285 q
38286 }
38287 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000038288 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000038289 ac_builddir=.
38290
38291case "$ac_dir" in
38292.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
38293*)
38294 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
38295 # A ".." for each directory in $ac_dir_suffix.
38296 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
38297 case $ac_top_builddir_sub in
38298 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
38299 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
38300 esac ;;
38301esac
38302ac_abs_top_builddir=$ac_pwd
38303ac_abs_builddir=$ac_pwd$ac_dir_suffix
38304# for backward compatibility:
38305ac_top_builddir=$ac_top_build_prefix
38306
38307case $srcdir in
38308 .) # We are building in place.
38309 ac_srcdir=.
38310 ac_top_srcdir=$ac_top_builddir_sub
38311 ac_abs_top_srcdir=$ac_pwd ;;
38312 [\\/]* | ?:[\\/]* ) # Absolute name.
38313 ac_srcdir=$srcdir$ac_dir_suffix;
38314 ac_top_srcdir=$srcdir
38315 ac_abs_top_srcdir=$srcdir ;;
38316 *) # Relative name.
38317 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
38318 ac_top_srcdir=$ac_top_build_prefix$srcdir
38319 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
38320esac
38321ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
38322
38323
38324 case $ac_mode in
38325 :F)
38326 #
38327 # CONFIG_FILE
38328 #
38329
38330 case $INSTALL in
38331 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
38332 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
38333 esac
cristy73bd4a52010-10-05 11:24:23 +000038334 ac_MKDIR_P=$MKDIR_P
38335 case $MKDIR_P in
38336 [\\/$]* | ?:[\\/]* ) ;;
38337 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
38338 esac
cristy3ed852e2009-09-05 21:47:34 +000038339_ACEOF
38340
38341cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38342# If the template does not know about datarootdir, expand it.
38343# FIXME: This hack should be removed a few years after 2.60.
38344ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000038345ac_sed_dataroot='
38346/datarootdir/ {
38347 p
38348 q
38349}
38350/@datadir@/p
38351/@docdir@/p
38352/@infodir@/p
38353/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000038354/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000038355case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
38356*datarootdir*) ac_datarootdir_seen=yes;;
38357*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000038358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000038359$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
38360_ACEOF
38361cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38362 ac_datarootdir_hack='
38363 s&@datadir@&$datadir&g
38364 s&@docdir@&$docdir&g
38365 s&@infodir@&$infodir&g
38366 s&@localedir@&$localedir&g
38367 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000038368 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000038369esac
38370_ACEOF
38371
38372# Neutralize VPATH when `$srcdir' = `.'.
38373# Shell code in configure.ac might set extrasub.
38374# FIXME: do we really want to maintain this feature?
38375cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38376ac_sed_extra="$ac_vpsub
38377$extrasub
38378_ACEOF
38379cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38380:t
38381/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
38382s|@configure_input@|$ac_sed_conf_input|;t t
38383s&@top_builddir@&$ac_top_builddir_sub&;t t
38384s&@top_build_prefix@&$ac_top_build_prefix&;t t
38385s&@srcdir@&$ac_srcdir&;t t
38386s&@abs_srcdir@&$ac_abs_srcdir&;t t
38387s&@top_srcdir@&$ac_top_srcdir&;t t
38388s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
38389s&@builddir@&$ac_builddir&;t t
38390s&@abs_builddir@&$ac_abs_builddir&;t t
38391s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
38392s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000038393s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000038394$ac_datarootdir_hack
38395"
cristyda16f162011-02-19 23:52:17 +000038396eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
38397 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038398
38399test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000038400 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
38401 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
38402 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000038403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000038404which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000038405$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000038406which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000038407
cristyda16f162011-02-19 23:52:17 +000038408 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000038409 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000038410 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
38411 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000038412 esac \
cristy98dddb52010-11-04 00:30:15 +000038413 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038414 ;;
38415 :H)
38416 #
38417 # CONFIG_HEADER
38418 #
38419 if test x"$ac_file" != x-; then
38420 {
38421 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000038422 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
38423 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000038424 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000038425 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000038426 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000038427$as_echo "$as_me: $ac_file is unchanged" >&6;}
38428 else
38429 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000038430 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000038431 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038432 fi
38433 else
38434 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000038435 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000038436 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038437 fi
cristy73bd4a52010-10-05 11:24:23 +000038438# Compute "$ac_file"'s index in $config_headers.
38439_am_arg="$ac_file"
38440_am_stamp_count=1
38441for _am_header in $config_headers :; do
38442 case $_am_header in
38443 $_am_arg | $_am_arg:* )
38444 break ;;
38445 * )
38446 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
38447 esac
38448done
38449echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
38450$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38451 X"$_am_arg" : 'X\(//\)[^/]' \| \
38452 X"$_am_arg" : 'X\(//\)$' \| \
38453 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
38454$as_echo X"$_am_arg" |
38455 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38456 s//\1/
38457 q
38458 }
38459 /^X\(\/\/\)[^/].*/{
38460 s//\1/
38461 q
38462 }
38463 /^X\(\/\/\)$/{
38464 s//\1/
38465 q
38466 }
38467 /^X\(\/\).*/{
38468 s//\1/
38469 q
38470 }
38471 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000038472 ;;
38473
cristy8b350f62009-11-15 23:12:43 +000038474 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000038475$as_echo "$as_me: executing $ac_file commands" >&6;}
38476 ;;
38477 esac
38478
38479
38480 case $ac_file$ac_mode in
cristy01ff9f32012-12-01 18:15:29 +000038481 "MagickCore/magick-baseconfig.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-baseconfig.h`
cristy73bd4a52010-10-05 11:24:23 +000038482ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
38483ac_prefix_conf_PKG=`echo MagickCore`
38484ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
38485ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
38486ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
38487if test ".$ac_prefix_conf_INP" = "."; then
38488 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
38489 case "$ac_file" in
38490 *.h) ac_prefix_conf_INP=$ac_file ;;
38491 *)
38492 esac
38493 test ".$ac_prefix_conf_INP" != "." && break
38494 done
38495fi
38496if test ".$ac_prefix_conf_INP" = "."; then
38497 case "$ac_prefix_conf_OUT" in
38498 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
38499 ;;
38500 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
38501 ;;
38502 *) ac_prefix_conf_INP=config.h
38503 ;;
38504 esac
38505fi
38506if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000038507 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000038508else
38509 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
38510 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
38511 fi fi
38512 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
38513$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
38514 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000038515 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
38516 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
38517 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
38518 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
38519 $as_echo "#endif/" >> conftest.prefix
38520 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
38521 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
38522 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000038523 # now executing _script on _DEF input to create _OUT output file
38524 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
38525 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
38526 echo ' ' >>$tmp/pconfig.h
38527 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
38528
38529 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
38530 echo ' ' >>$tmp/pconfig.h
38531 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
38532 echo "#endif" >>$tmp/pconfig.h
38533 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
38534 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
38535$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
38536 else
38537 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
38538$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38539 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
38540 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
38541 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
38542$as_echo X"$ac_prefix_conf_OUT" |
38543 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38544 s//\1/
38545 q
38546 }
38547 /^X\(\/\/\)[^/].*/{
38548 s//\1/
38549 q
38550 }
38551 /^X\(\/\/\)$/{
38552 s//\1/
38553 q
38554 }
38555 /^X\(\/\).*/{
38556 s//\1/
38557 q
38558 }
38559 s/.*/./; q'`
38560 as_dir="$ac_dir"; as_fn_mkdir_p
38561 rm -f "$ac_prefix_conf_OUT"
38562 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
38563 fi
cristy73bd4a52010-10-05 11:24:23 +000038564 else
cristy98dddb52010-11-04 00:30:15 +000038565 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 +000038566 fi
38567 rm -f conftest.*
38568fi
38569 ;;
38570 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
cristy58d34aa2013-01-24 15:11:54 +000038571 # Older Autoconf quotes --file arguments for eval, but not when files
cristy73bd4a52010-10-05 11:24:23 +000038572 # are listed without --file. Let's play safe and only enable the eval
38573 # if we detect the quoting.
38574 case $CONFIG_FILES in
38575 *\'*) eval set x "$CONFIG_FILES" ;;
38576 *) set x $CONFIG_FILES ;;
38577 esac
38578 shift
38579 for mf
38580 do
38581 # Strip MF so we end up with the name of the file.
38582 mf=`echo "$mf" | sed -e 's/:.*$//'`
38583 # Check whether this is an Automake generated Makefile or not.
cristyc0890a62012-07-19 00:18:20 +000038584 # We used to match only the files named 'Makefile.in', but
cristy73bd4a52010-10-05 11:24:23 +000038585 # some people rename them; so instead we look at the file content.
38586 # Grep'ing the first line is not enough: some people post-process
38587 # each Makefile.in and add a new line on top of each file to say so.
38588 # Grep'ing the whole file is not good either: AIX grep has a line
38589 # limit of 2048, but all sed's we know have understand at least 4000.
38590 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
38591 dirpart=`$as_dirname -- "$mf" ||
38592$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38593 X"$mf" : 'X\(//\)[^/]' \| \
38594 X"$mf" : 'X\(//\)$' \| \
38595 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
38596$as_echo X"$mf" |
38597 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38598 s//\1/
38599 q
38600 }
38601 /^X\(\/\/\)[^/].*/{
38602 s//\1/
38603 q
38604 }
38605 /^X\(\/\/\)$/{
38606 s//\1/
38607 q
38608 }
38609 /^X\(\/\).*/{
38610 s//\1/
38611 q
38612 }
38613 s/.*/./; q'`
38614 else
38615 continue
38616 fi
38617 # Extract the definition of DEPDIR, am__include, and am__quote
cristyc0890a62012-07-19 00:18:20 +000038618 # from the Makefile without running 'make'.
cristy73bd4a52010-10-05 11:24:23 +000038619 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
38620 test -z "$DEPDIR" && continue
38621 am__include=`sed -n 's/^am__include = //p' < "$mf"`
cristybced8142013-05-31 01:23:57 +000038622 test -z "$am__include" && continue
cristy73bd4a52010-10-05 11:24:23 +000038623 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
cristy73bd4a52010-10-05 11:24:23 +000038624 # Find all dependency output files, they are included files with
38625 # $(DEPDIR) in their names. We invoke sed twice because it is the
38626 # simplest approach to changing $(DEPDIR) to its actual value in the
38627 # expansion.
38628 for file in `sed -n "
38629 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
cristyc0890a62012-07-19 00:18:20 +000038630 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
cristy73bd4a52010-10-05 11:24:23 +000038631 # Make sure the directory exists.
38632 test -f "$dirpart/$file" && continue
38633 fdir=`$as_dirname -- "$file" ||
38634$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38635 X"$file" : 'X\(//\)[^/]' \| \
38636 X"$file" : 'X\(//\)$' \| \
38637 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
38638$as_echo X"$file" |
38639 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38640 s//\1/
38641 q
38642 }
38643 /^X\(\/\/\)[^/].*/{
38644 s//\1/
38645 q
38646 }
38647 /^X\(\/\/\)$/{
38648 s//\1/
38649 q
38650 }
38651 /^X\(\/\).*/{
38652 s//\1/
38653 q
38654 }
38655 s/.*/./; q'`
38656 as_dir=$dirpart/$fdir; as_fn_mkdir_p
38657 # echo "creating $dirpart/$file"
38658 echo '# dummy' > "$dirpart/$file"
38659 done
38660 done
38661}
38662 ;;
38663 "libtool":C)
38664
38665 # See if we are running on zsh, and set the options which allow our
38666 # commands through without removal of \ escapes.
38667 if test -n "${ZSH_VERSION+set}" ; then
38668 setopt NO_GLOB_SUBST
38669 fi
38670
38671 cfgfile="${ofile}T"
38672 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
38673 $RM "$cfgfile"
38674
38675 cat <<_LT_EOF >> "$cfgfile"
38676#! $SHELL
38677
38678# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
38679# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
38680# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
38681# NOTE: Changes made to this file will be lost: look at ltmain.sh.
38682#
38683# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy99bd5232011-12-07 14:38:20 +000038684# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
38685# Foundation, Inc.
cristy73bd4a52010-10-05 11:24:23 +000038686# Written by Gordon Matzigkeit, 1996
38687#
38688# This file is part of GNU Libtool.
38689#
38690# GNU Libtool is free software; you can redistribute it and/or
38691# modify it under the terms of the GNU General Public License as
38692# published by the Free Software Foundation; either version 2 of
38693# the License, or (at your option) any later version.
38694#
38695# As a special exception to the GNU General Public License,
38696# if you distribute this file as part of a program or library that
38697# is built using GNU Libtool, you may include this file under the
38698# same distribution terms that you use for the rest of that program.
38699#
38700# GNU Libtool is distributed in the hope that it will be useful,
38701# but WITHOUT ANY WARRANTY; without even the implied warranty of
38702# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
38703# GNU General Public License for more details.
38704#
38705# You should have received a copy of the GNU General Public License
38706# along with GNU Libtool; see the file COPYING. If not, a copy
38707# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
38708# obtained by writing to the Free Software Foundation, Inc.,
38709# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
38710
38711
38712# The names of the tagged configurations supported by this script.
38713available_tags="CXX "
38714
38715# ### BEGIN LIBTOOL CONFIG
38716
38717# A sed program that does not truncate output.
38718SED=$lt_SED
38719
38720# Sed that helps us avoid accidentally triggering echo(1) options like -n.
38721Xsed="\$SED -e 1s/^X//"
38722
38723# A grep program that handles long lines.
38724GREP=$lt_GREP
38725
38726# An ERE matcher.
38727EGREP=$lt_EGREP
38728
38729# A literal string matcher.
38730FGREP=$lt_FGREP
38731
cristy0c60a692010-11-04 01:09:47 +000038732# Shell to use when invoking shell scripts.
38733SHELL=$lt_SHELL
38734
38735# An echo program that protects backslashes.
38736ECHO=$lt_ECHO
38737
cristy73bd4a52010-10-05 11:24:23 +000038738# Which release of libtool.m4 was used?
38739macro_version=$macro_version
38740macro_revision=$macro_revision
38741
38742# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000038743AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000038744
38745# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000038746DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000038747
38748# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000038749OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000038750
38751# Whether or not to build shared libraries.
38752build_libtool_libs=$enable_shared
38753
38754# Whether or not to build static libraries.
38755build_old_libs=$enable_static
38756
38757# What type of objects to build.
38758pic_mode=$pic_mode
38759
38760# Whether or not to optimize for fast installation.
38761fast_install=$enable_fast_install
38762
cristy99bd5232011-12-07 14:38:20 +000038763# The PATH separator for the build system.
38764PATH_SEPARATOR=$lt_PATH_SEPARATOR
38765
cristy73bd4a52010-10-05 11:24:23 +000038766# The host system.
38767host_alias=$host_alias
38768host=$host
38769host_os=$host_os
38770
38771# The build system.
38772build_alias=$build_alias
38773build=$build
38774build_os=$build_os
38775
38776# A BSD- or MS-compatible name lister.
38777NM=$lt_NM
38778
38779# Whether we need soft or hard links.
38780LN_S=$lt_LN_S
38781
38782# What is the maximum length of a command?
38783max_cmd_len=$max_cmd_len
38784
38785# Object file suffix (normally "o").
38786objext=$ac_objext
38787
38788# Executable file suffix (normally "").
38789exeext=$exeext
38790
38791# whether the shell understands "unset".
38792lt_unset=$lt_unset
38793
38794# turn spaces into newlines.
38795SP2NL=$lt_lt_SP2NL
38796
38797# turn newlines into spaces.
38798NL2SP=$lt_lt_NL2SP
38799
cristyda16f162011-02-19 23:52:17 +000038800# convert \$build file names to \$host format.
38801to_host_file_cmd=$lt_cv_to_host_file_cmd
38802
38803# convert \$build files to toolchain format.
38804to_tool_file_cmd=$lt_cv_to_tool_file_cmd
38805
cristy73bd4a52010-10-05 11:24:23 +000038806# Method to check whether dependent libraries are shared objects.
38807deplibs_check_method=$lt_deplibs_check_method
38808
cristyda16f162011-02-19 23:52:17 +000038809# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000038810file_magic_cmd=$lt_file_magic_cmd
38811
cristyda16f162011-02-19 23:52:17 +000038812# How to find potential files when deplibs_check_method = "file_magic".
38813file_magic_glob=$lt_file_magic_glob
38814
38815# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
38816want_nocaseglob=$lt_want_nocaseglob
38817
38818# Command to associate shared and link libraries.
38819sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
38820
cristy73bd4a52010-10-05 11:24:23 +000038821# The archiver.
38822AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000038823
38824# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000038825AR_FLAGS=$lt_AR_FLAGS
38826
cristyda16f162011-02-19 23:52:17 +000038827# How to feed a file listing to the archiver.
38828archiver_list_spec=$lt_archiver_list_spec
38829
cristy73bd4a52010-10-05 11:24:23 +000038830# A symbol stripping program.
38831STRIP=$lt_STRIP
38832
38833# Commands used to install an old-style archive.
38834RANLIB=$lt_RANLIB
38835old_postinstall_cmds=$lt_old_postinstall_cmds
38836old_postuninstall_cmds=$lt_old_postuninstall_cmds
38837
cristy0c60a692010-11-04 01:09:47 +000038838# Whether to use a lock for old archive extraction.
38839lock_old_archive_extraction=$lock_old_archive_extraction
38840
cristy73bd4a52010-10-05 11:24:23 +000038841# A C compiler.
38842LTCC=$lt_CC
38843
38844# LTCC compiler flags.
38845LTCFLAGS=$lt_CFLAGS
38846
38847# Take the output of nm and produce a listing of raw symbols and C names.
38848global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
38849
38850# Transform the output of nm in a proper C declaration.
38851global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
38852
38853# Transform the output of nm in a C name address pair.
38854global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
38855
38856# Transform the output of nm in a C name address pair when lib prefix is needed.
38857global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
38858
cristyda16f162011-02-19 23:52:17 +000038859# Specify filename containing input files for \$NM.
38860nm_file_list_spec=$lt_nm_file_list_spec
38861
38862# The root where to search for dependent libraries,and in which our libraries should be installed.
38863lt_sysroot=$lt_sysroot
38864
cristy73bd4a52010-10-05 11:24:23 +000038865# The name of the directory that contains temporary libtool files.
38866objdir=$objdir
38867
cristy73bd4a52010-10-05 11:24:23 +000038868# Used to examine libraries when file_magic_cmd begins with "file".
38869MAGIC_CMD=$MAGIC_CMD
38870
38871# Must we lock files when doing compilation?
38872need_locks=$lt_need_locks
38873
cristyda16f162011-02-19 23:52:17 +000038874# Manifest tool.
38875MANIFEST_TOOL=$lt_MANIFEST_TOOL
38876
cristy73bd4a52010-10-05 11:24:23 +000038877# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
38878DSYMUTIL=$lt_DSYMUTIL
38879
38880# Tool to change global to local symbols on Mac OS X.
38881NMEDIT=$lt_NMEDIT
38882
38883# Tool to manipulate fat objects and archives on Mac OS X.
38884LIPO=$lt_LIPO
38885
38886# ldd/readelf like tool for Mach-O binaries on Mac OS X.
38887OTOOL=$lt_OTOOL
38888
38889# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
38890OTOOL64=$lt_OTOOL64
38891
38892# Old archive suffix (normally "a").
38893libext=$libext
38894
38895# Shared library suffix (normally ".so").
38896shrext_cmds=$lt_shrext_cmds
38897
38898# The commands to extract the exported symbol list from a shared archive.
38899extract_expsyms_cmds=$lt_extract_expsyms_cmds
38900
38901# Variables whose values should be saved in libtool wrapper scripts and
38902# restored at link time.
38903variables_saved_for_relink=$lt_variables_saved_for_relink
38904
38905# Do we need the "lib" prefix for modules?
38906need_lib_prefix=$need_lib_prefix
38907
38908# Do we need a version for libraries?
38909need_version=$need_version
38910
38911# Library versioning type.
38912version_type=$version_type
38913
38914# Shared library runtime path variable.
38915runpath_var=$runpath_var
38916
38917# Shared library path variable.
38918shlibpath_var=$shlibpath_var
38919
38920# Is shlibpath searched before the hard-coded library search path?
38921shlibpath_overrides_runpath=$shlibpath_overrides_runpath
38922
38923# Format of library name prefix.
38924libname_spec=$lt_libname_spec
38925
38926# List of archive names. First name is the real one, the rest are links.
38927# The last name is the one that the linker finds with -lNAME
38928library_names_spec=$lt_library_names_spec
38929
38930# The coded name of the library, if different from the real name.
38931soname_spec=$lt_soname_spec
38932
cristy0c60a692010-11-04 01:09:47 +000038933# Permission mode override for installation of shared libraries.
38934install_override_mode=$lt_install_override_mode
38935
cristy73bd4a52010-10-05 11:24:23 +000038936# Command to use after installation of a shared archive.
38937postinstall_cmds=$lt_postinstall_cmds
38938
38939# Command to use after uninstallation of a shared archive.
38940postuninstall_cmds=$lt_postuninstall_cmds
38941
38942# Commands used to finish a libtool library installation in a directory.
38943finish_cmds=$lt_finish_cmds
38944
38945# As "finish_cmds", except a single script fragment to be evaled but
38946# not shown.
38947finish_eval=$lt_finish_eval
38948
38949# Whether we should hardcode library paths into libraries.
38950hardcode_into_libs=$hardcode_into_libs
38951
38952# Compile-time system search path for libraries.
38953sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
38954
38955# Run-time system search path for libraries.
38956sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
38957
38958# Whether dlopen is supported.
38959dlopen_support=$enable_dlopen
38960
38961# Whether dlopen of programs is supported.
38962dlopen_self=$enable_dlopen_self
38963
38964# Whether dlopen of statically linked programs is supported.
38965dlopen_self_static=$enable_dlopen_self_static
38966
38967# Commands to strip libraries.
38968old_striplib=$lt_old_striplib
38969striplib=$lt_striplib
38970
38971
38972# The linker used to build libraries.
38973LD=$lt_LD
38974
cristy0c60a692010-11-04 01:09:47 +000038975# How to create reloadable object files.
38976reload_flag=$lt_reload_flag
38977reload_cmds=$lt_reload_cmds
38978
cristy73bd4a52010-10-05 11:24:23 +000038979# Commands used to build an old-style archive.
38980old_archive_cmds=$lt_old_archive_cmds
38981
38982# A language specific compiler.
38983CC=$lt_compiler
38984
38985# Is the compiler the GNU compiler?
38986with_gcc=$GCC
38987
38988# Compiler flag to turn off builtin functions.
38989no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
38990
cristy73bd4a52010-10-05 11:24:23 +000038991# Additional compiler flags for building library objects.
38992pic_flag=$lt_lt_prog_compiler_pic
38993
cristyda16f162011-02-19 23:52:17 +000038994# How to pass a linker flag through the compiler.
38995wl=$lt_lt_prog_compiler_wl
38996
cristy73bd4a52010-10-05 11:24:23 +000038997# Compiler flag to prevent dynamic linking.
38998link_static_flag=$lt_lt_prog_compiler_static
38999
39000# Does compiler simultaneously support -c and -o options?
39001compiler_c_o=$lt_lt_cv_prog_compiler_c_o
39002
39003# Whether or not to add -lc for building shared libraries.
39004build_libtool_need_lc=$archive_cmds_need_lc
39005
39006# Whether or not to disallow shared libs when runtime libs are static.
39007allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
39008
39009# Compiler flag to allow reflexive dlopens.
39010export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
39011
39012# Compiler flag to generate shared objects directly from archives.
39013whole_archive_flag_spec=$lt_whole_archive_flag_spec
39014
39015# Whether the compiler copes with passing no objects directly.
39016compiler_needs_object=$lt_compiler_needs_object
39017
39018# Create an old-style archive from a shared archive.
39019old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
39020
39021# Create a temporary old-style archive to link instead of a shared archive.
39022old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
39023
39024# Commands used to build a shared archive.
39025archive_cmds=$lt_archive_cmds
39026archive_expsym_cmds=$lt_archive_expsym_cmds
39027
39028# Commands used to build a loadable module if different from building
39029# a shared archive.
39030module_cmds=$lt_module_cmds
39031module_expsym_cmds=$lt_module_expsym_cmds
39032
39033# Whether we are building with GNU ld or not.
39034with_gnu_ld=$lt_with_gnu_ld
39035
39036# Flag that allows shared libraries with undefined symbols to be built.
39037allow_undefined_flag=$lt_allow_undefined_flag
39038
39039# Flag that enforces no undefined symbols.
39040no_undefined_flag=$lt_no_undefined_flag
39041
39042# Flag to hardcode \$libdir into a binary during linking.
39043# This must work even if \$libdir does not exist
39044hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
39045
cristy73bd4a52010-10-05 11:24:23 +000039046# Whether we need a single "-rpath" flag with a separated argument.
39047hardcode_libdir_separator=$lt_hardcode_libdir_separator
39048
39049# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
39050# DIR into the resulting binary.
39051hardcode_direct=$hardcode_direct
39052
39053# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
39054# DIR into the resulting binary and the resulting library dependency is
39055# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
39056# library is relocated.
39057hardcode_direct_absolute=$hardcode_direct_absolute
39058
39059# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
39060# into the resulting binary.
39061hardcode_minus_L=$hardcode_minus_L
39062
39063# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
39064# into the resulting binary.
39065hardcode_shlibpath_var=$hardcode_shlibpath_var
39066
39067# Set to "yes" if building a shared library automatically hardcodes DIR
39068# into the library and all subsequent libraries and executables linked
39069# against it.
39070hardcode_automatic=$hardcode_automatic
39071
39072# Set to yes if linker adds runtime paths of dependent libraries
39073# to runtime path list.
39074inherit_rpath=$inherit_rpath
39075
39076# Whether libtool must link a program against all its dependency libraries.
39077link_all_deplibs=$link_all_deplibs
39078
cristy73bd4a52010-10-05 11:24:23 +000039079# Set to "yes" if exported symbols are required.
39080always_export_symbols=$always_export_symbols
39081
39082# The commands to list exported symbols.
39083export_symbols_cmds=$lt_export_symbols_cmds
39084
39085# Symbols that should not be listed in the preloaded symbols.
39086exclude_expsyms=$lt_exclude_expsyms
39087
39088# Symbols that must always be exported.
39089include_expsyms=$lt_include_expsyms
39090
39091# Commands necessary for linking programs (against libraries) with templates.
39092prelink_cmds=$lt_prelink_cmds
39093
cristyda16f162011-02-19 23:52:17 +000039094# Commands necessary for finishing linking programs.
39095postlink_cmds=$lt_postlink_cmds
39096
cristy73bd4a52010-10-05 11:24:23 +000039097# Specify filename containing input files.
39098file_list_spec=$lt_file_list_spec
39099
39100# How to hardcode a shared library path into an executable.
39101hardcode_action=$hardcode_action
39102
39103# The directories searched by this compiler when creating a shared library.
39104compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
39105
39106# Dependencies to place before and after the objects being linked to
39107# create a shared library.
39108predep_objects=$lt_predep_objects
39109postdep_objects=$lt_postdep_objects
39110predeps=$lt_predeps
39111postdeps=$lt_postdeps
39112
39113# The library search path used internally by the compiler when linking
39114# a shared library.
39115compiler_lib_search_path=$lt_compiler_lib_search_path
39116
39117# ### END LIBTOOL CONFIG
39118
39119_LT_EOF
39120
39121 case $host_os in
39122 aix3*)
39123 cat <<\_LT_EOF >> "$cfgfile"
39124# AIX sometimes has problems with the GCC collect2 program. For some
39125# reason, if we set the COLLECT_NAMES environment variable, the problems
39126# vanish in a puff of smoke.
39127if test "X${COLLECT_NAMES+set}" != Xset; then
39128 COLLECT_NAMES=
39129 export COLLECT_NAMES
39130fi
39131_LT_EOF
39132 ;;
39133 esac
39134
39135
39136ltmain="$ac_aux_dir/ltmain.sh"
39137
39138
39139 # We use sed instead of cat because bash on DJGPP gets confused if
39140 # if finds mixed CR/LF and LF-only lines. Since sed operates in
39141 # text mode, it properly converts lines to CR/LF. This bash problem
39142 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000039143 sed '$q' "$ltmain" >> "$cfgfile" \
39144 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000039145
cristyda16f162011-02-19 23:52:17 +000039146 if test x"$xsi_shell" = xyes; then
39147 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
39148func_dirname ()\
39149{\
39150\ case ${1} in\
39151\ */*) func_dirname_result="${1%/*}${2}" ;;\
39152\ * ) func_dirname_result="${3}" ;;\
39153\ esac\
39154} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
39155 && mv -f "$cfgfile.tmp" "$cfgfile" \
39156 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39157test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000039158
39159
cristyda16f162011-02-19 23:52:17 +000039160 sed -e '/^func_basename ()$/,/^} # func_basename /c\
39161func_basename ()\
39162{\
39163\ func_basename_result="${1##*/}"\
39164} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
39165 && mv -f "$cfgfile.tmp" "$cfgfile" \
39166 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39167test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000039168
39169
cristyda16f162011-02-19 23:52:17 +000039170 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
39171func_dirname_and_basename ()\
39172{\
39173\ case ${1} in\
39174\ */*) func_dirname_result="${1%/*}${2}" ;;\
39175\ * ) func_dirname_result="${3}" ;;\
39176\ esac\
39177\ func_basename_result="${1##*/}"\
39178} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
39179 && mv -f "$cfgfile.tmp" "$cfgfile" \
39180 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39181test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000039182
cristyda16f162011-02-19 23:52:17 +000039183
39184 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
39185func_stripname ()\
39186{\
39187\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
39188\ # positional parameters, so assign one to ordinary parameter first.\
39189\ func_stripname_result=${3}\
39190\ func_stripname_result=${func_stripname_result#"${1}"}\
39191\ func_stripname_result=${func_stripname_result%"${2}"}\
39192} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
39193 && mv -f "$cfgfile.tmp" "$cfgfile" \
39194 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39195test 0 -eq $? || _lt_function_replace_fail=:
39196
39197
39198 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
39199func_split_long_opt ()\
39200{\
39201\ func_split_long_opt_name=${1%%=*}\
39202\ func_split_long_opt_arg=${1#*=}\
39203} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
39204 && mv -f "$cfgfile.tmp" "$cfgfile" \
39205 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39206test 0 -eq $? || _lt_function_replace_fail=:
39207
39208
39209 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
39210func_split_short_opt ()\
39211{\
39212\ func_split_short_opt_arg=${1#??}\
39213\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
39214} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
39215 && mv -f "$cfgfile.tmp" "$cfgfile" \
39216 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39217test 0 -eq $? || _lt_function_replace_fail=:
39218
39219
39220 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
39221func_lo2o ()\
39222{\
39223\ case ${1} in\
39224\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
39225\ *) func_lo2o_result=${1} ;;\
39226\ esac\
39227} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
39228 && mv -f "$cfgfile.tmp" "$cfgfile" \
39229 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39230test 0 -eq $? || _lt_function_replace_fail=:
39231
39232
39233 sed -e '/^func_xform ()$/,/^} # func_xform /c\
39234func_xform ()\
39235{\
39236 func_xform_result=${1%.*}.lo\
39237} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
39238 && mv -f "$cfgfile.tmp" "$cfgfile" \
39239 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39240test 0 -eq $? || _lt_function_replace_fail=:
39241
39242
39243 sed -e '/^func_arith ()$/,/^} # func_arith /c\
39244func_arith ()\
39245{\
39246 func_arith_result=$(( $* ))\
39247} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
39248 && mv -f "$cfgfile.tmp" "$cfgfile" \
39249 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39250test 0 -eq $? || _lt_function_replace_fail=:
39251
39252
39253 sed -e '/^func_len ()$/,/^} # func_len /c\
39254func_len ()\
39255{\
39256 func_len_result=${#1}\
39257} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
39258 && mv -f "$cfgfile.tmp" "$cfgfile" \
39259 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39260test 0 -eq $? || _lt_function_replace_fail=:
39261
39262fi
39263
39264if test x"$lt_shell_append" = xyes; then
39265 sed -e '/^func_append ()$/,/^} # func_append /c\
39266func_append ()\
39267{\
39268 eval "${1}+=\\${2}"\
39269} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
39270 && mv -f "$cfgfile.tmp" "$cfgfile" \
39271 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39272test 0 -eq $? || _lt_function_replace_fail=:
39273
39274
39275 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
39276func_append_quoted ()\
39277{\
39278\ func_quote_for_eval "${2}"\
39279\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
39280} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
39281 && mv -f "$cfgfile.tmp" "$cfgfile" \
39282 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39283test 0 -eq $? || _lt_function_replace_fail=:
39284
39285
39286 # Save a `func_append' function call where possible by direct use of '+='
39287 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
39288 && mv -f "$cfgfile.tmp" "$cfgfile" \
39289 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39290 test 0 -eq $? || _lt_function_replace_fail=:
39291else
39292 # Save a `func_append' function call even when '+=' is not available
39293 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
39294 && mv -f "$cfgfile.tmp" "$cfgfile" \
39295 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39296 test 0 -eq $? || _lt_function_replace_fail=:
39297fi
39298
39299if test x"$_lt_function_replace_fail" = x":"; then
39300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
39301$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
39302fi
39303
39304
39305 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000039306 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
39307 chmod +x "$ofile"
39308
39309
39310 cat <<_LT_EOF >> "$ofile"
39311
39312# ### BEGIN LIBTOOL TAG CONFIG: CXX
39313
39314# The linker used to build libraries.
39315LD=$lt_LD_CXX
39316
cristy0c60a692010-11-04 01:09:47 +000039317# How to create reloadable object files.
39318reload_flag=$lt_reload_flag_CXX
39319reload_cmds=$lt_reload_cmds_CXX
39320
cristy73bd4a52010-10-05 11:24:23 +000039321# Commands used to build an old-style archive.
39322old_archive_cmds=$lt_old_archive_cmds_CXX
39323
39324# A language specific compiler.
39325CC=$lt_compiler_CXX
39326
39327# Is the compiler the GNU compiler?
39328with_gcc=$GCC_CXX
39329
39330# Compiler flag to turn off builtin functions.
39331no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
39332
cristy73bd4a52010-10-05 11:24:23 +000039333# Additional compiler flags for building library objects.
39334pic_flag=$lt_lt_prog_compiler_pic_CXX
39335
cristyda16f162011-02-19 23:52:17 +000039336# How to pass a linker flag through the compiler.
39337wl=$lt_lt_prog_compiler_wl_CXX
39338
cristy73bd4a52010-10-05 11:24:23 +000039339# Compiler flag to prevent dynamic linking.
39340link_static_flag=$lt_lt_prog_compiler_static_CXX
39341
39342# Does compiler simultaneously support -c and -o options?
39343compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
39344
39345# Whether or not to add -lc for building shared libraries.
39346build_libtool_need_lc=$archive_cmds_need_lc_CXX
39347
39348# Whether or not to disallow shared libs when runtime libs are static.
39349allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
39350
39351# Compiler flag to allow reflexive dlopens.
39352export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
39353
39354# Compiler flag to generate shared objects directly from archives.
39355whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
39356
39357# Whether the compiler copes with passing no objects directly.
39358compiler_needs_object=$lt_compiler_needs_object_CXX
39359
39360# Create an old-style archive from a shared archive.
39361old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
39362
39363# Create a temporary old-style archive to link instead of a shared archive.
39364old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
39365
39366# Commands used to build a shared archive.
39367archive_cmds=$lt_archive_cmds_CXX
39368archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
39369
39370# Commands used to build a loadable module if different from building
39371# a shared archive.
39372module_cmds=$lt_module_cmds_CXX
39373module_expsym_cmds=$lt_module_expsym_cmds_CXX
39374
39375# Whether we are building with GNU ld or not.
39376with_gnu_ld=$lt_with_gnu_ld_CXX
39377
39378# Flag that allows shared libraries with undefined symbols to be built.
39379allow_undefined_flag=$lt_allow_undefined_flag_CXX
39380
39381# Flag that enforces no undefined symbols.
39382no_undefined_flag=$lt_no_undefined_flag_CXX
39383
39384# Flag to hardcode \$libdir into a binary during linking.
39385# This must work even if \$libdir does not exist
39386hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
39387
cristy73bd4a52010-10-05 11:24:23 +000039388# Whether we need a single "-rpath" flag with a separated argument.
39389hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
39390
39391# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
39392# DIR into the resulting binary.
39393hardcode_direct=$hardcode_direct_CXX
39394
39395# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
39396# DIR into the resulting binary and the resulting library dependency is
39397# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
39398# library is relocated.
39399hardcode_direct_absolute=$hardcode_direct_absolute_CXX
39400
39401# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
39402# into the resulting binary.
39403hardcode_minus_L=$hardcode_minus_L_CXX
39404
39405# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
39406# into the resulting binary.
39407hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
39408
39409# Set to "yes" if building a shared library automatically hardcodes DIR
39410# into the library and all subsequent libraries and executables linked
39411# against it.
39412hardcode_automatic=$hardcode_automatic_CXX
39413
39414# Set to yes if linker adds runtime paths of dependent libraries
39415# to runtime path list.
39416inherit_rpath=$inherit_rpath_CXX
39417
39418# Whether libtool must link a program against all its dependency libraries.
39419link_all_deplibs=$link_all_deplibs_CXX
39420
cristy73bd4a52010-10-05 11:24:23 +000039421# Set to "yes" if exported symbols are required.
39422always_export_symbols=$always_export_symbols_CXX
39423
39424# The commands to list exported symbols.
39425export_symbols_cmds=$lt_export_symbols_cmds_CXX
39426
39427# Symbols that should not be listed in the preloaded symbols.
39428exclude_expsyms=$lt_exclude_expsyms_CXX
39429
39430# Symbols that must always be exported.
39431include_expsyms=$lt_include_expsyms_CXX
39432
39433# Commands necessary for linking programs (against libraries) with templates.
39434prelink_cmds=$lt_prelink_cmds_CXX
39435
cristyda16f162011-02-19 23:52:17 +000039436# Commands necessary for finishing linking programs.
39437postlink_cmds=$lt_postlink_cmds_CXX
39438
cristy73bd4a52010-10-05 11:24:23 +000039439# Specify filename containing input files.
39440file_list_spec=$lt_file_list_spec_CXX
39441
39442# How to hardcode a shared library path into an executable.
39443hardcode_action=$hardcode_action_CXX
39444
39445# The directories searched by this compiler when creating a shared library.
39446compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
39447
39448# Dependencies to place before and after the objects being linked to
39449# create a shared library.
39450predep_objects=$lt_predep_objects_CXX
39451postdep_objects=$lt_postdep_objects_CXX
39452predeps=$lt_predeps_CXX
39453postdeps=$lt_postdeps_CXX
39454
39455# The library search path used internally by the compiler when linking
39456# a shared library.
39457compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
39458
39459# ### END LIBTOOL TAG CONFIG: CXX
39460_LT_EOF
39461
39462 ;;
cristy2bd4b6e2012-07-22 15:29:11 +000039463 "magick.sh.in":C) chmod +x magick.sh ;;
cristy4c08aed2011-07-01 19:47:50 +000039464 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
cristy4c08aed2011-07-01 19:47:50 +000039465 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
cristy3ed852e2009-09-05 21:47:34 +000039466 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
39467 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
39468
39469 esac
39470done # for ac_tag
39471
39472
cristy8b350f62009-11-15 23:12:43 +000039473as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000039474_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000039475ac_clean_files=$ac_clean_files_save
39476
39477test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000039478 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000039479
39480
39481# configure is writing to config.log, and then calls config.status.
39482# config.status does its own redirection, appending to config.log.
39483# Unfortunately, on DOS this fails, as config.log is still kept open
39484# by configure, so config.status won't be able to write to it; its
39485# output is simply discarded. So we exec the FD to /dev/null,
39486# effectively closing config.log, so it can be properly (re)opened and
39487# appended to by config.status. When coming back to configure, we
39488# need to make the FD available again.
39489if test "$no_create" != yes; then
39490 ac_cs_success=:
39491 ac_config_status_args=
39492 test "$silent" = yes &&
39493 ac_config_status_args="$ac_config_status_args --quiet"
39494 exec 5>/dev/null
39495 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
39496 exec 5>>config.log
39497 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
39498 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000039499 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000039500fi
39501if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000039502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000039503$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
39504fi
39505
39506
cristy9af1cbf2014-12-28 22:03:09 +000039507# ==============================================================================
39508# ImageMagick Configuration
39509# ==============================================================================
39510{ $as_echo "$as_me:${as_lineno-$LINENO}:
39511==============================================================================
cristy3ed852e2009-09-05 21:47:34 +000039512ImageMagick is configured as follows. Please verify that this configuration
39513matches your expectations.
39514
cristy9af1cbf2014-12-28 22:03:09 +000039515 Host system type: $host
39516 Build system type: $build
cristy3ed852e2009-09-05 21:47:34 +000039517
39518 Option Value
cristy9af1cbf2014-12-28 22:03:09 +000039519 ------------------------------------------------------------------------------
39520 Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
39521 Static libraries --enable-static=$enable_static $libtool_build_static_libs
39522 Module support --with-modules=$build_modules $build_modules
39523 GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
39524 Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
39525 High Dynamic Range Imagery
39526 --enable-hdri=$enable_hdri $enable_hdri
cristy3ed852e2009-09-05 21:47:34 +000039527
cristy9af1cbf2014-12-28 22:03:09 +000039528 Install documentation: $wantdocs
cristy3ed852e2009-09-05 21:47:34 +000039529
cristy9af1cbf2014-12-28 22:03:09 +000039530 Delegate Library Configuration:
39531 BZLIB --with-bzlib=$with_bzlib $have_bzlib
39532 Autotrace --with-autotrace=$with_autotrace $have_autotrace
39533 DJVU --with-djvu=$with_djvu $have_djvu
39534 DPS --with-dps=$with_dps $have_dps
39535 FFTW --with-fftw=$with_fftw $have_fftw
39536 FlashPIX --with-fpx=$with_fpx $have_fpx
39537 FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
39538 FreeType --with-freetype=$with_freetype $have_freetype
39539 Ghostscript lib --with-gslib=$with_gslib $have_gslib
39540 Graphviz --with-gvc=$with_gvc $have_gvc
39541 JBIG --with-jbig=$with_jbig $have_jbig
39542 JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
39543 JPEG-2000 --with-jp2=$with_jp2 $have_jp2
39544 LCMS v1 --with-lcms=$with_lcms $have_lcms
39545 LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
39546 LIBJPEG2 --with-openjp2=$with_openjp2 $have_openjp2
39547 LQR --with-lqr=$with_lqr $have_lqr
39548 LTDL --with-ltdl=$with_ltdl $have_ltdl
39549 LZMA --with-lzma=$with_lzma $have_lzma
39550 Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
39551 OpenEXR --with-openexr=$with_openexr $have_openexr
39552 PANGO --with-pango=$with_pango $have_pango
39553 PERL --with-perl=$with_perl $have_perl
39554 PNG --with-png=$with_png $have_png
39555 RSVG --with-rsvg=$with_rsvg $have_rsvg
39556 TIFF --with-tiff=$with_tiff $have_tiff
39557 WEBP --with-webp=$with_webp $have_webp
39558 WMF --with-wmf=$with_wmf $have_wmf
39559 X11 --with-x=$with_x $have_x
39560 XML --with-xml=$with_xml $have_xml
39561 ZLIB --with-zlib=$with_zlib $have_zlib
cristy5a3dc992014-12-05 19:50:04 +000039562
cristy9af1cbf2014-12-28 22:03:09 +000039563 Delegate Program Configuration:
39564 GhostPCL None $PCLDelegate ($PCLVersion)
39565 GhostXPS None $XPSDelegate ($XPSVersion)
39566 Ghostscript None $PSDelegate ($GSVersion)
cristy5a3dc992014-12-05 19:50:04 +000039567
cristy9af1cbf2014-12-28 22:03:09 +000039568 Font Configuration:
39569 Apple fonts --with-apple-font-dir=$with_apple_font_dir $result_apple_font_dir
39570 Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
39571 Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
39572 Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy3ed852e2009-09-05 21:47:34 +000039573
cristy9af1cbf2014-12-28 22:03:09 +000039574 X11 Configuration:
39575 X_CFLAGS = $X_CFLAGS
39576 X_PRE_LIBS = $X_PRE_LIBS
39577 X_LIBS = $X_LIBS
39578 X_EXTRA_LIBS = $X_EXTRA_LIBS
39579
39580 Options used to compile and link:
39581 PREFIX = $PREFIX_DIR
39582 EXEC-PREFIX = $EXEC_PREFIX_DIR
39583 VERSION = $PACKAGE_VERSION
39584 CC = $CC
39585 CFLAGS = $CFLAGS
39586 CPPFLAGS = $CPPFLAGS
39587 PCFLAGS = $PCFLAGS
39588 DEFS = $DEFS
39589 LDFLAGS = $LDFLAGS
39590 LIBS = $LIBS
39591 CXX = $CXX
39592 CXXFLAGS = $CXXFLAGS
39593 FEATURES = $MAGICK_FEATURES
39594 DELEGATES = $MAGICK_DELEGATES
39595==============================================================================
cristy3ed852e2009-09-05 21:47:34 +000039596" >&5
cristy9af1cbf2014-12-28 22:03:09 +000039597$as_echo "$as_me:
39598==============================================================================
cristy3ed852e2009-09-05 21:47:34 +000039599ImageMagick is configured as follows. Please verify that this configuration
39600matches your expectations.
39601
cristy9af1cbf2014-12-28 22:03:09 +000039602 Host system type: $host
39603 Build system type: $build
cristy3ed852e2009-09-05 21:47:34 +000039604
39605 Option Value
cristy9af1cbf2014-12-28 22:03:09 +000039606 ------------------------------------------------------------------------------
39607 Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
39608 Static libraries --enable-static=$enable_static $libtool_build_static_libs
39609 Module support --with-modules=$build_modules $build_modules
39610 GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
39611 Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
39612 High Dynamic Range Imagery
39613 --enable-hdri=$enable_hdri $enable_hdri
cristy3ed852e2009-09-05 21:47:34 +000039614
cristy9af1cbf2014-12-28 22:03:09 +000039615 Install documentation: $wantdocs
cristy3ed852e2009-09-05 21:47:34 +000039616
cristy9af1cbf2014-12-28 22:03:09 +000039617 Delegate Library Configuration:
39618 BZLIB --with-bzlib=$with_bzlib $have_bzlib
39619 Autotrace --with-autotrace=$with_autotrace $have_autotrace
39620 DJVU --with-djvu=$with_djvu $have_djvu
39621 DPS --with-dps=$with_dps $have_dps
39622 FFTW --with-fftw=$with_fftw $have_fftw
39623 FlashPIX --with-fpx=$with_fpx $have_fpx
39624 FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
39625 FreeType --with-freetype=$with_freetype $have_freetype
39626 Ghostscript lib --with-gslib=$with_gslib $have_gslib
39627 Graphviz --with-gvc=$with_gvc $have_gvc
39628 JBIG --with-jbig=$with_jbig $have_jbig
39629 JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
39630 JPEG-2000 --with-jp2=$with_jp2 $have_jp2
39631 LCMS v1 --with-lcms=$with_lcms $have_lcms
39632 LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
39633 LIBJPEG2 --with-openjp2=$with_openjp2 $have_openjp2
39634 LQR --with-lqr=$with_lqr $have_lqr
39635 LTDL --with-ltdl=$with_ltdl $have_ltdl
39636 LZMA --with-lzma=$with_lzma $have_lzma
39637 Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
39638 OpenEXR --with-openexr=$with_openexr $have_openexr
39639 PANGO --with-pango=$with_pango $have_pango
39640 PERL --with-perl=$with_perl $have_perl
39641 PNG --with-png=$with_png $have_png
39642 RSVG --with-rsvg=$with_rsvg $have_rsvg
39643 TIFF --with-tiff=$with_tiff $have_tiff
39644 WEBP --with-webp=$with_webp $have_webp
39645 WMF --with-wmf=$with_wmf $have_wmf
39646 X11 --with-x=$with_x $have_x
39647 XML --with-xml=$with_xml $have_xml
39648 ZLIB --with-zlib=$with_zlib $have_zlib
cristy5a3dc992014-12-05 19:50:04 +000039649
cristy9af1cbf2014-12-28 22:03:09 +000039650 Delegate Program Configuration:
39651 GhostPCL None $PCLDelegate ($PCLVersion)
39652 GhostXPS None $XPSDelegate ($XPSVersion)
39653 Ghostscript None $PSDelegate ($GSVersion)
cristy5a3dc992014-12-05 19:50:04 +000039654
cristy9af1cbf2014-12-28 22:03:09 +000039655 Font Configuration:
39656 Apple fonts --with-apple-font-dir=$with_apple_font_dir $result_apple_font_dir
39657 Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
39658 Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
39659 Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy3ed852e2009-09-05 21:47:34 +000039660
cristy9af1cbf2014-12-28 22:03:09 +000039661 X11 Configuration:
39662 X_CFLAGS = $X_CFLAGS
39663 X_PRE_LIBS = $X_PRE_LIBS
39664 X_LIBS = $X_LIBS
39665 X_EXTRA_LIBS = $X_EXTRA_LIBS
39666
39667 Options used to compile and link:
39668 PREFIX = $PREFIX_DIR
39669 EXEC-PREFIX = $EXEC_PREFIX_DIR
39670 VERSION = $PACKAGE_VERSION
39671 CC = $CC
39672 CFLAGS = $CFLAGS
39673 CPPFLAGS = $CPPFLAGS
39674 PCFLAGS = $PCFLAGS
39675 DEFS = $DEFS
39676 LDFLAGS = $LDFLAGS
39677 LIBS = $LIBS
39678 CXX = $CXX
39679 CXXFLAGS = $CXXFLAGS
39680 FEATURES = $MAGICK_FEATURES
39681 DELEGATES = $MAGICK_DELEGATES
39682==============================================================================
39683" >&6;}