blob: 710f6dda8786571db70af4045220d0c93dc5b6d3 [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
cristy73bd4a52010-10-05 11:24:23 +0000766XML_DELEGATE_FALSE
767XML_DELEGATE_TRUE
cristy32f75d42015-06-05 18:46:23 +0000768XML_LIBS
769XML_CFLAGS
cristy32f75d42015-06-05 18:46:23 +0000770WMF_LIBS
771WMF_CFLAGS
cristyebc8f692015-06-16 10:36:30 +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
cristy73bd4a52010-10-05 11:24:23 +0000788PNG_DELEGATE_FALSE
789PNG_DELEGATE_TRUE
cristy32f75d42015-06-05 18:46:23 +0000790PNG_LIBS
791PNG_CFLAGS
cristya054b762012-03-26 23:16:00 +0000792PANGOCAIRO_DELEGATE_FALSE
793PANGOCAIRO_DELEGATE_TRUE
cristy41cbe8a2011-10-27 01:35:18 +0000794PANGO_DELEGATE_FALSE
795PANGO_DELEGATE_TRUE
796PANGO_LIBS
797PANGO_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000798OPENEXR_DELEGATE_FALSE
799OPENEXR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000800OPENEXR_LIBS
801OPENEXR_CFLAGS
cristyfbb0ef02010-12-19 02:32:11 +0000802LZMA_DELEGATE_FALSE
803LZMA_DELEGATE_TRUE
cristyb94e5002011-11-14 13:20:10 +0000804LZMA_LIBS
805LZMA_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000806LQR_DELEGATE_FALSE
807LQR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000808LQR_LIBS
809LQR_CFLAGS
cristy99db3872014-01-01 15:11:34 +0000810LIBOPENJP2_DELEGATE_FALSE
811LIBOPENJP2_DELEGATE_TRUE
812LIBOPENJP2_LIBS
813LIBOPENJP2_CFLAGS
cristy32f75d42015-06-05 18:46:23 +0000814LCMS_LIBS
815LCMS_CFLAGS
cristyfa2b4c32015-07-01 13:12:01 +0000816LCMS_DELEGATE_FALSE
817LCMS_DELEGATE_TRUE
cristyb054e072015-06-05 20:35:43 +0000818LCMS2_LIBS
819LCMS2_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000820JPEG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000821JPEG_DELEGATE_FALSE
822JPEG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000823JBIG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000824JBIG_DELEGATE_FALSE
825JBIG_DELEGATE_TRUE
826GVC_DELEGATE_FALSE
827GVC_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000828GVC_LIBS
829GVC_CFLAGS
830GS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000831GS_DELEGATE_FALSE
832GS_DELEGATE_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000833FREETYPE_DELEGATE_FALSE
834FREETYPE_DELEGATE_TRUE
cristy03f187e2013-01-24 00:22:19 +0000835FREETYPE_LIBS
836FREETYPE_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000837FONTCONFIG_DELEGATE_FALSE
838FONTCONFIG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000839FONTCONFIG_LIBS
840FONTCONFIG_CFLAGS
cristy853d9902014-08-21 18:50:43 +0000841DJVU_LIBS
cristy32f75d42015-06-05 18:46:23 +0000842DJVU_CFLAGS
cristy853d9902014-08-21 18:50:43 +0000843DJVU_DELEGATE_FALSE
844DJVU_DELEGATE_TRUE
cristy32f75d42015-06-05 18:46:23 +0000845ddjvuapi_LIBS
846ddjvuapi_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000847FPX_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000848FPX_DELEGATE_FALSE
849FPX_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000850FFTW_LIBS
cristy32f75d42015-06-05 18:46:23 +0000851FFTW_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000852FFTW_DELEGATE_FALSE
853FFTW_DELEGATE_TRUE
cristy32f75d42015-06-05 18:46:23 +0000854fftw3_LIBS
855fftw3_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000856DPS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000857DPS_DELEGATE_FALSE
858DPS_DELEGATE_TRUE
859AUTOTRACE_DELEGATE_FALSE
860AUTOTRACE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000861AUTOTRACE_LIBS
862AUTOTRACE_CFLAGS
863LIB_DL
cristy5eef09f2012-10-16 12:08:28 +0000864WITH_LTDL_FALSE
865WITH_LTDL_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000866ZLIB_DELEGATE_FALSE
867ZLIB_DELEGATE_TRUE
cristy32f75d42015-06-05 18:46:23 +0000868ZLIB_LIBS
869ZLIB_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000870XEXT_LIBS
871X11_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000872X11_DELEGATE_FALSE
873X11_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000874X_EXTRA_LIBS
875X_LIBS
876X_PRE_LIBS
877X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000878XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000879BZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000880BZLIB_DELEGATE_FALSE
881BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000882CCMALLOCDelegate
883UMEM_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000884HasUMEM_FALSE
885HasUMEM_TRUE
cristy3b0097d2014-11-04 15:34:47 +0000886JEMALLOC_LIBS
887HasJEMALLOC_FALSE
888HasJEMALLOC_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000889GOMP_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000890WITH_MAGICK_PLUS_PLUS_FALSE
891WITH_MAGICK_PLUS_PLUS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000892OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000893MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000894POW_LIB
895LIBOBJS
cristy6d5e20f2011-04-25 13:48:54 +0000896UINTPTR_F
cristy3ed852e2009-09-05 21:47:34 +0000897UINTPTR_T
cristy6d5e20f2011-04-25 13:48:54 +0000898UINTMAX_F
cristy3ed852e2009-09-05 21:47:34 +0000899UINTMAX_T
cristy6d5e20f2011-04-25 13:48:54 +0000900UINT64_F
cristy3ed852e2009-09-05 21:47:34 +0000901UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000902INT64_F
cristy3ed852e2009-09-05 21:47:34 +0000903INT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000904UINT32_F
cristy3ed852e2009-09-05 21:47:34 +0000905UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +0000906INT32_F
cristy3ed852e2009-09-05 21:47:34 +0000907INT32_T
908UINT16_T
909INT16_T
910UINT8_T
911INT8_T
912LIBRARY_EXTRA_CPPFLAGS
913MODULE_EXTRA_CPPFLAGS
914LIBSTDCLDFLAGS
915PERL_MAKE_OPTIONS
cristy3a75f062012-09-08 23:29:40 +0000916MAGICK_LT_RELEASE_OPTS
cristy7a26abd2012-12-03 00:18:59 +0000917MAGICK_ABI_SUFFIX
cristy3ed852e2009-09-05 21:47:34 +0000918QUANTUM_DEPTH
cristy71d8c202012-03-20 17:05:01 +0000919LEGACY_SUPPORT_FALSE
920LEGACY_SUPPORT_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000921MAINT
922MAINTAINER_MODE_FALSE
923MAINTAINER_MODE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000924MAGICK_HDRI
cristy73bd4a52010-10-05 11:24:23 +0000925WITH_MODULES_FALSE
926WITH_MODULES_TRUE
927WITH_SHARED_LIBS_FALSE
928WITH_SHARED_LIBS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000929LIBTOOL_DEPS
cristy73bd4a52010-10-05 11:24:23 +0000930CXXCPP
931OTOOL64
932OTOOL
933LIPO
934NMEDIT
935DSYMUTIL
cristyda16f162011-02-19 23:52:17 +0000936MANIFEST_TOOL
cristy73bd4a52010-10-05 11:24:23 +0000937RANLIB
cristy73bd4a52010-10-05 11:24:23 +0000938NM
939ac_ct_DUMPBIN
940DUMPBIN
941LIBTOOL
942OBJDUMP
943DLLTOOL
944AS
cristy3ed852e2009-09-05 21:47:34 +0000945LFS_CPPFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000946CL_LIBS
cristy736173a2009-09-20 21:18:22 +0000947CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000948OPENMP_CFLAGS
cristy1ae5c992013-07-30 14:55:07 +0000949THREAD_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000950PTHREAD_CFLAGS
951PTHREAD_LIBS
952PTHREAD_CC
953ax_pthread_config
cristy2ec87cc2013-02-18 17:46:50 +0000954pkgconfigdir
cristy670aa3c2011-11-03 00:54:00 +0000955SHAREARCH_DIR
956INCLUDEARCH_DIR
cristy3ed852e2009-09-05 21:47:34 +0000957WinPathScript
cristy73bd4a52010-10-05 11:24:23 +0000958USING_CL_FALSE
959USING_CL_TRUE
960CYGWIN_BUILD_FALSE
961CYGWIN_BUILD_TRUE
962WIN32_NATIVE_BUILD_FALSE
963WIN32_NATIVE_BUILD_TRUE
964WINGDI32_DELEGATE_FALSE
965WINGDI32_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000966GDI32_LIBS
cristy9b86f202012-11-28 21:55:35 +0000967HAVE_LD_VERSION_SCRIPT_FALSE
968HAVE_LD_VERSION_SCRIPT_TRUE
cristy146497a2015-05-17 22:46:16 +0000969PKG_CONFIG_LIBDIR
970PKG_CONFIG_PATH
cristy73bd4a52010-10-05 11:24:23 +0000971PKG_CONFIG
cristya0459972013-11-03 18:09:35 +0000972PRTDIAG
cristy3ed852e2009-09-05 21:47:34 +0000973LN_S
cristy3ed852e2009-09-05 21:47:34 +0000974LD
cristy73bd4a52010-10-05 11:24:23 +0000975FGREP
976SED
977am__fastdepCXX_FALSE
978am__fastdepCXX_TRUE
979CXXDEPMODE
cristy95646052009-11-28 23:05:30 +0000980ac_ct_CXX
981CXXFLAGS
982CXX
cristy9e007fe2015-01-03 16:05:07 +0000983ac_ct_AR
984AR
cristya0b81c32010-01-22 02:54:33 +0000985EGREP
986GREP
987CPP
cristy73bd4a52010-10-05 11:24:23 +0000988am__fastdepCC_FALSE
989am__fastdepCC_TRUE
990CCDEPMODE
cristy7247bba2012-02-05 16:37:27 +0000991am__nodep
cristy73bd4a52010-10-05 11:24:23 +0000992AMDEPBACKSLASH
993AMDEP_FALSE
994AMDEP_TRUE
995am__quote
996am__include
997DEPDIR
cristy3ed852e2009-09-05 21:47:34 +0000998OBJEXT
999EXEEXT
1000ac_ct_CC
1001CPPFLAGS
1002LDFLAGS
1003CFLAGS
1004CC
1005DIRSEP
1006MAGICK_FILTER_MODULE_PATH
1007MAGICK_CONFIGURE_BUILD_PATH
1008MAGICK_CONFIGURE_SRC_PATH
1009MAGICK_CODER_MODULE_PATH
1010MAN_DIR
1011INFO_DIR
1012PERSISTINCLUDE_DIR
1013INCLUDE_DIR
1014LIB_DIR
1015LOCALSTATE_DIR
1016SHAREDSTATE_DIR
1017SYSCONF_DIR
cristyd55889c2011-03-27 00:50:24 +00001018DOC_DIR
cristy3ed852e2009-09-05 21:47:34 +00001019DATA_DIR
1020LIBEXEC_DIR
1021SBIN_DIR
1022BIN_DIR
1023EXEC_PREFIX_DIR
1024PREFIX_DIR
1025CONFIG_STATUS_DEPENDENCIES
cristy5ed9c6e2013-07-14 21:20:31 +00001026MAGICKPP_LIB_VERSION_TEXT
1027MAGICKPP_LIB_VERSION
cristy3ed852e2009-09-05 21:47:34 +00001028MAGICK_LIB_VERSION_NUMBER
1029MAGICK_LIB_VERSION_TEXT
1030MAGICK_LIB_VERSION
cristy9af1cbf2014-12-28 22:03:09 +00001031PACKAGE_VERSION_ADDENDUM
1032PACKAGE_RELEASE_DATE
1033PACKAGE_LIB_VERSION_NUMBER
1034PACKAGE_LIB_VERSION
1035PACKAGE_CHANGE_DATE
1036PACKAGE_RELEASE
1037PACKAGE_PERL_VERSION
1038MAGICKPP_LIBRARY_VERSION_INFO
1039MAGICKPP_LIBRARY_CURRENT_MIN
1040MAGICKPP_LIBRARY_AGE
1041MAGICKPP_LIBRARY_REVISION
1042MAGICKPP_LIBRARY_CURRENT
1043MAGICK_LIBRARY_VERSION_INFO
1044MAGICK_LIBRARY_CURRENT_MIN
1045MAGICK_LIBRARY_AGE
1046MAGICK_LIBRARY_REVISION
1047MAGICK_LIBRARY_CURRENT
1048MAGICK_SVN_REVISION
1049MAGICK_VERSION
1050MAGICK_PATCHLEVEL_VERSION
1051MAGICK_MICRO_VERSION
1052MAGICK_MINOR_VERSION
1053MAGICK_MAJOR_VERSION
1054MAGICK_TARGET_OS
1055MAGICK_TARGET_VENDOR
1056MAGICK_TARGET_CPU
1057CONFIGURE_ARGS
1058DISTCHECK_CONFIG_FLAGS
cristy73bd4a52010-10-05 11:24:23 +00001059AM_BACKSLASH
1060AM_DEFAULT_VERBOSITY
cristyc3fb77b2012-02-06 01:49:41 +00001061AM_DEFAULT_V
1062AM_V
cristy73bd4a52010-10-05 11:24:23 +00001063am__untar
1064am__tar
1065AMTAR
1066am__leading_dot
1067SET_MAKE
1068AWK
1069mkdir_p
1070MKDIR_P
1071INSTALL_STRIP_PROGRAM
1072STRIP
1073install_sh
1074MAKEINFO
1075AUTOHEADER
1076AUTOMAKE
1077AUTOCONF
1078ACLOCAL
1079VERSION
1080PACKAGE
1081CYGPATH_W
1082am__isrc
1083INSTALL_DATA
1084INSTALL_SCRIPT
1085INSTALL_PROGRAM
cristy3ed852e2009-09-05 21:47:34 +00001086target_os
1087target_vendor
1088target_cpu
1089target
1090host_os
1091host_vendor
1092host_cpu
1093host
1094build_os
1095build_vendor
1096build_cpu
1097build
cristy3ed852e2009-09-05 21:47:34 +00001098target_alias
1099host_alias
1100build_alias
1101LIBS
1102ECHO_T
1103ECHO_N
1104ECHO_C
1105DEFS
1106mandir
1107localedir
1108libdir
1109psdir
1110pdfdir
1111dvidir
1112htmldir
1113infodir
1114docdir
1115oldincludedir
1116includedir
1117localstatedir
1118sharedstatedir
1119sysconfdir
1120datadir
1121datarootdir
1122libexecdir
1123sbindir
1124bindir
1125program_transform_name
1126prefix
1127exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001128PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001129PACKAGE_BUGREPORT
1130PACKAGE_STRING
1131PACKAGE_VERSION
1132PACKAGE_TARNAME
1133PACKAGE_NAME
1134PATH_SEPARATOR
1135SHELL'
1136ac_subst_files=''
1137ac_user_opts='
1138enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001139enable_silent_rules
cristy187791c2015-05-03 22:17:00 +00001140enable_reproducible_build
cristy73bd4a52010-10-05 11:24:23 +00001141enable_dependency_tracking
1142with_gnu_ld
1143with_dmalloc
cristya0459972013-11-03 18:09:35 +00001144with_gcc_arch
cristy9b86f202012-11-28 21:55:35 +00001145enable_ld_version_script
cristy3ed852e2009-09-05 21:47:34 +00001146enable_bounds_checking
1147enable_osx_universal_binary
cristy670aa3c2011-11-03 00:54:00 +00001148with_includearch_dir
1149with_sharearch_dir
cristy2ec87cc2013-02-18 17:46:50 +00001150with_pkgconfigdir
cristy3ed852e2009-09-05 21:47:34 +00001151with_threads
1152enable_openmp
cristy73bd4a52010-10-05 11:24:23 +00001153enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001154enable_largefile
cristy73bd4a52010-10-05 11:24:23 +00001155enable_shared
1156enable_static
1157with_pic
1158enable_fast_install
cristyda16f162011-02-19 23:52:17 +00001159with_sysroot
cristy73bd4a52010-10-05 11:24:23 +00001160enable_libtool_lock
cristy3ed852e2009-09-05 21:47:34 +00001161with_modules
1162enable_delegate_build
1163enable_deprecated
1164enable_installed
1165enable_cipher
cristy6e3607c2011-09-13 13:59:17 +00001166enable_zero_configuration
cristy3ed852e2009-09-05 21:47:34 +00001167enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001168enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001169enable_maintainer_mode
cristy944e51f2013-04-16 18:45:02 +00001170enable_hugepages
cristy3ed852e2009-09-05 21:47:34 +00001171enable_ccmalloc
1172enable_efence
1173enable_prof
1174enable_gprof
1175enable_gcov
1176with_method_prefix
cristy71d8c202012-03-20 17:05:01 +00001177enable_legacy_support
cristy3ed852e2009-09-05 21:47:34 +00001178with_quantum_depth
1179with_cache
1180with_frozenpaths
1181with_magick_plus_plus
cristy3a75f062012-09-08 23:29:40 +00001182with_package_release_name
cristy3ed852e2009-09-05 21:47:34 +00001183with_perl
1184with_perl_options
cristy3b0097d2014-11-04 15:34:47 +00001185with_jemalloc
cristy3ed852e2009-09-05 21:47:34 +00001186with_umem
1187with_libstdc
1188with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001189with_x
cristy3ed852e2009-09-05 21:47:34 +00001190with_zlib
cristy5a3dc992014-12-05 19:50:04 +00001191with_apple_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001192with_autotrace
1193with_dps
cristy430a7312010-01-21 20:44:04 +00001194with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001195with_fftw
1196with_fpx
cristy853d9902014-08-21 18:50:43 +00001197with_djvu
cristy3ed852e2009-09-05 21:47:34 +00001198with_fontconfig
1199with_freetype
1200with_gslib
1201with_fontpath
1202with_gs_font_dir
1203with_gvc
1204with_jbig
1205with_jpeg
cristy3ed852e2009-09-05 21:47:34 +00001206with_lcms
cristy99db3872014-01-01 15:11:34 +00001207with_openjp2
cristy3ed852e2009-09-05 21:47:34 +00001208with_lqr
cristyfbb0ef02010-12-19 02:32:11 +00001209with_lzma
cristy3ed852e2009-09-05 21:47:34 +00001210with_openexr
cristy41cbe8a2011-10-27 01:35:18 +00001211with_pango
cristy3ed852e2009-09-05 21:47:34 +00001212with_png
1213with_rsvg
1214with_tiff
cristyb1860752011-03-14 00:27:46 +00001215with_webp
cristy3ed852e2009-09-05 21:47:34 +00001216with_windows_font_dir
1217with_wmf
1218with_xml
cristydd17feb2014-03-05 02:06:32 +00001219enable_docs
cristy3ed852e2009-09-05 21:47:34 +00001220'
1221 ac_precious_vars='build_alias
1222host_alias
1223target_alias
1224CC
1225CFLAGS
1226LDFLAGS
1227LIBS
1228CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001229CPP
cristy3ed852e2009-09-05 21:47:34 +00001230CXX
1231CXXFLAGS
1232CCC
cristy73bd4a52010-10-05 11:24:23 +00001233PKG_CONFIG
cristy146497a2015-05-17 22:46:16 +00001234PKG_CONFIG_PATH
1235PKG_CONFIG_LIBDIR
cristy73bd4a52010-10-05 11:24:23 +00001236CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001237XMKMF
cristy32f75d42015-06-05 18:46:23 +00001238ZLIB_CFLAGS
1239ZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001240AUTOTRACE_CFLAGS
1241AUTOTRACE_LIBS
cristy32f75d42015-06-05 18:46:23 +00001242fftw3_CFLAGS
1243fftw3_LIBS
1244ddjvuapi_CFLAGS
1245ddjvuapi_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001246FONTCONFIG_CFLAGS
1247FONTCONFIG_LIBS
cristy03f187e2013-01-24 00:22:19 +00001248FREETYPE_CFLAGS
1249FREETYPE_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001250GVC_CFLAGS
1251GVC_LIBS
cristyb054e072015-06-05 20:35:43 +00001252LCMS2_CFLAGS
1253LCMS2_LIBS
cristy99db3872014-01-01 15:11:34 +00001254LIBOPENJP2_CFLAGS
1255LIBOPENJP2_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001256LQR_CFLAGS
1257LQR_LIBS
cristyb94e5002011-11-14 13:20:10 +00001258LZMA_CFLAGS
1259LZMA_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001260OPENEXR_CFLAGS
1261OPENEXR_LIBS
cristy41cbe8a2011-10-27 01:35:18 +00001262PANGO_CFLAGS
1263PANGO_LIBS
cristy32f75d42015-06-05 18:46:23 +00001264PNG_CFLAGS
1265PNG_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001266RSVG_CFLAGS
1267RSVG_LIBS
1268CAIRO_SVG_CFLAGS
cristy32f75d42015-06-05 18:46:23 +00001269CAIRO_SVG_LIBS
cristy32f75d42015-06-05 18:46:23 +00001270XML_CFLAGS
1271XML_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001272
1273
1274# Initialize some variables set by options.
1275ac_init_help=
1276ac_init_version=false
1277ac_unrecognized_opts=
1278ac_unrecognized_sep=
1279# The variables have the same names as the options, with
1280# dashes changed to underlines.
1281cache_file=/dev/null
1282exec_prefix=NONE
1283no_create=
1284no_recursion=
1285prefix=NONE
1286program_prefix=NONE
1287program_suffix=NONE
1288program_transform_name=s,x,x,
1289silent=
1290site=
1291srcdir=
1292verbose=
1293x_includes=NONE
1294x_libraries=NONE
1295
1296# Installation directory options.
1297# These are left unexpanded so users can "make install exec_prefix=/foo"
1298# and all the variables that are supposed to be based on exec_prefix
1299# by default will actually change.
1300# Use braces instead of parens because sh, perl, etc. also accept them.
1301# (The list follows the same order as the GNU Coding Standards.)
1302bindir='${exec_prefix}/bin'
1303sbindir='${exec_prefix}/sbin'
1304libexecdir='${exec_prefix}/libexec'
1305datarootdir='${prefix}/share'
1306datadir='${datarootdir}'
1307sysconfdir='${prefix}/etc'
1308sharedstatedir='${prefix}/com'
1309localstatedir='${prefix}/var'
1310includedir='${prefix}/include'
1311oldincludedir='/usr/include'
1312docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1313infodir='${datarootdir}/info'
1314htmldir='${docdir}'
1315dvidir='${docdir}'
1316pdfdir='${docdir}'
1317psdir='${docdir}'
1318libdir='${exec_prefix}/lib'
1319localedir='${datarootdir}/locale'
1320mandir='${datarootdir}/man'
1321
1322ac_prev=
1323ac_dashdash=
1324for ac_option
1325do
1326 # If the previous option needs an argument, assign it.
1327 if test -n "$ac_prev"; then
1328 eval $ac_prev=\$ac_option
1329 ac_prev=
1330 continue
1331 fi
1332
1333 case $ac_option in
cristyda16f162011-02-19 23:52:17 +00001334 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1335 *=) ac_optarg= ;;
1336 *) ac_optarg=yes ;;
cristy3ed852e2009-09-05 21:47:34 +00001337 esac
1338
1339 # Accept the important Cygnus configure options, so we can diagnose typos.
1340
1341 case $ac_dashdash$ac_option in
1342 --)
1343 ac_dashdash=yes ;;
1344
1345 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1346 ac_prev=bindir ;;
1347 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1348 bindir=$ac_optarg ;;
1349
1350 -build | --build | --buil | --bui | --bu)
1351 ac_prev=build_alias ;;
1352 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1353 build_alias=$ac_optarg ;;
1354
1355 -cache-file | --cache-file | --cache-fil | --cache-fi \
1356 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1357 ac_prev=cache_file ;;
1358 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1359 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1360 cache_file=$ac_optarg ;;
1361
1362 --config-cache | -C)
1363 cache_file=config.cache ;;
1364
1365 -datadir | --datadir | --datadi | --datad)
1366 ac_prev=datadir ;;
1367 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1368 datadir=$ac_optarg ;;
1369
1370 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1371 | --dataroo | --dataro | --datar)
1372 ac_prev=datarootdir ;;
1373 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1374 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1375 datarootdir=$ac_optarg ;;
1376
1377 -disable-* | --disable-*)
1378 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
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--disable-$ac_useropt_orig"
1389 ac_unrecognized_sep=', ';;
1390 esac
1391 eval enable_$ac_useropt=no ;;
1392
1393 -docdir | --docdir | --docdi | --doc | --do)
1394 ac_prev=docdir ;;
1395 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1396 docdir=$ac_optarg ;;
1397
1398 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1399 ac_prev=dvidir ;;
1400 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1401 dvidir=$ac_optarg ;;
1402
1403 -enable-* | --enable-*)
1404 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1405 # Reject names that are not valid shell variable names.
1406 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001407 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001408 ac_useropt_orig=$ac_useropt
1409 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1410 case $ac_user_opts in
1411 *"
1412"enable_$ac_useropt"
1413"*) ;;
1414 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1415 ac_unrecognized_sep=', ';;
1416 esac
1417 eval enable_$ac_useropt=\$ac_optarg ;;
1418
1419 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1420 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1421 | --exec | --exe | --ex)
1422 ac_prev=exec_prefix ;;
1423 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1424 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1425 | --exec=* | --exe=* | --ex=*)
1426 exec_prefix=$ac_optarg ;;
1427
1428 -gas | --gas | --ga | --g)
1429 # Obsolete; use --with-gas.
1430 with_gas=yes ;;
1431
1432 -help | --help | --hel | --he | -h)
1433 ac_init_help=long ;;
1434 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1435 ac_init_help=recursive ;;
1436 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1437 ac_init_help=short ;;
1438
1439 -host | --host | --hos | --ho)
1440 ac_prev=host_alias ;;
1441 -host=* | --host=* | --hos=* | --ho=*)
1442 host_alias=$ac_optarg ;;
1443
1444 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1445 ac_prev=htmldir ;;
1446 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1447 | --ht=*)
1448 htmldir=$ac_optarg ;;
1449
1450 -includedir | --includedir | --includedi | --included | --include \
1451 | --includ | --inclu | --incl | --inc)
1452 ac_prev=includedir ;;
1453 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1454 | --includ=* | --inclu=* | --incl=* | --inc=*)
1455 includedir=$ac_optarg ;;
1456
1457 -infodir | --infodir | --infodi | --infod | --info | --inf)
1458 ac_prev=infodir ;;
1459 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1460 infodir=$ac_optarg ;;
1461
1462 -libdir | --libdir | --libdi | --libd)
1463 ac_prev=libdir ;;
1464 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1465 libdir=$ac_optarg ;;
1466
1467 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1468 | --libexe | --libex | --libe)
1469 ac_prev=libexecdir ;;
1470 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1471 | --libexe=* | --libex=* | --libe=*)
1472 libexecdir=$ac_optarg ;;
1473
1474 -localedir | --localedir | --localedi | --localed | --locale)
1475 ac_prev=localedir ;;
1476 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1477 localedir=$ac_optarg ;;
1478
1479 -localstatedir | --localstatedir | --localstatedi | --localstated \
1480 | --localstate | --localstat | --localsta | --localst | --locals)
1481 ac_prev=localstatedir ;;
1482 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1483 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1484 localstatedir=$ac_optarg ;;
1485
1486 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1487 ac_prev=mandir ;;
1488 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1489 mandir=$ac_optarg ;;
1490
1491 -nfp | --nfp | --nf)
1492 # Obsolete; use --without-fp.
1493 with_fp=no ;;
1494
1495 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1496 | --no-cr | --no-c | -n)
1497 no_create=yes ;;
1498
1499 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1500 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1501 no_recursion=yes ;;
1502
1503 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1504 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1505 | --oldin | --oldi | --old | --ol | --o)
1506 ac_prev=oldincludedir ;;
1507 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1508 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1509 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1510 oldincludedir=$ac_optarg ;;
1511
1512 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1513 ac_prev=prefix ;;
1514 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1515 prefix=$ac_optarg ;;
1516
1517 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1518 | --program-pre | --program-pr | --program-p)
1519 ac_prev=program_prefix ;;
1520 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1521 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1522 program_prefix=$ac_optarg ;;
1523
1524 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1525 | --program-suf | --program-su | --program-s)
1526 ac_prev=program_suffix ;;
1527 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1528 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1529 program_suffix=$ac_optarg ;;
1530
1531 -program-transform-name | --program-transform-name \
1532 | --program-transform-nam | --program-transform-na \
1533 | --program-transform-n | --program-transform- \
1534 | --program-transform | --program-transfor \
1535 | --program-transfo | --program-transf \
1536 | --program-trans | --program-tran \
1537 | --progr-tra | --program-tr | --program-t)
1538 ac_prev=program_transform_name ;;
1539 -program-transform-name=* | --program-transform-name=* \
1540 | --program-transform-nam=* | --program-transform-na=* \
1541 | --program-transform-n=* | --program-transform-=* \
1542 | --program-transform=* | --program-transfor=* \
1543 | --program-transfo=* | --program-transf=* \
1544 | --program-trans=* | --program-tran=* \
1545 | --progr-tra=* | --program-tr=* | --program-t=*)
1546 program_transform_name=$ac_optarg ;;
1547
1548 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1549 ac_prev=pdfdir ;;
1550 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1551 pdfdir=$ac_optarg ;;
1552
1553 -psdir | --psdir | --psdi | --psd | --ps)
1554 ac_prev=psdir ;;
1555 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1556 psdir=$ac_optarg ;;
1557
1558 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1559 | -silent | --silent | --silen | --sile | --sil)
1560 silent=yes ;;
1561
1562 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1563 ac_prev=sbindir ;;
1564 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1565 | --sbi=* | --sb=*)
1566 sbindir=$ac_optarg ;;
1567
1568 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1569 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1570 | --sharedst | --shareds | --shared | --share | --shar \
1571 | --sha | --sh)
1572 ac_prev=sharedstatedir ;;
1573 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1574 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1575 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1576 | --sha=* | --sh=*)
1577 sharedstatedir=$ac_optarg ;;
1578
1579 -site | --site | --sit)
1580 ac_prev=site ;;
1581 -site=* | --site=* | --sit=*)
1582 site=$ac_optarg ;;
1583
1584 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1585 ac_prev=srcdir ;;
1586 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1587 srcdir=$ac_optarg ;;
1588
1589 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1590 | --syscon | --sysco | --sysc | --sys | --sy)
1591 ac_prev=sysconfdir ;;
1592 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1593 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1594 sysconfdir=$ac_optarg ;;
1595
1596 -target | --target | --targe | --targ | --tar | --ta | --t)
1597 ac_prev=target_alias ;;
1598 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1599 target_alias=$ac_optarg ;;
1600
1601 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1602 verbose=yes ;;
1603
1604 -version | --version | --versio | --versi | --vers | -V)
1605 ac_init_version=: ;;
1606
1607 -with-* | --with-*)
1608 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1609 # Reject names that are not valid shell variable names.
1610 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001611 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001612 ac_useropt_orig=$ac_useropt
1613 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1614 case $ac_user_opts in
1615 *"
1616"with_$ac_useropt"
1617"*) ;;
1618 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1619 ac_unrecognized_sep=', ';;
1620 esac
1621 eval with_$ac_useropt=\$ac_optarg ;;
1622
1623 -without-* | --without-*)
1624 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1625 # Reject names that are not valid shell variable names.
1626 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001627 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001628 ac_useropt_orig=$ac_useropt
1629 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1630 case $ac_user_opts in
1631 *"
1632"with_$ac_useropt"
1633"*) ;;
1634 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1635 ac_unrecognized_sep=', ';;
1636 esac
1637 eval with_$ac_useropt=no ;;
1638
1639 --x)
1640 # Obsolete; use --with-x.
1641 with_x=yes ;;
1642
1643 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1644 | --x-incl | --x-inc | --x-in | --x-i)
1645 ac_prev=x_includes ;;
1646 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1647 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1648 x_includes=$ac_optarg ;;
1649
1650 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1651 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1652 ac_prev=x_libraries ;;
1653 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1654 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1655 x_libraries=$ac_optarg ;;
1656
cristy98dddb52010-11-04 00:30:15 +00001657 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1658Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001659 ;;
1660
1661 *=*)
1662 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1663 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001664 case $ac_envvar in #(
1665 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001666 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001667 esac
cristy3ed852e2009-09-05 21:47:34 +00001668 eval $ac_envvar=\$ac_optarg
1669 export $ac_envvar ;;
1670
1671 *)
1672 # FIXME: should be removed in autoconf 3.0.
1673 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1674 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1675 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cristyda16f162011-02-19 23:52:17 +00001676 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cristy3ed852e2009-09-05 21:47:34 +00001677 ;;
1678
1679 esac
1680done
1681
1682if test -n "$ac_prev"; then
1683 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001684 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001685fi
1686
1687if test -n "$ac_unrecognized_opts"; then
1688 case $enable_option_checking in
1689 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001690 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001691 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1692 esac
1693fi
1694
1695# Check all directory arguments for consistency.
1696for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1697 datadir sysconfdir sharedstatedir localstatedir includedir \
1698 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1699 libdir localedir mandir
1700do
1701 eval ac_val=\$$ac_var
1702 # Remove trailing slashes.
1703 case $ac_val in
1704 */ )
1705 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1706 eval $ac_var=\$ac_val;;
1707 esac
1708 # Be sure to have absolute directory names.
1709 case $ac_val in
1710 [\\/$]* | ?:[\\/]* ) continue;;
1711 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1712 esac
cristy98dddb52010-11-04 00:30:15 +00001713 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001714done
1715
1716# There might be people who depend on the old broken behavior: `$host'
1717# used to hold the argument of --host etc.
1718# FIXME: To remove some day.
1719build=$build_alias
1720host=$host_alias
1721target=$target_alias
1722
1723# FIXME: To remove some day.
1724if test "x$host_alias" != x; then
1725 if test "x$build_alias" = x; then
1726 cross_compiling=maybe
cristy3ed852e2009-09-05 21:47:34 +00001727 elif test "x$build_alias" != "x$host_alias"; then
1728 cross_compiling=yes
1729 fi
1730fi
1731
1732ac_tool_prefix=
1733test -n "$host_alias" && ac_tool_prefix=$host_alias-
1734
1735test "$silent" = yes && exec 6>/dev/null
1736
1737
1738ac_pwd=`pwd` && test -n "$ac_pwd" &&
1739ac_ls_di=`ls -di .` &&
1740ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001741 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001742test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001743 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001744
1745
1746# Find the source files, if location was not specified.
1747if test -z "$srcdir"; then
1748 ac_srcdir_defaulted=yes
1749 # Try the directory containing this script, then the parent directory.
1750 ac_confdir=`$as_dirname -- "$as_myself" ||
1751$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1752 X"$as_myself" : 'X\(//\)[^/]' \| \
1753 X"$as_myself" : 'X\(//\)$' \| \
1754 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1755$as_echo X"$as_myself" |
1756 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1757 s//\1/
1758 q
1759 }
1760 /^X\(\/\/\)[^/].*/{
1761 s//\1/
1762 q
1763 }
1764 /^X\(\/\/\)$/{
1765 s//\1/
1766 q
1767 }
1768 /^X\(\/\).*/{
1769 s//\1/
1770 q
1771 }
1772 s/.*/./; q'`
1773 srcdir=$ac_confdir
1774 if test ! -r "$srcdir/$ac_unique_file"; then
1775 srcdir=..
1776 fi
1777else
1778 ac_srcdir_defaulted=no
1779fi
1780if test ! -r "$srcdir/$ac_unique_file"; then
1781 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001782 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001783fi
1784ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1785ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001786 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001787 pwd)`
1788# When building in place, set srcdir=.
1789if test "$ac_abs_confdir" = "$ac_pwd"; then
1790 srcdir=.
1791fi
1792# Remove unnecessary trailing slashes from srcdir.
1793# Double slashes in file names in object file debugging info
1794# mess up M-x gdb in Emacs.
1795case $srcdir in
1796*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1797esac
1798for ac_var in $ac_precious_vars; do
1799 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1800 eval ac_env_${ac_var}_value=\$${ac_var}
1801 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1802 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1803done
1804
1805#
1806# Report the --help message.
1807#
1808if test "$ac_init_help" = "long"; then
1809 # Omit some internal or obsolete options to make the list less imposing.
1810 # This message is too long to be a string in the A/UX 3.1 sh.
1811 cat <<_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00001812\`configure' configures ImageMagick 7.0.0-0 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001813
1814Usage: $0 [OPTION]... [VAR=VALUE]...
1815
1816To assign environment variables (e.g., CC, CFLAGS...), specify them as
1817VAR=VALUE. See below for descriptions of some of the useful variables.
1818
1819Defaults for the options are specified in brackets.
1820
1821Configuration:
1822 -h, --help display this help and exit
1823 --help=short display options specific to this package
1824 --help=recursive display the short help of all the included packages
1825 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001826 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001827 --cache-file=FILE cache test results in FILE [disabled]
1828 -C, --config-cache alias for \`--cache-file=config.cache'
1829 -n, --no-create do not create output files
1830 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1831
1832Installation directories:
1833 --prefix=PREFIX install architecture-independent files in PREFIX
1834 [$ac_default_prefix]
1835 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1836 [PREFIX]
1837
1838By default, \`make install' will install all the files in
1839\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1840an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1841for instance \`--prefix=\$HOME'.
1842
1843For better control, use the options below.
1844
1845Fine tuning of the installation directories:
1846 --bindir=DIR user executables [EPREFIX/bin]
1847 --sbindir=DIR system admin executables [EPREFIX/sbin]
1848 --libexecdir=DIR program executables [EPREFIX/libexec]
1849 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1850 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1851 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1852 --libdir=DIR object code libraries [EPREFIX/lib]
1853 --includedir=DIR C header files [PREFIX/include]
1854 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1855 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1856 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1857 --infodir=DIR info documentation [DATAROOTDIR/info]
1858 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1859 --mandir=DIR man documentation [DATAROOTDIR/man]
cristy09b53e12011-10-14 12:47:22 +00001860 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
cristy3ed852e2009-09-05 21:47:34 +00001861 --htmldir=DIR html documentation [DOCDIR]
1862 --dvidir=DIR dvi documentation [DOCDIR]
1863 --pdfdir=DIR pdf documentation [DOCDIR]
1864 --psdir=DIR ps documentation [DOCDIR]
1865_ACEOF
1866
1867 cat <<\_ACEOF
1868
cristy73bd4a52010-10-05 11:24:23 +00001869Program names:
1870 --program-prefix=PREFIX prepend PREFIX to installed program names
1871 --program-suffix=SUFFIX append SUFFIX to installed program names
1872 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1873
cristy3ed852e2009-09-05 21:47:34 +00001874X features:
1875 --x-includes=DIR X include files are in DIR
1876 --x-libraries=DIR X library files are in DIR
1877
1878System types:
1879 --build=BUILD configure for building on BUILD [guessed]
1880 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1881 --target=TARGET configure for building compilers for TARGET [HOST]
1882_ACEOF
1883fi
1884
1885if test -n "$ac_init_help"; then
1886 case $ac_init_help in
cristy29eb34e2011-10-16 00:46:08 +00001887 short | recursive ) echo "Configuration of ImageMagick 7.0.0-0:";;
cristy3ed852e2009-09-05 21:47:34 +00001888 esac
1889 cat <<\_ACEOF
1890
1891Optional Features:
1892 --disable-option-checking ignore unrecognized --enable/--with options
1893 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1894 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristyc0890a62012-07-19 00:18:20 +00001895 --enable-silent-rules less verbose build output (undo: "make V=1")
1896 --disable-silent-rules verbose build output (undo: "make V=0")
cristy187791c2015-05-03 22:17:00 +00001897 --enable-reproducible-build
1898 enable reproducible build
cristyc0890a62012-07-19 00:18:20 +00001899 --enable-dependency-tracking
1900 do not reject slow dependency extractors
1901 --disable-dependency-tracking
1902 speeds up one-time build
cristy9b86f202012-11-28 21:55:35 +00001903 --enable-ld-version-script
1904 enable linker version script (default is enabled
1905 when possible)
cristya3824692012-03-30 17:22:07 +00001906 --enable-bounds-checking
1907 enable run-time bounds-checking
cristy3ed852e2009-09-05 21:47:34 +00001908 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001909 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001910 --disable-openmp do not use OpenMP
cristy48794642012-09-02 15:19:08 +00001911 --enable-opencl enable OpenCL support
cristy3ed852e2009-09-05 21:47:34 +00001912 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001913 --enable-shared[=PKGS] build shared libraries [default=yes]
1914 --enable-static[=PKGS] build static libraries [default=yes]
1915 --enable-fast-install[=PKGS]
1916 optimize for fast installation [default=yes]
1917 --disable-libtool-lock avoid locking (might break parallel builds)
cristy3ed852e2009-09-05 21:47:34 +00001918 --enable-delegate-build look for delegate libraries in build directory
1919 --disable-deprecated exclude deprecated methods in MagickCore and
cristy3a75f062012-09-08 23:29:40 +00001920 MagickWand APIs
cristy3ed852e2009-09-05 21:47:34 +00001921 --disable-installed Formally install ImageMagick under PREFIX
1922 --disable-cipher disable enciphering and deciphering image pixels
cristy6e3607c2011-09-13 13:59:17 +00001923 --enable-zero-configuration
1924 enable self-contained, embeddable,
cristy3ed852e2009-09-05 21:47:34 +00001925 zero-configuration ImageMagick
cristyf314dbd2012-11-15 13:35:28 +00001926 --enable-hdri accurately represent the wide range of intensity
cristy3ed852e2009-09-05 21:47:34 +00001927 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001928 --disable-assert disable assert() statements in build
cristyc0890a62012-07-19 00:18:20 +00001929 --enable-maintainer-mode
1930 enable make rules and dependencies not useful (and
1931 sometimes confusing) to the casual installer
cristy944e51f2013-04-16 18:45:02 +00001932 --enable-hugepages enable 'huge pages' support
cristy3ed852e2009-09-05 21:47:34 +00001933 --enable-ccmalloc enable 'ccmalloc' memory debug support
1934 --enable-efence enable 'efence' memory debug support
1935 --enable-prof enable 'prof' profiling support
1936 --enable-gprof enable 'gprof' profiling support
1937 --enable-gcov enable 'gcov' profiling support
cristy71d8c202012-03-20 17:05:01 +00001938 --enable-legacy-support install legacy command-line utilities (default disabled)
cristya0b81c32010-01-22 02:54:33 +00001939 --disable-assert turn off assertions
cristydd17feb2014-03-05 02:06:32 +00001940 --disable-docs disable building of documentation
cristy3ed852e2009-09-05 21:47:34 +00001941
1942Optional Packages:
1943 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1944 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001945 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
cristy7247bba2012-02-05 16:37:27 +00001946 --with-dmalloc use dmalloc, as in http://www.dmalloc.com
cristya0459972013-11-03 18:09:35 +00001947 --with-gcc-arch=<arch> use architecture <arch> for gcc -march/-mtune,
1948 instead of guessing
cristy670aa3c2011-11-03 00:54:00 +00001949 --includearch-dir=DIR ARCH specific include directory
1950 --sharearch-dir=DIR ARCH specific config directory
cristy2ec87cc2013-02-18 17:46:50 +00001951 --with-pkgconfigdir=DIR Path to the pkgconfig directory [LIBDIR/pkgconfig]
cristy3ed852e2009-09-05 21:47:34 +00001952 --without-threads disable threads support
cristy99bd5232011-12-07 14:38:20 +00001953 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
cristy73bd4a52010-10-05 11:24:23 +00001954 both]
cristyda16f162011-02-19 23:52:17 +00001955 --with-sysroot=DIR Search for dependent libraries within DIR
1956 (or the compiler's sysroot if not specified).
cristy3ed852e2009-09-05 21:47:34 +00001957 --with-modules enable building dynamically loadable modules
1958 --with-method-prefix=PREFIX
1959 prefix MagickCore API methods
1960 --with-quantum-depth=DEPTH
1961 number of bits in a pixel quantum (default 16)
1962 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1963 memory)
1964 --with-frozenpaths freeze delegate paths
1965 --without-magick-plus-plus
1966 disable build/install of Magick++
cristy3a75f062012-09-08 23:29:40 +00001967 --with-package-release-name=NAME
1968 encode this name into the shared library
cristy3ed852e2009-09-05 21:47:34 +00001969 --with-perl enable build/install of PerlMagick
1970 --with-perl-options=OPTIONS
1971 options to pass on command-line when generating
cristyfc3d0222012-02-07 15:05:57 +00001972 PerlMagick build file
cristy3b0097d2014-11-04 15:34:47 +00001973 --with-jemalloc enable jemalloc memory allocation library support
cristy3ed852e2009-09-05 21:47:34 +00001974 --with-umem enable umem memory allocation library support
1975 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1976 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001977 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001978 --without-zlib disable ZLIB support
cristy5a3dc992014-12-05 19:50:04 +00001979 --with-apple-font-dir=DIR
1980 Apple font directory
cristy3ed852e2009-09-05 21:47:34 +00001981 --with-autotrace enable autotrace support
1982 --without-dps disable Display Postscript support
cristy430a7312010-01-21 20:44:04 +00001983 --with-dejavu-font-dir=DIR
1984 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001985 --without-fftw disable FFTW support
1986 --without-fpx disable FlashPIX support
cristy853d9902014-08-21 18:50:43 +00001987 --without-djvu disable DjVu support
cristy3ed852e2009-09-05 21:47:34 +00001988 --without-fontconfig disable fontconfig support
cristy81beccd2011-10-03 18:17:24 +00001989 --without-freetype disable Freetype support
cristybdabdd62013-03-04 17:43:36 +00001990 --with-gslib enable Ghostscript library support
cristy3ed852e2009-09-05 21:47:34 +00001991 --with-fontpath=DIR prepend to default font search path
1992 --with-gs-font-dir=DIR Ghostscript font directory
cristybdabdd62013-03-04 17:43:36 +00001993 --with-gvc enable GVC support
cristy3ed852e2009-09-05 21:47:34 +00001994 --without-jbig disable JBIG support
1995 --without-jpeg disable JPEG support
cristy71203402010-06-18 13:12:03 +00001996 --without-lcms disable lcms (v1.1X) support
cristy99db3872014-01-01 15:11:34 +00001997 --without-openjp2 disable OpenJP2 support
cristyf0c78232010-03-15 12:53:40 +00001998 --without-lqr disable Liquid Rescale support
cristyfbb0ef02010-12-19 02:32:11 +00001999 --without-lzma disable LZMA support
cristy3ed852e2009-09-05 21:47:34 +00002000 --without-openexr disable OpenEXR support
cristy41cbe8a2011-10-27 01:35:18 +00002001 --without-pango disable PANGO support
cristy3ed852e2009-09-05 21:47:34 +00002002 --without-png disable PNG support
cristy51633f52013-04-23 14:03:19 +00002003 --with-rsvg enable RSVG support
cristy3ed852e2009-09-05 21:47:34 +00002004 --without-tiff disable TIFF support
cristyb1860752011-03-14 00:27:46 +00002005 --without-webp disable WEBP support
cristy3ed852e2009-09-05 21:47:34 +00002006 --with-windows-font-dir=DIR
cristy5a3dc992014-12-05 19:50:04 +00002007 Windows font directory
cristyde3fc5d2012-02-12 15:40:47 +00002008 --with-wmf enable WMF support
cristy3ed852e2009-09-05 21:47:34 +00002009 --without-xml disable XML support
2010
2011Some influential environment variables:
2012 CC C compiler command
2013 CFLAGS C compiler flags
2014 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2015 nonstandard directory <lib dir>
2016 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00002017 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00002018 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00002019 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00002020 CXX C++ compiler command
2021 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00002022 PKG_CONFIG path to pkg-config utility
cristy146497a2015-05-17 22:46:16 +00002023 PKG_CONFIG_PATH
2024 directories to add to pkg-config's search path
2025 PKG_CONFIG_LIBDIR
2026 path overriding pkg-config's built-in search path
nicolas6237c462010-10-05 06:11:49 +00002027 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00002028 XMKMF Path to xmkmf, Makefile generator for X Window System
cristy32f75d42015-06-05 18:46:23 +00002029 ZLIB_CFLAGS C compiler flags for ZLIB, overriding pkg-config
2030 ZLIB_LIBS linker flags for ZLIB, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002031 AUTOTRACE_CFLAGS
2032 C compiler flags for AUTOTRACE, overriding pkg-config
2033 AUTOTRACE_LIBS
2034 linker flags for AUTOTRACE, overriding pkg-config
cristy32f75d42015-06-05 18:46:23 +00002035 fftw3_CFLAGS
2036 C compiler flags for fftw3, overriding pkg-config
2037 fftw3_LIBS linker flags for fftw3, overriding pkg-config
2038 ddjvuapi_CFLAGS
2039 C compiler flags for ddjvuapi, overriding pkg-config
2040 ddjvuapi_LIBS
2041 linker flags for ddjvuapi, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002042 FONTCONFIG_CFLAGS
2043 C compiler flags for FONTCONFIG, overriding pkg-config
2044 FONTCONFIG_LIBS
2045 linker flags for FONTCONFIG, overriding pkg-config
cristy03f187e2013-01-24 00:22:19 +00002046 FREETYPE_CFLAGS
2047 C compiler flags for FREETYPE, overriding pkg-config
2048 FREETYPE_LIBS
2049 linker flags for FREETYPE, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002050 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
2051 GVC_LIBS linker flags for GVC, overriding pkg-config
cristyb054e072015-06-05 20:35:43 +00002052 LCMS2_CFLAGS
2053 C compiler flags for LCMS2, overriding pkg-config
2054 LCMS2_LIBS linker flags for LCMS2, overriding pkg-config
cristy99db3872014-01-01 15:11:34 +00002055 LIBOPENJP2_CFLAGS
2056 C compiler flags for LIBOPENJP2, overriding pkg-config
2057 LIBOPENJP2_LIBS
2058 linker flags for LIBOPENJP2, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002059 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
2060 LQR_LIBS linker flags for LQR, overriding pkg-config
cristyb94e5002011-11-14 13:20:10 +00002061 LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config
2062 LZMA_LIBS linker flags for LZMA, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002063 OPENEXR_CFLAGS
2064 C compiler flags for OPENEXR, overriding pkg-config
2065 OPENEXR_LIBS
2066 linker flags for OPENEXR, overriding pkg-config
cristy41cbe8a2011-10-27 01:35:18 +00002067 PANGO_CFLAGS
2068 C compiler flags for PANGO, overriding pkg-config
2069 PANGO_LIBS linker flags for PANGO, overriding pkg-config
cristy32f75d42015-06-05 18:46:23 +00002070 PNG_CFLAGS C compiler flags for PNG, overriding pkg-config
2071 PNG_LIBS linker flags for PNG, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002072 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
2073 RSVG_LIBS linker flags for RSVG, overriding pkg-config
2074 CAIRO_SVG_CFLAGS
2075 C compiler flags for CAIRO_SVG, overriding pkg-config
2076 CAIRO_SVG_LIBS
2077 linker flags for CAIRO_SVG, overriding pkg-config
cristy32f75d42015-06-05 18:46:23 +00002078 XML_CFLAGS C compiler flags for XML, overriding pkg-config
2079 XML_LIBS linker flags for XML, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00002080
2081Use these variables to override the choices made by `configure' or to help
2082it to find libraries and programs with nonstandard names/locations.
2083
2084Report bugs to <http://www.imagemagick.org>.
2085_ACEOF
2086ac_status=$?
2087fi
2088
2089if test "$ac_init_help" = "recursive"; then
2090 # If there are subdirs, report their specific --help.
2091 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2092 test -d "$ac_dir" ||
2093 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2094 continue
2095 ac_builddir=.
2096
2097case "$ac_dir" in
2098.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2099*)
2100 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2101 # A ".." for each directory in $ac_dir_suffix.
2102 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2103 case $ac_top_builddir_sub in
2104 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2105 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2106 esac ;;
2107esac
2108ac_abs_top_builddir=$ac_pwd
2109ac_abs_builddir=$ac_pwd$ac_dir_suffix
2110# for backward compatibility:
2111ac_top_builddir=$ac_top_build_prefix
2112
2113case $srcdir in
2114 .) # We are building in place.
2115 ac_srcdir=.
2116 ac_top_srcdir=$ac_top_builddir_sub
2117 ac_abs_top_srcdir=$ac_pwd ;;
2118 [\\/]* | ?:[\\/]* ) # Absolute name.
2119 ac_srcdir=$srcdir$ac_dir_suffix;
2120 ac_top_srcdir=$srcdir
2121 ac_abs_top_srcdir=$srcdir ;;
2122 *) # Relative name.
2123 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2124 ac_top_srcdir=$ac_top_build_prefix$srcdir
2125 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2126esac
2127ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2128
2129 cd "$ac_dir" || { ac_status=$?; continue; }
2130 # Check for guested configure.
2131 if test -f "$ac_srcdir/configure.gnu"; then
2132 echo &&
2133 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2134 elif test -f "$ac_srcdir/configure"; then
2135 echo &&
2136 $SHELL "$ac_srcdir/configure" --help=recursive
2137 else
2138 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2139 fi || ac_status=$?
2140 cd "$ac_pwd" || { ac_status=$?; break; }
2141 done
2142fi
2143
2144test -n "$ac_init_help" && exit $ac_status
2145if $ac_init_version; then
2146 cat <<\_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00002147ImageMagick configure 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +00002148generated by GNU Autoconf 2.69
cristy3ed852e2009-09-05 21:47:34 +00002149
cristy14fefe52012-05-21 00:59:18 +00002150Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002151This configure script is free software; the Free Software Foundation
2152gives unlimited permission to copy, distribute and modify it.
2153_ACEOF
2154 exit
2155fi
cristy8b350f62009-11-15 23:12:43 +00002156
2157## ------------------------ ##
2158## Autoconf initialization. ##
2159## ------------------------ ##
2160
2161# ac_fn_c_try_compile LINENO
2162# --------------------------
2163# Try to compile conftest.$ac_ext, and return whether this succeeded.
2164ac_fn_c_try_compile ()
2165{
2166 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2167 rm -f conftest.$ac_objext
2168 if { { ac_try="$ac_compile"
2169case "(($ac_try" in
2170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2171 *) ac_try_echo=$ac_try;;
2172esac
2173eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2174$as_echo "$ac_try_echo"; } >&5
2175 (eval "$ac_compile") 2>conftest.err
2176 ac_status=$?
2177 if test -s conftest.err; then
2178 grep -v '^ *+' conftest.err >conftest.er1
2179 cat conftest.er1 >&5
2180 mv -f conftest.er1 conftest.err
2181 fi
2182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2183 test $ac_status = 0; } && {
2184 test -z "$ac_c_werror_flag" ||
2185 test ! -s conftest.err
2186 } && test -s conftest.$ac_objext; then :
2187 ac_retval=0
2188else
2189 $as_echo "$as_me: failed program was:" >&5
2190sed 's/^/| /' conftest.$ac_ext >&5
2191
2192 ac_retval=1
2193fi
cristyda16f162011-02-19 23:52:17 +00002194 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002195 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002196
2197} # ac_fn_c_try_compile
2198
cristy95646052009-11-28 23:05:30 +00002199# ac_fn_c_try_cpp LINENO
2200# ----------------------
2201# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2202ac_fn_c_try_cpp ()
2203{
2204 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2205 if { { ac_try="$ac_cpp conftest.$ac_ext"
2206case "(($ac_try" in
2207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2208 *) ac_try_echo=$ac_try;;
2209esac
2210eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2211$as_echo "$ac_try_echo"; } >&5
2212 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2213 ac_status=$?
2214 if test -s conftest.err; then
2215 grep -v '^ *+' conftest.err >conftest.er1
2216 cat conftest.er1 >&5
2217 mv -f conftest.er1 conftest.err
2218 fi
2219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002220 test $ac_status = 0; } > conftest.i && {
cristy95646052009-11-28 23:05:30 +00002221 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2222 test ! -s conftest.err
2223 }; then :
2224 ac_retval=0
2225else
2226 $as_echo "$as_me: failed program was:" >&5
2227sed 's/^/| /' conftest.$ac_ext >&5
2228
2229 ac_retval=1
2230fi
cristyda16f162011-02-19 23:52:17 +00002231 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy95646052009-11-28 23:05:30 +00002232 as_fn_set_status $ac_retval
2233
2234} # ac_fn_c_try_cpp
2235
cristy8b350f62009-11-15 23:12:43 +00002236# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2237# -------------------------------------------------------
2238# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2239# the include files in INCLUDES and setting the cache variable VAR
2240# accordingly.
2241ac_fn_c_check_header_mongrel ()
2242{
2243 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002244 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2246$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002247if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002248 $as_echo_n "(cached) " >&6
2249fi
2250eval ac_res=\$$3
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2252$as_echo "$ac_res" >&6; }
2253else
2254 # Is the header compilable?
2255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2256$as_echo_n "checking $2 usability... " >&6; }
2257cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2258/* end confdefs.h. */
2259$4
2260#include <$2>
2261_ACEOF
2262if ac_fn_c_try_compile "$LINENO"; then :
2263 ac_header_compiler=yes
2264else
2265 ac_header_compiler=no
2266fi
2267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2269$as_echo "$ac_header_compiler" >&6; }
2270
2271# Is the header present?
2272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2273$as_echo_n "checking $2 presence... " >&6; }
2274cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2275/* end confdefs.h. */
2276#include <$2>
2277_ACEOF
2278if ac_fn_c_try_cpp "$LINENO"; then :
2279 ac_header_preproc=yes
2280else
2281 ac_header_preproc=no
2282fi
cristyda16f162011-02-19 23:52:17 +00002283rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2285$as_echo "$ac_header_preproc" >&6; }
2286
2287# So? What about this header?
2288case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2289 yes:no: )
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2291$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2293$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2294 ;;
2295 no:yes:* )
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2297$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2299$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2301$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2303$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2305$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002306( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002307## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002308## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002309 ) | sed "s/^/$as_me: WARNING: /" >&2
2310 ;;
2311esac
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2313$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002314if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002315 $as_echo_n "(cached) " >&6
2316else
2317 eval "$3=\$ac_header_compiler"
2318fi
2319eval ac_res=\$$3
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2321$as_echo "$ac_res" >&6; }
2322fi
cristyda16f162011-02-19 23:52:17 +00002323 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002324
2325} # ac_fn_c_check_header_mongrel
2326
2327# ac_fn_c_try_run LINENO
2328# ----------------------
2329# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2330# that executables *can* be run.
2331ac_fn_c_try_run ()
2332{
2333 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2334 if { { ac_try="$ac_link"
2335case "(($ac_try" in
2336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2337 *) ac_try_echo=$ac_try;;
2338esac
2339eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2340$as_echo "$ac_try_echo"; } >&5
2341 (eval "$ac_link") 2>&5
2342 ac_status=$?
2343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2344 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2345 { { case "(($ac_try" in
2346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2347 *) ac_try_echo=$ac_try;;
2348esac
2349eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2350$as_echo "$ac_try_echo"; } >&5
2351 (eval "$ac_try") 2>&5
2352 ac_status=$?
2353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2354 test $ac_status = 0; }; }; then :
2355 ac_retval=0
2356else
2357 $as_echo "$as_me: program exited with status $ac_status" >&5
2358 $as_echo "$as_me: failed program was:" >&5
2359sed 's/^/| /' conftest.$ac_ext >&5
2360
2361 ac_retval=$ac_status
2362fi
2363 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002364 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002365 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002366
2367} # ac_fn_c_try_run
2368
2369# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2370# -------------------------------------------------------
2371# Tests whether HEADER exists and can be compiled using the include files in
2372# INCLUDES, setting the cache variable VAR accordingly.
2373ac_fn_c_check_header_compile ()
2374{
2375 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2377$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002378if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002379 $as_echo_n "(cached) " >&6
2380else
2381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2382/* end confdefs.h. */
2383$4
2384#include <$2>
2385_ACEOF
2386if ac_fn_c_try_compile "$LINENO"; then :
2387 eval "$3=yes"
2388else
2389 eval "$3=no"
2390fi
2391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2392fi
2393eval ac_res=\$$3
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2395$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002396 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002397
2398} # ac_fn_c_check_header_compile
2399
cristya0b81c32010-01-22 02:54:33 +00002400# ac_fn_cxx_try_compile LINENO
2401# ----------------------------
2402# Try to compile conftest.$ac_ext, and return whether this succeeded.
2403ac_fn_cxx_try_compile ()
2404{
2405 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2406 rm -f conftest.$ac_objext
2407 if { { ac_try="$ac_compile"
2408case "(($ac_try" in
2409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2410 *) ac_try_echo=$ac_try;;
2411esac
2412eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2413$as_echo "$ac_try_echo"; } >&5
2414 (eval "$ac_compile") 2>conftest.err
2415 ac_status=$?
2416 if test -s conftest.err; then
2417 grep -v '^ *+' conftest.err >conftest.er1
2418 cat conftest.er1 >&5
2419 mv -f conftest.er1 conftest.err
2420 fi
2421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2422 test $ac_status = 0; } && {
2423 test -z "$ac_cxx_werror_flag" ||
2424 test ! -s conftest.err
2425 } && test -s conftest.$ac_objext; then :
2426 ac_retval=0
2427else
2428 $as_echo "$as_me: failed program was:" >&5
2429sed 's/^/| /' conftest.$ac_ext >&5
2430
2431 ac_retval=1
2432fi
cristyda16f162011-02-19 23:52:17 +00002433 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristya0b81c32010-01-22 02:54:33 +00002434 as_fn_set_status $ac_retval
2435
2436} # ac_fn_cxx_try_compile
2437
cristyd95b7a52013-10-23 13:12:53 +00002438# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2439# --------------------------------------------
2440# Tries to find the compile-time value of EXPR in a program that includes
2441# INCLUDES, setting VAR accordingly. Returns whether the value could be
2442# computed
2443ac_fn_c_compute_int ()
2444{
2445 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2446 if test "$cross_compiling" = yes; then
2447 # Depending upon the size, compute the lo and hi bounds.
2448cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2449/* end confdefs.h. */
2450$4
2451int
2452main ()
2453{
2454static int test_array [1 - 2 * !(($2) >= 0)];
2455test_array [0] = 0;
2456return test_array [0];
2457
2458 ;
2459 return 0;
2460}
2461_ACEOF
2462if ac_fn_c_try_compile "$LINENO"; then :
2463 ac_lo=0 ac_mid=0
2464 while :; do
2465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2466/* end confdefs.h. */
2467$4
2468int
2469main ()
2470{
2471static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2472test_array [0] = 0;
2473return test_array [0];
2474
2475 ;
2476 return 0;
2477}
2478_ACEOF
2479if ac_fn_c_try_compile "$LINENO"; then :
2480 ac_hi=$ac_mid; break
2481else
2482 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2483 if test $ac_lo -le $ac_mid; then
2484 ac_lo= ac_hi=
2485 break
2486 fi
2487 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2488fi
2489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2490 done
2491else
2492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2493/* end confdefs.h. */
2494$4
2495int
2496main ()
2497{
2498static int test_array [1 - 2 * !(($2) < 0)];
2499test_array [0] = 0;
2500return test_array [0];
2501
2502 ;
2503 return 0;
2504}
2505_ACEOF
2506if ac_fn_c_try_compile "$LINENO"; then :
2507 ac_hi=-1 ac_mid=-1
2508 while :; do
2509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2510/* end confdefs.h. */
2511$4
2512int
2513main ()
2514{
2515static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2516test_array [0] = 0;
2517return test_array [0];
2518
2519 ;
2520 return 0;
2521}
2522_ACEOF
2523if ac_fn_c_try_compile "$LINENO"; then :
2524 ac_lo=$ac_mid; break
2525else
2526 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2527 if test $ac_mid -le $ac_hi; then
2528 ac_lo= ac_hi=
2529 break
2530 fi
2531 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2532fi
2533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2534 done
2535else
2536 ac_lo= ac_hi=
2537fi
2538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2539fi
2540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2541# Binary search between lo and hi bounds.
2542while test "x$ac_lo" != "x$ac_hi"; do
2543 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2545/* end confdefs.h. */
2546$4
2547int
2548main ()
2549{
2550static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2551test_array [0] = 0;
2552return test_array [0];
2553
2554 ;
2555 return 0;
2556}
2557_ACEOF
2558if ac_fn_c_try_compile "$LINENO"; then :
2559 ac_hi=$ac_mid
2560else
2561 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2562fi
2563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2564done
2565case $ac_lo in #((
2566?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2567'') ac_retval=1 ;;
2568esac
2569 else
2570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2571/* end confdefs.h. */
2572$4
2573static long int longval () { return $2; }
2574static unsigned long int ulongval () { return $2; }
2575#include <stdio.h>
2576#include <stdlib.h>
2577int
2578main ()
2579{
2580
2581 FILE *f = fopen ("conftest.val", "w");
2582 if (! f)
2583 return 1;
2584 if (($2) < 0)
2585 {
2586 long int i = longval ();
2587 if (i != ($2))
2588 return 1;
2589 fprintf (f, "%ld", i);
2590 }
2591 else
2592 {
2593 unsigned long int i = ulongval ();
2594 if (i != ($2))
2595 return 1;
2596 fprintf (f, "%lu", i);
2597 }
2598 /* Do not output a trailing newline, as this causes \r\n confusion
2599 on some platforms. */
2600 return ferror (f) || fclose (f) != 0;
2601
2602 ;
2603 return 0;
2604}
2605_ACEOF
2606if ac_fn_c_try_run "$LINENO"; then :
2607 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2608else
2609 ac_retval=1
2610fi
2611rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2612 conftest.$ac_objext conftest.beam conftest.$ac_ext
2613rm -f conftest.val
2614
2615 fi
2616 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2617 as_fn_set_status $ac_retval
2618
2619} # ac_fn_c_compute_int
2620
cristy8b350f62009-11-15 23:12:43 +00002621# ac_fn_c_try_link LINENO
2622# -----------------------
2623# Try to link conftest.$ac_ext, and return whether this succeeded.
2624ac_fn_c_try_link ()
2625{
2626 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2627 rm -f conftest.$ac_objext conftest$ac_exeext
2628 if { { ac_try="$ac_link"
2629case "(($ac_try" in
2630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2631 *) ac_try_echo=$ac_try;;
2632esac
2633eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2634$as_echo "$ac_try_echo"; } >&5
2635 (eval "$ac_link") 2>conftest.err
2636 ac_status=$?
2637 if test -s conftest.err; then
2638 grep -v '^ *+' conftest.err >conftest.er1
2639 cat conftest.er1 >&5
2640 mv -f conftest.er1 conftest.err
2641 fi
2642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2643 test $ac_status = 0; } && {
2644 test -z "$ac_c_werror_flag" ||
2645 test ! -s conftest.err
2646 } && test -s conftest$ac_exeext && {
2647 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002648 test -x conftest$ac_exeext
cristy8b350f62009-11-15 23:12:43 +00002649 }; then :
2650 ac_retval=0
2651else
2652 $as_echo "$as_me: failed program was:" >&5
2653sed 's/^/| /' conftest.$ac_ext >&5
2654
2655 ac_retval=1
2656fi
2657 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2658 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2659 # interfere with the next link command; also delete a directory that is
2660 # left behind by Apple's compiler. We do this before executing the actions.
2661 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002662 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002663 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002664
2665} # ac_fn_c_try_link
2666
cristy73bd4a52010-10-05 11:24:23 +00002667# ac_fn_c_check_func LINENO FUNC VAR
2668# ----------------------------------
2669# Tests whether FUNC exists, setting the cache variable VAR accordingly
2670ac_fn_c_check_func ()
2671{
2672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2674$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002675if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002676 $as_echo_n "(cached) " >&6
2677else
2678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2679/* end confdefs.h. */
2680/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2681 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2682#define $2 innocuous_$2
2683
2684/* System header to define __stub macros and hopefully few prototypes,
2685 which can conflict with char $2 (); below.
2686 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2687 <limits.h> exists even on freestanding compilers. */
2688
2689#ifdef __STDC__
2690# include <limits.h>
2691#else
2692# include <assert.h>
2693#endif
2694
2695#undef $2
2696
2697/* Override any GCC internal prototype to avoid an error.
2698 Use char because int might match the return type of a GCC
2699 builtin and then its argument prototype would still apply. */
2700#ifdef __cplusplus
2701extern "C"
2702#endif
2703char $2 ();
2704/* The GNU C library defines this for functions which it implements
2705 to always fail with ENOSYS. Some functions are actually named
2706 something starting with __ and the normal name is an alias. */
2707#if defined __stub_$2 || defined __stub___$2
2708choke me
2709#endif
2710
2711int
2712main ()
2713{
2714return $2 ();
2715 ;
2716 return 0;
2717}
2718_ACEOF
2719if ac_fn_c_try_link "$LINENO"; then :
2720 eval "$3=yes"
2721else
2722 eval "$3=no"
2723fi
2724rm -f core conftest.err conftest.$ac_objext \
2725 conftest$ac_exeext conftest.$ac_ext
2726fi
2727eval ac_res=\$$3
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2729$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002730 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002731
2732} # ac_fn_c_check_func
2733
2734# ac_fn_cxx_try_cpp LINENO
2735# ------------------------
2736# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2737ac_fn_cxx_try_cpp ()
2738{
2739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2740 if { { ac_try="$ac_cpp conftest.$ac_ext"
2741case "(($ac_try" in
2742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2743 *) ac_try_echo=$ac_try;;
2744esac
2745eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2746$as_echo "$ac_try_echo"; } >&5
2747 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2748 ac_status=$?
2749 if test -s conftest.err; then
2750 grep -v '^ *+' conftest.err >conftest.er1
2751 cat conftest.er1 >&5
2752 mv -f conftest.er1 conftest.err
2753 fi
2754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002755 test $ac_status = 0; } > conftest.i && {
cristy73bd4a52010-10-05 11:24:23 +00002756 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2757 test ! -s conftest.err
2758 }; then :
2759 ac_retval=0
2760else
2761 $as_echo "$as_me: failed program was:" >&5
2762sed 's/^/| /' conftest.$ac_ext >&5
2763
2764 ac_retval=1
2765fi
cristyda16f162011-02-19 23:52:17 +00002766 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002767 as_fn_set_status $ac_retval
2768
2769} # ac_fn_cxx_try_cpp
2770
2771# ac_fn_cxx_try_link LINENO
2772# -------------------------
2773# Try to link conftest.$ac_ext, and return whether this succeeded.
2774ac_fn_cxx_try_link ()
2775{
2776 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2777 rm -f conftest.$ac_objext conftest$ac_exeext
2778 if { { ac_try="$ac_link"
2779case "(($ac_try" in
2780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2781 *) ac_try_echo=$ac_try;;
2782esac
2783eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2784$as_echo "$ac_try_echo"; } >&5
2785 (eval "$ac_link") 2>conftest.err
2786 ac_status=$?
2787 if test -s conftest.err; then
2788 grep -v '^ *+' conftest.err >conftest.er1
2789 cat conftest.er1 >&5
2790 mv -f conftest.er1 conftest.err
2791 fi
2792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2793 test $ac_status = 0; } && {
2794 test -z "$ac_cxx_werror_flag" ||
2795 test ! -s conftest.err
2796 } && test -s conftest$ac_exeext && {
2797 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002798 test -x conftest$ac_exeext
cristy73bd4a52010-10-05 11:24:23 +00002799 }; then :
2800 ac_retval=0
2801else
2802 $as_echo "$as_me: failed program was:" >&5
2803sed 's/^/| /' conftest.$ac_ext >&5
2804
2805 ac_retval=1
2806fi
2807 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2808 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2809 # interfere with the next link command; also delete a directory that is
2810 # left behind by Apple's compiler. We do this before executing the actions.
2811 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002812 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002813 as_fn_set_status $ac_retval
2814
2815} # ac_fn_cxx_try_link
2816
cristy8b350f62009-11-15 23:12:43 +00002817# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2818# -------------------------------------------
2819# Tests whether TYPE exists after having included INCLUDES, setting cache
2820# variable VAR accordingly.
2821ac_fn_c_check_type ()
2822{
2823 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2825$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002826if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002827 $as_echo_n "(cached) " >&6
2828else
2829 eval "$3=no"
2830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2831/* end confdefs.h. */
2832$4
2833int
2834main ()
2835{
2836if (sizeof ($2))
2837 return 0;
2838 ;
2839 return 0;
2840}
2841_ACEOF
2842if ac_fn_c_try_compile "$LINENO"; then :
2843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2844/* end confdefs.h. */
2845$4
2846int
2847main ()
2848{
2849if (sizeof (($2)))
2850 return 0;
2851 ;
2852 return 0;
2853}
2854_ACEOF
2855if ac_fn_c_try_compile "$LINENO"; then :
2856
2857else
2858 eval "$3=yes"
2859fi
2860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2861fi
2862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2863fi
2864eval ac_res=\$$3
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2866$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002867 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002868
2869} # ac_fn_c_check_type
2870
cristy92703d82010-04-26 00:18:18 +00002871# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2872# ----------------------------------------------------
2873# Tries to find if the field MEMBER exists in type AGGR, after including
2874# INCLUDES, setting cache variable VAR accordingly.
2875ac_fn_c_check_member ()
2876{
2877 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2879$as_echo_n "checking for $2.$3... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002880if eval \${$4+:} false; then :
cristy92703d82010-04-26 00:18:18 +00002881 $as_echo_n "(cached) " >&6
2882else
2883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2884/* end confdefs.h. */
2885$5
2886int
2887main ()
2888{
2889static $2 ac_aggr;
2890if (ac_aggr.$3)
2891return 0;
2892 ;
2893 return 0;
2894}
2895_ACEOF
2896if ac_fn_c_try_compile "$LINENO"; then :
2897 eval "$4=yes"
2898else
2899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2900/* end confdefs.h. */
2901$5
2902int
2903main ()
2904{
2905static $2 ac_aggr;
2906if (sizeof ac_aggr.$3)
2907return 0;
2908 ;
2909 return 0;
2910}
2911_ACEOF
2912if ac_fn_c_try_compile "$LINENO"; then :
2913 eval "$4=yes"
2914else
2915 eval "$4=no"
2916fi
2917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2918fi
2919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2920fi
2921eval ac_res=\$$4
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2923$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002924 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy92703d82010-04-26 00:18:18 +00002925
2926} # ac_fn_c_check_member
2927
cristy5eef09f2012-10-16 12:08:28 +00002928# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2929# ---------------------------------------------
2930# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2931# accordingly.
2932ac_fn_c_check_decl ()
2933{
2934 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2935 as_decl_name=`echo $2|sed 's/ *(.*//'`
2936 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2938$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2939if eval \${$3+:} false; then :
2940 $as_echo_n "(cached) " >&6
2941else
2942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2943/* end confdefs.h. */
2944$4
2945int
2946main ()
2947{
2948#ifndef $as_decl_name
2949#ifdef __cplusplus
2950 (void) $as_decl_use;
2951#else
2952 (void) $as_decl_name;
2953#endif
2954#endif
2955
2956 ;
2957 return 0;
2958}
2959_ACEOF
2960if ac_fn_c_try_compile "$LINENO"; then :
2961 eval "$3=yes"
2962else
2963 eval "$3=no"
2964fi
2965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2966fi
2967eval ac_res=\$$3
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2969$as_echo "$ac_res" >&6; }
2970 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2971
2972} # ac_fn_c_check_decl
2973
cristy501c8042011-05-26 17:46:28 +00002974# ac_fn_c_find_intX_t LINENO BITS VAR
2975# -----------------------------------
2976# Finds a signed integer type with width BITS, setting cache variable VAR
2977# accordingly.
2978ac_fn_c_find_intX_t ()
2979{
2980 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2982$as_echo_n "checking for int$2_t... " >&6; }
2983if eval \${$3+:} false; then :
2984 $as_echo_n "(cached) " >&6
2985else
2986 eval "$3=no"
2987 # Order is important - never check a type that is potentially smaller
2988 # than half of the expected target width.
2989 for ac_type in int$2_t 'int' 'long int' \
2990 'long long int' 'short int' 'signed char'; do
2991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2992/* end confdefs.h. */
2993$ac_includes_default
2994 enum { N = $2 / 2 - 1 };
2995int
2996main ()
2997{
2998static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
cristy14fefe52012-05-21 00:59:18 +00002999test_array [0] = 0;
3000return test_array [0];
cristy501c8042011-05-26 17:46:28 +00003001
3002 ;
3003 return 0;
3004}
3005_ACEOF
3006if ac_fn_c_try_compile "$LINENO"; then :
3007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3008/* end confdefs.h. */
3009$ac_includes_default
3010 enum { N = $2 / 2 - 1 };
3011int
3012main ()
3013{
3014static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
3015 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
cristy14fefe52012-05-21 00:59:18 +00003016test_array [0] = 0;
3017return test_array [0];
cristy501c8042011-05-26 17:46:28 +00003018
3019 ;
3020 return 0;
3021}
3022_ACEOF
3023if ac_fn_c_try_compile "$LINENO"; then :
3024
3025else
3026 case $ac_type in #(
3027 int$2_t) :
3028 eval "$3=yes" ;; #(
3029 *) :
3030 eval "$3=\$ac_type" ;;
3031esac
3032fi
3033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3034fi
3035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3036 if eval test \"x\$"$3"\" = x"no"; then :
3037
3038else
3039 break
3040fi
3041 done
3042fi
3043eval ac_res=\$$3
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3045$as_echo "$ac_res" >&6; }
3046 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3047
3048} # ac_fn_c_find_intX_t
3049
3050# ac_fn_c_find_uintX_t LINENO BITS VAR
3051# ------------------------------------
3052# Finds an unsigned integer type with width BITS, setting cache variable VAR
3053# accordingly.
3054ac_fn_c_find_uintX_t ()
3055{
3056 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
3058$as_echo_n "checking for uint$2_t... " >&6; }
3059if eval \${$3+:} false; then :
3060 $as_echo_n "(cached) " >&6
3061else
3062 eval "$3=no"
3063 # Order is important - never check a type that is potentially smaller
3064 # than half of the expected target width.
3065 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
3066 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
3067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3068/* end confdefs.h. */
3069$ac_includes_default
3070int
3071main ()
3072{
3073static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
cristy14fefe52012-05-21 00:59:18 +00003074test_array [0] = 0;
3075return test_array [0];
cristy501c8042011-05-26 17:46:28 +00003076
3077 ;
3078 return 0;
3079}
3080_ACEOF
3081if ac_fn_c_try_compile "$LINENO"; then :
3082 case $ac_type in #(
3083 uint$2_t) :
3084 eval "$3=yes" ;; #(
3085 *) :
3086 eval "$3=\$ac_type" ;;
3087esac
3088fi
3089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3090 if eval test \"x\$"$3"\" = x"no"; then :
3091
3092else
3093 break
3094fi
3095 done
3096fi
3097eval ac_res=\$$3
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3099$as_echo "$ac_res" >&6; }
3100 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3101
3102} # ac_fn_c_find_uintX_t
3103
cristy8b350f62009-11-15 23:12:43 +00003104# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
3105# ---------------------------------------------------------
3106# Tests whether HEADER exists, giving a warning if it cannot be compiled using
3107# the include files in INCLUDES and setting the cache variable VAR
3108# accordingly.
3109ac_fn_cxx_check_header_mongrel ()
3110{
3111 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00003112 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3114$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003115if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003116 $as_echo_n "(cached) " >&6
3117fi
3118eval ac_res=\$$3
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3120$as_echo "$ac_res" >&6; }
3121else
3122 # Is the header compilable?
3123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
3124$as_echo_n "checking $2 usability... " >&6; }
3125cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3126/* end confdefs.h. */
3127$4
3128#include <$2>
3129_ACEOF
3130if ac_fn_cxx_try_compile "$LINENO"; then :
3131 ac_header_compiler=yes
3132else
3133 ac_header_compiler=no
3134fi
3135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3137$as_echo "$ac_header_compiler" >&6; }
3138
3139# Is the header present?
3140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3141$as_echo_n "checking $2 presence... " >&6; }
3142cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3143/* end confdefs.h. */
3144#include <$2>
3145_ACEOF
3146if ac_fn_cxx_try_cpp "$LINENO"; then :
3147 ac_header_preproc=yes
3148else
3149 ac_header_preproc=no
3150fi
cristyda16f162011-02-19 23:52:17 +00003151rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00003152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3153$as_echo "$ac_header_preproc" >&6; }
3154
3155# So? What about this header?
3156case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3157 yes:no: )
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3159$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3161$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3162 ;;
3163 no:yes:* )
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3165$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3167$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3169$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3171$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3173$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003174( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00003175## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00003176## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00003177 ) | sed "s/^/$as_me: WARNING: /" >&2
3178 ;;
3179esac
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3181$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003182if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003183 $as_echo_n "(cached) " >&6
3184else
3185 eval "$3=\$ac_header_compiler"
3186fi
3187eval ac_res=\$$3
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3189$as_echo "$ac_res" >&6; }
3190fi
cristyda16f162011-02-19 23:52:17 +00003191 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00003192
3193} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00003194cat >config.log <<_ACEOF
3195This file contains any messages produced by compilers while
3196running configure, to aid debugging if configure makes a mistake.
3197
cristy29eb34e2011-10-16 00:46:08 +00003198It was created by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +00003199generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00003200
3201 $ $0 $@
3202
3203_ACEOF
3204exec 5>>config.log
3205{
3206cat <<_ASUNAME
3207## --------- ##
3208## Platform. ##
3209## --------- ##
3210
3211hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3212uname -m = `(uname -m) 2>/dev/null || echo unknown`
3213uname -r = `(uname -r) 2>/dev/null || echo unknown`
3214uname -s = `(uname -s) 2>/dev/null || echo unknown`
3215uname -v = `(uname -v) 2>/dev/null || echo unknown`
3216
3217/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3218/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3219
3220/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3221/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3222/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3223/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3224/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3225/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3226/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3227
3228_ASUNAME
3229
3230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3231for as_dir in $PATH
3232do
3233 IFS=$as_save_IFS
3234 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003235 $as_echo "PATH: $as_dir"
3236 done
cristy3ed852e2009-09-05 21:47:34 +00003237IFS=$as_save_IFS
3238
3239} >&5
3240
3241cat >&5 <<_ACEOF
3242
3243
3244## ----------- ##
3245## Core tests. ##
3246## ----------- ##
3247
3248_ACEOF
3249
3250
3251# Keep a trace of the command line.
3252# Strip out --no-create and --no-recursion so they do not pile up.
3253# Strip out --silent because we don't want to record it for future runs.
3254# Also quote any args containing shell meta-characters.
3255# Make two passes to allow for proper duplicate-argument suppression.
3256ac_configure_args=
3257ac_configure_args0=
3258ac_configure_args1=
3259ac_must_keep_next=false
3260for ac_pass in 1 2
3261do
3262 for ac_arg
3263 do
3264 case $ac_arg in
3265 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3266 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3267 | -silent | --silent | --silen | --sile | --sil)
3268 continue ;;
3269 *\'*)
3270 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3271 esac
3272 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003273 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003274 2)
cristy8b350f62009-11-15 23:12:43 +00003275 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003276 if test $ac_must_keep_next = true; then
3277 ac_must_keep_next=false # Got value, back to normal.
3278 else
3279 case $ac_arg in
3280 *=* | --config-cache | -C | -disable-* | --disable-* \
3281 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3282 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3283 | -with-* | --with-* | -without-* | --without-* | --x)
3284 case "$ac_configure_args0 " in
3285 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3286 esac
3287 ;;
3288 -* ) ac_must_keep_next=true ;;
3289 esac
3290 fi
cristy8b350f62009-11-15 23:12:43 +00003291 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003292 ;;
3293 esac
3294 done
3295done
cristy8b350f62009-11-15 23:12:43 +00003296{ ac_configure_args0=; unset ac_configure_args0;}
3297{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003298
3299# When interrupted or exit'd, cleanup temporary files, and complete
3300# config.log. We remove comments because anyway the quotes in there
3301# would cause problems or look ugly.
3302# WARNING: Use '\'' to represent an apostrophe within the trap.
3303# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3304trap 'exit_status=$?
3305 # Save into config.log some information that might help in debugging.
3306 {
3307 echo
3308
cristy98dddb52010-11-04 00:30:15 +00003309 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003310## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003311## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003312 echo
3313 # The following way of writing the cache mishandles newlines in values,
3314(
3315 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3316 eval ac_val=\$$ac_var
3317 case $ac_val in #(
3318 *${as_nl}*)
3319 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003320 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003321$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3322 esac
3323 case $ac_var in #(
3324 _ | IFS | as_nl) ;; #(
3325 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003326 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003327 esac ;;
3328 esac
3329 done
3330 (set) 2>&1 |
3331 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3332 *${as_nl}ac_space=\ *)
3333 sed -n \
3334 "s/'\''/'\''\\\\'\'''\''/g;
3335 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3336 ;; #(
3337 *)
3338 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3339 ;;
3340 esac |
3341 sort
3342)
3343 echo
3344
cristy98dddb52010-11-04 00:30:15 +00003345 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003346## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003347## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003348 echo
3349 for ac_var in $ac_subst_vars
3350 do
3351 eval ac_val=\$$ac_var
3352 case $ac_val in
3353 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3354 esac
3355 $as_echo "$ac_var='\''$ac_val'\''"
3356 done | sort
3357 echo
3358
3359 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003360 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003361## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003362## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003363 echo
3364 for ac_var in $ac_subst_files
3365 do
3366 eval ac_val=\$$ac_var
3367 case $ac_val in
3368 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3369 esac
3370 $as_echo "$ac_var='\''$ac_val'\''"
3371 done | sort
3372 echo
3373 fi
3374
3375 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003376 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003377## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003378## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003379 echo
3380 cat confdefs.h
3381 echo
3382 fi
3383 test "$ac_signal" != 0 &&
3384 $as_echo "$as_me: caught signal $ac_signal"
3385 $as_echo "$as_me: exit $exit_status"
3386 } >&5
3387 rm -f core *.core core.conftest.* &&
3388 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3389 exit $exit_status
3390' 0
3391for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003392 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003393done
3394ac_signal=0
3395
3396# confdefs.h avoids OS command line length limits that DEFS can exceed.
3397rm -f -r conftest* confdefs.h
3398
cristy8b350f62009-11-15 23:12:43 +00003399$as_echo "/* confdefs.h */" > confdefs.h
3400
cristy3ed852e2009-09-05 21:47:34 +00003401# Predefined preprocessor variables.
3402
3403cat >>confdefs.h <<_ACEOF
3404#define PACKAGE_NAME "$PACKAGE_NAME"
3405_ACEOF
3406
cristy3ed852e2009-09-05 21:47:34 +00003407cat >>confdefs.h <<_ACEOF
3408#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3409_ACEOF
3410
cristy3ed852e2009-09-05 21:47:34 +00003411cat >>confdefs.h <<_ACEOF
3412#define PACKAGE_VERSION "$PACKAGE_VERSION"
3413_ACEOF
3414
cristy3ed852e2009-09-05 21:47:34 +00003415cat >>confdefs.h <<_ACEOF
3416#define PACKAGE_STRING "$PACKAGE_STRING"
3417_ACEOF
3418
cristy3ed852e2009-09-05 21:47:34 +00003419cat >>confdefs.h <<_ACEOF
3420#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3421_ACEOF
3422
cristy8b350f62009-11-15 23:12:43 +00003423cat >>confdefs.h <<_ACEOF
3424#define PACKAGE_URL "$PACKAGE_URL"
3425_ACEOF
3426
cristy3ed852e2009-09-05 21:47:34 +00003427
3428# Let the site file select an alternate cache file if it wants to.
3429# Prefer an explicitly selected file to automatically selected ones.
3430ac_site_file1=NONE
3431ac_site_file2=NONE
3432if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003433 # We do not want a PATH search for config.site.
3434 case $CONFIG_SITE in #((
3435 -*) ac_site_file1=./$CONFIG_SITE;;
3436 */*) ac_site_file1=$CONFIG_SITE;;
3437 *) ac_site_file1=./$CONFIG_SITE;;
3438 esac
cristy3ed852e2009-09-05 21:47:34 +00003439elif test "x$prefix" != xNONE; then
3440 ac_site_file1=$prefix/share/config.site
3441 ac_site_file2=$prefix/etc/config.site
3442else
3443 ac_site_file1=$ac_default_prefix/share/config.site
3444 ac_site_file2=$ac_default_prefix/etc/config.site
3445fi
3446for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3447do
3448 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003449 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003450 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003451$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3452 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003453 . "$ac_site_file" \
3454 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3455$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3456as_fn_error $? "failed to load site script $ac_site_file
3457See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003458 fi
3459done
3460
3461if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003462 # Some versions of bash will fail to source /dev/null (special files
3463 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3464 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003465 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003466$as_echo "$as_me: loading cache $cache_file" >&6;}
3467 case $cache_file in
3468 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3469 *) . "./$cache_file";;
3470 esac
3471 fi
3472else
cristy8b350f62009-11-15 23:12:43 +00003473 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003474$as_echo "$as_me: creating cache $cache_file" >&6;}
3475 >$cache_file
3476fi
3477
cristycd4c5312009-11-22 01:19:08 +00003478as_fn_append ac_header_list " stdlib.h"
3479as_fn_append ac_header_list " unistd.h"
3480as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003481# Check that the precious variables saved in the cache have kept the same
3482# value.
3483ac_cache_corrupted=false
3484for ac_var in $ac_precious_vars; do
3485 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3486 eval ac_new_set=\$ac_env_${ac_var}_set
3487 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3488 eval ac_new_val=\$ac_env_${ac_var}_value
3489 case $ac_old_set,$ac_new_set in
3490 set,)
cristy8b350f62009-11-15 23:12:43 +00003491 { $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 +00003492$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3493 ac_cache_corrupted=: ;;
3494 ,set)
cristy8b350f62009-11-15 23:12:43 +00003495 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003496$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3497 ac_cache_corrupted=: ;;
3498 ,);;
3499 *)
3500 if test "x$ac_old_val" != "x$ac_new_val"; then
3501 # differences in whitespace do not lead to failure.
3502 ac_old_val_w=`echo x $ac_old_val`
3503 ac_new_val_w=`echo x $ac_new_val`
3504 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003505 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003506$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3507 ac_cache_corrupted=:
3508 else
cristy8b350f62009-11-15 23:12:43 +00003509 { $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 +00003510$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3511 eval $ac_var=\$ac_old_val
3512 fi
cristy8b350f62009-11-15 23:12:43 +00003513 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003514$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003515 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003516$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3517 fi;;
3518 esac
3519 # Pass precious variables to config.status.
3520 if test "$ac_new_set" = set; then
3521 case $ac_new_val in
3522 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3523 *) ac_arg=$ac_var=$ac_new_val ;;
3524 esac
3525 case " $ac_configure_args " in
3526 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003527 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003528 esac
3529 fi
3530done
3531if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003532 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003533$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003534 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003535$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003536 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003537fi
cristy8b350f62009-11-15 23:12:43 +00003538## -------------------- ##
3539## Main body of script. ##
3540## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003541
3542ac_ext=c
3543ac_cpp='$CPP $CPPFLAGS'
3544ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3545ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3546ac_compiler_gnu=$ac_cv_c_compiler_gnu
3547
3548
3549
3550ac_aux_dir=
3551for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003552 if test -f "$ac_dir/install-sh"; then
3553 ac_aux_dir=$ac_dir
3554 ac_install_sh="$ac_aux_dir/install-sh -c"
3555 break
3556 elif test -f "$ac_dir/install.sh"; then
3557 ac_aux_dir=$ac_dir
3558 ac_install_sh="$ac_aux_dir/install.sh -c"
3559 break
3560 elif test -f "$ac_dir/shtool"; then
3561 ac_aux_dir=$ac_dir
3562 ac_install_sh="$ac_aux_dir/shtool install -c"
3563 break
3564 fi
cristy3ed852e2009-09-05 21:47:34 +00003565done
3566if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003567 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003568fi
3569
3570# These three variables are undocumented and unsupported,
3571# and are intended to be withdrawn in a future Autoconf release.
3572# They can cause serious problems if a builder's source tree is in a directory
3573# whose full name contains unusual characters.
3574ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3575ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3576ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3577
3578
3579
3580
3581ac_config_headers="$ac_config_headers config/config.h"
3582
cristy24fc1fe2010-10-23 21:13:01 +00003583
cristy01ff9f32012-12-01 18:15:29 +00003584ac_config_commands="$ac_config_commands MagickCore/magick-baseconfig.h"
cristy73bd4a52010-10-05 11:24:23 +00003585
cristy3ed852e2009-09-05 21:47:34 +00003586# Make sure we can run config.sub.
3587$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003588 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003589
cristy8b350f62009-11-15 23:12:43 +00003590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003591$as_echo_n "checking build system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003592if ${ac_cv_build+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003593 $as_echo_n "(cached) " >&6
3594else
3595 ac_build_alias=$build_alias
3596test "x$ac_build_alias" = x &&
3597 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3598test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003599 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003600ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003601 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003602
3603fi
cristy8b350f62009-11-15 23:12:43 +00003604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003605$as_echo "$ac_cv_build" >&6; }
3606case $ac_cv_build in
3607*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003608*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003609esac
3610build=$ac_cv_build
3611ac_save_IFS=$IFS; IFS='-'
3612set x $ac_cv_build
3613shift
3614build_cpu=$1
3615build_vendor=$2
3616shift; shift
3617# Remember, the first character of IFS is used to create $*,
3618# except with old shells:
3619build_os=$*
3620IFS=$ac_save_IFS
3621case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3622
3623
cristy8b350f62009-11-15 23:12:43 +00003624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003625$as_echo_n "checking host system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003626if ${ac_cv_host+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003627 $as_echo_n "(cached) " >&6
3628else
3629 if test "x$host_alias" = x; then
3630 ac_cv_host=$ac_cv_build
3631else
3632 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003633 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003634fi
3635
3636fi
cristy8b350f62009-11-15 23:12:43 +00003637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003638$as_echo "$ac_cv_host" >&6; }
3639case $ac_cv_host in
3640*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003641*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003642esac
3643host=$ac_cv_host
3644ac_save_IFS=$IFS; IFS='-'
3645set x $ac_cv_host
3646shift
3647host_cpu=$1
3648host_vendor=$2
3649shift; shift
3650# Remember, the first character of IFS is used to create $*,
3651# except with old shells:
3652host_os=$*
3653IFS=$ac_save_IFS
3654case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3655
3656
cristy8b350f62009-11-15 23:12:43 +00003657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003658$as_echo_n "checking target system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003659if ${ac_cv_target+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003660 $as_echo_n "(cached) " >&6
3661else
3662 if test "x$target_alias" = x; then
3663 ac_cv_target=$ac_cv_host
3664else
3665 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003666 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003667fi
3668
3669fi
cristy8b350f62009-11-15 23:12:43 +00003670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003671$as_echo "$ac_cv_target" >&6; }
3672case $ac_cv_target in
3673*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003674*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003675esac
3676target=$ac_cv_target
3677ac_save_IFS=$IFS; IFS='-'
3678set x $ac_cv_target
3679shift
3680target_cpu=$1
3681target_vendor=$2
3682shift; shift
3683# Remember, the first character of IFS is used to create $*,
3684# except with old shells:
3685target_os=$*
3686IFS=$ac_save_IFS
3687case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3688
3689
3690# The aliases save the names the user supplied, while $host etc.
3691# will get canonicalized.
3692test -n "$target_alias" &&
3693 test "$program_prefix$program_suffix$program_transform_name" = \
3694 NONENONEs,x,x, &&
3695 program_prefix=${target_alias}-
3696
cristy837d6dc2010-02-27 01:16:57 +00003697
cristyead532a2015-06-05 00:49:30 +00003698am__api_version='1.15'
cristy73bd4a52010-10-05 11:24:23 +00003699
3700# Find a good install program. We prefer a C program (faster),
3701# so one script is as good as another. But avoid the broken or
3702# incompatible versions:
3703# SysV /etc/install, /usr/sbin/install
3704# SunOS /usr/etc/install
3705# IRIX /sbin/install
3706# AIX /bin/install
3707# AmigaOS /C/install, which installs bootblocks on floppy discs
3708# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3709# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3710# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3711# OS/2's system install, which has a completely different semantic
3712# ./install, which can be erroneously created by make from ./install.sh.
3713# Reject install programs that cannot install multiple files.
3714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3715$as_echo_n "checking for a BSD-compatible install... " >&6; }
3716if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003717if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003718 $as_echo_n "(cached) " >&6
3719else
3720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3721for as_dir in $PATH
3722do
3723 IFS=$as_save_IFS
3724 test -z "$as_dir" && as_dir=.
3725 # Account for people who put trailing slashes in PATH elements.
3726case $as_dir/ in #((
3727 ./ | .// | /[cC]/* | \
3728 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3729 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3730 /usr/ucb/* ) ;;
3731 *)
3732 # OSF1 and SCO ODT 3.0 have their own names for install.
3733 # Don't use installbsd from OSF since it installs stuff as root
3734 # by default.
3735 for ac_prog in ginstall scoinst install; do
3736 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003737 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003738 if test $ac_prog = install &&
3739 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3740 # AIX install. It has an incompatible calling convention.
3741 :
3742 elif test $ac_prog = install &&
3743 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3744 # program-specific install script used by HP pwplus--don't use.
3745 :
3746 else
3747 rm -rf conftest.one conftest.two conftest.dir
3748 echo one > conftest.one
3749 echo two > conftest.two
3750 mkdir conftest.dir
3751 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3752 test -s conftest.one && test -s conftest.two &&
3753 test -s conftest.dir/conftest.one &&
3754 test -s conftest.dir/conftest.two
3755 then
3756 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3757 break 3
3758 fi
3759 fi
3760 fi
3761 done
3762 done
3763 ;;
3764esac
3765
3766 done
3767IFS=$as_save_IFS
3768
3769rm -rf conftest.one conftest.two conftest.dir
3770
3771fi
3772 if test "${ac_cv_path_install+set}" = set; then
3773 INSTALL=$ac_cv_path_install
3774 else
3775 # As a last resort, use the slow shell script. Don't cache a
3776 # value for INSTALL within a source directory, because that will
3777 # break other packages using the cache if that directory is
3778 # removed, or if the value is a relative name.
3779 INSTALL=$ac_install_sh
3780 fi
3781fi
3782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3783$as_echo "$INSTALL" >&6; }
3784
3785# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3786# It thinks the first close brace ends the variable substitution.
3787test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3788
3789test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3790
3791test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3792
cristy9af1cbf2014-12-28 22:03:09 +00003793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3794$as_echo_n "checking whether build environment is sane... " >&6; }
3795# Reject unsafe characters in $srcdir or the absolute working directory
3796# name. Accept space and tab only in the latter.
3797am_lf='
3798'
3799case `pwd` in
3800 *[\\\"\#\$\&\'\`$am_lf]*)
3801 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3802esac
3803case $srcdir in
3804 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3805 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3806esac
3807
3808# Do 'set' in a subshell so we don't clobber the current shell's
3809# arguments. Must try -L first in case configure is actually a
3810# symlink; some systems play weird games with the mod time of symlinks
3811# (eg FreeBSD returns the mod time of the symlink's containing
3812# directory).
3813if (
3814 am_has_slept=no
3815 for am_try in 1 2; do
3816 echo "timestamp, slept: $am_has_slept" > conftest.file
3817 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3818 if test "$*" = "X"; then
3819 # -L didn't work.
3820 set X `ls -t "$srcdir/configure" conftest.file`
3821 fi
3822 if test "$*" != "X $srcdir/configure conftest.file" \
3823 && test "$*" != "X conftest.file $srcdir/configure"; then
3824
3825 # If neither matched, then we have a broken ls. This can happen
3826 # if, for instance, CONFIG_SHELL is bash and it inherits a
3827 # broken ls alias from the environment. This has actually
3828 # happened. Such a system could not be considered "sane".
3829 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3830 alias in your environment" "$LINENO" 5
3831 fi
3832 if test "$2" = conftest.file || test $am_try -eq 2; then
3833 break
3834 fi
3835 # Just in case.
3836 sleep 1
3837 am_has_slept=yes
3838 done
3839 test "$2" = conftest.file
3840 )
3841then
3842 # Ok.
3843 :
3844else
3845 as_fn_error $? "newly created file is older than distributed files!
3846Check your system clock" "$LINENO" 5
3847fi
3848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3849$as_echo "yes" >&6; }
3850# If we didn't sleep, we still need to ensure time stamps of config.status and
3851# generated files are strictly newer.
3852am_sleep_pid=
3853if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3854 ( sleep 1 ) &
3855 am_sleep_pid=$!
3856fi
3857
3858rm -f conftest.file
3859
cristy73bd4a52010-10-05 11:24:23 +00003860test "$program_prefix" != NONE &&
3861 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3862# Use a double $ so make ignores it.
3863test "$program_suffix" != NONE &&
3864 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3865# Double any \ or $.
3866# By default was `s,x,x', remove it if useless.
3867ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3868program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3869
cristyead532a2015-06-05 00:49:30 +00003870# Expand $ac_aux_dir to an absolute path.
3871am_aux_dir=`cd "$ac_aux_dir" && pwd`
cristy73bd4a52010-10-05 11:24:23 +00003872
3873if test x"${MISSING+set}" != xset; then
3874 case $am_aux_dir in
3875 *\ * | *\ *)
3876 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3877 *)
3878 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3879 esac
3880fi
3881# Use eval to expand $SHELL
cristy58d34aa2013-01-24 15:11:54 +00003882if eval "$MISSING --is-lightweight"; then
3883 am_missing_run="$MISSING "
cristy73bd4a52010-10-05 11:24:23 +00003884else
3885 am_missing_run=
cristyc0890a62012-07-19 00:18:20 +00003886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3887$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
cristy73bd4a52010-10-05 11:24:23 +00003888fi
3889
cristyead532a2015-06-05 00:49:30 +00003890if test x"${install_sh+set}" != xset; then
cristy73bd4a52010-10-05 11:24:23 +00003891 case $am_aux_dir in
3892 *\ * | *\ *)
3893 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3894 *)
3895 install_sh="\${SHELL} $am_aux_dir/install-sh"
3896 esac
3897fi
3898
cristyc0890a62012-07-19 00:18:20 +00003899# Installed binaries are usually stripped using 'strip' when the user
3900# run "make install-strip". However 'strip' might not be the right
cristy73bd4a52010-10-05 11:24:23 +00003901# tool to use in cross-compilation environments, therefore Automake
cristyc0890a62012-07-19 00:18:20 +00003902# will honor the 'STRIP' environment variable to overrule this program.
cristy73bd4a52010-10-05 11:24:23 +00003903if test "$cross_compiling" != no; then
3904 if test -n "$ac_tool_prefix"; then
3905 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3906set dummy ${ac_tool_prefix}strip; ac_word=$2
3907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3908$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003909if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003910 $as_echo_n "(cached) " >&6
3911else
3912 if test -n "$STRIP"; then
3913 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3914else
3915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3916for as_dir in $PATH
3917do
3918 IFS=$as_save_IFS
3919 test -z "$as_dir" && as_dir=.
3920 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003922 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3924 break 2
3925 fi
3926done
3927 done
3928IFS=$as_save_IFS
3929
3930fi
3931fi
3932STRIP=$ac_cv_prog_STRIP
3933if test -n "$STRIP"; then
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3935$as_echo "$STRIP" >&6; }
3936else
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3938$as_echo "no" >&6; }
3939fi
3940
3941
3942fi
3943if test -z "$ac_cv_prog_STRIP"; then
3944 ac_ct_STRIP=$STRIP
3945 # Extract the first word of "strip", so it can be a program name with args.
3946set dummy strip; ac_word=$2
3947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3948$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003949if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003950 $as_echo_n "(cached) " >&6
3951else
3952 if test -n "$ac_ct_STRIP"; then
3953 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3954else
3955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3956for as_dir in $PATH
3957do
3958 IFS=$as_save_IFS
3959 test -z "$as_dir" && as_dir=.
3960 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003962 ac_cv_prog_ac_ct_STRIP="strip"
3963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3964 break 2
3965 fi
3966done
3967 done
3968IFS=$as_save_IFS
3969
3970fi
3971fi
3972ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3973if test -n "$ac_ct_STRIP"; then
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3975$as_echo "$ac_ct_STRIP" >&6; }
3976else
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3978$as_echo "no" >&6; }
3979fi
3980
3981 if test "x$ac_ct_STRIP" = x; then
3982 STRIP=":"
3983 else
3984 case $cross_compiling:$ac_tool_warned in
3985yes:)
3986{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3987$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3988ac_tool_warned=yes ;;
3989esac
3990 STRIP=$ac_ct_STRIP
3991 fi
3992else
3993 STRIP="$ac_cv_prog_STRIP"
3994fi
3995
3996fi
3997INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3998
3999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4000$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4001if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00004002 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004003 $as_echo_n "(cached) " >&6
4004else
4005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4006for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4007do
4008 IFS=$as_save_IFS
4009 test -z "$as_dir" && as_dir=.
4010 for ac_prog in mkdir gmkdir; do
4011 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004012 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
cristy73bd4a52010-10-05 11:24:23 +00004013 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4014 'mkdir (GNU coreutils) '* | \
4015 'mkdir (coreutils) '* | \
4016 'mkdir (fileutils) '4.1*)
4017 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4018 break 3;;
4019 esac
4020 done
4021 done
4022 done
4023IFS=$as_save_IFS
4024
4025fi
4026
4027 test -d ./--version && rmdir ./--version
4028 if test "${ac_cv_path_mkdir+set}" = set; then
4029 MKDIR_P="$ac_cv_path_mkdir -p"
4030 else
4031 # As a last resort, use the slow shell script. Don't cache a
4032 # value for MKDIR_P within a source directory, because that will
4033 # break other packages using the cache if that directory is
4034 # removed, or if the value is a relative name.
4035 MKDIR_P="$ac_install_sh -d"
4036 fi
4037fi
4038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4039$as_echo "$MKDIR_P" >&6; }
4040
cristy73bd4a52010-10-05 11:24:23 +00004041for ac_prog in gawk mawk nawk awk
4042do
4043 # Extract the first word of "$ac_prog", so it can be a program name with args.
4044set dummy $ac_prog; ac_word=$2
4045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4046$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004047if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004048 $as_echo_n "(cached) " >&6
4049else
4050 if test -n "$AWK"; then
4051 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4052else
4053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4054for as_dir in $PATH
4055do
4056 IFS=$as_save_IFS
4057 test -z "$as_dir" && as_dir=.
4058 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00004060 ac_cv_prog_AWK="$ac_prog"
4061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4062 break 2
4063 fi
4064done
4065 done
4066IFS=$as_save_IFS
4067
4068fi
4069fi
4070AWK=$ac_cv_prog_AWK
4071if test -n "$AWK"; then
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4073$as_echo "$AWK" >&6; }
4074else
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4076$as_echo "no" >&6; }
4077fi
4078
4079
4080 test -n "$AWK" && break
4081done
4082
4083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4084$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4085set x ${MAKE-make}
4086ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00004087if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004088 $as_echo_n "(cached) " >&6
4089else
4090 cat >conftest.make <<\_ACEOF
4091SHELL = /bin/sh
4092all:
4093 @echo '@@@%%%=$(MAKE)=@@@%%%'
4094_ACEOF
cristy98dddb52010-11-04 00:30:15 +00004095# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00004096case `${MAKE-make} -f conftest.make 2>/dev/null` in
4097 *@@@%%%=?*=@@@%%%*)
4098 eval ac_cv_prog_make_${ac_make}_set=yes;;
4099 *)
4100 eval ac_cv_prog_make_${ac_make}_set=no;;
4101esac
4102rm -f conftest.make
4103fi
4104if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4106$as_echo "yes" >&6; }
4107 SET_MAKE=
4108else
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4110$as_echo "no" >&6; }
4111 SET_MAKE="MAKE=${MAKE-make}"
4112fi
4113
4114rm -rf .tst 2>/dev/null
4115mkdir .tst 2>/dev/null
4116if test -d .tst; then
4117 am__leading_dot=.
4118else
4119 am__leading_dot=_
4120fi
4121rmdir .tst 2>/dev/null
4122
cristya448bd22011-10-14 12:38:13 +00004123# Check whether --enable-silent-rules was given.
4124if test "${enable_silent_rules+set}" = set; then :
4125 enableval=$enable_silent_rules;
4126fi
4127
cristyc0890a62012-07-19 00:18:20 +00004128case $enable_silent_rules in # (((
4129 yes) AM_DEFAULT_VERBOSITY=0;;
4130 no) AM_DEFAULT_VERBOSITY=1;;
4131 *) AM_DEFAULT_VERBOSITY=1;;
cristya448bd22011-10-14 12:38:13 +00004132esac
cristyc3fb77b2012-02-06 01:49:41 +00004133am_make=${MAKE-make}
4134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4135$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4136if ${am_cv_make_support_nested_variables+:} false; then :
4137 $as_echo_n "(cached) " >&6
4138else
4139 if $as_echo 'TRUE=$(BAR$(V))
4140BAR0=false
4141BAR1=true
4142V=1
4143am__doit:
4144 @$(TRUE)
4145.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4146 am_cv_make_support_nested_variables=yes
4147else
4148 am_cv_make_support_nested_variables=no
4149fi
4150fi
4151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4152$as_echo "$am_cv_make_support_nested_variables" >&6; }
4153if test $am_cv_make_support_nested_variables = yes; then
4154 AM_V='$(V)'
4155 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4156else
4157 AM_V=$AM_DEFAULT_VERBOSITY
4158 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4159fi
cristya448bd22011-10-14 12:38:13 +00004160AM_BACKSLASH='\'
4161
cristy73bd4a52010-10-05 11:24:23 +00004162if test "`cd $srcdir && pwd`" != "`pwd`"; then
4163 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4164 # is not polluted with repeated "-I."
4165 am__isrc=' -I$(srcdir)'
4166 # test to see if srcdir already configured
4167 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00004168 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00004169 fi
4170fi
4171
4172# test whether we have cygpath
4173if test -z "$CYGPATH_W"; then
4174 if (cygpath --version) >/dev/null 2>/dev/null; then
4175 CYGPATH_W='cygpath -w'
4176 else
4177 CYGPATH_W=echo
4178 fi
4179fi
4180
4181
4182# Define the identity of the package.
cristy09b53e12011-10-14 12:47:22 +00004183 PACKAGE='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +00004184 VERSION='7.0.0-0'
cristy73bd4a52010-10-05 11:24:23 +00004185
4186
cristya448bd22011-10-14 12:38:13 +00004187cat >>confdefs.h <<_ACEOF
4188#define PACKAGE "$PACKAGE"
4189_ACEOF
4190
4191
4192cat >>confdefs.h <<_ACEOF
4193#define VERSION "$VERSION"
4194_ACEOF
4195
cristy73bd4a52010-10-05 11:24:23 +00004196# Some tools Automake needs.
4197
4198ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4199
4200
4201AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4202
4203
4204AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4205
4206
4207AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4208
4209
4210MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4211
cristyc0890a62012-07-19 00:18:20 +00004212# For better backward compatibility. To be removed once Automake 1.9.x
4213# dies out for good. For more background, see:
4214# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4215# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4216mkdir_p='$(MKDIR_P)'
4217
cristyead532a2015-06-05 00:49:30 +00004218# We need awk for the "check" target (and possibly the TAP driver). The
4219# system "awk" is bad on some platforms.
cristyc3fb77b2012-02-06 01:49:41 +00004220# Always define AMTAR for backward compatibility. Yes, it's still used
4221# in the wild :-( We should find a proper way to deprecate it ...
4222AMTAR='$${TAR-tar}'
cristy73bd4a52010-10-05 11:24:23 +00004223
cristye69bdbe2013-05-03 21:40:44 +00004224
4225# We'll loop over all known methods to create a tar archive until one works.
4226_am_tools='gnutar pax cpio none'
4227
cristyc3fb77b2012-02-06 01:49:41 +00004228am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
cristy73bd4a52010-10-05 11:24:23 +00004229
4230
4231
4232
4233
cristy3ed852e2009-09-05 21:47:34 +00004234
cristya5bda012013-11-03 18:05:38 +00004235# POSIX will say in a future version that running "rm -f" with no argument
4236# is OK; and we want to be able to make that assumption in our Makefile
4237# recipes. So use an aggressive probe to check that the usage we want is
4238# actually supported "in the wild" to an acceptable degree.
4239# See automake bug#10828.
4240# To make any issue more visible, cause the running configure to be aborted
4241# by default if the 'rm' program in use doesn't match our expectations; the
4242# user can still override this though.
4243if rm -f && rm -fr && rm -rf; then : OK; else
4244 cat >&2 <<'END'
4245Oops!
4246
4247Your 'rm' program seems unable to run without file operands specified
4248on the command line, even when the '-f' option is present. This is contrary
4249to the behaviour of most rm programs out there, and not conforming with
4250the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4251
4252Please tell bug-automake@gnu.org about your system, including the value
4253of your $PATH and any error possibly output before this message. This
4254can help us improve future automake versions.
4255
4256END
4257 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4258 echo 'Configuration will proceed anyway, since you have set the' >&2
4259 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4260 echo >&2
4261 else
4262 cat >&2 <<'END'
4263Aborting the configuration process, to ensure you take notice of the issue.
4264
4265You can download and install GNU coreutils to get an 'rm' implementation
4266that behaves properly: <http://www.gnu.org/software/coreutils/>.
4267
4268If you want to complete the configuration process using your problematic
4269'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4270to "yes", and re-run configure.
4271
4272END
4273 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4274 fi
4275fi
cristyead532a2015-06-05 00:49:30 +00004276
cristy73bd4a52010-10-05 11:24:23 +00004277# Check whether --enable-silent-rules was given.
4278if test "${enable_silent_rules+set}" = set; then :
4279 enableval=$enable_silent_rules;
4280fi
4281
cristyc0890a62012-07-19 00:18:20 +00004282case $enable_silent_rules in # (((
4283 yes) AM_DEFAULT_VERBOSITY=0;;
4284 no) AM_DEFAULT_VERBOSITY=1;;
4285 *) AM_DEFAULT_VERBOSITY=0;;
cristy73bd4a52010-10-05 11:24:23 +00004286esac
cristyc3fb77b2012-02-06 01:49:41 +00004287am_make=${MAKE-make}
4288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4289$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4290if ${am_cv_make_support_nested_variables+:} false; then :
4291 $as_echo_n "(cached) " >&6
4292else
4293 if $as_echo 'TRUE=$(BAR$(V))
4294BAR0=false
4295BAR1=true
4296V=1
4297am__doit:
4298 @$(TRUE)
4299.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4300 am_cv_make_support_nested_variables=yes
4301else
4302 am_cv_make_support_nested_variables=no
4303fi
4304fi
4305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4306$as_echo "$am_cv_make_support_nested_variables" >&6; }
4307if test $am_cv_make_support_nested_variables = yes; then
4308 AM_V='$(V)'
4309 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4310else
4311 AM_V=$AM_DEFAULT_VERBOSITY
4312 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4313fi
cristy73bd4a52010-10-05 11:24:23 +00004314AM_BACKSLASH='\'
4315
cristy3ed852e2009-09-05 21:47:34 +00004316
cristy9af1cbf2014-12-28 22:03:09 +00004317#
4318# Save initial user-tunable values
4319#
4320USER_LIBS=$LIBS
4321for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
4322 eval isset=\${$var+set}
4323 if test "$isset" = 'set'; then
4324 eval val=$`echo $var`
4325 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
4326 fi
4327done
4328
4329
4330CONFIGURE_ARGS="$0 ${ac_configure_args}"
4331
4332
cristy187791c2015-05-03 22:17:00 +00004333# Check whether --enable-reproducible-build was given.
4334if test "${enable_reproducible_build+set}" = set; then :
4335 enableval=$enable_reproducible_build; enable_reproducible_build=$enableval
4336else
4337 enable_reproducible_build='no'
4338fi
4339
4340
cristy9af1cbf2014-12-28 22:03:09 +00004341# Source file containing package/library versioning information.
4342. ${srcdir}/version.sh
4343
4344echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
4345
4346MAGICK_TARGET_CPU=$host_cpu
4347
4348
4349cat >>confdefs.h <<_ACEOF
4350#define MAGICK_TARGET_CPU $MAGICK_TARGET_CPU
4351_ACEOF
4352
4353
4354MAGICK_TARGET_VENDOR=$host_vendor
4355
4356
4357cat >>confdefs.h <<_ACEOF
4358#define MAGICK_TARGET_VENDOR $MAGICK_TARGET_VENDOR
4359_ACEOF
4360
4361
4362MAGICK_TARGET_OS=$host_os
4363
4364
4365cat >>confdefs.h <<_ACEOF
4366#define MAGICK_TARGET_OS $MAGICK_TARGET_OS
4367_ACEOF
4368
4369
4370
4371# Substitute versioning
4372MAGICK_MAJOR_VERSION=7
4373
4374MAGICK_MINOR_VERSION=0
4375
4376MAGICK_MICRO_VERSION=0
4377
4378MAGICK_PATCHLEVEL_VERSION=0
4379
4380MAGICK_VERSION=7.0.0-0
4381
Cristy3ed42c82015-08-09 09:49:43 -04004382MAGICK_SVN_REVISION=Unversioned
cristy9af1cbf2014-12-28 22:03:09 +00004383
4384
4385# Substitute library versioning
4386MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
4387
4388MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
4389
4390
4391MAGICKPP_LIBRARY_CURRENT_MIN=`expr $MAGICKPP_LIBRARY_CURRENT - $MAGICKPP_LIBRARY_AGE`
4392
4393MAGICKPP_LIBRARY_VERSION_INFO=$MAGICKPP_LIBRARY_CURRENT:$MAGICKPP_LIBRARY_REVISION:$MAGICKPP_LIBRARY_AGE
4394
4395
cristy187791c2015-05-03 22:17:00 +00004396if test X$enable_reproducible_build = Xyes; then :
4397 PACKAGE_RELEASE_DATE=$PACKAGE_RELEASE_DATE_REPRODUCIBLE
4398elif PACKAGE_RELEASE_DATE=$PACKAGE_RELEASE_DATE_RAW; then :
4399
4400fi
4401
cristy9af1cbf2014-12-28 22:03:09 +00004402
4403# Ensure that make can run correctly
4404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4405$as_echo_n "checking whether build environment is sane... " >&6; }
4406# Reject unsafe characters in $srcdir or the absolute working directory
4407# name. Accept space and tab only in the latter.
4408am_lf='
4409'
4410case `pwd` in
4411 *[\\\"\#\$\&\'\`$am_lf]*)
4412 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4413esac
4414case $srcdir in
4415 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4416 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4417esac
4418
4419# Do 'set' in a subshell so we don't clobber the current shell's
4420# arguments. Must try -L first in case configure is actually a
4421# symlink; some systems play weird games with the mod time of symlinks
4422# (eg FreeBSD returns the mod time of the symlink's containing
4423# directory).
4424if (
4425 am_has_slept=no
4426 for am_try in 1 2; do
4427 echo "timestamp, slept: $am_has_slept" > conftest.file
4428 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4429 if test "$*" = "X"; then
4430 # -L didn't work.
4431 set X `ls -t "$srcdir/configure" conftest.file`
4432 fi
4433 if test "$*" != "X $srcdir/configure conftest.file" \
4434 && test "$*" != "X conftest.file $srcdir/configure"; then
4435
4436 # If neither matched, then we have a broken ls. This can happen
4437 # if, for instance, CONFIG_SHELL is bash and it inherits a
4438 # broken ls alias from the environment. This has actually
4439 # happened. Such a system could not be considered "sane".
4440 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4441 alias in your environment" "$LINENO" 5
4442 fi
4443 if test "$2" = conftest.file || test $am_try -eq 2; then
4444 break
4445 fi
4446 # Just in case.
4447 sleep 1
4448 am_has_slept=yes
4449 done
4450 test "$2" = conftest.file
4451 )
4452then
4453 # Ok.
4454 :
4455else
4456 as_fn_error $? "newly created file is older than distributed files!
4457Check your system clock" "$LINENO" 5
4458fi
4459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4460$as_echo "yes" >&6; }
4461# If we didn't sleep, we still need to ensure time stamps of config.status and
4462# generated files are strictly newer.
4463am_sleep_pid=
4464if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4465 ( sleep 1 ) &
4466 am_sleep_pid=$!
4467fi
4468
4469rm -f conftest.file
4470
4471
cristyf279b692014-08-13 12:01:27 +00004472# versioning of library
cristy3ed852e2009-09-05 21:47:34 +00004473MAGICK_LIB_VERSION="0x"
4474if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4475 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4476fi
4477MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4478if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4479 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4480fi
4481MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4482if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4483 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4484fi
4485MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4486
4487
4488# Definition used to define MagickLibVersionText in version.h
4489MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4490
4491
4492# Definition used to define MagickLibVersionNumber in version.h
4493MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4494
4495
cristy5ed9c6e2013-07-14 21:20:31 +00004496MAGICKPP_LIB_VERSION="0x"
4497if test ${MAGICKPP_LIBRARY_CURRENT} -lt 10 ; then
4498 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4499fi
4500MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_CURRENT}
4501if test ${MAGICKPP_LIBRARY_AGE} -lt 10 ; then
4502 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4503fi
4504MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_AGE}
4505if test ${MAGICKPP_LIBRARY_REVISION} -lt 10 ; then
4506 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4507fi
4508MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_REVISION}
4509
4510
4511# Definition used to define MagickLibVersionText in version.h
4512MAGICKPP_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4513
4514
4515# Definition used to define MagickLibVersionNumber in version.h
4516MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4517
4518
4519
4520
cristy3ed852e2009-09-05 21:47:34 +00004521# Regenerate config.status if ChangeLog or version.sh is updated.
4522CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4523
4524
4525PERLMAINCC=$CC
4526
4527MAGICK_CFLAGS=''
4528MAGICK_CPPFLAGS=$CPPFLAGS_USER
4529MAGICK_PCFLAGS=$CPPFLAGS_USER
4530MAGICK_LDFLAGS=''
4531MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00004532MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00004533
4534#
4535# Evaluate shell variable equivalents to Makefile directory variables
4536#
4537if test "x$prefix" = xNONE; then
4538 prefix=$ac_default_prefix
4539fi
4540# Let make expand exec_prefix.
4541if test "x$exec_prefix" = xNONE; then
4542 exec_prefix='${prefix}'
4543fi
4544
4545#
4546eval "eval PREFIX_DIR=${prefix}"
4547
4548eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4549
4550eval "eval BIN_DIR=$bindir"
4551
4552eval "eval SBIN_DIR=$sbindir"
4553
4554eval "eval LIBEXEC_DIR=$libexecdir"
4555
4556eval "eval DATA_DIR=$datadir"
4557
cristy4e65ec22012-04-08 01:33:27 +00004558eval "eval DOC_DIR=$datadir/doc"
cristyd55889c2011-03-27 00:50:24 +00004559
cristy3ed852e2009-09-05 21:47:34 +00004560eval "eval SYSCONF_DIR=$sysconfdir"
4561
4562eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4563
4564eval "eval LOCALSTATE_DIR=$localstatedir"
4565
4566eval "eval LIB_DIR=$libdir"
4567
4568eval "eval INCLUDE_DIR=$includedir"
4569
4570eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4571
4572eval "eval INFO_DIR=$infodir"
4573
4574eval "eval MAN_DIR=$mandir"
4575
4576
4577# Get full paths to source and build directories
4578srcdirfull="`cd $srcdir && pwd`"
4579builddir="`pwd`"
4580
4581#
4582# Compute variables useful for running uninstalled software.
4583#
4584MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4585MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4586MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4587MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4588DIRSEP=':'
4589case "${build_os}" in
4590 mingw* )
4591 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4592 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4593 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4594 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4595 DIRSEP=';'
4596 ;;
4597esac
4598case "${host_os}" in
4599 mingw* )
4600 DIRSEP=';'
4601 ;;
4602esac
4603
4604
4605
4606
4607
4608
cristya0b81c32010-01-22 02:54:33 +00004609
4610#
4611# Enable OS features.
4612#
cristy73bd4a52010-10-05 11:24:23 +00004613DEPDIR="${am__leading_dot}deps"
4614
4615ac_config_commands="$ac_config_commands depfiles"
4616
4617
4618am_make=${MAKE-make}
4619cat > confinc << 'END'
4620am__doit:
4621 @echo this is the am__doit target
4622.PHONY: am__doit
4623END
4624# If we don't find an include directive, just comment out the code.
4625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4626$as_echo_n "checking for style of include used by $am_make... " >&6; }
4627am__include="#"
4628am__quote=
4629_am_result=none
4630# First try GNU make style include.
4631echo "include confinc" > confmf
cristyc0890a62012-07-19 00:18:20 +00004632# Ignore all kinds of additional output from 'make'.
cristy73bd4a52010-10-05 11:24:23 +00004633case `$am_make -s -f confmf 2> /dev/null` in #(
4634*the\ am__doit\ target*)
4635 am__include=include
4636 am__quote=
4637 _am_result=GNU
4638 ;;
4639esac
4640# Now try BSD make style include.
4641if test "$am__include" = "#"; then
4642 echo '.include "confinc"' > confmf
4643 case `$am_make -s -f confmf 2> /dev/null` in #(
4644 *the\ am__doit\ target*)
4645 am__include=.include
4646 am__quote="\""
4647 _am_result=BSD
4648 ;;
4649 esac
4650fi
4651
4652
4653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4654$as_echo "$_am_result" >&6; }
4655rm -f confinc confmf
4656
4657# Check whether --enable-dependency-tracking was given.
4658if test "${enable_dependency_tracking+set}" = set; then :
4659 enableval=$enable_dependency_tracking;
4660fi
4661
4662if test "x$enable_dependency_tracking" != xno; then
4663 am_depcomp="$ac_aux_dir/depcomp"
4664 AMDEPBACKSLASH='\'
cristy7247bba2012-02-05 16:37:27 +00004665 am__nodep='_no'
cristy73bd4a52010-10-05 11:24:23 +00004666fi
4667 if test "x$enable_dependency_tracking" != xno; then
4668 AMDEP_TRUE=
4669 AMDEP_FALSE='#'
4670else
4671 AMDEP_TRUE='#'
4672 AMDEP_FALSE=
4673fi
4674
4675
cristy3ed852e2009-09-05 21:47:34 +00004676ac_ext=c
4677ac_cpp='$CPP $CPPFLAGS'
4678ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4679ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4680ac_compiler_gnu=$ac_cv_c_compiler_gnu
4681if test -n "$ac_tool_prefix"; then
4682 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4683set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004685$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004686if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004687 $as_echo_n "(cached) " >&6
4688else
4689 if test -n "$CC"; then
4690 ac_cv_prog_CC="$CC" # Let the user override the test.
4691else
4692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4693for as_dir in $PATH
4694do
4695 IFS=$as_save_IFS
4696 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004697 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004699 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004701 break 2
4702 fi
4703done
cristy8b350f62009-11-15 23:12:43 +00004704 done
cristy3ed852e2009-09-05 21:47:34 +00004705IFS=$as_save_IFS
4706
4707fi
4708fi
4709CC=$ac_cv_prog_CC
4710if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004712$as_echo "$CC" >&6; }
4713else
cristy8b350f62009-11-15 23:12:43 +00004714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004715$as_echo "no" >&6; }
4716fi
4717
4718
4719fi
4720if test -z "$ac_cv_prog_CC"; then
4721 ac_ct_CC=$CC
4722 # Extract the first word of "gcc", so it can be a program name with args.
4723set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004725$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004726if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004727 $as_echo_n "(cached) " >&6
4728else
4729 if test -n "$ac_ct_CC"; then
4730 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4731else
4732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4733for as_dir in $PATH
4734do
4735 IFS=$as_save_IFS
4736 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004737 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004739 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004741 break 2
4742 fi
4743done
cristy8b350f62009-11-15 23:12:43 +00004744 done
cristy3ed852e2009-09-05 21:47:34 +00004745IFS=$as_save_IFS
4746
4747fi
4748fi
4749ac_ct_CC=$ac_cv_prog_ac_ct_CC
4750if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004752$as_echo "$ac_ct_CC" >&6; }
4753else
cristy8b350f62009-11-15 23:12:43 +00004754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004755$as_echo "no" >&6; }
4756fi
4757
4758 if test "x$ac_ct_CC" = x; then
4759 CC=""
4760 else
4761 case $cross_compiling:$ac_tool_warned in
4762yes:)
cristy8b350f62009-11-15 23:12:43 +00004763{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004764$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4765ac_tool_warned=yes ;;
4766esac
4767 CC=$ac_ct_CC
4768 fi
4769else
4770 CC="$ac_cv_prog_CC"
4771fi
4772
4773if test -z "$CC"; then
4774 if test -n "$ac_tool_prefix"; then
4775 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4776set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004778$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004779if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004780 $as_echo_n "(cached) " >&6
4781else
4782 if test -n "$CC"; then
4783 ac_cv_prog_CC="$CC" # Let the user override the test.
4784else
4785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4786for as_dir in $PATH
4787do
4788 IFS=$as_save_IFS
4789 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004790 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004792 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004794 break 2
4795 fi
4796done
cristy8b350f62009-11-15 23:12:43 +00004797 done
cristy3ed852e2009-09-05 21:47:34 +00004798IFS=$as_save_IFS
4799
4800fi
4801fi
4802CC=$ac_cv_prog_CC
4803if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004805$as_echo "$CC" >&6; }
4806else
cristy8b350f62009-11-15 23:12:43 +00004807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004808$as_echo "no" >&6; }
4809fi
4810
4811
4812 fi
4813fi
4814if test -z "$CC"; then
4815 # Extract the first word of "cc", so it can be a program name with args.
4816set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004818$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004819if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004820 $as_echo_n "(cached) " >&6
4821else
4822 if test -n "$CC"; then
4823 ac_cv_prog_CC="$CC" # Let the user override the test.
4824else
4825 ac_prog_rejected=no
4826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4827for as_dir in $PATH
4828do
4829 IFS=$as_save_IFS
4830 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004831 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004833 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4834 ac_prog_rejected=yes
4835 continue
4836 fi
4837 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004839 break 2
4840 fi
4841done
cristy8b350f62009-11-15 23:12:43 +00004842 done
cristy3ed852e2009-09-05 21:47:34 +00004843IFS=$as_save_IFS
4844
4845if test $ac_prog_rejected = yes; then
4846 # We found a bogon in the path, so make sure we never use it.
4847 set dummy $ac_cv_prog_CC
4848 shift
4849 if test $# != 0; then
4850 # We chose a different compiler from the bogus one.
4851 # However, it has the same basename, so the bogon will be chosen
4852 # first if we set CC to just the basename; use the full file name.
4853 shift
4854 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4855 fi
4856fi
4857fi
4858fi
4859CC=$ac_cv_prog_CC
4860if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004862$as_echo "$CC" >&6; }
4863else
cristy8b350f62009-11-15 23:12:43 +00004864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004865$as_echo "no" >&6; }
4866fi
4867
4868
4869fi
4870if test -z "$CC"; then
4871 if test -n "$ac_tool_prefix"; then
4872 for ac_prog in cl.exe
4873 do
4874 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4875set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004877$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004878if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004879 $as_echo_n "(cached) " >&6
4880else
4881 if test -n "$CC"; then
4882 ac_cv_prog_CC="$CC" # Let the user override the test.
4883else
4884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4885for as_dir in $PATH
4886do
4887 IFS=$as_save_IFS
4888 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004889 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004891 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004893 break 2
4894 fi
4895done
cristy8b350f62009-11-15 23:12:43 +00004896 done
cristy3ed852e2009-09-05 21:47:34 +00004897IFS=$as_save_IFS
4898
4899fi
4900fi
4901CC=$ac_cv_prog_CC
4902if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004904$as_echo "$CC" >&6; }
4905else
cristy8b350f62009-11-15 23:12:43 +00004906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004907$as_echo "no" >&6; }
4908fi
4909
4910
4911 test -n "$CC" && break
4912 done
4913fi
4914if test -z "$CC"; then
4915 ac_ct_CC=$CC
4916 for ac_prog in cl.exe
4917do
4918 # Extract the first word of "$ac_prog", so it can be a program name with args.
4919set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004921$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004922if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004923 $as_echo_n "(cached) " >&6
4924else
4925 if test -n "$ac_ct_CC"; then
4926 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4927else
4928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4929for as_dir in $PATH
4930do
4931 IFS=$as_save_IFS
4932 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004933 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004935 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004937 break 2
4938 fi
4939done
cristy8b350f62009-11-15 23:12:43 +00004940 done
cristy3ed852e2009-09-05 21:47:34 +00004941IFS=$as_save_IFS
4942
4943fi
4944fi
4945ac_ct_CC=$ac_cv_prog_ac_ct_CC
4946if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004948$as_echo "$ac_ct_CC" >&6; }
4949else
cristy8b350f62009-11-15 23:12:43 +00004950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004951$as_echo "no" >&6; }
4952fi
4953
4954
4955 test -n "$ac_ct_CC" && break
4956done
4957
4958 if test "x$ac_ct_CC" = x; then
4959 CC=""
4960 else
4961 case $cross_compiling:$ac_tool_warned in
4962yes:)
cristy8b350f62009-11-15 23:12:43 +00004963{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004964$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4965ac_tool_warned=yes ;;
4966esac
4967 CC=$ac_ct_CC
4968 fi
4969fi
4970
4971fi
4972
4973
cristy8b350f62009-11-15 23:12:43 +00004974test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004975$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004976as_fn_error $? "no acceptable C compiler found in \$PATH
4977See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004978
4979# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004980$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004981set X $ac_compile
4982ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004983for ac_option in --version -v -V -qversion; do
4984 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004985case "(($ac_try" in
4986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4987 *) ac_try_echo=$ac_try;;
4988esac
cristy8b350f62009-11-15 23:12:43 +00004989eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4990$as_echo "$ac_try_echo"; } >&5
4991 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004992 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004993 if test -s conftest.err; then
4994 sed '10a\
4995... rest of stderr output deleted ...
4996 10q' conftest.err >conftest.er1
4997 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004998 fi
cristycd4c5312009-11-22 01:19:08 +00004999 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00005000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5001 test $ac_status = 0; }
5002done
cristy3ed852e2009-09-05 21:47:34 +00005003
cristy8b350f62009-11-15 23:12:43 +00005004cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005005/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00005006
cristy3ed852e2009-09-05 21:47:34 +00005007int
5008main ()
5009{
5010
5011 ;
5012 return 0;
5013}
5014_ACEOF
5015ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00005016ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00005017# Try to create an executable without -o first, disregard a.out.
5018# It will help us diagnose broken compilers, and finding out an intuition
5019# of exeext.
cristycd4c5312009-11-22 01:19:08 +00005020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5021$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00005022ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5023
5024# The possible output files:
5025ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5026
5027ac_rmfiles=
5028for ac_file in $ac_files
5029do
5030 case $ac_file in
5031 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5032 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5033 esac
5034done
5035rm -f $ac_rmfiles
5036
cristy8b350f62009-11-15 23:12:43 +00005037if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00005038case "(($ac_try" in
5039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5040 *) ac_try_echo=$ac_try;;
5041esac
cristy8b350f62009-11-15 23:12:43 +00005042eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5043$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00005044 (eval "$ac_link_default") 2>&5
5045 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00005046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5047 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00005048 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5049# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5050# in a Makefile. We should not override ac_cv_exeext if it was cached,
5051# so that the user can short-circuit this test for compilers unknown to
5052# Autoconf.
5053for ac_file in $ac_files ''
5054do
5055 test -f "$ac_file" || continue
5056 case $ac_file in
5057 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5058 ;;
5059 [ab].out )
5060 # We found the default executable, but exeext='' is most
5061 # certainly right.
5062 break;;
5063 *.* )
cristy8b350f62009-11-15 23:12:43 +00005064 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00005065 then :; else
5066 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5067 fi
5068 # We set ac_cv_exeext here because the later test for it is not
5069 # safe: cross compilers may not add the suffix if given an `-o'
5070 # argument, so we may need to know it at that point already.
5071 # Even if this section looks crufty: it has the advantage of
5072 # actually working.
5073 break;;
5074 * )
5075 break;;
5076 esac
5077done
5078test "$ac_cv_exeext" = no && ac_cv_exeext=
5079
5080else
5081 ac_file=''
5082fi
cristy8b350f62009-11-15 23:12:43 +00005083if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00005084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5085$as_echo "no" >&6; }
5086$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00005087sed 's/^/| /' conftest.$ac_ext >&5
5088
cristy8b350f62009-11-15 23:12:43 +00005089{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005090$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005091as_fn_error 77 "C compiler cannot create executables
5092See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00005093else
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5095$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00005096fi
cristycd4c5312009-11-22 01:19:08 +00005097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5098$as_echo_n "checking for C compiler default output file name... " >&6; }
5099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5100$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00005101ac_exeext=$ac_cv_exeext
5102
cristycd4c5312009-11-22 01:19:08 +00005103rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00005104ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00005105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00005106$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00005107if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00005108case "(($ac_try" in
5109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5110 *) ac_try_echo=$ac_try;;
5111esac
cristy8b350f62009-11-15 23:12:43 +00005112eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5113$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00005114 (eval "$ac_link") 2>&5
5115 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00005116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5117 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00005118 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5119# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5120# work properly (i.e., refer to `conftest.exe'), while it won't with
5121# `rm'.
5122for ac_file in conftest.exe conftest conftest.*; do
5123 test -f "$ac_file" || continue
5124 case $ac_file in
5125 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5126 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5127 break;;
5128 * ) break;;
5129 esac
5130done
5131else
cristy8b350f62009-11-15 23:12:43 +00005132 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005133$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005134as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5135See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00005136fi
cristycd4c5312009-11-22 01:19:08 +00005137rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00005138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00005139$as_echo "$ac_cv_exeext" >&6; }
5140
5141rm -f conftest.$ac_ext
5142EXEEXT=$ac_cv_exeext
5143ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00005144cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5145/* end confdefs.h. */
5146#include <stdio.h>
5147int
5148main ()
5149{
5150FILE *f = fopen ("conftest.out", "w");
5151 return ferror (f) || fclose (f) != 0;
5152
5153 ;
5154 return 0;
5155}
5156_ACEOF
5157ac_clean_files="$ac_clean_files conftest.out"
5158# Check that the compiler produces executables we can run. If not, either
5159# the compiler is broken, or we cross compile.
5160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5161$as_echo_n "checking whether we are cross compiling... " >&6; }
5162if test "$cross_compiling" != yes; then
5163 { { ac_try="$ac_link"
5164case "(($ac_try" in
5165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5166 *) ac_try_echo=$ac_try;;
5167esac
5168eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5169$as_echo "$ac_try_echo"; } >&5
5170 (eval "$ac_link") 2>&5
5171 ac_status=$?
5172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5173 test $ac_status = 0; }
5174 if { ac_try='./conftest$ac_cv_exeext'
5175 { { case "(($ac_try" in
5176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5177 *) ac_try_echo=$ac_try;;
5178esac
5179eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5180$as_echo "$ac_try_echo"; } >&5
5181 (eval "$ac_try") 2>&5
5182 ac_status=$?
5183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5184 test $ac_status = 0; }; }; then
5185 cross_compiling=no
5186 else
5187 if test "$cross_compiling" = maybe; then
5188 cross_compiling=yes
5189 else
5190 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5191$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005192as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00005193If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00005194See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00005195 fi
5196 fi
5197fi
5198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5199$as_echo "$cross_compiling" >&6; }
5200
5201rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5202ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00005203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00005204$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005205if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005206 $as_echo_n "(cached) " >&6
5207else
cristy8b350f62009-11-15 23:12:43 +00005208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005209/* end confdefs.h. */
5210
5211int
5212main ()
5213{
5214
5215 ;
5216 return 0;
5217}
5218_ACEOF
5219rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00005220if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00005221case "(($ac_try" in
5222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5223 *) ac_try_echo=$ac_try;;
5224esac
cristy8b350f62009-11-15 23:12:43 +00005225eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5226$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00005227 (eval "$ac_compile") 2>&5
5228 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00005229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5230 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00005231 for ac_file in conftest.o conftest.obj conftest.*; do
5232 test -f "$ac_file" || continue;
5233 case $ac_file in
5234 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5235 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5236 break;;
5237 esac
5238done
5239else
5240 $as_echo "$as_me: failed program was:" >&5
5241sed 's/^/| /' conftest.$ac_ext >&5
5242
cristy8b350f62009-11-15 23:12:43 +00005243{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005244$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005245as_fn_error $? "cannot compute suffix of object files: cannot compile
5246See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00005247fi
cristy3ed852e2009-09-05 21:47:34 +00005248rm -f conftest.$ac_cv_objext conftest.$ac_ext
5249fi
cristy8b350f62009-11-15 23:12:43 +00005250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00005251$as_echo "$ac_cv_objext" >&6; }
5252OBJEXT=$ac_cv_objext
5253ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00005254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00005255$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005256if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005257 $as_echo_n "(cached) " >&6
5258else
cristy8b350f62009-11-15 23:12:43 +00005259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005260/* end confdefs.h. */
5261
5262int
5263main ()
5264{
5265#ifndef __GNUC__
5266 choke me
5267#endif
5268
5269 ;
5270 return 0;
5271}
5272_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005273if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005274 ac_compiler_gnu=yes
5275else
cristy8b350f62009-11-15 23:12:43 +00005276 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00005277fi
cristy3ed852e2009-09-05 21:47:34 +00005278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5279ac_cv_c_compiler_gnu=$ac_compiler_gnu
5280
5281fi
cristy8b350f62009-11-15 23:12:43 +00005282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00005283$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5284if test $ac_compiler_gnu = yes; then
5285 GCC=yes
5286else
5287 GCC=
5288fi
5289ac_test_CFLAGS=${CFLAGS+set}
5290ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00005291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005292$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005293if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005294 $as_echo_n "(cached) " >&6
5295else
5296 ac_save_c_werror_flag=$ac_c_werror_flag
5297 ac_c_werror_flag=yes
5298 ac_cv_prog_cc_g=no
5299 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005301/* end confdefs.h. */
5302
5303int
5304main ()
5305{
5306
5307 ;
5308 return 0;
5309}
5310_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005311if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005312 ac_cv_prog_cc_g=yes
5313else
cristy8b350f62009-11-15 23:12:43 +00005314 CFLAGS=""
5315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005316/* end confdefs.h. */
5317
5318int
5319main ()
5320{
5321
5322 ;
5323 return 0;
5324}
5325_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005326if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005327
cristy8b350f62009-11-15 23:12:43 +00005328else
5329 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00005330 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005332/* end confdefs.h. */
5333
5334int
5335main ()
5336{
5337
5338 ;
5339 return 0;
5340}
5341_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005342if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005343 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00005344fi
cristy3ed852e2009-09-05 21:47:34 +00005345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5346fi
cristy3ed852e2009-09-05 21:47:34 +00005347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5348fi
cristy3ed852e2009-09-05 21:47:34 +00005349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5350 ac_c_werror_flag=$ac_save_c_werror_flag
5351fi
cristy8b350f62009-11-15 23:12:43 +00005352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005353$as_echo "$ac_cv_prog_cc_g" >&6; }
5354if test "$ac_test_CFLAGS" = set; then
5355 CFLAGS=$ac_save_CFLAGS
5356elif test $ac_cv_prog_cc_g = yes; then
5357 if test "$GCC" = yes; then
5358 CFLAGS="-g -O2"
5359 else
5360 CFLAGS="-g"
5361 fi
5362else
5363 if test "$GCC" = yes; then
5364 CFLAGS="-O2"
5365 else
5366 CFLAGS=
5367 fi
5368fi
cristy8b350f62009-11-15 23:12:43 +00005369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005370$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005371if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005372 $as_echo_n "(cached) " >&6
5373else
5374 ac_cv_prog_cc_c89=no
5375ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00005376cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005377/* end confdefs.h. */
5378#include <stdarg.h>
5379#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00005380struct stat;
cristy3ed852e2009-09-05 21:47:34 +00005381/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5382struct buf { int x; };
5383FILE * (*rcsopen) (struct buf *, struct stat *, int);
5384static char *e (p, i)
5385 char **p;
5386 int i;
5387{
5388 return p[i];
5389}
5390static char *f (char * (*g) (char **, int), char **p, ...)
5391{
5392 char *s;
5393 va_list v;
5394 va_start (v,p);
5395 s = g (p, va_arg (v,int));
5396 va_end (v);
5397 return s;
5398}
5399
5400/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5401 function prototypes and stuff, but not '\xHH' hex character constants.
5402 These don't provoke an error unfortunately, instead are silently treated
5403 as 'x'. The following induces an error, until -std is added to get
5404 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5405 array size at least. It's necessary to write '\x00'==0 to get something
5406 that's true only with -std. */
5407int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5408
5409/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5410 inside strings and character constants. */
5411#define FOO(x) 'x'
5412int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5413
5414int test (int i, double x);
5415struct s1 {int (*f) (int a);};
5416struct s2 {int (*f) (double a);};
5417int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5418int argc;
5419char **argv;
5420int
5421main ()
5422{
5423return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5424 ;
5425 return 0;
5426}
5427_ACEOF
5428for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5429 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5430do
5431 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005432 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005433 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005434fi
cristy3ed852e2009-09-05 21:47:34 +00005435rm -f core conftest.err conftest.$ac_objext
5436 test "x$ac_cv_prog_cc_c89" != "xno" && break
5437done
5438rm -f conftest.$ac_ext
5439CC=$ac_save_CC
5440
5441fi
5442# AC_CACHE_VAL
5443case "x$ac_cv_prog_cc_c89" in
5444 x)
cristy8b350f62009-11-15 23:12:43 +00005445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005446$as_echo "none needed" >&6; } ;;
5447 xno)
cristy8b350f62009-11-15 23:12:43 +00005448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005449$as_echo "unsupported" >&6; } ;;
5450 *)
5451 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005453$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5454esac
cristy8b350f62009-11-15 23:12:43 +00005455if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005456
cristy8b350f62009-11-15 23:12:43 +00005457fi
cristy3ed852e2009-09-05 21:47:34 +00005458
5459ac_ext=c
5460ac_cpp='$CPP $CPPFLAGS'
5461ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5462ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5463ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005464
cristya5bda012013-11-03 18:05:38 +00005465ac_ext=c
5466ac_cpp='$CPP $CPPFLAGS'
5467ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5468ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5469ac_compiler_gnu=$ac_cv_c_compiler_gnu
5470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5471$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5472if ${am_cv_prog_cc_c_o+:} false; then :
5473 $as_echo_n "(cached) " >&6
5474else
5475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5476/* end confdefs.h. */
5477
5478int
5479main ()
5480{
5481
5482 ;
5483 return 0;
5484}
5485_ACEOF
5486 # Make sure it works both with $CC and with simple cc.
5487 # Following AC_PROG_CC_C_O, we do the test twice because some
5488 # compilers refuse to overwrite an existing .o file with -o,
5489 # though they will create one.
5490 am_cv_prog_cc_c_o=yes
5491 for am_i in 1 2; do
5492 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5493 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5494 ac_status=$?
5495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496 (exit $ac_status); } \
5497 && test -f conftest2.$ac_objext; then
5498 : OK
5499 else
5500 am_cv_prog_cc_c_o=no
5501 break
5502 fi
5503 done
5504 rm -f core conftest*
5505 unset am_i
5506fi
5507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5508$as_echo "$am_cv_prog_cc_c_o" >&6; }
5509if test "$am_cv_prog_cc_c_o" != yes; then
5510 # Losing compiler, so override with the script.
5511 # FIXME: It is wrong to rewrite CC.
5512 # But if we don't then we get into trouble of one sort or another.
5513 # A longer-term fix would be to have automake use am__CC in this case,
5514 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5515 CC="$am_aux_dir/compile $CC"
5516fi
5517ac_ext=c
5518ac_cpp='$CPP $CPPFLAGS'
5519ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5520ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5521ac_compiler_gnu=$ac_cv_c_compiler_gnu
5522
5523
cristy73bd4a52010-10-05 11:24:23 +00005524depcc="$CC" am_compiler_list=
5525
5526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5527$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005528if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00005529 $as_echo_n "(cached) " >&6
5530else
5531 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5532 # We make a subdir and do the tests there. Otherwise we can end up
5533 # making bogus files that we don't know about and never remove. For
5534 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00005535 # making a dummy file named 'D' -- because '-MD' means "put the output
5536 # in D".
cristy7247bba2012-02-05 16:37:27 +00005537 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00005538 mkdir conftest.dir
5539 # Copy depcomp to subdir because otherwise we won't find it if we're
5540 # using a relative directory.
5541 cp "$am_depcomp" conftest.dir
5542 cd conftest.dir
5543 # We will build objects and dependencies in a subdirectory because
5544 # it helps to detect inapplicable dependency modes. For instance
5545 # both Tru64's cc and ICC support -MD to output dependencies as a
5546 # side effect of compilation, but ICC will put the dependencies in
5547 # the current directory while Tru64 will put them in the object
5548 # directory.
5549 mkdir sub
5550
5551 am_cv_CC_dependencies_compiler_type=none
5552 if test "$am_compiler_list" = ""; then
5553 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5554 fi
5555 am__universal=false
5556 case " $depcc " in #(
5557 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5558 esac
5559
5560 for depmode in $am_compiler_list; do
5561 # Setup a source with many dependencies, because some compilers
5562 # like to wrap large dependency lists on column 80 (with \), and
5563 # we should not choose a depcomp mode which is confused by this.
5564 #
5565 # We need to recreate these files for each test, as the compiler may
5566 # overwrite some of them when testing with obscure command lines.
5567 # This happens at least with the AIX C compiler.
5568 : > sub/conftest.c
5569 for i in 1 2 3 4 5 6; do
5570 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00005571 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5572 # Solaris 10 /bin/sh.
5573 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00005574 done
5575 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5576
cristyc0890a62012-07-19 00:18:20 +00005577 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00005578 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00005579 # handle '-M -o', and we need to detect this. Also, some Intel
5580 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00005581 am__obj=sub/conftest.${OBJEXT-o}
5582 am__minus_obj="-o $am__obj"
5583 case $depmode in
5584 gcc)
5585 # This depmode causes a compiler race in universal mode.
5586 test "$am__universal" = false || continue
5587 ;;
5588 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00005589 # After this tag, mechanisms are not by side-effect, so they'll
5590 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00005591 if test "x$enable_dependency_tracking" = xyes; then
5592 continue
5593 else
5594 break
5595 fi
5596 ;;
cristy7247bba2012-02-05 16:37:27 +00005597 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00005598 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00005599 # not run yet. These depmodes are late enough in the game, and
5600 # so weak that their functioning should not be impacted.
5601 am__obj=conftest.${OBJEXT-o}
5602 am__minus_obj=
5603 ;;
5604 none) break ;;
5605 esac
5606 if depmode=$depmode \
5607 source=sub/conftest.c object=$am__obj \
5608 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5609 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5610 >/dev/null 2>conftest.err &&
5611 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5612 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5613 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5614 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5615 # icc doesn't choke on unknown options, it will just issue warnings
5616 # or remarks (even with -Werror). So we grep stderr for any message
5617 # that says an option was ignored or not supported.
5618 # When given -MP, icc 7.0 and 7.1 complain thusly:
5619 # icc: Command line warning: ignoring option '-M'; no argument required
5620 # The diagnosis changed in icc 8.0:
5621 # icc: Command line remark: option '-MP' not supported
5622 if (grep 'ignoring option' conftest.err ||
5623 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5624 am_cv_CC_dependencies_compiler_type=$depmode
5625 break
5626 fi
5627 fi
5628 done
5629
5630 cd ..
5631 rm -rf conftest.dir
5632else
5633 am_cv_CC_dependencies_compiler_type=none
5634fi
5635
5636fi
5637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5638$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5639CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5640
5641 if
5642 test "x$enable_dependency_tracking" != xno \
5643 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5644 am__fastdepCC_TRUE=
5645 am__fastdepCC_FALSE='#'
5646else
5647 am__fastdepCC_TRUE='#'
5648 am__fastdepCC_FALSE=
5649fi
5650
5651
cristy3ed852e2009-09-05 21:47:34 +00005652
cristya0b81c32010-01-22 02:54:33 +00005653ac_ext=c
5654ac_cpp='$CPP $CPPFLAGS'
5655ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5656ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5657ac_compiler_gnu=$ac_cv_c_compiler_gnu
5658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5659$as_echo_n "checking how to run the C preprocessor... " >&6; }
5660# On Suns, sometimes $CPP names a directory.
5661if test -n "$CPP" && test -d "$CPP"; then
5662 CPP=
5663fi
5664if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005665 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005666 $as_echo_n "(cached) " >&6
5667else
5668 # Double quotes because CPP needs to be expanded
5669 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5670 do
5671 ac_preproc_ok=false
5672for ac_c_preproc_warn_flag in '' yes
5673do
5674 # Use a header file that comes with gcc, so configuring glibc
5675 # with a fresh cross-compiler works.
5676 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5677 # <limits.h> exists even on freestanding compilers.
5678 # On the NeXT, cc -E runs the code through the compiler's parser,
5679 # not just through cpp. "Syntax error" is here to catch this case.
5680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5681/* end confdefs.h. */
5682#ifdef __STDC__
5683# include <limits.h>
5684#else
5685# include <assert.h>
5686#endif
5687 Syntax error
5688_ACEOF
5689if ac_fn_c_try_cpp "$LINENO"; then :
5690
5691else
5692 # Broken: fails on valid input.
5693continue
5694fi
cristyda16f162011-02-19 23:52:17 +00005695rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005696
5697 # OK, works on sane cases. Now check whether nonexistent headers
5698 # can be detected and how.
5699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5700/* end confdefs.h. */
5701#include <ac_nonexistent.h>
5702_ACEOF
5703if ac_fn_c_try_cpp "$LINENO"; then :
5704 # Broken: success on invalid input.
5705continue
5706else
5707 # Passes both tests.
5708ac_preproc_ok=:
5709break
5710fi
cristyda16f162011-02-19 23:52:17 +00005711rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005712
5713done
5714# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005715rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005716if $ac_preproc_ok; then :
5717 break
5718fi
5719
5720 done
5721 ac_cv_prog_CPP=$CPP
5722
5723fi
5724 CPP=$ac_cv_prog_CPP
5725else
5726 ac_cv_prog_CPP=$CPP
5727fi
5728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5729$as_echo "$CPP" >&6; }
5730ac_preproc_ok=false
5731for ac_c_preproc_warn_flag in '' yes
5732do
5733 # Use a header file that comes with gcc, so configuring glibc
5734 # with a fresh cross-compiler works.
5735 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5736 # <limits.h> exists even on freestanding compilers.
5737 # On the NeXT, cc -E runs the code through the compiler's parser,
5738 # not just through cpp. "Syntax error" is here to catch this case.
5739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5740/* end confdefs.h. */
5741#ifdef __STDC__
5742# include <limits.h>
5743#else
5744# include <assert.h>
5745#endif
5746 Syntax error
5747_ACEOF
5748if ac_fn_c_try_cpp "$LINENO"; then :
5749
5750else
5751 # Broken: fails on valid input.
5752continue
5753fi
cristyda16f162011-02-19 23:52:17 +00005754rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005755
5756 # OK, works on sane cases. Now check whether nonexistent headers
5757 # can be detected and how.
5758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5759/* end confdefs.h. */
5760#include <ac_nonexistent.h>
5761_ACEOF
5762if ac_fn_c_try_cpp "$LINENO"; then :
5763 # Broken: success on invalid input.
5764continue
5765else
5766 # Passes both tests.
5767ac_preproc_ok=:
5768break
5769fi
cristyda16f162011-02-19 23:52:17 +00005770rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005771
5772done
5773# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005774rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005775if $ac_preproc_ok; then :
5776
5777else
5778 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5779$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005780as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5781See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005782fi
5783
5784ac_ext=c
5785ac_cpp='$CPP $CPPFLAGS'
5786ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5787ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5788ac_compiler_gnu=$ac_cv_c_compiler_gnu
5789
5790
5791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5792$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005793if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005794 $as_echo_n "(cached) " >&6
5795else
5796 if test -z "$GREP"; then
5797 ac_path_GREP_found=false
5798 # Loop through the user's path and test for each of PROGNAME-LIST
5799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5800for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5801do
5802 IFS=$as_save_IFS
5803 test -z "$as_dir" && as_dir=.
5804 for ac_prog in grep ggrep; do
5805 for ac_exec_ext in '' $ac_executable_extensions; do
5806 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005807 as_fn_executable_p "$ac_path_GREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005808# Check for GNU ac_path_GREP and select it if it is found.
5809 # Check for GNU $ac_path_GREP
5810case `"$ac_path_GREP" --version 2>&1` in
5811*GNU*)
5812 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5813*)
5814 ac_count=0
5815 $as_echo_n 0123456789 >"conftest.in"
5816 while :
5817 do
5818 cat "conftest.in" "conftest.in" >"conftest.tmp"
5819 mv "conftest.tmp" "conftest.in"
5820 cp "conftest.in" "conftest.nl"
5821 $as_echo 'GREP' >> "conftest.nl"
5822 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5823 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5824 as_fn_arith $ac_count + 1 && ac_count=$as_val
5825 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5826 # Best one so far, save it but keep looking for a better one
5827 ac_cv_path_GREP="$ac_path_GREP"
5828 ac_path_GREP_max=$ac_count
5829 fi
5830 # 10*(2^10) chars as input seems more than enough
5831 test $ac_count -gt 10 && break
5832 done
5833 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5834esac
5835
5836 $ac_path_GREP_found && break 3
5837 done
5838 done
5839 done
5840IFS=$as_save_IFS
5841 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005842 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005843 fi
5844else
5845 ac_cv_path_GREP=$GREP
5846fi
5847
5848fi
5849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5850$as_echo "$ac_cv_path_GREP" >&6; }
5851 GREP="$ac_cv_path_GREP"
5852
5853
5854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5855$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005856if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005857 $as_echo_n "(cached) " >&6
5858else
5859 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5860 then ac_cv_path_EGREP="$GREP -E"
5861 else
5862 if test -z "$EGREP"; then
5863 ac_path_EGREP_found=false
5864 # Loop through the user's path and test for each of PROGNAME-LIST
5865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5866for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5867do
5868 IFS=$as_save_IFS
5869 test -z "$as_dir" && as_dir=.
5870 for ac_prog in egrep; do
5871 for ac_exec_ext in '' $ac_executable_extensions; do
5872 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005873 as_fn_executable_p "$ac_path_EGREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005874# Check for GNU ac_path_EGREP and select it if it is found.
5875 # Check for GNU $ac_path_EGREP
5876case `"$ac_path_EGREP" --version 2>&1` in
5877*GNU*)
5878 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5879*)
5880 ac_count=0
5881 $as_echo_n 0123456789 >"conftest.in"
5882 while :
5883 do
5884 cat "conftest.in" "conftest.in" >"conftest.tmp"
5885 mv "conftest.tmp" "conftest.in"
5886 cp "conftest.in" "conftest.nl"
5887 $as_echo 'EGREP' >> "conftest.nl"
5888 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5889 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5890 as_fn_arith $ac_count + 1 && ac_count=$as_val
5891 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5892 # Best one so far, save it but keep looking for a better one
5893 ac_cv_path_EGREP="$ac_path_EGREP"
5894 ac_path_EGREP_max=$ac_count
5895 fi
5896 # 10*(2^10) chars as input seems more than enough
5897 test $ac_count -gt 10 && break
5898 done
5899 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5900esac
5901
5902 $ac_path_EGREP_found && break 3
5903 done
5904 done
5905 done
5906IFS=$as_save_IFS
5907 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005908 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005909 fi
5910else
5911 ac_cv_path_EGREP=$EGREP
5912fi
5913
5914 fi
5915fi
5916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5917$as_echo "$ac_cv_path_EGREP" >&6; }
5918 EGREP="$ac_cv_path_EGREP"
5919
5920
5921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5922$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005923if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005924 $as_echo_n "(cached) " >&6
5925else
5926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5927/* end confdefs.h. */
5928#include <stdlib.h>
5929#include <stdarg.h>
5930#include <string.h>
5931#include <float.h>
5932
5933int
5934main ()
5935{
5936
5937 ;
5938 return 0;
5939}
5940_ACEOF
5941if ac_fn_c_try_compile "$LINENO"; then :
5942 ac_cv_header_stdc=yes
5943else
5944 ac_cv_header_stdc=no
5945fi
5946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5947
5948if test $ac_cv_header_stdc = yes; then
5949 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5951/* end confdefs.h. */
5952#include <string.h>
5953
5954_ACEOF
5955if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5956 $EGREP "memchr" >/dev/null 2>&1; then :
5957
5958else
5959 ac_cv_header_stdc=no
5960fi
5961rm -f conftest*
5962
5963fi
5964
5965if test $ac_cv_header_stdc = yes; then
5966 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5968/* end confdefs.h. */
5969#include <stdlib.h>
5970
5971_ACEOF
5972if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5973 $EGREP "free" >/dev/null 2>&1; then :
5974
5975else
5976 ac_cv_header_stdc=no
5977fi
5978rm -f conftest*
5979
5980fi
5981
5982if test $ac_cv_header_stdc = yes; then
5983 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5984 if test "$cross_compiling" = yes; then :
5985 :
5986else
5987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5988/* end confdefs.h. */
5989#include <ctype.h>
5990#include <stdlib.h>
5991#if ((' ' & 0x0FF) == 0x020)
5992# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5993# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5994#else
5995# define ISLOWER(c) \
5996 (('a' <= (c) && (c) <= 'i') \
5997 || ('j' <= (c) && (c) <= 'r') \
5998 || ('s' <= (c) && (c) <= 'z'))
5999# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6000#endif
6001
6002#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6003int
6004main ()
6005{
6006 int i;
6007 for (i = 0; i < 256; i++)
6008 if (XOR (islower (i), ISLOWER (i))
6009 || toupper (i) != TOUPPER (i))
6010 return 2;
6011 return 0;
6012}
6013_ACEOF
6014if ac_fn_c_try_run "$LINENO"; then :
6015
6016else
6017 ac_cv_header_stdc=no
6018fi
6019rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6020 conftest.$ac_objext conftest.beam conftest.$ac_ext
6021fi
6022
6023fi
6024fi
6025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6026$as_echo "$ac_cv_header_stdc" >&6; }
6027if test $ac_cv_header_stdc = yes; then
6028
6029$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6030
6031fi
6032
6033# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6034for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6035 inttypes.h stdint.h unistd.h
6036do :
6037 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6038ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6039"
cristy98dddb52010-11-04 00:30:15 +00006040if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00006041 cat >>confdefs.h <<_ACEOF
6042#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6043_ACEOF
6044
6045fi
6046
6047done
6048
6049
6050
6051 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 +00006052if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00006053 MINIX=yes
6054else
6055 MINIX=
6056fi
6057
6058
6059 if test "$MINIX" = yes; then
6060
6061$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6062
6063
6064$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6065
6066
6067$as_echo "#define _MINIX 1" >>confdefs.h
6068
6069 fi
6070
6071
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6073$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006074if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006075 $as_echo_n "(cached) " >&6
6076else
6077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6078/* end confdefs.h. */
6079
cristy14fefe52012-05-21 00:59:18 +00006080# define __EXTENSIONS__ 1
6081 $ac_includes_default
cristya0b81c32010-01-22 02:54:33 +00006082int
6083main ()
6084{
6085
6086 ;
6087 return 0;
6088}
6089_ACEOF
6090if ac_fn_c_try_compile "$LINENO"; then :
6091 ac_cv_safe_to_define___extensions__=yes
6092else
6093 ac_cv_safe_to_define___extensions__=no
6094fi
6095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6096fi
6097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6098$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6099 test $ac_cv_safe_to_define___extensions__ = yes &&
6100 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6101
6102 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6103
6104 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6105
6106 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6107
6108 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6109
6110
6111
cristy9af1cbf2014-12-28 22:03:09 +00006112# ==============================================================================
6113# Find required base packages
6114# ==============================================================================
cristy9e007fe2015-01-03 16:05:07 +00006115if test -n "$ac_tool_prefix"; then
6116 for ac_prog in ar lib "link -lib"
6117 do
6118 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6119set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6121$as_echo_n "checking for $ac_word... " >&6; }
6122if ${ac_cv_prog_AR+:} false; then :
6123 $as_echo_n "(cached) " >&6
6124else
6125 if test -n "$AR"; then
6126 ac_cv_prog_AR="$AR" # Let the user override the test.
6127else
6128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6129for as_dir in $PATH
6130do
6131 IFS=$as_save_IFS
6132 test -z "$as_dir" && as_dir=.
6133 for ac_exec_ext in '' $ac_executable_extensions; do
6134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6135 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6137 break 2
6138 fi
6139done
6140 done
6141IFS=$as_save_IFS
6142
6143fi
6144fi
6145AR=$ac_cv_prog_AR
6146if test -n "$AR"; then
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6148$as_echo "$AR" >&6; }
6149else
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6151$as_echo "no" >&6; }
6152fi
6153
6154
6155 test -n "$AR" && break
6156 done
6157fi
6158if test -z "$AR"; then
6159 ac_ct_AR=$AR
6160 for ac_prog in ar lib "link -lib"
6161do
6162 # Extract the first word of "$ac_prog", so it can be a program name with args.
6163set dummy $ac_prog; ac_word=$2
6164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6165$as_echo_n "checking for $ac_word... " >&6; }
6166if ${ac_cv_prog_ac_ct_AR+:} false; then :
6167 $as_echo_n "(cached) " >&6
6168else
6169 if test -n "$ac_ct_AR"; then
6170 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6171else
6172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6173for as_dir in $PATH
6174do
6175 IFS=$as_save_IFS
6176 test -z "$as_dir" && as_dir=.
6177 for ac_exec_ext in '' $ac_executable_extensions; do
6178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6179 ac_cv_prog_ac_ct_AR="$ac_prog"
6180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6181 break 2
6182 fi
6183done
6184 done
6185IFS=$as_save_IFS
6186
6187fi
6188fi
6189ac_ct_AR=$ac_cv_prog_ac_ct_AR
6190if test -n "$ac_ct_AR"; then
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6192$as_echo "$ac_ct_AR" >&6; }
6193else
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6195$as_echo "no" >&6; }
6196fi
6197
6198
6199 test -n "$ac_ct_AR" && break
6200done
6201
6202 if test "x$ac_ct_AR" = x; then
6203 AR="false"
6204 else
6205 case $cross_compiling:$ac_tool_warned in
6206yes:)
6207{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6208$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6209ac_tool_warned=yes ;;
6210esac
6211 AR=$ac_ct_AR
6212 fi
6213fi
6214
6215: ${AR=ar}
6216
6217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
6218$as_echo_n "checking the archiver ($AR) interface... " >&6; }
6219if ${am_cv_ar_interface+:} false; then :
6220 $as_echo_n "(cached) " >&6
6221else
6222 ac_ext=c
6223ac_cpp='$CPP $CPPFLAGS'
6224ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6225ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6226ac_compiler_gnu=$ac_cv_c_compiler_gnu
6227
6228 am_cv_ar_interface=ar
6229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6230/* end confdefs.h. */
6231int some_variable = 0;
6232_ACEOF
6233if ac_fn_c_try_compile "$LINENO"; then :
6234 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
6235 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6236 (eval $am_ar_try) 2>&5
6237 ac_status=$?
6238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6239 test $ac_status = 0; }
6240 if test "$ac_status" -eq 0; then
6241 am_cv_ar_interface=ar
6242 else
6243 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
6244 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6245 (eval $am_ar_try) 2>&5
6246 ac_status=$?
6247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6248 test $ac_status = 0; }
6249 if test "$ac_status" -eq 0; then
6250 am_cv_ar_interface=lib
6251 else
6252 am_cv_ar_interface=unknown
6253 fi
6254 fi
6255 rm -f conftest.lib libconftest.a
6256
6257fi
6258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6259 ac_ext=c
6260ac_cpp='$CPP $CPPFLAGS'
6261ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6262ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6263ac_compiler_gnu=$ac_cv_c_compiler_gnu
6264
6265fi
6266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
6267$as_echo "$am_cv_ar_interface" >&6; }
6268
6269case $am_cv_ar_interface in
6270ar)
6271 ;;
6272lib)
6273 # Microsoft lib, so override with the ar-lib wrapper script.
6274 # FIXME: It is wrong to rewrite AR.
6275 # But if we don't then we get into trouble of one sort or another.
6276 # A longer-term fix would be to have automake use am__AR in this case,
6277 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
6278 # similar.
6279 AR="$am_aux_dir/ar-lib $AR"
6280 ;;
6281unknown)
6282 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
6283 ;;
6284esac
cristy9af1cbf2014-12-28 22:03:09 +00006285
cristya0b81c32010-01-22 02:54:33 +00006286ac_ext=c
6287ac_cpp='$CPP $CPPFLAGS'
6288ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6289ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6290ac_compiler_gnu=$ac_cv_c_compiler_gnu
6291if test -n "$ac_tool_prefix"; then
6292 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6293set dummy ${ac_tool_prefix}gcc; ac_word=$2
6294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6295$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006296if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006297 $as_echo_n "(cached) " >&6
6298else
6299 if test -n "$CC"; then
6300 ac_cv_prog_CC="$CC" # Let the user override the test.
6301else
6302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6303for as_dir in $PATH
6304do
6305 IFS=$as_save_IFS
6306 test -z "$as_dir" && as_dir=.
6307 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006309 ac_cv_prog_CC="${ac_tool_prefix}gcc"
6310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6311 break 2
6312 fi
6313done
6314 done
6315IFS=$as_save_IFS
6316
6317fi
6318fi
6319CC=$ac_cv_prog_CC
6320if test -n "$CC"; then
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6322$as_echo "$CC" >&6; }
6323else
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6325$as_echo "no" >&6; }
6326fi
6327
6328
6329fi
6330if test -z "$ac_cv_prog_CC"; then
6331 ac_ct_CC=$CC
6332 # Extract the first word of "gcc", so it can be a program name with args.
6333set dummy gcc; ac_word=$2
6334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6335$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006336if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006337 $as_echo_n "(cached) " >&6
6338else
6339 if test -n "$ac_ct_CC"; then
6340 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6341else
6342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6343for as_dir in $PATH
6344do
6345 IFS=$as_save_IFS
6346 test -z "$as_dir" && as_dir=.
6347 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006349 ac_cv_prog_ac_ct_CC="gcc"
6350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6351 break 2
6352 fi
6353done
6354 done
6355IFS=$as_save_IFS
6356
6357fi
6358fi
6359ac_ct_CC=$ac_cv_prog_ac_ct_CC
6360if test -n "$ac_ct_CC"; then
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6362$as_echo "$ac_ct_CC" >&6; }
6363else
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6365$as_echo "no" >&6; }
6366fi
6367
6368 if test "x$ac_ct_CC" = x; then
6369 CC=""
6370 else
6371 case $cross_compiling:$ac_tool_warned in
6372yes:)
6373{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6374$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6375ac_tool_warned=yes ;;
6376esac
6377 CC=$ac_ct_CC
6378 fi
6379else
6380 CC="$ac_cv_prog_CC"
6381fi
6382
6383if test -z "$CC"; then
6384 if test -n "$ac_tool_prefix"; then
6385 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6386set dummy ${ac_tool_prefix}cc; ac_word=$2
6387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6388$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006389if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006390 $as_echo_n "(cached) " >&6
6391else
6392 if test -n "$CC"; then
6393 ac_cv_prog_CC="$CC" # Let the user override the test.
6394else
6395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6396for as_dir in $PATH
6397do
6398 IFS=$as_save_IFS
6399 test -z "$as_dir" && as_dir=.
6400 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006402 ac_cv_prog_CC="${ac_tool_prefix}cc"
6403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6404 break 2
6405 fi
6406done
6407 done
6408IFS=$as_save_IFS
6409
6410fi
6411fi
6412CC=$ac_cv_prog_CC
6413if test -n "$CC"; then
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6415$as_echo "$CC" >&6; }
6416else
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6418$as_echo "no" >&6; }
6419fi
6420
6421
6422 fi
6423fi
6424if test -z "$CC"; then
6425 # Extract the first word of "cc", so it can be a program name with args.
6426set dummy cc; ac_word=$2
6427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6428$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006429if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006430 $as_echo_n "(cached) " >&6
6431else
6432 if test -n "$CC"; then
6433 ac_cv_prog_CC="$CC" # Let the user override the test.
6434else
6435 ac_prog_rejected=no
6436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6437for as_dir in $PATH
6438do
6439 IFS=$as_save_IFS
6440 test -z "$as_dir" && as_dir=.
6441 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006443 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6444 ac_prog_rejected=yes
6445 continue
6446 fi
6447 ac_cv_prog_CC="cc"
6448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6449 break 2
6450 fi
6451done
6452 done
6453IFS=$as_save_IFS
6454
6455if test $ac_prog_rejected = yes; then
6456 # We found a bogon in the path, so make sure we never use it.
6457 set dummy $ac_cv_prog_CC
6458 shift
6459 if test $# != 0; then
6460 # We chose a different compiler from the bogus one.
6461 # However, it has the same basename, so the bogon will be chosen
6462 # first if we set CC to just the basename; use the full file name.
6463 shift
6464 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6465 fi
6466fi
6467fi
6468fi
6469CC=$ac_cv_prog_CC
6470if test -n "$CC"; then
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6472$as_echo "$CC" >&6; }
6473else
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6475$as_echo "no" >&6; }
6476fi
6477
6478
6479fi
6480if test -z "$CC"; then
6481 if test -n "$ac_tool_prefix"; then
6482 for ac_prog in cl.exe
6483 do
6484 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6485set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6487$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006488if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006489 $as_echo_n "(cached) " >&6
6490else
6491 if test -n "$CC"; then
6492 ac_cv_prog_CC="$CC" # Let the user override the test.
6493else
6494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6495for as_dir in $PATH
6496do
6497 IFS=$as_save_IFS
6498 test -z "$as_dir" && as_dir=.
6499 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006501 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6503 break 2
6504 fi
6505done
6506 done
6507IFS=$as_save_IFS
6508
6509fi
6510fi
6511CC=$ac_cv_prog_CC
6512if test -n "$CC"; then
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6514$as_echo "$CC" >&6; }
6515else
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6517$as_echo "no" >&6; }
6518fi
6519
6520
6521 test -n "$CC" && break
6522 done
6523fi
6524if test -z "$CC"; then
6525 ac_ct_CC=$CC
6526 for ac_prog in cl.exe
6527do
6528 # Extract the first word of "$ac_prog", so it can be a program name with args.
6529set dummy $ac_prog; ac_word=$2
6530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6531$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006532if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006533 $as_echo_n "(cached) " >&6
6534else
6535 if test -n "$ac_ct_CC"; then
6536 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6537else
6538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6539for as_dir in $PATH
6540do
6541 IFS=$as_save_IFS
6542 test -z "$as_dir" && as_dir=.
6543 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006545 ac_cv_prog_ac_ct_CC="$ac_prog"
6546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6547 break 2
6548 fi
6549done
6550 done
6551IFS=$as_save_IFS
6552
6553fi
6554fi
6555ac_ct_CC=$ac_cv_prog_ac_ct_CC
6556if test -n "$ac_ct_CC"; then
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6558$as_echo "$ac_ct_CC" >&6; }
6559else
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6561$as_echo "no" >&6; }
6562fi
6563
6564
6565 test -n "$ac_ct_CC" && break
6566done
6567
6568 if test "x$ac_ct_CC" = x; then
6569 CC=""
6570 else
6571 case $cross_compiling:$ac_tool_warned in
6572yes:)
6573{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6574$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6575ac_tool_warned=yes ;;
6576esac
6577 CC=$ac_ct_CC
6578 fi
6579fi
6580
6581fi
6582
6583
6584test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6585$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00006586as_fn_error $? "no acceptable C compiler found in \$PATH
6587See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00006588
6589# Provide some information about the compiler.
6590$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6591set X $ac_compile
6592ac_compiler=$2
6593for ac_option in --version -v -V -qversion; do
6594 { { ac_try="$ac_compiler $ac_option >&5"
6595case "(($ac_try" in
6596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6597 *) ac_try_echo=$ac_try;;
6598esac
6599eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6600$as_echo "$ac_try_echo"; } >&5
6601 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6602 ac_status=$?
6603 if test -s conftest.err; then
6604 sed '10a\
6605... rest of stderr output deleted ...
6606 10q' conftest.err >conftest.er1
6607 cat conftest.er1 >&5
6608 fi
6609 rm -f conftest.er1 conftest.err
6610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6611 test $ac_status = 0; }
6612done
6613
6614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6615$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006616if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006617 $as_echo_n "(cached) " >&6
6618else
6619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6620/* end confdefs.h. */
6621
6622int
6623main ()
6624{
6625#ifndef __GNUC__
6626 choke me
6627#endif
6628
6629 ;
6630 return 0;
6631}
6632_ACEOF
6633if ac_fn_c_try_compile "$LINENO"; then :
6634 ac_compiler_gnu=yes
6635else
6636 ac_compiler_gnu=no
6637fi
6638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6639ac_cv_c_compiler_gnu=$ac_compiler_gnu
6640
6641fi
6642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6643$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6644if test $ac_compiler_gnu = yes; then
6645 GCC=yes
6646else
6647 GCC=
6648fi
6649ac_test_CFLAGS=${CFLAGS+set}
6650ac_save_CFLAGS=$CFLAGS
6651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6652$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006653if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006654 $as_echo_n "(cached) " >&6
6655else
6656 ac_save_c_werror_flag=$ac_c_werror_flag
6657 ac_c_werror_flag=yes
6658 ac_cv_prog_cc_g=no
6659 CFLAGS="-g"
6660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6661/* end confdefs.h. */
6662
6663int
6664main ()
6665{
6666
6667 ;
6668 return 0;
6669}
6670_ACEOF
6671if ac_fn_c_try_compile "$LINENO"; then :
6672 ac_cv_prog_cc_g=yes
6673else
6674 CFLAGS=""
6675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6676/* end confdefs.h. */
6677
6678int
6679main ()
6680{
6681
6682 ;
6683 return 0;
6684}
6685_ACEOF
6686if ac_fn_c_try_compile "$LINENO"; then :
6687
6688else
6689 ac_c_werror_flag=$ac_save_c_werror_flag
6690 CFLAGS="-g"
6691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6692/* end confdefs.h. */
6693
6694int
6695main ()
6696{
6697
6698 ;
6699 return 0;
6700}
6701_ACEOF
6702if ac_fn_c_try_compile "$LINENO"; then :
6703 ac_cv_prog_cc_g=yes
6704fi
6705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6706fi
6707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6708fi
6709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6710 ac_c_werror_flag=$ac_save_c_werror_flag
6711fi
6712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6713$as_echo "$ac_cv_prog_cc_g" >&6; }
6714if test "$ac_test_CFLAGS" = set; then
6715 CFLAGS=$ac_save_CFLAGS
6716elif test $ac_cv_prog_cc_g = yes; then
6717 if test "$GCC" = yes; then
6718 CFLAGS="-g -O2"
6719 else
6720 CFLAGS="-g"
6721 fi
6722else
6723 if test "$GCC" = yes; then
6724 CFLAGS="-O2"
6725 else
6726 CFLAGS=
6727 fi
6728fi
6729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6730$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006731if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006732 $as_echo_n "(cached) " >&6
6733else
6734 ac_cv_prog_cc_c89=no
6735ac_save_CC=$CC
6736cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6737/* end confdefs.h. */
6738#include <stdarg.h>
6739#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00006740struct stat;
cristya0b81c32010-01-22 02:54:33 +00006741/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6742struct buf { int x; };
6743FILE * (*rcsopen) (struct buf *, struct stat *, int);
6744static char *e (p, i)
6745 char **p;
6746 int i;
6747{
6748 return p[i];
6749}
6750static char *f (char * (*g) (char **, int), char **p, ...)
6751{
6752 char *s;
6753 va_list v;
6754 va_start (v,p);
6755 s = g (p, va_arg (v,int));
6756 va_end (v);
6757 return s;
6758}
6759
6760/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6761 function prototypes and stuff, but not '\xHH' hex character constants.
6762 These don't provoke an error unfortunately, instead are silently treated
6763 as 'x'. The following induces an error, until -std is added to get
6764 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6765 array size at least. It's necessary to write '\x00'==0 to get something
6766 that's true only with -std. */
6767int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6768
6769/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6770 inside strings and character constants. */
6771#define FOO(x) 'x'
6772int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6773
6774int test (int i, double x);
6775struct s1 {int (*f) (int a);};
6776struct s2 {int (*f) (double a);};
6777int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6778int argc;
6779char **argv;
6780int
6781main ()
6782{
6783return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6784 ;
6785 return 0;
6786}
6787_ACEOF
6788for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6789 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6790do
6791 CC="$ac_save_CC $ac_arg"
6792 if ac_fn_c_try_compile "$LINENO"; then :
6793 ac_cv_prog_cc_c89=$ac_arg
6794fi
6795rm -f core conftest.err conftest.$ac_objext
6796 test "x$ac_cv_prog_cc_c89" != "xno" && break
6797done
6798rm -f conftest.$ac_ext
6799CC=$ac_save_CC
6800
6801fi
6802# AC_CACHE_VAL
6803case "x$ac_cv_prog_cc_c89" in
6804 x)
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6806$as_echo "none needed" >&6; } ;;
6807 xno)
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6809$as_echo "unsupported" >&6; } ;;
6810 *)
6811 CC="$CC $ac_cv_prog_cc_c89"
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6813$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6814esac
6815if test "x$ac_cv_prog_cc_c89" != xno; then :
6816
6817fi
6818
6819ac_ext=c
6820ac_cpp='$CPP $CPPFLAGS'
6821ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6822ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6823ac_compiler_gnu=$ac_cv_c_compiler_gnu
6824
cristya5bda012013-11-03 18:05:38 +00006825ac_ext=c
6826ac_cpp='$CPP $CPPFLAGS'
6827ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6828ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6829ac_compiler_gnu=$ac_cv_c_compiler_gnu
6830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6831$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6832if ${am_cv_prog_cc_c_o+:} false; then :
6833 $as_echo_n "(cached) " >&6
6834else
6835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6836/* end confdefs.h. */
6837
6838int
6839main ()
6840{
6841
6842 ;
6843 return 0;
6844}
6845_ACEOF
6846 # Make sure it works both with $CC and with simple cc.
6847 # Following AC_PROG_CC_C_O, we do the test twice because some
6848 # compilers refuse to overwrite an existing .o file with -o,
6849 # though they will create one.
6850 am_cv_prog_cc_c_o=yes
6851 for am_i in 1 2; do
6852 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6853 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6854 ac_status=$?
6855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6856 (exit $ac_status); } \
6857 && test -f conftest2.$ac_objext; then
6858 : OK
6859 else
6860 am_cv_prog_cc_c_o=no
6861 break
6862 fi
6863 done
6864 rm -f core conftest*
6865 unset am_i
6866fi
6867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6868$as_echo "$am_cv_prog_cc_c_o" >&6; }
6869if test "$am_cv_prog_cc_c_o" != yes; then
6870 # Losing compiler, so override with the script.
6871 # FIXME: It is wrong to rewrite CC.
6872 # But if we don't then we get into trouble of one sort or another.
6873 # A longer-term fix would be to have automake use am__CC in this case,
6874 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6875 CC="$am_aux_dir/compile $CC"
6876fi
6877ac_ext=c
6878ac_cpp='$CPP $CPPFLAGS'
6879ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6880ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6881ac_compiler_gnu=$ac_cv_c_compiler_gnu
6882
6883
cristy73bd4a52010-10-05 11:24:23 +00006884depcc="$CC" am_compiler_list=
6885
6886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6887$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006888if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006889 $as_echo_n "(cached) " >&6
6890else
6891 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6892 # We make a subdir and do the tests there. Otherwise we can end up
6893 # making bogus files that we don't know about and never remove. For
6894 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006895 # making a dummy file named 'D' -- because '-MD' means "put the output
6896 # in D".
cristy7247bba2012-02-05 16:37:27 +00006897 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006898 mkdir conftest.dir
6899 # Copy depcomp to subdir because otherwise we won't find it if we're
6900 # using a relative directory.
6901 cp "$am_depcomp" conftest.dir
6902 cd conftest.dir
6903 # We will build objects and dependencies in a subdirectory because
6904 # it helps to detect inapplicable dependency modes. For instance
6905 # both Tru64's cc and ICC support -MD to output dependencies as a
6906 # side effect of compilation, but ICC will put the dependencies in
6907 # the current directory while Tru64 will put them in the object
6908 # directory.
6909 mkdir sub
6910
6911 am_cv_CC_dependencies_compiler_type=none
6912 if test "$am_compiler_list" = ""; then
6913 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6914 fi
6915 am__universal=false
6916 case " $depcc " in #(
6917 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6918 esac
6919
6920 for depmode in $am_compiler_list; do
6921 # Setup a source with many dependencies, because some compilers
6922 # like to wrap large dependency lists on column 80 (with \), and
6923 # we should not choose a depcomp mode which is confused by this.
6924 #
6925 # We need to recreate these files for each test, as the compiler may
6926 # overwrite some of them when testing with obscure command lines.
6927 # This happens at least with the AIX C compiler.
6928 : > sub/conftest.c
6929 for i in 1 2 3 4 5 6; do
6930 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00006931 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6932 # Solaris 10 /bin/sh.
6933 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00006934 done
6935 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6936
cristyc0890a62012-07-19 00:18:20 +00006937 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00006938 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00006939 # handle '-M -o', and we need to detect this. Also, some Intel
6940 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00006941 am__obj=sub/conftest.${OBJEXT-o}
6942 am__minus_obj="-o $am__obj"
6943 case $depmode in
6944 gcc)
6945 # This depmode causes a compiler race in universal mode.
6946 test "$am__universal" = false || continue
6947 ;;
6948 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00006949 # After this tag, mechanisms are not by side-effect, so they'll
6950 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00006951 if test "x$enable_dependency_tracking" = xyes; then
6952 continue
6953 else
6954 break
6955 fi
6956 ;;
cristy7247bba2012-02-05 16:37:27 +00006957 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00006958 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00006959 # not run yet. These depmodes are late enough in the game, and
6960 # so weak that their functioning should not be impacted.
6961 am__obj=conftest.${OBJEXT-o}
6962 am__minus_obj=
6963 ;;
6964 none) break ;;
6965 esac
6966 if depmode=$depmode \
6967 source=sub/conftest.c object=$am__obj \
6968 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6969 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6970 >/dev/null 2>conftest.err &&
6971 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6972 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6973 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6974 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6975 # icc doesn't choke on unknown options, it will just issue warnings
6976 # or remarks (even with -Werror). So we grep stderr for any message
6977 # that says an option was ignored or not supported.
6978 # When given -MP, icc 7.0 and 7.1 complain thusly:
6979 # icc: Command line warning: ignoring option '-M'; no argument required
6980 # The diagnosis changed in icc 8.0:
6981 # icc: Command line remark: option '-MP' not supported
6982 if (grep 'ignoring option' conftest.err ||
6983 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6984 am_cv_CC_dependencies_compiler_type=$depmode
6985 break
6986 fi
6987 fi
6988 done
6989
6990 cd ..
6991 rm -rf conftest.dir
6992else
6993 am_cv_CC_dependencies_compiler_type=none
6994fi
6995
6996fi
6997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6998$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6999CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7000
7001 if
7002 test "x$enable_dependency_tracking" != xno \
7003 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
7004 am__fastdepCC_TRUE=
7005 am__fastdepCC_FALSE='#'
7006else
7007 am__fastdepCC_TRUE='#'
7008 am__fastdepCC_FALSE=
7009fi
7010
7011
cristy95646052009-11-28 23:05:30 +00007012ac_ext=cpp
7013ac_cpp='$CXXCPP $CPPFLAGS'
7014ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7015ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7016ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7017if test -z "$CXX"; then
7018 if test -n "$CCC"; then
7019 CXX=$CCC
7020 else
7021 if test -n "$ac_tool_prefix"; then
7022 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7023 do
7024 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7025set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7027$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007028if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00007029 $as_echo_n "(cached) " >&6
7030else
7031 if test -n "$CXX"; then
7032 ac_cv_prog_CXX="$CXX" # Let the user override the test.
7033else
7034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7035for as_dir in $PATH
7036do
7037 IFS=$as_save_IFS
7038 test -z "$as_dir" && as_dir=.
7039 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00007040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00007041 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7043 break 2
7044 fi
7045done
7046 done
7047IFS=$as_save_IFS
7048
7049fi
7050fi
7051CXX=$ac_cv_prog_CXX
7052if test -n "$CXX"; then
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7054$as_echo "$CXX" >&6; }
7055else
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7057$as_echo "no" >&6; }
7058fi
7059
7060
7061 test -n "$CXX" && break
7062 done
7063fi
7064if test -z "$CXX"; then
7065 ac_ct_CXX=$CXX
7066 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7067do
7068 # Extract the first word of "$ac_prog", so it can be a program name with args.
7069set dummy $ac_prog; ac_word=$2
7070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7071$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007072if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00007073 $as_echo_n "(cached) " >&6
7074else
7075 if test -n "$ac_ct_CXX"; then
7076 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7077else
7078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7079for as_dir in $PATH
7080do
7081 IFS=$as_save_IFS
7082 test -z "$as_dir" && as_dir=.
7083 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00007084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00007085 ac_cv_prog_ac_ct_CXX="$ac_prog"
7086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7087 break 2
7088 fi
7089done
7090 done
7091IFS=$as_save_IFS
7092
7093fi
7094fi
7095ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7096if test -n "$ac_ct_CXX"; then
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7098$as_echo "$ac_ct_CXX" >&6; }
7099else
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7101$as_echo "no" >&6; }
7102fi
7103
7104
7105 test -n "$ac_ct_CXX" && break
7106done
7107
7108 if test "x$ac_ct_CXX" = x; then
7109 CXX="g++"
7110 else
7111 case $cross_compiling:$ac_tool_warned in
7112yes:)
7113{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7114$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7115ac_tool_warned=yes ;;
7116esac
7117 CXX=$ac_ct_CXX
7118 fi
7119fi
7120
7121 fi
7122fi
7123# Provide some information about the compiler.
7124$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7125set X $ac_compile
7126ac_compiler=$2
7127for ac_option in --version -v -V -qversion; do
7128 { { ac_try="$ac_compiler $ac_option >&5"
7129case "(($ac_try" in
7130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7131 *) ac_try_echo=$ac_try;;
7132esac
7133eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7134$as_echo "$ac_try_echo"; } >&5
7135 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7136 ac_status=$?
7137 if test -s conftest.err; then
7138 sed '10a\
7139... rest of stderr output deleted ...
7140 10q' conftest.err >conftest.er1
7141 cat conftest.er1 >&5
7142 fi
7143 rm -f conftest.er1 conftest.err
7144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7145 test $ac_status = 0; }
7146done
7147
7148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7149$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007150if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00007151 $as_echo_n "(cached) " >&6
7152else
7153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7154/* end confdefs.h. */
7155
7156int
7157main ()
7158{
7159#ifndef __GNUC__
7160 choke me
7161#endif
7162
7163 ;
7164 return 0;
7165}
7166_ACEOF
7167if ac_fn_cxx_try_compile "$LINENO"; then :
7168 ac_compiler_gnu=yes
7169else
7170 ac_compiler_gnu=no
7171fi
7172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7173ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7174
7175fi
7176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7177$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7178if test $ac_compiler_gnu = yes; then
7179 GXX=yes
7180else
7181 GXX=
7182fi
7183ac_test_CXXFLAGS=${CXXFLAGS+set}
7184ac_save_CXXFLAGS=$CXXFLAGS
7185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7186$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007187if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00007188 $as_echo_n "(cached) " >&6
7189else
7190 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7191 ac_cxx_werror_flag=yes
7192 ac_cv_prog_cxx_g=no
7193 CXXFLAGS="-g"
7194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7195/* end confdefs.h. */
7196
7197int
7198main ()
7199{
7200
7201 ;
7202 return 0;
7203}
7204_ACEOF
7205if ac_fn_cxx_try_compile "$LINENO"; then :
7206 ac_cv_prog_cxx_g=yes
7207else
7208 CXXFLAGS=""
7209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7210/* end confdefs.h. */
7211
7212int
7213main ()
7214{
7215
7216 ;
7217 return 0;
7218}
7219_ACEOF
7220if ac_fn_cxx_try_compile "$LINENO"; then :
7221
7222else
7223 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7224 CXXFLAGS="-g"
7225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7226/* end confdefs.h. */
7227
7228int
7229main ()
7230{
7231
7232 ;
7233 return 0;
7234}
7235_ACEOF
7236if ac_fn_cxx_try_compile "$LINENO"; then :
7237 ac_cv_prog_cxx_g=yes
7238fi
7239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7240fi
7241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7242fi
7243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7244 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7245fi
7246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7247$as_echo "$ac_cv_prog_cxx_g" >&6; }
7248if test "$ac_test_CXXFLAGS" = set; then
7249 CXXFLAGS=$ac_save_CXXFLAGS
7250elif test $ac_cv_prog_cxx_g = yes; then
7251 if test "$GXX" = yes; then
7252 CXXFLAGS="-g -O2"
7253 else
7254 CXXFLAGS="-g"
7255 fi
7256else
7257 if test "$GXX" = yes; then
7258 CXXFLAGS="-O2"
7259 else
7260 CXXFLAGS=
7261 fi
7262fi
7263ac_ext=c
7264ac_cpp='$CPP $CPPFLAGS'
7265ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7266ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7267ac_compiler_gnu=$ac_cv_c_compiler_gnu
7268
cristy73bd4a52010-10-05 11:24:23 +00007269depcc="$CXX" am_compiler_list=
7270
7271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7272$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007273if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007274 $as_echo_n "(cached) " >&6
7275else
7276 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7277 # We make a subdir and do the tests there. Otherwise we can end up
7278 # making bogus files that we don't know about and never remove. For
7279 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00007280 # making a dummy file named 'D' -- because '-MD' means "put the output
7281 # in D".
cristy7247bba2012-02-05 16:37:27 +00007282 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00007283 mkdir conftest.dir
7284 # Copy depcomp to subdir because otherwise we won't find it if we're
7285 # using a relative directory.
7286 cp "$am_depcomp" conftest.dir
7287 cd conftest.dir
7288 # We will build objects and dependencies in a subdirectory because
7289 # it helps to detect inapplicable dependency modes. For instance
7290 # both Tru64's cc and ICC support -MD to output dependencies as a
7291 # side effect of compilation, but ICC will put the dependencies in
7292 # the current directory while Tru64 will put them in the object
7293 # directory.
7294 mkdir sub
7295
7296 am_cv_CXX_dependencies_compiler_type=none
7297 if test "$am_compiler_list" = ""; then
7298 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7299 fi
7300 am__universal=false
7301 case " $depcc " in #(
7302 *\ -arch\ *\ -arch\ *) am__universal=true ;;
7303 esac
7304
7305 for depmode in $am_compiler_list; do
7306 # Setup a source with many dependencies, because some compilers
7307 # like to wrap large dependency lists on column 80 (with \), and
7308 # we should not choose a depcomp mode which is confused by this.
7309 #
7310 # We need to recreate these files for each test, as the compiler may
7311 # overwrite some of them when testing with obscure command lines.
7312 # This happens at least with the AIX C compiler.
7313 : > sub/conftest.c
7314 for i in 1 2 3 4 5 6; do
7315 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00007316 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7317 # Solaris 10 /bin/sh.
7318 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00007319 done
7320 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7321
cristyc0890a62012-07-19 00:18:20 +00007322 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00007323 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00007324 # handle '-M -o', and we need to detect this. Also, some Intel
7325 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00007326 am__obj=sub/conftest.${OBJEXT-o}
7327 am__minus_obj="-o $am__obj"
7328 case $depmode in
7329 gcc)
7330 # This depmode causes a compiler race in universal mode.
7331 test "$am__universal" = false || continue
7332 ;;
7333 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00007334 # After this tag, mechanisms are not by side-effect, so they'll
7335 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00007336 if test "x$enable_dependency_tracking" = xyes; then
7337 continue
7338 else
7339 break
7340 fi
7341 ;;
cristy7247bba2012-02-05 16:37:27 +00007342 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00007343 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00007344 # not run yet. These depmodes are late enough in the game, and
7345 # so weak that their functioning should not be impacted.
7346 am__obj=conftest.${OBJEXT-o}
7347 am__minus_obj=
7348 ;;
7349 none) break ;;
7350 esac
7351 if depmode=$depmode \
7352 source=sub/conftest.c object=$am__obj \
7353 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7354 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7355 >/dev/null 2>conftest.err &&
7356 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7357 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7358 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7359 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7360 # icc doesn't choke on unknown options, it will just issue warnings
7361 # or remarks (even with -Werror). So we grep stderr for any message
7362 # that says an option was ignored or not supported.
7363 # When given -MP, icc 7.0 and 7.1 complain thusly:
7364 # icc: Command line warning: ignoring option '-M'; no argument required
7365 # The diagnosis changed in icc 8.0:
7366 # icc: Command line remark: option '-MP' not supported
7367 if (grep 'ignoring option' conftest.err ||
7368 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7369 am_cv_CXX_dependencies_compiler_type=$depmode
7370 break
7371 fi
7372 fi
7373 done
7374
7375 cd ..
7376 rm -rf conftest.dir
7377else
7378 am_cv_CXX_dependencies_compiler_type=none
7379fi
7380
7381fi
7382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7383$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
7384CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7385
7386 if
7387 test "x$enable_dependency_tracking" != xno \
7388 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7389 am__fastdepCXX_TRUE=
7390 am__fastdepCXX_FALSE='#'
7391else
7392 am__fastdepCXX_TRUE='#'
7393 am__fastdepCXX_FALSE=
7394fi
7395
7396
cristy8b350f62009-11-15 23:12:43 +00007397 case $ac_cv_prog_cc_stdc in #(
7398 no) :
7399 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
7400 *) :
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00007402$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007403if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007404 $as_echo_n "(cached) " >&6
7405else
7406 ac_cv_prog_cc_c99=no
7407ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00007408cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007409/* end confdefs.h. */
7410#include <stdarg.h>
7411#include <stdbool.h>
7412#include <stdlib.h>
7413#include <wchar.h>
7414#include <stdio.h>
7415
7416// Check varargs macros. These examples are taken from C99 6.10.3.5.
7417#define debug(...) fprintf (stderr, __VA_ARGS__)
7418#define showlist(...) puts (#__VA_ARGS__)
7419#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7420static void
7421test_varargs_macros (void)
7422{
7423 int x = 1234;
7424 int y = 5678;
7425 debug ("Flag");
7426 debug ("X = %d\n", x);
7427 showlist (The first, second, and third items.);
7428 report (x>y, "x is %d but y is %d", x, y);
7429}
7430
7431// Check long long types.
7432#define BIG64 18446744073709551615ull
7433#define BIG32 4294967295ul
7434#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7435#if !BIG_OK
7436 your preprocessor is broken;
7437#endif
7438#if BIG_OK
7439#else
7440 your preprocessor is broken;
7441#endif
7442static long long int bignum = -9223372036854775807LL;
7443static unsigned long long int ubignum = BIG64;
7444
7445struct incomplete_array
7446{
7447 int datasize;
7448 double data[];
7449};
7450
7451struct named_init {
7452 int number;
7453 const wchar_t *name;
7454 double average;
7455};
7456
7457typedef const char *ccp;
7458
7459static inline int
7460test_restrict (ccp restrict text)
7461{
7462 // See if C++-style comments work.
7463 // Iterate through items via the restricted pointer.
7464 // Also check for declarations in for loops.
7465 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7466 continue;
7467 return 0;
7468}
7469
7470// Check varargs and va_copy.
7471static void
7472test_varargs (const char *format, ...)
7473{
7474 va_list args;
7475 va_start (args, format);
7476 va_list args_copy;
7477 va_copy (args_copy, args);
7478
7479 const char *str;
7480 int number;
7481 float fnumber;
7482
7483 while (*format)
7484 {
7485 switch (*format++)
7486 {
7487 case 's': // string
7488 str = va_arg (args_copy, const char *);
7489 break;
7490 case 'd': // int
7491 number = va_arg (args_copy, int);
7492 break;
7493 case 'f': // float
7494 fnumber = va_arg (args_copy, double);
7495 break;
7496 default:
7497 break;
7498 }
7499 }
7500 va_end (args_copy);
7501 va_end (args);
7502}
7503
7504int
7505main ()
7506{
7507
7508 // Check bool.
7509 _Bool success = false;
7510
7511 // Check restrict.
7512 if (test_restrict ("String literal") == 0)
7513 success = true;
7514 char *restrict newvar = "Another string";
7515
7516 // Check varargs.
7517 test_varargs ("s, d' f .", "string", 65, 34.234);
7518 test_varargs_macros ();
7519
7520 // Check flexible array members.
7521 struct incomplete_array *ia =
7522 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7523 ia->datasize = 10;
7524 for (int i = 0; i < ia->datasize; ++i)
7525 ia->data[i] = i * 1.234;
7526
7527 // Check named initializers.
7528 struct named_init ni = {
7529 .number = 34,
7530 .name = L"Test wide string",
7531 .average = 543.34343,
7532 };
7533
7534 ni.number = 58;
7535
7536 int dynamic_array[ni.number];
7537 dynamic_array[ni.number - 1] = 543;
7538
7539 // work around unused variable warnings
7540 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7541 || dynamic_array[ni.number - 1] != 543);
7542
7543 ;
7544 return 0;
7545}
7546_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007547for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy3ed852e2009-09-05 21:47:34 +00007548do
7549 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007550 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007551 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007552fi
cristy3ed852e2009-09-05 21:47:34 +00007553rm -f core conftest.err conftest.$ac_objext
7554 test "x$ac_cv_prog_cc_c99" != "xno" && break
7555done
7556rm -f conftest.$ac_ext
7557CC=$ac_save_CC
7558
7559fi
7560# AC_CACHE_VAL
7561case "x$ac_cv_prog_cc_c99" in
7562 x)
cristy8b350f62009-11-15 23:12:43 +00007563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007564$as_echo "none needed" >&6; } ;;
7565 xno)
cristy8b350f62009-11-15 23:12:43 +00007566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007567$as_echo "unsupported" >&6; } ;;
7568 *)
7569 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00007570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00007571$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7572esac
cristy8b350f62009-11-15 23:12:43 +00007573if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007574 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7575else
cristy8b350f62009-11-15 23:12:43 +00007576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007577$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007578if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007579 $as_echo_n "(cached) " >&6
7580else
7581 ac_cv_prog_cc_c89=no
7582ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00007583cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007584/* end confdefs.h. */
7585#include <stdarg.h>
7586#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00007587struct stat;
cristy3ed852e2009-09-05 21:47:34 +00007588/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7589struct buf { int x; };
7590FILE * (*rcsopen) (struct buf *, struct stat *, int);
7591static char *e (p, i)
7592 char **p;
7593 int i;
7594{
7595 return p[i];
7596}
7597static char *f (char * (*g) (char **, int), char **p, ...)
7598{
7599 char *s;
7600 va_list v;
7601 va_start (v,p);
7602 s = g (p, va_arg (v,int));
7603 va_end (v);
7604 return s;
7605}
7606
7607/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7608 function prototypes and stuff, but not '\xHH' hex character constants.
7609 These don't provoke an error unfortunately, instead are silently treated
7610 as 'x'. The following induces an error, until -std is added to get
7611 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7612 array size at least. It's necessary to write '\x00'==0 to get something
7613 that's true only with -std. */
7614int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7615
7616/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7617 inside strings and character constants. */
7618#define FOO(x) 'x'
7619int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7620
7621int test (int i, double x);
7622struct s1 {int (*f) (int a);};
7623struct s2 {int (*f) (double a);};
7624int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7625int argc;
7626char **argv;
7627int
7628main ()
7629{
7630return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7631 ;
7632 return 0;
7633}
7634_ACEOF
7635for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7636 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7637do
7638 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007639 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007640 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007641fi
cristy3ed852e2009-09-05 21:47:34 +00007642rm -f core conftest.err conftest.$ac_objext
7643 test "x$ac_cv_prog_cc_c89" != "xno" && break
7644done
7645rm -f conftest.$ac_ext
7646CC=$ac_save_CC
7647
7648fi
7649# AC_CACHE_VAL
7650case "x$ac_cv_prog_cc_c89" in
7651 x)
cristy8b350f62009-11-15 23:12:43 +00007652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007653$as_echo "none needed" >&6; } ;;
7654 xno)
cristy8b350f62009-11-15 23:12:43 +00007655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007656$as_echo "unsupported" >&6; } ;;
7657 *)
7658 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00007659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007660$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7661esac
cristy8b350f62009-11-15 23:12:43 +00007662if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007663 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7664else
7665 ac_cv_prog_cc_stdc=no
7666fi
7667
cristy3ed852e2009-09-05 21:47:34 +00007668fi
cristy3ed852e2009-09-05 21:47:34 +00007669 ;;
7670esac
cristy8b350f62009-11-15 23:12:43 +00007671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00007672$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007673 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007674 $as_echo_n "(cached) " >&6
7675fi
7676
cristy8b350f62009-11-15 23:12:43 +00007677 case $ac_cv_prog_cc_stdc in #(
7678 no) :
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7680$as_echo "unsupported" >&6; } ;; #(
7681 '') :
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7683$as_echo "none needed" >&6; } ;; #(
7684 *) :
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00007686$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7687esac
7688
cristy3ed852e2009-09-05 21:47:34 +00007689ac_ext=c
7690ac_cpp='$CPP $CPPFLAGS'
7691ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7692ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7693ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00007694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00007695$as_echo_n "checking how to run the C preprocessor... " >&6; }
7696# On Suns, sometimes $CPP names a directory.
7697if test -n "$CPP" && test -d "$CPP"; then
7698 CPP=
7699fi
7700if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00007701 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007702 $as_echo_n "(cached) " >&6
7703else
7704 # Double quotes because CPP needs to be expanded
7705 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7706 do
7707 ac_preproc_ok=false
7708for ac_c_preproc_warn_flag in '' yes
7709do
7710 # Use a header file that comes with gcc, so configuring glibc
7711 # with a fresh cross-compiler works.
7712 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7713 # <limits.h> exists even on freestanding compilers.
7714 # On the NeXT, cc -E runs the code through the compiler's parser,
7715 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007717/* end confdefs.h. */
7718#ifdef __STDC__
7719# include <limits.h>
7720#else
7721# include <assert.h>
7722#endif
7723 Syntax error
7724_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007725if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007726
cristy8b350f62009-11-15 23:12:43 +00007727else
cristy3ed852e2009-09-05 21:47:34 +00007728 # Broken: fails on valid input.
7729continue
7730fi
cristyda16f162011-02-19 23:52:17 +00007731rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007732
7733 # OK, works on sane cases. Now check whether nonexistent headers
7734 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007736/* end confdefs.h. */
7737#include <ac_nonexistent.h>
7738_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007739if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007740 # Broken: success on invalid input.
7741continue
7742else
cristy3ed852e2009-09-05 21:47:34 +00007743 # Passes both tests.
7744ac_preproc_ok=:
7745break
7746fi
cristyda16f162011-02-19 23:52:17 +00007747rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007748
7749done
7750# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007751rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007752if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007753 break
7754fi
7755
7756 done
7757 ac_cv_prog_CPP=$CPP
7758
7759fi
7760 CPP=$ac_cv_prog_CPP
7761else
7762 ac_cv_prog_CPP=$CPP
7763fi
cristy8b350f62009-11-15 23:12:43 +00007764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007765$as_echo "$CPP" >&6; }
7766ac_preproc_ok=false
7767for ac_c_preproc_warn_flag in '' yes
7768do
7769 # Use a header file that comes with gcc, so configuring glibc
7770 # with a fresh cross-compiler works.
7771 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7772 # <limits.h> exists even on freestanding compilers.
7773 # On the NeXT, cc -E runs the code through the compiler's parser,
7774 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007776/* end confdefs.h. */
7777#ifdef __STDC__
7778# include <limits.h>
7779#else
7780# include <assert.h>
7781#endif
7782 Syntax error
7783_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007784if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007785
cristy8b350f62009-11-15 23:12:43 +00007786else
cristy3ed852e2009-09-05 21:47:34 +00007787 # Broken: fails on valid input.
7788continue
7789fi
cristyda16f162011-02-19 23:52:17 +00007790rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007791
7792 # OK, works on sane cases. Now check whether nonexistent headers
7793 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007795/* end confdefs.h. */
7796#include <ac_nonexistent.h>
7797_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007798if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007799 # Broken: success on invalid input.
7800continue
7801else
cristy3ed852e2009-09-05 21:47:34 +00007802 # Passes both tests.
7803ac_preproc_ok=:
7804break
7805fi
cristyda16f162011-02-19 23:52:17 +00007806rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007807
7808done
7809# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007810rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007811if $ac_preproc_ok; then :
7812
cristy3ed852e2009-09-05 21:47:34 +00007813else
cristy8b350f62009-11-15 23:12:43 +00007814 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007815$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00007816as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7817See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007818fi
7819
7820ac_ext=c
7821ac_cpp='$CPP $CPPFLAGS'
7822ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7823ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7824ac_compiler_gnu=$ac_cv_c_compiler_gnu
7825
cristy73bd4a52010-10-05 11:24:23 +00007826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7827$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007828if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007829 $as_echo_n "(cached) " >&6
7830else
7831 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7832 for ac_i in 1 2 3 4 5 6 7; do
7833 ac_script="$ac_script$as_nl$ac_script"
7834 done
7835 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7836 { ac_script=; unset ac_script;}
7837 if test -z "$SED"; then
7838 ac_path_SED_found=false
7839 # Loop through the user's path and test for each of PROGNAME-LIST
7840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7841for as_dir in $PATH
7842do
7843 IFS=$as_save_IFS
7844 test -z "$as_dir" && as_dir=.
7845 for ac_prog in sed gsed; do
7846 for ac_exec_ext in '' $ac_executable_extensions; do
7847 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007848 as_fn_executable_p "$ac_path_SED" || continue
cristy73bd4a52010-10-05 11:24:23 +00007849# Check for GNU ac_path_SED and select it if it is found.
7850 # Check for GNU $ac_path_SED
7851case `"$ac_path_SED" --version 2>&1` in
7852*GNU*)
7853 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7854*)
7855 ac_count=0
7856 $as_echo_n 0123456789 >"conftest.in"
7857 while :
7858 do
7859 cat "conftest.in" "conftest.in" >"conftest.tmp"
7860 mv "conftest.tmp" "conftest.in"
7861 cp "conftest.in" "conftest.nl"
7862 $as_echo '' >> "conftest.nl"
7863 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7864 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7865 as_fn_arith $ac_count + 1 && ac_count=$as_val
7866 if test $ac_count -gt ${ac_path_SED_max-0}; then
7867 # Best one so far, save it but keep looking for a better one
7868 ac_cv_path_SED="$ac_path_SED"
7869 ac_path_SED_max=$ac_count
7870 fi
7871 # 10*(2^10) chars as input seems more than enough
7872 test $ac_count -gt 10 && break
7873 done
7874 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7875esac
7876
7877 $ac_path_SED_found && break 3
7878 done
7879 done
7880 done
7881IFS=$as_save_IFS
7882 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007883 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007884 fi
7885else
7886 ac_cv_path_SED=$SED
7887fi
7888
7889fi
7890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7891$as_echo "$ac_cv_path_SED" >&6; }
7892 SED="$ac_cv_path_SED"
7893 rm -f conftest.sed
7894
7895test -z "$SED" && SED=sed
7896Xsed="$SED -e 1s/^X//"
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7909$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007910if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007911 $as_echo_n "(cached) " >&6
7912else
7913 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7914 then ac_cv_path_FGREP="$GREP -F"
7915 else
7916 if test -z "$FGREP"; then
7917 ac_path_FGREP_found=false
7918 # Loop through the user's path and test for each of PROGNAME-LIST
7919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7920for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7921do
7922 IFS=$as_save_IFS
7923 test -z "$as_dir" && as_dir=.
7924 for ac_prog in fgrep; do
7925 for ac_exec_ext in '' $ac_executable_extensions; do
7926 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007927 as_fn_executable_p "$ac_path_FGREP" || continue
cristy73bd4a52010-10-05 11:24:23 +00007928# Check for GNU ac_path_FGREP and select it if it is found.
7929 # Check for GNU $ac_path_FGREP
7930case `"$ac_path_FGREP" --version 2>&1` in
7931*GNU*)
7932 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7933*)
7934 ac_count=0
7935 $as_echo_n 0123456789 >"conftest.in"
7936 while :
7937 do
7938 cat "conftest.in" "conftest.in" >"conftest.tmp"
7939 mv "conftest.tmp" "conftest.in"
7940 cp "conftest.in" "conftest.nl"
7941 $as_echo 'FGREP' >> "conftest.nl"
7942 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7943 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7944 as_fn_arith $ac_count + 1 && ac_count=$as_val
7945 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7946 # Best one so far, save it but keep looking for a better one
7947 ac_cv_path_FGREP="$ac_path_FGREP"
7948 ac_path_FGREP_max=$ac_count
7949 fi
7950 # 10*(2^10) chars as input seems more than enough
7951 test $ac_count -gt 10 && break
7952 done
7953 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7954esac
7955
7956 $ac_path_FGREP_found && break 3
7957 done
7958 done
7959 done
7960IFS=$as_save_IFS
7961 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007962 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007963 fi
7964else
7965 ac_cv_path_FGREP=$FGREP
7966fi
7967
7968 fi
7969fi
7970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7971$as_echo "$ac_cv_path_FGREP" >&6; }
7972 FGREP="$ac_cv_path_FGREP"
7973
7974
7975test -z "$GREP" && GREP=grep
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
cristy0c60a692010-11-04 01:09:47 +00007993ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7994ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7995ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7996
7997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7998$as_echo_n "checking how to print strings... " >&6; }
7999# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00008000if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00008001 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
8002 ECHO='print -r --'
8003elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
8004 ECHO='printf %s\n'
8005else
8006 # Use this function as a fallback that always works.
8007 func_fallback_echo ()
8008 {
8009 eval 'cat <<_LTECHO_EOF
8010$1
8011_LTECHO_EOF'
8012 }
8013 ECHO='func_fallback_echo'
8014fi
8015
8016# func_echo_all arg...
8017# Invoke $ECHO with all args, space-separated.
8018func_echo_all ()
8019{
8020 $ECHO ""
8021}
8022
8023case "$ECHO" in
8024 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
8025$as_echo "printf" >&6; } ;;
8026 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
8027$as_echo "print -r" >&6; } ;;
8028 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
8029$as_echo "cat" >&6; } ;;
8030esac
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
cristy73bd4a52010-10-05 11:24:23 +00008045
8046
8047# Check whether --with-gnu-ld was given.
8048if test "${with_gnu_ld+set}" = set; then :
8049 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8050else
8051 with_gnu_ld=no
8052fi
8053
8054ac_prog=ld
8055if test "$GCC" = yes; then
8056 # Check if gcc -print-prog-name=ld gives a path.
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8058$as_echo_n "checking for ld used by $CC... " >&6; }
8059 case $host in
8060 *-*-mingw*)
8061 # gcc leaves a trailing carriage return which upsets mingw
8062 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8063 *)
8064 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8065 esac
8066 case $ac_prog in
8067 # Accept absolute paths.
8068 [\\/]* | ?:[\\/]*)
8069 re_direlt='/[^/][^/]*/\.\./'
8070 # Canonicalize the pathname of ld
8071 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
8072 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
8073 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
8074 done
8075 test -z "$LD" && LD="$ac_prog"
8076 ;;
8077 "")
8078 # If it fails, then pretend we aren't using GCC.
8079 ac_prog=ld
8080 ;;
8081 *)
8082 # If it is relative, then search for the first ld in PATH.
8083 with_gnu_ld=unknown
8084 ;;
8085 esac
8086elif test "$with_gnu_ld" = yes; then
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8088$as_echo_n "checking for GNU ld... " >&6; }
8089else
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8091$as_echo_n "checking for non-GNU ld... " >&6; }
8092fi
cristyda16f162011-02-19 23:52:17 +00008093if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008094 $as_echo_n "(cached) " >&6
8095else
8096 if test -z "$LD"; then
8097 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8098 for ac_dir in $PATH; do
8099 IFS="$lt_save_ifs"
8100 test -z "$ac_dir" && ac_dir=.
8101 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8102 lt_cv_path_LD="$ac_dir/$ac_prog"
8103 # Check to see if the program is GNU ld. I'd rather use --version,
8104 # but apparently some variants of GNU ld only accept -v.
8105 # Break only if it was the GNU/non-GNU ld that we prefer.
8106 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8107 *GNU* | *'with BFD'*)
8108 test "$with_gnu_ld" != no && break
8109 ;;
8110 *)
8111 test "$with_gnu_ld" != yes && break
8112 ;;
8113 esac
8114 fi
8115 done
8116 IFS="$lt_save_ifs"
8117else
8118 lt_cv_path_LD="$LD" # Let the user override the test with a path.
8119fi
8120fi
8121
8122LD="$lt_cv_path_LD"
8123if test -n "$LD"; then
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8125$as_echo "$LD" >&6; }
8126else
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8128$as_echo "no" >&6; }
8129fi
cristy98dddb52010-11-04 00:30:15 +00008130test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00008131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8132$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008133if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008134 $as_echo_n "(cached) " >&6
8135else
8136 # I'd rather use --version here, but apparently some GNU lds only accept -v.
8137case `$LD -v 2>&1 </dev/null` in
8138*GNU* | *'with BFD'*)
8139 lt_cv_prog_gnu_ld=yes
8140 ;;
8141*)
8142 lt_cv_prog_gnu_ld=no
8143 ;;
8144esac
8145fi
8146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8147$as_echo "$lt_cv_prog_gnu_ld" >&6; }
8148with_gnu_ld=$lt_cv_prog_gnu_ld
8149
8150
8151
8152
8153
8154
8155
8156
8157
cristy3ed852e2009-09-05 21:47:34 +00008158
cristy837d6dc2010-02-27 01:16:57 +00008159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
8160$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008161if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00008162 $as_echo_n "(cached) " >&6
8163else
8164 ac_cv_prog_cc_c99=no
8165ac_save_CC=$CC
8166cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8167/* end confdefs.h. */
8168#include <stdarg.h>
8169#include <stdbool.h>
8170#include <stdlib.h>
8171#include <wchar.h>
8172#include <stdio.h>
8173
8174// Check varargs macros. These examples are taken from C99 6.10.3.5.
8175#define debug(...) fprintf (stderr, __VA_ARGS__)
8176#define showlist(...) puts (#__VA_ARGS__)
8177#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
8178static void
8179test_varargs_macros (void)
8180{
8181 int x = 1234;
8182 int y = 5678;
8183 debug ("Flag");
8184 debug ("X = %d\n", x);
8185 showlist (The first, second, and third items.);
8186 report (x>y, "x is %d but y is %d", x, y);
8187}
8188
8189// Check long long types.
8190#define BIG64 18446744073709551615ull
8191#define BIG32 4294967295ul
8192#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
8193#if !BIG_OK
8194 your preprocessor is broken;
8195#endif
8196#if BIG_OK
8197#else
8198 your preprocessor is broken;
8199#endif
8200static long long int bignum = -9223372036854775807LL;
8201static unsigned long long int ubignum = BIG64;
8202
8203struct incomplete_array
8204{
8205 int datasize;
8206 double data[];
8207};
8208
8209struct named_init {
8210 int number;
8211 const wchar_t *name;
8212 double average;
8213};
8214
8215typedef const char *ccp;
8216
8217static inline int
8218test_restrict (ccp restrict text)
8219{
8220 // See if C++-style comments work.
8221 // Iterate through items via the restricted pointer.
8222 // Also check for declarations in for loops.
8223 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
8224 continue;
8225 return 0;
8226}
8227
8228// Check varargs and va_copy.
8229static void
8230test_varargs (const char *format, ...)
8231{
8232 va_list args;
8233 va_start (args, format);
8234 va_list args_copy;
8235 va_copy (args_copy, args);
8236
8237 const char *str;
8238 int number;
8239 float fnumber;
8240
8241 while (*format)
8242 {
8243 switch (*format++)
8244 {
8245 case 's': // string
8246 str = va_arg (args_copy, const char *);
8247 break;
8248 case 'd': // int
8249 number = va_arg (args_copy, int);
8250 break;
8251 case 'f': // float
8252 fnumber = va_arg (args_copy, double);
8253 break;
8254 default:
8255 break;
8256 }
8257 }
8258 va_end (args_copy);
8259 va_end (args);
8260}
8261
8262int
8263main ()
8264{
8265
8266 // Check bool.
8267 _Bool success = false;
8268
8269 // Check restrict.
8270 if (test_restrict ("String literal") == 0)
8271 success = true;
8272 char *restrict newvar = "Another string";
8273
8274 // Check varargs.
8275 test_varargs ("s, d' f .", "string", 65, 34.234);
8276 test_varargs_macros ();
8277
8278 // Check flexible array members.
8279 struct incomplete_array *ia =
8280 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
8281 ia->datasize = 10;
8282 for (int i = 0; i < ia->datasize; ++i)
8283 ia->data[i] = i * 1.234;
8284
8285 // Check named initializers.
8286 struct named_init ni = {
8287 .number = 34,
8288 .name = L"Test wide string",
8289 .average = 543.34343,
8290 };
8291
8292 ni.number = 58;
8293
8294 int dynamic_array[ni.number];
8295 dynamic_array[ni.number - 1] = 543;
8296
8297 // work around unused variable warnings
8298 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
8299 || dynamic_array[ni.number - 1] != 543);
8300
8301 ;
8302 return 0;
8303}
8304_ACEOF
cristy14fefe52012-05-21 00:59:18 +00008305for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy837d6dc2010-02-27 01:16:57 +00008306do
8307 CC="$ac_save_CC $ac_arg"
8308 if ac_fn_c_try_compile "$LINENO"; then :
8309 ac_cv_prog_cc_c99=$ac_arg
8310fi
8311rm -f core conftest.err conftest.$ac_objext
8312 test "x$ac_cv_prog_cc_c99" != "xno" && break
8313done
8314rm -f conftest.$ac_ext
8315CC=$ac_save_CC
8316
8317fi
8318# AC_CACHE_VAL
8319case "x$ac_cv_prog_cc_c99" in
8320 x)
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
8322$as_echo "none needed" >&6; } ;;
8323 xno)
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
8325$as_echo "unsupported" >&6; } ;;
8326 *)
8327 CC="$CC $ac_cv_prog_cc_c99"
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
8329$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
8330esac
8331if test "x$ac_cv_prog_cc_c99" != xno; then :
8332
8333fi
8334
8335
cristy73bd4a52010-10-05 11:24:23 +00008336
cristy17491be2014-06-24 01:10:53 +00008337ac_ext=c
8338ac_cpp='$CPP $CPPFLAGS'
8339ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8340ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8341ac_compiler_gnu=$ac_cv_c_compiler_gnu
8342
cristy73bd4a52010-10-05 11:24:23 +00008343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
8344$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008345if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008346 $as_echo_n "(cached) " >&6
8347else
8348 ac_cv_cflags_warn_all="no, unknown"
cristy17491be2014-06-24 01:10:53 +00008349ac_save_CFLAGS="$CFLAGS"
8350for 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 +00008351do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
8352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8353/* end confdefs.h. */
8354
8355int
8356main ()
8357{
cristy24fc1fe2010-10-23 21:13:01 +00008358
cristy73bd4a52010-10-05 11:24:23 +00008359 ;
8360 return 0;
8361}
8362_ACEOF
8363if ac_fn_c_try_compile "$LINENO"; then :
8364 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
8365fi
8366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8367done
cristy17491be2014-06-24 01:10:53 +00008368CFLAGS="$ac_save_CFLAGS"
8369
8370fi
8371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
8372$as_echo "$ac_cv_cflags_warn_all" >&6; }
8373
8374
8375case ".$ac_cv_cflags_warn_all" in
8376 .ok|.ok,*) ;;
8377 .|.no|.no,*) ;;
cristy146497a2015-05-17 22:46:16 +00008378 *)
8379if ${CFLAGS+:} false; then :
8380
8381 case " $CFLAGS " in #(
8382 *" $ac_cv_cflags_warn_all "*) :
8383 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
cristy17491be2014-06-24 01:10:53 +00008384 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
8385 ac_status=$?
8386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristy146497a2015-05-17 22:46:16 +00008387 test $ac_status = 0; } ;; #(
8388 *) :
8389
8390 as_fn_append CFLAGS " $ac_cv_cflags_warn_all"
8391 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
8392 (: CFLAGS="$CFLAGS") 2>&5
cristy17491be2014-06-24 01:10:53 +00008393 ac_status=$?
8394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8395 test $ac_status = 0; }
cristy146497a2015-05-17 22:46:16 +00008396 ;;
8397esac
8398
cristy17491be2014-06-24 01:10:53 +00008399else
cristy146497a2015-05-17 22:46:16 +00008400
8401 CFLAGS=$ac_cv_cflags_warn_all
8402 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
8403 (: CFLAGS="$CFLAGS") 2>&5
8404 ac_status=$?
8405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8406 test $ac_status = 0; }
8407
cristy17491be2014-06-24 01:10:53 +00008408fi
8409 ;;
8410esac
8411
8412ac_ext=c
cristy73bd4a52010-10-05 11:24:23 +00008413ac_cpp='$CPP $CPPFLAGS'
8414ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8415ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8416ac_compiler_gnu=$ac_cv_c_compiler_gnu
8417
8418
cristya0b81c32010-01-22 02:54:33 +00008419
8420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8421$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8422set x ${MAKE-make}
8423ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00008424if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00008425 $as_echo_n "(cached) " >&6
8426else
8427 cat >conftest.make <<\_ACEOF
8428SHELL = /bin/sh
8429all:
8430 @echo '@@@%%%=$(MAKE)=@@@%%%'
8431_ACEOF
cristy98dddb52010-11-04 00:30:15 +00008432# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00008433case `${MAKE-make} -f conftest.make 2>/dev/null` in
8434 *@@@%%%=?*=@@@%%%*)
8435 eval ac_cv_prog_make_${ac_make}_set=yes;;
8436 *)
8437 eval ac_cv_prog_make_${ac_make}_set=no;;
8438esac
8439rm -f conftest.make
8440fi
8441if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8443$as_echo "yes" >&6; }
8444 SET_MAKE=
8445else
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8447$as_echo "no" >&6; }
8448 SET_MAKE="MAKE=${MAKE-make}"
8449fi
8450
cristy8b350f62009-11-15 23:12:43 +00008451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00008452$as_echo_n "checking whether ln -s works... " >&6; }
8453LN_S=$as_ln_s
8454if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00008455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00008456$as_echo "yes" >&6; }
8457else
cristy8b350f62009-11-15 23:12:43 +00008458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00008459$as_echo "no, using $LN_S" >&6; }
8460fi
8461
cristy8d0ff762013-03-10 20:33:28 +00008462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8463$as_echo_n "checking for a sed that does not truncate output... " >&6; }
8464if ${ac_cv_path_SED+:} false; then :
8465 $as_echo_n "(cached) " >&6
8466else
8467 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8468 for ac_i in 1 2 3 4 5 6 7; do
8469 ac_script="$ac_script$as_nl$ac_script"
8470 done
8471 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8472 { ac_script=; unset ac_script;}
8473 if test -z "$SED"; then
8474 ac_path_SED_found=false
8475 # Loop through the user's path and test for each of PROGNAME-LIST
8476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8477for as_dir in $PATH
8478do
8479 IFS=$as_save_IFS
8480 test -z "$as_dir" && as_dir=.
8481 for ac_prog in sed gsed; do
8482 for ac_exec_ext in '' $ac_executable_extensions; do
8483 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
8484 as_fn_executable_p "$ac_path_SED" || continue
8485# Check for GNU ac_path_SED and select it if it is found.
8486 # Check for GNU $ac_path_SED
8487case `"$ac_path_SED" --version 2>&1` in
8488*GNU*)
8489 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8490*)
8491 ac_count=0
8492 $as_echo_n 0123456789 >"conftest.in"
8493 while :
8494 do
8495 cat "conftest.in" "conftest.in" >"conftest.tmp"
8496 mv "conftest.tmp" "conftest.in"
8497 cp "conftest.in" "conftest.nl"
8498 $as_echo '' >> "conftest.nl"
8499 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8500 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8501 as_fn_arith $ac_count + 1 && ac_count=$as_val
8502 if test $ac_count -gt ${ac_path_SED_max-0}; then
8503 # Best one so far, save it but keep looking for a better one
8504 ac_cv_path_SED="$ac_path_SED"
8505 ac_path_SED_max=$ac_count
8506 fi
8507 # 10*(2^10) chars as input seems more than enough
8508 test $ac_count -gt 10 && break
8509 done
8510 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8511esac
8512
8513 $ac_path_SED_found && break 3
8514 done
8515 done
8516 done
8517IFS=$as_save_IFS
8518 if test -z "$ac_cv_path_SED"; then
8519 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8520 fi
8521else
8522 ac_cv_path_SED=$SED
8523fi
8524
8525fi
8526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8527$as_echo "$ac_cv_path_SED" >&6; }
8528 SED="$ac_cv_path_SED"
8529 rm -f conftest.sed
8530
cristybc556452012-08-17 19:44:03 +00008531for ac_prog in gawk mawk nawk awk
8532do
8533 # Extract the first word of "$ac_prog", so it can be a program name with args.
8534set dummy $ac_prog; ac_word=$2
8535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8536$as_echo_n "checking for $ac_word... " >&6; }
8537if ${ac_cv_prog_AWK+:} false; then :
8538 $as_echo_n "(cached) " >&6
8539else
8540 if test -n "$AWK"; then
8541 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8542else
8543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8544for as_dir in $PATH
8545do
8546 IFS=$as_save_IFS
8547 test -z "$as_dir" && as_dir=.
8548 for ac_exec_ext in '' $ac_executable_extensions; do
8549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8550 ac_cv_prog_AWK="$ac_prog"
8551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8552 break 2
8553 fi
8554done
8555 done
8556IFS=$as_save_IFS
8557
8558fi
8559fi
8560AWK=$ac_cv_prog_AWK
8561if test -n "$AWK"; then
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8563$as_echo "$AWK" >&6; }
8564else
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8566$as_echo "no" >&6; }
8567fi
8568
8569
8570 test -n "$AWK" && break
8571done
8572
cristy73bd4a52010-10-05 11:24:23 +00008573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
8574$as_echo_n "checking if malloc debugging is wanted... " >&6; }
8575
8576# Check whether --with-dmalloc was given.
8577if test "${with_dmalloc+set}" = set; then :
8578 withval=$with_dmalloc; if test "$withval" = yes; then
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8580$as_echo "yes" >&6; }
8581
8582$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
8583
8584 LIBS="$LIBS -ldmalloc"
8585 LDFLAGS="$LDFLAGS -g"
8586else
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8588$as_echo "no" >&6; }
8589fi
8590else
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8592$as_echo "no" >&6; }
8593fi
8594
8595
8596
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
8598$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008599if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008600 $as_echo_n "(cached) " >&6
8601else
8602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8603/* end confdefs.h. */
8604#include <stdlib.h>
cristy146497a2015-05-17 22:46:16 +00008605 static void foo(void) __attribute__ ((unused));
cristy73bd4a52010-10-05 11:24:23 +00008606 static void
8607 foo(void) {
8608 exit(1);
8609 }
8610
8611int
8612main ()
8613{
8614
8615 ;
8616 return 0;
8617}
8618_ACEOF
8619if ac_fn_c_try_compile "$LINENO"; then :
8620 ax_cv___attribute__=yes
8621else
8622 ax_cv___attribute__=no
8623
8624fi
8625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8626
8627fi
8628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
8629$as_echo "$ax_cv___attribute__" >&6; }
8630 if test "$ax_cv___attribute__" = "yes"; then
8631
8632$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
8633
8634 fi
8635
cristy146497a2015-05-17 22:46:16 +00008636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
8637$as_echo_n "checking for C compiler vendor... " >&6; }
8638if ${ax_cv_c_compiler_vendor+:} false; then :
8639 $as_echo_n "(cached) " >&6
8640else
8641 # note: don't check for gcc first since some other compilers define __GNUC__
8642 vendors="intel: __ICC,__ECC,__INTEL_COMPILER
8643 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__
8644 pathscale: __PATHCC__,__PATHSCALE__
8645 clang: __clang__
8646 cray: _CRAYC
8647 fujitsu: __FUJITSU
8648 gnu: __GNUC__
8649 sun: __SUNPRO_C,__SUNPRO_CC
8650 hp: __HP_cc,__HP_aCC
8651 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
8652 borland: __BORLANDC__,__CODEGEARC__,__TURBOC__
8653 comeau: __COMO__
8654 kai: __KCC
8655 lcc: __LCC__
8656 sgi: __sgi,sgi
8657 microsoft: _MSC_VER
8658 metrowerks: __MWERKS__
8659 watcom: __WATCOMC__
8660 portland: __PGI
8661 tcc: __TINYC__
8662 unknown: UNKNOWN"
8663 for ventest in $vendors; do
8664 case $ventest in
8665 *:) vendor=$ventest; continue ;;
8666 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
8667 esac
8668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8669/* end confdefs.h. */
8670
8671int
8672main ()
8673{
8674
8675 #if !($vencpp)
8676 thisisanerror;
8677 #endif
8678
8679 ;
8680 return 0;
8681}
8682_ACEOF
8683if ac_fn_c_try_compile "$LINENO"; then :
8684 break
8685fi
8686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8687 done
8688 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
8689
8690fi
8691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
8692$as_echo "$ax_cv_c_compiler_vendor" >&6; }
8693
8694
cristy73bd4a52010-10-05 11:24:23 +00008695
8696
cristya0459972013-11-03 18:09:35 +00008697
8698
cristy17491be2014-06-24 01:10:53 +00008699
cristya0459972013-11-03 18:09:35 +00008700# Check whether --with-gcc-arch was given.
8701if test "${with_gcc_arch+set}" = set; then :
8702 withval=$with_gcc_arch; ax_gcc_arch=$withval
8703else
cristy17491be2014-06-24 01:10:53 +00008704 ax_gcc_arch=yes
cristya0459972013-11-03 18:09:35 +00008705fi
8706
8707
8708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8709$as_echo_n "checking for gcc architecture flag... " >&6; }
8710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
8711$as_echo "" >&6; }
8712if ${ax_cv_gcc_archflag+:} false; then :
8713 $as_echo_n "(cached) " >&6
8714else
8715
8716ax_cv_gcc_archflag="unknown"
8717
8718if test "$GCC" = yes; then
8719
8720if test "x$ax_gcc_arch" = xyes; then
8721ax_gcc_arch=""
8722if test "$cross_compiling" = no; then
8723case $host_cpu in
cristy17491be2014-06-24 01:10:53 +00008724 i[3456]86*|x86_64*|amd64*) # use cpuid codes
cristya0459972013-11-03 18:09:35 +00008725
8726ac_ext=c
8727ac_cpp='$CPP $CPPFLAGS'
8728ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8729ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8730ac_compiler_gnu=$ac_cv_c_compiler_gnu
8731
8732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
8733$as_echo_n "checking for x86 cpuid 0 output... " >&6; }
8734if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
8735 $as_echo_n "(cached) " >&6
8736else
8737 if test "$cross_compiling" = yes; then :
8738 ax_cv_gcc_x86_cpuid_0=unknown
8739else
8740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8741/* end confdefs.h. */
8742#include <stdio.h>
8743int
8744main ()
8745{
8746
8747 int op = 0, eax, ebx, ecx, edx;
8748 FILE *f;
8749 __asm__("cpuid"
8750 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8751 : "a" (op));
8752 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8753 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8754 fclose(f);
8755 return 0;
8756
8757 ;
8758 return 0;
8759}
8760_ACEOF
8761if ac_fn_c_try_run "$LINENO"; then :
8762 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
8763else
8764 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
8765fi
8766rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8767 conftest.$ac_objext conftest.beam conftest.$ac_ext
8768fi
8769
8770fi
8771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
8772$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
8773ac_ext=c
8774ac_cpp='$CPP $CPPFLAGS'
8775ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8776ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8777ac_compiler_gnu=$ac_cv_c_compiler_gnu
8778
8779
8780
8781ac_ext=c
8782ac_cpp='$CPP $CPPFLAGS'
8783ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8784ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8785ac_compiler_gnu=$ac_cv_c_compiler_gnu
8786
8787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
8788$as_echo_n "checking for x86 cpuid 1 output... " >&6; }
8789if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
8790 $as_echo_n "(cached) " >&6
8791else
8792 if test "$cross_compiling" = yes; then :
8793 ax_cv_gcc_x86_cpuid_1=unknown
8794else
8795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8796/* end confdefs.h. */
8797#include <stdio.h>
8798int
8799main ()
8800{
8801
8802 int op = 1, eax, ebx, ecx, edx;
8803 FILE *f;
8804 __asm__("cpuid"
8805 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8806 : "a" (op));
8807 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8808 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8809 fclose(f);
8810 return 0;
8811
8812 ;
8813 return 0;
8814}
8815_ACEOF
8816if ac_fn_c_try_run "$LINENO"; then :
8817 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
8818else
8819 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
8820fi
8821rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8822 conftest.$ac_objext conftest.beam conftest.$ac_ext
8823fi
8824
8825fi
8826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
8827$as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
8828ac_ext=c
8829ac_cpp='$CPP $CPPFLAGS'
8830ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8831ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8832ac_compiler_gnu=$ac_cv_c_compiler_gnu
8833
8834
8835 case $ax_cv_gcc_x86_cpuid_0 in
cristy146497a2015-05-17 22:46:16 +00008836 *:756e6547:6c65746e:49656e69) # Intel
cristya0459972013-11-03 18:09:35 +00008837 case $ax_cv_gcc_x86_cpuid_1 in
cristy146497a2015-05-17 22:46:16 +00008838 *5[4578]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
8839 *5[123]?:*:*:*) ax_gcc_arch=pentium ;;
8840 *0?61?:*:*:*|?61?:*:*:*|61?:*:*:*) ax_gcc_arch=pentiumpro ;;
8841 *0?6[356]?:*:*:*|?6[356]?:*:*:*|6[356]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8842 *0?6[78ab]?:*:*:*|?6[78ab]?:*:*:*|6[78ab]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8843 *0?6[9d]?:*:*:*|?6[9d]?:*:*:*|6[9d]?:*:*:*|*1?65?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
8844 *0?6e?:*:*:*|?6e?:*:*:*|6e?:*:*:*) ax_gcc_arch="yonah pentium-m pentium3 pentiumpro" ;;
8845 *0?6f?:*:*:*|?6f?:*:*:*|6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
cristya0459972013-11-03 18:09:35 +00008846 *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
cristy146497a2015-05-17 22:46:16 +00008847 *1?6[aef]?:*:*:*|*2?6e?:*:*:*) ax_gcc_arch="nehalem corei7 core2 pentium-m pentium3 pentiumpro" ;;
8848 *2?6[5cf]?:*:*:*) ax_gcc_arch="westmere corei7 core2 pentium-m pentium3 pentiumpro" ;;
8849 *2?6[ad]?:*:*:*) ax_gcc_arch="sandybridge corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8850 *3?6[ae]?:*:*:*) ax_gcc_arch="ivybridge core-avx-i corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8851 *3?6[cf]?:*:*:*|*4?6[56]?:*:*:*) ax_gcc_arch="haswell core-avx2 core-avx-i corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8852 *3?6d?:*:*:*) ax_gcc_arch="broadwell core-avx2 core-avx-i corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8853 *1?6c?:*:*:*|*2?6[67]?:*:*:*|*3?6[56]?:*:*:*) ax_gcc_arch="bonnell atom core2 pentium-m pentium3 pentiumpro" ;;
8854 *3?67?:*:*:*|*[45]?6[ad]?:*:*:*) ax_gcc_arch="silvermont atom core2 pentium-m pentium3 pentiumpro" ;;
8855 *000?f[012]?:*:*:*|?f[012]?:*:*:*|f[012]?:*:*:*) ax_gcc_arch="pentium4 pentiumpro" ;;
8856 *000?f[346]?:*:*:*|?f[346]?:*:*:*|f[346]?:*:*:*) ax_gcc_arch="nocona prescott pentium4 pentiumpro" ;;
8857 # fallback
8858 *5??:*:*:*) ax_gcc_arch=pentium ;;
8859 *??6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
cristy17491be2014-06-24 01:10:53 +00008860 *6??:*:*:*) ax_gcc_arch=pentiumpro ;;
cristy146497a2015-05-17 22:46:16 +00008861 *00??f??:*:*:*|??f??:*:*:*|?f??:*:*:*|f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro" ;;
cristya0459972013-11-03 18:09:35 +00008862 esac ;;
cristy146497a2015-05-17 22:46:16 +00008863 *:68747541:444d4163:69746e65) # AMD
cristya0459972013-11-03 18:09:35 +00008864 case $ax_cv_gcc_x86_cpuid_1 in
8865 *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
cristy146497a2015-05-17 22:46:16 +00008866 *5[8]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
8867 *5[9d]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
cristya0459972013-11-03 18:09:35 +00008868 *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
8869 *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
cristy146497a2015-05-17 22:46:16 +00008870 *6[678a]?:*:*:*) ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
8871 *000?f[4578bcef]?:*:*:*|?f[4578bcef]?:*:*:*|f[4578bcef]?:*:*:*|*001?f[4578bcf]?:*:*:*|1?f[4578bcf]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
8872 *002?f[13457bcf]?:*:*:*|2?f[13457bcf]?:*:*:*|*004?f[138bcf]?:*:*:*|4?f[138bcf]?:*:*:*|*005?f[df]?:*:*:*|5?f[df]?:*:*:*|*006?f[8bcf]?:*:*:*|6?f[8bcf]?:*:*:*|*007?f[cf]?:*:*:*|7?f[cf]?:*:*:*|*00c?f1?:*:*:*|c?f1?:*:*:*|*020?f3?:*:*:*|20?f3?:*:*:*) ax_gcc_arch="athlon64-sse3 k8-sse3 athlon64 k8" ;;
8873 *010?f[245689a]?:*:*:*|10?f[245689a]?:*:*:*|*030?f1?:*:*:*|30?f1?:*:*:*) ax_gcc_arch="barcelona amdfam10 k8" ;;
8874 *050?f[12]?:*:*:*|50?f[12]?:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
8875 *060?f1?:*:*:*|60?f1?:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
8876 *060?f2?:*:*:*|60?f2?:*:*:*|*061?f[03]?:*:*:*|61?f[03]?:*:*:*) ax_gcc_arch="bdver2 bdver1 amdfam10 k8" ;;
8877 *063?f0?:*:*:*|63?f0?:*:*:*) ax_gcc_arch="bdver3 bdver2 bdver1 amdfam10 k8" ;;
8878 *07[03]?f0?:*:*:*|7[03]?f0?:*:*:*) ax_gcc_arch="btver2 btver1 amdfam10 k8" ;;
8879 # fallback
8880 *0[13]??f??:*:*:*|[13]??f??:*:*:*) ax_gcc_arch="barcelona amdfam10 k8" ;;
8881 *020?f??:*:*:*|20?f??:*:*:*) ax_gcc_arch="athlon64-sse3 k8-sse3 athlon64 k8" ;;
8882 *05??f??:*:*:*|5??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
8883 *060?f??:*:*:*|60?f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
8884 *061?f??:*:*:*|61?f??:*:*:*) ax_gcc_arch="bdver2 bdver1 amdfam10 k8" ;;
8885 *06??f??:*:*:*|6??f??:*:*:*) ax_gcc_arch="bdver3 bdver2 bdver1 amdfam10 k8" ;;
8886 *070?f??:*:*:*|70?f??:*:*:*) ax_gcc_arch="btver2 btver1 amdfam10 k8" ;;
8887 *???f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
cristya0459972013-11-03 18:09:35 +00008888 esac ;;
cristy146497a2015-05-17 22:46:16 +00008889 *:746e6543:736c7561:48727561) # IDT / VIA (Centaur)
cristya0459972013-11-03 18:09:35 +00008890 case $ax_cv_gcc_x86_cpuid_1 in
8891 *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
cristy146497a2015-05-17 22:46:16 +00008892 *5[89]?:*:*:*) ax_gcc_arch=winchip2 ;;
8893 *66?:*:*:*) ax_gcc_arch=winchip2 ;;
cristya0459972013-11-03 18:09:35 +00008894 *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
cristy146497a2015-05-17 22:46:16 +00008895 *6[9adf]?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
cristya0459972013-11-03 18:09:35 +00008896 esac ;;
8897 esac
8898 if test x"$ax_gcc_arch" = x; then # fallback
8899 case $host_cpu in
8900 i586*) ax_gcc_arch=pentium ;;
8901 i686*) ax_gcc_arch=pentiumpro ;;
8902 esac
8903 fi
8904 ;;
8905
8906 sparc*)
8907 # Extract the first word of "prtdiag", so it can be a program name with args.
8908set dummy prtdiag; ac_word=$2
8909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8910$as_echo_n "checking for $ac_word... " >&6; }
8911if ${ac_cv_path_PRTDIAG+:} false; then :
8912 $as_echo_n "(cached) " >&6
8913else
8914 case $PRTDIAG in
8915 [\\/]* | ?:[\\/]*)
8916 ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
8917 ;;
8918 *)
8919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8920as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
8921for as_dir in $as_dummy
8922do
8923 IFS=$as_save_IFS
8924 test -z "$as_dir" && as_dir=.
8925 for ac_exec_ext in '' $ac_executable_extensions; do
8926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8927 ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
8928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8929 break 2
8930 fi
8931done
8932 done
8933IFS=$as_save_IFS
8934
8935 test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
8936 ;;
8937esac
8938fi
8939PRTDIAG=$ac_cv_path_PRTDIAG
8940if test -n "$PRTDIAG"; then
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
8942$as_echo "$PRTDIAG" >&6; }
8943else
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8945$as_echo "no" >&6; }
8946fi
8947
8948
8949 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 +00008950 cputype=`echo "$cputype" | tr -d ' -' | $SED 's/SPARCIIi/SPARCII/' |tr $as_cr_LETTERS $as_cr_letters`
cristya0459972013-11-03 18:09:35 +00008951 case $cputype in
8952 *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
8953 *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
8954 *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
8955 *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
8956 *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
8957 *cypress*) ax_gcc_arch=cypress ;;
8958 esac ;;
8959
8960 alphaev5) ax_gcc_arch=ev5 ;;
8961 alphaev56) ax_gcc_arch=ev56 ;;
8962 alphapca56) ax_gcc_arch="pca56 ev56" ;;
8963 alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
8964 alphaev6) ax_gcc_arch=ev6 ;;
8965 alphaev67) ax_gcc_arch=ev67 ;;
8966 alphaev68) ax_gcc_arch="ev68 ev67" ;;
8967 alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
8968 alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
8969 alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
8970
8971 powerpc*)
cristy17491be2014-06-24 01:10:53 +00008972 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`
8973 cputype=`echo $cputype | $SED -e 's/ppc//g;s/ *//g'`
cristya0459972013-11-03 18:09:35 +00008974 case $cputype in
8975 *750*) ax_gcc_arch="750 G3" ;;
8976 *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
8977 *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
8978 *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
8979 *970*) ax_gcc_arch="970 G5 power4";;
8980 *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
8981 *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
8982 603ev|8240) ax_gcc_arch="$cputype 603e 603";;
8983 *) ax_gcc_arch=$cputype ;;
8984 esac
8985 ax_gcc_arch="$ax_gcc_arch powerpc"
8986 ;;
8987esac
8988fi # not cross-compiling
8989fi # guess arch
8990
8991if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
cristy146497a2015-05-17 22:46:16 +00008992if test "xyes" = xyes; then # if we require portable code
8993 flag_prefixes="-mtune="
8994 if test "x$ax_cv_c_compiler_vendor" = xclang; then flag_prefixes="-march="; fi
8995 # -mcpu=$arch and m$arch generate nonportable code on every arch except
8996 # x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr.
8997 case $host_cpu in i*86|x86_64*|amd64*) flag_prefixes="$flag_prefixes -mcpu= -m";; esac
8998else
8999 flag_prefixes="-march= -mcpu= -m"
9000fi
9001for flag_prefix in $flag_prefixes; do
9002 for arch in $ax_gcc_arch; do
9003 flag="$flag_prefix$arch"
cristya0459972013-11-03 18:09:35 +00009004 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
9005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
9006$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
9007if eval \${$as_CACHEVAR+:} false; then :
9008 $as_echo_n "(cached) " >&6
9009else
9010
9011 ax_check_save_flags=$CFLAGS
9012 CFLAGS="$CFLAGS $flag"
9013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9014/* end confdefs.h. */
9015
9016int
9017main ()
9018{
9019
9020 ;
9021 return 0;
9022}
9023_ACEOF
9024if ac_fn_c_try_compile "$LINENO"; then :
9025 eval "$as_CACHEVAR=yes"
9026else
9027 eval "$as_CACHEVAR=no"
9028fi
9029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9030 CFLAGS=$ax_check_save_flags
9031fi
9032eval ac_res=\$$as_CACHEVAR
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9034$as_echo "$ac_res" >&6; }
cristy146497a2015-05-17 22:46:16 +00009035if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
9036 if test "x$ax_cv_c_compiler_vendor" = xclang; then
9037 if test "xyes" = xyes; then
9038 if test "x$flag" = "x-march=$arch"; then flag=-mtune=$arch; fi
9039 fi
9040 fi; ax_cv_gcc_archflag=$flag; break
cristya0459972013-11-03 18:09:35 +00009041else
9042 :
9043fi
9044
9045 done
9046 test "x$ax_cv_gcc_archflag" = xunknown || break
9047done
9048fi
9049
9050fi # $GCC=yes
9051
9052fi
9053
9054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
9055$as_echo_n "checking for gcc architecture flag... " >&6; }
9056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
9057$as_echo "$ax_cv_gcc_archflag" >&6; }
9058if test "x$ax_cv_gcc_archflag" = xunknown; then
9059 :
9060else
9061 CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
9062fi
9063
9064
9065
cristy146497a2015-05-17 22:46:16 +00009066
9067
9068
9069
9070
cristy73bd4a52010-10-05 11:24:23 +00009071if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9072 if test -n "$ac_tool_prefix"; then
9073 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9074set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9076$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009077if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009078 $as_echo_n "(cached) " >&6
9079else
9080 case $PKG_CONFIG in
9081 [\\/]* | ?:[\\/]*)
9082 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9083 ;;
9084 *)
9085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9086for as_dir in $PATH
9087do
9088 IFS=$as_save_IFS
9089 test -z "$as_dir" && as_dir=.
9090 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009092 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9094 break 2
9095 fi
9096done
9097 done
9098IFS=$as_save_IFS
9099
9100 ;;
9101esac
9102fi
9103PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9104if test -n "$PKG_CONFIG"; then
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9106$as_echo "$PKG_CONFIG" >&6; }
9107else
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9109$as_echo "no" >&6; }
9110fi
9111
9112
9113fi
9114if test -z "$ac_cv_path_PKG_CONFIG"; then
9115 ac_pt_PKG_CONFIG=$PKG_CONFIG
9116 # Extract the first word of "pkg-config", so it can be a program name with args.
9117set dummy pkg-config; ac_word=$2
9118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9119$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009120if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009121 $as_echo_n "(cached) " >&6
9122else
9123 case $ac_pt_PKG_CONFIG in
9124 [\\/]* | ?:[\\/]*)
9125 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9126 ;;
9127 *)
9128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9129for as_dir in $PATH
9130do
9131 IFS=$as_save_IFS
9132 test -z "$as_dir" && as_dir=.
9133 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009135 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9137 break 2
9138 fi
9139done
9140 done
9141IFS=$as_save_IFS
9142
9143 ;;
9144esac
9145fi
9146ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9147if test -n "$ac_pt_PKG_CONFIG"; then
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
9149$as_echo "$ac_pt_PKG_CONFIG" >&6; }
9150else
9151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9152$as_echo "no" >&6; }
9153fi
9154
9155 if test "x$ac_pt_PKG_CONFIG" = x; then
9156 PKG_CONFIG=""
9157 else
9158 case $cross_compiling:$ac_tool_warned in
9159yes:)
9160{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9161$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9162ac_tool_warned=yes ;;
9163esac
9164 PKG_CONFIG=$ac_pt_PKG_CONFIG
9165 fi
9166else
9167 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9168fi
9169
9170fi
9171if test -n "$PKG_CONFIG"; then
9172 _pkg_min_version=0.9.0
9173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
9174$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
9175 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9177$as_echo "yes" >&6; }
9178 else
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9180$as_echo "no" >&6; }
9181 PKG_CONFIG=""
9182 fi
cristy73bd4a52010-10-05 11:24:23 +00009183fi
cristy3ed852e2009-09-05 21:47:34 +00009184
cristy9af1cbf2014-12-28 22:03:09 +00009185
9186
cristyd95b7a52013-10-23 13:12:53 +00009187# Test for 64-bit build.
9188# The cast to long int works around a bug in the HP C Compiler
9189# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9190# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9191# This bug is HP SR number 8606223364.
9192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
9193$as_echo_n "checking size of size_t... " >&6; }
9194if ${ac_cv_sizeof_size_t+:} false; then :
9195 $as_echo_n "(cached) " >&6
9196else
9197 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
9198
9199else
9200 if test "$ac_cv_type_size_t" = yes; then
9201 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9202$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9203as_fn_error 77 "cannot compute sizeof (size_t)
9204See \`config.log' for more details" "$LINENO" 5; }
9205 else
9206 ac_cv_sizeof_size_t=0
9207 fi
9208fi
9209
9210fi
9211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
9212$as_echo "$ac_cv_sizeof_size_t" >&6; }
9213
9214
9215
9216cat >>confdefs.h <<_ACEOF
9217#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
9218_ACEOF
9219
9220
9221
9222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
9223$as_echo_n "checking for C compiler vendor... " >&6; }
9224if ${ax_cv_c_compiler_vendor+:} false; then :
9225 $as_echo_n "(cached) " >&6
9226else
cristy146497a2015-05-17 22:46:16 +00009227 # note: don't check for gcc first since some other compilers define __GNUC__
cristyd95b7a52013-10-23 13:12:53 +00009228 vendors="intel: __ICC,__ECC,__INTEL_COMPILER
9229 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__
9230 pathscale: __PATHCC__,__PATHSCALE__
9231 clang: __clang__
cristy146497a2015-05-17 22:46:16 +00009232 cray: _CRAYC
cristy17491be2014-06-24 01:10:53 +00009233 fujitsu: __FUJITSU
cristyd95b7a52013-10-23 13:12:53 +00009234 gnu: __GNUC__
9235 sun: __SUNPRO_C,__SUNPRO_CC
9236 hp: __HP_cc,__HP_aCC
9237 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
cristy146497a2015-05-17 22:46:16 +00009238 borland: __BORLANDC__,__CODEGEARC__,__TURBOC__
cristyd95b7a52013-10-23 13:12:53 +00009239 comeau: __COMO__
cristyd95b7a52013-10-23 13:12:53 +00009240 kai: __KCC
9241 lcc: __LCC__
9242 sgi: __sgi,sgi
9243 microsoft: _MSC_VER
9244 metrowerks: __MWERKS__
9245 watcom: __WATCOMC__
9246 portland: __PGI
cristy146497a2015-05-17 22:46:16 +00009247 tcc: __TINYC__
cristyd95b7a52013-10-23 13:12:53 +00009248 unknown: UNKNOWN"
9249 for ventest in $vendors; do
9250 case $ventest in
9251 *:) vendor=$ventest; continue ;;
9252 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
9253 esac
9254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9255/* end confdefs.h. */
9256
9257int
9258main ()
9259{
9260
9261 #if !($vencpp)
9262 thisisanerror;
9263 #endif
9264
9265 ;
9266 return 0;
9267}
9268_ACEOF
9269if ac_fn_c_try_compile "$LINENO"; then :
9270 break
9271fi
9272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9273 done
9274 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
9275
9276fi
9277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
9278$as_echo "$ax_cv_c_compiler_vendor" >&6; }
9279
cristyd95b7a52013-10-23 13:12:53 +00009280# The AX_CFLAGS_WARN_ALL macro doesn't currently work for sunpro
9281# compiler.
9282if test "$ax_cv_c_compiler_vendor" != "sun"; then
cristy17491be2014-06-24 01:10:53 +00009283 ac_ext=c
cristyd95b7a52013-10-23 13:12:53 +00009284ac_cpp='$CPP $CPPFLAGS'
9285ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9286ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9287ac_compiler_gnu=$ac_cv_c_compiler_gnu
9288
cristy17491be2014-06-24 01:10:53 +00009289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
9290$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
9291if ${ac_cv_cflags_warn_all+:} false; then :
9292 $as_echo_n "(cached) " >&6
9293else
9294 ac_cv_cflags_warn_all="no, unknown"
9295ac_save_CFLAGS="$CFLAGS"
9296for 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 +00009297do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
9298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9299/* end confdefs.h. */
9300
9301int
9302main ()
9303{
9304
9305 ;
9306 return 0;
9307}
9308_ACEOF
9309if ac_fn_c_try_compile "$LINENO"; then :
9310 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
9311fi
9312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9313done
cristy17491be2014-06-24 01:10:53 +00009314CFLAGS="$ac_save_CFLAGS"
9315
9316fi
9317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
9318$as_echo "$ac_cv_cflags_warn_all" >&6; }
9319
9320
9321case ".$ac_cv_cflags_warn_all" in
9322 .ok|.ok,*) ;;
9323 .|.no|.no,*) ;;
cristy146497a2015-05-17 22:46:16 +00009324 *)
9325if ${CFLAGS+:} false; then :
9326
9327 case " $CFLAGS " in #(
9328 *" $ac_cv_cflags_warn_all "*) :
9329 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
cristy17491be2014-06-24 01:10:53 +00009330 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
9331 ac_status=$?
9332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristy146497a2015-05-17 22:46:16 +00009333 test $ac_status = 0; } ;; #(
9334 *) :
9335
9336 as_fn_append CFLAGS " $ac_cv_cflags_warn_all"
9337 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
9338 (: CFLAGS="$CFLAGS") 2>&5
cristy17491be2014-06-24 01:10:53 +00009339 ac_status=$?
9340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9341 test $ac_status = 0; }
cristy146497a2015-05-17 22:46:16 +00009342 ;;
9343esac
9344
cristy17491be2014-06-24 01:10:53 +00009345else
cristy146497a2015-05-17 22:46:16 +00009346
9347 CFLAGS=$ac_cv_cflags_warn_all
9348 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
9349 (: CFLAGS="$CFLAGS") 2>&5
9350 ac_status=$?
9351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9352 test $ac_status = 0; }
9353
cristy17491be2014-06-24 01:10:53 +00009354fi
9355 ;;
9356esac
9357
9358ac_ext=c
cristyd95b7a52013-10-23 13:12:53 +00009359ac_cpp='$CPP $CPPFLAGS'
9360ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9361ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9362ac_compiler_gnu=$ac_cv_c_compiler_gnu
9363
9364
9365fi
cristyd95b7a52013-10-23 13:12:53 +00009366
9367if test "x$GCC" = "xyes"; then
9368 CFLAGS="$CFLAGS -fexceptions"
9369 touch local.exp
9370else
9371 cat > local.exp <<EOF
9372set CC_FOR_TARGET "$CC"
9373EOF
9374fi
9375
cristy9b86f202012-11-28 21:55:35 +00009376# Check for linker script support
9377
9378 # Check whether --enable-ld-version-script was given.
9379if test "${enable_ld_version_script+set}" = set; then :
9380 enableval=$enable_ld_version_script; have_ld_version_script=$enableval
9381fi
9382
9383 if test -z "$have_ld_version_script"; then
9384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
9385$as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
9386 save_LDFLAGS="$LDFLAGS"
9387 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
9388 cat > conftest.map <<EOF
9389foo
9390EOF
9391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9392/* end confdefs.h. */
9393
9394int
9395main ()
9396{
9397
9398 ;
9399 return 0;
9400}
9401_ACEOF
9402if ac_fn_c_try_link "$LINENO"; then :
9403 accepts_syntax_errors=yes
9404else
9405 accepts_syntax_errors=no
9406fi
9407rm -f core conftest.err conftest.$ac_objext \
9408 conftest$ac_exeext conftest.$ac_ext
9409 if test "$accepts_syntax_errors" = no; then
9410 cat > conftest.map <<EOF
9411VERS_1 {
9412 global: sym;
9413};
9414
9415VERS_2 {
9416 global: sym;
9417} VERS_1;
9418EOF
9419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9420/* end confdefs.h. */
9421
9422int
9423main ()
9424{
9425
9426 ;
9427 return 0;
9428}
9429_ACEOF
9430if ac_fn_c_try_link "$LINENO"; then :
9431 have_ld_version_script=yes
9432else
9433 have_ld_version_script=no
9434fi
9435rm -f core conftest.err conftest.$ac_objext \
9436 conftest$ac_exeext conftest.$ac_ext
9437 else
9438 have_ld_version_script=no
9439 fi
9440 rm -f conftest.map
9441 LDFLAGS="$save_LDFLAGS"
9442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
9443$as_echo "$have_ld_version_script" >&6; }
9444 fi
9445 if test "$have_ld_version_script" = "yes"; then
9446 HAVE_LD_VERSION_SCRIPT_TRUE=
9447 HAVE_LD_VERSION_SCRIPT_FALSE='#'
9448else
9449 HAVE_LD_VERSION_SCRIPT_TRUE='#'
9450 HAVE_LD_VERSION_SCRIPT_FALSE=
9451fi
9452
9453
9454
cristy3ed852e2009-09-05 21:47:34 +00009455#
cristy3ed852e2009-09-05 21:47:34 +00009456# Enable run-time checking.
9457#
9458# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00009459if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009460 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
9461else
9462 enable_bounds_checking='no'
9463fi
9464
9465
9466if test "$enable_bounds_checking" = yes; then
9467
cristy8b350f62009-11-15 23:12:43 +00009468$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009469
9470fi
9471
9472#
9473# Tests for Windows
9474#
9475
9476
9477
9478GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00009479native_win32_build='no'
9480cygwin_build='no'
9481case "${host_os}" in
9482 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00009483 cygwin_build='yes'
9484 GDI32_LIBS='-lgdi32'
9485 ;;
9486 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00009487 native_win32_build='yes'
9488 GDI32_LIBS='-lgdi32'
9489 ;;
9490esac
9491if test "${GDI32_LIBS}x" != 'x'; then
9492
cristy8b350f62009-11-15 23:12:43 +00009493$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009494
9495fi
9496
cristy73bd4a52010-10-05 11:24:23 +00009497 if test "${GDI32_LIBS}x" != 'x' ; then
9498 WINGDI32_DELEGATE_TRUE=
9499 WINGDI32_DELEGATE_FALSE='#'
9500else
9501 WINGDI32_DELEGATE_TRUE='#'
9502 WINGDI32_DELEGATE_FALSE=
9503fi
9504
9505 if test "${native_win32_build}" = 'yes' ; then
9506 WIN32_NATIVE_BUILD_TRUE=
9507 WIN32_NATIVE_BUILD_FALSE='#'
9508else
9509 WIN32_NATIVE_BUILD_TRUE='#'
9510 WIN32_NATIVE_BUILD_FALSE=
9511fi
9512
9513 if test "${cygwin_build}" = 'yes' ; then
9514 CYGWIN_BUILD_TRUE=
9515 CYGWIN_BUILD_FALSE='#'
9516else
9517 CYGWIN_BUILD_TRUE='#'
9518 CYGWIN_BUILD_FALSE=
9519fi
9520
9521 if test "x${CC}" = 'xcl.exe' ; then
9522 USING_CL_TRUE=
9523 USING_CL_FALSE='#'
9524else
9525 USING_CL_TRUE='#'
9526 USING_CL_FALSE=
9527fi
9528
cristy3ed852e2009-09-05 21:47:34 +00009529
9530WinPathScript="${srcdirfull}/winpath.sh"
9531
9532
9533#
9534# Compiler flags tweaks
9535#
9536if test "${GCC}" != "yes"; then
9537 case "${host}" in
9538 *-*-hpux* )
9539 # aCC: HP ANSI C++ B3910B A.03.34
9540 CFLAGS="${CFLAGS} -Wp,-H30000"
9541 if test -n "${CXXFLAGS}"; then
9542 CXXFLAGS='-AA'
9543 else
9544 CXXFLAGS="${CXXFLAGS} -AA"
9545 fi
9546 ;;
9547 *-dec-osf5.* )
9548 # Compaq alphaev68-dec-osf5.1 compiler
9549 if test -n "${CXXFLAGS}"; then
9550 CXXFLAGS='-std strict_ansi -noimplicit_include'
9551 else
9552 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
9553 fi
9554 esac
9555fi
9556
9557# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00009558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00009559$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009560if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009561 $as_echo_n "(cached) " >&6
9562else
9563
9564im_cv_ld_lazyload='none'
9565case "${host}" in
9566 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
9567 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
9568 im_cv_ld_lazyload='-Wl,-zlazyload'
9569 fi
9570 ;;
9571esac
9572
9573fi
cristy8b350f62009-11-15 23:12:43 +00009574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00009575$as_echo "$im_cv_ld_lazyload" >&6; }
9576if test "${im_cv_ld_lazyload}" != 'none' ; then
9577 if test -z "${LDFLAGS}" ; then
9578 LDFLAGS="${im_cv_ld_lazyload}"
9579 else
9580 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
9581 fi
9582fi
9583
9584case "$host" in
cristyc37574e2013-02-16 01:04:55 +00009585 *darwin* | *-macos10*)
cristyb3b90d32013-02-16 15:44:08 +00009586 CFLAGS="${CFLAGS} -D_FORTIFY_SOURCE=0"
cristyc37574e2013-02-16 01:04:55 +00009587 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00009588if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009589 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
9590else
9591 build_osxuniversal=no
9592fi
9593
9594
cristyc37574e2013-02-16 01:04:55 +00009595 if test "${build_osxuniversal}" != no ; then
9596 if test "$enable_dependency_tracking" != no ; then
9597 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00009598Please re-run configure with these options:
9599 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00009600 " "$LINENO" 5
cristyc37574e2013-02-16 01:04:55 +00009601 fi
9602 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
9603 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
9604 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
cristy3ed852e2009-09-05 21:47:34 +00009605 fi
9606 ;;
9607esac
9608
cristy0151ae12011-10-28 16:32:29 +00009609#
9610# ARCH specific include directory
9611#
9612
cristy670aa3c2011-11-03 00:54:00 +00009613# Check whether --with-includearch-dir was given.
9614if test "${with_includearch_dir+set}" = set; then :
9615 withval=$with_includearch_dir; includearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00009616else
cristy670aa3c2011-11-03 00:54:00 +00009617 includearch_dir=$INCLUDE_DIR
cristy0151ae12011-10-28 16:32:29 +00009618fi
9619
9620
cristyd286fd72013-02-24 19:25:33 +00009621eval "eval INCLUDEARCH_DIR=$includearch_dir"
cristyac9041a2011-10-28 16:52:32 +00009622
cristy0151ae12011-10-28 16:32:29 +00009623
9624#
9625# ARCH specific configuration directory
9626#
9627
cristy670aa3c2011-11-03 00:54:00 +00009628# Check whether --with-sharearch-dir was given.
9629if test "${with_sharearch_dir+set}" = set; then :
9630 withval=$with_sharearch_dir; sharearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00009631else
cristy408ebcd2011-11-14 01:36:57 +00009632 sharearch_dir="${LIB_DIR}"
cristy0151ae12011-10-28 16:32:29 +00009633fi
9634
9635
cristy670aa3c2011-11-03 00:54:00 +00009636eval "eval SHAREARCH_DIR=$sharearch_dir"
cristyac9041a2011-10-28 16:52:32 +00009637
cristy0151ae12011-10-28 16:32:29 +00009638
cristy2ec87cc2013-02-18 17:46:50 +00009639# Path to the pkgconfig folder
9640
9641# Check whether --with-pkgconfigdir was given.
9642if test "${with_pkgconfigdir+set}" = set; then :
9643 withval=$with_pkgconfigdir; pkgconfigdir="$withval"
9644else
9645 pkgconfigdir='${libdir}/pkgconfig'
9646fi
9647
9648
9649
cristy0151ae12011-10-28 16:32:29 +00009650#
cristy3ed852e2009-09-05 21:47:34 +00009651# Enable support for threads
cristy1ae5c992013-07-30 14:55:07 +00009652#
9653# Find Posix threads library
9654#
cristy3ed852e2009-09-05 21:47:34 +00009655
9656# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00009657if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009658 withval=$with_threads; with_threads=$withval
9659else
9660 with_threads='yes'
9661fi
9662
9663
cristy1ae5c992013-07-30 14:55:07 +00009664THREAD_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00009665have_threads=no
9666if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00009667
9668
cristy73bd4a52010-10-05 11:24:23 +00009669ac_ext=c
9670ac_cpp='$CPP $CPPFLAGS'
9671ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9672ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9673ac_compiler_gnu=$ac_cv_c_compiler_gnu
9674
9675ax_pthread_ok=no
9676
9677# We used to check for pthread.h first, but this fails if pthread.h
9678# requires special compiler flags (e.g. on True64 or Sequent).
9679# It gets checked for in the link test anyway.
9680
9681# First of all, check if the user has set any of the PTHREAD_LIBS,
9682# etcetera environment variables, and if threads linking works using
9683# them:
9684if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9685 save_CFLAGS="$CFLAGS"
9686 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9687 save_LIBS="$LIBS"
9688 LIBS="$PTHREAD_LIBS $LIBS"
9689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9690$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9692/* end confdefs.h. */
9693
9694/* Override any GCC internal prototype to avoid an error.
9695 Use char because int might match the return type of a GCC
9696 builtin and then its argument prototype would still apply. */
9697#ifdef __cplusplus
9698extern "C"
9699#endif
9700char pthread_join ();
9701int
9702main ()
9703{
9704return pthread_join ();
9705 ;
9706 return 0;
9707}
9708_ACEOF
9709if ac_fn_c_try_link "$LINENO"; then :
9710 ax_pthread_ok=yes
9711fi
9712rm -f core conftest.err conftest.$ac_objext \
9713 conftest$ac_exeext conftest.$ac_ext
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9715$as_echo "$ax_pthread_ok" >&6; }
9716 if test x"$ax_pthread_ok" = xno; then
9717 PTHREAD_LIBS=""
9718 PTHREAD_CFLAGS=""
9719 fi
9720 LIBS="$save_LIBS"
9721 CFLAGS="$save_CFLAGS"
9722fi
9723
9724# We must check for the threads library under a number of different
9725# names; the ordering is very important because some systems
9726# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9727# libraries is broken (non-POSIX).
9728
9729# Create a list of thread flags to try. Items starting with a "-" are
9730# C compiler flags, and other items are library names, except for "none"
9731# which indicates that we try without any flags at all, and "pthread-config"
9732# which is a program returning the flags for the Pth emulation library.
9733
cristy2ec87cc2013-02-18 17:46:50 +00009734ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009735
9736# The ordering *is* (sometimes) important. Some notes on the
9737# individual items follow:
9738
9739# pthreads: AIX (must check this before -lpthread)
9740# none: in case threads are in libc; should be tried before -Kthread and
9741# other compiler flags to prevent continual compiler warnings
9742# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9743# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9744# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9745# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9746# -pthreads: Solaris/gcc
9747# -mthreads: Mingw32/gcc, Lynx/gcc
9748# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9749# doesn't hurt to check since this sometimes defines pthreads too;
9750# also defines -D_REENTRANT)
9751# ... -mt is also the pthreads flag for HP/aCC
9752# pthread: Linux, etcetera
9753# --thread-safe: KAI C++
9754# pthread-config: use pthread-config program (for GNU Pth library)
9755
cristy2ec87cc2013-02-18 17:46:50 +00009756case ${host_os} in
9757 solaris*)
cristy73bd4a52010-10-05 11:24:23 +00009758
9759 # On Solaris (at least, for some versions), libc contains stubbed
9760 # (non-functional) versions of the pthreads routines, so link-based
9761 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9762 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9763 # a function called by this macro, so we could check for that, but
9764 # who knows whether they'll stub that too in a future libc.) So,
9765 # we'll just look for -pthreads and -lpthread first:
9766
9767 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9768 ;;
9769
cristy2ec87cc2013-02-18 17:46:50 +00009770 darwin*)
cristya316db12011-10-24 00:49:45 +00009771 ax_pthread_flags="-pthread $ax_pthread_flags"
9772 ;;
cristy73bd4a52010-10-05 11:24:23 +00009773esac
9774
cristy17491be2014-06-24 01:10:53 +00009775# Clang doesn't consider unrecognized options an error unless we specify
9776# -Werror. We throw in some extra Clang-specific options to ensure that
9777# this doesn't happen for GCC, which also accepts -Werror.
9778
9779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
9780$as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; }
9781save_CFLAGS="$CFLAGS"
9782ax_pthread_extra_flags="-Werror"
9783CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
9784cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9785/* end confdefs.h. */
9786int foo(void);
9787int
9788main ()
9789{
9790foo()
9791 ;
9792 return 0;
9793}
9794_ACEOF
9795if ac_fn_c_try_compile "$LINENO"; then :
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9797$as_echo "yes" >&6; }
9798else
9799 ax_pthread_extra_flags=
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9801$as_echo "no" >&6; }
9802fi
9803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9804CFLAGS="$save_CFLAGS"
9805
cristy73bd4a52010-10-05 11:24:23 +00009806if test x"$ax_pthread_ok" = xno; then
9807for flag in $ax_pthread_flags; do
9808
9809 case $flag in
9810 none)
9811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9812$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9813 ;;
9814
9815 -*)
9816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9817$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9818 PTHREAD_CFLAGS="$flag"
9819 ;;
9820
cristya316db12011-10-24 00:49:45 +00009821 pthread-config)
9822 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009823set dummy pthread-config; ac_word=$2
9824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9825$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009826if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009827 $as_echo_n "(cached) " >&6
9828else
9829 if test -n "$ax_pthread_config"; then
9830 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9831else
9832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9833for as_dir in $PATH
9834do
9835 IFS=$as_save_IFS
9836 test -z "$as_dir" && as_dir=.
9837 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009839 ac_cv_prog_ax_pthread_config="yes"
9840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9841 break 2
9842 fi
9843done
9844 done
9845IFS=$as_save_IFS
9846
9847 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9848fi
9849fi
9850ax_pthread_config=$ac_cv_prog_ax_pthread_config
9851if test -n "$ax_pthread_config"; then
9852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9853$as_echo "$ax_pthread_config" >&6; }
9854else
9855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9856$as_echo "no" >&6; }
9857fi
9858
9859
cristya316db12011-10-24 00:49:45 +00009860 if test x"$ax_pthread_config" = xno; then continue; fi
9861 PTHREAD_CFLAGS="`pthread-config --cflags`"
9862 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9863 ;;
cristy73bd4a52010-10-05 11:24:23 +00009864
9865 *)
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9867$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9868 PTHREAD_LIBS="-l$flag"
9869 ;;
9870 esac
9871
9872 save_LIBS="$LIBS"
9873 save_CFLAGS="$CFLAGS"
9874 LIBS="$PTHREAD_LIBS $LIBS"
cristy17491be2014-06-24 01:10:53 +00009875 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
cristy73bd4a52010-10-05 11:24:23 +00009876
9877 # Check for various functions. We must include pthread.h,
9878 # since some functions may be macros. (On the Sequent, we
9879 # need a special flag -Kthread to make this header compile.)
9880 # We check for pthread_join because it is in -lpthread on IRIX
9881 # while pthread_create is in libc. We check for pthread_attr_init
9882 # due to DEC craziness with -lpthreads. We check for
9883 # pthread_cleanup_push because it is one of the few pthread
9884 # functions on Solaris that doesn't have a non-functional libc stub.
9885 # We try pthread_create on general principles.
9886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9887/* end confdefs.h. */
9888#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009889 static void routine(void *a) { a = 0; }
9890 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009891int
9892main ()
9893{
9894pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009895 pthread_create(&th, 0, start_routine, 0);
9896 pthread_join(th, 0);
9897 pthread_attr_init(&attr);
9898 pthread_cleanup_push(routine, 0);
9899 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009900 ;
9901 return 0;
9902}
9903_ACEOF
9904if ac_fn_c_try_link "$LINENO"; then :
9905 ax_pthread_ok=yes
9906fi
9907rm -f core conftest.err conftest.$ac_objext \
9908 conftest$ac_exeext conftest.$ac_ext
9909
9910 LIBS="$save_LIBS"
9911 CFLAGS="$save_CFLAGS"
9912
9913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9914$as_echo "$ax_pthread_ok" >&6; }
9915 if test "x$ax_pthread_ok" = xyes; then
9916 break;
9917 fi
9918
9919 PTHREAD_LIBS=""
9920 PTHREAD_CFLAGS=""
9921done
9922fi
9923
9924# Various other checks:
9925if test "x$ax_pthread_ok" = xyes; then
9926 save_LIBS="$LIBS"
9927 LIBS="$PTHREAD_LIBS $LIBS"
9928 save_CFLAGS="$CFLAGS"
9929 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9930
9931 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009933$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009934 attr_name=unknown
9935 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009937/* end confdefs.h. */
9938#include <pthread.h>
9939int
9940main ()
9941{
cristya316db12011-10-24 00:49:45 +00009942int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009943 ;
9944 return 0;
9945}
9946_ACEOF
9947if ac_fn_c_try_link "$LINENO"; then :
9948 attr_name=$attr; break
9949fi
9950rm -f core conftest.err conftest.$ac_objext \
9951 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009952 done
cristy73bd4a52010-10-05 11:24:23 +00009953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9954$as_echo "$attr_name" >&6; }
9955 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9956
9957cat >>confdefs.h <<_ACEOF
9958#define PTHREAD_CREATE_JOINABLE $attr_name
9959_ACEOF
9960
9961 fi
9962
9963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9964$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9965 flag=no
cristy2ec87cc2013-02-18 17:46:50 +00009966 case ${host_os} in
9967 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
9968 osf* | hpux*) flag="-D_REENTRANT";;
9969 solaris*)
9970 if test "$GCC" = "yes"; then
9971 flag="-D_REENTRANT"
9972 else
cristy17491be2014-06-24 01:10:53 +00009973 # TODO: What about Clang on Solaris?
cristy2ec87cc2013-02-18 17:46:50 +00009974 flag="-mt -D_REENTRANT"
9975 fi
9976 ;;
cristy73bd4a52010-10-05 11:24:23 +00009977 esac
cristy17491be2014-06-24 01:10:53 +00009978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
9979$as_echo "$flag" >&6; }
cristy73bd4a52010-10-05 11:24:23 +00009980 if test "x$flag" != xno; then
9981 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9982 fi
9983
cristya316db12011-10-24 00:49:45 +00009984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9985$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9986if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9987 $as_echo_n "(cached) " >&6
9988else
9989
9990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9991/* end confdefs.h. */
cristy17491be2014-06-24 01:10:53 +00009992#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009993int
9994main ()
9995{
9996int i = PTHREAD_PRIO_INHERIT;
9997 ;
9998 return 0;
9999}
10000_ACEOF
10001if ac_fn_c_try_link "$LINENO"; then :
10002 ax_cv_PTHREAD_PRIO_INHERIT=yes
10003else
10004 ax_cv_PTHREAD_PRIO_INHERIT=no
10005fi
10006rm -f core conftest.err conftest.$ac_objext \
10007 conftest$ac_exeext conftest.$ac_ext
10008
10009fi
10010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
10011$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
10012 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
10013
10014$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
10015
10016fi
10017
cristy73bd4a52010-10-05 11:24:23 +000010018 LIBS="$save_LIBS"
10019 CFLAGS="$save_CFLAGS"
10020
cristy23493c42013-04-11 16:04:59 +000010021 # More AIX lossage: compile with *_r variant
10022 if test "x$GCC" != xyes; then
10023 case $host_os in
10024 aix*)
10025 case "x/$CC" in #(
10026 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
10027 #handle absolute path differently from PATH based program lookup
10028 case "x$CC" in #(
10029 x/*) :
10030 if as_fn_executable_p ${CC}_r; then :
10031 PTHREAD_CC="${CC}_r"
10032fi ;; #(
10033 *) :
10034 for ac_prog in ${CC}_r
cristy73bd4a52010-10-05 11:24:23 +000010035do
10036 # Extract the first word of "$ac_prog", so it can be a program name with args.
10037set dummy $ac_prog; ac_word=$2
10038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10039$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010040if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010041 $as_echo_n "(cached) " >&6
10042else
10043 if test -n "$PTHREAD_CC"; then
10044 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
10045else
10046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10047for as_dir in $PATH
10048do
10049 IFS=$as_save_IFS
10050 test -z "$as_dir" && as_dir=.
10051 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010053 ac_cv_prog_PTHREAD_CC="$ac_prog"
10054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10055 break 2
10056 fi
10057done
10058 done
10059IFS=$as_save_IFS
10060
10061fi
10062fi
10063PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
10064if test -n "$PTHREAD_CC"; then
10065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
10066$as_echo "$PTHREAD_CC" >&6; }
10067else
10068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10069$as_echo "no" >&6; }
10070fi
10071
10072
10073 test -n "$PTHREAD_CC" && break
10074done
cristy23493c42013-04-11 16:04:59 +000010075test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10076 ;;
10077esac ;; #(
10078 *) :
10079 ;;
10080esac
10081 ;;
10082 esac
cristya316db12011-10-24 00:49:45 +000010083 fi
cristy73bd4a52010-10-05 11:24:23 +000010084fi
10085
cristy23493c42013-04-11 16:04:59 +000010086test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10087
cristy73bd4a52010-10-05 11:24:23 +000010088
10089
10090
10091
10092# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
10093if test x"$ax_pthread_ok" = xyes; then
10094
10095$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10096
10097 :
10098else
10099 ax_pthread_ok=no
10100
10101fi
10102ac_ext=c
10103ac_cpp='$CPP $CPPFLAGS'
10104ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10105ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10106ac_compiler_gnu=$ac_cv_c_compiler_gnu
10107
10108
cristy7acf8fb2010-09-23 19:58:53 +000010109 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +000010110 have_threads=yes
10111 DEF_THREAD="$PTHREAD_CFLAGS"
10112 CFLAGS="$CFLAGS $DEF_THREAD"
10113 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
cristy1ae5c992013-07-30 14:55:07 +000010114 THREAD_LIBS="$PTHREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000010115 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +000010116 { $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 +000010117$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
10118 CC="$PTHREAD_CC"
10119 fi
cristy55bf91c2010-09-24 00:29:41 +000010120
10121$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
10122
cristy3ed852e2009-09-05 21:47:34 +000010123 fi
10124fi
cristy1ae5c992013-07-30 14:55:07 +000010125LIBS="$LIBS $THREAD_LIBS"
10126
cristy3ed852e2009-09-05 21:47:34 +000010127
10128# Enable support for OpenMP
10129if test "$have_threads" != 'yes'; then
10130 ac_cv_prog_c_openmp=unsupported
10131fi
10132
10133 OPENMP_CFLAGS=
10134 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000010135if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010136 enableval=$enable_openmp;
10137fi
10138
10139 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +000010140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +000010141$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010142if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010143 $as_echo_n "(cached) " >&6
10144else
cristy8b350f62009-11-15 23:12:43 +000010145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10146/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000010147
10148#ifndef _OPENMP
10149 choke me
10150#endif
10151#include <omp.h>
10152int main () { return omp_get_num_threads (); }
10153
10154_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010155if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010156 ac_cv_prog_c_openmp='none needed'
10157else
cristy8b350f62009-11-15 23:12:43 +000010158 ac_cv_prog_c_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +000010159 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
10160 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +000010161 ac_save_CFLAGS=$CFLAGS
10162 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000010163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10164/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000010165
10166#ifndef _OPENMP
10167 choke me
10168#endif
10169#include <omp.h>
10170int main () { return omp_get_num_threads (); }
10171
10172_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010173if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010174 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000010175fi
cristy8b350f62009-11-15 23:12:43 +000010176rm -f core conftest.err conftest.$ac_objext \
10177 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010178 CFLAGS=$ac_save_CFLAGS
10179 if test "$ac_cv_prog_c_openmp" != unsupported; then
10180 break
10181 fi
10182 done
10183fi
cristy8b350f62009-11-15 23:12:43 +000010184rm -f core conftest.err conftest.$ac_objext \
10185 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010186fi
cristy8b350f62009-11-15 23:12:43 +000010187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000010188$as_echo "$ac_cv_prog_c_openmp" >&6; }
10189 case $ac_cv_prog_c_openmp in #(
10190 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000010191 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000010192 *)
cristy8b350f62009-11-15 23:12:43 +000010193 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000010194 esac
10195 fi
10196
10197
10198CFLAGS="$OPENMP_CFLAGS $CFLAGS"
10199MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
10200
cristy391f1ce2010-09-09 17:23:28 +000010201if test "$enable_openmp" != no; then
10202 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
10203 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
10204 fi
10205fi
cristy3ed852e2009-09-05 21:47:34 +000010206
cristy736173a2009-09-20 21:18:22 +000010207# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +000010208
10209
cristy73bd4a52010-10-05 11:24:23 +000010210ac_ext=c
10211ac_cpp='$CPP $CPPFLAGS'
10212ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10213ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10214ac_compiler_gnu=$ac_cv_c_compiler_gnu
10215
10216ax_pthread_ok=no
10217
10218# We used to check for pthread.h first, but this fails if pthread.h
10219# requires special compiler flags (e.g. on True64 or Sequent).
10220# It gets checked for in the link test anyway.
10221
10222# First of all, check if the user has set any of the PTHREAD_LIBS,
10223# etcetera environment variables, and if threads linking works using
10224# them:
10225if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
10226 save_CFLAGS="$CFLAGS"
10227 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
10228 save_LIBS="$LIBS"
10229 LIBS="$PTHREAD_LIBS $LIBS"
10230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
10231$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
10232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10233/* end confdefs.h. */
10234
10235/* Override any GCC internal prototype to avoid an error.
10236 Use char because int might match the return type of a GCC
10237 builtin and then its argument prototype would still apply. */
10238#ifdef __cplusplus
10239extern "C"
10240#endif
10241char pthread_join ();
10242int
10243main ()
10244{
10245return pthread_join ();
10246 ;
10247 return 0;
10248}
10249_ACEOF
10250if ac_fn_c_try_link "$LINENO"; then :
10251 ax_pthread_ok=yes
10252fi
10253rm -f core conftest.err conftest.$ac_objext \
10254 conftest$ac_exeext conftest.$ac_ext
10255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
10256$as_echo "$ax_pthread_ok" >&6; }
10257 if test x"$ax_pthread_ok" = xno; then
10258 PTHREAD_LIBS=""
10259 PTHREAD_CFLAGS=""
10260 fi
10261 LIBS="$save_LIBS"
10262 CFLAGS="$save_CFLAGS"
10263fi
10264
10265# We must check for the threads library under a number of different
10266# names; the ordering is very important because some systems
10267# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
10268# libraries is broken (non-POSIX).
10269
10270# Create a list of thread flags to try. Items starting with a "-" are
10271# C compiler flags, and other items are library names, except for "none"
10272# which indicates that we try without any flags at all, and "pthread-config"
10273# which is a program returning the flags for the Pth emulation library.
10274
cristy2ec87cc2013-02-18 17:46:50 +000010275ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy73bd4a52010-10-05 11:24:23 +000010276
10277# The ordering *is* (sometimes) important. Some notes on the
10278# individual items follow:
10279
10280# pthreads: AIX (must check this before -lpthread)
10281# none: in case threads are in libc; should be tried before -Kthread and
10282# other compiler flags to prevent continual compiler warnings
10283# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
10284# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
10285# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
10286# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
10287# -pthreads: Solaris/gcc
10288# -mthreads: Mingw32/gcc, Lynx/gcc
10289# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
10290# doesn't hurt to check since this sometimes defines pthreads too;
10291# also defines -D_REENTRANT)
10292# ... -mt is also the pthreads flag for HP/aCC
10293# pthread: Linux, etcetera
10294# --thread-safe: KAI C++
10295# pthread-config: use pthread-config program (for GNU Pth library)
10296
cristy2ec87cc2013-02-18 17:46:50 +000010297case ${host_os} in
10298 solaris*)
cristy73bd4a52010-10-05 11:24:23 +000010299
10300 # On Solaris (at least, for some versions), libc contains stubbed
10301 # (non-functional) versions of the pthreads routines, so link-based
10302 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
10303 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
10304 # a function called by this macro, so we could check for that, but
10305 # who knows whether they'll stub that too in a future libc.) So,
10306 # we'll just look for -pthreads and -lpthread first:
10307
10308 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
10309 ;;
10310
cristy2ec87cc2013-02-18 17:46:50 +000010311 darwin*)
cristya316db12011-10-24 00:49:45 +000010312 ax_pthread_flags="-pthread $ax_pthread_flags"
10313 ;;
cristy73bd4a52010-10-05 11:24:23 +000010314esac
10315
cristy17491be2014-06-24 01:10:53 +000010316# Clang doesn't consider unrecognized options an error unless we specify
10317# -Werror. We throw in some extra Clang-specific options to ensure that
10318# this doesn't happen for GCC, which also accepts -Werror.
10319
10320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
10321$as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; }
10322save_CFLAGS="$CFLAGS"
10323ax_pthread_extra_flags="-Werror"
10324CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
10325cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10326/* end confdefs.h. */
10327int foo(void);
10328int
10329main ()
10330{
10331foo()
10332 ;
10333 return 0;
10334}
10335_ACEOF
10336if ac_fn_c_try_compile "$LINENO"; then :
10337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10338$as_echo "yes" >&6; }
10339else
10340 ax_pthread_extra_flags=
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10342$as_echo "no" >&6; }
10343fi
10344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10345CFLAGS="$save_CFLAGS"
10346
cristy73bd4a52010-10-05 11:24:23 +000010347if test x"$ax_pthread_ok" = xno; then
10348for flag in $ax_pthread_flags; do
10349
10350 case $flag in
10351 none)
10352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
10353$as_echo_n "checking whether pthreads work without any flags... " >&6; }
10354 ;;
10355
10356 -*)
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
10358$as_echo_n "checking whether pthreads work with $flag... " >&6; }
10359 PTHREAD_CFLAGS="$flag"
10360 ;;
10361
cristya316db12011-10-24 00:49:45 +000010362 pthread-config)
10363 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +000010364set dummy pthread-config; ac_word=$2
10365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10366$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010367if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010368 $as_echo_n "(cached) " >&6
10369else
10370 if test -n "$ax_pthread_config"; then
10371 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
10372else
10373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10374for as_dir in $PATH
10375do
10376 IFS=$as_save_IFS
10377 test -z "$as_dir" && as_dir=.
10378 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010380 ac_cv_prog_ax_pthread_config="yes"
10381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10382 break 2
10383 fi
10384done
10385 done
10386IFS=$as_save_IFS
10387
10388 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
10389fi
10390fi
10391ax_pthread_config=$ac_cv_prog_ax_pthread_config
10392if test -n "$ax_pthread_config"; then
10393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
10394$as_echo "$ax_pthread_config" >&6; }
10395else
10396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10397$as_echo "no" >&6; }
10398fi
10399
10400
cristya316db12011-10-24 00:49:45 +000010401 if test x"$ax_pthread_config" = xno; then continue; fi
10402 PTHREAD_CFLAGS="`pthread-config --cflags`"
10403 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
10404 ;;
cristy73bd4a52010-10-05 11:24:23 +000010405
10406 *)
10407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
10408$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
10409 PTHREAD_LIBS="-l$flag"
10410 ;;
10411 esac
10412
10413 save_LIBS="$LIBS"
10414 save_CFLAGS="$CFLAGS"
10415 LIBS="$PTHREAD_LIBS $LIBS"
cristy17491be2014-06-24 01:10:53 +000010416 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
cristy73bd4a52010-10-05 11:24:23 +000010417
10418 # Check for various functions. We must include pthread.h,
10419 # since some functions may be macros. (On the Sequent, we
10420 # need a special flag -Kthread to make this header compile.)
10421 # We check for pthread_join because it is in -lpthread on IRIX
10422 # while pthread_create is in libc. We check for pthread_attr_init
10423 # due to DEC craziness with -lpthreads. We check for
10424 # pthread_cleanup_push because it is one of the few pthread
10425 # functions on Solaris that doesn't have a non-functional libc stub.
10426 # We try pthread_create on general principles.
10427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10428/* end confdefs.h. */
10429#include <pthread.h>
cristya316db12011-10-24 00:49:45 +000010430 static void routine(void *a) { a = 0; }
10431 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +000010432int
10433main ()
10434{
10435pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +000010436 pthread_create(&th, 0, start_routine, 0);
10437 pthread_join(th, 0);
10438 pthread_attr_init(&attr);
10439 pthread_cleanup_push(routine, 0);
10440 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +000010441 ;
10442 return 0;
10443}
10444_ACEOF
10445if ac_fn_c_try_link "$LINENO"; then :
10446 ax_pthread_ok=yes
10447fi
10448rm -f core conftest.err conftest.$ac_objext \
10449 conftest$ac_exeext conftest.$ac_ext
10450
10451 LIBS="$save_LIBS"
10452 CFLAGS="$save_CFLAGS"
10453
10454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
10455$as_echo "$ax_pthread_ok" >&6; }
10456 if test "x$ax_pthread_ok" = xyes; then
10457 break;
10458 fi
10459
10460 PTHREAD_LIBS=""
10461 PTHREAD_CFLAGS=""
10462done
10463fi
10464
10465# Various other checks:
10466if test "x$ax_pthread_ok" = xyes; then
10467 save_LIBS="$LIBS"
10468 LIBS="$PTHREAD_LIBS $LIBS"
10469 save_CFLAGS="$CFLAGS"
10470 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
10471
10472 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +000010473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +000010474$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +000010475 attr_name=unknown
10476 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
10477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000010478/* end confdefs.h. */
10479#include <pthread.h>
10480int
10481main ()
10482{
cristya316db12011-10-24 00:49:45 +000010483int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +000010484 ;
10485 return 0;
10486}
10487_ACEOF
10488if ac_fn_c_try_link "$LINENO"; then :
10489 attr_name=$attr; break
10490fi
10491rm -f core conftest.err conftest.$ac_objext \
10492 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +000010493 done
cristy73bd4a52010-10-05 11:24:23 +000010494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
10495$as_echo "$attr_name" >&6; }
10496 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
10497
10498cat >>confdefs.h <<_ACEOF
10499#define PTHREAD_CREATE_JOINABLE $attr_name
10500_ACEOF
10501
10502 fi
10503
10504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
10505$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
10506 flag=no
cristy2ec87cc2013-02-18 17:46:50 +000010507 case ${host_os} in
10508 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
10509 osf* | hpux*) flag="-D_REENTRANT";;
10510 solaris*)
10511 if test "$GCC" = "yes"; then
10512 flag="-D_REENTRANT"
10513 else
cristy17491be2014-06-24 01:10:53 +000010514 # TODO: What about Clang on Solaris?
cristy2ec87cc2013-02-18 17:46:50 +000010515 flag="-mt -D_REENTRANT"
10516 fi
10517 ;;
cristy73bd4a52010-10-05 11:24:23 +000010518 esac
cristy17491be2014-06-24 01:10:53 +000010519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
10520$as_echo "$flag" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000010521 if test "x$flag" != xno; then
10522 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
10523 fi
10524
cristya316db12011-10-24 00:49:45 +000010525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
10526$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
10527if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
10528 $as_echo_n "(cached) " >&6
10529else
10530
10531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10532/* end confdefs.h. */
cristy17491be2014-06-24 01:10:53 +000010533#include <pthread.h>
cristya316db12011-10-24 00:49:45 +000010534int
10535main ()
10536{
10537int i = PTHREAD_PRIO_INHERIT;
10538 ;
10539 return 0;
10540}
10541_ACEOF
10542if ac_fn_c_try_link "$LINENO"; then :
10543 ax_cv_PTHREAD_PRIO_INHERIT=yes
10544else
10545 ax_cv_PTHREAD_PRIO_INHERIT=no
10546fi
10547rm -f core conftest.err conftest.$ac_objext \
10548 conftest$ac_exeext conftest.$ac_ext
10549
10550fi
10551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
10552$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
10553 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
10554
10555$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
10556
10557fi
10558
cristy73bd4a52010-10-05 11:24:23 +000010559 LIBS="$save_LIBS"
10560 CFLAGS="$save_CFLAGS"
10561
cristy23493c42013-04-11 16:04:59 +000010562 # More AIX lossage: compile with *_r variant
10563 if test "x$GCC" != xyes; then
10564 case $host_os in
10565 aix*)
10566 case "x/$CC" in #(
10567 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
10568 #handle absolute path differently from PATH based program lookup
10569 case "x$CC" in #(
10570 x/*) :
10571 if as_fn_executable_p ${CC}_r; then :
10572 PTHREAD_CC="${CC}_r"
10573fi ;; #(
10574 *) :
10575 for ac_prog in ${CC}_r
cristy73bd4a52010-10-05 11:24:23 +000010576do
10577 # Extract the first word of "$ac_prog", so it can be a program name with args.
10578set dummy $ac_prog; ac_word=$2
10579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10580$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010581if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010582 $as_echo_n "(cached) " >&6
10583else
10584 if test -n "$PTHREAD_CC"; then
10585 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
10586else
10587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10588for as_dir in $PATH
10589do
10590 IFS=$as_save_IFS
10591 test -z "$as_dir" && as_dir=.
10592 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010594 ac_cv_prog_PTHREAD_CC="$ac_prog"
10595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10596 break 2
10597 fi
10598done
10599 done
10600IFS=$as_save_IFS
10601
10602fi
10603fi
10604PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
10605if test -n "$PTHREAD_CC"; then
10606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
10607$as_echo "$PTHREAD_CC" >&6; }
10608else
10609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10610$as_echo "no" >&6; }
10611fi
10612
10613
10614 test -n "$PTHREAD_CC" && break
10615done
cristy23493c42013-04-11 16:04:59 +000010616test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10617 ;;
10618esac ;; #(
10619 *) :
10620 ;;
10621esac
10622 ;;
10623 esac
cristya316db12011-10-24 00:49:45 +000010624 fi
cristy73bd4a52010-10-05 11:24:23 +000010625fi
10626
cristy23493c42013-04-11 16:04:59 +000010627test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10628
cristy73bd4a52010-10-05 11:24:23 +000010629
10630
10631
10632
10633# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
10634if test x"$ax_pthread_ok" = xyes; then
10635
10636$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10637
10638 :
10639else
10640 ax_pthread_ok=no
10641
10642fi
10643ac_ext=c
10644ac_cpp='$CPP $CPPFLAGS'
10645ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10646ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10647ac_compiler_gnu=$ac_cv_c_compiler_gnu
10648
10649
10650
10651# Check whether --enable-opencl was given.
10652if test "${enable_opencl+set}" = set; then :
cristy48794642012-09-02 15:19:08 +000010653 enableval=$enable_opencl; enable_opencl=$enableval
cristy73bd4a52010-10-05 11:24:23 +000010654else
cristy48794642012-09-02 15:19:08 +000010655 enable_opencl='no'
cristy73bd4a52010-10-05 11:24:23 +000010656fi
10657
10658
cristy48794642012-09-02 15:19:08 +000010659if test "$enable_opencl" = 'yes'; then
cristy73bd4a52010-10-05 11:24:23 +000010660 ac_ext=c
10661ac_cpp='$CPP $CPPFLAGS'
10662ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10663ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10664ac_compiler_gnu=$ac_cv_c_compiler_gnu
10665
cristy75314cc2012-09-15 23:08:29 +000010666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
10667$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
10668if ${ax_cv_c_compiler_ms+:} false; then :
10669 $as_echo_n "(cached) " >&6
10670else
10671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10672/* end confdefs.h. */
10673
10674int
10675main ()
10676{
10677#ifndef _MSC_VER
10678 choke me
10679#endif
10680
10681 ;
10682 return 0;
10683}
10684_ACEOF
10685if ac_fn_c_try_compile "$LINENO"; then :
10686 ax_compiler_ms=yes
10687else
10688 ax_compiler_ms=no
10689fi
10690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10691ax_cv_c_compiler_ms=$ax_compiler_ms
10692
10693fi
10694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
10695$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000010696 if test X$ax_compiler_ms = Xno; then :
10697 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
10698fi
10699
10700 ax_save_CPPFLAGS=$CPPFLAGS
cristyfdc7d122013-08-17 20:46:45 +000010701 ax_save_CL_CFLAGS=$CL_CFLAGS
10702
10703 found_opencl_header='no'
cristy73bd4a52010-10-05 11:24:23 +000010704 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
10705 for ac_header in CL/cl.h OpenCL/cl.h
10706do :
10707 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10708ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000010709if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000010710 cat >>confdefs.h <<_ACEOF
10711#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10712_ACEOF
cristyfdc7d122013-08-17 20:46:45 +000010713 found_opencl_header='yes'
10714 break;
10715else
10716 found_opencl_header='no'
cristy73bd4a52010-10-05 11:24:23 +000010717fi
10718
10719done
10720
cristyfdc7d122013-08-17 20:46:45 +000010721
10722 if test X$found_opencl_header = Xno; then :
10723 { ac_cv_header_CL_cl_h=; unset ac_cv_header_CL_cl_h;}
10724 { ac_cv_header_OpenCL_cl_h=; unset ac_cv_header_OpenCL_cl_h;}
10725 CL_CFLAGS="-I$AMDAPPSDKROOT/include"
10726 CPPFLAGS="$ax_save_CPPFLAGS $CL_CFLAGS"
10727 for ac_header in CL/cl.h OpenCL/cl.h
10728do :
10729 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10730ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10731if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10732 cat >>confdefs.h <<_ACEOF
10733#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10734_ACEOF
10735 found_opencl_header='yes'
10736 break;
10737else
10738 found_opencl_header='no'
10739fi
10740
10741done
10742
10743
10744fi
10745
10746 CPPFLAGS="$ax_save_CPPFLAGS"
cristy73bd4a52010-10-05 11:24:23 +000010747
10748 for ac_header in windows.h
10749do :
10750 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000010751if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000010752 cat >>confdefs.h <<_ACEOF
10753#define HAVE_WINDOWS_H 1
10754_ACEOF
10755
10756fi
10757
10758done
10759
10760
10761
10762
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
10764$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010765if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010766 $as_echo_n "(cached) " >&6
10767else
10768 ax_cv_check_cl_libcl=no
10769 case $host_cpu in
cristyfdc7d122013-08-17 20:46:45 +000010770 x86_64) ax_check_cl_libdir=lib64
10771 ax_check_cl_amd_libdir=x86_64
10772 ;;
10773 *) ax_check_cl_libdir=lib
10774 ax_check_cl_amd_libdir=x86
10775 ;;
cristy73bd4a52010-10-05 11:24:23 +000010776 esac
10777 ax_save_CPPFLAGS=$CPPFLAGS
10778 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
10779 ax_save_LIBS=$LIBS
10780 LIBS=""
10781 ax_check_libs="-lOpenCL -lCL -lclparser"
10782 for ax_lib in $ax_check_libs; do
10783 if test X$ax_compiler_ms = Xyes; then :
10784 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
10785else
10786 ax_try_lib=$ax_lib
10787fi
10788 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
10789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10790/* end confdefs.h. */
10791
10792 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10793 # include <windows.h>
10794 # endif
10795 # ifdef HAVE_CL_CL_H
10796 # include <CL/cl.h>
10797 # elif defined(HAVE_OPENCL_CL_H)
10798 # include <OpenCL/cl.h>
10799 # else
10800 # error no CL.h
10801 # endif
10802int
10803main ()
10804{
10805clCreateContextFromType(0,0,0,0,0)
10806 ;
10807 return 0;
10808}
10809_ACEOF
10810if ac_fn_c_try_link "$LINENO"; then :
10811 ax_cv_check_cl_libcl=$ax_try_lib; break
10812else
10813 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"
10814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10815/* end confdefs.h. */
10816
10817 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10818 # include <windows.h>
10819 # endif
10820 # ifdef HAVE_CL_CL_H
10821 # include <CL/cl.h>
10822 # elif defined(HAVE_OPENCL_CL_H)
10823 # include <OpenCL/cl.h>
10824 # else
10825 # error no CL.h
10826 # endif
10827int
10828main ()
10829{
10830clCreateContextFromType(0,0,0,0,0)
10831 ;
10832 return 0;
10833}
10834_ACEOF
10835if ac_fn_c_try_link "$LINENO"; then :
10836 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
10837else
cristy78c5a0c2010-12-04 20:00:59 +000010838 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 +000010839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10840/* end confdefs.h. */
10841
10842 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10843 # include <windows.h>
10844 # endif
10845 # ifdef HAVE_CL_CL_H
10846 # include <CL/cl.h>
10847 # elif defined(HAVE_OPENCL_CL_H)
10848 # include <OpenCL/cl.h>
10849 # else
10850 # error no CL.h
10851 # endif
10852int
10853main ()
10854{
10855clCreateContextFromType(0,0,0,0,0)
10856 ;
10857 return 0;
10858}
10859_ACEOF
10860if ac_fn_c_try_link "$LINENO"; then :
10861 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
cristyfdc7d122013-08-17 20:46:45 +000010862else
10863 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"
10864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10865/* end confdefs.h. */
10866
10867 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10868 # include <windows.h>
10869 # endif
10870 # ifdef HAVE_CL_CL_H
10871 # include <CL/cl.h>
10872 # elif defined(HAVE_OPENCL_CL_H)
10873 # include <OpenCL/cl.h>
10874 # else
10875 # error no CL.h
10876 # endif
10877int
10878main ()
10879{
10880clCreateContextFromType(0,0,0,0,0)
10881 ;
10882 return 0;
10883}
10884_ACEOF
10885if ac_fn_c_try_link "$LINENO"; then :
10886 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_amd_flags"; break
10887
10888fi
10889rm -f core conftest.err conftest.$ac_objext \
10890 conftest$ac_exeext conftest.$ac_ext
10891
10892
cristy73bd4a52010-10-05 11:24:23 +000010893fi
10894rm -f core conftest.err conftest.$ac_objext \
10895 conftest$ac_exeext conftest.$ac_ext
10896fi
10897rm -f core conftest.err conftest.$ac_objext \
10898 conftest$ac_exeext conftest.$ac_ext
10899fi
10900rm -f core conftest.err conftest.$ac_objext \
10901 conftest$ac_exeext conftest.$ac_ext
10902 done
10903
cristyc3f8b8e2011-12-22 14:55:16 +000010904 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy78c5a0c2010-12-04 20:00:59 +000010905 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +000010906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10907/* end confdefs.h. */
10908
10909 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10910 # include <windows.h>
10911 # endif
10912 # ifdef HAVE_CL_CL_H
10913 # include <CL/cl.h>
10914 # elif defined(HAVE_OPENCL_CL_H)
10915 # include <OpenCL/cl.h>
10916 # else
10917 # error no CL.h
10918 # endif
10919int
10920main ()
10921{
10922clCreateContextFromType(0,0,0,0,0)
10923 ;
10924 return 0;
10925}
10926_ACEOF
10927if ac_fn_c_try_link "$LINENO"; then :
10928 ax_cv_check_cl_libcl=$LIBS
10929fi
10930rm -f core conftest.err conftest.$ac_objext \
10931 conftest$ac_exeext conftest.$ac_ext
10932fi
10933
10934 LIBS=$ax_save_LIBS
10935 CPPFLAGS=$ax_save_CPPFLAGS
10936fi
10937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
10938$as_echo "$ax_cv_check_cl_libcl" >&6; }
10939
10940 if test "X$ax_cv_check_cl_libcl" = Xno; then :
10941 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
10942else
10943 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
10944$as_echo "#define _OPENCL 1" >>confdefs.h
10945
10946fi
10947 ac_ext=c
10948ac_cpp='$CPP $CPPFLAGS'
10949ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10950ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10951ac_compiler_gnu=$ac_cv_c_compiler_gnu
10952
10953fi
10954
10955
10956
cristy0c832c62014-03-07 22:21:04 +000010957#remove static link on Linux
10958CL_LIBS=`echo $CL_LIBS | $SED -e 's/-lOpenCL //'`
10959
cristy73bd4a52010-10-05 11:24:23 +000010960
cristyc7083c12009-10-14 03:16:55 +000010961CFLAGS="$CL_CFLAGS $CFLAGS"
cristyfdc7d122013-08-17 20:46:45 +000010962CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
cristyc7083c12009-10-14 03:16:55 +000010963LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +000010964
cristy391f1ce2010-09-09 17:23:28 +000010965if test "$enable_opencl" != no; then
cristy6e3607c2011-09-13 13:59:17 +000010966 if test "X$ax_cv_check_cl_libcl" != Xno; then :
cristy391f1ce2010-09-09 17:23:28 +000010967 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
10968 fi
cristyfd9dcd42010-08-08 18:07:02 +000010969fi
cristy2e8b51d2009-10-17 18:26:15 +000010970
cristy3ed852e2009-09-05 21:47:34 +000010971########
10972#
10973# Check for large file support
10974#
10975########
10976# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +000010977if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010978 enableval=$enable_largefile;
10979fi
10980
10981if test "$enable_largefile" != no; then
10982
cristy8b350f62009-11-15 23:12:43 +000010983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010984$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010985if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010986 $as_echo_n "(cached) " >&6
10987else
10988 ac_cv_sys_largefile_CC=no
10989 if test "$GCC" != yes; then
10990 ac_save_CC=$CC
10991 while :; do
10992 # IRIX 6.2 and later do not support large files by default,
10993 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +000010994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010995/* end confdefs.h. */
10996#include <sys/types.h>
10997 /* Check that off_t can represent 2**63 - 1 correctly.
10998 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10999 since some C++ compilers masquerading as C compilers
11000 incorrectly reject 9223372036854775807. */
11001#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11002 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11003 && LARGE_OFF_T % 2147483647 == 1)
11004 ? 1 : -1];
11005int
11006main ()
11007{
11008
11009 ;
11010 return 0;
11011}
11012_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011013 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011014 break
cristy3ed852e2009-09-05 21:47:34 +000011015fi
cristy3ed852e2009-09-05 21:47:34 +000011016rm -f core conftest.err conftest.$ac_objext
11017 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +000011018 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011019 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +000011020fi
cristy3ed852e2009-09-05 21:47:34 +000011021rm -f core conftest.err conftest.$ac_objext
11022 break
11023 done
11024 CC=$ac_save_CC
11025 rm -f conftest.$ac_ext
11026 fi
11027fi
cristy8b350f62009-11-15 23:12:43 +000011028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000011029$as_echo "$ac_cv_sys_largefile_CC" >&6; }
11030 if test "$ac_cv_sys_largefile_CC" != no; then
11031 CC=$CC$ac_cv_sys_largefile_CC
11032 fi
11033
cristy8b350f62009-11-15 23:12:43 +000011034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000011035$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011036if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000011037 $as_echo_n "(cached) " >&6
11038else
11039 while :; do
cristy8b350f62009-11-15 23:12:43 +000011040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011041/* end confdefs.h. */
11042#include <sys/types.h>
11043 /* Check that off_t can represent 2**63 - 1 correctly.
11044 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11045 since some C++ compilers masquerading as C compilers
11046 incorrectly reject 9223372036854775807. */
11047#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11048 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11049 && LARGE_OFF_T % 2147483647 == 1)
11050 ? 1 : -1];
11051int
11052main ()
11053{
11054
11055 ;
11056 return 0;
11057}
11058_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011059if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011060 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +000011061fi
cristy3ed852e2009-09-05 21:47:34 +000011062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000011063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011064/* end confdefs.h. */
11065#define _FILE_OFFSET_BITS 64
11066#include <sys/types.h>
11067 /* Check that off_t can represent 2**63 - 1 correctly.
11068 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11069 since some C++ compilers masquerading as C compilers
11070 incorrectly reject 9223372036854775807. */
11071#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11072 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11073 && LARGE_OFF_T % 2147483647 == 1)
11074 ? 1 : -1];
11075int
11076main ()
11077{
11078
11079 ;
11080 return 0;
11081}
11082_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011083if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011084 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +000011085fi
cristy3ed852e2009-09-05 21:47:34 +000011086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11087 ac_cv_sys_file_offset_bits=unknown
11088 break
11089done
11090fi
cristy8b350f62009-11-15 23:12:43 +000011091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +000011092$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11093case $ac_cv_sys_file_offset_bits in #(
11094 no | unknown) ;;
11095 *)
11096cat >>confdefs.h <<_ACEOF
11097#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11098_ACEOF
11099;;
11100esac
11101rm -rf conftest*
11102 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +000011103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000011104$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011105if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000011106 $as_echo_n "(cached) " >&6
11107else
11108 while :; do
cristy8b350f62009-11-15 23:12:43 +000011109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011110/* end confdefs.h. */
11111#include <sys/types.h>
11112 /* Check that off_t can represent 2**63 - 1 correctly.
11113 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11114 since some C++ compilers masquerading as C compilers
11115 incorrectly reject 9223372036854775807. */
11116#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11117 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11118 && LARGE_OFF_T % 2147483647 == 1)
11119 ? 1 : -1];
11120int
11121main ()
11122{
11123
11124 ;
11125 return 0;
11126}
11127_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011128if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011129 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +000011130fi
cristy3ed852e2009-09-05 21:47:34 +000011131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000011132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011133/* end confdefs.h. */
11134#define _LARGE_FILES 1
11135#include <sys/types.h>
11136 /* Check that off_t can represent 2**63 - 1 correctly.
11137 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11138 since some C++ compilers masquerading as C compilers
11139 incorrectly reject 9223372036854775807. */
11140#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11141 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11142 && LARGE_OFF_T % 2147483647 == 1)
11143 ? 1 : -1];
11144int
11145main ()
11146{
11147
11148 ;
11149 return 0;
11150}
11151_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011152if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011153 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +000011154fi
cristy3ed852e2009-09-05 21:47:34 +000011155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11156 ac_cv_sys_large_files=unknown
11157 break
11158done
11159fi
cristy8b350f62009-11-15 23:12:43 +000011160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +000011161$as_echo "$ac_cv_sys_large_files" >&6; }
11162case $ac_cv_sys_large_files in #(
11163 no | unknown) ;;
11164 *)
11165cat >>confdefs.h <<_ACEOF
11166#define _LARGE_FILES $ac_cv_sys_large_files
11167_ACEOF
11168;;
11169esac
11170rm -rf conftest*
11171 fi
cristy14fefe52012-05-21 00:59:18 +000011172
11173
cristy3ed852e2009-09-05 21:47:34 +000011174fi
11175
cristy8b350f62009-11-15 23:12:43 +000011176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000011177$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011178if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000011179 $as_echo_n "(cached) " >&6
11180else
11181 while :; do
cristy8b350f62009-11-15 23:12:43 +000011182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011183/* end confdefs.h. */
11184#include <sys/types.h> /* for off_t */
11185 #include <stdio.h>
11186int
11187main ()
11188{
11189int (*fp) (FILE *, off_t, int) = fseeko;
11190 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11191 ;
11192 return 0;
11193}
11194_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011195if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011196 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +000011197fi
cristy8b350f62009-11-15 23:12:43 +000011198rm -f core conftest.err conftest.$ac_objext \
11199 conftest$ac_exeext conftest.$ac_ext
11200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011201/* end confdefs.h. */
11202#define _LARGEFILE_SOURCE 1
11203#include <sys/types.h> /* for off_t */
11204 #include <stdio.h>
11205int
11206main ()
11207{
11208int (*fp) (FILE *, off_t, int) = fseeko;
11209 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11210 ;
11211 return 0;
11212}
11213_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011214if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011215 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +000011216fi
cristy8b350f62009-11-15 23:12:43 +000011217rm -f core conftest.err conftest.$ac_objext \
11218 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011219 ac_cv_sys_largefile_source=unknown
11220 break
11221done
11222fi
cristy8b350f62009-11-15 23:12:43 +000011223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +000011224$as_echo "$ac_cv_sys_largefile_source" >&6; }
11225case $ac_cv_sys_largefile_source in #(
11226 no | unknown) ;;
11227 *)
11228cat >>confdefs.h <<_ACEOF
11229#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
11230_ACEOF
11231;;
11232esac
11233rm -rf conftest*
11234
11235# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
11236# in glibc 2.1.3, but that breaks too many other things.
11237# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
11238if test $ac_cv_sys_largefile_source != unknown; then
11239
cristy8b350f62009-11-15 23:12:43 +000011240$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000011241
11242fi
11243
11244LFS_CPPFLAGS=''
11245if test "$enable_largefile" != no; then
cristyc1e0cc12011-09-21 16:41:16 +000011246 case $ac_cv_sys_file_offset_bits in
11247 no)
11248 # nothing to do here as the host supports LFS fine
11249 ;;
11250 unknown)
cristy8b350f62009-11-15 23:12:43 +000011251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +000011252$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011253 if test "$cross_compiling" = yes; then :
11254 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000011255$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000011256as_fn_error $? "cannot run test program while cross compiling
11257See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000011258else
cristy8b350f62009-11-15 23:12:43 +000011259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11260/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000011261#include <unistd.h>
11262 main () {
11263 exit(!(sizeof(off_t) == 8));
11264 }
cristyda16f162011-02-19 23:52:17 +000011265int
11266main ()
11267{
11268
11269 ;
11270 return 0;
11271}
cristy3ed852e2009-09-05 21:47:34 +000011272_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011273if ac_fn_c_try_run "$LINENO"; then :
11274 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000011275
cristyad38abe2012-12-23 23:03:21 +000011276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11277$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000011278else
cristyad38abe2012-12-23 23:03:21 +000011279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11280$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000011281fi
cristy8b350f62009-11-15 23:12:43 +000011282rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11283 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011284fi
11285
cristyc1e0cc12011-09-21 16:41:16 +000011286 ;;
11287 *)
11288 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
11289 ;;
11290 esac
cristy3ed852e2009-09-05 21:47:34 +000011291 if test "$ac_cv_sys_large_files" != 'no'; then
11292 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
11293 fi
11294 if test "$ac_cv_sys_largefile_source" != 'no'; then
11295 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
11296 fi
11297fi
11298
11299
cristy3ed852e2009-09-05 21:47:34 +000011300# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +000011301enable_dlopen=yes
11302
11303
11304
11305case `pwd` in
11306 *\ * | *\ *)
11307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11308$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11309esac
11310
11311
11312
cristy99bd5232011-12-07 14:38:20 +000011313macro_version='2.4.2'
11314macro_revision='1.3337'
cristy73bd4a52010-10-05 11:24:23 +000011315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328ltmain="$ac_aux_dir/ltmain.sh"
11329
cristy0c60a692010-11-04 01:09:47 +000011330# Backslashify metacharacters that are still active within
11331# double-quoted strings.
11332sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11333
11334# Same as above, but do not quote variable references.
11335double_quote_subst='s/\(["`\\]\)/\\\1/g'
11336
11337# Sed substitution to delay expansion of an escaped shell variable in a
11338# double_quote_subst'ed string.
11339delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11340
11341# Sed substitution to delay expansion of an escaped single quote.
11342delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11343
11344# Sed substitution to avoid accidental globbing in evaled expressions
11345no_glob_subst='s/\*/\\\*/g'
11346
cristy73bd4a52010-10-05 11:24:23 +000011347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11348$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011349if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011350 $as_echo_n "(cached) " >&6
11351else
11352 if test -n "$NM"; then
11353 # Let the user override the test.
11354 lt_cv_path_NM="$NM"
11355else
11356 lt_nm_to_check="${ac_tool_prefix}nm"
11357 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11358 lt_nm_to_check="$lt_nm_to_check nm"
11359 fi
11360 for lt_tmp_nm in $lt_nm_to_check; do
11361 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11362 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11363 IFS="$lt_save_ifs"
11364 test -z "$ac_dir" && ac_dir=.
11365 tmp_nm="$ac_dir/$lt_tmp_nm"
11366 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11367 # Check to see if the nm accepts a BSD-compat flag.
11368 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11369 # nm: unknown option "B" ignored
11370 # Tru64's nm complains that /dev/null is an invalid object file
11371 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11372 */dev/null* | *'Invalid file or object type'*)
11373 lt_cv_path_NM="$tmp_nm -B"
11374 break
11375 ;;
11376 *)
11377 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11378 */dev/null*)
11379 lt_cv_path_NM="$tmp_nm -p"
11380 break
11381 ;;
11382 *)
11383 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11384 continue # so that we can try to find one that supports BSD flags
11385 ;;
11386 esac
11387 ;;
11388 esac
11389 fi
11390 done
11391 IFS="$lt_save_ifs"
11392 done
11393 : ${lt_cv_path_NM=no}
11394fi
11395fi
11396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11397$as_echo "$lt_cv_path_NM" >&6; }
11398if test "$lt_cv_path_NM" != "no"; then
11399 NM="$lt_cv_path_NM"
11400else
11401 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +000011402 if test -n "$DUMPBIN"; then :
11403 # Let the user override the test.
11404 else
11405 if test -n "$ac_tool_prefix"; then
11406 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000011407 do
11408 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11409set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11411$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011412if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011413 $as_echo_n "(cached) " >&6
11414else
11415 if test -n "$DUMPBIN"; then
11416 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11417else
11418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11419for as_dir in $PATH
11420do
11421 IFS=$as_save_IFS
11422 test -z "$as_dir" && as_dir=.
11423 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011425 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11427 break 2
11428 fi
11429done
11430 done
11431IFS=$as_save_IFS
11432
11433fi
11434fi
11435DUMPBIN=$ac_cv_prog_DUMPBIN
11436if test -n "$DUMPBIN"; then
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11438$as_echo "$DUMPBIN" >&6; }
11439else
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11441$as_echo "no" >&6; }
11442fi
11443
11444
11445 test -n "$DUMPBIN" && break
11446 done
11447fi
11448if test -z "$DUMPBIN"; then
11449 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +000011450 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000011451do
11452 # Extract the first word of "$ac_prog", so it can be a program name with args.
11453set dummy $ac_prog; ac_word=$2
11454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11455$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011456if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011457 $as_echo_n "(cached) " >&6
11458else
11459 if test -n "$ac_ct_DUMPBIN"; then
11460 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11461else
11462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11463for as_dir in $PATH
11464do
11465 IFS=$as_save_IFS
11466 test -z "$as_dir" && as_dir=.
11467 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011469 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11471 break 2
11472 fi
11473done
11474 done
11475IFS=$as_save_IFS
11476
11477fi
11478fi
11479ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11480if test -n "$ac_ct_DUMPBIN"; then
11481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11482$as_echo "$ac_ct_DUMPBIN" >&6; }
11483else
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11485$as_echo "no" >&6; }
11486fi
11487
11488
11489 test -n "$ac_ct_DUMPBIN" && break
11490done
11491
11492 if test "x$ac_ct_DUMPBIN" = x; then
11493 DUMPBIN=":"
11494 else
11495 case $cross_compiling:$ac_tool_warned in
11496yes:)
11497{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11498$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11499ac_tool_warned=yes ;;
11500esac
11501 DUMPBIN=$ac_ct_DUMPBIN
11502 fi
11503fi
11504
cristy0c60a692010-11-04 01:09:47 +000011505 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11506 *COFF*)
11507 DUMPBIN="$DUMPBIN -symbols"
11508 ;;
11509 *)
11510 DUMPBIN=:
11511 ;;
11512 esac
11513 fi
cristy73bd4a52010-10-05 11:24:23 +000011514
11515 if test "$DUMPBIN" != ":"; then
11516 NM="$DUMPBIN"
11517 fi
11518fi
11519test -z "$NM" && NM=nm
11520
11521
11522
11523
11524
11525
11526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11527$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011528if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011529 $as_echo_n "(cached) " >&6
11530else
11531 lt_cv_nm_interface="BSD nm"
11532 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000011533 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000011534 (eval "$ac_compile" 2>conftest.err)
11535 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000011536 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000011537 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11538 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000011539 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000011540 cat conftest.out >&5
11541 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11542 lt_cv_nm_interface="MS dumpbin"
11543 fi
11544 rm -f conftest*
11545fi
11546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11547$as_echo "$lt_cv_nm_interface" >&6; }
11548
11549# find the maximum length of command line arguments
11550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11551$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011552if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011553 $as_echo_n "(cached) " >&6
11554else
11555 i=0
11556 teststring="ABCD"
11557
11558 case $build_os in
11559 msdosdjgpp*)
11560 # On DJGPP, this test can blow up pretty badly due to problems in libc
11561 # (any single argument exceeding 2000 bytes causes a buffer overrun
11562 # during glob expansion). Even if it were fixed, the result of this
11563 # check would be larger than it should be.
11564 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11565 ;;
11566
11567 gnu*)
11568 # Under GNU Hurd, this test is not required because there is
11569 # no limit to the length of command line arguments.
11570 # Libtool will interpret -1 as no limit whatsoever
11571 lt_cv_sys_max_cmd_len=-1;
11572 ;;
11573
11574 cygwin* | mingw* | cegcc*)
11575 # On Win9x/ME, this test blows up -- it succeeds, but takes
11576 # about 5 minutes as the teststring grows exponentially.
11577 # Worse, since 9x/ME are not pre-emptively multitasking,
11578 # you end up with a "frozen" computer, even though with patience
11579 # the test eventually succeeds (with a max line length of 256k).
11580 # Instead, let's just punt: use the minimum linelength reported by
11581 # all of the supported platforms: 8192 (on NT/2K/XP).
11582 lt_cv_sys_max_cmd_len=8192;
11583 ;;
11584
cristy0c60a692010-11-04 01:09:47 +000011585 mint*)
11586 # On MiNT this can take a long time and run out of memory.
11587 lt_cv_sys_max_cmd_len=8192;
11588 ;;
11589
cristy73bd4a52010-10-05 11:24:23 +000011590 amigaos*)
11591 # On AmigaOS with pdksh, this test takes hours, literally.
11592 # So we just punt and use a minimum line length of 8192.
11593 lt_cv_sys_max_cmd_len=8192;
11594 ;;
11595
11596 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11597 # This has been around since 386BSD, at least. Likely further.
11598 if test -x /sbin/sysctl; then
11599 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11600 elif test -x /usr/sbin/sysctl; then
11601 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11602 else
11603 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11604 fi
11605 # And add a safety zone
11606 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11607 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11608 ;;
11609
11610 interix*)
11611 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11612 lt_cv_sys_max_cmd_len=196608
11613 ;;
11614
cristy99bd5232011-12-07 14:38:20 +000011615 os2*)
11616 # The test takes a long time on OS/2.
11617 lt_cv_sys_max_cmd_len=8192
11618 ;;
11619
cristy73bd4a52010-10-05 11:24:23 +000011620 osf*)
11621 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11622 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11623 # nice to cause kernel panics so lets avoid the loop below.
11624 # First set a reasonable default.
11625 lt_cv_sys_max_cmd_len=16384
11626 #
11627 if test -x /sbin/sysconfig; then
11628 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11629 *1*) lt_cv_sys_max_cmd_len=-1 ;;
11630 esac
11631 fi
11632 ;;
11633 sco3.2v5*)
11634 lt_cv_sys_max_cmd_len=102400
11635 ;;
11636 sysv5* | sco5v6* | sysv4.2uw2*)
11637 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11638 if test -n "$kargmax"; then
11639 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
11640 else
11641 lt_cv_sys_max_cmd_len=32768
11642 fi
11643 ;;
11644 *)
11645 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11646 if test -n "$lt_cv_sys_max_cmd_len"; then
11647 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11648 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11649 else
11650 # Make teststring a little bigger before we do anything with it.
11651 # a 1K string should be a reasonable start.
11652 for i in 1 2 3 4 5 6 7 8 ; do
11653 teststring=$teststring$teststring
11654 done
11655 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11656 # If test is not a shell built-in, we'll probably end up computing a
11657 # maximum length that is only half of the actual maximum length, but
11658 # we can't tell.
cristy99bd5232011-12-07 14:38:20 +000011659 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
cristy0c60a692010-11-04 01:09:47 +000011660 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +000011661 test $i != 17 # 1/2 MB should be enough
11662 do
11663 i=`expr $i + 1`
11664 teststring=$teststring$teststring
11665 done
11666 # Only check the string length outside the loop.
11667 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11668 teststring=
11669 # Add a significant safety factor because C++ compilers can tack on
11670 # massive amounts of additional arguments before passing them to the
11671 # linker. It appears as though 1/2 is a usable value.
11672 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11673 fi
11674 ;;
11675 esac
11676
11677fi
11678
11679if test -n $lt_cv_sys_max_cmd_len ; then
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11681$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11682else
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11684$as_echo "none" >&6; }
11685fi
11686max_cmd_len=$lt_cv_sys_max_cmd_len
11687
11688
11689
11690
11691
11692
11693: ${CP="cp -f"}
11694: ${MV="mv -f"}
11695: ${RM="rm -f"}
11696
11697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11698$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11699# Try some XSI features
11700xsi_shell=no
11701( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +000011702 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
11703 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +000011704 && eval 'test $(( 1 + 1 )) -eq 2 \
11705 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11706 && xsi_shell=yes
11707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11708$as_echo "$xsi_shell" >&6; }
11709
11710
11711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11712$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11713lt_shell_append=no
11714( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11715 >/dev/null 2>&1 \
11716 && lt_shell_append=yes
11717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11718$as_echo "$lt_shell_append" >&6; }
11719
11720
11721if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11722 lt_unset=unset
11723else
11724 lt_unset=false
11725fi
11726
11727
11728
11729
11730
11731# test EBCDIC or ASCII
11732case `echo X|tr X '\101'` in
11733 A) # ASCII based system
11734 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11735 lt_SP2NL='tr \040 \012'
11736 lt_NL2SP='tr \015\012 \040\040'
11737 ;;
11738 *) # EBCDIC based system
11739 lt_SP2NL='tr \100 \n'
11740 lt_NL2SP='tr \r\n \100\100'
11741 ;;
11742esac
11743
11744
11745
11746
11747
11748
11749
11750
11751
cristyda16f162011-02-19 23:52:17 +000011752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11753$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11754if ${lt_cv_to_host_file_cmd+:} false; then :
11755 $as_echo_n "(cached) " >&6
11756else
11757 case $host in
11758 *-*-mingw* )
11759 case $build in
11760 *-*-mingw* ) # actually msys
11761 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11762 ;;
11763 *-*-cygwin* )
11764 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11765 ;;
11766 * ) # otherwise, assume *nix
11767 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11768 ;;
11769 esac
11770 ;;
11771 *-*-cygwin* )
11772 case $build in
11773 *-*-mingw* ) # actually msys
11774 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11775 ;;
11776 *-*-cygwin* )
11777 lt_cv_to_host_file_cmd=func_convert_file_noop
11778 ;;
11779 * ) # otherwise, assume *nix
11780 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11781 ;;
11782 esac
11783 ;;
11784 * ) # unhandled hosts (and "normal" native builds)
11785 lt_cv_to_host_file_cmd=func_convert_file_noop
11786 ;;
11787esac
11788
11789fi
11790
11791to_host_file_cmd=$lt_cv_to_host_file_cmd
11792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11793$as_echo "$lt_cv_to_host_file_cmd" >&6; }
11794
11795
11796
11797
11798
11799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11800$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11801if ${lt_cv_to_tool_file_cmd+:} false; then :
11802 $as_echo_n "(cached) " >&6
11803else
11804 #assume ordinary cross tools, or native build.
11805lt_cv_to_tool_file_cmd=func_convert_file_noop
11806case $host in
11807 *-*-mingw* )
11808 case $build in
11809 *-*-mingw* ) # actually msys
11810 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11811 ;;
11812 esac
11813 ;;
11814esac
11815
11816fi
11817
11818to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11820$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11821
11822
11823
11824
11825
cristy73bd4a52010-10-05 11:24:23 +000011826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11827$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011828if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011829 $as_echo_n "(cached) " >&6
11830else
11831 lt_cv_ld_reload_flag='-r'
11832fi
11833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11834$as_echo "$lt_cv_ld_reload_flag" >&6; }
11835reload_flag=$lt_cv_ld_reload_flag
11836case $reload_flag in
11837"" | " "*) ;;
11838*) reload_flag=" $reload_flag" ;;
11839esac
11840reload_cmds='$LD$reload_flag -o $output$reload_objs'
11841case $host_os in
cristyda16f162011-02-19 23:52:17 +000011842 cygwin* | mingw* | pw32* | cegcc*)
11843 if test "$GCC" != yes; then
11844 reload_cmds=false
11845 fi
11846 ;;
cristy73bd4a52010-10-05 11:24:23 +000011847 darwin*)
11848 if test "$GCC" = yes; then
11849 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11850 else
11851 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11852 fi
11853 ;;
11854esac
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864if test -n "$ac_tool_prefix"; then
11865 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11866set dummy ${ac_tool_prefix}objdump; ac_word=$2
11867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11868$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011869if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011870 $as_echo_n "(cached) " >&6
11871else
11872 if test -n "$OBJDUMP"; then
11873 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11874else
11875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11876for as_dir in $PATH
11877do
11878 IFS=$as_save_IFS
11879 test -z "$as_dir" && as_dir=.
11880 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011882 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11884 break 2
11885 fi
11886done
11887 done
11888IFS=$as_save_IFS
11889
11890fi
11891fi
11892OBJDUMP=$ac_cv_prog_OBJDUMP
11893if test -n "$OBJDUMP"; then
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11895$as_echo "$OBJDUMP" >&6; }
11896else
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11898$as_echo "no" >&6; }
11899fi
11900
11901
11902fi
11903if test -z "$ac_cv_prog_OBJDUMP"; then
11904 ac_ct_OBJDUMP=$OBJDUMP
11905 # Extract the first word of "objdump", so it can be a program name with args.
11906set dummy objdump; ac_word=$2
11907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11908$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011909if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011910 $as_echo_n "(cached) " >&6
11911else
11912 if test -n "$ac_ct_OBJDUMP"; then
11913 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11914else
11915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11916for as_dir in $PATH
11917do
11918 IFS=$as_save_IFS
11919 test -z "$as_dir" && as_dir=.
11920 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011922 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11924 break 2
11925 fi
11926done
11927 done
11928IFS=$as_save_IFS
11929
11930fi
11931fi
11932ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11933if test -n "$ac_ct_OBJDUMP"; then
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11935$as_echo "$ac_ct_OBJDUMP" >&6; }
11936else
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11938$as_echo "no" >&6; }
11939fi
11940
11941 if test "x$ac_ct_OBJDUMP" = x; then
11942 OBJDUMP="false"
11943 else
11944 case $cross_compiling:$ac_tool_warned in
11945yes:)
11946{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11947$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11948ac_tool_warned=yes ;;
11949esac
11950 OBJDUMP=$ac_ct_OBJDUMP
11951 fi
11952else
11953 OBJDUMP="$ac_cv_prog_OBJDUMP"
11954fi
11955
11956test -z "$OBJDUMP" && OBJDUMP=objdump
11957
11958
11959
11960
11961
11962
11963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11964$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011965if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011966 $as_echo_n "(cached) " >&6
11967else
11968 lt_cv_file_magic_cmd='$MAGIC_CMD'
11969lt_cv_file_magic_test_file=
11970lt_cv_deplibs_check_method='unknown'
11971# Need to set the preceding variable on all platforms that support
11972# interlibrary dependencies.
11973# 'none' -- dependencies not supported.
11974# `unknown' -- same as none, but documents that we really don't know.
11975# 'pass_all' -- all dependencies passed with no checks.
11976# 'test_compile' -- check by making test program.
11977# 'file_magic [[regex]]' -- check by looking for files in library path
11978# which responds to the $file_magic_cmd with a given extended regex.
11979# If you have `file' or equivalent on your system and you're not sure
11980# whether `pass_all' will *always* work, you probably want this one.
11981
11982case $host_os in
11983aix[4-9]*)
11984 lt_cv_deplibs_check_method=pass_all
11985 ;;
11986
11987beos*)
11988 lt_cv_deplibs_check_method=pass_all
11989 ;;
11990
11991bsdi[45]*)
11992 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11993 lt_cv_file_magic_cmd='/usr/bin/file -L'
11994 lt_cv_file_magic_test_file=/shlib/libc.so
11995 ;;
11996
11997cygwin*)
11998 # func_win32_libid is a shell function defined in ltmain.sh
11999 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12000 lt_cv_file_magic_cmd='func_win32_libid'
12001 ;;
12002
12003mingw* | pw32*)
12004 # Base MSYS/MinGW do not provide the 'file' command needed by
12005 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12006 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000012007 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12008 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000012009 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12010 lt_cv_file_magic_cmd='func_win32_libid'
12011 else
cristy0c60a692010-11-04 01:09:47 +000012012 # Keep this pattern in sync with the one in func_win32_libid.
12013 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 +000012014 lt_cv_file_magic_cmd='$OBJDUMP -f'
12015 fi
12016 ;;
12017
cristy0c60a692010-11-04 01:09:47 +000012018cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000012019 # use the weaker test based on 'objdump'. See mingw*.
12020 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12021 lt_cv_file_magic_cmd='$OBJDUMP -f'
12022 ;;
12023
12024darwin* | rhapsody*)
12025 lt_cv_deplibs_check_method=pass_all
12026 ;;
12027
12028freebsd* | dragonfly*)
12029 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12030 case $host_cpu in
12031 i*86 )
12032 # Not sure whether the presence of OpenBSD here was a mistake.
12033 # Let's accept both of them until this is cleared up.
12034 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12035 lt_cv_file_magic_cmd=/usr/bin/file
12036 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12037 ;;
12038 esac
12039 else
12040 lt_cv_deplibs_check_method=pass_all
12041 fi
12042 ;;
12043
12044gnu*)
12045 lt_cv_deplibs_check_method=pass_all
12046 ;;
12047
cristy0c60a692010-11-04 01:09:47 +000012048haiku*)
12049 lt_cv_deplibs_check_method=pass_all
12050 ;;
12051
cristy73bd4a52010-10-05 11:24:23 +000012052hpux10.20* | hpux11*)
12053 lt_cv_file_magic_cmd=/usr/bin/file
12054 case $host_cpu in
12055 ia64*)
12056 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12057 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12058 ;;
12059 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000012060 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 +000012061 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12062 ;;
12063 *)
cristy0c60a692010-11-04 01:09:47 +000012064 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 +000012065 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12066 ;;
12067 esac
12068 ;;
12069
12070interix[3-9]*)
12071 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12072 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12073 ;;
12074
12075irix5* | irix6* | nonstopux*)
12076 case $LD in
12077 *-32|*"-32 ") libmagic=32-bit;;
12078 *-n32|*"-n32 ") libmagic=N32;;
12079 *-64|*"-64 ") libmagic=64-bit;;
12080 *) libmagic=never-match;;
12081 esac
12082 lt_cv_deplibs_check_method=pass_all
12083 ;;
12084
cristy99bd5232011-12-07 14:38:20 +000012085# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000012086linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000012087 lt_cv_deplibs_check_method=pass_all
12088 ;;
12089
12090netbsd*)
12091 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12092 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12093 else
12094 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12095 fi
12096 ;;
12097
12098newos6*)
12099 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12100 lt_cv_file_magic_cmd=/usr/bin/file
12101 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12102 ;;
12103
12104*nto* | *qnx*)
12105 lt_cv_deplibs_check_method=pass_all
12106 ;;
12107
12108openbsd*)
12109 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12110 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12111 else
12112 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12113 fi
12114 ;;
12115
12116osf3* | osf4* | osf5*)
12117 lt_cv_deplibs_check_method=pass_all
12118 ;;
12119
12120rdos*)
12121 lt_cv_deplibs_check_method=pass_all
12122 ;;
12123
12124solaris*)
12125 lt_cv_deplibs_check_method=pass_all
12126 ;;
12127
12128sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12129 lt_cv_deplibs_check_method=pass_all
12130 ;;
12131
12132sysv4 | sysv4.3*)
12133 case $host_vendor in
12134 motorola)
12135 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]'
12136 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12137 ;;
12138 ncr)
12139 lt_cv_deplibs_check_method=pass_all
12140 ;;
12141 sequent)
12142 lt_cv_file_magic_cmd='/bin/file'
12143 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12144 ;;
12145 sni)
12146 lt_cv_file_magic_cmd='/bin/file'
12147 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12148 lt_cv_file_magic_test_file=/lib/libc.so
12149 ;;
12150 siemens)
12151 lt_cv_deplibs_check_method=pass_all
12152 ;;
12153 pc)
12154 lt_cv_deplibs_check_method=pass_all
12155 ;;
12156 esac
12157 ;;
12158
12159tpf*)
12160 lt_cv_deplibs_check_method=pass_all
12161 ;;
12162esac
12163
12164fi
12165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12166$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000012167
12168file_magic_glob=
12169want_nocaseglob=no
12170if test "$build" = "$host"; then
12171 case $host_os in
12172 mingw* | pw32*)
12173 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
12174 want_nocaseglob=yes
12175 else
12176 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
12177 fi
12178 ;;
12179 esac
12180fi
12181
cristy73bd4a52010-10-05 11:24:23 +000012182file_magic_cmd=$lt_cv_file_magic_cmd
12183deplibs_check_method=$lt_cv_deplibs_check_method
12184test -z "$deplibs_check_method" && deplibs_check_method=unknown
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
cristyda16f162011-02-19 23:52:17 +000012197
12198
12199
12200
12201
12202
12203
12204
12205
12206
cristy73bd4a52010-10-05 11:24:23 +000012207if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000012208 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12209set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000012210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12211$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012212if ${ac_cv_prog_DLLTOOL+:} false; then :
12213 $as_echo_n "(cached) " >&6
12214else
12215 if test -n "$DLLTOOL"; then
12216 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12217else
12218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12219for as_dir in $PATH
12220do
12221 IFS=$as_save_IFS
12222 test -z "$as_dir" && as_dir=.
12223 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012225 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12227 break 2
12228 fi
12229done
12230 done
12231IFS=$as_save_IFS
12232
12233fi
12234fi
12235DLLTOOL=$ac_cv_prog_DLLTOOL
12236if test -n "$DLLTOOL"; then
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12238$as_echo "$DLLTOOL" >&6; }
12239else
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12241$as_echo "no" >&6; }
12242fi
12243
12244
12245fi
12246if test -z "$ac_cv_prog_DLLTOOL"; then
12247 ac_ct_DLLTOOL=$DLLTOOL
12248 # Extract the first word of "dlltool", so it can be a program name with args.
12249set dummy dlltool; ac_word=$2
12250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12251$as_echo_n "checking for $ac_word... " >&6; }
12252if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
12253 $as_echo_n "(cached) " >&6
12254else
12255 if test -n "$ac_ct_DLLTOOL"; then
12256 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12257else
12258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12259for as_dir in $PATH
12260do
12261 IFS=$as_save_IFS
12262 test -z "$as_dir" && as_dir=.
12263 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012265 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12267 break 2
12268 fi
12269done
12270 done
12271IFS=$as_save_IFS
12272
12273fi
12274fi
12275ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12276if test -n "$ac_ct_DLLTOOL"; then
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12278$as_echo "$ac_ct_DLLTOOL" >&6; }
12279else
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12281$as_echo "no" >&6; }
12282fi
12283
12284 if test "x$ac_ct_DLLTOOL" = x; then
12285 DLLTOOL="false"
12286 else
12287 case $cross_compiling:$ac_tool_warned in
12288yes:)
12289{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12290$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12291ac_tool_warned=yes ;;
12292esac
12293 DLLTOOL=$ac_ct_DLLTOOL
12294 fi
12295else
12296 DLLTOOL="$ac_cv_prog_DLLTOOL"
12297fi
12298
12299test -z "$DLLTOOL" && DLLTOOL=dlltool
12300
12301
12302
12303
12304
12305
12306
12307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12308$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
12309if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
12310 $as_echo_n "(cached) " >&6
12311else
12312 lt_cv_sharedlib_from_linklib_cmd='unknown'
12313
12314case $host_os in
12315cygwin* | mingw* | pw32* | cegcc*)
12316 # two different shell functions defined in ltmain.sh
12317 # decide which to use based on capabilities of $DLLTOOL
12318 case `$DLLTOOL --help 2>&1` in
12319 *--identify-strict*)
12320 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12321 ;;
12322 *)
12323 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12324 ;;
12325 esac
12326 ;;
12327*)
12328 # fallback: assume linklib IS sharedlib
12329 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
12330 ;;
12331esac
12332
12333fi
12334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12335$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12336sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12337test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12338
12339
12340
12341
12342
12343
12344
12345if test -n "$ac_tool_prefix"; then
12346 for ac_prog in ar
12347 do
12348 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12349set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12351$as_echo_n "checking for $ac_word... " >&6; }
12352if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012353 $as_echo_n "(cached) " >&6
12354else
12355 if test -n "$AR"; then
12356 ac_cv_prog_AR="$AR" # Let the user override the test.
12357else
12358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12359for as_dir in $PATH
12360do
12361 IFS=$as_save_IFS
12362 test -z "$as_dir" && as_dir=.
12363 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012365 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000012366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12367 break 2
12368 fi
12369done
12370 done
12371IFS=$as_save_IFS
12372
12373fi
12374fi
12375AR=$ac_cv_prog_AR
12376if test -n "$AR"; then
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12378$as_echo "$AR" >&6; }
12379else
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12381$as_echo "no" >&6; }
12382fi
12383
12384
cristyda16f162011-02-19 23:52:17 +000012385 test -n "$AR" && break
12386 done
cristy73bd4a52010-10-05 11:24:23 +000012387fi
cristyda16f162011-02-19 23:52:17 +000012388if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000012389 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000012390 for ac_prog in ar
12391do
12392 # Extract the first word of "$ac_prog", so it can be a program name with args.
12393set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000012394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12395$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012396if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012397 $as_echo_n "(cached) " >&6
12398else
12399 if test -n "$ac_ct_AR"; then
12400 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12401else
12402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12403for as_dir in $PATH
12404do
12405 IFS=$as_save_IFS
12406 test -z "$as_dir" && as_dir=.
12407 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012409 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000012410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12411 break 2
12412 fi
12413done
12414 done
12415IFS=$as_save_IFS
12416
12417fi
12418fi
12419ac_ct_AR=$ac_cv_prog_ac_ct_AR
12420if test -n "$ac_ct_AR"; then
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12422$as_echo "$ac_ct_AR" >&6; }
12423else
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12425$as_echo "no" >&6; }
12426fi
12427
cristyda16f162011-02-19 23:52:17 +000012428
12429 test -n "$ac_ct_AR" && break
12430done
12431
cristy73bd4a52010-10-05 11:24:23 +000012432 if test "x$ac_ct_AR" = x; then
12433 AR="false"
12434 else
12435 case $cross_compiling:$ac_tool_warned in
12436yes:)
12437{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12438$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12439ac_tool_warned=yes ;;
12440esac
12441 AR=$ac_ct_AR
12442 fi
cristy73bd4a52010-10-05 11:24:23 +000012443fi
12444
cristyda16f162011-02-19 23:52:17 +000012445: ${AR=ar}
12446: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000012447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
cristyda16f162011-02-19 23:52:17 +000012458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12459$as_echo_n "checking for archiver @FILE support... " >&6; }
12460if ${lt_cv_ar_at_file+:} false; then :
12461 $as_echo_n "(cached) " >&6
12462else
12463 lt_cv_ar_at_file=no
12464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12465/* end confdefs.h. */
12466
12467int
12468main ()
12469{
12470
12471 ;
12472 return 0;
12473}
12474_ACEOF
12475if ac_fn_c_try_compile "$LINENO"; then :
12476 echo conftest.$ac_objext > conftest.lst
12477 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12478 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12479 (eval $lt_ar_try) 2>&5
12480 ac_status=$?
12481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12482 test $ac_status = 0; }
12483 if test "$ac_status" -eq 0; then
12484 # Ensure the archiver fails upon bogus file names.
12485 rm -f conftest.$ac_objext libconftest.a
12486 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12487 (eval $lt_ar_try) 2>&5
12488 ac_status=$?
12489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12490 test $ac_status = 0; }
12491 if test "$ac_status" -ne 0; then
12492 lt_cv_ar_at_file=@
12493 fi
12494 fi
12495 rm -f conftest.* libconftest.a
12496
12497fi
12498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12499
12500fi
12501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12502$as_echo "$lt_cv_ar_at_file" >&6; }
12503
12504if test "x$lt_cv_ar_at_file" = xno; then
12505 archiver_list_spec=
12506else
12507 archiver_list_spec=$lt_cv_ar_at_file
12508fi
12509
12510
12511
12512
12513
12514
12515
cristy73bd4a52010-10-05 11:24:23 +000012516if test -n "$ac_tool_prefix"; then
12517 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12518set dummy ${ac_tool_prefix}strip; ac_word=$2
12519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12520$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012521if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012522 $as_echo_n "(cached) " >&6
12523else
12524 if test -n "$STRIP"; then
12525 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12526else
12527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12528for as_dir in $PATH
12529do
12530 IFS=$as_save_IFS
12531 test -z "$as_dir" && as_dir=.
12532 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012534 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12536 break 2
12537 fi
12538done
12539 done
12540IFS=$as_save_IFS
12541
12542fi
12543fi
12544STRIP=$ac_cv_prog_STRIP
12545if test -n "$STRIP"; then
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12547$as_echo "$STRIP" >&6; }
12548else
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12550$as_echo "no" >&6; }
12551fi
12552
12553
12554fi
12555if test -z "$ac_cv_prog_STRIP"; then
12556 ac_ct_STRIP=$STRIP
12557 # Extract the first word of "strip", so it can be a program name with args.
12558set dummy strip; ac_word=$2
12559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12560$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012561if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012562 $as_echo_n "(cached) " >&6
12563else
12564 if test -n "$ac_ct_STRIP"; then
12565 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12566else
12567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12568for as_dir in $PATH
12569do
12570 IFS=$as_save_IFS
12571 test -z "$as_dir" && as_dir=.
12572 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012574 ac_cv_prog_ac_ct_STRIP="strip"
12575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12576 break 2
12577 fi
12578done
12579 done
12580IFS=$as_save_IFS
12581
12582fi
12583fi
12584ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12585if test -n "$ac_ct_STRIP"; then
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12587$as_echo "$ac_ct_STRIP" >&6; }
12588else
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12590$as_echo "no" >&6; }
12591fi
12592
12593 if test "x$ac_ct_STRIP" = x; then
12594 STRIP=":"
12595 else
12596 case $cross_compiling:$ac_tool_warned in
12597yes:)
12598{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12599$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12600ac_tool_warned=yes ;;
12601esac
12602 STRIP=$ac_ct_STRIP
12603 fi
12604else
12605 STRIP="$ac_cv_prog_STRIP"
12606fi
12607
12608test -z "$STRIP" && STRIP=:
12609
12610
12611
12612
12613
12614
12615if test -n "$ac_tool_prefix"; then
12616 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12617set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12619$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012620if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012621 $as_echo_n "(cached) " >&6
12622else
12623 if test -n "$RANLIB"; then
12624 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12625else
12626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12627for as_dir in $PATH
12628do
12629 IFS=$as_save_IFS
12630 test -z "$as_dir" && as_dir=.
12631 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012633 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12635 break 2
12636 fi
12637done
12638 done
12639IFS=$as_save_IFS
12640
12641fi
12642fi
12643RANLIB=$ac_cv_prog_RANLIB
12644if test -n "$RANLIB"; then
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12646$as_echo "$RANLIB" >&6; }
12647else
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12649$as_echo "no" >&6; }
12650fi
12651
12652
12653fi
12654if test -z "$ac_cv_prog_RANLIB"; then
12655 ac_ct_RANLIB=$RANLIB
12656 # Extract the first word of "ranlib", so it can be a program name with args.
12657set dummy ranlib; ac_word=$2
12658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12659$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012660if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012661 $as_echo_n "(cached) " >&6
12662else
12663 if test -n "$ac_ct_RANLIB"; then
12664 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12665else
12666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12667for as_dir in $PATH
12668do
12669 IFS=$as_save_IFS
12670 test -z "$as_dir" && as_dir=.
12671 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012673 ac_cv_prog_ac_ct_RANLIB="ranlib"
12674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12675 break 2
12676 fi
12677done
12678 done
12679IFS=$as_save_IFS
12680
12681fi
12682fi
12683ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12684if test -n "$ac_ct_RANLIB"; then
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12686$as_echo "$ac_ct_RANLIB" >&6; }
12687else
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12689$as_echo "no" >&6; }
12690fi
12691
12692 if test "x$ac_ct_RANLIB" = x; then
12693 RANLIB=":"
12694 else
12695 case $cross_compiling:$ac_tool_warned in
12696yes:)
12697{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12698$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12699ac_tool_warned=yes ;;
12700esac
12701 RANLIB=$ac_ct_RANLIB
12702 fi
12703else
12704 RANLIB="$ac_cv_prog_RANLIB"
12705fi
12706
12707test -z "$RANLIB" && RANLIB=:
12708
12709
12710
12711
12712
12713
12714# Determine commands to create old-style static archives.
12715old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12716old_postinstall_cmds='chmod 644 $oldlib'
12717old_postuninstall_cmds=
12718
12719if test -n "$RANLIB"; then
12720 case $host_os in
12721 openbsd*)
cristy99bd5232011-12-07 14:38:20 +000012722 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012723 ;;
12724 *)
cristy99bd5232011-12-07 14:38:20 +000012725 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012726 ;;
12727 esac
cristy99bd5232011-12-07 14:38:20 +000012728 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012729fi
12730
cristy0c60a692010-11-04 01:09:47 +000012731case $host_os in
12732 darwin*)
12733 lock_old_archive_extraction=yes ;;
12734 *)
12735 lock_old_archive_extraction=no ;;
12736esac
12737
12738
12739
12740
12741
12742
cristy73bd4a52010-10-05 11:24:23 +000012743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776# If no C compiler was specified, use CC.
12777LTCC=${LTCC-"$CC"}
12778
12779# If no C compiler flags were specified, use CFLAGS.
12780LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12781
12782# Allow CC to be a program name with arguments.
12783compiler=$CC
12784
12785
12786# Check for command to grab the raw symbol name followed by C symbol from nm.
12787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12788$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012789if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012790 $as_echo_n "(cached) " >&6
12791else
12792
12793# These are sane defaults that work on at least a few old systems.
12794# [They come from Ultrix. What could be older than Ultrix?!! ;)]
12795
12796# Character class describing NM global symbol codes.
12797symcode='[BCDEGRST]'
12798
12799# Regexp to match symbols that can be accessed directly from C.
12800sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12801
12802# Define system-specific variables.
12803case $host_os in
12804aix*)
12805 symcode='[BCDT]'
12806 ;;
12807cygwin* | mingw* | pw32* | cegcc*)
12808 symcode='[ABCDGISTW]'
12809 ;;
12810hpux*)
12811 if test "$host_cpu" = ia64; then
12812 symcode='[ABCDEGRST]'
12813 fi
12814 ;;
12815irix* | nonstopux*)
12816 symcode='[BCDEGRST]'
12817 ;;
12818osf*)
12819 symcode='[BCDEGQRST]'
12820 ;;
12821solaris*)
12822 symcode='[BDRT]'
12823 ;;
12824sco3.2v5*)
12825 symcode='[DT]'
12826 ;;
12827sysv4.2uw2*)
12828 symcode='[DT]'
12829 ;;
12830sysv5* | sco5v6* | unixware* | OpenUNIX*)
12831 symcode='[ABDT]'
12832 ;;
12833sysv4)
12834 symcode='[DFNSTU]'
12835 ;;
12836esac
12837
12838# If we're using GNU nm, then use its standard symbol codes.
12839case `$NM -V 2>&1` in
12840*GNU* | *'with BFD'*)
12841 symcode='[ABCDGIRSTW]' ;;
12842esac
12843
12844# Transform an extracted symbol line into a proper C declaration.
12845# Some systems (esp. on ia64) link data and code symbols differently,
12846# so use this general approach.
12847lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12848
12849# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000012850lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
12851lt_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 +000012852
12853# Handle CRLF in mingw tool chain
12854opt_cr=
12855case $build_os in
12856mingw*)
12857 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12858 ;;
12859esac
12860
12861# Try without a prefix underscore, then with it.
12862for ac_symprfx in "" "_"; do
12863
12864 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12865 symxfrm="\\1 $ac_symprfx\\2 \\2"
12866
12867 # Write the raw and C identifiers.
12868 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12869 # Fake it for dumpbin and say T for any non-static function
12870 # and D for any global variable.
12871 # Also find C++ and __fastcall symbols from MSVC++,
12872 # which start with @ or ?.
12873 lt_cv_sys_global_symbol_pipe="$AWK '"\
12874" {last_section=section; section=\$ 3};"\
cristy99bd5232011-12-07 14:38:20 +000012875" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
cristy73bd4a52010-10-05 11:24:23 +000012876" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12877" \$ 0!~/External *\|/{next};"\
12878" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12879" {if(hide[section]) next};"\
12880" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12881" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12882" s[1]~/^[@?]/{print s[1], s[1]; next};"\
12883" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12884" ' prfx=^$ac_symprfx"
12885 else
12886 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12887 fi
cristyda16f162011-02-19 23:52:17 +000012888 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000012889
12890 # Check to see that the pipe works correctly.
12891 pipe_works=no
12892
12893 rm -f conftest*
12894 cat > conftest.$ac_ext <<_LT_EOF
12895#ifdef __cplusplus
12896extern "C" {
12897#endif
12898char nm_test_var;
12899void nm_test_func(void);
12900void nm_test_func(void){}
12901#ifdef __cplusplus
12902}
12903#endif
12904int main(){nm_test_var='a';nm_test_func();return(0);}
12905_LT_EOF
12906
12907 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12908 (eval $ac_compile) 2>&5
12909 ac_status=$?
12910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12911 test $ac_status = 0; }; then
12912 # Now try to grab the symbols.
12913 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000012914 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12915 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000012916 ac_status=$?
12917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12918 test $ac_status = 0; } && test -s "$nlist"; then
12919 # Try sorting and uniquifying the output.
12920 if sort "$nlist" | uniq > "$nlist"T; then
12921 mv -f "$nlist"T "$nlist"
12922 else
12923 rm -f "$nlist"T
12924 fi
12925
12926 # Make sure that we snagged all the symbols we need.
12927 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12928 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12929 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000012930/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
12931#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12932/* DATA imports from DLLs on WIN32 con't be const, because runtime
12933 relocations are performed -- see ld's documentation on pseudo-relocs. */
12934# define LT_DLSYM_CONST
12935#elif defined(__osf__)
12936/* This system does not cope well with relocations in const data. */
12937# define LT_DLSYM_CONST
12938#else
12939# define LT_DLSYM_CONST const
12940#endif
12941
cristy73bd4a52010-10-05 11:24:23 +000012942#ifdef __cplusplus
12943extern "C" {
12944#endif
12945
12946_LT_EOF
12947 # Now generate the symbol file.
12948 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12949
12950 cat <<_LT_EOF >> conftest.$ac_ext
12951
12952/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000012953LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000012954 const char *name;
12955 void *address;
12956}
12957lt__PROGRAM__LTX_preloaded_symbols[] =
12958{
12959 { "@PROGRAM@", (void *) 0 },
12960_LT_EOF
12961 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12962 cat <<\_LT_EOF >> conftest.$ac_ext
12963 {0, (void *) 0}
12964};
12965
12966/* This works around a problem in FreeBSD linker */
12967#ifdef FREEBSD_WORKAROUND
12968static const void *lt_preloaded_setup() {
12969 return lt__PROGRAM__LTX_preloaded_symbols;
12970}
12971#endif
12972
12973#ifdef __cplusplus
12974}
12975#endif
12976_LT_EOF
12977 # Now try linking the two files.
12978 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000012979 lt_globsym_save_LIBS=$LIBS
12980 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012981 LIBS="conftstm.$ac_objext"
12982 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12983 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12984 (eval $ac_link) 2>&5
12985 ac_status=$?
12986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12987 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12988 pipe_works=yes
12989 fi
cristyda16f162011-02-19 23:52:17 +000012990 LIBS=$lt_globsym_save_LIBS
12991 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012992 else
12993 echo "cannot find nm_test_func in $nlist" >&5
12994 fi
12995 else
12996 echo "cannot find nm_test_var in $nlist" >&5
12997 fi
12998 else
12999 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13000 fi
13001 else
13002 echo "$progname: failed program was:" >&5
13003 cat conftest.$ac_ext >&5
13004 fi
13005 rm -rf conftest* conftst*
13006
13007 # Do not use the global_symbol_pipe unless it works.
13008 if test "$pipe_works" = yes; then
13009 break
13010 else
13011 lt_cv_sys_global_symbol_pipe=
13012 fi
13013done
13014
13015fi
13016
13017if test -z "$lt_cv_sys_global_symbol_pipe"; then
13018 lt_cv_sys_global_symbol_to_cdecl=
13019fi
13020if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13022$as_echo "failed" >&6; }
13023else
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13025$as_echo "ok" >&6; }
13026fi
13027
cristyda16f162011-02-19 23:52:17 +000013028# Response file support.
13029if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13030 nm_file_list_spec='@'
13031elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
13032 nm_file_list_spec='@'
13033fi
cristy73bd4a52010-10-05 11:24:23 +000013034
13035
13036
13037
13038
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
cristyda16f162011-02-19 23:52:17 +000013055
13056
13057
13058
13059
13060
13061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
13062$as_echo_n "checking for sysroot... " >&6; }
13063
13064# Check whether --with-sysroot was given.
13065if test "${with_sysroot+set}" = set; then :
13066 withval=$with_sysroot;
13067else
13068 with_sysroot=no
13069fi
13070
13071
13072lt_sysroot=
13073case ${with_sysroot} in #(
13074 yes)
13075 if test "$GCC" = yes; then
13076 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
13077 fi
13078 ;; #(
13079 /*)
13080 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
13081 ;; #(
13082 no|'')
13083 ;; #(
13084 *)
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
13086$as_echo "${with_sysroot}" >&6; }
13087 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
13088 ;;
13089esac
13090
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
13092$as_echo "${lt_sysroot:-no}" >&6; }
13093
13094
13095
13096
13097
cristy73bd4a52010-10-05 11:24:23 +000013098# Check whether --enable-libtool-lock was given.
13099if test "${enable_libtool_lock+set}" = set; then :
13100 enableval=$enable_libtool_lock;
13101fi
13102
13103test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13104
13105# Some flags need to be propagated to the compiler or linker for good
13106# libtool support.
13107case $host in
13108ia64-*-hpux*)
13109 # Find out which ABI we are using.
13110 echo 'int i;' > conftest.$ac_ext
13111 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13112 (eval $ac_compile) 2>&5
13113 ac_status=$?
13114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13115 test $ac_status = 0; }; then
13116 case `/usr/bin/file conftest.$ac_objext` in
13117 *ELF-32*)
13118 HPUX_IA64_MODE="32"
13119 ;;
13120 *ELF-64*)
13121 HPUX_IA64_MODE="64"
13122 ;;
13123 esac
13124 fi
13125 rm -rf conftest*
13126 ;;
13127*-*-irix6*)
13128 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000013129 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000013130 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13131 (eval $ac_compile) 2>&5
13132 ac_status=$?
13133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13134 test $ac_status = 0; }; then
13135 if test "$lt_cv_prog_gnu_ld" = yes; then
13136 case `/usr/bin/file conftest.$ac_objext` in
13137 *32-bit*)
13138 LD="${LD-ld} -melf32bsmip"
13139 ;;
13140 *N32*)
13141 LD="${LD-ld} -melf32bmipn32"
13142 ;;
13143 *64-bit*)
13144 LD="${LD-ld} -melf64bmip"
13145 ;;
13146 esac
13147 else
13148 case `/usr/bin/file conftest.$ac_objext` in
13149 *32-bit*)
13150 LD="${LD-ld} -32"
13151 ;;
13152 *N32*)
13153 LD="${LD-ld} -n32"
13154 ;;
13155 *64-bit*)
13156 LD="${LD-ld} -64"
13157 ;;
13158 esac
13159 fi
13160 fi
13161 rm -rf conftest*
13162 ;;
13163
cristyd95b7a52013-10-23 13:12:53 +000013164x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
cristy73bd4a52010-10-05 11:24:23 +000013165s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13166 # Find out which ABI we are using.
13167 echo 'int i;' > conftest.$ac_ext
13168 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13169 (eval $ac_compile) 2>&5
13170 ac_status=$?
13171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13172 test $ac_status = 0; }; then
13173 case `/usr/bin/file conftest.o` in
13174 *32-bit*)
13175 case $host in
13176 x86_64-*kfreebsd*-gnu)
13177 LD="${LD-ld} -m elf_i386_fbsd"
13178 ;;
13179 x86_64-*linux*)
13180 LD="${LD-ld} -m elf_i386"
13181 ;;
cristya5bda012013-11-03 18:05:38 +000013182 powerpc64le-*linux*)
cristyd95b7a52013-10-23 13:12:53 +000013183 LD="${LD-ld} -m elf32lppclinux"
13184 ;;
cristya5bda012013-11-03 18:05:38 +000013185 powerpc64-*linux*)
cristy73bd4a52010-10-05 11:24:23 +000013186 LD="${LD-ld} -m elf32ppclinux"
13187 ;;
13188 s390x-*linux*)
13189 LD="${LD-ld} -m elf_s390"
13190 ;;
13191 sparc64-*linux*)
13192 LD="${LD-ld} -m elf32_sparc"
13193 ;;
13194 esac
13195 ;;
13196 *64-bit*)
13197 case $host in
13198 x86_64-*kfreebsd*-gnu)
13199 LD="${LD-ld} -m elf_x86_64_fbsd"
13200 ;;
13201 x86_64-*linux*)
13202 LD="${LD-ld} -m elf_x86_64"
13203 ;;
cristyd95b7a52013-10-23 13:12:53 +000013204 powerpcle-*linux*)
13205 LD="${LD-ld} -m elf64lppc"
13206 ;;
13207 powerpc-*linux*)
cristy73bd4a52010-10-05 11:24:23 +000013208 LD="${LD-ld} -m elf64ppc"
13209 ;;
13210 s390*-*linux*|s390*-*tpf*)
13211 LD="${LD-ld} -m elf64_s390"
13212 ;;
13213 sparc*-*linux*)
13214 LD="${LD-ld} -m elf64_sparc"
13215 ;;
13216 esac
13217 ;;
13218 esac
13219 fi
13220 rm -rf conftest*
13221 ;;
13222
13223*-*-sco3.2v5*)
13224 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13225 SAVE_CFLAGS="$CFLAGS"
13226 CFLAGS="$CFLAGS -belf"
13227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13228$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013229if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013230 $as_echo_n "(cached) " >&6
13231else
13232 ac_ext=c
13233ac_cpp='$CPP $CPPFLAGS'
13234ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13235ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13236ac_compiler_gnu=$ac_cv_c_compiler_gnu
13237
13238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13239/* end confdefs.h. */
13240
13241int
13242main ()
13243{
13244
13245 ;
13246 return 0;
13247}
13248_ACEOF
13249if ac_fn_c_try_link "$LINENO"; then :
13250 lt_cv_cc_needs_belf=yes
13251else
13252 lt_cv_cc_needs_belf=no
13253fi
13254rm -f core conftest.err conftest.$ac_objext \
13255 conftest$ac_exeext conftest.$ac_ext
13256 ac_ext=c
13257ac_cpp='$CPP $CPPFLAGS'
13258ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13259ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13260ac_compiler_gnu=$ac_cv_c_compiler_gnu
13261
13262fi
13263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13264$as_echo "$lt_cv_cc_needs_belf" >&6; }
13265 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13266 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13267 CFLAGS="$SAVE_CFLAGS"
13268 fi
13269 ;;
cristy99bd5232011-12-07 14:38:20 +000013270*-*solaris*)
cristy73bd4a52010-10-05 11:24:23 +000013271 # Find out which ABI we are using.
13272 echo 'int i;' > conftest.$ac_ext
13273 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13274 (eval $ac_compile) 2>&5
13275 ac_status=$?
13276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13277 test $ac_status = 0; }; then
13278 case `/usr/bin/file conftest.o` in
13279 *64-bit*)
13280 case $lt_cv_prog_gnu_ld in
cristy99bd5232011-12-07 14:38:20 +000013281 yes*)
13282 case $host in
13283 i?86-*-solaris*)
13284 LD="${LD-ld} -m elf_x86_64"
13285 ;;
13286 sparc*-*-solaris*)
13287 LD="${LD-ld} -m elf64_sparc"
13288 ;;
13289 esac
13290 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
13291 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
13292 LD="${LD-ld}_sol2"
13293 fi
13294 ;;
cristy73bd4a52010-10-05 11:24:23 +000013295 *)
13296 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13297 LD="${LD-ld} -64"
13298 fi
13299 ;;
13300 esac
13301 ;;
13302 esac
13303 fi
13304 rm -rf conftest*
13305 ;;
13306esac
13307
13308need_locks="$enable_libtool_lock"
13309
cristyda16f162011-02-19 23:52:17 +000013310if test -n "$ac_tool_prefix"; then
13311 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
13312set dummy ${ac_tool_prefix}mt; ac_word=$2
13313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13314$as_echo_n "checking for $ac_word... " >&6; }
13315if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
13316 $as_echo_n "(cached) " >&6
13317else
13318 if test -n "$MANIFEST_TOOL"; then
13319 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13320else
13321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13322for as_dir in $PATH
13323do
13324 IFS=$as_save_IFS
13325 test -z "$as_dir" && as_dir=.
13326 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000013328 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13330 break 2
13331 fi
13332done
13333 done
13334IFS=$as_save_IFS
13335
13336fi
13337fi
13338MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13339if test -n "$MANIFEST_TOOL"; then
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13341$as_echo "$MANIFEST_TOOL" >&6; }
13342else
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13344$as_echo "no" >&6; }
13345fi
13346
13347
13348fi
13349if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13350 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13351 # Extract the first word of "mt", so it can be a program name with args.
13352set dummy mt; ac_word=$2
13353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13354$as_echo_n "checking for $ac_word... " >&6; }
13355if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13356 $as_echo_n "(cached) " >&6
13357else
13358 if test -n "$ac_ct_MANIFEST_TOOL"; then
13359 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13360else
13361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13362for as_dir in $PATH
13363do
13364 IFS=$as_save_IFS
13365 test -z "$as_dir" && as_dir=.
13366 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000013368 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13370 break 2
13371 fi
13372done
13373 done
13374IFS=$as_save_IFS
13375
13376fi
13377fi
13378ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13379if test -n "$ac_ct_MANIFEST_TOOL"; then
13380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13381$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13382else
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13384$as_echo "no" >&6; }
13385fi
13386
13387 if test "x$ac_ct_MANIFEST_TOOL" = x; then
13388 MANIFEST_TOOL=":"
13389 else
13390 case $cross_compiling:$ac_tool_warned in
13391yes:)
13392{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13393$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13394ac_tool_warned=yes ;;
13395esac
13396 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13397 fi
13398else
13399 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13400fi
13401
13402test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13404$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13405if ${lt_cv_path_mainfest_tool+:} false; then :
13406 $as_echo_n "(cached) " >&6
13407else
13408 lt_cv_path_mainfest_tool=no
13409 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13410 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13411 cat conftest.err >&5
13412 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13413 lt_cv_path_mainfest_tool=yes
13414 fi
13415 rm -f conftest*
13416fi
13417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13418$as_echo "$lt_cv_path_mainfest_tool" >&6; }
13419if test "x$lt_cv_path_mainfest_tool" != xyes; then
13420 MANIFEST_TOOL=:
13421fi
13422
13423
13424
13425
13426
cristy73bd4a52010-10-05 11:24:23 +000013427
13428 case $host_os in
13429 rhapsody* | darwin*)
13430 if test -n "$ac_tool_prefix"; then
13431 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13432set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13434$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013435if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013436 $as_echo_n "(cached) " >&6
13437else
13438 if test -n "$DSYMUTIL"; then
13439 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13440else
13441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13442for as_dir in $PATH
13443do
13444 IFS=$as_save_IFS
13445 test -z "$as_dir" && as_dir=.
13446 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013448 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13450 break 2
13451 fi
13452done
13453 done
13454IFS=$as_save_IFS
13455
13456fi
13457fi
13458DSYMUTIL=$ac_cv_prog_DSYMUTIL
13459if test -n "$DSYMUTIL"; then
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13461$as_echo "$DSYMUTIL" >&6; }
13462else
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13464$as_echo "no" >&6; }
13465fi
13466
13467
13468fi
13469if test -z "$ac_cv_prog_DSYMUTIL"; then
13470 ac_ct_DSYMUTIL=$DSYMUTIL
13471 # Extract the first word of "dsymutil", so it can be a program name with args.
13472set dummy dsymutil; ac_word=$2
13473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13474$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013475if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013476 $as_echo_n "(cached) " >&6
13477else
13478 if test -n "$ac_ct_DSYMUTIL"; then
13479 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13480else
13481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13482for as_dir in $PATH
13483do
13484 IFS=$as_save_IFS
13485 test -z "$as_dir" && as_dir=.
13486 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013488 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13490 break 2
13491 fi
13492done
13493 done
13494IFS=$as_save_IFS
13495
13496fi
13497fi
13498ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13499if test -n "$ac_ct_DSYMUTIL"; then
13500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13501$as_echo "$ac_ct_DSYMUTIL" >&6; }
13502else
13503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13504$as_echo "no" >&6; }
13505fi
13506
13507 if test "x$ac_ct_DSYMUTIL" = x; then
13508 DSYMUTIL=":"
13509 else
13510 case $cross_compiling:$ac_tool_warned in
13511yes:)
13512{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13513$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13514ac_tool_warned=yes ;;
13515esac
13516 DSYMUTIL=$ac_ct_DSYMUTIL
13517 fi
13518else
13519 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13520fi
13521
13522 if test -n "$ac_tool_prefix"; then
13523 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13524set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13526$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013527if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013528 $as_echo_n "(cached) " >&6
13529else
13530 if test -n "$NMEDIT"; then
13531 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13532else
13533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13534for as_dir in $PATH
13535do
13536 IFS=$as_save_IFS
13537 test -z "$as_dir" && as_dir=.
13538 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013540 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13542 break 2
13543 fi
13544done
13545 done
13546IFS=$as_save_IFS
13547
13548fi
13549fi
13550NMEDIT=$ac_cv_prog_NMEDIT
13551if test -n "$NMEDIT"; then
13552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13553$as_echo "$NMEDIT" >&6; }
13554else
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13556$as_echo "no" >&6; }
13557fi
13558
13559
13560fi
13561if test -z "$ac_cv_prog_NMEDIT"; then
13562 ac_ct_NMEDIT=$NMEDIT
13563 # Extract the first word of "nmedit", so it can be a program name with args.
13564set dummy nmedit; ac_word=$2
13565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13566$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013567if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013568 $as_echo_n "(cached) " >&6
13569else
13570 if test -n "$ac_ct_NMEDIT"; then
13571 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13572else
13573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13574for as_dir in $PATH
13575do
13576 IFS=$as_save_IFS
13577 test -z "$as_dir" && as_dir=.
13578 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013580 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13582 break 2
13583 fi
13584done
13585 done
13586IFS=$as_save_IFS
13587
13588fi
13589fi
13590ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13591if test -n "$ac_ct_NMEDIT"; then
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13593$as_echo "$ac_ct_NMEDIT" >&6; }
13594else
13595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13596$as_echo "no" >&6; }
13597fi
13598
13599 if test "x$ac_ct_NMEDIT" = x; then
13600 NMEDIT=":"
13601 else
13602 case $cross_compiling:$ac_tool_warned in
13603yes:)
13604{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13605$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13606ac_tool_warned=yes ;;
13607esac
13608 NMEDIT=$ac_ct_NMEDIT
13609 fi
13610else
13611 NMEDIT="$ac_cv_prog_NMEDIT"
13612fi
13613
13614 if test -n "$ac_tool_prefix"; then
13615 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13616set dummy ${ac_tool_prefix}lipo; ac_word=$2
13617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13618$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013619if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013620 $as_echo_n "(cached) " >&6
13621else
13622 if test -n "$LIPO"; then
13623 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13624else
13625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13626for as_dir in $PATH
13627do
13628 IFS=$as_save_IFS
13629 test -z "$as_dir" && as_dir=.
13630 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013632 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13634 break 2
13635 fi
13636done
13637 done
13638IFS=$as_save_IFS
13639
13640fi
13641fi
13642LIPO=$ac_cv_prog_LIPO
13643if test -n "$LIPO"; then
13644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13645$as_echo "$LIPO" >&6; }
13646else
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13648$as_echo "no" >&6; }
13649fi
13650
13651
13652fi
13653if test -z "$ac_cv_prog_LIPO"; then
13654 ac_ct_LIPO=$LIPO
13655 # Extract the first word of "lipo", so it can be a program name with args.
13656set dummy lipo; ac_word=$2
13657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13658$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013659if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013660 $as_echo_n "(cached) " >&6
13661else
13662 if test -n "$ac_ct_LIPO"; then
13663 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13664else
13665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13666for as_dir in $PATH
13667do
13668 IFS=$as_save_IFS
13669 test -z "$as_dir" && as_dir=.
13670 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013672 ac_cv_prog_ac_ct_LIPO="lipo"
13673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13674 break 2
13675 fi
13676done
13677 done
13678IFS=$as_save_IFS
13679
13680fi
13681fi
13682ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13683if test -n "$ac_ct_LIPO"; then
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13685$as_echo "$ac_ct_LIPO" >&6; }
13686else
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13688$as_echo "no" >&6; }
13689fi
13690
13691 if test "x$ac_ct_LIPO" = x; then
13692 LIPO=":"
13693 else
13694 case $cross_compiling:$ac_tool_warned in
13695yes:)
13696{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13697$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13698ac_tool_warned=yes ;;
13699esac
13700 LIPO=$ac_ct_LIPO
13701 fi
13702else
13703 LIPO="$ac_cv_prog_LIPO"
13704fi
13705
13706 if test -n "$ac_tool_prefix"; then
13707 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13708set dummy ${ac_tool_prefix}otool; ac_word=$2
13709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13710$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013711if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013712 $as_echo_n "(cached) " >&6
13713else
13714 if test -n "$OTOOL"; then
13715 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13716else
13717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13718for as_dir in $PATH
13719do
13720 IFS=$as_save_IFS
13721 test -z "$as_dir" && as_dir=.
13722 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013724 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13726 break 2
13727 fi
13728done
13729 done
13730IFS=$as_save_IFS
13731
13732fi
13733fi
13734OTOOL=$ac_cv_prog_OTOOL
13735if test -n "$OTOOL"; then
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13737$as_echo "$OTOOL" >&6; }
13738else
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13740$as_echo "no" >&6; }
13741fi
13742
13743
13744fi
13745if test -z "$ac_cv_prog_OTOOL"; then
13746 ac_ct_OTOOL=$OTOOL
13747 # Extract the first word of "otool", so it can be a program name with args.
13748set dummy otool; ac_word=$2
13749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13750$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013751if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013752 $as_echo_n "(cached) " >&6
13753else
13754 if test -n "$ac_ct_OTOOL"; then
13755 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13756else
13757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13758for as_dir in $PATH
13759do
13760 IFS=$as_save_IFS
13761 test -z "$as_dir" && as_dir=.
13762 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013764 ac_cv_prog_ac_ct_OTOOL="otool"
13765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13766 break 2
13767 fi
13768done
13769 done
13770IFS=$as_save_IFS
13771
13772fi
13773fi
13774ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13775if test -n "$ac_ct_OTOOL"; then
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13777$as_echo "$ac_ct_OTOOL" >&6; }
13778else
13779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13780$as_echo "no" >&6; }
13781fi
13782
13783 if test "x$ac_ct_OTOOL" = x; then
13784 OTOOL=":"
13785 else
13786 case $cross_compiling:$ac_tool_warned in
13787yes:)
13788{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13789$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13790ac_tool_warned=yes ;;
13791esac
13792 OTOOL=$ac_ct_OTOOL
13793 fi
13794else
13795 OTOOL="$ac_cv_prog_OTOOL"
13796fi
13797
13798 if test -n "$ac_tool_prefix"; then
13799 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13800set dummy ${ac_tool_prefix}otool64; ac_word=$2
13801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13802$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013803if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013804 $as_echo_n "(cached) " >&6
13805else
13806 if test -n "$OTOOL64"; then
13807 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13808else
13809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13810for as_dir in $PATH
13811do
13812 IFS=$as_save_IFS
13813 test -z "$as_dir" && as_dir=.
13814 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013816 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13818 break 2
13819 fi
13820done
13821 done
13822IFS=$as_save_IFS
13823
13824fi
13825fi
13826OTOOL64=$ac_cv_prog_OTOOL64
13827if test -n "$OTOOL64"; then
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13829$as_echo "$OTOOL64" >&6; }
13830else
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13832$as_echo "no" >&6; }
13833fi
13834
13835
13836fi
13837if test -z "$ac_cv_prog_OTOOL64"; then
13838 ac_ct_OTOOL64=$OTOOL64
13839 # Extract the first word of "otool64", so it can be a program name with args.
13840set dummy otool64; ac_word=$2
13841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13842$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013843if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013844 $as_echo_n "(cached) " >&6
13845else
13846 if test -n "$ac_ct_OTOOL64"; then
13847 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13848else
13849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13850for as_dir in $PATH
13851do
13852 IFS=$as_save_IFS
13853 test -z "$as_dir" && as_dir=.
13854 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013856 ac_cv_prog_ac_ct_OTOOL64="otool64"
13857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13858 break 2
13859 fi
13860done
13861 done
13862IFS=$as_save_IFS
13863
13864fi
13865fi
13866ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13867if test -n "$ac_ct_OTOOL64"; then
13868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13869$as_echo "$ac_ct_OTOOL64" >&6; }
13870else
13871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13872$as_echo "no" >&6; }
13873fi
13874
13875 if test "x$ac_ct_OTOOL64" = x; then
13876 OTOOL64=":"
13877 else
13878 case $cross_compiling:$ac_tool_warned in
13879yes:)
13880{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13881$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13882ac_tool_warned=yes ;;
13883esac
13884 OTOOL64=$ac_ct_OTOOL64
13885 fi
13886else
13887 OTOOL64="$ac_cv_prog_OTOOL64"
13888fi
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13917$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013918if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013919 $as_echo_n "(cached) " >&6
13920else
13921 lt_cv_apple_cc_single_mod=no
13922 if test -z "${LT_MULTI_MODULE}"; then
13923 # By default we will add the -single_module flag. You can override
13924 # by either setting the environment variable LT_MULTI_MODULE
13925 # non-empty at configure time, or by adding -multi_module to the
13926 # link flags.
13927 rm -rf libconftest.dylib*
13928 echo "int foo(void){return 1;}" > conftest.c
13929 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13930-dynamiclib -Wl,-single_module conftest.c" >&5
13931 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13932 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13933 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013934 # If there is a non-empty error log, and "single_module"
13935 # appears in it, assume the flag caused a linker warning
13936 if test -s conftest.err && $GREP single_module conftest.err; then
13937 cat conftest.err >&5
13938 # Otherwise, if the output was created with a 0 exit code from
13939 # the compiler, it worked.
13940 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
cristy73bd4a52010-10-05 11:24:23 +000013941 lt_cv_apple_cc_single_mod=yes
13942 else
13943 cat conftest.err >&5
13944 fi
13945 rm -rf libconftest.dylib*
13946 rm -f conftest.*
13947 fi
13948fi
13949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13950$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013951
cristy73bd4a52010-10-05 11:24:23 +000013952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13953$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013954if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013955 $as_echo_n "(cached) " >&6
13956else
13957 lt_cv_ld_exported_symbols_list=no
13958 save_LDFLAGS=$LDFLAGS
13959 echo "_main" > conftest.sym
13960 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13962/* end confdefs.h. */
13963
13964int
13965main ()
13966{
13967
13968 ;
13969 return 0;
13970}
13971_ACEOF
13972if ac_fn_c_try_link "$LINENO"; then :
13973 lt_cv_ld_exported_symbols_list=yes
13974else
13975 lt_cv_ld_exported_symbols_list=no
13976fi
13977rm -f core conftest.err conftest.$ac_objext \
13978 conftest$ac_exeext conftest.$ac_ext
13979 LDFLAGS="$save_LDFLAGS"
13980
13981fi
13982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13983$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013984
cristy0c60a692010-11-04 01:09:47 +000013985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13986$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013987if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000013988 $as_echo_n "(cached) " >&6
13989else
13990 lt_cv_ld_force_load=no
13991 cat > conftest.c << _LT_EOF
13992int forced_loaded() { return 2;}
13993_LT_EOF
13994 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13995 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13996 echo "$AR cru libconftest.a conftest.o" >&5
13997 $AR cru libconftest.a conftest.o 2>&5
13998 echo "$RANLIB libconftest.a" >&5
13999 $RANLIB libconftest.a 2>&5
14000 cat > conftest.c << _LT_EOF
14001int main() { return 0;}
14002_LT_EOF
14003 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14004 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14005 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000014006 if test -s conftest.err && $GREP force_load conftest.err; then
14007 cat conftest.err >&5
14008 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
cristy0c60a692010-11-04 01:09:47 +000014009 lt_cv_ld_force_load=yes
14010 else
14011 cat conftest.err >&5
14012 fi
14013 rm -f conftest.err libconftest.a conftest conftest.c
14014 rm -rf conftest.dSYM
14015
14016fi
14017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14018$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000014019 case $host_os in
14020 rhapsody* | darwin1.[012])
14021 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14022 darwin1.*)
14023 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14024 darwin*) # darwin 5.x on
14025 # if running on 10.5 or later, the deployment target defaults
14026 # to the OS version, if on x86, and 10.4, the deployment
14027 # target defaults to 10.4. Don't you love it?
14028 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14029 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14030 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14031 10.[012]*)
14032 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14033 10.*)
14034 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14035 esac
14036 ;;
14037 esac
14038 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14039 _lt_dar_single_mod='$single_module'
14040 fi
14041 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14042 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14043 else
14044 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14045 fi
cristy0c60a692010-11-04 01:09:47 +000014046 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000014047 _lt_dsymutil='~$DSYMUTIL $lib || :'
14048 else
14049 _lt_dsymutil=
14050 fi
14051 ;;
14052 esac
14053
14054for ac_header in dlfcn.h
14055do :
14056 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
14057"
cristyda16f162011-02-19 23:52:17 +000014058if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000014059 cat >>confdefs.h <<_ACEOF
14060#define HAVE_DLFCN_H 1
14061_ACEOF
14062
14063fi
14064
14065done
14066
14067
14068
cristy73bd4a52010-10-05 11:24:23 +000014069
cristyda16f162011-02-19 23:52:17 +000014070func_stripname_cnf ()
14071{
14072 case ${2} in
14073 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
14074 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
14075 esac
14076} # func_stripname_cnf
14077
14078
14079
cristy73bd4a52010-10-05 11:24:23 +000014080
14081
14082# Set options
14083enable_win32_dll=yes
14084
14085case $host in
cristy0c60a692010-11-04 01:09:47 +000014086*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000014087 if test -n "$ac_tool_prefix"; then
14088 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
14089set dummy ${ac_tool_prefix}as; ac_word=$2
14090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14091$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014092if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014093 $as_echo_n "(cached) " >&6
14094else
14095 if test -n "$AS"; then
14096 ac_cv_prog_AS="$AS" # Let the user override the test.
14097else
14098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14099for as_dir in $PATH
14100do
14101 IFS=$as_save_IFS
14102 test -z "$as_dir" && as_dir=.
14103 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014105 ac_cv_prog_AS="${ac_tool_prefix}as"
14106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14107 break 2
14108 fi
14109done
14110 done
14111IFS=$as_save_IFS
14112
14113fi
14114fi
14115AS=$ac_cv_prog_AS
14116if test -n "$AS"; then
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
14118$as_echo "$AS" >&6; }
14119else
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14121$as_echo "no" >&6; }
14122fi
14123
14124
14125fi
14126if test -z "$ac_cv_prog_AS"; then
14127 ac_ct_AS=$AS
14128 # Extract the first word of "as", so it can be a program name with args.
14129set dummy as; ac_word=$2
14130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14131$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014132if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014133 $as_echo_n "(cached) " >&6
14134else
14135 if test -n "$ac_ct_AS"; then
14136 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
14137else
14138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14139for as_dir in $PATH
14140do
14141 IFS=$as_save_IFS
14142 test -z "$as_dir" && as_dir=.
14143 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014145 ac_cv_prog_ac_ct_AS="as"
14146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14147 break 2
14148 fi
14149done
14150 done
14151IFS=$as_save_IFS
14152
14153fi
14154fi
14155ac_ct_AS=$ac_cv_prog_ac_ct_AS
14156if test -n "$ac_ct_AS"; then
14157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
14158$as_echo "$ac_ct_AS" >&6; }
14159else
14160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14161$as_echo "no" >&6; }
14162fi
14163
14164 if test "x$ac_ct_AS" = x; then
14165 AS="false"
14166 else
14167 case $cross_compiling:$ac_tool_warned in
14168yes:)
14169{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14170$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14171ac_tool_warned=yes ;;
14172esac
14173 AS=$ac_ct_AS
14174 fi
14175else
14176 AS="$ac_cv_prog_AS"
14177fi
14178
14179 if test -n "$ac_tool_prefix"; then
14180 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
14181set dummy ${ac_tool_prefix}dlltool; ac_word=$2
14182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14183$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014184if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014185 $as_echo_n "(cached) " >&6
14186else
14187 if test -n "$DLLTOOL"; then
14188 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
14189else
14190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14191for as_dir in $PATH
14192do
14193 IFS=$as_save_IFS
14194 test -z "$as_dir" && as_dir=.
14195 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014197 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
14198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14199 break 2
14200 fi
14201done
14202 done
14203IFS=$as_save_IFS
14204
14205fi
14206fi
14207DLLTOOL=$ac_cv_prog_DLLTOOL
14208if test -n "$DLLTOOL"; then
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
14210$as_echo "$DLLTOOL" >&6; }
14211else
14212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14213$as_echo "no" >&6; }
14214fi
14215
14216
14217fi
14218if test -z "$ac_cv_prog_DLLTOOL"; then
14219 ac_ct_DLLTOOL=$DLLTOOL
14220 # Extract the first word of "dlltool", so it can be a program name with args.
14221set dummy dlltool; ac_word=$2
14222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14223$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014224if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014225 $as_echo_n "(cached) " >&6
14226else
14227 if test -n "$ac_ct_DLLTOOL"; then
14228 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
14229else
14230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14231for as_dir in $PATH
14232do
14233 IFS=$as_save_IFS
14234 test -z "$as_dir" && as_dir=.
14235 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014237 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
14238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14239 break 2
14240 fi
14241done
14242 done
14243IFS=$as_save_IFS
14244
14245fi
14246fi
14247ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
14248if test -n "$ac_ct_DLLTOOL"; then
14249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
14250$as_echo "$ac_ct_DLLTOOL" >&6; }
14251else
14252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14253$as_echo "no" >&6; }
14254fi
14255
14256 if test "x$ac_ct_DLLTOOL" = x; then
14257 DLLTOOL="false"
14258 else
14259 case $cross_compiling:$ac_tool_warned in
14260yes:)
14261{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14262$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14263ac_tool_warned=yes ;;
14264esac
14265 DLLTOOL=$ac_ct_DLLTOOL
14266 fi
14267else
14268 DLLTOOL="$ac_cv_prog_DLLTOOL"
14269fi
14270
14271 if test -n "$ac_tool_prefix"; then
14272 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
14273set dummy ${ac_tool_prefix}objdump; ac_word=$2
14274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14275$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014276if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014277 $as_echo_n "(cached) " >&6
14278else
14279 if test -n "$OBJDUMP"; then
14280 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
14281else
14282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14283for as_dir in $PATH
14284do
14285 IFS=$as_save_IFS
14286 test -z "$as_dir" && as_dir=.
14287 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014289 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
14290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14291 break 2
14292 fi
14293done
14294 done
14295IFS=$as_save_IFS
14296
14297fi
14298fi
14299OBJDUMP=$ac_cv_prog_OBJDUMP
14300if test -n "$OBJDUMP"; then
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
14302$as_echo "$OBJDUMP" >&6; }
14303else
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14305$as_echo "no" >&6; }
14306fi
14307
14308
14309fi
14310if test -z "$ac_cv_prog_OBJDUMP"; then
14311 ac_ct_OBJDUMP=$OBJDUMP
14312 # Extract the first word of "objdump", so it can be a program name with args.
14313set dummy objdump; ac_word=$2
14314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14315$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014316if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014317 $as_echo_n "(cached) " >&6
14318else
14319 if test -n "$ac_ct_OBJDUMP"; then
14320 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
14321else
14322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14323for as_dir in $PATH
14324do
14325 IFS=$as_save_IFS
14326 test -z "$as_dir" && as_dir=.
14327 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014329 ac_cv_prog_ac_ct_OBJDUMP="objdump"
14330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14331 break 2
14332 fi
14333done
14334 done
14335IFS=$as_save_IFS
14336
14337fi
14338fi
14339ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
14340if test -n "$ac_ct_OBJDUMP"; then
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
14342$as_echo "$ac_ct_OBJDUMP" >&6; }
14343else
14344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14345$as_echo "no" >&6; }
14346fi
14347
14348 if test "x$ac_ct_OBJDUMP" = x; then
14349 OBJDUMP="false"
14350 else
14351 case $cross_compiling:$ac_tool_warned in
14352yes:)
14353{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14354$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14355ac_tool_warned=yes ;;
14356esac
14357 OBJDUMP=$ac_ct_OBJDUMP
14358 fi
14359else
14360 OBJDUMP="$ac_cv_prog_OBJDUMP"
14361fi
14362
14363 ;;
14364esac
14365
14366test -z "$AS" && AS=as
14367
14368
14369
14370
14371
14372test -z "$DLLTOOL" && DLLTOOL=dlltool
14373
14374
14375
14376
14377
14378test -z "$OBJDUMP" && OBJDUMP=objdump
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388 # Check whether --enable-shared was given.
14389if test "${enable_shared+set}" = set; then :
14390 enableval=$enable_shared; p=${PACKAGE-default}
14391 case $enableval in
14392 yes) enable_shared=yes ;;
14393 no) enable_shared=no ;;
14394 *)
14395 enable_shared=no
14396 # Look at the argument we got. We use all the common list separators.
14397 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14398 for pkg in $enableval; do
14399 IFS="$lt_save_ifs"
14400 if test "X$pkg" = "X$p"; then
14401 enable_shared=yes
14402 fi
14403 done
14404 IFS="$lt_save_ifs"
14405 ;;
14406 esac
14407else
14408 enable_shared=yes
14409fi
14410
14411
14412
14413
14414
14415
14416
14417
14418
14419 # Check whether --enable-static was given.
14420if test "${enable_static+set}" = set; then :
14421 enableval=$enable_static; p=${PACKAGE-default}
14422 case $enableval in
14423 yes) enable_static=yes ;;
14424 no) enable_static=no ;;
14425 *)
14426 enable_static=no
14427 # Look at the argument we got. We use all the common list separators.
14428 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14429 for pkg in $enableval; do
14430 IFS="$lt_save_ifs"
14431 if test "X$pkg" = "X$p"; then
14432 enable_static=yes
14433 fi
14434 done
14435 IFS="$lt_save_ifs"
14436 ;;
14437 esac
14438else
14439 enable_static=yes
14440fi
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451# Check whether --with-pic was given.
14452if test "${with_pic+set}" = set; then :
cristy99bd5232011-12-07 14:38:20 +000014453 withval=$with_pic; lt_p=${PACKAGE-default}
14454 case $withval in
14455 yes|no) pic_mode=$withval ;;
14456 *)
14457 pic_mode=default
14458 # Look at the argument we got. We use all the common list separators.
14459 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14460 for lt_pkg in $withval; do
14461 IFS="$lt_save_ifs"
14462 if test "X$lt_pkg" = "X$lt_p"; then
14463 pic_mode=yes
14464 fi
14465 done
14466 IFS="$lt_save_ifs"
14467 ;;
14468 esac
cristy73bd4a52010-10-05 11:24:23 +000014469else
14470 pic_mode=default
14471fi
14472
14473
14474test -z "$pic_mode" && pic_mode=default
14475
14476
14477
14478
14479
14480
14481
14482 # Check whether --enable-fast-install was given.
14483if test "${enable_fast_install+set}" = set; then :
14484 enableval=$enable_fast_install; p=${PACKAGE-default}
14485 case $enableval in
14486 yes) enable_fast_install=yes ;;
14487 no) enable_fast_install=no ;;
14488 *)
14489 enable_fast_install=no
14490 # Look at the argument we got. We use all the common list separators.
14491 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14492 for pkg in $enableval; do
14493 IFS="$lt_save_ifs"
14494 if test "X$pkg" = "X$p"; then
14495 enable_fast_install=yes
14496 fi
14497 done
14498 IFS="$lt_save_ifs"
14499 ;;
14500 esac
14501else
14502 enable_fast_install=yes
14503fi
14504
14505
14506
14507
14508
14509
14510
14511
14512
14513
14514
14515# This can be used to rebuild libtool when needed
14516LIBTOOL_DEPS="$ltmain"
14517
14518# Always use our own libtool.
14519LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14520
14521
14522
14523
14524
14525
14526
14527
14528
14529
14530
14531
14532
14533
14534
14535
14536
14537
14538
14539
14540
14541
14542
14543
14544
cristy0c60a692010-11-04 01:09:47 +000014545
cristy99bd5232011-12-07 14:38:20 +000014546
14547
14548
14549
cristy73bd4a52010-10-05 11:24:23 +000014550test -z "$LN_S" && LN_S="ln -s"
14551
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565if test -n "${ZSH_VERSION+set}" ; then
14566 setopt NO_GLOB_SUBST
14567fi
14568
14569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14570$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014571if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014572 $as_echo_n "(cached) " >&6
14573else
14574 rm -f .libs 2>/dev/null
14575mkdir .libs 2>/dev/null
14576if test -d .libs; then
14577 lt_cv_objdir=.libs
14578else
14579 # MS-DOS does not allow filenames that begin with a dot.
14580 lt_cv_objdir=_libs
14581fi
14582rmdir .libs 2>/dev/null
14583fi
14584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14585$as_echo "$lt_cv_objdir" >&6; }
14586objdir=$lt_cv_objdir
14587
14588
14589
14590
14591
14592cat >>confdefs.h <<_ACEOF
14593#define LT_OBJDIR "$lt_cv_objdir/"
14594_ACEOF
14595
14596
14597
14598
cristy73bd4a52010-10-05 11:24:23 +000014599case $host_os in
14600aix3*)
14601 # AIX sometimes has problems with the GCC collect2 program. For some
14602 # reason, if we set the COLLECT_NAMES environment variable, the problems
14603 # vanish in a puff of smoke.
14604 if test "X${COLLECT_NAMES+set}" != Xset; then
14605 COLLECT_NAMES=
14606 export COLLECT_NAMES
14607 fi
14608 ;;
14609esac
14610
cristy73bd4a52010-10-05 11:24:23 +000014611# Global variables:
14612ofile=libtool
14613can_build_shared=yes
14614
14615# All known linkers require a `.a' archive for static linking (except MSVC,
14616# which needs '.lib').
14617libext=a
14618
14619with_gnu_ld="$lt_cv_prog_gnu_ld"
14620
14621old_CC="$CC"
14622old_CFLAGS="$CFLAGS"
14623
14624# Set sane defaults for various variables
14625test -z "$CC" && CC=cc
14626test -z "$LTCC" && LTCC=$CC
14627test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14628test -z "$LD" && LD=ld
14629test -z "$ac_objext" && ac_objext=o
14630
14631for cc_temp in $compiler""; do
14632 case $cc_temp in
14633 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14634 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14635 \-*) ;;
14636 *) break;;
14637 esac
14638done
cristy0c60a692010-11-04 01:09:47 +000014639cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000014640
14641
14642# Only perform the check for file, if the check method requires it
14643test -z "$MAGIC_CMD" && MAGIC_CMD=file
14644case $deplibs_check_method in
14645file_magic*)
14646 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14648$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014649if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014650 $as_echo_n "(cached) " >&6
14651else
14652 case $MAGIC_CMD in
14653[\\/*] | ?:[\\/]*)
14654 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14655 ;;
14656*)
14657 lt_save_MAGIC_CMD="$MAGIC_CMD"
14658 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14659 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14660 for ac_dir in $ac_dummy; do
14661 IFS="$lt_save_ifs"
14662 test -z "$ac_dir" && ac_dir=.
14663 if test -f $ac_dir/${ac_tool_prefix}file; then
14664 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14665 if test -n "$file_magic_test_file"; then
14666 case $deplibs_check_method in
14667 "file_magic "*)
14668 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14669 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14670 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14671 $EGREP "$file_magic_regex" > /dev/null; then
14672 :
14673 else
14674 cat <<_LT_EOF 1>&2
14675
14676*** Warning: the command libtool uses to detect shared libraries,
14677*** $file_magic_cmd, produces output that libtool cannot recognize.
14678*** The result is that libtool may fail to recognize shared libraries
14679*** as such. This will affect the creation of libtool libraries that
14680*** depend on shared libraries, but programs linked with such libtool
14681*** libraries will work regardless of this problem. Nevertheless, you
14682*** may want to report the problem to your system manager and/or to
14683*** bug-libtool@gnu.org
14684
14685_LT_EOF
14686 fi ;;
14687 esac
14688 fi
14689 break
14690 fi
14691 done
14692 IFS="$lt_save_ifs"
14693 MAGIC_CMD="$lt_save_MAGIC_CMD"
14694 ;;
14695esac
14696fi
14697
14698MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14699if test -n "$MAGIC_CMD"; then
14700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14701$as_echo "$MAGIC_CMD" >&6; }
14702else
14703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14704$as_echo "no" >&6; }
14705fi
14706
14707
14708
14709
14710
14711if test -z "$lt_cv_path_MAGIC_CMD"; then
14712 if test -n "$ac_tool_prefix"; then
14713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14714$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014715if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014716 $as_echo_n "(cached) " >&6
14717else
14718 case $MAGIC_CMD in
14719[\\/*] | ?:[\\/]*)
14720 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14721 ;;
14722*)
14723 lt_save_MAGIC_CMD="$MAGIC_CMD"
14724 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14725 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14726 for ac_dir in $ac_dummy; do
14727 IFS="$lt_save_ifs"
14728 test -z "$ac_dir" && ac_dir=.
14729 if test -f $ac_dir/file; then
14730 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14731 if test -n "$file_magic_test_file"; then
14732 case $deplibs_check_method in
14733 "file_magic "*)
14734 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14735 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14736 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14737 $EGREP "$file_magic_regex" > /dev/null; then
14738 :
14739 else
14740 cat <<_LT_EOF 1>&2
14741
14742*** Warning: the command libtool uses to detect shared libraries,
14743*** $file_magic_cmd, produces output that libtool cannot recognize.
14744*** The result is that libtool may fail to recognize shared libraries
14745*** as such. This will affect the creation of libtool libraries that
14746*** depend on shared libraries, but programs linked with such libtool
14747*** libraries will work regardless of this problem. Nevertheless, you
14748*** may want to report the problem to your system manager and/or to
14749*** bug-libtool@gnu.org
14750
14751_LT_EOF
14752 fi ;;
14753 esac
14754 fi
14755 break
14756 fi
14757 done
14758 IFS="$lt_save_ifs"
14759 MAGIC_CMD="$lt_save_MAGIC_CMD"
14760 ;;
14761esac
14762fi
14763
14764MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14765if test -n "$MAGIC_CMD"; then
14766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14767$as_echo "$MAGIC_CMD" >&6; }
14768else
14769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14770$as_echo "no" >&6; }
14771fi
14772
14773
14774 else
14775 MAGIC_CMD=:
14776 fi
14777fi
14778
14779 fi
14780 ;;
14781esac
14782
14783# Use C for the default configuration in the libtool script
14784
14785lt_save_CC="$CC"
14786ac_ext=c
14787ac_cpp='$CPP $CPPFLAGS'
14788ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14789ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14790ac_compiler_gnu=$ac_cv_c_compiler_gnu
14791
14792
14793# Source file extension for C test sources.
14794ac_ext=c
14795
14796# Object file extension for compiled C test sources.
14797objext=o
14798objext=$objext
14799
14800# Code to be used in simple compile tests
14801lt_simple_compile_test_code="int some_variable = 0;"
14802
14803# Code to be used in simple link tests
14804lt_simple_link_test_code='int main(){return(0);}'
14805
14806
14807
14808
14809
14810
14811
14812# If no C compiler was specified, use CC.
14813LTCC=${LTCC-"$CC"}
14814
14815# If no C compiler flags were specified, use CFLAGS.
14816LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14817
14818# Allow CC to be a program name with arguments.
14819compiler=$CC
14820
14821# Save the default compiler, since it gets overwritten when the other
14822# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14823compiler_DEFAULT=$CC
14824
14825# save warnings/boilerplate of simple test code
14826ac_outfile=conftest.$ac_objext
14827echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14828eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14829_lt_compiler_boilerplate=`cat conftest.err`
14830$RM conftest*
14831
14832ac_outfile=conftest.$ac_objext
14833echo "$lt_simple_link_test_code" >conftest.$ac_ext
14834eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14835_lt_linker_boilerplate=`cat conftest.err`
14836$RM -r conftest*
14837
14838
14839## CAVEAT EMPTOR:
14840## There is no encapsulation within the following macros, do not change
14841## the running order or otherwise move them around unless you know exactly
14842## what you are doing...
14843if test -n "$compiler"; then
14844
14845lt_prog_compiler_no_builtin_flag=
14846
14847if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000014848 case $cc_basename in
14849 nvcc*)
14850 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14851 *)
14852 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14853 esac
cristy73bd4a52010-10-05 11:24:23 +000014854
14855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14856$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014857if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014858 $as_echo_n "(cached) " >&6
14859else
14860 lt_cv_prog_compiler_rtti_exceptions=no
14861 ac_outfile=conftest.$ac_objext
14862 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14863 lt_compiler_flag="-fno-rtti -fno-exceptions"
14864 # Insert the option either (1) after the last *FLAGS variable, or
14865 # (2) before a word containing "conftest.", or (3) at the end.
14866 # Note that $ac_compile itself does not contain backslashes and begins
14867 # with a dollar sign (not a hyphen), so the echo should work correctly.
14868 # The option is referenced via a variable to avoid confusing sed.
14869 lt_compile=`echo "$ac_compile" | $SED \
14870 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14871 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14872 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014873 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014874 (eval "$lt_compile" 2>conftest.err)
14875 ac_status=$?
14876 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014878 if (exit $ac_status) && test -s "$ac_outfile"; then
14879 # The compiler can only warn and ignore the option if not recognized
14880 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014881 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014882 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14883 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14884 lt_cv_prog_compiler_rtti_exceptions=yes
14885 fi
14886 fi
14887 $RM conftest*
14888
14889fi
14890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14891$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14892
14893if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14894 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14895else
14896 :
14897fi
14898
14899fi
14900
14901
14902
14903
14904
14905
14906 lt_prog_compiler_wl=
14907lt_prog_compiler_pic=
14908lt_prog_compiler_static=
14909
cristy73bd4a52010-10-05 11:24:23 +000014910
14911 if test "$GCC" = yes; then
14912 lt_prog_compiler_wl='-Wl,'
14913 lt_prog_compiler_static='-static'
14914
14915 case $host_os in
14916 aix*)
14917 # All AIX code is PIC.
14918 if test "$host_cpu" = ia64; then
14919 # AIX 5 now supports IA64 processor
14920 lt_prog_compiler_static='-Bstatic'
14921 fi
14922 ;;
14923
14924 amigaos*)
14925 case $host_cpu in
14926 powerpc)
14927 # see comment about AmigaOS4 .so support
14928 lt_prog_compiler_pic='-fPIC'
14929 ;;
14930 m68k)
14931 # FIXME: we need at least 68020 code to build shared libraries, but
14932 # adding the `-m68020' flag to GCC prevents building anything better,
14933 # like `-m68040'.
14934 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14935 ;;
14936 esac
14937 ;;
14938
14939 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14940 # PIC is the default for these OSes.
14941 ;;
14942
14943 mingw* | cygwin* | pw32* | os2* | cegcc*)
14944 # This hack is so that the source file can tell whether it is being
14945 # built for inclusion in a dll (and should export symbols for example).
14946 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14947 # (--disable-auto-import) libraries
14948 lt_prog_compiler_pic='-DDLL_EXPORT'
14949 ;;
14950
14951 darwin* | rhapsody*)
14952 # PIC is the default on this platform
14953 # Common symbols not allowed in MH_DYLIB files
14954 lt_prog_compiler_pic='-fno-common'
14955 ;;
14956
cristy0c60a692010-11-04 01:09:47 +000014957 haiku*)
14958 # PIC is the default for Haiku.
14959 # The "-static" flag exists, but is broken.
14960 lt_prog_compiler_static=
14961 ;;
14962
cristy73bd4a52010-10-05 11:24:23 +000014963 hpux*)
14964 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14965 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14966 # sets the default TLS model and affects inlining.
14967 case $host_cpu in
14968 hppa*64*)
14969 # +Z the default
14970 ;;
14971 *)
14972 lt_prog_compiler_pic='-fPIC'
14973 ;;
14974 esac
14975 ;;
14976
14977 interix[3-9]*)
14978 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14979 # Instead, we relocate shared libraries at runtime.
14980 ;;
14981
14982 msdosdjgpp*)
14983 # Just because we use GCC doesn't mean we suddenly get shared libraries
14984 # on systems that don't support them.
14985 lt_prog_compiler_can_build_shared=no
14986 enable_shared=no
14987 ;;
14988
14989 *nto* | *qnx*)
14990 # QNX uses GNU C++, but need to define -shared option too, otherwise
14991 # it will coredump.
14992 lt_prog_compiler_pic='-fPIC -shared'
14993 ;;
14994
14995 sysv4*MP*)
14996 if test -d /usr/nec; then
14997 lt_prog_compiler_pic=-Kconform_pic
14998 fi
14999 ;;
15000
15001 *)
15002 lt_prog_compiler_pic='-fPIC'
15003 ;;
15004 esac
cristy0c60a692010-11-04 01:09:47 +000015005
15006 case $cc_basename in
15007 nvcc*) # Cuda Compiler Driver 2.2
15008 lt_prog_compiler_wl='-Xlinker '
cristy99bd5232011-12-07 14:38:20 +000015009 if test -n "$lt_prog_compiler_pic"; then
15010 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
15011 fi
cristy0c60a692010-11-04 01:09:47 +000015012 ;;
15013 esac
cristy73bd4a52010-10-05 11:24:23 +000015014 else
15015 # PORTME Check for flag to pass linker flags through the system compiler.
15016 case $host_os in
15017 aix*)
15018 lt_prog_compiler_wl='-Wl,'
15019 if test "$host_cpu" = ia64; then
15020 # AIX 5 now supports IA64 processor
15021 lt_prog_compiler_static='-Bstatic'
15022 else
15023 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15024 fi
15025 ;;
15026
15027 mingw* | cygwin* | pw32* | os2* | cegcc*)
15028 # This hack is so that the source file can tell whether it is being
15029 # built for inclusion in a dll (and should export symbols for example).
15030 lt_prog_compiler_pic='-DDLL_EXPORT'
15031 ;;
15032
15033 hpux9* | hpux10* | hpux11*)
15034 lt_prog_compiler_wl='-Wl,'
15035 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15036 # not for PA HP-UX.
15037 case $host_cpu in
15038 hppa*64*|ia64*)
15039 # +Z the default
15040 ;;
15041 *)
15042 lt_prog_compiler_pic='+Z'
15043 ;;
15044 esac
15045 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15046 lt_prog_compiler_static='${wl}-a ${wl}archive'
15047 ;;
15048
15049 irix5* | irix6* | nonstopux*)
15050 lt_prog_compiler_wl='-Wl,'
15051 # PIC (with -KPIC) is the default.
15052 lt_prog_compiler_static='-non_shared'
15053 ;;
15054
cristy0c60a692010-11-04 01:09:47 +000015055 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000015056 case $cc_basename in
15057 # old Intel for x86_64 which still supported -KPIC.
15058 ecc*)
15059 lt_prog_compiler_wl='-Wl,'
15060 lt_prog_compiler_pic='-KPIC'
15061 lt_prog_compiler_static='-static'
15062 ;;
15063 # icc used to be incompatible with GCC.
15064 # ICC 10 doesn't accept -KPIC any more.
15065 icc* | ifort*)
15066 lt_prog_compiler_wl='-Wl,'
15067 lt_prog_compiler_pic='-fPIC'
15068 lt_prog_compiler_static='-static'
15069 ;;
15070 # Lahey Fortran 8.1.
15071 lf95*)
15072 lt_prog_compiler_wl='-Wl,'
15073 lt_prog_compiler_pic='--shared'
15074 lt_prog_compiler_static='--static'
15075 ;;
cristyda16f162011-02-19 23:52:17 +000015076 nagfor*)
15077 # NAG Fortran compiler
15078 lt_prog_compiler_wl='-Wl,-Wl,,'
15079 lt_prog_compiler_pic='-PIC'
15080 lt_prog_compiler_static='-Bstatic'
15081 ;;
cristy0c60a692010-11-04 01:09:47 +000015082 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000015083 # Portland Group compilers (*not* the Pentium gcc compiler,
15084 # which looks to be a dead project)
15085 lt_prog_compiler_wl='-Wl,'
15086 lt_prog_compiler_pic='-fpic'
15087 lt_prog_compiler_static='-Bstatic'
15088 ;;
15089 ccc*)
15090 lt_prog_compiler_wl='-Wl,'
15091 # All Alpha code is PIC.
15092 lt_prog_compiler_static='-non_shared'
15093 ;;
cristy0c60a692010-11-04 01:09:47 +000015094 xl* | bgxl* | bgf* | mpixl*)
15095 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000015096 lt_prog_compiler_wl='-Wl,'
15097 lt_prog_compiler_pic='-qpic'
15098 lt_prog_compiler_static='-qstaticlink'
15099 ;;
15100 *)
15101 case `$CC -V 2>&1 | sed 5q` in
cristy99bd5232011-12-07 14:38:20 +000015102 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
cristy0c60a692010-11-04 01:09:47 +000015103 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15104 lt_prog_compiler_pic='-KPIC'
15105 lt_prog_compiler_static='-Bstatic'
15106 lt_prog_compiler_wl=''
15107 ;;
cristy99bd5232011-12-07 14:38:20 +000015108 *Sun\ F* | *Sun*Fortran*)
15109 lt_prog_compiler_pic='-KPIC'
15110 lt_prog_compiler_static='-Bstatic'
15111 lt_prog_compiler_wl='-Qoption ld '
15112 ;;
cristy73bd4a52010-10-05 11:24:23 +000015113 *Sun\ C*)
15114 # Sun C 5.9
15115 lt_prog_compiler_pic='-KPIC'
15116 lt_prog_compiler_static='-Bstatic'
15117 lt_prog_compiler_wl='-Wl,'
15118 ;;
cristy99bd5232011-12-07 14:38:20 +000015119 *Intel*\ [CF]*Compiler*)
15120 lt_prog_compiler_wl='-Wl,'
15121 lt_prog_compiler_pic='-fPIC'
15122 lt_prog_compiler_static='-static'
15123 ;;
15124 *Portland\ Group*)
15125 lt_prog_compiler_wl='-Wl,'
15126 lt_prog_compiler_pic='-fpic'
15127 lt_prog_compiler_static='-Bstatic'
15128 ;;
cristy73bd4a52010-10-05 11:24:23 +000015129 esac
15130 ;;
15131 esac
15132 ;;
15133
15134 newsos6)
15135 lt_prog_compiler_pic='-KPIC'
15136 lt_prog_compiler_static='-Bstatic'
15137 ;;
15138
15139 *nto* | *qnx*)
15140 # QNX uses GNU C++, but need to define -shared option too, otherwise
15141 # it will coredump.
15142 lt_prog_compiler_pic='-fPIC -shared'
15143 ;;
15144
15145 osf3* | osf4* | osf5*)
15146 lt_prog_compiler_wl='-Wl,'
15147 # All OSF/1 code is PIC.
15148 lt_prog_compiler_static='-non_shared'
15149 ;;
15150
15151 rdos*)
15152 lt_prog_compiler_static='-non_shared'
15153 ;;
15154
15155 solaris*)
15156 lt_prog_compiler_pic='-KPIC'
15157 lt_prog_compiler_static='-Bstatic'
15158 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000015159 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000015160 lt_prog_compiler_wl='-Qoption ld ';;
15161 *)
15162 lt_prog_compiler_wl='-Wl,';;
15163 esac
15164 ;;
15165
15166 sunos4*)
15167 lt_prog_compiler_wl='-Qoption ld '
15168 lt_prog_compiler_pic='-PIC'
15169 lt_prog_compiler_static='-Bstatic'
15170 ;;
15171
15172 sysv4 | sysv4.2uw2* | sysv4.3*)
15173 lt_prog_compiler_wl='-Wl,'
15174 lt_prog_compiler_pic='-KPIC'
15175 lt_prog_compiler_static='-Bstatic'
15176 ;;
15177
15178 sysv4*MP*)
15179 if test -d /usr/nec ;then
15180 lt_prog_compiler_pic='-Kconform_pic'
15181 lt_prog_compiler_static='-Bstatic'
15182 fi
15183 ;;
15184
15185 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15186 lt_prog_compiler_wl='-Wl,'
15187 lt_prog_compiler_pic='-KPIC'
15188 lt_prog_compiler_static='-Bstatic'
15189 ;;
15190
15191 unicos*)
15192 lt_prog_compiler_wl='-Wl,'
15193 lt_prog_compiler_can_build_shared=no
15194 ;;
15195
15196 uts4*)
15197 lt_prog_compiler_pic='-pic'
15198 lt_prog_compiler_static='-Bstatic'
15199 ;;
15200
15201 *)
15202 lt_prog_compiler_can_build_shared=no
15203 ;;
15204 esac
15205 fi
15206
15207case $host_os in
15208 # For platforms which do not support PIC, -DPIC is meaningless:
15209 *djgpp*)
15210 lt_prog_compiler_pic=
15211 ;;
15212 *)
15213 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15214 ;;
15215esac
cristy73bd4a52010-10-05 11:24:23 +000015216
cristyda16f162011-02-19 23:52:17 +000015217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15218$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15219if ${lt_cv_prog_compiler_pic+:} false; then :
15220 $as_echo_n "(cached) " >&6
15221else
15222 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
15223fi
15224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
15225$as_echo "$lt_cv_prog_compiler_pic" >&6; }
15226lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000015227
15228#
15229# Check to make sure the PIC flag actually works.
15230#
15231if test -n "$lt_prog_compiler_pic"; then
15232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15233$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015234if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015235 $as_echo_n "(cached) " >&6
15236else
15237 lt_cv_prog_compiler_pic_works=no
15238 ac_outfile=conftest.$ac_objext
15239 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15240 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15241 # Insert the option either (1) after the last *FLAGS variable, or
15242 # (2) before a word containing "conftest.", or (3) at the end.
15243 # Note that $ac_compile itself does not contain backslashes and begins
15244 # with a dollar sign (not a hyphen), so the echo should work correctly.
15245 # The option is referenced via a variable to avoid confusing sed.
15246 lt_compile=`echo "$ac_compile" | $SED \
15247 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15248 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15249 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000015250 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000015251 (eval "$lt_compile" 2>conftest.err)
15252 ac_status=$?
15253 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000015254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000015255 if (exit $ac_status) && test -s "$ac_outfile"; then
15256 # The compiler can only warn and ignore the option if not recognized
15257 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000015258 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000015259 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15260 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15261 lt_cv_prog_compiler_pic_works=yes
15262 fi
15263 fi
15264 $RM conftest*
15265
15266fi
15267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15268$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15269
15270if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15271 case $lt_prog_compiler_pic in
15272 "" | " "*) ;;
15273 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15274 esac
15275else
15276 lt_prog_compiler_pic=
15277 lt_prog_compiler_can_build_shared=no
15278fi
15279
15280fi
15281
15282
15283
15284
15285
15286
cristyda16f162011-02-19 23:52:17 +000015287
15288
15289
15290
15291
cristy73bd4a52010-10-05 11:24:23 +000015292#
15293# Check to make sure the static flag actually works.
15294#
15295wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15297$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015298if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015299 $as_echo_n "(cached) " >&6
15300else
15301 lt_cv_prog_compiler_static_works=no
15302 save_LDFLAGS="$LDFLAGS"
15303 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15304 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15305 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15306 # The linker can only warn and ignore the option if not recognized
15307 # So say no if there are warnings
15308 if test -s conftest.err; then
15309 # Append any errors to the config.log.
15310 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000015311 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000015312 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15313 if diff conftest.exp conftest.er2 >/dev/null; then
15314 lt_cv_prog_compiler_static_works=yes
15315 fi
15316 else
15317 lt_cv_prog_compiler_static_works=yes
15318 fi
15319 fi
15320 $RM -r conftest*
15321 LDFLAGS="$save_LDFLAGS"
15322
15323fi
15324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15325$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15326
15327if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15328 :
15329else
15330 lt_prog_compiler_static=
15331fi
15332
15333
15334
15335
15336
15337
15338
15339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15340$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015341if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015342 $as_echo_n "(cached) " >&6
15343else
15344 lt_cv_prog_compiler_c_o=no
15345 $RM -r conftest 2>/dev/null
15346 mkdir conftest
15347 cd conftest
15348 mkdir out
15349 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15350
15351 lt_compiler_flag="-o out/conftest2.$ac_objext"
15352 # Insert the option either (1) after the last *FLAGS variable, or
15353 # (2) before a word containing "conftest.", or (3) at the end.
15354 # Note that $ac_compile itself does not contain backslashes and begins
15355 # with a dollar sign (not a hyphen), so the echo should work correctly.
15356 lt_compile=`echo "$ac_compile" | $SED \
15357 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15358 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15359 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000015360 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000015361 (eval "$lt_compile" 2>out/conftest.err)
15362 ac_status=$?
15363 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000015364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000015365 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15366 then
15367 # The compiler can only warn and ignore the option if not recognized
15368 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000015369 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000015370 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15371 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15372 lt_cv_prog_compiler_c_o=yes
15373 fi
15374 fi
15375 chmod u+w . 2>&5
15376 $RM conftest*
15377 # SGI C++ compiler will create directory out/ii_files/ for
15378 # template instantiation
15379 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15380 $RM out/* && rmdir out
15381 cd ..
15382 $RM -r conftest
15383 $RM conftest*
15384
15385fi
15386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15387$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15388
15389
15390
15391
15392
15393
15394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15395$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015396if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015397 $as_echo_n "(cached) " >&6
15398else
15399 lt_cv_prog_compiler_c_o=no
15400 $RM -r conftest 2>/dev/null
15401 mkdir conftest
15402 cd conftest
15403 mkdir out
15404 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15405
15406 lt_compiler_flag="-o out/conftest2.$ac_objext"
15407 # Insert the option either (1) after the last *FLAGS variable, or
15408 # (2) before a word containing "conftest.", or (3) at the end.
15409 # Note that $ac_compile itself does not contain backslashes and begins
15410 # with a dollar sign (not a hyphen), so the echo should work correctly.
15411 lt_compile=`echo "$ac_compile" | $SED \
15412 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15413 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15414 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000015415 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000015416 (eval "$lt_compile" 2>out/conftest.err)
15417 ac_status=$?
15418 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000015419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000015420 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15421 then
15422 # The compiler can only warn and ignore the option if not recognized
15423 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000015424 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000015425 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15426 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15427 lt_cv_prog_compiler_c_o=yes
15428 fi
15429 fi
15430 chmod u+w . 2>&5
15431 $RM conftest*
15432 # SGI C++ compiler will create directory out/ii_files/ for
15433 # template instantiation
15434 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15435 $RM out/* && rmdir out
15436 cd ..
15437 $RM -r conftest
15438 $RM conftest*
15439
15440fi
15441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15442$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15443
15444
15445
15446
15447hard_links="nottested"
15448if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15449 # do not overwrite the value of need_locks provided by the user
15450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15451$as_echo_n "checking if we can lock with hard links... " >&6; }
15452 hard_links=yes
15453 $RM conftest*
15454 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15455 touch conftest.a
15456 ln conftest.a conftest.b 2>&5 || hard_links=no
15457 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15459$as_echo "$hard_links" >&6; }
15460 if test "$hard_links" = no; then
15461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15462$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15463 need_locks=warn
15464 fi
15465else
15466 need_locks=no
15467fi
15468
15469
15470
15471
15472
15473
15474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15475$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15476
15477 runpath_var=
15478 allow_undefined_flag=
15479 always_export_symbols=no
15480 archive_cmds=
15481 archive_expsym_cmds=
15482 compiler_needs_object=no
15483 enable_shared_with_static_runtimes=no
15484 export_dynamic_flag_spec=
15485 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15486 hardcode_automatic=no
15487 hardcode_direct=no
15488 hardcode_direct_absolute=no
15489 hardcode_libdir_flag_spec=
cristy73bd4a52010-10-05 11:24:23 +000015490 hardcode_libdir_separator=
15491 hardcode_minus_L=no
15492 hardcode_shlibpath_var=unsupported
15493 inherit_rpath=no
15494 link_all_deplibs=unknown
15495 module_cmds=
15496 module_expsym_cmds=
15497 old_archive_from_new_cmds=
15498 old_archive_from_expsyms_cmds=
15499 thread_safe_flag_spec=
15500 whole_archive_flag_spec=
15501 # include_expsyms should be a list of space-separated symbols to be *always*
15502 # included in the symbol list
15503 include_expsyms=
15504 # exclude_expsyms can be an extended regexp of symbols to exclude
15505 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15506 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15507 # as well as any symbol that contains `d'.
15508 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15509 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15510 # platforms (ab)use it in PIC code, but their linkers get confused if
15511 # the symbol is explicitly referenced. Since portable code cannot
15512 # rely on this symbol name, it's probably fine to never include it in
15513 # preloaded symbol tables.
15514 # Exclude shared library initialization/finalization symbols.
15515 extract_expsyms_cmds=
15516
15517 case $host_os in
15518 cygwin* | mingw* | pw32* | cegcc*)
15519 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15520 # When not using gcc, we currently assume that we are using
15521 # Microsoft Visual C++.
15522 if test "$GCC" != yes; then
15523 with_gnu_ld=no
15524 fi
15525 ;;
15526 interix*)
15527 # we just hope/assume this is gcc and not c89 (= MSVC++)
15528 with_gnu_ld=yes
15529 ;;
15530 openbsd*)
15531 with_gnu_ld=no
15532 ;;
15533 esac
15534
15535 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000015536
15537 # On some targets, GNU ld is compatible enough with the native linker
15538 # that we're better off using the native interface for both.
15539 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000015540 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000015541 case $host_os in
15542 aix*)
15543 # The AIX port of GNU ld has always aspired to compatibility
15544 # with the native linker. However, as the warning in the GNU ld
15545 # block says, versions before 2.19.5* couldn't really create working
15546 # shared libraries, regardless of the interface used.
15547 case `$LD -v 2>&1` in
15548 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15549 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15550 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15551 *)
15552 lt_use_gnu_ld_interface=yes
15553 ;;
15554 esac
15555 ;;
15556 *)
15557 lt_use_gnu_ld_interface=yes
15558 ;;
15559 esac
15560 fi
15561
15562 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000015563 # If archive_cmds runs LD, not CC, wlarc should be empty
15564 wlarc='${wl}'
15565
15566 # Set some defaults for GNU ld with shared library support. These
15567 # are reset later if shared libraries are not supported. Putting them
15568 # here allows them to be overridden if necessary.
15569 runpath_var=LD_RUN_PATH
15570 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15571 export_dynamic_flag_spec='${wl}--export-dynamic'
15572 # ancient GNU ld didn't support --whole-archive et. al.
15573 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15574 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15575 else
15576 whole_archive_flag_spec=
15577 fi
15578 supports_anon_versioning=no
15579 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000015580 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000015581 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15582 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15583 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15584 *\ 2.11.*) ;; # other 2.11 versions
15585 *) supports_anon_versioning=yes ;;
15586 esac
15587
15588 # See if GNU ld supports shared libraries.
15589 case $host_os in
15590 aix[3-9]*)
15591 # On AIX/PPC, the GNU linker is very broken
15592 if test "$host_cpu" != ia64; then
15593 ld_shlibs=no
15594 cat <<_LT_EOF 1>&2
15595
cristy0c60a692010-11-04 01:09:47 +000015596*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000015597*** to be unable to reliably create shared libraries on AIX.
15598*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000015599*** really care for shared libraries, you may want to install binutils
15600*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15601*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000015602
15603_LT_EOF
15604 fi
15605 ;;
15606
15607 amigaos*)
15608 case $host_cpu in
15609 powerpc)
15610 # see comment about AmigaOS4 .so support
15611 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15612 archive_expsym_cmds=''
15613 ;;
15614 m68k)
15615 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)'
15616 hardcode_libdir_flag_spec='-L$libdir'
15617 hardcode_minus_L=yes
15618 ;;
15619 esac
15620 ;;
15621
15622 beos*)
15623 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15624 allow_undefined_flag=unsupported
15625 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15626 # support --undefined. This deserves some investigation. FIXME
15627 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15628 else
15629 ld_shlibs=no
15630 fi
15631 ;;
15632
15633 cygwin* | mingw* | pw32* | cegcc*)
15634 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15635 # as there is no search path for DLLs.
15636 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000015637 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000015638 allow_undefined_flag=unsupported
15639 always_export_symbols=no
15640 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000015641 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'
15642 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 +000015643
15644 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15645 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15646 # If the export-symbols file already is a .def file (1st line
15647 # is EXPORTS), use it as is; otherwise, prepend...
15648 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15649 cp $export_symbols $output_objdir/$soname.def;
15650 else
15651 echo EXPORTS > $output_objdir/$soname.def;
15652 cat $export_symbols >> $output_objdir/$soname.def;
15653 fi~
15654 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15655 else
15656 ld_shlibs=no
15657 fi
15658 ;;
15659
cristy0c60a692010-11-04 01:09:47 +000015660 haiku*)
15661 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15662 link_all_deplibs=yes
15663 ;;
15664
cristy73bd4a52010-10-05 11:24:23 +000015665 interix[3-9]*)
15666 hardcode_direct=no
15667 hardcode_shlibpath_var=no
15668 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15669 export_dynamic_flag_spec='${wl}-E'
15670 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15671 # Instead, shared libraries are loaded at an image base (0x10000000 by
15672 # default) and relocated if they conflict, which is a slow very memory
15673 # consuming and fragmenting process. To avoid this, we pick a random,
15674 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15675 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15676 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15677 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'
15678 ;;
15679
cristy0c60a692010-11-04 01:09:47 +000015680 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000015681 tmp_diet=no
15682 if test "$host_os" = linux-dietlibc; then
15683 case $cc_basename in
15684 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15685 esac
15686 fi
15687 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15688 && test "$tmp_diet" = no
15689 then
cristyda16f162011-02-19 23:52:17 +000015690 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000015691 tmp_sharedflag='-shared'
15692 case $cc_basename,$host_cpu in
15693 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000015694 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 +000015695 tmp_addflag=' $pic_flag'
15696 ;;
cristy0c60a692010-11-04 01:09:47 +000015697 pgf77* | pgf90* | pgf95* | pgfortran*)
15698 # Portland Group f77 and f90 compilers
15699 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 +000015700 tmp_addflag=' $pic_flag -Mnomain' ;;
15701 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15702 tmp_addflag=' -i_dynamic' ;;
15703 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15704 tmp_addflag=' -i_dynamic -nofor_main' ;;
15705 ifc* | ifort*) # Intel Fortran compiler
15706 tmp_addflag=' -nofor_main' ;;
15707 lf95*) # Lahey Fortran 8.1
15708 whole_archive_flag_spec=
15709 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000015710 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000015711 tmp_sharedflag='-qmkshrobj'
15712 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000015713 nvcc*) # Cuda Compiler Driver 2.2
15714 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'
15715 compiler_needs_object=yes
15716 ;;
cristy73bd4a52010-10-05 11:24:23 +000015717 esac
15718 case `$CC -V 2>&1 | sed 5q` in
15719 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000015720 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 +000015721 compiler_needs_object=yes
15722 tmp_sharedflag='-G' ;;
15723 *Sun\ F*) # Sun Fortran 8.3
15724 tmp_sharedflag='-G' ;;
15725 esac
15726 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15727
15728 if test "x$supports_anon_versioning" = xyes; then
15729 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15730 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15731 echo "local: *; };" >> $output_objdir/$libname.ver~
15732 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15733 fi
15734
15735 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000015736 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000015737 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15738 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
cristy99bd5232011-12-07 14:38:20 +000015739 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cristy0c60a692010-11-04 01:09:47 +000015740 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015741 if test "x$supports_anon_versioning" = xyes; then
15742 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15743 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15744 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000015745 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015746 fi
15747 ;;
15748 esac
15749 else
15750 ld_shlibs=no
15751 fi
15752 ;;
15753
15754 netbsd*)
15755 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15756 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15757 wlarc=
15758 else
cristyda16f162011-02-19 23:52:17 +000015759 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15760 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 +000015761 fi
15762 ;;
15763
15764 solaris*)
15765 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15766 ld_shlibs=no
15767 cat <<_LT_EOF 1>&2
15768
15769*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15770*** create shared libraries on Solaris systems. Therefore, libtool
15771*** is disabling shared libraries support. We urge you to upgrade GNU
15772*** binutils to release 2.9.1 or newer. Another option is to modify
15773*** your PATH or compiler configuration so that the native linker is
15774*** used, and then restart.
15775
15776_LT_EOF
15777 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000015778 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15779 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 +000015780 else
15781 ld_shlibs=no
15782 fi
15783 ;;
15784
15785 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15786 case `$LD -v 2>&1` in
15787 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15788 ld_shlibs=no
15789 cat <<_LT_EOF 1>&2
15790
15791*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15792*** reliably create shared libraries on SCO systems. Therefore, libtool
15793*** is disabling shared libraries support. We urge you to upgrade GNU
15794*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15795*** your PATH or compiler configuration so that the native linker is
15796*** used, and then restart.
15797
15798_LT_EOF
15799 ;;
15800 *)
15801 # For security reasons, it is highly recommended that you always
15802 # use absolute paths for naming shared libraries, and exclude the
15803 # DT_RUNPATH tag from executables and libraries. But doing so
15804 # requires that you compile everything twice, which is a pain.
15805 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15806 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15807 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15808 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15809 else
15810 ld_shlibs=no
15811 fi
15812 ;;
15813 esac
15814 ;;
15815
15816 sunos4*)
15817 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15818 wlarc=
15819 hardcode_direct=yes
15820 hardcode_shlibpath_var=no
15821 ;;
15822
15823 *)
15824 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000015825 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15826 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 +000015827 else
15828 ld_shlibs=no
15829 fi
15830 ;;
15831 esac
15832
15833 if test "$ld_shlibs" = no; then
15834 runpath_var=
15835 hardcode_libdir_flag_spec=
15836 export_dynamic_flag_spec=
15837 whole_archive_flag_spec=
15838 fi
15839 else
15840 # PORTME fill in a description of your system's linker (not GNU ld)
15841 case $host_os in
15842 aix3*)
15843 allow_undefined_flag=unsupported
15844 always_export_symbols=yes
15845 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'
15846 # Note: this linker hardcodes the directories in LIBPATH if there
15847 # are no directories specified by -L.
15848 hardcode_minus_L=yes
15849 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15850 # Neither direct hardcoding nor static linking is supported with a
15851 # broken collect2.
15852 hardcode_direct=unsupported
15853 fi
15854 ;;
15855
15856 aix[4-9]*)
15857 if test "$host_cpu" = ia64; then
15858 # On IA64, the linker does run time linking by default, so we don't
15859 # have to do anything special.
15860 aix_use_runtimelinking=no
15861 exp_sym_flag='-Bexport'
15862 no_entry_flag=""
15863 else
15864 # If we're using GNU nm, then we don't want the "-C" option.
15865 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000015866 # Also, AIX nm treats weak defined symbols like other global
15867 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000015868 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000015869 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 +000015870 else
15871 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'
15872 fi
15873 aix_use_runtimelinking=no
15874
15875 # Test if we are trying to use run time linking or normal
15876 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15877 # need to do runtime linking.
15878 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15879 for ld_flag in $LDFLAGS; do
15880 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15881 aix_use_runtimelinking=yes
15882 break
15883 fi
15884 done
15885 ;;
15886 esac
15887
15888 exp_sym_flag='-bexport'
15889 no_entry_flag='-bnoentry'
15890 fi
15891
15892 # When large executables or shared objects are built, AIX ld can
15893 # have problems creating the table of contents. If linking a library
15894 # or program results in "error TOC overflow" add -mminimal-toc to
15895 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15896 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15897
15898 archive_cmds=''
15899 hardcode_direct=yes
15900 hardcode_direct_absolute=yes
15901 hardcode_libdir_separator=':'
15902 link_all_deplibs=yes
15903 file_list_spec='${wl}-f,'
15904
15905 if test "$GCC" = yes; then
15906 case $host_os in aix4.[012]|aix4.[012].*)
15907 # We only want to do this on AIX 4.2 and lower, the check
15908 # below for broken collect2 doesn't work under 4.3+
15909 collect2name=`${CC} -print-prog-name=collect2`
15910 if test -f "$collect2name" &&
15911 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15912 then
15913 # We have reworked collect2
15914 :
15915 else
15916 # We have old collect2
15917 hardcode_direct=unsupported
15918 # It fails to find uninstalled libraries when the uninstalled
15919 # path is not listed in the libpath. Setting hardcode_minus_L
15920 # to unsupported forces relinking
15921 hardcode_minus_L=yes
15922 hardcode_libdir_flag_spec='-L$libdir'
15923 hardcode_libdir_separator=
15924 fi
15925 ;;
15926 esac
15927 shared_flag='-shared'
15928 if test "$aix_use_runtimelinking" = yes; then
15929 shared_flag="$shared_flag "'${wl}-G'
15930 fi
15931 else
15932 # not using gcc
15933 if test "$host_cpu" = ia64; then
15934 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15935 # chokes on -Wl,-G. The following line is correct:
15936 shared_flag='-G'
15937 else
15938 if test "$aix_use_runtimelinking" = yes; then
15939 shared_flag='${wl}-G'
15940 else
15941 shared_flag='${wl}-bM:SRE'
15942 fi
15943 fi
15944 fi
15945
15946 export_dynamic_flag_spec='${wl}-bexpall'
15947 # It seems that -bexpall does not export symbols beginning with
15948 # underscore (_), so it is better to generate a list of symbols to export.
15949 always_export_symbols=yes
15950 if test "$aix_use_runtimelinking" = yes; then
15951 # Warning - without using the other runtime loading flags (-brtl),
15952 # -berok will link without error, but may produce a broken library.
15953 allow_undefined_flag='-berok'
15954 # Determine the default libpath from the value encoded in an
15955 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015956 if test "${lt_cv_aix_libpath+set}" = set; then
15957 aix_libpath=$lt_cv_aix_libpath
15958else
15959 if ${lt_cv_aix_libpath_+:} false; then :
15960 $as_echo_n "(cached) " >&6
15961else
15962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015963/* end confdefs.h. */
15964
15965int
15966main ()
15967{
15968
15969 ;
15970 return 0;
15971}
15972_ACEOF
15973if ac_fn_c_try_link "$LINENO"; then :
15974
cristyda16f162011-02-19 23:52:17 +000015975 lt_aix_libpath_sed='
15976 /Import File Strings/,/^$/ {
15977 /^0/ {
15978 s/^0 *\([^ ]*\) *$/\1/
15979 p
15980 }
15981 }'
15982 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15983 # Check for a 64-bit object if we didn't find anything.
15984 if test -z "$lt_cv_aix_libpath_"; then
15985 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15986 fi
cristy73bd4a52010-10-05 11:24:23 +000015987fi
15988rm -f core conftest.err conftest.$ac_objext \
15989 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015990 if test -z "$lt_cv_aix_libpath_"; then
15991 lt_cv_aix_libpath_="/usr/lib:/lib"
15992 fi
15993
15994fi
15995
15996 aix_libpath=$lt_cv_aix_libpath_
15997fi
cristy73bd4a52010-10-05 11:24:23 +000015998
15999 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000016000 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 +000016001 else
16002 if test "$host_cpu" = ia64; then
16003 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16004 allow_undefined_flag="-z nodefs"
16005 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"
16006 else
16007 # Determine the default libpath from the value encoded in an
16008 # empty executable.
cristyda16f162011-02-19 23:52:17 +000016009 if test "${lt_cv_aix_libpath+set}" = set; then
16010 aix_libpath=$lt_cv_aix_libpath
16011else
16012 if ${lt_cv_aix_libpath_+:} false; then :
16013 $as_echo_n "(cached) " >&6
16014else
16015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016016/* end confdefs.h. */
16017
16018int
16019main ()
16020{
16021
16022 ;
16023 return 0;
16024}
16025_ACEOF
16026if ac_fn_c_try_link "$LINENO"; then :
16027
cristyda16f162011-02-19 23:52:17 +000016028 lt_aix_libpath_sed='
16029 /Import File Strings/,/^$/ {
16030 /^0/ {
16031 s/^0 *\([^ ]*\) *$/\1/
16032 p
16033 }
16034 }'
16035 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16036 # Check for a 64-bit object if we didn't find anything.
16037 if test -z "$lt_cv_aix_libpath_"; then
16038 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16039 fi
cristy73bd4a52010-10-05 11:24:23 +000016040fi
16041rm -f core conftest.err conftest.$ac_objext \
16042 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000016043 if test -z "$lt_cv_aix_libpath_"; then
16044 lt_cv_aix_libpath_="/usr/lib:/lib"
16045 fi
16046
16047fi
16048
16049 aix_libpath=$lt_cv_aix_libpath_
16050fi
cristy73bd4a52010-10-05 11:24:23 +000016051
16052 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16053 # Warning - without using the other run time loading flags,
16054 # -berok will link without error, but may produce a broken library.
16055 no_undefined_flag=' ${wl}-bernotok'
16056 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000016057 if test "$with_gnu_ld" = yes; then
16058 # We only use this code for GNU lds that support --whole-archive.
16059 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16060 else
16061 # Exported symbols can be pulled into shared objects from archives
16062 whole_archive_flag_spec='$convenience'
16063 fi
cristy73bd4a52010-10-05 11:24:23 +000016064 archive_cmds_need_lc=yes
16065 # This is similar to how AIX traditionally builds its shared libraries.
16066 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'
16067 fi
16068 fi
16069 ;;
16070
16071 amigaos*)
16072 case $host_cpu in
16073 powerpc)
16074 # see comment about AmigaOS4 .so support
16075 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16076 archive_expsym_cmds=''
16077 ;;
16078 m68k)
16079 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)'
16080 hardcode_libdir_flag_spec='-L$libdir'
16081 hardcode_minus_L=yes
16082 ;;
16083 esac
16084 ;;
16085
16086 bsdi[45]*)
16087 export_dynamic_flag_spec=-rdynamic
16088 ;;
16089
16090 cygwin* | mingw* | pw32* | cegcc*)
16091 # When not using gcc, we currently assume that we are using
16092 # Microsoft Visual C++.
16093 # hardcode_libdir_flag_spec is actually meaningless, as there is
16094 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000016095 case $cc_basename in
16096 cl*)
16097 # Native MSVC
16098 hardcode_libdir_flag_spec=' '
16099 allow_undefined_flag=unsupported
16100 always_export_symbols=yes
16101 file_list_spec='@'
16102 # Tell ltmain to make .lib files, not .a files.
16103 libext=lib
16104 # Tell ltmain to make .dll files, not .so files.
16105 shrext_cmds=".dll"
16106 # FIXME: Setting linknames here is a bad hack.
16107 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
16108 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16109 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
16110 else
16111 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
16112 fi~
16113 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16114 linknames='
16115 # The linker will not automatically build a static lib if we build a DLL.
16116 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
16117 enable_shared_with_static_runtimes=yes
cristy99bd5232011-12-07 14:38:20 +000016118 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
cristyda16f162011-02-19 23:52:17 +000016119 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16120 # Don't use ranlib
16121 old_postinstall_cmds='chmod 644 $oldlib'
16122 postlink_cmds='lt_outputfile="@OUTPUT@"~
16123 lt_tool_outputfile="@TOOL_OUTPUT@"~
16124 case $lt_outputfile in
16125 *.exe|*.EXE) ;;
16126 *)
16127 lt_outputfile="$lt_outputfile.exe"
16128 lt_tool_outputfile="$lt_tool_outputfile.exe"
16129 ;;
16130 esac~
16131 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
16132 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16133 $RM "$lt_outputfile.manifest";
16134 fi'
16135 ;;
16136 *)
16137 # Assume MSVC wrapper
16138 hardcode_libdir_flag_spec=' '
16139 allow_undefined_flag=unsupported
16140 # Tell ltmain to make .lib files, not .a files.
16141 libext=lib
16142 # Tell ltmain to make .dll files, not .so files.
16143 shrext_cmds=".dll"
16144 # FIXME: Setting linknames here is a bad hack.
16145 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16146 # The linker will automatically build a .lib file if we build a DLL.
16147 old_archive_from_new_cmds='true'
16148 # FIXME: Should let the user specify the lib program.
16149 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16150 enable_shared_with_static_runtimes=yes
16151 ;;
16152 esac
cristy73bd4a52010-10-05 11:24:23 +000016153 ;;
16154
16155 darwin* | rhapsody*)
16156
16157
16158 archive_cmds_need_lc=no
16159 hardcode_direct=no
16160 hardcode_automatic=yes
16161 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000016162 if test "$lt_cv_ld_force_load" = "yes"; then
16163 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 +000016164
cristy0c60a692010-11-04 01:09:47 +000016165 else
16166 whole_archive_flag_spec=''
16167 fi
cristy73bd4a52010-10-05 11:24:23 +000016168 link_all_deplibs=yes
16169 allow_undefined_flag="$_lt_dar_allow_undefined"
16170 case $cc_basename in
16171 ifort*) _lt_dar_can_shared=yes ;;
16172 *) _lt_dar_can_shared=$GCC ;;
16173 esac
16174 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000016175 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000016176 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16177 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16178 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}"
16179 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}"
16180
16181 else
16182 ld_shlibs=no
16183 fi
16184
16185 ;;
16186
16187 dgux*)
16188 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16189 hardcode_libdir_flag_spec='-L$libdir'
16190 hardcode_shlibpath_var=no
16191 ;;
16192
cristy73bd4a52010-10-05 11:24:23 +000016193 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16194 # support. Future versions do this automatically, but an explicit c++rt0.o
16195 # does not break anything, and helps significantly (at the cost of a little
16196 # extra space).
16197 freebsd2.2*)
16198 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16199 hardcode_libdir_flag_spec='-R$libdir'
16200 hardcode_direct=yes
16201 hardcode_shlibpath_var=no
16202 ;;
16203
16204 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
cristy99bd5232011-12-07 14:38:20 +000016205 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000016206 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16207 hardcode_direct=yes
16208 hardcode_minus_L=yes
16209 hardcode_shlibpath_var=no
16210 ;;
16211
16212 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16213 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000016214 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000016215 hardcode_libdir_flag_spec='-R$libdir'
16216 hardcode_direct=yes
16217 hardcode_shlibpath_var=no
16218 ;;
16219
16220 hpux9*)
16221 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000016222 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 +000016223 else
16224 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'
16225 fi
16226 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16227 hardcode_libdir_separator=:
16228 hardcode_direct=yes
16229
16230 # hardcode_minus_L: Not really in the search PATH,
16231 # but as the default location of the library.
16232 hardcode_minus_L=yes
16233 export_dynamic_flag_spec='${wl}-E'
16234 ;;
16235
16236 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000016237 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000016238 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 +000016239 else
16240 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16241 fi
16242 if test "$with_gnu_ld" = no; then
16243 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cristy73bd4a52010-10-05 11:24:23 +000016244 hardcode_libdir_separator=:
16245 hardcode_direct=yes
16246 hardcode_direct_absolute=yes
16247 export_dynamic_flag_spec='${wl}-E'
16248 # hardcode_minus_L: Not really in the search PATH,
16249 # but as the default location of the library.
16250 hardcode_minus_L=yes
16251 fi
16252 ;;
16253
16254 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000016255 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000016256 case $host_cpu in
16257 hppa*64*)
16258 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16259 ;;
16260 ia64*)
cristyda16f162011-02-19 23:52:17 +000016261 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000016262 ;;
16263 *)
cristyda16f162011-02-19 23:52:17 +000016264 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 +000016265 ;;
16266 esac
16267 else
16268 case $host_cpu in
16269 hppa*64*)
16270 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16271 ;;
16272 ia64*)
16273 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16274 ;;
16275 *)
cristy0c60a692010-11-04 01:09:47 +000016276
16277 # Older versions of the 11.00 compiler do not understand -b yet
16278 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16280$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016281if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016282 $as_echo_n "(cached) " >&6
16283else
16284 lt_cv_prog_compiler__b=no
16285 save_LDFLAGS="$LDFLAGS"
16286 LDFLAGS="$LDFLAGS -b"
16287 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16288 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16289 # The linker can only warn and ignore the option if not recognized
16290 # So say no if there are warnings
16291 if test -s conftest.err; then
16292 # Append any errors to the config.log.
16293 cat conftest.err 1>&5
16294 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16295 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16296 if diff conftest.exp conftest.er2 >/dev/null; then
16297 lt_cv_prog_compiler__b=yes
16298 fi
16299 else
16300 lt_cv_prog_compiler__b=yes
16301 fi
16302 fi
16303 $RM -r conftest*
16304 LDFLAGS="$save_LDFLAGS"
16305
16306fi
16307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16308$as_echo "$lt_cv_prog_compiler__b" >&6; }
16309
16310if test x"$lt_cv_prog_compiler__b" = xyes; then
16311 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16312else
16313 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16314fi
16315
cristy73bd4a52010-10-05 11:24:23 +000016316 ;;
16317 esac
16318 fi
16319 if test "$with_gnu_ld" = no; then
16320 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16321 hardcode_libdir_separator=:
16322
16323 case $host_cpu in
16324 hppa*64*|ia64*)
16325 hardcode_direct=no
16326 hardcode_shlibpath_var=no
16327 ;;
16328 *)
16329 hardcode_direct=yes
16330 hardcode_direct_absolute=yes
16331 export_dynamic_flag_spec='${wl}-E'
16332
16333 # hardcode_minus_L: Not really in the search PATH,
16334 # but as the default location of the library.
16335 hardcode_minus_L=yes
16336 ;;
16337 esac
16338 fi
16339 ;;
16340
16341 irix5* | irix6* | nonstopux*)
16342 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000016343 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 +000016344 # Try to use the -exported_symbol ld option, if it does not
16345 # work, assume that -exports_file does not work either and
16346 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000016347 # This should be the same for all languages, so no per-tag cache variable.
16348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
16349$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
16350if ${lt_cv_irix_exported_symbol+:} false; then :
16351 $as_echo_n "(cached) " >&6
16352else
16353 save_LDFLAGS="$LDFLAGS"
16354 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016356/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000016357int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000016358_ACEOF
16359if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000016360 lt_cv_irix_exported_symbol=yes
16361else
16362 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000016363fi
16364rm -f core conftest.err conftest.$ac_objext \
16365 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000016366 LDFLAGS="$save_LDFLAGS"
16367fi
16368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
16369$as_echo "$lt_cv_irix_exported_symbol" >&6; }
16370 if test "$lt_cv_irix_exported_symbol" = yes; then
16371 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'
16372 fi
cristy73bd4a52010-10-05 11:24:23 +000016373 else
cristy0c60a692010-11-04 01:09:47 +000016374 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'
16375 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 +000016376 fi
16377 archive_cmds_need_lc='no'
16378 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16379 hardcode_libdir_separator=:
16380 inherit_rpath=yes
16381 link_all_deplibs=yes
16382 ;;
16383
16384 netbsd*)
16385 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16386 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16387 else
16388 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16389 fi
16390 hardcode_libdir_flag_spec='-R$libdir'
16391 hardcode_direct=yes
16392 hardcode_shlibpath_var=no
16393 ;;
16394
16395 newsos6)
16396 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16397 hardcode_direct=yes
16398 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16399 hardcode_libdir_separator=:
16400 hardcode_shlibpath_var=no
16401 ;;
16402
16403 *nto* | *qnx*)
16404 ;;
16405
16406 openbsd*)
16407 if test -f /usr/libexec/ld.so; then
16408 hardcode_direct=yes
16409 hardcode_shlibpath_var=no
16410 hardcode_direct_absolute=yes
16411 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16412 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16413 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16414 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16415 export_dynamic_flag_spec='${wl}-E'
16416 else
16417 case $host_os in
16418 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16419 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16420 hardcode_libdir_flag_spec='-R$libdir'
16421 ;;
16422 *)
16423 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16424 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16425 ;;
16426 esac
16427 fi
16428 else
16429 ld_shlibs=no
16430 fi
16431 ;;
16432
16433 os2*)
16434 hardcode_libdir_flag_spec='-L$libdir'
16435 hardcode_minus_L=yes
16436 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000016437 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 +000016438 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16439 ;;
16440
16441 osf3*)
16442 if test "$GCC" = yes; then
16443 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000016444 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 +000016445 else
16446 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000016447 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 +000016448 fi
16449 archive_cmds_need_lc='no'
16450 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16451 hardcode_libdir_separator=:
16452 ;;
16453
16454 osf4* | osf5*) # as osf3* with the addition of -msym flag
16455 if test "$GCC" = yes; then
16456 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000016457 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 +000016458 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16459 else
16460 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000016461 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 +000016462 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 +000016463 $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 +000016464
16465 # Both c and cxx compiler support -rpath directly
16466 hardcode_libdir_flag_spec='-rpath $libdir'
16467 fi
16468 archive_cmds_need_lc='no'
16469 hardcode_libdir_separator=:
16470 ;;
16471
16472 solaris*)
16473 no_undefined_flag=' -z defs'
16474 if test "$GCC" = yes; then
16475 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000016476 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 +000016477 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 +000016478 $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 +000016479 else
16480 case `$CC -V 2>&1` in
16481 *"Compilers 5.0"*)
16482 wlarc=''
16483 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16484 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16485 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16486 ;;
16487 *)
16488 wlarc='${wl}'
16489 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16490 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16491 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16492 ;;
16493 esac
16494 fi
16495 hardcode_libdir_flag_spec='-R$libdir'
16496 hardcode_shlibpath_var=no
16497 case $host_os in
16498 solaris2.[0-5] | solaris2.[0-5].*) ;;
16499 *)
16500 # The compiler driver will combine and reorder linker options,
16501 # but understands `-z linker_flag'. GCC discards it without `$wl',
16502 # but is careful enough not to reorder.
16503 # Supported since Solaris 2.6 (maybe 2.5.1?)
16504 if test "$GCC" = yes; then
16505 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16506 else
16507 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16508 fi
16509 ;;
16510 esac
16511 link_all_deplibs=yes
16512 ;;
16513
16514 sunos4*)
16515 if test "x$host_vendor" = xsequent; then
16516 # Use $CC to link under sequent, because it throws in some extra .o
16517 # files that make .init and .fini sections work.
16518 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16519 else
16520 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16521 fi
16522 hardcode_libdir_flag_spec='-L$libdir'
16523 hardcode_direct=yes
16524 hardcode_minus_L=yes
16525 hardcode_shlibpath_var=no
16526 ;;
16527
16528 sysv4)
16529 case $host_vendor in
16530 sni)
16531 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16532 hardcode_direct=yes # is this really true???
16533 ;;
16534 siemens)
16535 ## LD is ld it makes a PLAMLIB
16536 ## CC just makes a GrossModule.
16537 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16538 reload_cmds='$CC -r -o $output$reload_objs'
16539 hardcode_direct=no
16540 ;;
16541 motorola)
16542 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16543 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16544 ;;
16545 esac
16546 runpath_var='LD_RUN_PATH'
16547 hardcode_shlibpath_var=no
16548 ;;
16549
16550 sysv4.3*)
16551 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16552 hardcode_shlibpath_var=no
16553 export_dynamic_flag_spec='-Bexport'
16554 ;;
16555
16556 sysv4*MP*)
16557 if test -d /usr/nec; then
16558 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16559 hardcode_shlibpath_var=no
16560 runpath_var=LD_RUN_PATH
16561 hardcode_runpath_var=yes
16562 ld_shlibs=yes
16563 fi
16564 ;;
16565
16566 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16567 no_undefined_flag='${wl}-z,text'
16568 archive_cmds_need_lc=no
16569 hardcode_shlibpath_var=no
16570 runpath_var='LD_RUN_PATH'
16571
16572 if test "$GCC" = yes; then
16573 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16574 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16575 else
16576 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16577 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16578 fi
16579 ;;
16580
16581 sysv5* | sco3.2v5* | sco5v6*)
16582 # Note: We can NOT use -z defs as we might desire, because we do not
16583 # link with -lc, and that would cause any symbols used from libc to
16584 # always be unresolved, which means just about no library would
16585 # ever link correctly. If we're not using GNU ld we use -z text
16586 # though, which does catch some bad symbols but isn't as heavy-handed
16587 # as -z defs.
16588 no_undefined_flag='${wl}-z,text'
16589 allow_undefined_flag='${wl}-z,nodefs'
16590 archive_cmds_need_lc=no
16591 hardcode_shlibpath_var=no
16592 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16593 hardcode_libdir_separator=':'
16594 link_all_deplibs=yes
16595 export_dynamic_flag_spec='${wl}-Bexport'
16596 runpath_var='LD_RUN_PATH'
16597
16598 if test "$GCC" = yes; then
16599 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16600 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16601 else
16602 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16603 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16604 fi
16605 ;;
16606
16607 uts4*)
16608 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16609 hardcode_libdir_flag_spec='-L$libdir'
16610 hardcode_shlibpath_var=no
16611 ;;
16612
16613 *)
16614 ld_shlibs=no
16615 ;;
16616 esac
16617
16618 if test x$host_vendor = xsni; then
16619 case $host in
16620 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16621 export_dynamic_flag_spec='${wl}-Blargedynsym'
16622 ;;
16623 esac
16624 fi
16625 fi
16626
16627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16628$as_echo "$ld_shlibs" >&6; }
16629test "$ld_shlibs" = no && can_build_shared=no
16630
16631with_gnu_ld=$with_gnu_ld
16632
16633
16634
16635
16636
16637
16638
16639
16640
16641
16642
16643
16644
16645
16646
16647#
16648# Do we need to explicitly link libc?
16649#
16650case "x$archive_cmds_need_lc" in
16651x|xyes)
16652 # Assume -lc should be added
16653 archive_cmds_need_lc=yes
16654
16655 if test "$enable_shared" = yes && test "$GCC" = yes; then
16656 case $archive_cmds in
16657 *'~'*)
16658 # FIXME: we may have to deal with multi-command sequences.
16659 ;;
16660 '$CC '*)
16661 # Test whether the compiler implicitly links with -lc since on some
16662 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16663 # to ld, don't add -lc before -lgcc.
16664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16665$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016666if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016667 $as_echo_n "(cached) " >&6
16668else
16669 $RM conftest*
16670 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016671
cristy0c60a692010-11-04 01:09:47 +000016672 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000016673 (eval $ac_compile) 2>&5
16674 ac_status=$?
16675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16676 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000016677 soname=conftest
16678 lib=conftest
16679 libobjs=conftest.$ac_objext
16680 deplibs=
16681 wl=$lt_prog_compiler_wl
16682 pic_flag=$lt_prog_compiler_pic
16683 compiler_flags=-v
16684 linker_flags=-v
16685 verstring=
16686 output_objdir=.
16687 libname=conftest
16688 lt_save_allow_undefined_flag=$allow_undefined_flag
16689 allow_undefined_flag=
16690 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 +000016691 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16692 ac_status=$?
16693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16694 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000016695 then
16696 lt_cv_archive_cmds_need_lc=no
16697 else
16698 lt_cv_archive_cmds_need_lc=yes
16699 fi
16700 allow_undefined_flag=$lt_save_allow_undefined_flag
16701 else
16702 cat conftest.err 1>&5
16703 fi
16704 $RM conftest*
16705
16706fi
16707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16708$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16709 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000016710 ;;
16711 esac
16712 fi
16713 ;;
16714esac
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
16778
16779
16780
16781
16782
16783
16784
16785
16786
16787
16788
16789
16790
16791
16792
16793
16794
16795
16796
16797
16798
16799
16800
16801
16802
16803
16804
16805
16806
16807
16808
16809
16810
16811
16812
16813
16814
16815
16816
16817
16818
16819
16820
16821
16822
16823
16824
16825
16826
16827
16828
16829
16830
16831
16832
16833
16834
16835
16836
16837
16838
16839
16840
16841
16842
16843
16844
16845
16846
16847
16848
16849
16850
16851
16852
16853
16854
16855
16856
16857
16858
16859
16860
16861
16862
16863
16864
16865
16866
cristy73bd4a52010-10-05 11:24:23 +000016867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16868$as_echo_n "checking dynamic linker characteristics... " >&6; }
16869
16870if test "$GCC" = yes; then
16871 case $host_os in
16872 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16873 *) lt_awk_arg="/^libraries:/" ;;
16874 esac
cristy0c60a692010-11-04 01:09:47 +000016875 case $host_os in
16876 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16877 *) lt_sed_strip_eq="s,=/,/,g" ;;
16878 esac
16879 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16880 case $lt_search_path_spec in
16881 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000016882 # if the path contains ";" then we assume it to be the separator
16883 # otherwise default to the standard path separator (i.e. ":") - it is
16884 # assumed that no part of a normal pathname contains ";" but that should
16885 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000016886 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16887 ;;
16888 *)
16889 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16890 ;;
16891 esac
cristy73bd4a52010-10-05 11:24:23 +000016892 # Ok, now we have the path, separated by spaces, we can step through it
16893 # and add multilib dir if necessary.
16894 lt_tmp_lt_search_path_spec=
16895 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16896 for lt_sys_path in $lt_search_path_spec; do
16897 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16898 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16899 else
16900 test -d "$lt_sys_path" && \
16901 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16902 fi
16903 done
cristy0c60a692010-11-04 01:09:47 +000016904 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000016905BEGIN {RS=" "; FS="/|\n";} {
16906 lt_foo="";
16907 lt_count=0;
16908 for (lt_i = NF; lt_i > 0; lt_i--) {
16909 if ($lt_i != "" && $lt_i != ".") {
16910 if ($lt_i == "..") {
16911 lt_count++;
16912 } else {
16913 if (lt_count == 0) {
16914 lt_foo="/" $lt_i lt_foo;
16915 } else {
16916 lt_count--;
16917 }
16918 }
16919 }
16920 }
16921 if (lt_foo != "") { lt_freq[lt_foo]++; }
16922 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16923}'`
cristy0c60a692010-11-04 01:09:47 +000016924 # AWK program above erroneously prepends '/' to C:/dos/paths
16925 # for these hosts.
16926 case $host_os in
16927 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16928 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16929 esac
16930 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000016931else
16932 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16933fi
16934library_names_spec=
16935libname_spec='lib$name'
16936soname_spec=
16937shrext_cmds=".so"
16938postinstall_cmds=
16939postuninstall_cmds=
16940finish_cmds=
16941finish_eval=
16942shlibpath_var=
16943shlibpath_overrides_runpath=unknown
16944version_type=none
16945dynamic_linker="$host_os ld.so"
16946sys_lib_dlsearch_path_spec="/lib /usr/lib"
16947need_lib_prefix=unknown
16948hardcode_into_libs=no
16949
16950# when you set need_version to no, make sure it does not cause -set_version
16951# flags to be left without arguments
16952need_version=unknown
16953
16954case $host_os in
16955aix3*)
cristy99bd5232011-12-07 14:38:20 +000016956 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016957 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16958 shlibpath_var=LIBPATH
16959
16960 # AIX 3 has no versioning support, so we append a major version to the name.
16961 soname_spec='${libname}${release}${shared_ext}$major'
16962 ;;
16963
16964aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000016965 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016966 need_lib_prefix=no
16967 need_version=no
16968 hardcode_into_libs=yes
16969 if test "$host_cpu" = ia64; then
16970 # AIX 5 supports IA64
16971 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16972 shlibpath_var=LD_LIBRARY_PATH
16973 else
16974 # With GCC up to 2.95.x, collect2 would create an import file
16975 # for dependence libraries. The import file would start with
16976 # the line `#! .'. This would cause the generated library to
16977 # depend on `.', always an invalid library. This was fixed in
16978 # development snapshots of GCC prior to 3.0.
16979 case $host_os in
16980 aix4 | aix4.[01] | aix4.[01].*)
16981 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16982 echo ' yes '
16983 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16984 :
16985 else
16986 can_build_shared=no
16987 fi
16988 ;;
16989 esac
16990 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16991 # soname into executable. Probably we can add versioning support to
16992 # collect2, so additional links can be useful in future.
16993 if test "$aix_use_runtimelinking" = yes; then
16994 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16995 # instead of lib<name>.a to let people know that these are not
16996 # typical AIX shared libraries.
16997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16998 else
16999 # We preserve .a as extension for shared libraries through AIX4.2
17000 # and later when we are not doing run time linking.
17001 library_names_spec='${libname}${release}.a $libname.a'
17002 soname_spec='${libname}${release}${shared_ext}$major'
17003 fi
17004 shlibpath_var=LIBPATH
17005 fi
17006 ;;
17007
17008amigaos*)
17009 case $host_cpu in
17010 powerpc)
17011 # Since July 2007 AmigaOS4 officially supports .so libraries.
17012 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17014 ;;
17015 m68k)
17016 library_names_spec='$libname.ixlibrary $libname.a'
17017 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000017018 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 +000017019 ;;
17020 esac
17021 ;;
17022
17023beos*)
17024 library_names_spec='${libname}${shared_ext}'
17025 dynamic_linker="$host_os ld.so"
17026 shlibpath_var=LIBRARY_PATH
17027 ;;
17028
17029bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000017030 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017031 need_version=no
17032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17033 soname_spec='${libname}${release}${shared_ext}$major'
17034 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17035 shlibpath_var=LD_LIBRARY_PATH
17036 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17037 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17038 # the default ld.so.conf also contains /usr/contrib/lib and
17039 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17040 # libtool to hard-code these into programs
17041 ;;
17042
17043cygwin* | mingw* | pw32* | cegcc*)
17044 version_type=windows
17045 shrext_cmds=".dll"
17046 need_version=no
17047 need_lib_prefix=no
17048
cristyda16f162011-02-19 23:52:17 +000017049 case $GCC,$cc_basename in
17050 yes,*)
17051 # gcc
cristy73bd4a52010-10-05 11:24:23 +000017052 library_names_spec='$libname.dll.a'
17053 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17054 postinstall_cmds='base_file=`basename \${file}`~
17055 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17056 dldir=$destdir/`dirname \$dlpath`~
17057 test -d \$dldir || mkdir -p \$dldir~
17058 $install_prog $dir/$dlname \$dldir/$dlname~
17059 chmod a+x \$dldir/$dlname~
17060 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17061 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17062 fi'
17063 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17064 dlpath=$dir/\$dldll~
17065 $RM \$dlpath'
17066 shlibpath_overrides_runpath=yes
17067
17068 case $host_os in
17069 cygwin*)
17070 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17071 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000017072
17073 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000017074 ;;
17075 mingw* | cegcc*)
17076 # MinGW DLLs use traditional 'lib' prefix
17077 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000017078 ;;
17079 pw32*)
17080 # pw32 DLLs use 'pw' prefix rather than 'lib'
17081 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17082 ;;
17083 esac
cristyda16f162011-02-19 23:52:17 +000017084 dynamic_linker='Win32 ld.exe'
17085 ;;
17086
17087 *,cl*)
17088 # Native MSVC
17089 libname_spec='$name'
17090 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17091 library_names_spec='${libname}.dll.lib'
17092
17093 case $build_os in
17094 mingw*)
17095 sys_lib_search_path_spec=
17096 lt_save_ifs=$IFS
17097 IFS=';'
17098 for lt_path in $LIB
17099 do
17100 IFS=$lt_save_ifs
17101 # Let DOS variable expansion print the short 8.3 style file name.
17102 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17103 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17104 done
17105 IFS=$lt_save_ifs
17106 # Convert to MSYS style.
17107 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17108 ;;
17109 cygwin*)
17110 # Convert to unix form, then to dos form, then back to unix form
17111 # but this time dos style (no spaces!) so that the unix form looks
17112 # like /cygdrive/c/PROGRA~1:/cygdr...
17113 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17114 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17115 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17116 ;;
17117 *)
17118 sys_lib_search_path_spec="$LIB"
17119 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17120 # It is most probably a Windows format PATH.
17121 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17122 else
17123 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17124 fi
17125 # FIXME: find the short name or the path components, as spaces are
17126 # common. (e.g. "Program Files" -> "PROGRA~1")
17127 ;;
17128 esac
17129
17130 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17131 postinstall_cmds='base_file=`basename \${file}`~
17132 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17133 dldir=$destdir/`dirname \$dlpath`~
17134 test -d \$dldir || mkdir -p \$dldir~
17135 $install_prog $dir/$dlname \$dldir/$dlname'
17136 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17137 dlpath=$dir/\$dldll~
17138 $RM \$dlpath'
17139 shlibpath_overrides_runpath=yes
17140 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000017141 ;;
17142
17143 *)
cristyda16f162011-02-19 23:52:17 +000017144 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000017145 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000017146 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000017147 ;;
17148 esac
cristy73bd4a52010-10-05 11:24:23 +000017149 # FIXME: first we should search . and the directory the executable is in
17150 shlibpath_var=PATH
17151 ;;
17152
17153darwin* | rhapsody*)
17154 dynamic_linker="$host_os dyld"
17155 version_type=darwin
17156 need_lib_prefix=no
17157 need_version=no
17158 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17159 soname_spec='${libname}${release}${major}$shared_ext'
17160 shlibpath_overrides_runpath=yes
17161 shlibpath_var=DYLD_LIBRARY_PATH
17162 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17163
17164 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17165 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17166 ;;
17167
17168dgux*)
cristy99bd5232011-12-07 14:38:20 +000017169 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017170 need_lib_prefix=no
17171 need_version=no
17172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17173 soname_spec='${libname}${release}${shared_ext}$major'
17174 shlibpath_var=LD_LIBRARY_PATH
17175 ;;
17176
cristy73bd4a52010-10-05 11:24:23 +000017177freebsd* | dragonfly*)
17178 # DragonFly does not have aout. When/if they implement a new
17179 # versioning mechanism, adjust this.
17180 if test -x /usr/bin/objformat; then
17181 objformat=`/usr/bin/objformat`
17182 else
17183 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000017184 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000017185 *) objformat=elf ;;
17186 esac
17187 fi
17188 version_type=freebsd-$objformat
17189 case $version_type in
17190 freebsd-elf*)
17191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17192 need_version=no
17193 need_lib_prefix=no
17194 ;;
17195 freebsd-*)
17196 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17197 need_version=yes
17198 ;;
17199 esac
17200 shlibpath_var=LD_LIBRARY_PATH
17201 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000017202 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000017203 shlibpath_overrides_runpath=yes
17204 ;;
17205 freebsd3.[01]* | freebsdelf3.[01]*)
17206 shlibpath_overrides_runpath=yes
17207 hardcode_into_libs=yes
17208 ;;
17209 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17210 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17211 shlibpath_overrides_runpath=no
17212 hardcode_into_libs=yes
17213 ;;
17214 *) # from 4.6 on, and DragonFly
17215 shlibpath_overrides_runpath=yes
17216 hardcode_into_libs=yes
17217 ;;
17218 esac
17219 ;;
17220
17221gnu*)
cristy99bd5232011-12-07 14:38:20 +000017222 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017223 need_lib_prefix=no
17224 need_version=no
17225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17226 soname_spec='${libname}${release}${shared_ext}$major'
17227 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000017228 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000017229 hardcode_into_libs=yes
17230 ;;
17231
cristy0c60a692010-11-04 01:09:47 +000017232haiku*)
cristy99bd5232011-12-07 14:38:20 +000017233 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000017234 need_lib_prefix=no
17235 need_version=no
17236 dynamic_linker="$host_os runtime_loader"
17237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17238 soname_spec='${libname}${release}${shared_ext}$major'
17239 shlibpath_var=LIBRARY_PATH
17240 shlibpath_overrides_runpath=yes
17241 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17242 hardcode_into_libs=yes
17243 ;;
17244
cristy73bd4a52010-10-05 11:24:23 +000017245hpux9* | hpux10* | hpux11*)
17246 # Give a soname corresponding to the major version so that dld.sl refuses to
17247 # link against other versions.
17248 version_type=sunos
17249 need_lib_prefix=no
17250 need_version=no
17251 case $host_cpu in
17252 ia64*)
17253 shrext_cmds='.so'
17254 hardcode_into_libs=yes
17255 dynamic_linker="$host_os dld.so"
17256 shlibpath_var=LD_LIBRARY_PATH
17257 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17259 soname_spec='${libname}${release}${shared_ext}$major'
17260 if test "X$HPUX_IA64_MODE" = X32; then
17261 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17262 else
17263 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17264 fi
17265 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17266 ;;
17267 hppa*64*)
17268 shrext_cmds='.sl'
17269 hardcode_into_libs=yes
17270 dynamic_linker="$host_os dld.sl"
17271 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17272 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17274 soname_spec='${libname}${release}${shared_ext}$major'
17275 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17276 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17277 ;;
17278 *)
17279 shrext_cmds='.sl'
17280 dynamic_linker="$host_os dld.sl"
17281 shlibpath_var=SHLIB_PATH
17282 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17284 soname_spec='${libname}${release}${shared_ext}$major'
17285 ;;
17286 esac
cristy0c60a692010-11-04 01:09:47 +000017287 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000017288 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000017289 # or fails outright, so override atomically:
17290 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000017291 ;;
17292
17293interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000017294 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017295 need_lib_prefix=no
17296 need_version=no
17297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17298 soname_spec='${libname}${release}${shared_ext}$major'
17299 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17300 shlibpath_var=LD_LIBRARY_PATH
17301 shlibpath_overrides_runpath=no
17302 hardcode_into_libs=yes
17303 ;;
17304
17305irix5* | irix6* | nonstopux*)
17306 case $host_os in
17307 nonstopux*) version_type=nonstopux ;;
17308 *)
17309 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000017310 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017311 else
17312 version_type=irix
17313 fi ;;
17314 esac
17315 need_lib_prefix=no
17316 need_version=no
17317 soname_spec='${libname}${release}${shared_ext}$major'
17318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17319 case $host_os in
17320 irix5* | nonstopux*)
17321 libsuff= shlibsuff=
17322 ;;
17323 *)
17324 case $LD in # libtool.m4 will add one of these switches to LD
17325 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17326 libsuff= shlibsuff= libmagic=32-bit;;
17327 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17328 libsuff=32 shlibsuff=N32 libmagic=N32;;
17329 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17330 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17331 *) libsuff= shlibsuff= libmagic=never-match;;
17332 esac
17333 ;;
17334 esac
17335 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17336 shlibpath_overrides_runpath=no
17337 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17338 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17339 hardcode_into_libs=yes
17340 ;;
17341
17342# No shared lib support for Linux oldld, aout, or coff.
17343linux*oldld* | linux*aout* | linux*coff*)
17344 dynamic_linker=no
17345 ;;
17346
cristy99bd5232011-12-07 14:38:20 +000017347# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000017348linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000017349 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017350 need_lib_prefix=no
17351 need_version=no
17352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17353 soname_spec='${libname}${release}${shared_ext}$major'
17354 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17355 shlibpath_var=LD_LIBRARY_PATH
17356 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000017357
cristy73bd4a52010-10-05 11:24:23 +000017358 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000017359 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000017360 $as_echo_n "(cached) " >&6
17361else
17362 lt_cv_shlibpath_overrides_runpath=no
17363 save_LDFLAGS=$LDFLAGS
17364 save_libdir=$libdir
17365 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17366 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017368/* end confdefs.h. */
17369
17370int
17371main ()
17372{
17373
17374 ;
17375 return 0;
17376}
17377_ACEOF
17378if ac_fn_c_try_link "$LINENO"; then :
17379 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000017380 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000017381fi
17382fi
17383rm -f core conftest.err conftest.$ac_objext \
17384 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017385 LDFLAGS=$save_LDFLAGS
17386 libdir=$save_libdir
17387
17388fi
17389
17390 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000017391
17392 # This implies no fast_install, which is unacceptable.
17393 # Some rework will be needed to allow for fast_install
17394 # before this can be enabled.
17395 hardcode_into_libs=yes
17396
17397 # Add ABI-specific directories to the system library path.
17398 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
17399
17400 # Append ld.so.conf contents to the search path
17401 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000017402 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 +000017403 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000017404
cristy73bd4a52010-10-05 11:24:23 +000017405 fi
17406
17407 # We used to test for /lib/ld.so.1 and disable shared libraries on
17408 # powerpc, because MkLinux only supported shared libraries with the
17409 # GNU dynamic linker. Since this was broken with cross compilers,
17410 # most powerpc-linux boxes support dynamic linking these days and
17411 # people can always --disable-shared, the test was removed, and we
17412 # assume the GNU/Linux dynamic linker is in use.
17413 dynamic_linker='GNU/Linux ld.so'
17414 ;;
17415
17416netbsd*)
17417 version_type=sunos
17418 need_lib_prefix=no
17419 need_version=no
17420 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17422 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17423 dynamic_linker='NetBSD (a.out) ld.so'
17424 else
17425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17426 soname_spec='${libname}${release}${shared_ext}$major'
17427 dynamic_linker='NetBSD ld.elf_so'
17428 fi
17429 shlibpath_var=LD_LIBRARY_PATH
17430 shlibpath_overrides_runpath=yes
17431 hardcode_into_libs=yes
17432 ;;
17433
17434newsos6)
cristy99bd5232011-12-07 14:38:20 +000017435 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17437 shlibpath_var=LD_LIBRARY_PATH
17438 shlibpath_overrides_runpath=yes
17439 ;;
17440
17441*nto* | *qnx*)
17442 version_type=qnx
17443 need_lib_prefix=no
17444 need_version=no
17445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17446 soname_spec='${libname}${release}${shared_ext}$major'
17447 shlibpath_var=LD_LIBRARY_PATH
17448 shlibpath_overrides_runpath=no
17449 hardcode_into_libs=yes
17450 dynamic_linker='ldqnx.so'
17451 ;;
17452
17453openbsd*)
17454 version_type=sunos
17455 sys_lib_dlsearch_path_spec="/usr/lib"
17456 need_lib_prefix=no
17457 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17458 case $host_os in
17459 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17460 *) need_version=no ;;
17461 esac
17462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17463 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17464 shlibpath_var=LD_LIBRARY_PATH
17465 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17466 case $host_os in
17467 openbsd2.[89] | openbsd2.[89].*)
17468 shlibpath_overrides_runpath=no
17469 ;;
17470 *)
17471 shlibpath_overrides_runpath=yes
17472 ;;
17473 esac
17474 else
17475 shlibpath_overrides_runpath=yes
17476 fi
17477 ;;
17478
17479os2*)
17480 libname_spec='$name'
17481 shrext_cmds=".dll"
17482 need_lib_prefix=no
17483 library_names_spec='$libname${shared_ext} $libname.a'
17484 dynamic_linker='OS/2 ld.exe'
17485 shlibpath_var=LIBPATH
17486 ;;
17487
17488osf3* | osf4* | osf5*)
17489 version_type=osf
17490 need_lib_prefix=no
17491 need_version=no
17492 soname_spec='${libname}${release}${shared_ext}$major'
17493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17494 shlibpath_var=LD_LIBRARY_PATH
17495 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17496 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17497 ;;
17498
17499rdos*)
17500 dynamic_linker=no
17501 ;;
17502
17503solaris*)
cristy99bd5232011-12-07 14:38:20 +000017504 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017505 need_lib_prefix=no
17506 need_version=no
17507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17508 soname_spec='${libname}${release}${shared_ext}$major'
17509 shlibpath_var=LD_LIBRARY_PATH
17510 shlibpath_overrides_runpath=yes
17511 hardcode_into_libs=yes
17512 # ldd complains unless libraries are executable
17513 postinstall_cmds='chmod +x $lib'
17514 ;;
17515
17516sunos4*)
17517 version_type=sunos
17518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17519 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17520 shlibpath_var=LD_LIBRARY_PATH
17521 shlibpath_overrides_runpath=yes
17522 if test "$with_gnu_ld" = yes; then
17523 need_lib_prefix=no
17524 fi
17525 need_version=yes
17526 ;;
17527
17528sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000017529 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17531 soname_spec='${libname}${release}${shared_ext}$major'
17532 shlibpath_var=LD_LIBRARY_PATH
17533 case $host_vendor in
17534 sni)
17535 shlibpath_overrides_runpath=no
17536 need_lib_prefix=no
17537 runpath_var=LD_RUN_PATH
17538 ;;
17539 siemens)
17540 need_lib_prefix=no
17541 ;;
17542 motorola)
17543 need_lib_prefix=no
17544 need_version=no
17545 shlibpath_overrides_runpath=no
17546 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17547 ;;
17548 esac
17549 ;;
17550
17551sysv4*MP*)
17552 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000017553 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017554 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17555 soname_spec='$libname${shared_ext}.$major'
17556 shlibpath_var=LD_LIBRARY_PATH
17557 fi
17558 ;;
17559
17560sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17561 version_type=freebsd-elf
17562 need_lib_prefix=no
17563 need_version=no
17564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17565 soname_spec='${libname}${release}${shared_ext}$major'
17566 shlibpath_var=LD_LIBRARY_PATH
17567 shlibpath_overrides_runpath=yes
17568 hardcode_into_libs=yes
17569 if test "$with_gnu_ld" = yes; then
17570 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17571 else
17572 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17573 case $host_os in
17574 sco3.2v5*)
17575 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17576 ;;
17577 esac
17578 fi
17579 sys_lib_dlsearch_path_spec='/usr/lib'
17580 ;;
17581
17582tpf*)
17583 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000017584 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017585 need_lib_prefix=no
17586 need_version=no
17587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17588 shlibpath_var=LD_LIBRARY_PATH
17589 shlibpath_overrides_runpath=no
17590 hardcode_into_libs=yes
17591 ;;
17592
17593uts4*)
cristy99bd5232011-12-07 14:38:20 +000017594 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17596 soname_spec='${libname}${release}${shared_ext}$major'
17597 shlibpath_var=LD_LIBRARY_PATH
17598 ;;
17599
17600*)
17601 dynamic_linker=no
17602 ;;
17603esac
17604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17605$as_echo "$dynamic_linker" >&6; }
17606test "$dynamic_linker" = no && can_build_shared=no
17607
17608variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17609if test "$GCC" = yes; then
17610 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17611fi
17612
17613if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17614 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17615fi
17616if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17617 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17618fi
17619
17620
17621
17622
17623
17624
17625
17626
17627
17628
17629
17630
17631
17632
17633
17634
17635
17636
17637
17638
17639
17640
17641
17642
17643
17644
17645
17646
17647
17648
17649
17650
17651
17652
17653
17654
17655
17656
17657
17658
17659
17660
17661
17662
17663
17664
17665
17666
17667
17668
17669
17670
17671
17672
17673
17674
17675
17676
17677
17678
17679
17680
17681
17682
17683
17684
17685
17686
17687
17688
17689
17690
17691
17692
17693
17694
17695
17696
17697
17698
17699
17700
17701
17702
17703
17704
17705
cristy0c60a692010-11-04 01:09:47 +000017706
17707
17708
17709
17710
cristy73bd4a52010-10-05 11:24:23 +000017711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17712$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17713hardcode_action=
17714if test -n "$hardcode_libdir_flag_spec" ||
17715 test -n "$runpath_var" ||
17716 test "X$hardcode_automatic" = "Xyes" ; then
17717
17718 # We can hardcode non-existent directories.
17719 if test "$hardcode_direct" != no &&
17720 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17721 # have to relink, otherwise we might link with an installed library
17722 # when we should be linking with a yet-to-be-installed one
17723 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17724 test "$hardcode_minus_L" != no; then
17725 # Linking always hardcodes the temporary library directory.
17726 hardcode_action=relink
17727 else
17728 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17729 hardcode_action=immediate
17730 fi
17731else
17732 # We cannot hardcode anything, or else we can only hardcode existing
17733 # directories.
17734 hardcode_action=unsupported
17735fi
17736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17737$as_echo "$hardcode_action" >&6; }
17738
17739if test "$hardcode_action" = relink ||
17740 test "$inherit_rpath" = yes; then
17741 # Fast installation is not supported
17742 enable_fast_install=no
17743elif test "$shlibpath_overrides_runpath" = yes ||
17744 test "$enable_shared" = no; then
17745 # Fast installation is not necessary
17746 enable_fast_install=needless
17747fi
17748
17749
17750
17751
17752
17753
17754 if test "x$enable_dlopen" != xyes; then
17755 enable_dlopen=unknown
17756 enable_dlopen_self=unknown
17757 enable_dlopen_self_static=unknown
17758else
17759 lt_cv_dlopen=no
17760 lt_cv_dlopen_libs=
17761
17762 case $host_os in
17763 beos*)
17764 lt_cv_dlopen="load_add_on"
17765 lt_cv_dlopen_libs=
17766 lt_cv_dlopen_self=yes
17767 ;;
17768
17769 mingw* | pw32* | cegcc*)
17770 lt_cv_dlopen="LoadLibrary"
17771 lt_cv_dlopen_libs=
17772 ;;
17773
17774 cygwin*)
17775 lt_cv_dlopen="dlopen"
17776 lt_cv_dlopen_libs=
17777 ;;
17778
17779 darwin*)
17780 # if libdl is installed we need to link against it
17781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17782$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017783if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017784 $as_echo_n "(cached) " >&6
17785else
17786 ac_check_lib_save_LIBS=$LIBS
17787LIBS="-ldl $LIBS"
17788cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17789/* end confdefs.h. */
17790
17791/* Override any GCC internal prototype to avoid an error.
17792 Use char because int might match the return type of a GCC
17793 builtin and then its argument prototype would still apply. */
17794#ifdef __cplusplus
17795extern "C"
17796#endif
17797char dlopen ();
17798int
17799main ()
17800{
17801return dlopen ();
17802 ;
17803 return 0;
17804}
17805_ACEOF
17806if ac_fn_c_try_link "$LINENO"; then :
17807 ac_cv_lib_dl_dlopen=yes
17808else
17809 ac_cv_lib_dl_dlopen=no
17810fi
17811rm -f core conftest.err conftest.$ac_objext \
17812 conftest$ac_exeext conftest.$ac_ext
17813LIBS=$ac_check_lib_save_LIBS
17814fi
17815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17816$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017817if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017818 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17819else
17820
17821 lt_cv_dlopen="dyld"
17822 lt_cv_dlopen_libs=
17823 lt_cv_dlopen_self=yes
17824
17825fi
17826
17827 ;;
17828
17829 *)
17830 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000017831if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017832 lt_cv_dlopen="shl_load"
17833else
17834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17835$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017836if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017837 $as_echo_n "(cached) " >&6
17838else
17839 ac_check_lib_save_LIBS=$LIBS
17840LIBS="-ldld $LIBS"
17841cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17842/* end confdefs.h. */
17843
17844/* Override any GCC internal prototype to avoid an error.
17845 Use char because int might match the return type of a GCC
17846 builtin and then its argument prototype would still apply. */
17847#ifdef __cplusplus
17848extern "C"
17849#endif
17850char shl_load ();
17851int
17852main ()
17853{
17854return shl_load ();
17855 ;
17856 return 0;
17857}
17858_ACEOF
17859if ac_fn_c_try_link "$LINENO"; then :
17860 ac_cv_lib_dld_shl_load=yes
17861else
17862 ac_cv_lib_dld_shl_load=no
17863fi
17864rm -f core conftest.err conftest.$ac_objext \
17865 conftest$ac_exeext conftest.$ac_ext
17866LIBS=$ac_check_lib_save_LIBS
17867fi
17868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17869$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000017870if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017871 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17872else
17873 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000017874if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017875 lt_cv_dlopen="dlopen"
17876else
17877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17878$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017879if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017880 $as_echo_n "(cached) " >&6
17881else
17882 ac_check_lib_save_LIBS=$LIBS
17883LIBS="-ldl $LIBS"
17884cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17885/* end confdefs.h. */
17886
17887/* Override any GCC internal prototype to avoid an error.
17888 Use char because int might match the return type of a GCC
17889 builtin and then its argument prototype would still apply. */
17890#ifdef __cplusplus
17891extern "C"
17892#endif
17893char dlopen ();
17894int
17895main ()
17896{
17897return dlopen ();
17898 ;
17899 return 0;
17900}
17901_ACEOF
17902if ac_fn_c_try_link "$LINENO"; then :
17903 ac_cv_lib_dl_dlopen=yes
17904else
17905 ac_cv_lib_dl_dlopen=no
17906fi
17907rm -f core conftest.err conftest.$ac_objext \
17908 conftest$ac_exeext conftest.$ac_ext
17909LIBS=$ac_check_lib_save_LIBS
17910fi
17911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17912$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017913if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017914 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17915else
17916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17917$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017918if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017919 $as_echo_n "(cached) " >&6
17920else
17921 ac_check_lib_save_LIBS=$LIBS
17922LIBS="-lsvld $LIBS"
17923cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17924/* end confdefs.h. */
17925
17926/* Override any GCC internal prototype to avoid an error.
17927 Use char because int might match the return type of a GCC
17928 builtin and then its argument prototype would still apply. */
17929#ifdef __cplusplus
17930extern "C"
17931#endif
17932char dlopen ();
17933int
17934main ()
17935{
17936return dlopen ();
17937 ;
17938 return 0;
17939}
17940_ACEOF
17941if ac_fn_c_try_link "$LINENO"; then :
17942 ac_cv_lib_svld_dlopen=yes
17943else
17944 ac_cv_lib_svld_dlopen=no
17945fi
17946rm -f core conftest.err conftest.$ac_objext \
17947 conftest$ac_exeext conftest.$ac_ext
17948LIBS=$ac_check_lib_save_LIBS
17949fi
17950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17951$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017952if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017953 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17954else
17955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17956$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017957if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017958 $as_echo_n "(cached) " >&6
17959else
17960 ac_check_lib_save_LIBS=$LIBS
17961LIBS="-ldld $LIBS"
17962cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17963/* end confdefs.h. */
17964
17965/* Override any GCC internal prototype to avoid an error.
17966 Use char because int might match the return type of a GCC
17967 builtin and then its argument prototype would still apply. */
17968#ifdef __cplusplus
17969extern "C"
17970#endif
17971char dld_link ();
17972int
17973main ()
17974{
17975return dld_link ();
17976 ;
17977 return 0;
17978}
17979_ACEOF
17980if ac_fn_c_try_link "$LINENO"; then :
17981 ac_cv_lib_dld_dld_link=yes
17982else
17983 ac_cv_lib_dld_dld_link=no
17984fi
17985rm -f core conftest.err conftest.$ac_objext \
17986 conftest$ac_exeext conftest.$ac_ext
17987LIBS=$ac_check_lib_save_LIBS
17988fi
17989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17990$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000017991if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017992 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17993fi
17994
17995
17996fi
17997
17998
17999fi
18000
18001
18002fi
18003
18004
18005fi
18006
18007
18008fi
18009
18010 ;;
18011 esac
18012
18013 if test "x$lt_cv_dlopen" != xno; then
18014 enable_dlopen=yes
18015 else
18016 enable_dlopen=no
18017 fi
18018
18019 case $lt_cv_dlopen in
18020 dlopen)
18021 save_CPPFLAGS="$CPPFLAGS"
18022 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18023
18024 save_LDFLAGS="$LDFLAGS"
18025 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18026
18027 save_LIBS="$LIBS"
18028 LIBS="$lt_cv_dlopen_libs $LIBS"
18029
18030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18031$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018032if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018033 $as_echo_n "(cached) " >&6
18034else
18035 if test "$cross_compiling" = yes; then :
18036 lt_cv_dlopen_self=cross
18037else
18038 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18039 lt_status=$lt_dlunknown
18040 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000018041#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000018042#include "confdefs.h"
18043
18044#if HAVE_DLFCN_H
18045#include <dlfcn.h>
18046#endif
18047
18048#include <stdio.h>
18049
18050#ifdef RTLD_GLOBAL
18051# define LT_DLGLOBAL RTLD_GLOBAL
18052#else
18053# ifdef DL_GLOBAL
18054# define LT_DLGLOBAL DL_GLOBAL
18055# else
18056# define LT_DLGLOBAL 0
18057# endif
18058#endif
18059
18060/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18061 find out it does not work in some platform. */
18062#ifndef LT_DLLAZY_OR_NOW
18063# ifdef RTLD_LAZY
18064# define LT_DLLAZY_OR_NOW RTLD_LAZY
18065# else
18066# ifdef DL_LAZY
18067# define LT_DLLAZY_OR_NOW DL_LAZY
18068# else
18069# ifdef RTLD_NOW
18070# define LT_DLLAZY_OR_NOW RTLD_NOW
18071# else
18072# ifdef DL_NOW
18073# define LT_DLLAZY_OR_NOW DL_NOW
18074# else
18075# define LT_DLLAZY_OR_NOW 0
18076# endif
18077# endif
18078# endif
18079# endif
18080#endif
18081
cristy0c60a692010-11-04 01:09:47 +000018082/* When -fvisbility=hidden is used, assume the code has been annotated
18083 correspondingly for the symbols needed. */
18084#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000018085int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000018086#endif
18087
cristyda16f162011-02-19 23:52:17 +000018088int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000018089int main ()
18090{
18091 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18092 int status = $lt_dlunknown;
18093
18094 if (self)
18095 {
18096 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000018097 else
18098 {
18099 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18100 else puts (dlerror ());
18101 }
cristy73bd4a52010-10-05 11:24:23 +000018102 /* dlclose (self); */
18103 }
18104 else
18105 puts (dlerror ());
18106
18107 return status;
18108}
18109_LT_EOF
18110 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18111 (eval $ac_link) 2>&5
18112 ac_status=$?
18113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18114 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18115 (./conftest; exit; ) >&5 2>/dev/null
18116 lt_status=$?
18117 case x$lt_status in
18118 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18119 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18120 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18121 esac
18122 else :
18123 # compilation failed
18124 lt_cv_dlopen_self=no
18125 fi
18126fi
18127rm -fr conftest*
18128
18129
18130fi
18131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18132$as_echo "$lt_cv_dlopen_self" >&6; }
18133
18134 if test "x$lt_cv_dlopen_self" = xyes; then
18135 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18137$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018138if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018139 $as_echo_n "(cached) " >&6
18140else
18141 if test "$cross_compiling" = yes; then :
18142 lt_cv_dlopen_self_static=cross
18143else
18144 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18145 lt_status=$lt_dlunknown
18146 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000018147#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000018148#include "confdefs.h"
18149
18150#if HAVE_DLFCN_H
18151#include <dlfcn.h>
18152#endif
18153
18154#include <stdio.h>
18155
18156#ifdef RTLD_GLOBAL
18157# define LT_DLGLOBAL RTLD_GLOBAL
18158#else
18159# ifdef DL_GLOBAL
18160# define LT_DLGLOBAL DL_GLOBAL
18161# else
18162# define LT_DLGLOBAL 0
18163# endif
18164#endif
18165
18166/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18167 find out it does not work in some platform. */
18168#ifndef LT_DLLAZY_OR_NOW
18169# ifdef RTLD_LAZY
18170# define LT_DLLAZY_OR_NOW RTLD_LAZY
18171# else
18172# ifdef DL_LAZY
18173# define LT_DLLAZY_OR_NOW DL_LAZY
18174# else
18175# ifdef RTLD_NOW
18176# define LT_DLLAZY_OR_NOW RTLD_NOW
18177# else
18178# ifdef DL_NOW
18179# define LT_DLLAZY_OR_NOW DL_NOW
18180# else
18181# define LT_DLLAZY_OR_NOW 0
18182# endif
18183# endif
18184# endif
18185# endif
18186#endif
18187
cristy0c60a692010-11-04 01:09:47 +000018188/* When -fvisbility=hidden is used, assume the code has been annotated
18189 correspondingly for the symbols needed. */
18190#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000018191int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000018192#endif
18193
cristyda16f162011-02-19 23:52:17 +000018194int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000018195int main ()
18196{
18197 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18198 int status = $lt_dlunknown;
18199
18200 if (self)
18201 {
18202 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000018203 else
18204 {
18205 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18206 else puts (dlerror ());
18207 }
cristy73bd4a52010-10-05 11:24:23 +000018208 /* dlclose (self); */
18209 }
18210 else
18211 puts (dlerror ());
18212
18213 return status;
18214}
18215_LT_EOF
18216 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18217 (eval $ac_link) 2>&5
18218 ac_status=$?
18219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18220 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18221 (./conftest; exit; ) >&5 2>/dev/null
18222 lt_status=$?
18223 case x$lt_status in
18224 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18225 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18226 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18227 esac
18228 else :
18229 # compilation failed
18230 lt_cv_dlopen_self_static=no
18231 fi
18232fi
18233rm -fr conftest*
18234
18235
18236fi
18237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18238$as_echo "$lt_cv_dlopen_self_static" >&6; }
18239 fi
18240
18241 CPPFLAGS="$save_CPPFLAGS"
18242 LDFLAGS="$save_LDFLAGS"
18243 LIBS="$save_LIBS"
18244 ;;
18245 esac
18246
18247 case $lt_cv_dlopen_self in
18248 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18249 *) enable_dlopen_self=unknown ;;
18250 esac
18251
18252 case $lt_cv_dlopen_self_static in
18253 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18254 *) enable_dlopen_self_static=unknown ;;
18255 esac
18256fi
18257
18258
18259
18260
18261
18262
18263
18264
18265
18266
18267
18268
18269
18270
18271
18272
18273
18274striplib=
18275old_striplib=
18276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18277$as_echo_n "checking whether stripping libraries is possible... " >&6; }
18278if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18279 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18280 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18282$as_echo "yes" >&6; }
18283else
18284# FIXME - insert some real tests, host_os isn't really good enough
18285 case $host_os in
18286 darwin*)
18287 if test -n "$STRIP" ; then
18288 striplib="$STRIP -x"
18289 old_striplib="$STRIP -S"
18290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18291$as_echo "yes" >&6; }
18292 else
18293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18294$as_echo "no" >&6; }
18295 fi
18296 ;;
18297 *)
18298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18299$as_echo "no" >&6; }
18300 ;;
18301 esac
18302fi
18303
18304
18305
18306
18307
18308
18309
18310
18311
18312
18313
18314
18315 # Report which library types will actually be built
18316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18317$as_echo_n "checking if libtool supports shared libraries... " >&6; }
18318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18319$as_echo "$can_build_shared" >&6; }
18320
18321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18322$as_echo_n "checking whether to build shared libraries... " >&6; }
18323 test "$can_build_shared" = "no" && enable_shared=no
18324
18325 # On AIX, shared libraries and static libraries use the same namespace, and
18326 # are all built from PIC.
18327 case $host_os in
18328 aix3*)
18329 test "$enable_shared" = yes && enable_static=no
18330 if test -n "$RANLIB"; then
18331 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18332 postinstall_cmds='$RANLIB $lib'
18333 fi
18334 ;;
18335
18336 aix[4-9]*)
18337 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18338 test "$enable_shared" = yes && enable_static=no
18339 fi
18340 ;;
18341 esac
18342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18343$as_echo "$enable_shared" >&6; }
18344
18345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18346$as_echo_n "checking whether to build static libraries... " >&6; }
18347 # Make sure either enable_shared or enable_static is yes.
18348 test "$enable_shared" = yes || enable_static=yes
18349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18350$as_echo "$enable_static" >&6; }
18351
18352
18353
18354
18355fi
18356ac_ext=c
18357ac_cpp='$CPP $CPPFLAGS'
18358ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18359ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18360ac_compiler_gnu=$ac_cv_c_compiler_gnu
18361
18362CC="$lt_save_CC"
18363
cristy0c60a692010-11-04 01:09:47 +000018364 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18365 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18366 (test "X$CXX" != "Xg++"))) ; then
18367 ac_ext=cpp
18368ac_cpp='$CXXCPP $CPPFLAGS'
18369ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18370ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18371ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18373$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18374if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000018375 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000018376 $as_echo_n "(cached) " >&6
18377else
18378 # Double quotes because CXXCPP needs to be expanded
18379 for CXXCPP in "$CXX -E" "/lib/cpp"
18380 do
18381 ac_preproc_ok=false
18382for ac_cxx_preproc_warn_flag in '' yes
18383do
18384 # Use a header file that comes with gcc, so configuring glibc
18385 # with a fresh cross-compiler works.
18386 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18387 # <limits.h> exists even on freestanding compilers.
18388 # On the NeXT, cc -E runs the code through the compiler's parser,
18389 # not just through cpp. "Syntax error" is here to catch this case.
18390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18391/* end confdefs.h. */
18392#ifdef __STDC__
18393# include <limits.h>
18394#else
18395# include <assert.h>
18396#endif
18397 Syntax error
18398_ACEOF
18399if ac_fn_cxx_try_cpp "$LINENO"; then :
18400
18401else
18402 # Broken: fails on valid input.
18403continue
18404fi
cristyda16f162011-02-19 23:52:17 +000018405rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018406
18407 # OK, works on sane cases. Now check whether nonexistent headers
18408 # can be detected and how.
18409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18410/* end confdefs.h. */
18411#include <ac_nonexistent.h>
18412_ACEOF
18413if ac_fn_cxx_try_cpp "$LINENO"; then :
18414 # Broken: success on invalid input.
18415continue
18416else
18417 # Passes both tests.
18418ac_preproc_ok=:
18419break
18420fi
cristyda16f162011-02-19 23:52:17 +000018421rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018422
18423done
18424# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000018425rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018426if $ac_preproc_ok; then :
18427 break
18428fi
18429
18430 done
18431 ac_cv_prog_CXXCPP=$CXXCPP
18432
18433fi
18434 CXXCPP=$ac_cv_prog_CXXCPP
18435else
18436 ac_cv_prog_CXXCPP=$CXXCPP
18437fi
18438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18439$as_echo "$CXXCPP" >&6; }
18440ac_preproc_ok=false
18441for ac_cxx_preproc_warn_flag in '' yes
18442do
18443 # Use a header file that comes with gcc, so configuring glibc
18444 # with a fresh cross-compiler works.
18445 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18446 # <limits.h> exists even on freestanding compilers.
18447 # On the NeXT, cc -E runs the code through the compiler's parser,
18448 # not just through cpp. "Syntax error" is here to catch this case.
18449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18450/* end confdefs.h. */
18451#ifdef __STDC__
18452# include <limits.h>
18453#else
18454# include <assert.h>
18455#endif
18456 Syntax error
18457_ACEOF
18458if ac_fn_cxx_try_cpp "$LINENO"; then :
18459
18460else
18461 # Broken: fails on valid input.
18462continue
18463fi
cristyda16f162011-02-19 23:52:17 +000018464rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018465
18466 # OK, works on sane cases. Now check whether nonexistent headers
18467 # can be detected and how.
18468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18469/* end confdefs.h. */
18470#include <ac_nonexistent.h>
18471_ACEOF
18472if ac_fn_cxx_try_cpp "$LINENO"; then :
18473 # Broken: success on invalid input.
18474continue
18475else
18476 # Passes both tests.
18477ac_preproc_ok=:
18478break
18479fi
cristyda16f162011-02-19 23:52:17 +000018480rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018481
18482done
18483# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000018484rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018485if $ac_preproc_ok; then :
18486
18487else
18488 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18489$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18490as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
18491See \`config.log' for more details" "$LINENO" 5; }
18492fi
18493
18494ac_ext=c
18495ac_cpp='$CPP $CPPFLAGS'
18496ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18497ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18498ac_compiler_gnu=$ac_cv_c_compiler_gnu
18499
18500else
18501 _lt_caught_CXX_error=yes
18502fi
cristy73bd4a52010-10-05 11:24:23 +000018503
18504ac_ext=cpp
18505ac_cpp='$CXXCPP $CPPFLAGS'
18506ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18507ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18508ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18509
18510archive_cmds_need_lc_CXX=no
18511allow_undefined_flag_CXX=
18512always_export_symbols_CXX=no
18513archive_expsym_cmds_CXX=
18514compiler_needs_object_CXX=no
18515export_dynamic_flag_spec_CXX=
18516hardcode_direct_CXX=no
18517hardcode_direct_absolute_CXX=no
18518hardcode_libdir_flag_spec_CXX=
cristy73bd4a52010-10-05 11:24:23 +000018519hardcode_libdir_separator_CXX=
18520hardcode_minus_L_CXX=no
18521hardcode_shlibpath_var_CXX=unsupported
18522hardcode_automatic_CXX=no
18523inherit_rpath_CXX=no
18524module_cmds_CXX=
18525module_expsym_cmds_CXX=
18526link_all_deplibs_CXX=unknown
18527old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000018528reload_flag_CXX=$reload_flag
18529reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000018530no_undefined_flag_CXX=
18531whole_archive_flag_spec_CXX=
18532enable_shared_with_static_runtimes_CXX=no
18533
18534# Source file extension for C++ test sources.
18535ac_ext=cpp
18536
18537# Object file extension for compiled C++ test sources.
18538objext=o
18539objext_CXX=$objext
18540
18541# No sense in running all these tests if we already determined that
18542# the CXX compiler isn't working. Some variables (like enable_shared)
18543# are currently assumed to apply to all compilers on this platform,
18544# and will be corrupted by setting them based on a non-working compiler.
18545if test "$_lt_caught_CXX_error" != yes; then
18546 # Code to be used in simple compile tests
18547 lt_simple_compile_test_code="int some_variable = 0;"
18548
18549 # Code to be used in simple link tests
18550 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18551
18552 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18553
18554
18555
18556
18557
18558
18559# If no C compiler was specified, use CC.
18560LTCC=${LTCC-"$CC"}
18561
18562# If no C compiler flags were specified, use CFLAGS.
18563LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18564
18565# Allow CC to be a program name with arguments.
18566compiler=$CC
18567
18568
18569 # save warnings/boilerplate of simple test code
18570 ac_outfile=conftest.$ac_objext
18571echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18572eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18573_lt_compiler_boilerplate=`cat conftest.err`
18574$RM conftest*
18575
18576 ac_outfile=conftest.$ac_objext
18577echo "$lt_simple_link_test_code" >conftest.$ac_ext
18578eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18579_lt_linker_boilerplate=`cat conftest.err`
18580$RM -r conftest*
18581
18582
18583 # Allow CC to be a program name with arguments.
18584 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000018585 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018586 lt_save_LD=$LD
18587 lt_save_GCC=$GCC
18588 GCC=$GXX
18589 lt_save_with_gnu_ld=$with_gnu_ld
18590 lt_save_path_LD=$lt_cv_path_LD
18591 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18592 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18593 else
18594 $as_unset lt_cv_prog_gnu_ld
18595 fi
18596 if test -n "${lt_cv_path_LDCXX+set}"; then
18597 lt_cv_path_LD=$lt_cv_path_LDCXX
18598 else
18599 $as_unset lt_cv_path_LD
18600 fi
18601 test -z "${LDCXX+set}" || LD=$LDCXX
18602 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000018603 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018604 compiler=$CC
18605 compiler_CXX=$CC
18606 for cc_temp in $compiler""; do
18607 case $cc_temp in
18608 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18609 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18610 \-*) ;;
18611 *) break;;
18612 esac
18613done
cristy0c60a692010-11-04 01:09:47 +000018614cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000018615
18616
18617 if test -n "$compiler"; then
18618 # We don't want -fno-exception when compiling C++ code, so set the
18619 # no_builtin_flag separately
18620 if test "$GXX" = yes; then
18621 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18622 else
18623 lt_prog_compiler_no_builtin_flag_CXX=
18624 fi
18625
18626 if test "$GXX" = yes; then
18627 # Set up default GNU C++ configuration
18628
18629
18630
18631# Check whether --with-gnu-ld was given.
18632if test "${with_gnu_ld+set}" = set; then :
18633 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18634else
18635 with_gnu_ld=no
18636fi
18637
18638ac_prog=ld
18639if test "$GCC" = yes; then
18640 # Check if gcc -print-prog-name=ld gives a path.
18641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18642$as_echo_n "checking for ld used by $CC... " >&6; }
18643 case $host in
18644 *-*-mingw*)
18645 # gcc leaves a trailing carriage return which upsets mingw
18646 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18647 *)
18648 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18649 esac
18650 case $ac_prog in
18651 # Accept absolute paths.
18652 [\\/]* | ?:[\\/]*)
18653 re_direlt='/[^/][^/]*/\.\./'
18654 # Canonicalize the pathname of ld
18655 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18656 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18657 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18658 done
18659 test -z "$LD" && LD="$ac_prog"
18660 ;;
18661 "")
18662 # If it fails, then pretend we aren't using GCC.
18663 ac_prog=ld
18664 ;;
18665 *)
18666 # If it is relative, then search for the first ld in PATH.
18667 with_gnu_ld=unknown
18668 ;;
18669 esac
18670elif test "$with_gnu_ld" = yes; then
18671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18672$as_echo_n "checking for GNU ld... " >&6; }
18673else
18674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18675$as_echo_n "checking for non-GNU ld... " >&6; }
18676fi
cristyda16f162011-02-19 23:52:17 +000018677if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018678 $as_echo_n "(cached) " >&6
18679else
18680 if test -z "$LD"; then
18681 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18682 for ac_dir in $PATH; do
18683 IFS="$lt_save_ifs"
18684 test -z "$ac_dir" && ac_dir=.
18685 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18686 lt_cv_path_LD="$ac_dir/$ac_prog"
18687 # Check to see if the program is GNU ld. I'd rather use --version,
18688 # but apparently some variants of GNU ld only accept -v.
18689 # Break only if it was the GNU/non-GNU ld that we prefer.
18690 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18691 *GNU* | *'with BFD'*)
18692 test "$with_gnu_ld" != no && break
18693 ;;
18694 *)
18695 test "$with_gnu_ld" != yes && break
18696 ;;
18697 esac
18698 fi
18699 done
18700 IFS="$lt_save_ifs"
18701else
18702 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18703fi
18704fi
18705
18706LD="$lt_cv_path_LD"
18707if test -n "$LD"; then
18708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18709$as_echo "$LD" >&6; }
18710else
18711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18712$as_echo "no" >&6; }
18713fi
cristy98dddb52010-11-04 00:30:15 +000018714test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000018715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18716$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018717if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018718 $as_echo_n "(cached) " >&6
18719else
18720 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18721case `$LD -v 2>&1 </dev/null` in
18722*GNU* | *'with BFD'*)
18723 lt_cv_prog_gnu_ld=yes
18724 ;;
18725*)
18726 lt_cv_prog_gnu_ld=no
18727 ;;
18728esac
18729fi
18730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18731$as_echo "$lt_cv_prog_gnu_ld" >&6; }
18732with_gnu_ld=$lt_cv_prog_gnu_ld
18733
18734
18735
18736
18737
18738
18739
18740 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18741 # archiving commands below assume that GNU ld is being used.
18742 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000018743 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18744 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 +000018745
18746 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18747 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18748
18749 # If archive_cmds runs LD, not CC, wlarc should be empty
18750 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18751 # investigate it a little bit more. (MM)
18752 wlarc='${wl}'
18753
18754 # ancient GNU ld didn't support --whole-archive et. al.
18755 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18756 $GREP 'no-whole-archive' > /dev/null; then
18757 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18758 else
18759 whole_archive_flag_spec_CXX=
18760 fi
18761 else
18762 with_gnu_ld=no
18763 wlarc=
18764
18765 # A generic and very simple default shared library creation
18766 # command for GNU C++ for the case where it uses the native
18767 # linker, instead of GNU ld. If possible, this setting should
18768 # overridden to take advantage of the native linker features on
18769 # the platform it is being used on.
18770 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18771 fi
18772
18773 # Commands to make compiler produce verbose output that lists
18774 # what "hidden" libraries, object files and flags are used when
18775 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018776 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018777
18778 else
18779 GXX=no
18780 with_gnu_ld=no
18781 wlarc=
18782 fi
18783
18784 # PORTME: fill in a description of your system's C++ link characteristics
18785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18786$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18787 ld_shlibs_CXX=yes
18788 case $host_os in
18789 aix3*)
18790 # FIXME: insert proper C++ library support
18791 ld_shlibs_CXX=no
18792 ;;
18793 aix[4-9]*)
18794 if test "$host_cpu" = ia64; then
18795 # On IA64, the linker does run time linking by default, so we don't
18796 # have to do anything special.
18797 aix_use_runtimelinking=no
18798 exp_sym_flag='-Bexport'
18799 no_entry_flag=""
18800 else
18801 aix_use_runtimelinking=no
18802
18803 # Test if we are trying to use run time linking or normal
18804 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18805 # need to do runtime linking.
18806 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18807 for ld_flag in $LDFLAGS; do
18808 case $ld_flag in
18809 *-brtl*)
18810 aix_use_runtimelinking=yes
18811 break
18812 ;;
18813 esac
18814 done
18815 ;;
18816 esac
18817
18818 exp_sym_flag='-bexport'
18819 no_entry_flag='-bnoentry'
18820 fi
18821
18822 # When large executables or shared objects are built, AIX ld can
18823 # have problems creating the table of contents. If linking a library
18824 # or program results in "error TOC overflow" add -mminimal-toc to
18825 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18826 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18827
18828 archive_cmds_CXX=''
18829 hardcode_direct_CXX=yes
18830 hardcode_direct_absolute_CXX=yes
18831 hardcode_libdir_separator_CXX=':'
18832 link_all_deplibs_CXX=yes
18833 file_list_spec_CXX='${wl}-f,'
18834
18835 if test "$GXX" = yes; then
18836 case $host_os in aix4.[012]|aix4.[012].*)
18837 # We only want to do this on AIX 4.2 and lower, the check
18838 # below for broken collect2 doesn't work under 4.3+
18839 collect2name=`${CC} -print-prog-name=collect2`
18840 if test -f "$collect2name" &&
18841 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18842 then
18843 # We have reworked collect2
18844 :
18845 else
18846 # We have old collect2
18847 hardcode_direct_CXX=unsupported
18848 # It fails to find uninstalled libraries when the uninstalled
18849 # path is not listed in the libpath. Setting hardcode_minus_L
18850 # to unsupported forces relinking
18851 hardcode_minus_L_CXX=yes
18852 hardcode_libdir_flag_spec_CXX='-L$libdir'
18853 hardcode_libdir_separator_CXX=
18854 fi
18855 esac
18856 shared_flag='-shared'
18857 if test "$aix_use_runtimelinking" = yes; then
18858 shared_flag="$shared_flag "'${wl}-G'
18859 fi
18860 else
18861 # not using gcc
18862 if test "$host_cpu" = ia64; then
18863 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18864 # chokes on -Wl,-G. The following line is correct:
18865 shared_flag='-G'
18866 else
18867 if test "$aix_use_runtimelinking" = yes; then
18868 shared_flag='${wl}-G'
18869 else
18870 shared_flag='${wl}-bM:SRE'
18871 fi
18872 fi
18873 fi
18874
18875 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18876 # It seems that -bexpall does not export symbols beginning with
18877 # underscore (_), so it is better to generate a list of symbols to
18878 # export.
18879 always_export_symbols_CXX=yes
18880 if test "$aix_use_runtimelinking" = yes; then
18881 # Warning - without using the other runtime loading flags (-brtl),
18882 # -berok will link without error, but may produce a broken library.
18883 allow_undefined_flag_CXX='-berok'
18884 # Determine the default libpath from the value encoded in an empty
18885 # executable.
cristyda16f162011-02-19 23:52:17 +000018886 if test "${lt_cv_aix_libpath+set}" = set; then
18887 aix_libpath=$lt_cv_aix_libpath
18888else
18889 if ${lt_cv_aix_libpath__CXX+:} false; then :
18890 $as_echo_n "(cached) " >&6
18891else
18892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018893/* end confdefs.h. */
18894
18895int
18896main ()
18897{
18898
18899 ;
18900 return 0;
18901}
18902_ACEOF
18903if ac_fn_cxx_try_link "$LINENO"; then :
18904
cristyda16f162011-02-19 23:52:17 +000018905 lt_aix_libpath_sed='
18906 /Import File Strings/,/^$/ {
18907 /^0/ {
18908 s/^0 *\([^ ]*\) *$/\1/
18909 p
18910 }
18911 }'
18912 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18913 # Check for a 64-bit object if we didn't find anything.
18914 if test -z "$lt_cv_aix_libpath__CXX"; then
18915 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18916 fi
cristy73bd4a52010-10-05 11:24:23 +000018917fi
18918rm -f core conftest.err conftest.$ac_objext \
18919 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018920 if test -z "$lt_cv_aix_libpath__CXX"; then
18921 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18922 fi
18923
18924fi
18925
18926 aix_libpath=$lt_cv_aix_libpath__CXX
18927fi
cristy73bd4a52010-10-05 11:24:23 +000018928
18929 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18930
cristy0c60a692010-11-04 01:09:47 +000018931 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 +000018932 else
18933 if test "$host_cpu" = ia64; then
18934 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18935 allow_undefined_flag_CXX="-z nodefs"
18936 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"
18937 else
18938 # Determine the default libpath from the value encoded in an
18939 # empty executable.
cristyda16f162011-02-19 23:52:17 +000018940 if test "${lt_cv_aix_libpath+set}" = set; then
18941 aix_libpath=$lt_cv_aix_libpath
18942else
18943 if ${lt_cv_aix_libpath__CXX+:} false; then :
18944 $as_echo_n "(cached) " >&6
18945else
18946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018947/* end confdefs.h. */
18948
18949int
18950main ()
18951{
18952
18953 ;
18954 return 0;
18955}
18956_ACEOF
18957if ac_fn_cxx_try_link "$LINENO"; then :
18958
cristyda16f162011-02-19 23:52:17 +000018959 lt_aix_libpath_sed='
18960 /Import File Strings/,/^$/ {
18961 /^0/ {
18962 s/^0 *\([^ ]*\) *$/\1/
18963 p
18964 }
18965 }'
18966 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18967 # Check for a 64-bit object if we didn't find anything.
18968 if test -z "$lt_cv_aix_libpath__CXX"; then
18969 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18970 fi
cristy73bd4a52010-10-05 11:24:23 +000018971fi
18972rm -f core conftest.err conftest.$ac_objext \
18973 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018974 if test -z "$lt_cv_aix_libpath__CXX"; then
18975 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18976 fi
18977
18978fi
18979
18980 aix_libpath=$lt_cv_aix_libpath__CXX
18981fi
cristy73bd4a52010-10-05 11:24:23 +000018982
18983 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18984 # Warning - without using the other run time loading flags,
18985 # -berok will link without error, but may produce a broken library.
18986 no_undefined_flag_CXX=' ${wl}-bernotok'
18987 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000018988 if test "$with_gnu_ld" = yes; then
18989 # We only use this code for GNU lds that support --whole-archive.
18990 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18991 else
18992 # Exported symbols can be pulled into shared objects from archives
18993 whole_archive_flag_spec_CXX='$convenience'
18994 fi
cristy73bd4a52010-10-05 11:24:23 +000018995 archive_cmds_need_lc_CXX=yes
18996 # This is similar to how AIX traditionally builds its shared
18997 # libraries.
18998 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'
18999 fi
19000 fi
19001 ;;
19002
19003 beos*)
19004 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19005 allow_undefined_flag_CXX=unsupported
19006 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19007 # support --undefined. This deserves some investigation. FIXME
19008 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19009 else
19010 ld_shlibs_CXX=no
19011 fi
19012 ;;
19013
19014 chorus*)
19015 case $cc_basename in
19016 *)
19017 # FIXME: insert proper C++ library support
19018 ld_shlibs_CXX=no
19019 ;;
19020 esac
19021 ;;
19022
19023 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000019024 case $GXX,$cc_basename in
19025 ,cl* | no,cl*)
19026 # Native MSVC
19027 # hardcode_libdir_flag_spec is actually meaningless, as there is
19028 # no search path for DLLs.
19029 hardcode_libdir_flag_spec_CXX=' '
19030 allow_undefined_flag_CXX=unsupported
19031 always_export_symbols_CXX=yes
19032 file_list_spec_CXX='@'
19033 # Tell ltmain to make .lib files, not .a files.
19034 libext=lib
19035 # Tell ltmain to make .dll files, not .so files.
19036 shrext_cmds=".dll"
19037 # FIXME: Setting linknames here is a bad hack.
19038 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
19039 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19040 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
19041 else
19042 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
19043 fi~
19044 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
19045 linknames='
19046 # The linker will not automatically build a static lib if we build a DLL.
19047 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
19048 enable_shared_with_static_runtimes_CXX=yes
19049 # Don't use ranlib
19050 old_postinstall_cmds_CXX='chmod 644 $oldlib'
19051 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
19052 lt_tool_outputfile="@TOOL_OUTPUT@"~
19053 case $lt_outputfile in
19054 *.exe|*.EXE) ;;
19055 *)
19056 lt_outputfile="$lt_outputfile.exe"
19057 lt_tool_outputfile="$lt_tool_outputfile.exe"
19058 ;;
19059 esac~
19060 func_to_tool_file "$lt_outputfile"~
19061 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
19062 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
19063 $RM "$lt_outputfile.manifest";
19064 fi'
19065 ;;
19066 *)
19067 # g++
19068 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19069 # as there is no search path for DLLs.
19070 hardcode_libdir_flag_spec_CXX='-L$libdir'
19071 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19072 allow_undefined_flag_CXX=unsupported
19073 always_export_symbols_CXX=no
19074 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000019075
cristyda16f162011-02-19 23:52:17 +000019076 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19077 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'
19078 # If the export-symbols file already is a .def file (1st line
19079 # is EXPORTS), use it as is; otherwise, prepend...
19080 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19081 cp $export_symbols $output_objdir/$soname.def;
19082 else
19083 echo EXPORTS > $output_objdir/$soname.def;
19084 cat $export_symbols >> $output_objdir/$soname.def;
19085 fi~
19086 $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'
19087 else
19088 ld_shlibs_CXX=no
19089 fi
19090 ;;
19091 esac
19092 ;;
cristy73bd4a52010-10-05 11:24:23 +000019093 darwin* | rhapsody*)
19094
19095
19096 archive_cmds_need_lc_CXX=no
19097 hardcode_direct_CXX=no
19098 hardcode_automatic_CXX=yes
19099 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000019100 if test "$lt_cv_ld_force_load" = "yes"; then
19101 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 +000019102
cristy0c60a692010-11-04 01:09:47 +000019103 else
19104 whole_archive_flag_spec_CXX=''
19105 fi
cristy73bd4a52010-10-05 11:24:23 +000019106 link_all_deplibs_CXX=yes
19107 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19108 case $cc_basename in
19109 ifort*) _lt_dar_can_shared=yes ;;
19110 *) _lt_dar_can_shared=$GCC ;;
19111 esac
19112 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000019113 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000019114 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}"
19115 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19116 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}"
19117 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}"
19118 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19119 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}"
19120 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}"
19121 fi
19122
19123 else
19124 ld_shlibs_CXX=no
19125 fi
19126
19127 ;;
19128
19129 dgux*)
19130 case $cc_basename in
19131 ec++*)
19132 # FIXME: insert proper C++ library support
19133 ld_shlibs_CXX=no
19134 ;;
19135 ghcx*)
19136 # Green Hills C++ Compiler
19137 # FIXME: insert proper C++ library support
19138 ld_shlibs_CXX=no
19139 ;;
19140 *)
19141 # FIXME: insert proper C++ library support
19142 ld_shlibs_CXX=no
19143 ;;
19144 esac
19145 ;;
19146
cristy99bd5232011-12-07 14:38:20 +000019147 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000019148 # C++ shared libraries reported to be fairly broken before
19149 # switch to ELF
19150 ld_shlibs_CXX=no
19151 ;;
19152
19153 freebsd-elf*)
19154 archive_cmds_need_lc_CXX=no
19155 ;;
19156
19157 freebsd* | dragonfly*)
19158 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19159 # conventions
19160 ld_shlibs_CXX=yes
19161 ;;
19162
19163 gnu*)
19164 ;;
19165
cristy0c60a692010-11-04 01:09:47 +000019166 haiku*)
19167 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19168 link_all_deplibs_CXX=yes
19169 ;;
19170
cristy73bd4a52010-10-05 11:24:23 +000019171 hpux9*)
19172 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19173 hardcode_libdir_separator_CXX=:
19174 export_dynamic_flag_spec_CXX='${wl}-E'
19175 hardcode_direct_CXX=yes
19176 hardcode_minus_L_CXX=yes # Not in the search PATH,
19177 # but as the default
19178 # location of the library.
19179
19180 case $cc_basename in
19181 CC*)
19182 # FIXME: insert proper C++ library support
19183 ld_shlibs_CXX=no
19184 ;;
19185 aCC*)
19186 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'
19187 # Commands to make compiler produce verbose output that lists
19188 # what "hidden" libraries, object files and flags are used when
19189 # linking a shared library.
19190 #
19191 # There doesn't appear to be a way to prevent this compiler from
19192 # explicitly linking system object files so we need to strip them
19193 # from the output so that they don't get included in the library
19194 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000019195 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 +000019196 ;;
19197 *)
19198 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000019199 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 +000019200 else
19201 # FIXME: insert proper C++ library support
19202 ld_shlibs_CXX=no
19203 fi
19204 ;;
19205 esac
19206 ;;
19207
19208 hpux10*|hpux11*)
19209 if test $with_gnu_ld = no; then
19210 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19211 hardcode_libdir_separator_CXX=:
19212
19213 case $host_cpu in
19214 hppa*64*|ia64*)
19215 ;;
19216 *)
19217 export_dynamic_flag_spec_CXX='${wl}-E'
19218 ;;
19219 esac
19220 fi
19221 case $host_cpu in
19222 hppa*64*|ia64*)
19223 hardcode_direct_CXX=no
19224 hardcode_shlibpath_var_CXX=no
19225 ;;
19226 *)
19227 hardcode_direct_CXX=yes
19228 hardcode_direct_absolute_CXX=yes
19229 hardcode_minus_L_CXX=yes # Not in the search PATH,
19230 # but as the default
19231 # location of the library.
19232 ;;
19233 esac
19234
19235 case $cc_basename in
19236 CC*)
19237 # FIXME: insert proper C++ library support
19238 ld_shlibs_CXX=no
19239 ;;
19240 aCC*)
19241 case $host_cpu in
19242 hppa*64*)
19243 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19244 ;;
19245 ia64*)
19246 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19247 ;;
19248 *)
19249 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19250 ;;
19251 esac
19252 # Commands to make compiler produce verbose output that lists
19253 # what "hidden" libraries, object files and flags are used when
19254 # linking a shared library.
19255 #
19256 # There doesn't appear to be a way to prevent this compiler from
19257 # explicitly linking system object files so we need to strip them
19258 # from the output so that they don't get included in the library
19259 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000019260 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 +000019261 ;;
19262 *)
19263 if test "$GXX" = yes; then
19264 if test $with_gnu_ld = no; then
19265 case $host_cpu in
19266 hppa*64*)
19267 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19268 ;;
19269 ia64*)
cristyda16f162011-02-19 23:52:17 +000019270 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 +000019271 ;;
19272 *)
cristyda16f162011-02-19 23:52:17 +000019273 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 +000019274 ;;
19275 esac
19276 fi
19277 else
19278 # FIXME: insert proper C++ library support
19279 ld_shlibs_CXX=no
19280 fi
19281 ;;
19282 esac
19283 ;;
19284
19285 interix[3-9]*)
19286 hardcode_direct_CXX=no
19287 hardcode_shlibpath_var_CXX=no
19288 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19289 export_dynamic_flag_spec_CXX='${wl}-E'
19290 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19291 # Instead, shared libraries are loaded at an image base (0x10000000 by
19292 # default) and relocated if they conflict, which is a slow very memory
19293 # consuming and fragmenting process. To avoid this, we pick a random,
19294 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19295 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19296 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'
19297 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'
19298 ;;
19299 irix5* | irix6*)
19300 case $cc_basename in
19301 CC*)
19302 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000019303 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 +000019304
19305 # Archives containing C++ object files must be created using
19306 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19307 # necessary to make sure instantiated templates are included
19308 # in the archive.
19309 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19310 ;;
19311 *)
19312 if test "$GXX" = yes; then
19313 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000019314 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 +000019315 else
cristyda16f162011-02-19 23:52:17 +000019316 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 +000019317 fi
19318 fi
19319 link_all_deplibs_CXX=yes
19320 ;;
19321 esac
19322 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19323 hardcode_libdir_separator_CXX=:
19324 inherit_rpath_CXX=yes
19325 ;;
19326
cristy0c60a692010-11-04 01:09:47 +000019327 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000019328 case $cc_basename in
19329 KCC*)
19330 # Kuck and Associates, Inc. (KAI) C++ Compiler
19331
19332 # KCC will only create a shared library if the output file
19333 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19334 # to its proper name (with version) after linking.
19335 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'
19336 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'
19337 # Commands to make compiler produce verbose output that lists
19338 # what "hidden" libraries, object files and flags are used when
19339 # linking a shared library.
19340 #
19341 # There doesn't appear to be a way to prevent this compiler from
19342 # explicitly linking system object files so we need to strip them
19343 # from the output so that they don't get included in the library
19344 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000019345 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 +000019346
19347 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19348 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19349
19350 # Archives containing C++ object files must be created using
19351 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19352 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19353 ;;
19354 icpc* | ecpc* )
19355 # Intel C++
19356 with_gnu_ld=yes
19357 # version 8.0 and above of icpc choke on multiply defined symbols
19358 # if we add $predep_objects and $postdep_objects, however 7.1 and
19359 # earlier do not add the objects themselves.
19360 case `$CC -V 2>&1` in
19361 *"Version 7."*)
19362 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19363 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'
19364 ;;
19365 *) # Version 8.0 or newer
19366 tmp_idyn=
19367 case $host_cpu in
19368 ia64*) tmp_idyn=' -i_dynamic';;
19369 esac
19370 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19371 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'
19372 ;;
19373 esac
19374 archive_cmds_need_lc_CXX=no
19375 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19376 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19377 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19378 ;;
19379 pgCC* | pgcpp*)
19380 # Portland Group C++ compiler
19381 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000019382 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000019383 prelink_cmds_CXX='tpldir=Template.dir~
19384 rm -rf $tpldir~
19385 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000019386 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000019387 old_archive_cmds_CXX='tpldir=Template.dir~
19388 rm -rf $tpldir~
19389 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000019390 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000019391 $RANLIB $oldlib'
19392 archive_cmds_CXX='tpldir=Template.dir~
19393 rm -rf $tpldir~
19394 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000019395 $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 +000019396 archive_expsym_cmds_CXX='tpldir=Template.dir~
19397 rm -rf $tpldir~
19398 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000019399 $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 +000019400 ;;
cristy0c60a692010-11-04 01:09:47 +000019401 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000019402 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19403 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'
19404 ;;
19405 esac
19406
19407 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19408 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000019409 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 +000019410 ;;
19411 cxx*)
19412 # Compaq C++
19413 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19414 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'
19415
19416 runpath_var=LD_RUN_PATH
19417 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19418 hardcode_libdir_separator_CXX=:
19419
19420 # Commands to make compiler produce verbose output that lists
19421 # what "hidden" libraries, object files and flags are used when
19422 # linking a shared library.
19423 #
19424 # There doesn't appear to be a way to prevent this compiler from
19425 # explicitly linking system object files so we need to strip them
19426 # from the output so that they don't get included in the library
19427 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000019428 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 +000019429 ;;
cristy0c60a692010-11-04 01:09:47 +000019430 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000019431 # IBM XL 8.0 on PPC, with GNU ld
19432 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19433 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19434 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19435 if test "x$supports_anon_versioning" = xyes; then
19436 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19437 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19438 echo "local: *; };" >> $output_objdir/$libname.ver~
19439 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19440 fi
19441 ;;
19442 *)
19443 case `$CC -V 2>&1 | sed 5q` in
19444 *Sun\ C*)
19445 # Sun C++ 5.9
19446 no_undefined_flag_CXX=' -zdefs'
19447 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19448 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'
19449 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000019450 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 +000019451 compiler_needs_object_CXX=yes
19452
19453 # Not sure whether something based on
19454 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19455 # would be better.
cristy0c60a692010-11-04 01:09:47 +000019456 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000019457
19458 # Archives containing C++ object files must be created using
19459 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19460 # necessary to make sure instantiated templates are included
19461 # in the archive.
19462 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19463 ;;
19464 esac
19465 ;;
19466 esac
19467 ;;
19468
19469 lynxos*)
19470 # FIXME: insert proper C++ library support
19471 ld_shlibs_CXX=no
19472 ;;
19473
19474 m88k*)
19475 # FIXME: insert proper C++ library support
19476 ld_shlibs_CXX=no
19477 ;;
19478
19479 mvs*)
19480 case $cc_basename in
19481 cxx*)
19482 # FIXME: insert proper C++ library support
19483 ld_shlibs_CXX=no
19484 ;;
19485 *)
19486 # FIXME: insert proper C++ library support
19487 ld_shlibs_CXX=no
19488 ;;
19489 esac
19490 ;;
19491
19492 netbsd*)
19493 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19494 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19495 wlarc=
19496 hardcode_libdir_flag_spec_CXX='-R$libdir'
19497 hardcode_direct_CXX=yes
19498 hardcode_shlibpath_var_CXX=no
19499 fi
19500 # Workaround some broken pre-1.5 toolchains
19501 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19502 ;;
19503
19504 *nto* | *qnx*)
19505 ld_shlibs_CXX=yes
19506 ;;
19507
19508 openbsd2*)
19509 # C++ shared libraries are fairly broken
19510 ld_shlibs_CXX=no
19511 ;;
19512
19513 openbsd*)
19514 if test -f /usr/libexec/ld.so; then
19515 hardcode_direct_CXX=yes
19516 hardcode_shlibpath_var_CXX=no
19517 hardcode_direct_absolute_CXX=yes
19518 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19519 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19520 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19521 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19522 export_dynamic_flag_spec_CXX='${wl}-E'
19523 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19524 fi
cristy0c60a692010-11-04 01:09:47 +000019525 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000019526 else
19527 ld_shlibs_CXX=no
19528 fi
19529 ;;
19530
19531 osf3* | osf4* | osf5*)
19532 case $cc_basename in
19533 KCC*)
19534 # Kuck and Associates, Inc. (KAI) C++ Compiler
19535
19536 # KCC will only create a shared library if the output file
19537 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19538 # to its proper name (with version) after linking.
19539 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'
19540
19541 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19542 hardcode_libdir_separator_CXX=:
19543
19544 # Archives containing C++ object files must be created using
19545 # the KAI C++ compiler.
19546 case $host in
19547 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19548 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19549 esac
19550 ;;
19551 RCC*)
19552 # Rational C++ 2.4.1
19553 # FIXME: insert proper C++ library support
19554 ld_shlibs_CXX=no
19555 ;;
19556 cxx*)
19557 case $host in
19558 osf3*)
19559 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000019560 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 +000019561 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19562 ;;
19563 *)
19564 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000019565 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 +000019566 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19567 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000019568 $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 +000019569 $RM $lib.exp'
19570 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19571 ;;
19572 esac
19573
19574 hardcode_libdir_separator_CXX=:
19575
19576 # Commands to make compiler produce verbose output that lists
19577 # what "hidden" libraries, object files and flags are used when
19578 # linking a shared library.
19579 #
19580 # There doesn't appear to be a way to prevent this compiler from
19581 # explicitly linking system object files so we need to strip them
19582 # from the output so that they don't get included in the library
19583 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000019584 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 +000019585 ;;
19586 *)
19587 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19588 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19589 case $host in
19590 osf3*)
cristy0c60a692010-11-04 01:09:47 +000019591 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 +000019592 ;;
19593 *)
cristyda16f162011-02-19 23:52:17 +000019594 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 +000019595 ;;
19596 esac
19597
19598 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19599 hardcode_libdir_separator_CXX=:
19600
19601 # Commands to make compiler produce verbose output that lists
19602 # what "hidden" libraries, object files and flags are used when
19603 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000019604 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000019605
19606 else
19607 # FIXME: insert proper C++ library support
19608 ld_shlibs_CXX=no
19609 fi
19610 ;;
19611 esac
19612 ;;
19613
19614 psos*)
19615 # FIXME: insert proper C++ library support
19616 ld_shlibs_CXX=no
19617 ;;
19618
19619 sunos4*)
19620 case $cc_basename in
19621 CC*)
19622 # Sun C++ 4.x
19623 # FIXME: insert proper C++ library support
19624 ld_shlibs_CXX=no
19625 ;;
19626 lcc*)
19627 # Lucid
19628 # FIXME: insert proper C++ library support
19629 ld_shlibs_CXX=no
19630 ;;
19631 *)
19632 # FIXME: insert proper C++ library support
19633 ld_shlibs_CXX=no
19634 ;;
19635 esac
19636 ;;
19637
19638 solaris*)
19639 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019640 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019641 # Sun C++ 4.2, 5.x and Centerline C++
19642 archive_cmds_need_lc_CXX=yes
19643 no_undefined_flag_CXX=' -zdefs'
19644 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19645 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19646 $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'
19647
19648 hardcode_libdir_flag_spec_CXX='-R$libdir'
19649 hardcode_shlibpath_var_CXX=no
19650 case $host_os in
19651 solaris2.[0-5] | solaris2.[0-5].*) ;;
19652 *)
19653 # The compiler driver will combine and reorder linker options,
19654 # but understands `-z linker_flag'.
19655 # Supported since Solaris 2.6 (maybe 2.5.1?)
19656 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19657 ;;
19658 esac
19659 link_all_deplibs_CXX=yes
19660
cristy0c60a692010-11-04 01:09:47 +000019661 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000019662
19663 # Archives containing C++ object files must be created using
19664 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19665 # necessary to make sure instantiated templates are included
19666 # in the archive.
19667 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19668 ;;
19669 gcx*)
19670 # Green Hills C++ Compiler
19671 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19672
19673 # The C++ compiler must be used to create the archive.
19674 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19675 ;;
19676 *)
19677 # GNU C++ compiler with Solaris linker
19678 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19679 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19680 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000019681 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 +000019682 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 +000019683 $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 +000019684
19685 # Commands to make compiler produce verbose output that lists
19686 # what "hidden" libraries, object files and flags are used when
19687 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000019688 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000019689 else
19690 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19691 # platform.
19692 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19693 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19694 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19695
19696 # Commands to make compiler produce verbose output that lists
19697 # what "hidden" libraries, object files and flags are used when
19698 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000019699 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000019700 fi
19701
19702 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19703 case $host_os in
19704 solaris2.[0-5] | solaris2.[0-5].*) ;;
19705 *)
19706 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19707 ;;
19708 esac
19709 fi
19710 ;;
19711 esac
19712 ;;
19713
19714 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19715 no_undefined_flag_CXX='${wl}-z,text'
19716 archive_cmds_need_lc_CXX=no
19717 hardcode_shlibpath_var_CXX=no
19718 runpath_var='LD_RUN_PATH'
19719
19720 case $cc_basename in
19721 CC*)
19722 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19723 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19724 ;;
19725 *)
19726 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19727 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19728 ;;
19729 esac
19730 ;;
19731
19732 sysv5* | sco3.2v5* | sco5v6*)
19733 # Note: We can NOT use -z defs as we might desire, because we do not
19734 # link with -lc, and that would cause any symbols used from libc to
19735 # always be unresolved, which means just about no library would
19736 # ever link correctly. If we're not using GNU ld we use -z text
19737 # though, which does catch some bad symbols but isn't as heavy-handed
19738 # as -z defs.
19739 no_undefined_flag_CXX='${wl}-z,text'
19740 allow_undefined_flag_CXX='${wl}-z,nodefs'
19741 archive_cmds_need_lc_CXX=no
19742 hardcode_shlibpath_var_CXX=no
19743 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19744 hardcode_libdir_separator_CXX=':'
19745 link_all_deplibs_CXX=yes
19746 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19747 runpath_var='LD_RUN_PATH'
19748
19749 case $cc_basename in
19750 CC*)
19751 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19752 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 +000019753 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19754 '"$old_archive_cmds_CXX"
19755 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19756 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000019757 ;;
19758 *)
19759 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19760 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19761 ;;
19762 esac
19763 ;;
19764
19765 tandem*)
19766 case $cc_basename in
19767 NCC*)
19768 # NonStop-UX NCC 3.20
19769 # FIXME: insert proper C++ library support
19770 ld_shlibs_CXX=no
19771 ;;
19772 *)
19773 # FIXME: insert proper C++ library support
19774 ld_shlibs_CXX=no
19775 ;;
19776 esac
19777 ;;
19778
19779 vxworks*)
19780 # FIXME: insert proper C++ library support
19781 ld_shlibs_CXX=no
19782 ;;
19783
19784 *)
19785 # FIXME: insert proper C++ library support
19786 ld_shlibs_CXX=no
19787 ;;
19788 esac
19789
19790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19791$as_echo "$ld_shlibs_CXX" >&6; }
19792 test "$ld_shlibs_CXX" = no && can_build_shared=no
19793
19794 GCC_CXX="$GXX"
19795 LD_CXX="$LD"
19796
19797 ## CAVEAT EMPTOR:
19798 ## There is no encapsulation within the following macros, do not change
19799 ## the running order or otherwise move them around unless you know exactly
19800 ## what you are doing...
19801 # Dependencies to place before and after the object being linked:
19802predep_objects_CXX=
19803postdep_objects_CXX=
19804predeps_CXX=
19805postdeps_CXX=
19806compiler_lib_search_path_CXX=
19807
19808cat > conftest.$ac_ext <<_LT_EOF
19809class Foo
19810{
19811public:
19812 Foo (void) { a = 0; }
19813private:
19814 int a;
19815};
19816_LT_EOF
19817
cristyda16f162011-02-19 23:52:17 +000019818
19819_lt_libdeps_save_CFLAGS=$CFLAGS
19820case "$CC $CFLAGS " in #(
19821*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
19822*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
cristy99bd5232011-12-07 14:38:20 +000019823*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
cristyda16f162011-02-19 23:52:17 +000019824esac
19825
cristy73bd4a52010-10-05 11:24:23 +000019826if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19827 (eval $ac_compile) 2>&5
19828 ac_status=$?
19829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19830 test $ac_status = 0; }; then
19831 # Parse the compiler output and extract the necessary
19832 # objects, libraries and library flags.
19833
19834 # Sentinel used to keep track of whether or not we are before
19835 # the conftest object file.
19836 pre_test_object_deps_done=no
19837
19838 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000019839 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000019840
19841 -L* | -R* | -l*)
19842 # Some compilers place space between "-{L,R}" and the path.
19843 # Remove the space.
19844 if test $p = "-L" ||
19845 test $p = "-R"; then
19846 prev=$p
19847 continue
cristy73bd4a52010-10-05 11:24:23 +000019848 fi
19849
cristyda16f162011-02-19 23:52:17 +000019850 # Expand the sysroot to ease extracting the directories later.
19851 if test -z "$prev"; then
19852 case $p in
19853 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
19854 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
19855 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
19856 esac
19857 fi
19858 case $p in
19859 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
19860 esac
cristy73bd4a52010-10-05 11:24:23 +000019861 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000019862 case ${prev} in
19863 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000019864 # Internal compiler library paths should come after those
19865 # provided the user. The postdeps already come after the
19866 # user supplied libs so there is no need to process them.
19867 if test -z "$compiler_lib_search_path_CXX"; then
19868 compiler_lib_search_path_CXX="${prev}${p}"
19869 else
19870 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19871 fi
19872 ;;
19873 # The "-l" case would never come before the object being
19874 # linked, so don't bother handling this case.
19875 esac
19876 else
19877 if test -z "$postdeps_CXX"; then
19878 postdeps_CXX="${prev}${p}"
19879 else
19880 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19881 fi
19882 fi
cristyda16f162011-02-19 23:52:17 +000019883 prev=
cristy73bd4a52010-10-05 11:24:23 +000019884 ;;
19885
cristyda16f162011-02-19 23:52:17 +000019886 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000019887 *.$objext)
19888 # This assumes that the test object file only shows up
19889 # once in the compiler output.
19890 if test "$p" = "conftest.$objext"; then
19891 pre_test_object_deps_done=yes
19892 continue
19893 fi
19894
19895 if test "$pre_test_object_deps_done" = no; then
19896 if test -z "$predep_objects_CXX"; then
19897 predep_objects_CXX="$p"
19898 else
19899 predep_objects_CXX="$predep_objects_CXX $p"
19900 fi
19901 else
19902 if test -z "$postdep_objects_CXX"; then
19903 postdep_objects_CXX="$p"
19904 else
19905 postdep_objects_CXX="$postdep_objects_CXX $p"
19906 fi
19907 fi
19908 ;;
19909
19910 *) ;; # Ignore the rest.
19911
19912 esac
19913 done
19914
19915 # Clean up.
19916 rm -f a.out a.exe
19917else
19918 echo "libtool.m4: error: problem compiling CXX test program"
19919fi
19920
19921$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000019922CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000019923
19924# PORTME: override above test on systems where it is broken
19925case $host_os in
19926interix[3-9]*)
19927 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19928 # hack all around it, let's just trust "g++" to DTRT.
19929 predep_objects_CXX=
19930 postdep_objects_CXX=
19931 postdeps_CXX=
19932 ;;
19933
19934linux*)
19935 case `$CC -V 2>&1 | sed 5q` in
19936 *Sun\ C*)
19937 # Sun C++ 5.9
19938
19939 # The more standards-conforming stlport4 library is
19940 # incompatible with the Cstd library. Avoid specifying
19941 # it if it's in CXXFLAGS. Ignore libCrun as
19942 # -library=stlport4 depends on it.
19943 case " $CXX $CXXFLAGS " in
19944 *" -library=stlport4 "*)
19945 solaris_use_stlport4=yes
19946 ;;
19947 esac
19948
19949 if test "$solaris_use_stlport4" != yes; then
19950 postdeps_CXX='-library=Cstd -library=Crun'
19951 fi
19952 ;;
19953 esac
19954 ;;
19955
19956solaris*)
19957 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019958 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019959 # The more standards-conforming stlport4 library is
19960 # incompatible with the Cstd library. Avoid specifying
19961 # it if it's in CXXFLAGS. Ignore libCrun as
19962 # -library=stlport4 depends on it.
19963 case " $CXX $CXXFLAGS " in
19964 *" -library=stlport4 "*)
19965 solaris_use_stlport4=yes
19966 ;;
19967 esac
19968
19969 # Adding this requires a known-good setup of shared libraries for
19970 # Sun compiler versions before 5.6, else PIC objects from an old
19971 # archive will be linked into the output, leading to subtle bugs.
19972 if test "$solaris_use_stlport4" != yes; then
19973 postdeps_CXX='-library=Cstd -library=Crun'
19974 fi
19975 ;;
19976 esac
19977 ;;
19978esac
19979
19980
19981case " $postdeps_CXX " in
19982*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19983esac
19984 compiler_lib_search_dirs_CXX=
19985if test -n "${compiler_lib_search_path_CXX}"; then
19986 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19987fi
19988
19989
19990
19991
19992
19993
19994
19995
19996
19997
19998
19999
20000
20001
20002
20003
20004
20005
20006
20007
20008
20009
20010
20011
20012
20013
20014
20015
20016
20017
20018
20019 lt_prog_compiler_wl_CXX=
20020lt_prog_compiler_pic_CXX=
20021lt_prog_compiler_static_CXX=
20022
cristy73bd4a52010-10-05 11:24:23 +000020023
20024 # C++ specific cases for pic, static, wl, etc.
20025 if test "$GXX" = yes; then
20026 lt_prog_compiler_wl_CXX='-Wl,'
20027 lt_prog_compiler_static_CXX='-static'
20028
20029 case $host_os in
20030 aix*)
20031 # All AIX code is PIC.
20032 if test "$host_cpu" = ia64; then
20033 # AIX 5 now supports IA64 processor
20034 lt_prog_compiler_static_CXX='-Bstatic'
20035 fi
20036 ;;
20037
20038 amigaos*)
20039 case $host_cpu in
20040 powerpc)
20041 # see comment about AmigaOS4 .so support
20042 lt_prog_compiler_pic_CXX='-fPIC'
20043 ;;
20044 m68k)
20045 # FIXME: we need at least 68020 code to build shared libraries, but
20046 # adding the `-m68020' flag to GCC prevents building anything better,
20047 # like `-m68040'.
20048 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20049 ;;
20050 esac
20051 ;;
20052
20053 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20054 # PIC is the default for these OSes.
20055 ;;
20056 mingw* | cygwin* | os2* | pw32* | cegcc*)
20057 # This hack is so that the source file can tell whether it is being
20058 # built for inclusion in a dll (and should export symbols for example).
20059 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20060 # (--disable-auto-import) libraries
20061 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20062 ;;
20063 darwin* | rhapsody*)
20064 # PIC is the default on this platform
20065 # Common symbols not allowed in MH_DYLIB files
20066 lt_prog_compiler_pic_CXX='-fno-common'
20067 ;;
20068 *djgpp*)
20069 # DJGPP does not support shared libraries at all
20070 lt_prog_compiler_pic_CXX=
20071 ;;
cristy0c60a692010-11-04 01:09:47 +000020072 haiku*)
20073 # PIC is the default for Haiku.
20074 # The "-static" flag exists, but is broken.
20075 lt_prog_compiler_static_CXX=
20076 ;;
cristy73bd4a52010-10-05 11:24:23 +000020077 interix[3-9]*)
20078 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20079 # Instead, we relocate shared libraries at runtime.
20080 ;;
20081 sysv4*MP*)
20082 if test -d /usr/nec; then
20083 lt_prog_compiler_pic_CXX=-Kconform_pic
20084 fi
20085 ;;
20086 hpux*)
20087 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20088 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20089 # sets the default TLS model and affects inlining.
20090 case $host_cpu in
20091 hppa*64*)
20092 ;;
20093 *)
20094 lt_prog_compiler_pic_CXX='-fPIC'
20095 ;;
20096 esac
20097 ;;
20098 *qnx* | *nto*)
20099 # QNX uses GNU C++, but need to define -shared option too, otherwise
20100 # it will coredump.
20101 lt_prog_compiler_pic_CXX='-fPIC -shared'
20102 ;;
20103 *)
20104 lt_prog_compiler_pic_CXX='-fPIC'
20105 ;;
20106 esac
20107 else
20108 case $host_os in
20109 aix[4-9]*)
20110 # All AIX code is PIC.
20111 if test "$host_cpu" = ia64; then
20112 # AIX 5 now supports IA64 processor
20113 lt_prog_compiler_static_CXX='-Bstatic'
20114 else
20115 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20116 fi
20117 ;;
20118 chorus*)
20119 case $cc_basename in
20120 cxch68*)
20121 # Green Hills C++ Compiler
20122 # _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"
20123 ;;
20124 esac
20125 ;;
cristyda16f162011-02-19 23:52:17 +000020126 mingw* | cygwin* | os2* | pw32* | cegcc*)
20127 # This hack is so that the source file can tell whether it is being
20128 # built for inclusion in a dll (and should export symbols for example).
20129 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20130 ;;
cristy73bd4a52010-10-05 11:24:23 +000020131 dgux*)
20132 case $cc_basename in
20133 ec++*)
20134 lt_prog_compiler_pic_CXX='-KPIC'
20135 ;;
20136 ghcx*)
20137 # Green Hills C++ Compiler
20138 lt_prog_compiler_pic_CXX='-pic'
20139 ;;
20140 *)
20141 ;;
20142 esac
20143 ;;
20144 freebsd* | dragonfly*)
20145 # FreeBSD uses GNU C++
20146 ;;
20147 hpux9* | hpux10* | hpux11*)
20148 case $cc_basename in
20149 CC*)
20150 lt_prog_compiler_wl_CXX='-Wl,'
20151 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20152 if test "$host_cpu" != ia64; then
20153 lt_prog_compiler_pic_CXX='+Z'
20154 fi
20155 ;;
20156 aCC*)
20157 lt_prog_compiler_wl_CXX='-Wl,'
20158 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20159 case $host_cpu in
20160 hppa*64*|ia64*)
20161 # +Z the default
20162 ;;
20163 *)
20164 lt_prog_compiler_pic_CXX='+Z'
20165 ;;
20166 esac
20167 ;;
20168 *)
20169 ;;
20170 esac
20171 ;;
20172 interix*)
20173 # This is c89, which is MS Visual C++ (no shared libs)
20174 # Anyone wants to do a port?
20175 ;;
20176 irix5* | irix6* | nonstopux*)
20177 case $cc_basename in
20178 CC*)
20179 lt_prog_compiler_wl_CXX='-Wl,'
20180 lt_prog_compiler_static_CXX='-non_shared'
20181 # CC pic flag -KPIC is the default.
20182 ;;
20183 *)
20184 ;;
20185 esac
20186 ;;
cristy0c60a692010-11-04 01:09:47 +000020187 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000020188 case $cc_basename in
20189 KCC*)
20190 # KAI C++ Compiler
20191 lt_prog_compiler_wl_CXX='--backend -Wl,'
20192 lt_prog_compiler_pic_CXX='-fPIC'
20193 ;;
20194 ecpc* )
20195 # old Intel C++ for x86_64 which still supported -KPIC.
20196 lt_prog_compiler_wl_CXX='-Wl,'
20197 lt_prog_compiler_pic_CXX='-KPIC'
20198 lt_prog_compiler_static_CXX='-static'
20199 ;;
20200 icpc* )
20201 # Intel C++, used to be incompatible with GCC.
20202 # ICC 10 doesn't accept -KPIC any more.
20203 lt_prog_compiler_wl_CXX='-Wl,'
20204 lt_prog_compiler_pic_CXX='-fPIC'
20205 lt_prog_compiler_static_CXX='-static'
20206 ;;
20207 pgCC* | pgcpp*)
20208 # Portland Group C++ compiler
20209 lt_prog_compiler_wl_CXX='-Wl,'
20210 lt_prog_compiler_pic_CXX='-fpic'
20211 lt_prog_compiler_static_CXX='-Bstatic'
20212 ;;
20213 cxx*)
20214 # Compaq C++
20215 # Make sure the PIC flag is empty. It appears that all Alpha
20216 # Linux and Compaq Tru64 Unix objects are PIC.
20217 lt_prog_compiler_pic_CXX=
20218 lt_prog_compiler_static_CXX='-non_shared'
20219 ;;
cristy0c60a692010-11-04 01:09:47 +000020220 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20221 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000020222 lt_prog_compiler_wl_CXX='-Wl,'
20223 lt_prog_compiler_pic_CXX='-qpic'
20224 lt_prog_compiler_static_CXX='-qstaticlink'
20225 ;;
20226 *)
20227 case `$CC -V 2>&1 | sed 5q` in
20228 *Sun\ C*)
20229 # Sun C++ 5.9
20230 lt_prog_compiler_pic_CXX='-KPIC'
20231 lt_prog_compiler_static_CXX='-Bstatic'
20232 lt_prog_compiler_wl_CXX='-Qoption ld '
20233 ;;
20234 esac
20235 ;;
20236 esac
20237 ;;
20238 lynxos*)
20239 ;;
20240 m88k*)
20241 ;;
20242 mvs*)
20243 case $cc_basename in
20244 cxx*)
20245 lt_prog_compiler_pic_CXX='-W c,exportall'
20246 ;;
20247 *)
20248 ;;
20249 esac
20250 ;;
20251 netbsd*)
20252 ;;
20253 *qnx* | *nto*)
20254 # QNX uses GNU C++, but need to define -shared option too, otherwise
20255 # it will coredump.
20256 lt_prog_compiler_pic_CXX='-fPIC -shared'
20257 ;;
20258 osf3* | osf4* | osf5*)
20259 case $cc_basename in
20260 KCC*)
20261 lt_prog_compiler_wl_CXX='--backend -Wl,'
20262 ;;
20263 RCC*)
20264 # Rational C++ 2.4.1
20265 lt_prog_compiler_pic_CXX='-pic'
20266 ;;
20267 cxx*)
20268 # Digital/Compaq C++
20269 lt_prog_compiler_wl_CXX='-Wl,'
20270 # Make sure the PIC flag is empty. It appears that all Alpha
20271 # Linux and Compaq Tru64 Unix objects are PIC.
20272 lt_prog_compiler_pic_CXX=
20273 lt_prog_compiler_static_CXX='-non_shared'
20274 ;;
20275 *)
20276 ;;
20277 esac
20278 ;;
20279 psos*)
20280 ;;
20281 solaris*)
20282 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000020283 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000020284 # Sun C++ 4.2, 5.x and Centerline C++
20285 lt_prog_compiler_pic_CXX='-KPIC'
20286 lt_prog_compiler_static_CXX='-Bstatic'
20287 lt_prog_compiler_wl_CXX='-Qoption ld '
20288 ;;
20289 gcx*)
20290 # Green Hills C++ Compiler
20291 lt_prog_compiler_pic_CXX='-PIC'
20292 ;;
20293 *)
20294 ;;
20295 esac
20296 ;;
20297 sunos4*)
20298 case $cc_basename in
20299 CC*)
20300 # Sun C++ 4.x
20301 lt_prog_compiler_pic_CXX='-pic'
20302 lt_prog_compiler_static_CXX='-Bstatic'
20303 ;;
20304 lcc*)
20305 # Lucid
20306 lt_prog_compiler_pic_CXX='-pic'
20307 ;;
20308 *)
20309 ;;
20310 esac
20311 ;;
20312 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20313 case $cc_basename in
20314 CC*)
20315 lt_prog_compiler_wl_CXX='-Wl,'
20316 lt_prog_compiler_pic_CXX='-KPIC'
20317 lt_prog_compiler_static_CXX='-Bstatic'
20318 ;;
20319 esac
20320 ;;
20321 tandem*)
20322 case $cc_basename in
20323 NCC*)
20324 # NonStop-UX NCC 3.20
20325 lt_prog_compiler_pic_CXX='-KPIC'
20326 ;;
20327 *)
20328 ;;
20329 esac
20330 ;;
20331 vxworks*)
20332 ;;
20333 *)
20334 lt_prog_compiler_can_build_shared_CXX=no
20335 ;;
20336 esac
20337 fi
20338
20339case $host_os in
20340 # For platforms which do not support PIC, -DPIC is meaningless:
20341 *djgpp*)
20342 lt_prog_compiler_pic_CXX=
20343 ;;
20344 *)
20345 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20346 ;;
20347esac
cristy73bd4a52010-10-05 11:24:23 +000020348
cristyda16f162011-02-19 23:52:17 +000020349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20350$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20351if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
20352 $as_echo_n "(cached) " >&6
20353else
20354 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
20355fi
20356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
20357$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
20358lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000020359
20360#
20361# Check to make sure the PIC flag actually works.
20362#
20363if test -n "$lt_prog_compiler_pic_CXX"; then
20364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20365$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020366if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020367 $as_echo_n "(cached) " >&6
20368else
20369 lt_cv_prog_compiler_pic_works_CXX=no
20370 ac_outfile=conftest.$ac_objext
20371 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20372 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20373 # Insert the option either (1) after the last *FLAGS variable, or
20374 # (2) before a word containing "conftest.", or (3) at the end.
20375 # Note that $ac_compile itself does not contain backslashes and begins
20376 # with a dollar sign (not a hyphen), so the echo should work correctly.
20377 # The option is referenced via a variable to avoid confusing sed.
20378 lt_compile=`echo "$ac_compile" | $SED \
20379 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20380 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20381 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000020382 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000020383 (eval "$lt_compile" 2>conftest.err)
20384 ac_status=$?
20385 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000020386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000020387 if (exit $ac_status) && test -s "$ac_outfile"; then
20388 # The compiler can only warn and ignore the option if not recognized
20389 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000020390 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000020391 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20392 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20393 lt_cv_prog_compiler_pic_works_CXX=yes
20394 fi
20395 fi
20396 $RM conftest*
20397
20398fi
20399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20400$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20401
20402if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20403 case $lt_prog_compiler_pic_CXX in
20404 "" | " "*) ;;
20405 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20406 esac
20407else
20408 lt_prog_compiler_pic_CXX=
20409 lt_prog_compiler_can_build_shared_CXX=no
20410fi
20411
20412fi
20413
20414
20415
cristyda16f162011-02-19 23:52:17 +000020416
20417
cristy73bd4a52010-10-05 11:24:23 +000020418#
20419# Check to make sure the static flag actually works.
20420#
20421wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20423$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020424if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020425 $as_echo_n "(cached) " >&6
20426else
20427 lt_cv_prog_compiler_static_works_CXX=no
20428 save_LDFLAGS="$LDFLAGS"
20429 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20430 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20431 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20432 # The linker can only warn and ignore the option if not recognized
20433 # So say no if there are warnings
20434 if test -s conftest.err; then
20435 # Append any errors to the config.log.
20436 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000020437 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000020438 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20439 if diff conftest.exp conftest.er2 >/dev/null; then
20440 lt_cv_prog_compiler_static_works_CXX=yes
20441 fi
20442 else
20443 lt_cv_prog_compiler_static_works_CXX=yes
20444 fi
20445 fi
20446 $RM -r conftest*
20447 LDFLAGS="$save_LDFLAGS"
20448
20449fi
20450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20451$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20452
20453if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20454 :
20455else
20456 lt_prog_compiler_static_CXX=
20457fi
20458
20459
20460
20461
20462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20463$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020464if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020465 $as_echo_n "(cached) " >&6
20466else
20467 lt_cv_prog_compiler_c_o_CXX=no
20468 $RM -r conftest 2>/dev/null
20469 mkdir conftest
20470 cd conftest
20471 mkdir out
20472 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20473
20474 lt_compiler_flag="-o out/conftest2.$ac_objext"
20475 # Insert the option either (1) after the last *FLAGS variable, or
20476 # (2) before a word containing "conftest.", or (3) at the end.
20477 # Note that $ac_compile itself does not contain backslashes and begins
20478 # with a dollar sign (not a hyphen), so the echo should work correctly.
20479 lt_compile=`echo "$ac_compile" | $SED \
20480 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20481 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20482 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000020483 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000020484 (eval "$lt_compile" 2>out/conftest.err)
20485 ac_status=$?
20486 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000020487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000020488 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20489 then
20490 # The compiler can only warn and ignore the option if not recognized
20491 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000020492 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000020493 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20494 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20495 lt_cv_prog_compiler_c_o_CXX=yes
20496 fi
20497 fi
20498 chmod u+w . 2>&5
20499 $RM conftest*
20500 # SGI C++ compiler will create directory out/ii_files/ for
20501 # template instantiation
20502 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20503 $RM out/* && rmdir out
20504 cd ..
20505 $RM -r conftest
20506 $RM conftest*
20507
20508fi
20509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20510$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20511
20512
20513
20514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20515$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020516if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020517 $as_echo_n "(cached) " >&6
20518else
20519 lt_cv_prog_compiler_c_o_CXX=no
20520 $RM -r conftest 2>/dev/null
20521 mkdir conftest
20522 cd conftest
20523 mkdir out
20524 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20525
20526 lt_compiler_flag="-o out/conftest2.$ac_objext"
20527 # Insert the option either (1) after the last *FLAGS variable, or
20528 # (2) before a word containing "conftest.", or (3) at the end.
20529 # Note that $ac_compile itself does not contain backslashes and begins
20530 # with a dollar sign (not a hyphen), so the echo should work correctly.
20531 lt_compile=`echo "$ac_compile" | $SED \
20532 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20533 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20534 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000020535 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000020536 (eval "$lt_compile" 2>out/conftest.err)
20537 ac_status=$?
20538 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000020539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000020540 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20541 then
20542 # The compiler can only warn and ignore the option if not recognized
20543 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000020544 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000020545 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20546 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20547 lt_cv_prog_compiler_c_o_CXX=yes
20548 fi
20549 fi
20550 chmod u+w . 2>&5
20551 $RM conftest*
20552 # SGI C++ compiler will create directory out/ii_files/ for
20553 # template instantiation
20554 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20555 $RM out/* && rmdir out
20556 cd ..
20557 $RM -r conftest
20558 $RM conftest*
20559
20560fi
20561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20562$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20563
20564
20565
20566
20567hard_links="nottested"
20568if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20569 # do not overwrite the value of need_locks provided by the user
20570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20571$as_echo_n "checking if we can lock with hard links... " >&6; }
20572 hard_links=yes
20573 $RM conftest*
20574 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20575 touch conftest.a
20576 ln conftest.a conftest.b 2>&5 || hard_links=no
20577 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20579$as_echo "$hard_links" >&6; }
20580 if test "$hard_links" = no; then
20581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20582$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20583 need_locks=warn
20584 fi
20585else
20586 need_locks=no
20587fi
20588
20589
20590
20591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20592$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20593
20594 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000020595 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000020596 case $host_os in
20597 aix[4-9]*)
20598 # If we're using GNU nm, then we don't want the "-C" option.
20599 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000020600 # Also, AIX nm treats weak defined symbols like other global defined
20601 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000020602 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000020603 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 +000020604 else
20605 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'
20606 fi
20607 ;;
20608 pw32*)
20609 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000020610 ;;
cristy73bd4a52010-10-05 11:24:23 +000020611 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000020612 case $cc_basename in
cristy99bd5232011-12-07 14:38:20 +000020613 cl*)
20614 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
20615 ;;
cristyda16f162011-02-19 23:52:17 +000020616 *)
20617 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'
20618 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
20619 ;;
20620 esac
20621 ;;
cristy73bd4a52010-10-05 11:24:23 +000020622 *)
20623 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000020624 ;;
cristy73bd4a52010-10-05 11:24:23 +000020625 esac
cristy73bd4a52010-10-05 11:24:23 +000020626
20627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20628$as_echo "$ld_shlibs_CXX" >&6; }
20629test "$ld_shlibs_CXX" = no && can_build_shared=no
20630
20631with_gnu_ld_CXX=$with_gnu_ld
20632
20633
20634
20635
20636
20637
20638#
20639# Do we need to explicitly link libc?
20640#
20641case "x$archive_cmds_need_lc_CXX" in
20642x|xyes)
20643 # Assume -lc should be added
20644 archive_cmds_need_lc_CXX=yes
20645
20646 if test "$enable_shared" = yes && test "$GCC" = yes; then
20647 case $archive_cmds_CXX in
20648 *'~'*)
20649 # FIXME: we may have to deal with multi-command sequences.
20650 ;;
20651 '$CC '*)
20652 # Test whether the compiler implicitly links with -lc since on some
20653 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20654 # to ld, don't add -lc before -lgcc.
20655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20656$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020657if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000020658 $as_echo_n "(cached) " >&6
20659else
20660 $RM conftest*
20661 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000020662
cristy0c60a692010-11-04 01:09:47 +000020663 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000020664 (eval $ac_compile) 2>&5
20665 ac_status=$?
20666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20667 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000020668 soname=conftest
20669 lib=conftest
20670 libobjs=conftest.$ac_objext
20671 deplibs=
20672 wl=$lt_prog_compiler_wl_CXX
20673 pic_flag=$lt_prog_compiler_pic_CXX
20674 compiler_flags=-v
20675 linker_flags=-v
20676 verstring=
20677 output_objdir=.
20678 libname=conftest
20679 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20680 allow_undefined_flag_CXX=
20681 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 +000020682 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20683 ac_status=$?
20684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20685 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000020686 then
20687 lt_cv_archive_cmds_need_lc_CXX=no
20688 else
20689 lt_cv_archive_cmds_need_lc_CXX=yes
20690 fi
20691 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20692 else
20693 cat conftest.err 1>&5
20694 fi
20695 $RM conftest*
20696
20697fi
20698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20699$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20700 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000020701 ;;
20702 esac
20703 fi
20704 ;;
20705esac
20706
20707
20708
20709
20710
20711
20712
20713
20714
20715
20716
20717
20718
20719
20720
20721
20722
20723
20724
20725
20726
20727
20728
20729
20730
20731
20732
20733
20734
20735
20736
20737
20738
20739
20740
20741
20742
20743
20744
20745
20746
20747
20748
20749
20750
20751
20752
20753
20754
20755
20756
20757
20758
20759
20760
20761
20762
20763
20764
20765
20766
20767
cristy73bd4a52010-10-05 11:24:23 +000020768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20769$as_echo_n "checking dynamic linker characteristics... " >&6; }
20770
20771library_names_spec=
20772libname_spec='lib$name'
20773soname_spec=
20774shrext_cmds=".so"
20775postinstall_cmds=
20776postuninstall_cmds=
20777finish_cmds=
20778finish_eval=
20779shlibpath_var=
20780shlibpath_overrides_runpath=unknown
20781version_type=none
20782dynamic_linker="$host_os ld.so"
20783sys_lib_dlsearch_path_spec="/lib /usr/lib"
20784need_lib_prefix=unknown
20785hardcode_into_libs=no
20786
20787# when you set need_version to no, make sure it does not cause -set_version
20788# flags to be left without arguments
20789need_version=unknown
20790
20791case $host_os in
20792aix3*)
cristy99bd5232011-12-07 14:38:20 +000020793 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020794 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20795 shlibpath_var=LIBPATH
20796
20797 # AIX 3 has no versioning support, so we append a major version to the name.
20798 soname_spec='${libname}${release}${shared_ext}$major'
20799 ;;
20800
20801aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000020802 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020803 need_lib_prefix=no
20804 need_version=no
20805 hardcode_into_libs=yes
20806 if test "$host_cpu" = ia64; then
20807 # AIX 5 supports IA64
20808 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20809 shlibpath_var=LD_LIBRARY_PATH
20810 else
20811 # With GCC up to 2.95.x, collect2 would create an import file
20812 # for dependence libraries. The import file would start with
20813 # the line `#! .'. This would cause the generated library to
20814 # depend on `.', always an invalid library. This was fixed in
20815 # development snapshots of GCC prior to 3.0.
20816 case $host_os in
20817 aix4 | aix4.[01] | aix4.[01].*)
20818 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20819 echo ' yes '
20820 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20821 :
20822 else
20823 can_build_shared=no
20824 fi
20825 ;;
20826 esac
20827 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20828 # soname into executable. Probably we can add versioning support to
20829 # collect2, so additional links can be useful in future.
20830 if test "$aix_use_runtimelinking" = yes; then
20831 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20832 # instead of lib<name>.a to let people know that these are not
20833 # typical AIX shared libraries.
20834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20835 else
20836 # We preserve .a as extension for shared libraries through AIX4.2
20837 # and later when we are not doing run time linking.
20838 library_names_spec='${libname}${release}.a $libname.a'
20839 soname_spec='${libname}${release}${shared_ext}$major'
20840 fi
20841 shlibpath_var=LIBPATH
20842 fi
20843 ;;
20844
20845amigaos*)
20846 case $host_cpu in
20847 powerpc)
20848 # Since July 2007 AmigaOS4 officially supports .so libraries.
20849 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20851 ;;
20852 m68k)
20853 library_names_spec='$libname.ixlibrary $libname.a'
20854 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000020855 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 +000020856 ;;
20857 esac
20858 ;;
20859
20860beos*)
20861 library_names_spec='${libname}${shared_ext}'
20862 dynamic_linker="$host_os ld.so"
20863 shlibpath_var=LIBRARY_PATH
20864 ;;
20865
20866bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000020867 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020868 need_version=no
20869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20870 soname_spec='${libname}${release}${shared_ext}$major'
20871 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20872 shlibpath_var=LD_LIBRARY_PATH
20873 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20874 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20875 # the default ld.so.conf also contains /usr/contrib/lib and
20876 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20877 # libtool to hard-code these into programs
20878 ;;
20879
20880cygwin* | mingw* | pw32* | cegcc*)
20881 version_type=windows
20882 shrext_cmds=".dll"
20883 need_version=no
20884 need_lib_prefix=no
20885
cristyda16f162011-02-19 23:52:17 +000020886 case $GCC,$cc_basename in
20887 yes,*)
20888 # gcc
cristy73bd4a52010-10-05 11:24:23 +000020889 library_names_spec='$libname.dll.a'
20890 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20891 postinstall_cmds='base_file=`basename \${file}`~
20892 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20893 dldir=$destdir/`dirname \$dlpath`~
20894 test -d \$dldir || mkdir -p \$dldir~
20895 $install_prog $dir/$dlname \$dldir/$dlname~
20896 chmod a+x \$dldir/$dlname~
20897 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20898 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20899 fi'
20900 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20901 dlpath=$dir/\$dldll~
20902 $RM \$dlpath'
20903 shlibpath_overrides_runpath=yes
20904
20905 case $host_os in
20906 cygwin*)
20907 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20908 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000020909
cristy73bd4a52010-10-05 11:24:23 +000020910 ;;
20911 mingw* | cegcc*)
20912 # MinGW DLLs use traditional 'lib' prefix
20913 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000020914 ;;
20915 pw32*)
20916 # pw32 DLLs use 'pw' prefix rather than 'lib'
20917 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20918 ;;
20919 esac
cristyda16f162011-02-19 23:52:17 +000020920 dynamic_linker='Win32 ld.exe'
20921 ;;
20922
20923 *,cl*)
20924 # Native MSVC
20925 libname_spec='$name'
20926 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20927 library_names_spec='${libname}.dll.lib'
20928
20929 case $build_os in
20930 mingw*)
20931 sys_lib_search_path_spec=
20932 lt_save_ifs=$IFS
20933 IFS=';'
20934 for lt_path in $LIB
20935 do
20936 IFS=$lt_save_ifs
20937 # Let DOS variable expansion print the short 8.3 style file name.
20938 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
20939 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
20940 done
20941 IFS=$lt_save_ifs
20942 # Convert to MSYS style.
20943 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
20944 ;;
20945 cygwin*)
20946 # Convert to unix form, then to dos form, then back to unix form
20947 # but this time dos style (no spaces!) so that the unix form looks
20948 # like /cygdrive/c/PROGRA~1:/cygdr...
20949 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
20950 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
20951 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20952 ;;
20953 *)
20954 sys_lib_search_path_spec="$LIB"
20955 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
20956 # It is most probably a Windows format PATH.
20957 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20958 else
20959 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20960 fi
20961 # FIXME: find the short name or the path components, as spaces are
20962 # common. (e.g. "Program Files" -> "PROGRA~1")
20963 ;;
20964 esac
20965
20966 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20967 postinstall_cmds='base_file=`basename \${file}`~
20968 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20969 dldir=$destdir/`dirname \$dlpath`~
20970 test -d \$dldir || mkdir -p \$dldir~
20971 $install_prog $dir/$dlname \$dldir/$dlname'
20972 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20973 dlpath=$dir/\$dldll~
20974 $RM \$dlpath'
20975 shlibpath_overrides_runpath=yes
20976 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000020977 ;;
20978
20979 *)
cristyda16f162011-02-19 23:52:17 +000020980 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000020981 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000020982 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000020983 ;;
20984 esac
cristy73bd4a52010-10-05 11:24:23 +000020985 # FIXME: first we should search . and the directory the executable is in
20986 shlibpath_var=PATH
20987 ;;
20988
20989darwin* | rhapsody*)
20990 dynamic_linker="$host_os dyld"
20991 version_type=darwin
20992 need_lib_prefix=no
20993 need_version=no
20994 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20995 soname_spec='${libname}${release}${major}$shared_ext'
20996 shlibpath_overrides_runpath=yes
20997 shlibpath_var=DYLD_LIBRARY_PATH
20998 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20999
21000 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21001 ;;
21002
21003dgux*)
cristy99bd5232011-12-07 14:38:20 +000021004 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021005 need_lib_prefix=no
21006 need_version=no
21007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21008 soname_spec='${libname}${release}${shared_ext}$major'
21009 shlibpath_var=LD_LIBRARY_PATH
21010 ;;
21011
cristy73bd4a52010-10-05 11:24:23 +000021012freebsd* | dragonfly*)
21013 # DragonFly does not have aout. When/if they implement a new
21014 # versioning mechanism, adjust this.
21015 if test -x /usr/bin/objformat; then
21016 objformat=`/usr/bin/objformat`
21017 else
21018 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000021019 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000021020 *) objformat=elf ;;
21021 esac
21022 fi
21023 version_type=freebsd-$objformat
21024 case $version_type in
21025 freebsd-elf*)
21026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21027 need_version=no
21028 need_lib_prefix=no
21029 ;;
21030 freebsd-*)
21031 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21032 need_version=yes
21033 ;;
21034 esac
21035 shlibpath_var=LD_LIBRARY_PATH
21036 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000021037 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000021038 shlibpath_overrides_runpath=yes
21039 ;;
21040 freebsd3.[01]* | freebsdelf3.[01]*)
21041 shlibpath_overrides_runpath=yes
21042 hardcode_into_libs=yes
21043 ;;
21044 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21045 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21046 shlibpath_overrides_runpath=no
21047 hardcode_into_libs=yes
21048 ;;
21049 *) # from 4.6 on, and DragonFly
21050 shlibpath_overrides_runpath=yes
21051 hardcode_into_libs=yes
21052 ;;
21053 esac
21054 ;;
21055
21056gnu*)
cristy99bd5232011-12-07 14:38:20 +000021057 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021058 need_lib_prefix=no
21059 need_version=no
21060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21061 soname_spec='${libname}${release}${shared_ext}$major'
21062 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000021063 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000021064 hardcode_into_libs=yes
21065 ;;
21066
cristy0c60a692010-11-04 01:09:47 +000021067haiku*)
cristy99bd5232011-12-07 14:38:20 +000021068 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000021069 need_lib_prefix=no
21070 need_version=no
21071 dynamic_linker="$host_os runtime_loader"
21072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21073 soname_spec='${libname}${release}${shared_ext}$major'
21074 shlibpath_var=LIBRARY_PATH
21075 shlibpath_overrides_runpath=yes
21076 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
21077 hardcode_into_libs=yes
21078 ;;
21079
cristy73bd4a52010-10-05 11:24:23 +000021080hpux9* | hpux10* | hpux11*)
21081 # Give a soname corresponding to the major version so that dld.sl refuses to
21082 # link against other versions.
21083 version_type=sunos
21084 need_lib_prefix=no
21085 need_version=no
21086 case $host_cpu in
21087 ia64*)
21088 shrext_cmds='.so'
21089 hardcode_into_libs=yes
21090 dynamic_linker="$host_os dld.so"
21091 shlibpath_var=LD_LIBRARY_PATH
21092 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21094 soname_spec='${libname}${release}${shared_ext}$major'
21095 if test "X$HPUX_IA64_MODE" = X32; then
21096 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21097 else
21098 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21099 fi
21100 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21101 ;;
21102 hppa*64*)
21103 shrext_cmds='.sl'
21104 hardcode_into_libs=yes
21105 dynamic_linker="$host_os dld.sl"
21106 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21107 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21109 soname_spec='${libname}${release}${shared_ext}$major'
21110 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21111 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21112 ;;
21113 *)
21114 shrext_cmds='.sl'
21115 dynamic_linker="$host_os dld.sl"
21116 shlibpath_var=SHLIB_PATH
21117 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21119 soname_spec='${libname}${release}${shared_ext}$major'
21120 ;;
21121 esac
cristy0c60a692010-11-04 01:09:47 +000021122 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000021123 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000021124 # or fails outright, so override atomically:
21125 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000021126 ;;
21127
21128interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000021129 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021130 need_lib_prefix=no
21131 need_version=no
21132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21133 soname_spec='${libname}${release}${shared_ext}$major'
21134 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21135 shlibpath_var=LD_LIBRARY_PATH
21136 shlibpath_overrides_runpath=no
21137 hardcode_into_libs=yes
21138 ;;
21139
21140irix5* | irix6* | nonstopux*)
21141 case $host_os in
21142 nonstopux*) version_type=nonstopux ;;
21143 *)
21144 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000021145 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021146 else
21147 version_type=irix
21148 fi ;;
21149 esac
21150 need_lib_prefix=no
21151 need_version=no
21152 soname_spec='${libname}${release}${shared_ext}$major'
21153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21154 case $host_os in
21155 irix5* | nonstopux*)
21156 libsuff= shlibsuff=
21157 ;;
21158 *)
21159 case $LD in # libtool.m4 will add one of these switches to LD
21160 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21161 libsuff= shlibsuff= libmagic=32-bit;;
21162 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21163 libsuff=32 shlibsuff=N32 libmagic=N32;;
21164 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21165 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21166 *) libsuff= shlibsuff= libmagic=never-match;;
21167 esac
21168 ;;
21169 esac
21170 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21171 shlibpath_overrides_runpath=no
21172 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21173 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21174 hardcode_into_libs=yes
21175 ;;
21176
21177# No shared lib support for Linux oldld, aout, or coff.
21178linux*oldld* | linux*aout* | linux*coff*)
21179 dynamic_linker=no
21180 ;;
21181
cristy99bd5232011-12-07 14:38:20 +000021182# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000021183linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000021184 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021185 need_lib_prefix=no
21186 need_version=no
21187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21188 soname_spec='${libname}${release}${shared_ext}$major'
21189 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21190 shlibpath_var=LD_LIBRARY_PATH
21191 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000021192
cristy73bd4a52010-10-05 11:24:23 +000021193 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000021194 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000021195 $as_echo_n "(cached) " >&6
21196else
21197 lt_cv_shlibpath_overrides_runpath=no
21198 save_LDFLAGS=$LDFLAGS
21199 save_libdir=$libdir
21200 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21201 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000021203/* end confdefs.h. */
21204
21205int
21206main ()
21207{
21208
21209 ;
21210 return 0;
21211}
21212_ACEOF
21213if ac_fn_cxx_try_link "$LINENO"; then :
21214 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000021215 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000021216fi
21217fi
21218rm -f core conftest.err conftest.$ac_objext \
21219 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000021220 LDFLAGS=$save_LDFLAGS
21221 libdir=$save_libdir
21222
21223fi
21224
21225 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000021226
21227 # This implies no fast_install, which is unacceptable.
21228 # Some rework will be needed to allow for fast_install
21229 # before this can be enabled.
21230 hardcode_into_libs=yes
21231
21232 # Add ABI-specific directories to the system library path.
21233 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
21234
21235 # Append ld.so.conf contents to the search path
21236 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000021237 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 +000021238 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000021239
cristy73bd4a52010-10-05 11:24:23 +000021240 fi
21241
21242 # We used to test for /lib/ld.so.1 and disable shared libraries on
21243 # powerpc, because MkLinux only supported shared libraries with the
21244 # GNU dynamic linker. Since this was broken with cross compilers,
21245 # most powerpc-linux boxes support dynamic linking these days and
21246 # people can always --disable-shared, the test was removed, and we
21247 # assume the GNU/Linux dynamic linker is in use.
21248 dynamic_linker='GNU/Linux ld.so'
21249 ;;
21250
21251netbsd*)
21252 version_type=sunos
21253 need_lib_prefix=no
21254 need_version=no
21255 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21257 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21258 dynamic_linker='NetBSD (a.out) ld.so'
21259 else
21260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21261 soname_spec='${libname}${release}${shared_ext}$major'
21262 dynamic_linker='NetBSD ld.elf_so'
21263 fi
21264 shlibpath_var=LD_LIBRARY_PATH
21265 shlibpath_overrides_runpath=yes
21266 hardcode_into_libs=yes
21267 ;;
21268
21269newsos6)
cristy99bd5232011-12-07 14:38:20 +000021270 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21272 shlibpath_var=LD_LIBRARY_PATH
21273 shlibpath_overrides_runpath=yes
21274 ;;
21275
21276*nto* | *qnx*)
21277 version_type=qnx
21278 need_lib_prefix=no
21279 need_version=no
21280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21281 soname_spec='${libname}${release}${shared_ext}$major'
21282 shlibpath_var=LD_LIBRARY_PATH
21283 shlibpath_overrides_runpath=no
21284 hardcode_into_libs=yes
21285 dynamic_linker='ldqnx.so'
21286 ;;
21287
21288openbsd*)
21289 version_type=sunos
21290 sys_lib_dlsearch_path_spec="/usr/lib"
21291 need_lib_prefix=no
21292 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21293 case $host_os in
21294 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21295 *) need_version=no ;;
21296 esac
21297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21298 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21299 shlibpath_var=LD_LIBRARY_PATH
21300 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21301 case $host_os in
21302 openbsd2.[89] | openbsd2.[89].*)
21303 shlibpath_overrides_runpath=no
21304 ;;
21305 *)
21306 shlibpath_overrides_runpath=yes
21307 ;;
21308 esac
21309 else
21310 shlibpath_overrides_runpath=yes
21311 fi
21312 ;;
21313
21314os2*)
21315 libname_spec='$name'
21316 shrext_cmds=".dll"
21317 need_lib_prefix=no
21318 library_names_spec='$libname${shared_ext} $libname.a'
21319 dynamic_linker='OS/2 ld.exe'
21320 shlibpath_var=LIBPATH
21321 ;;
21322
21323osf3* | osf4* | osf5*)
21324 version_type=osf
21325 need_lib_prefix=no
21326 need_version=no
21327 soname_spec='${libname}${release}${shared_ext}$major'
21328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21329 shlibpath_var=LD_LIBRARY_PATH
21330 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21331 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21332 ;;
21333
21334rdos*)
21335 dynamic_linker=no
21336 ;;
21337
21338solaris*)
cristy99bd5232011-12-07 14:38:20 +000021339 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021340 need_lib_prefix=no
21341 need_version=no
21342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21343 soname_spec='${libname}${release}${shared_ext}$major'
21344 shlibpath_var=LD_LIBRARY_PATH
21345 shlibpath_overrides_runpath=yes
21346 hardcode_into_libs=yes
21347 # ldd complains unless libraries are executable
21348 postinstall_cmds='chmod +x $lib'
21349 ;;
21350
21351sunos4*)
21352 version_type=sunos
21353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21354 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21355 shlibpath_var=LD_LIBRARY_PATH
21356 shlibpath_overrides_runpath=yes
21357 if test "$with_gnu_ld" = yes; then
21358 need_lib_prefix=no
21359 fi
21360 need_version=yes
21361 ;;
21362
21363sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000021364 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21366 soname_spec='${libname}${release}${shared_ext}$major'
21367 shlibpath_var=LD_LIBRARY_PATH
21368 case $host_vendor in
21369 sni)
21370 shlibpath_overrides_runpath=no
21371 need_lib_prefix=no
21372 runpath_var=LD_RUN_PATH
21373 ;;
21374 siemens)
21375 need_lib_prefix=no
21376 ;;
21377 motorola)
21378 need_lib_prefix=no
21379 need_version=no
21380 shlibpath_overrides_runpath=no
21381 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21382 ;;
21383 esac
21384 ;;
21385
21386sysv4*MP*)
21387 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000021388 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021389 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21390 soname_spec='$libname${shared_ext}.$major'
21391 shlibpath_var=LD_LIBRARY_PATH
21392 fi
21393 ;;
21394
21395sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21396 version_type=freebsd-elf
21397 need_lib_prefix=no
21398 need_version=no
21399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21400 soname_spec='${libname}${release}${shared_ext}$major'
21401 shlibpath_var=LD_LIBRARY_PATH
21402 shlibpath_overrides_runpath=yes
21403 hardcode_into_libs=yes
21404 if test "$with_gnu_ld" = yes; then
21405 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21406 else
21407 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21408 case $host_os in
21409 sco3.2v5*)
21410 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21411 ;;
21412 esac
21413 fi
21414 sys_lib_dlsearch_path_spec='/usr/lib'
21415 ;;
21416
21417tpf*)
21418 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000021419 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021420 need_lib_prefix=no
21421 need_version=no
21422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21423 shlibpath_var=LD_LIBRARY_PATH
21424 shlibpath_overrides_runpath=no
21425 hardcode_into_libs=yes
21426 ;;
21427
21428uts4*)
cristy99bd5232011-12-07 14:38:20 +000021429 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21431 soname_spec='${libname}${release}${shared_ext}$major'
21432 shlibpath_var=LD_LIBRARY_PATH
21433 ;;
21434
21435*)
21436 dynamic_linker=no
21437 ;;
21438esac
21439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21440$as_echo "$dynamic_linker" >&6; }
21441test "$dynamic_linker" = no && can_build_shared=no
21442
21443variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21444if test "$GCC" = yes; then
21445 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21446fi
21447
21448if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21449 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21450fi
21451if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21452 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21453fi
21454
21455
21456
21457
21458
21459
21460
21461
21462
21463
21464
21465
21466
21467
21468
21469
21470
21471
21472
21473
21474
21475
21476
21477
21478
21479
21480
21481
21482
21483
21484
21485
21486
21487
21488
21489
cristy0c60a692010-11-04 01:09:47 +000021490
21491
cristy73bd4a52010-10-05 11:24:23 +000021492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21493$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21494hardcode_action_CXX=
21495if test -n "$hardcode_libdir_flag_spec_CXX" ||
21496 test -n "$runpath_var_CXX" ||
21497 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21498
21499 # We can hardcode non-existent directories.
21500 if test "$hardcode_direct_CXX" != no &&
21501 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21502 # have to relink, otherwise we might link with an installed library
21503 # when we should be linking with a yet-to-be-installed one
21504 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21505 test "$hardcode_minus_L_CXX" != no; then
21506 # Linking always hardcodes the temporary library directory.
21507 hardcode_action_CXX=relink
21508 else
21509 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21510 hardcode_action_CXX=immediate
21511 fi
21512else
21513 # We cannot hardcode anything, or else we can only hardcode existing
21514 # directories.
21515 hardcode_action_CXX=unsupported
21516fi
21517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21518$as_echo "$hardcode_action_CXX" >&6; }
21519
21520if test "$hardcode_action_CXX" = relink ||
21521 test "$inherit_rpath_CXX" = yes; then
21522 # Fast installation is not supported
21523 enable_fast_install=no
21524elif test "$shlibpath_overrides_runpath" = yes ||
21525 test "$enable_shared" = no; then
21526 # Fast installation is not necessary
21527 enable_fast_install=needless
21528fi
21529
21530
21531
21532
21533
21534
21535
21536 fi # test -n "$compiler"
21537
21538 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000021539 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000021540 LDCXX=$LD
21541 LD=$lt_save_LD
21542 GCC=$lt_save_GCC
21543 with_gnu_ld=$lt_save_with_gnu_ld
21544 lt_cv_path_LDCXX=$lt_cv_path_LD
21545 lt_cv_path_LD=$lt_save_path_LD
21546 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21547 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21548fi # test "$_lt_caught_CXX_error" != yes
21549
21550ac_ext=c
21551ac_cpp='$CPP $CPPFLAGS'
21552ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21553ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21554ac_compiler_gnu=$ac_cv_c_compiler_gnu
21555
21556
21557
21558
21559
21560
21561
21562
21563
21564
21565
21566
21567
cristy99bd5232011-12-07 14:38:20 +000021568
21569
cristy73bd4a52010-10-05 11:24:23 +000021570 ac_config_commands="$ac_config_commands libtool"
21571
21572
21573
21574
21575# Only expand once:
21576
21577
21578
cristy3ed852e2009-09-05 21:47:34 +000021579
21580
cristy3ed852e2009-09-05 21:47:34 +000021581# Check to see if building shared libraries
21582libtool_build_shared_libs='no'
21583if test "$enable_shared" = 'yes'; then
21584 libtool_build_shared_libs='yes'
21585fi
21586
21587# Check to see if building static libraries
21588libtool_build_static_libs='no'
21589if test "$enable_static" = 'yes'; then
21590 libtool_build_static_libs='yes'
21591fi
21592
cristy73bd4a52010-10-05 11:24:23 +000021593 if test "${libtool_build_shared_libs}" = 'yes'; then
21594 WITH_SHARED_LIBS_TRUE=
21595 WITH_SHARED_LIBS_FALSE='#'
21596else
21597 WITH_SHARED_LIBS_TRUE='#'
21598 WITH_SHARED_LIBS_FALSE=
21599fi
21600
cristy3ed852e2009-09-05 21:47:34 +000021601#
21602# Enable support for building loadable modules
21603#
cristyaf4cbf32012-10-16 23:47:41 +000021604build_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000021605
21606# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000021607if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021608 withval=$with_modules; with_modules=$withval
21609else
cristy5a1cefd2010-01-06 20:42:35 +000021610 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000021611fi
21612
21613
21614# Only allow building loadable modules if we are building shared libraries
21615if test "$with_modules" != 'no' ; then
21616 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000021617 { $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 +000021618$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
cristyc6722092012-10-14 00:19:31 +000021619 build_modules='no'
21620 else
21621 build_modules='yes'
21622 fi
cristy3ed852e2009-09-05 21:47:34 +000021623fi
cristyc6722092012-10-14 00:19:31 +000021624if test "$build_modules" != 'no' ; then
cristy3ed852e2009-09-05 21:47:34 +000021625
cristy8b350f62009-11-15 23:12:43 +000021626$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021627
cristyfa161182012-12-19 15:45:28 +000021628 MAGICK_FEATURES="$MAGICK_FEATURES Modules"
cristy3ed852e2009-09-05 21:47:34 +000021629fi
cristyc6722092012-10-14 00:19:31 +000021630 if test "$build_modules" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +000021631 WITH_MODULES_TRUE=
21632 WITH_MODULES_FALSE='#'
21633else
21634 WITH_MODULES_TRUE='#'
21635 WITH_MODULES_FALSE=
21636fi
21637
cristy3ed852e2009-09-05 21:47:34 +000021638
cristy3ed852e2009-09-05 21:47:34 +000021639# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000021640# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000021641# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000021642if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021643 enableval=$enable_delegate_build; enable_delegate_build=$enableval
21644else
21645 enable_delegate_build='no'
21646fi
21647
21648
21649# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000021650if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021651 enableval=$enable_deprecated; enable_deprecated=$enableval
21652else
21653 enable_deprecated='no'
21654fi
21655
21656
21657if test "$enable_deprecated" = 'yes'; then
21658
cristy8b350f62009-11-15 23:12:43 +000021659$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021660
21661else
21662 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
21663fi
21664
21665# Build a version of ImageMagick which operates uninstalled.
21666# Used to build distributions located via MAGICK_HOME / executable path
21667# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000021668if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021669 enableval=$enable_installed; enable_installed=$enableval
21670else
21671 enable_installed='yes'
21672fi
21673
21674
21675if test "$enable_installed" = 'yes'; then
21676
cristy8b350f62009-11-15 23:12:43 +000021677$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021678
21679else
21680 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
21681fi
21682
21683# Permit enciphering and deciphering image pixels.
21684# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000021685if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021686 enableval=$enable_cipher; enable_cipher=$enableval
21687else
21688 enable_cipher='yes'
21689fi
21690
21691
21692if test "$enable_cipher" = 'yes'; then
21693
cristy8b350f62009-11-15 23:12:43 +000021694$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021695
cristy0f6fc2d2015-05-30 00:49:11 +000021696 MAGICK_FEATURES="Cipher $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021697fi
21698
cristy6e3607c2011-09-13 13:59:17 +000021699# Build a zero-configuration version of ImageMagick.
21700# Check whether --enable-zero-configuration was given.
21701if test "${enable_zero_configuration+set}" = set; then :
21702 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
cristy3ed852e2009-09-05 21:47:34 +000021703else
cristy6e3607c2011-09-13 13:59:17 +000021704 enable_zero_configuration='no'
cristy3ed852e2009-09-05 21:47:34 +000021705fi
21706
21707
cristy6e3607c2011-09-13 13:59:17 +000021708if test "$enable_zero_configuration" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021709
cristy6e3607c2011-09-13 13:59:17 +000021710$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021711
cristy0f6fc2d2015-05-30 00:49:11 +000021712 MAGICK_FEATURES="Zero-configuration $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021713fi
21714
21715# Build a high dynamic range version of ImageMagick.
21716# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000021717if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021718 enableval=$enable_hdri; enable_hdri=$enableval
21719else
cristy191c0b72012-08-12 16:29:52 +000021720 enable_hdri='yes'
cristy3ed852e2009-09-05 21:47:34 +000021721fi
21722
21723
21724MAGICK_HDRI=""
21725if test "$enable_hdri" = 'yes'; then
21726 MAGICK_HDRI="HDRI"
cristye52f12f2012-12-31 15:32:36 +000021727 magick_hdri_enable='1';
cristyfd9dcd42010-08-08 18:07:02 +000021728 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristye52f12f2012-12-31 15:32:36 +000021729else
21730 magick_hdri_enable='0'
cristy3ed852e2009-09-05 21:47:34 +000021731fi
21732
cristye52f12f2012-12-31 15:32:36 +000021733cat >>confdefs.h <<_ACEOF
21734#define HDRI_ENABLE_OBSOLETE_IN_H $magick_hdri_enable
21735_ACEOF
21736
21737MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
21738CFLAGS="$CFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
cristy72062382012-12-31 16:49:52 +000021739CPPFLAGS="$CPPFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
cristye52f12f2012-12-31 15:32:36 +000021740
cristy3ed852e2009-09-05 21:47:34 +000021741# Build a version of ImageMagick with assert statements.
21742# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000021743if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021744 enableval=$enable_assert; enable_assert=$enableval
21745else
21746 enable_assert='yes'
21747fi
21748
21749
21750if test "$enable_assert" = 'no'; then
21751
cristy8b350f62009-11-15 23:12:43 +000021752$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021753
21754fi
21755
cristya448bd22011-10-14 12:38:13 +000021756# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
cristy73bd4a52010-10-05 11:24:23 +000021757
21758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
21759$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
21760 # Check whether --enable-maintainer-mode was given.
21761if test "${enable_maintainer_mode+set}" = set; then :
21762 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
21763else
21764 USE_MAINTAINER_MODE=no
21765fi
21766
21767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
21768$as_echo "$USE_MAINTAINER_MODE" >&6; }
21769 if test $USE_MAINTAINER_MODE = yes; then
21770 MAINTAINER_MODE_TRUE=
21771 MAINTAINER_MODE_FALSE='#'
21772else
21773 MAINTAINER_MODE_TRUE='#'
21774 MAINTAINER_MODE_FALSE=
21775fi
21776
21777 MAINT=$MAINTAINER_MODE_TRUE
21778
21779
cristy3ed852e2009-09-05 21:47:34 +000021780
cristy944e51f2013-04-16 18:45:02 +000021781# Enable hugepages support
21782# Check whether --enable-hugepages was given.
21783if test "${enable_hugepages+set}" = set; then :
21784 enableval=$enable_hugepages; enable_hugepages=$enableval
21785else
21786 enable_hugepages='no'
21787fi
21788
21789
cristy3ed852e2009-09-05 21:47:34 +000021790# Enable ccmalloc memory debugging support
21791# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000021792if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021793 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
21794else
21795 enable_ccmalloc='no'
21796fi
21797
21798
21799# Enable Electric Fence memory debugging support
21800# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000021801if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021802 enableval=$enable_efence; enable_efence=$enableval
21803else
21804 enable_efence='no'
21805fi
21806
21807
21808# Enable prof-based profiling support
21809# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000021810if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021811 enableval=$enable_prof; enable_prof=$enableval
21812else
21813 enable_prof='no'
21814fi
21815
21816
21817# Enable gprof-based profiling support
21818# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000021819if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021820 enableval=$enable_gprof; enable_gprof=$enableval
21821else
21822 enable_gprof='no'
21823fi
21824
21825
21826# Enable gcov-based profiling support
21827# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000021828if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021829 enableval=$enable_gcov; enable_gcov=$enableval
21830else
21831 enable_gcov='no'
21832fi
21833
21834
21835enable_profiling='no'
21836if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21837 enable_profiling='yes'
21838 if test "$libtool_build_shared_libs" = 'yes'; then
21839 echo "Warning: Can not profile code using shared libraries"
21840 fi
21841fi
21842
21843# Magick API method prefix
21844
21845# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000021846if test "${with_method_prefix+set}" = set; then :
cristyfc3d0222012-02-07 15:05:57 +000021847 withval=$with_method_prefix; with_method_prefix=$withval
cristy3ed852e2009-09-05 21:47:34 +000021848else
cristyfc3d0222012-02-07 15:05:57 +000021849 with_method_prefix='no'
cristy3ed852e2009-09-05 21:47:34 +000021850fi
21851
21852
cristyfc3d0222012-02-07 15:05:57 +000021853if test "$with_method_prefix" != 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000021854
21855cat >>confdefs.h <<_ACEOF
21856#define NAMESPACE_PREFIX $with_method_prefix
21857_ACEOF
21858
cristyfc3d0222012-02-07 15:05:57 +000021859 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-method-prefix "
cristy3ed852e2009-09-05 21:47:34 +000021860fi
21861
cristy71d8c202012-03-20 17:05:01 +000021862# Enable legacy support (default no)
21863# Check whether --enable-legacy-support was given.
21864if test "${enable_legacy_support+set}" = set; then :
21865 enableval=$enable_legacy_support; with_legacy_support=$enableval
21866else
21867 with_legacy_support='no'
21868fi
21869
21870 if test "$with_legacy_support" != 'no'; then
21871 LEGACY_SUPPORT_TRUE=
21872 LEGACY_SUPPORT_FALSE='#'
21873else
21874 LEGACY_SUPPORT_TRUE='#'
21875 LEGACY_SUPPORT_FALSE=
21876fi
21877
21878
cristy3ed852e2009-09-05 21:47:34 +000021879# Number of bits in a Quantum
21880
21881# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000021882if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021883 withval=$with_quantum_depth; with_quantum_depth=$withval
21884else
21885 with_quantum_depth=16
21886fi
21887
21888
21889if test "$with_quantum_depth" != '8'; then
21890 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21891fi
21892
21893case "${with_quantum_depth}" in
21894 8 ) ;;
21895 16 ) ;;
21896 32 ) ;;
21897 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000021898 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021899esac
21900QUANTUM_DEPTH="$with_quantum_depth"
21901
21902cat >>confdefs.h <<_ACEOF
cristye52f12f2012-12-31 15:32:36 +000021903#define QUANTUM_DEPTH_OBSOLETE_IN_H $QUANTUM_DEPTH
cristy3ed852e2009-09-05 21:47:34 +000021904_ACEOF
21905
cristya371edf2013-02-06 13:42:17 +000021906MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristye52f12f2012-12-31 15:32:36 +000021907CFLAGS="$CFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristy72062382012-12-31 16:49:52 +000021908CPPFLAGS="$CPPFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristy3ed852e2009-09-05 21:47:34 +000021909
cristy01ff9f32012-12-01 18:15:29 +000021910# define a lib suffix for abi purpose
cristy7a26abd2012-12-03 00:18:59 +000021911MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}"
cristye386d192012-12-01 21:05:20 +000021912if test "$enable_hdri" = 'yes'; then
cristy7a26abd2012-12-03 00:18:59 +000021913 MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}${MAGICK_HDRI}"
cristye386d192012-12-01 21:05:20 +000021914fi
cristy01ff9f32012-12-01 18:15:29 +000021915
21916
cristy3ed852e2009-09-05 21:47:34 +000021917# Set pixel cache threshold
21918
21919# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000021920if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021921 withval=$with_cache; with_cache=$withval
21922else
21923 with_cache=''
21924fi
21925
21926
21927if test "$with_cache" != ''; then
21928
21929cat >>confdefs.h <<_ACEOF
21930#define PixelCacheThreshold $with_cache
21931_ACEOF
21932
21933 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21934fi
21935
21936# Disable/Enable support for full delegate paths
21937
21938# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000021939if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021940 withval=$with_frozenpaths; with_frozenpaths=$withval
21941else
21942 with_frozenpaths='no'
21943fi
21944
21945
21946# Enable build/install of Magick++
21947
21948# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000021949if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021950 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21951else
21952 with_magick_plus_plus='yes'
21953fi
21954
21955
cristy3a75f062012-09-08 23:29:40 +000021956# Encode the this name into the shared library.
21957
21958# Check whether --with-package-release-name was given.
21959if test "${with_package_release_name+set}" = set; then :
21960 withval=$with_package_release_name; MAGICK_LT_RELEASE_OPTS="-release $withval"
21961fi
21962
21963
21964
cristy3ed852e2009-09-05 21:47:34 +000021965# Disable build/install of PerlMagick.
21966
21967# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000021968if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021969 withval=$with_perl; with_perl=$withval
21970else
cristyb5f4e2f2010-04-25 00:49:11 +000021971 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000021972fi
21973
21974
21975# Options to pass when configuring PerlMagick
21976
21977# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000021978if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000021979 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000021980fi
21981
21982
cristy3ed852e2009-09-05 21:47:34 +000021983
cristy3b0097d2014-11-04 15:34:47 +000021984# Enable jemalloc, object-caching memory allocation library.
21985
21986# Check whether --with-jemalloc was given.
21987if test "${with_jemalloc+set}" = set; then :
21988 withval=$with_jemalloc; with_jemalloc=$withval
21989else
21990 with_jemalloc='no'
21991fi
21992
21993if test "$with_jemalloc" != 'yes' ; then
21994 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jemalloc=$with_jemalloc "
21995fi
21996
cristy3ed852e2009-09-05 21:47:34 +000021997# Enable umem, object-caching memory allocation library.
21998
21999# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000022000if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022001 withval=$with_umem; with_umem=$withval
22002else
22003 with_umem='no'
22004fi
22005
22006if test "$with_umem" != 'yes' ; then
22007 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
22008fi
22009
22010#
22011# Specify path to shared libstdc++ if not in normal location
22012#
22013
22014# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000022015if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022016 withval=$with_libstdc; with_libstdc=$withval
22017else
22018 with_libstdc=''
22019fi
22020
22021
22022if test "$with_libstdc" != ''; then
22023 if test -d "$with_libstdc"; then
22024 LIBSTDCLDFLAGS="-L$with_libstdc"
22025 fi
22026fi
22027
22028
22029# Does gcc required -traditional?
22030if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000022031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000022032$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022033if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022034 $as_echo_n "(cached) " >&6
22035else
22036 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000022037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022038/* end confdefs.h. */
22039#include <sgtty.h>
22040Autoconf TIOCGETP
22041_ACEOF
22042if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022043 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022044 ac_cv_prog_gcc_traditional=yes
22045else
22046 ac_cv_prog_gcc_traditional=no
22047fi
22048rm -f conftest*
22049
22050
22051 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000022052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022053/* end confdefs.h. */
22054#include <termio.h>
22055Autoconf TCGETA
22056_ACEOF
22057if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022058 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022059 ac_cv_prog_gcc_traditional=yes
22060fi
22061rm -f conftest*
22062
22063 fi
22064fi
cristy8b350f62009-11-15 23:12:43 +000022065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000022066$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
22067 if test $ac_cv_prog_gcc_traditional = yes; then
22068 CC="$CC -traditional"
22069 fi
22070fi
22071
22072
22073########
22074#
22075# Set defines required to build DLLs and modules using MinGW
22076#
22077########
22078# These options are set for multi-thread DLL module build
22079# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
22080# module: _DLL
22081# executable/Magick++: _DLL _MAGICKMOD_
22082MODULE_EXTRA_CPPFLAGS=''
22083LIBRARY_EXTRA_CPPFLAGS=''
22084if test "${native_win32_build}" = 'yes'; then
22085 if test "${libtool_build_shared_libs}" = 'yes'; then
22086 CPPFLAGS="$CPPFLAGS -D_DLL"
22087 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
22088 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
22089 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
cristyc6722092012-10-14 00:19:31 +000022090 if test "$build_modules" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000022091 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
22092 else
22093 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
22094 fi
22095 else
22096 CPPFLAGS="$CPPFLAGS -D_LIB"
22097 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
22098 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
22099 fi
22100 if test "$with_threads" = 'yes'; then
22101 CPPFLAGS="$CPPFLAGS -D_MT"
22102 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
22103 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
22104 fi
22105fi
22106
22107
22108
22109# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000022110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000022111$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022112if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022113 $as_echo_n "(cached) " >&6
22114else
cristy8b350f62009-11-15 23:12:43 +000022115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022116/* end confdefs.h. */
22117#include <stdlib.h>
22118#include <stdarg.h>
22119#include <string.h>
22120#include <float.h>
22121
22122int
22123main ()
22124{
22125
22126 ;
22127 return 0;
22128}
22129_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022130if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022131 ac_cv_header_stdc=yes
22132else
cristy8b350f62009-11-15 23:12:43 +000022133 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000022134fi
cristy3ed852e2009-09-05 21:47:34 +000022135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22136
22137if test $ac_cv_header_stdc = yes; then
22138 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000022139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022140/* end confdefs.h. */
22141#include <string.h>
22142
22143_ACEOF
22144if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022145 $EGREP "memchr" >/dev/null 2>&1; then :
22146
cristy3ed852e2009-09-05 21:47:34 +000022147else
22148 ac_cv_header_stdc=no
22149fi
22150rm -f conftest*
22151
22152fi
22153
22154if test $ac_cv_header_stdc = yes; then
22155 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000022156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022157/* end confdefs.h. */
22158#include <stdlib.h>
22159
22160_ACEOF
22161if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022162 $EGREP "free" >/dev/null 2>&1; then :
22163
cristy3ed852e2009-09-05 21:47:34 +000022164else
22165 ac_cv_header_stdc=no
22166fi
22167rm -f conftest*
22168
22169fi
22170
22171if test $ac_cv_header_stdc = yes; then
22172 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000022173 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022174 :
22175else
cristy8b350f62009-11-15 23:12:43 +000022176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022177/* end confdefs.h. */
22178#include <ctype.h>
22179#include <stdlib.h>
22180#if ((' ' & 0x0FF) == 0x020)
22181# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22182# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22183#else
22184# define ISLOWER(c) \
22185 (('a' <= (c) && (c) <= 'i') \
22186 || ('j' <= (c) && (c) <= 'r') \
22187 || ('s' <= (c) && (c) <= 'z'))
22188# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22189#endif
22190
22191#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22192int
22193main ()
22194{
22195 int i;
22196 for (i = 0; i < 256; i++)
22197 if (XOR (islower (i), ISLOWER (i))
22198 || toupper (i) != TOUPPER (i))
22199 return 2;
22200 return 0;
22201}
22202_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022203if ac_fn_c_try_run "$LINENO"; then :
22204
cristy3ed852e2009-09-05 21:47:34 +000022205else
cristy8b350f62009-11-15 23:12:43 +000022206 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000022207fi
cristy8b350f62009-11-15 23:12:43 +000022208rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22209 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022210fi
22211
cristy3ed852e2009-09-05 21:47:34 +000022212fi
22213fi
cristy8b350f62009-11-15 23:12:43 +000022214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000022215$as_echo "$ac_cv_header_stdc" >&6; }
22216if test $ac_cv_header_stdc = yes; then
22217
cristy8b350f62009-11-15 23:12:43 +000022218$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022219
22220fi
22221
22222if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000022223 { $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 +000022224 header files. Compilation cannot proceed. Please install the ANSI C
22225 headers and rerun this script." >&5
22226$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
22227 header files. Compilation cannot proceed. Please install the ANSI C
22228 headers and rerun this script." >&2;};
22229fi
cristya0b81c32010-01-22 02:54:33 +000022230
22231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
22232$as_echo_n "checking whether to enable assertions... " >&6; }
22233 # Check whether --enable-assert was given.
22234if test "${enable_assert+set}" = set; then :
22235 enableval=$enable_assert; ac_enable_assert=$enableval
22236 if test "x$enableval" = xno; then :
22237
22238$as_echo "#define NDEBUG 1" >>confdefs.h
22239
22240elif test "x$enableval" != xyes; then :
22241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
22242$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
22243 ac_enable_assert=yes
22244fi
22245else
22246 ac_enable_assert=yes
22247fi
22248
22249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
22250$as_echo "$ac_enable_assert" >&6; }
22251
cristy3ed852e2009-09-05 21:47:34 +000022252ac_header_dirent=no
22253for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22254 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000022255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000022256$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022257if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022258 $as_echo_n "(cached) " >&6
22259else
cristy8b350f62009-11-15 23:12:43 +000022260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022261/* end confdefs.h. */
22262#include <sys/types.h>
22263#include <$ac_hdr>
22264
22265int
22266main ()
22267{
22268if ((DIR *) 0)
22269return 0;
22270 ;
22271 return 0;
22272}
22273_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022274if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022275 eval "$as_ac_Header=yes"
22276else
cristy8b350f62009-11-15 23:12:43 +000022277 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000022278fi
cristy3ed852e2009-09-05 21:47:34 +000022279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22280fi
cristy8b350f62009-11-15 23:12:43 +000022281eval ac_res=\$$as_ac_Header
22282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000022283$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000022284if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022285 cat >>confdefs.h <<_ACEOF
22286#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22287_ACEOF
22288
22289ac_header_dirent=$ac_hdr; break
22290fi
22291
22292done
22293# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22294if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000022295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022296$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022297if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022298 $as_echo_n "(cached) " >&6
22299else
22300 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000022301cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022302/* end confdefs.h. */
22303
22304/* Override any GCC internal prototype to avoid an error.
22305 Use char because int might match the return type of a GCC
22306 builtin and then its argument prototype would still apply. */
22307#ifdef __cplusplus
22308extern "C"
22309#endif
22310char opendir ();
22311int
22312main ()
22313{
22314return opendir ();
22315 ;
22316 return 0;
22317}
22318_ACEOF
22319for ac_lib in '' dir; do
22320 if test -z "$ac_lib"; then
22321 ac_res="none required"
22322 else
22323 ac_res=-l$ac_lib
22324 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22325 fi
cristy8b350f62009-11-15 23:12:43 +000022326 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022327 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000022328fi
cristy8b350f62009-11-15 23:12:43 +000022329rm -f core conftest.err conftest.$ac_objext \
22330 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000022331 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022332 break
22333fi
22334done
cristyda16f162011-02-19 23:52:17 +000022335if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000022336
cristy3ed852e2009-09-05 21:47:34 +000022337else
22338 ac_cv_search_opendir=no
22339fi
22340rm conftest.$ac_ext
22341LIBS=$ac_func_search_save_LIBS
22342fi
cristy8b350f62009-11-15 23:12:43 +000022343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022344$as_echo "$ac_cv_search_opendir" >&6; }
22345ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000022346if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000022347 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22348
22349fi
22350
22351else
cristy8b350f62009-11-15 23:12:43 +000022352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022353$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022354if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022355 $as_echo_n "(cached) " >&6
22356else
22357 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000022358cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022359/* end confdefs.h. */
22360
22361/* Override any GCC internal prototype to avoid an error.
22362 Use char because int might match the return type of a GCC
22363 builtin and then its argument prototype would still apply. */
22364#ifdef __cplusplus
22365extern "C"
22366#endif
22367char opendir ();
22368int
22369main ()
22370{
22371return opendir ();
22372 ;
22373 return 0;
22374}
22375_ACEOF
22376for ac_lib in '' x; do
22377 if test -z "$ac_lib"; then
22378 ac_res="none required"
22379 else
22380 ac_res=-l$ac_lib
22381 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22382 fi
cristy8b350f62009-11-15 23:12:43 +000022383 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022384 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000022385fi
cristy8b350f62009-11-15 23:12:43 +000022386rm -f core conftest.err conftest.$ac_objext \
22387 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000022388 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022389 break
22390fi
22391done
cristyda16f162011-02-19 23:52:17 +000022392if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000022393
cristy3ed852e2009-09-05 21:47:34 +000022394else
22395 ac_cv_search_opendir=no
22396fi
22397rm conftest.$ac_ext
22398LIBS=$ac_func_search_save_LIBS
22399fi
cristy8b350f62009-11-15 23:12:43 +000022400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022401$as_echo "$ac_cv_search_opendir" >&6; }
22402ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000022403if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000022404 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22405
22406fi
22407
22408fi
22409
22410
22411# Check additional headers
cristy66988ab2015-05-30 17:20:38 +000022412for 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/sendfile.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 +000022413do :
22414 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22415ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000022416if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022417 cat >>confdefs.h <<_ACEOF
22418#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22419_ACEOF
22420
22421fi
22422
22423done
22424
22425
22426########
22427#
22428# Checks for typedefs, structures, and compiler characteristics.
22429#
22430########
22431
cristy8b350f62009-11-15 23:12:43 +000022432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000022433$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022434if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022435 $as_echo_n "(cached) " >&6
22436else
cristy8b350f62009-11-15 23:12:43 +000022437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022438/* end confdefs.h. */
22439
cristy14fefe52012-05-21 00:59:18 +000022440 #include <stdbool.h>
22441 #ifndef bool
22442 "error: bool is not defined"
22443 #endif
22444 #ifndef false
22445 "error: false is not defined"
22446 #endif
22447 #if false
22448 "error: false is not 0"
22449 #endif
22450 #ifndef true
22451 "error: true is not defined"
22452 #endif
22453 #if true != 1
22454 "error: true is not 1"
22455 #endif
22456 #ifndef __bool_true_false_are_defined
22457 "error: __bool_true_false_are_defined is not defined"
22458 #endif
cristy3ed852e2009-09-05 21:47:34 +000022459
cristy14fefe52012-05-21 00:59:18 +000022460 struct s { _Bool s: 1; _Bool t; } s;
cristy3ed852e2009-09-05 21:47:34 +000022461
cristy14fefe52012-05-21 00:59:18 +000022462 char a[true == 1 ? 1 : -1];
22463 char b[false == 0 ? 1 : -1];
22464 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
22465 char d[(bool) 0.5 == true ? 1 : -1];
22466 /* See body of main program for 'e'. */
22467 char f[(_Bool) 0.0 == false ? 1 : -1];
22468 char g[true];
22469 char h[sizeof (_Bool)];
22470 char i[sizeof s.t];
22471 enum { j = false, k = true, l = false * true, m = true * 256 };
22472 /* The following fails for
22473 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
22474 _Bool n[m];
22475 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
22476 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
22477 /* Catch a bug in an HP-UX C compiler. See
22478 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
22479 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
22480 */
22481 _Bool q = true;
22482 _Bool *pq = &q;
cristy3ed852e2009-09-05 21:47:34 +000022483
22484int
22485main ()
22486{
22487
cristy14fefe52012-05-21 00:59:18 +000022488 bool e = &s;
22489 *pq |= q;
22490 *pq |= ! q;
22491 /* Refer to every declared value, to avoid compiler optimizations. */
22492 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
22493 + !m + !n + !o + !p + !q + !pq);
cristy3ed852e2009-09-05 21:47:34 +000022494
22495 ;
22496 return 0;
22497}
22498_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022499if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022500 ac_cv_header_stdbool_h=yes
22501else
cristy8b350f62009-11-15 23:12:43 +000022502 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000022503fi
cristy3ed852e2009-09-05 21:47:34 +000022504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22505fi
cristy8b350f62009-11-15 23:12:43 +000022506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000022507$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy14fefe52012-05-21 00:59:18 +000022508 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000022509if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000022510
22511cat >>confdefs.h <<_ACEOF
22512#define HAVE__BOOL 1
22513_ACEOF
22514
22515
22516fi
22517
cristy14fefe52012-05-21 00:59:18 +000022518
cristy3ed852e2009-09-05 21:47:34 +000022519if test $ac_cv_header_stdbool_h = yes; then
22520
cristy8b350f62009-11-15 23:12:43 +000022521$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022522
22523fi
22524
cristy8b350f62009-11-15 23:12:43 +000022525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022526$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022527if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022528 $as_echo_n "(cached) " >&6
22529else
cristy8b350f62009-11-15 23:12:43 +000022530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022531/* end confdefs.h. */
22532
22533int
22534main ()
22535{
22536
22537volatile int x;
22538int * volatile y = (int *) 0;
22539return !x && !y;
22540 ;
22541 return 0;
22542}
22543_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022544if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022545 ac_cv_c_volatile=yes
22546else
cristy8b350f62009-11-15 23:12:43 +000022547 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000022548fi
cristy3ed852e2009-09-05 21:47:34 +000022549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22550fi
cristy8b350f62009-11-15 23:12:43 +000022551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022552$as_echo "$ac_cv_c_volatile" >&6; }
22553if test $ac_cv_c_volatile = no; then
22554
cristy8b350f62009-11-15 23:12:43 +000022555$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022556
22557fi
22558
cristy8b350f62009-11-15 23:12:43 +000022559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000022560$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022561if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022562 $as_echo_n "(cached) " >&6
22563else
cristy8b350f62009-11-15 23:12:43 +000022564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022565/* end confdefs.h. */
22566#define x(y) #y
22567
22568char *s = x(teststring);
22569_ACEOF
22570if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022571 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022572 ac_cv_c_stringize=no
22573else
22574 ac_cv_c_stringize=yes
22575fi
22576rm -f conftest*
22577
22578fi
cristy8b350f62009-11-15 23:12:43 +000022579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000022580$as_echo "$ac_cv_c_stringize" >&6; }
22581if test $ac_cv_c_stringize = yes; then
22582
cristy8b350f62009-11-15 23:12:43 +000022583$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022584
22585fi
22586
cristy8b350f62009-11-15 23:12:43 +000022587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022588$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022589if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022590 $as_echo_n "(cached) " >&6
22591else
cristy8b350f62009-11-15 23:12:43 +000022592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022593/* end confdefs.h. */
22594#include <sys/types.h>
22595#include <sys/stat.h>
22596
22597#if defined S_ISBLK && defined S_IFDIR
22598extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22599#endif
22600
22601#if defined S_ISBLK && defined S_IFCHR
22602extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22603#endif
22604
22605#if defined S_ISLNK && defined S_IFREG
22606extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22607#endif
22608
22609#if defined S_ISSOCK && defined S_IFREG
22610extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22611#endif
22612
22613_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022614if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022615 ac_cv_header_stat_broken=no
22616else
cristy8b350f62009-11-15 23:12:43 +000022617 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000022618fi
cristy3ed852e2009-09-05 21:47:34 +000022619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22620fi
cristy8b350f62009-11-15 23:12:43 +000022621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022622$as_echo "$ac_cv_header_stat_broken" >&6; }
22623if test $ac_cv_header_stat_broken = yes; then
22624
cristy8b350f62009-11-15 23:12:43 +000022625$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022626
22627fi
22628
cristy8b350f62009-11-15 23:12:43 +000022629{ $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 +000022630$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022631if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022632 $as_echo_n "(cached) " >&6
22633else
cristy8b350f62009-11-15 23:12:43 +000022634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022635/* end confdefs.h. */
22636#include <sys/types.h>
22637#include <sys/time.h>
22638#include <time.h>
22639
22640int
22641main ()
22642{
22643if ((struct tm *) 0)
22644return 0;
22645 ;
22646 return 0;
22647}
22648_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022649if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022650 ac_cv_header_time=yes
22651else
cristy8b350f62009-11-15 23:12:43 +000022652 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000022653fi
cristy3ed852e2009-09-05 21:47:34 +000022654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22655fi
cristy8b350f62009-11-15 23:12:43 +000022656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000022657$as_echo "$ac_cv_header_time" >&6; }
22658if test $ac_cv_header_time = yes; then
22659
cristy8b350f62009-11-15 23:12:43 +000022660$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022661
22662fi
22663
cristy8b350f62009-11-15 23:12:43 +000022664{ $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 +000022665$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022666if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022667 $as_echo_n "(cached) " >&6
22668else
cristy8b350f62009-11-15 23:12:43 +000022669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022670/* end confdefs.h. */
22671#include <sys/types.h>
22672#include <time.h>
22673
22674int
22675main ()
22676{
22677struct tm tm;
22678 int *p = &tm.tm_sec;
22679 return !p;
22680 ;
22681 return 0;
22682}
22683_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022684if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022685 ac_cv_struct_tm=time.h
22686else
cristy8b350f62009-11-15 23:12:43 +000022687 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000022688fi
cristy3ed852e2009-09-05 21:47:34 +000022689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22690fi
cristy8b350f62009-11-15 23:12:43 +000022691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000022692$as_echo "$ac_cv_struct_tm" >&6; }
22693if test $ac_cv_struct_tm = sys/time.h; then
22694
cristy8b350f62009-11-15 23:12:43 +000022695$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022696
22697fi
22698
cristy92703d82010-04-26 00:18:18 +000022699ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
22700#include <$ac_cv_struct_tm>
22701
22702"
cristyda16f162011-02-19 23:52:17 +000022703if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022704
22705cat >>confdefs.h <<_ACEOF
22706#define HAVE_STRUCT_TM_TM_ZONE 1
22707_ACEOF
22708
22709
22710fi
22711
22712if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22713
22714$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
22715
22716else
22717 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
22718"
cristyda16f162011-02-19 23:52:17 +000022719if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022720 ac_have_decl=1
22721else
22722 ac_have_decl=0
22723fi
22724
22725cat >>confdefs.h <<_ACEOF
22726#define HAVE_DECL_TZNAME $ac_have_decl
22727_ACEOF
22728
22729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
22730$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022731if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000022732 $as_echo_n "(cached) " >&6
22733else
22734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22735/* end confdefs.h. */
22736#include <time.h>
22737#if !HAVE_DECL_TZNAME
22738extern char *tzname[];
22739#endif
22740
22741int
22742main ()
22743{
22744return tzname[0][0];
22745 ;
22746 return 0;
22747}
22748_ACEOF
22749if ac_fn_c_try_link "$LINENO"; then :
22750 ac_cv_var_tzname=yes
22751else
22752 ac_cv_var_tzname=no
22753fi
22754rm -f core conftest.err conftest.$ac_objext \
22755 conftest$ac_exeext conftest.$ac_ext
22756fi
22757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
22758$as_echo "$ac_cv_var_tzname" >&6; }
22759 if test $ac_cv_var_tzname = yes; then
22760
22761$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
22762
22763 fi
22764fi
22765
cristy8b350f62009-11-15 23:12:43 +000022766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000022767$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022768if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022769 $as_echo_n "(cached) " >&6
22770else
22771 echo '#! /bin/cat
22772exit 69
22773' >conftest
22774chmod u+x conftest
22775(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
22776if test $? -ne 69; then
22777 ac_cv_sys_interpreter=yes
22778else
22779 ac_cv_sys_interpreter=no
22780fi
22781rm -f conftest
22782fi
cristy8b350f62009-11-15 23:12:43 +000022783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000022784$as_echo "$ac_cv_sys_interpreter" >&6; }
22785interpval=$ac_cv_sys_interpreter
22786
22787
cristye80f9cb2013-01-09 01:09:31 +000022788#
22789# Checks for language qualifiers and semantics.
22790#
22791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
22792$as_echo_n "checking whether char is unsigned... " >&6; }
22793if ${ac_cv_c_char_unsigned+:} false; then :
22794 $as_echo_n "(cached) " >&6
22795else
22796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22797/* end confdefs.h. */
22798$ac_includes_default
22799int
22800main ()
22801{
22802static int test_array [1 - 2 * !(((char) -1) < 0)];
22803test_array [0] = 0;
22804return test_array [0];
22805
22806 ;
22807 return 0;
22808}
22809_ACEOF
22810if ac_fn_c_try_compile "$LINENO"; then :
22811 ac_cv_c_char_unsigned=no
22812else
22813 ac_cv_c_char_unsigned=yes
22814fi
22815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22816fi
22817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
22818$as_echo "$ac_cv_c_char_unsigned" >&6; }
22819if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
22820 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
22821
22822fi
22823
22824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
22825$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
22826if ${ac_cv_c_const+:} false; then :
22827 $as_echo_n "(cached) " >&6
22828else
22829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22830/* end confdefs.h. */
22831
22832int
22833main ()
22834{
22835
22836#ifndef __cplusplus
22837 /* Ultrix mips cc rejects this sort of thing. */
22838 typedef int charset[2];
22839 const charset cs = { 0, 0 };
22840 /* SunOS 4.1.1 cc rejects this. */
22841 char const *const *pcpcc;
22842 char **ppc;
22843 /* NEC SVR4.0.2 mips cc rejects this. */
22844 struct point {int x, y;};
22845 static struct point const zero = {0,0};
22846 /* AIX XL C 1.02.0.0 rejects this.
22847 It does not let you subtract one const X* pointer from another in
22848 an arm of an if-expression whose if-part is not a constant
22849 expression */
22850 const char *g = "string";
22851 pcpcc = &g + (g ? g-g : 0);
22852 /* HPUX 7.0 cc rejects these. */
22853 ++pcpcc;
22854 ppc = (char**) pcpcc;
22855 pcpcc = (char const *const *) ppc;
22856 { /* SCO 3.2v4 cc rejects this sort of thing. */
22857 char tx;
22858 char *t = &tx;
22859 char const *s = 0 ? (char *) 0 : (char const *) 0;
22860
22861 *t++ = 0;
22862 if (s) return 0;
22863 }
22864 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22865 int x[] = {25, 17};
22866 const int *foo = &x[0];
22867 ++foo;
22868 }
22869 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22870 typedef const int *iptr;
22871 iptr p = 0;
22872 ++p;
22873 }
22874 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
22875 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22876 struct s { int j; const int *ap[3]; } bx;
22877 struct s *b = &bx; b->j = 5;
22878 }
22879 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22880 const int foo = 10;
22881 if (!foo) return 0;
22882 }
22883 return !cs[0] && !zero.x;
22884#endif
22885
22886 ;
22887 return 0;
22888}
22889_ACEOF
22890if ac_fn_c_try_compile "$LINENO"; then :
22891 ac_cv_c_const=yes
22892else
22893 ac_cv_c_const=no
22894fi
22895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22896fi
22897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
22898$as_echo "$ac_cv_c_const" >&6; }
22899if test $ac_cv_c_const = no; then
22900
22901$as_echo "#define const /**/" >>confdefs.h
22902
22903fi
22904
cristy8b350f62009-11-15 23:12:43 +000022905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022906$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022907if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022908 $as_echo_n "(cached) " >&6
22909else
22910 ac_cv_c_inline=no
22911for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000022912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022913/* end confdefs.h. */
22914#ifndef __cplusplus
22915typedef int foo_t;
22916static $ac_kw foo_t static_foo () {return 0; }
22917$ac_kw foo_t foo () {return 0; }
22918#endif
22919
22920_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022921if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022922 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022923fi
cristy3ed852e2009-09-05 21:47:34 +000022924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22925 test "$ac_cv_c_inline" != no && break
22926done
22927
22928fi
cristy8b350f62009-11-15 23:12:43 +000022929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022930$as_echo "$ac_cv_c_inline" >&6; }
22931
cristy3ed852e2009-09-05 21:47:34 +000022932case $ac_cv_c_inline in
22933 inline | yes) ;;
22934 *)
22935 case $ac_cv_c_inline in
22936 no) ac_val=;;
22937 *) ac_val=$ac_cv_c_inline;;
22938 esac
22939 cat >>confdefs.h <<_ACEOF
22940#ifndef __cplusplus
22941#define inline $ac_val
22942#endif
22943_ACEOF
22944 ;;
22945esac
22946
cristy8b350f62009-11-15 23:12:43 +000022947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000022948$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022949if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022950 $as_echo_n "(cached) " >&6
22951else
22952 ac_cv_c_restrict=no
22953 # The order here caters to the fact that C++ does not require restrict.
22954 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000022955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022956/* end confdefs.h. */
22957typedef int * int_ptr;
22958 int foo (int_ptr $ac_kw ip) {
22959 return ip[0];
22960 }
22961int
22962main ()
22963{
22964int s[1];
22965 int * $ac_kw t = s;
22966 t[0] = 0;
22967 return foo(t)
22968 ;
22969 return 0;
22970}
22971_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022972if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022973 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022974fi
cristy3ed852e2009-09-05 21:47:34 +000022975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22976 test "$ac_cv_c_restrict" != no && break
22977 done
22978
22979fi
cristy8b350f62009-11-15 23:12:43 +000022980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000022981$as_echo "$ac_cv_c_restrict" >&6; }
22982
cristy3ed852e2009-09-05 21:47:34 +000022983 case $ac_cv_c_restrict in
22984 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000022985 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022986 ;;
22987 *) cat >>confdefs.h <<_ACEOF
22988#define restrict $ac_cv_c_restrict
22989_ACEOF
22990 ;;
22991 esac
22992
cristye80f9cb2013-01-09 01:09:31 +000022993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
22994$as_echo_n "checking for working volatile... " >&6; }
22995if ${ac_cv_c_volatile+:} false; then :
22996 $as_echo_n "(cached) " >&6
22997else
22998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22999/* end confdefs.h. */
23000
23001int
23002main ()
23003{
23004
23005volatile int x;
23006int * volatile y = (int *) 0;
23007return !x && !y;
23008 ;
23009 return 0;
23010}
23011_ACEOF
23012if ac_fn_c_try_compile "$LINENO"; then :
23013 ac_cv_c_volatile=yes
23014else
23015 ac_cv_c_volatile=no
23016fi
23017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23018fi
23019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
23020$as_echo "$ac_cv_c_volatile" >&6; }
23021if test $ac_cv_c_volatile = no; then
23022
23023$as_echo "#define volatile /**/" >>confdefs.h
23024
23025fi
23026
cristy3ed852e2009-09-05 21:47:34 +000023027
23028# If words are stored with the most significant byte first (like
23029# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000023030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000023031$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023032if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023033 $as_echo_n "(cached) " >&6
23034else
23035 ac_cv_c_bigendian=unknown
23036 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000023037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023038/* end confdefs.h. */
23039#ifndef __APPLE_CC__
23040 not a universal capable compiler
23041 #endif
23042 typedef int dummy;
23043
23044_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023045if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023046
23047 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000023048 # there are at least two -arch flags with different values.
23049 ac_arch=
23050 ac_prev=
23051 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
23052 if test -n "$ac_prev"; then
23053 case $ac_word in
23054 i?86 | x86_64 | ppc | ppc64)
23055 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
23056 ac_arch=$ac_word
23057 else
23058 ac_cv_c_bigendian=universal
23059 break
23060 fi
23061 ;;
23062 esac
23063 ac_prev=
23064 elif test "x$ac_word" = "x-arch"; then
23065 ac_prev=arch
23066 fi
23067 done
cristy3ed852e2009-09-05 21:47:34 +000023068fi
cristy3ed852e2009-09-05 21:47:34 +000023069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23070 if test $ac_cv_c_bigendian = unknown; then
23071 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000023072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023073/* end confdefs.h. */
23074#include <sys/types.h>
23075 #include <sys/param.h>
23076
23077int
23078main ()
23079{
23080#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
23081 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
23082 && LITTLE_ENDIAN)
23083 bogus endian macros
23084 #endif
23085
23086 ;
23087 return 0;
23088}
23089_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023090if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023091 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000023092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023093/* end confdefs.h. */
23094#include <sys/types.h>
23095 #include <sys/param.h>
23096
23097int
23098main ()
23099{
23100#if BYTE_ORDER != BIG_ENDIAN
23101 not big endian
23102 #endif
23103
23104 ;
23105 return 0;
23106}
23107_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023108if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023109 ac_cv_c_bigendian=yes
23110else
cristy8b350f62009-11-15 23:12:43 +000023111 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000023112fi
cristy3ed852e2009-09-05 21:47:34 +000023113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023114fi
cristy3ed852e2009-09-05 21:47:34 +000023115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23116 fi
23117 if test $ac_cv_c_bigendian = unknown; then
23118 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000023119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023120/* end confdefs.h. */
23121#include <limits.h>
23122
23123int
23124main ()
23125{
23126#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
23127 bogus endian macros
23128 #endif
23129
23130 ;
23131 return 0;
23132}
23133_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023134if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023135 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000023136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023137/* end confdefs.h. */
23138#include <limits.h>
23139
23140int
23141main ()
23142{
23143#ifndef _BIG_ENDIAN
23144 not big endian
23145 #endif
23146
23147 ;
23148 return 0;
23149}
23150_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023151if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023152 ac_cv_c_bigendian=yes
23153else
cristy8b350f62009-11-15 23:12:43 +000023154 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000023155fi
cristy3ed852e2009-09-05 21:47:34 +000023156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023157fi
cristy3ed852e2009-09-05 21:47:34 +000023158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23159 fi
23160 if test $ac_cv_c_bigendian = unknown; then
23161 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000023162 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023163 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000023164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023165/* end confdefs.h. */
23166short int ascii_mm[] =
23167 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23168 short int ascii_ii[] =
23169 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23170 int use_ascii (int i) {
23171 return ascii_mm[i] + ascii_ii[i];
23172 }
23173 short int ebcdic_ii[] =
23174 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23175 short int ebcdic_mm[] =
23176 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23177 int use_ebcdic (int i) {
23178 return ebcdic_mm[i] + ebcdic_ii[i];
23179 }
23180 extern int foo;
23181
23182int
23183main ()
23184{
23185return use_ascii (foo) == use_ebcdic (foo);
23186 ;
23187 return 0;
23188}
23189_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023190if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023191 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
23192 ac_cv_c_bigendian=yes
23193 fi
23194 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23195 if test "$ac_cv_c_bigendian" = unknown; then
23196 ac_cv_c_bigendian=no
23197 else
23198 # finding both strings is unlikely to happen, but who knows?
23199 ac_cv_c_bigendian=unknown
23200 fi
23201 fi
cristy3ed852e2009-09-05 21:47:34 +000023202fi
cristy3ed852e2009-09-05 21:47:34 +000023203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23204else
cristy8b350f62009-11-15 23:12:43 +000023205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023206/* end confdefs.h. */
23207$ac_includes_default
23208int
23209main ()
23210{
23211
23212 /* Are we little or big endian? From Harbison&Steele. */
23213 union
23214 {
23215 long int l;
23216 char c[sizeof (long int)];
23217 } u;
23218 u.l = 1;
23219 return u.c[sizeof (long int) - 1] == 1;
23220
23221 ;
23222 return 0;
23223}
23224_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023225if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023226 ac_cv_c_bigendian=no
23227else
cristy8b350f62009-11-15 23:12:43 +000023228 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000023229fi
cristy8b350f62009-11-15 23:12:43 +000023230rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23231 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023232fi
23233
cristy3ed852e2009-09-05 21:47:34 +000023234 fi
23235fi
cristy8b350f62009-11-15 23:12:43 +000023236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000023237$as_echo "$ac_cv_c_bigendian" >&6; }
23238 case $ac_cv_c_bigendian in #(
23239 yes)
cristy8b350f62009-11-15 23:12:43 +000023240 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023241;; #(
23242 no)
23243 ;; #(
23244 universal)
23245
cristy8b350f62009-11-15 23:12:43 +000023246$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023247
23248 ;; #(
23249 *)
cristy98dddb52010-11-04 00:30:15 +000023250 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000023251 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000023252 esac
23253
23254
cristy501c8042011-05-26 17:46:28 +000023255# Define to a suitable type, if standard headers do not define it.
23256ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
23257case $ac_cv_c_int8_t in #(
23258 no|yes) ;; #(
23259 *)
cristy3ed852e2009-09-05 21:47:34 +000023260
23261cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000023262#define int8_t $ac_cv_c_int8_t
23263_ACEOF
23264;;
23265esac
23266
23267ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
23268case $ac_cv_c_int16_t in #(
23269 no|yes) ;; #(
23270 *)
23271
23272cat >>confdefs.h <<_ACEOF
23273#define int16_t $ac_cv_c_int16_t
23274_ACEOF
23275;;
23276esac
23277
23278ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
23279case $ac_cv_c_int32_t in #(
23280 no|yes) ;; #(
23281 *)
23282
23283cat >>confdefs.h <<_ACEOF
23284#define int32_t $ac_cv_c_int32_t
23285_ACEOF
23286;;
23287esac
23288
23289ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
23290case $ac_cv_c_int64_t in #(
23291 no|yes) ;; #(
23292 *)
23293
23294cat >>confdefs.h <<_ACEOF
23295#define int64_t $ac_cv_c_int64_t
23296_ACEOF
23297;;
23298esac
23299
23300
cristy045228a2013-06-23 11:00:16 +000023301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23302$as_echo_n "checking for unsigned long long int... " >&6; }
23303if ${ac_cv_type_unsigned_long_long_int+:} false; then :
cristy501c8042011-05-26 17:46:28 +000023304 $as_echo_n "(cached) " >&6
23305else
cristy045228a2013-06-23 11:00:16 +000023306 ac_cv_type_unsigned_long_long_int=yes
23307 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
23308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000023309/* end confdefs.h. */
23310
23311 /* For now, do not test the preprocessor; as of 2007 there are too many
cristy5ed9c6e2013-07-14 21:20:31 +000023312 implementations with broken preprocessors. Perhaps this can
23313 be revisited in 2012. In the meantime, code should not expect
23314 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000023315 /* Test literals. */
23316 long long int ll = 9223372036854775807ll;
23317 long long int nll = -9223372036854775807LL;
23318 unsigned long long int ull = 18446744073709551615ULL;
23319 /* Test constant expressions. */
23320 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristy5ed9c6e2013-07-14 21:20:31 +000023321 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023322 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristy5ed9c6e2013-07-14 21:20:31 +000023323 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023324 int i = 63;
23325int
23326main ()
23327{
23328/* Test availability of runtime routines for shift and division. */
23329 long long int llmax = 9223372036854775807ll;
23330 unsigned long long int ullmax = 18446744073709551615ull;
23331 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristy5ed9c6e2013-07-14 21:20:31 +000023332 | (llmax / ll) | (llmax % ll)
23333 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23334 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000023335 ;
23336 return 0;
23337}
23338
23339_ACEOF
23340if ac_fn_c_try_link "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000023341
23342else
23343 ac_cv_type_unsigned_long_long_int=no
23344fi
23345rm -f core conftest.err conftest.$ac_objext \
23346 conftest$ac_exeext conftest.$ac_ext
23347 fi
23348fi
23349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23350$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23351 if test $ac_cv_type_unsigned_long_long_int = yes; then
23352
23353$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23354
23355 fi
23356
23357
23358
23359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
23360$as_echo_n "checking for long long int... " >&6; }
23361if ${ac_cv_type_long_long_int+:} false; then :
23362 $as_echo_n "(cached) " >&6
23363else
cristy501c8042011-05-26 17:46:28 +000023364 ac_cv_type_long_long_int=yes
cristy045228a2013-06-23 11:00:16 +000023365 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
cristy5ed9c6e2013-07-14 21:20:31 +000023366 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
23367 if test $ac_cv_type_long_long_int = yes; then
23368 if test "$cross_compiling" = yes; then :
cristy045228a2013-06-23 11:00:16 +000023369 :
cristy501c8042011-05-26 17:46:28 +000023370else
23371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23372/* end confdefs.h. */
23373#include <limits.h>
cristy5ed9c6e2013-07-14 21:20:31 +000023374 #ifndef LLONG_MAX
23375 # define HALF \
23376 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
23377 # define LLONG_MAX (HALF - 1 + HALF)
23378 #endif
cristy501c8042011-05-26 17:46:28 +000023379int
23380main ()
23381{
23382long long int n = 1;
cristy5ed9c6e2013-07-14 21:20:31 +000023383 int i;
23384 for (i = 0; ; i++)
23385 {
23386 long long int m = n << i;
23387 if (m >> i != n)
23388 return 1;
23389 if (LLONG_MAX / 2 < m)
23390 break;
23391 }
23392 return 0;
cristy501c8042011-05-26 17:46:28 +000023393 ;
23394 return 0;
23395}
23396_ACEOF
23397if ac_fn_c_try_run "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000023398
cristy501c8042011-05-26 17:46:28 +000023399else
23400 ac_cv_type_long_long_int=no
23401fi
23402rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23403 conftest.$ac_objext conftest.beam conftest.$ac_ext
23404fi
23405
cristy5ed9c6e2013-07-14 21:20:31 +000023406 fi
cristy045228a2013-06-23 11:00:16 +000023407 fi
cristy501c8042011-05-26 17:46:28 +000023408fi
23409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
23410$as_echo "$ac_cv_type_long_long_int" >&6; }
23411 if test $ac_cv_type_long_long_int = yes; then
23412
23413$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
23414
23415 fi
23416
23417
23418
23419 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
23420if test "x$ac_cv_type_intmax_t" = xyes; then :
23421
23422$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
23423
23424else
23425 test $ac_cv_type_long_long_int = yes \
23426 && ac_type='long long int' \
23427 || ac_type='long int'
23428
23429cat >>confdefs.h <<_ACEOF
23430#define intmax_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000023431_ACEOF
23432
23433fi
23434
23435
cristy501c8042011-05-26 17:46:28 +000023436
23437 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
23438if test "x$ac_cv_type_intptr_t" = xyes; then :
23439
23440$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023441
cristy3ed852e2009-09-05 21:47:34 +000023442else
cristy501c8042011-05-26 17:46:28 +000023443 for ac_type in 'int' 'long int' 'long long int'; do
23444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23445/* end confdefs.h. */
23446$ac_includes_default
23447int
23448main ()
23449{
23450static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000023451test_array [0] = 0;
23452return test_array [0];
cristy501c8042011-05-26 17:46:28 +000023453
23454 ;
23455 return 0;
23456}
23457_ACEOF
23458if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023459
23460cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000023461#define intptr_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000023462_ACEOF
23463
cristy501c8042011-05-26 17:46:28 +000023464 ac_type=
23465fi
23466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23467 test -z "$ac_type" && break
23468 done
cristy3ed852e2009-09-05 21:47:34 +000023469fi
23470
23471
cristy3ed852e2009-09-05 21:47:34 +000023472
cristy501c8042011-05-26 17:46:28 +000023473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
23474$as_echo_n "checking for long double... " >&6; }
23475if ${ac_cv_type_long_double+:} false; then :
23476 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +000023477else
cristy501c8042011-05-26 17:46:28 +000023478 if test "$GCC" = yes; then
23479 ac_cv_type_long_double=yes
23480 else
23481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23482/* end confdefs.h. */
23483/* The Stardent Vistra knows sizeof (long double), but does
23484 not support it. */
23485 long double foo = 0.0L;
23486int
23487main ()
23488{
23489static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
23490 sizeof (double) <= sizeof (long double))];
cristy14fefe52012-05-21 00:59:18 +000023491test_array [0] = 0;
23492return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000023493
cristy501c8042011-05-26 17:46:28 +000023494 ;
23495 return 0;
23496}
cristy3ed852e2009-09-05 21:47:34 +000023497_ACEOF
cristy501c8042011-05-26 17:46:28 +000023498if ac_fn_c_try_compile "$LINENO"; then :
23499 ac_cv_type_long_double=yes
cristy3ed852e2009-09-05 21:47:34 +000023500else
cristy501c8042011-05-26 17:46:28 +000023501 ac_cv_type_long_double=no
cristy3ed852e2009-09-05 21:47:34 +000023502fi
cristy501c8042011-05-26 17:46:28 +000023503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23504 fi
cristy3ed852e2009-09-05 21:47:34 +000023505fi
cristy501c8042011-05-26 17:46:28 +000023506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
23507$as_echo "$ac_cv_type_long_double" >&6; }
23508 if test $ac_cv_type_long_double = yes; then
cristy3ed852e2009-09-05 21:47:34 +000023509
cristy501c8042011-05-26 17:46:28 +000023510$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023511
cristy501c8042011-05-26 17:46:28 +000023512 fi
23513
cristy3ed852e2009-09-05 21:47:34 +000023514
cristy8b350f62009-11-15 23:12:43 +000023515 { $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 +000023516$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023517if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023518 $as_echo_n "(cached) " >&6
23519else
cristy8b350f62009-11-15 23:12:43 +000023520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023521/* end confdefs.h. */
23522#include <float.h>
23523 long double const a[] =
23524 {
23525 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
23526 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
23527 };
23528 long double
23529 f (long double x)
23530 {
23531 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
23532 + (x ? f (x) : 'c'));
23533 }
23534
23535int
23536main ()
23537{
23538static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
23539 + (DBL_MANT_DIG < LDBL_MANT_DIG)
23540 - (LDBL_MAX_EXP < DBL_MAX_EXP)
23541 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
23542 && (int) LDBL_EPSILON == 0
23543 )];
cristy14fefe52012-05-21 00:59:18 +000023544test_array [0] = 0;
23545return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000023546
23547 ;
23548 return 0;
23549}
23550_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023551if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023552 ac_cv_type_long_double_wider=yes
23553else
cristy8b350f62009-11-15 23:12:43 +000023554 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000023555fi
cristy3ed852e2009-09-05 21:47:34 +000023556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23557fi
cristy8b350f62009-11-15 23:12:43 +000023558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000023559$as_echo "$ac_cv_type_long_double_wider" >&6; }
23560 if test $ac_cv_type_long_double_wider = yes; then
23561
cristy8b350f62009-11-15 23:12:43 +000023562$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023563
23564 fi
23565
23566
cristy045228a2013-06-23 11:00:16 +000023567
cristy501c8042011-05-26 17:46:28 +000023568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
23569$as_echo_n "checking for long long int... " >&6; }
23570if ${ac_cv_type_long_long_int+:} false; then :
23571 $as_echo_n "(cached) " >&6
23572else
cristy501c8042011-05-26 17:46:28 +000023573 ac_cv_type_long_long_int=yes
cristy045228a2013-06-23 11:00:16 +000023574 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
cristy5ed9c6e2013-07-14 21:20:31 +000023575 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
23576 if test $ac_cv_type_long_long_int = yes; then
23577 if test "$cross_compiling" = yes; then :
cristy045228a2013-06-23 11:00:16 +000023578 :
cristy501c8042011-05-26 17:46:28 +000023579else
23580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23581/* end confdefs.h. */
23582#include <limits.h>
cristy5ed9c6e2013-07-14 21:20:31 +000023583 #ifndef LLONG_MAX
23584 # define HALF \
23585 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
23586 # define LLONG_MAX (HALF - 1 + HALF)
23587 #endif
cristy501c8042011-05-26 17:46:28 +000023588int
23589main ()
23590{
23591long long int n = 1;
cristy5ed9c6e2013-07-14 21:20:31 +000023592 int i;
23593 for (i = 0; ; i++)
23594 {
23595 long long int m = n << i;
23596 if (m >> i != n)
23597 return 1;
23598 if (LLONG_MAX / 2 < m)
23599 break;
23600 }
23601 return 0;
cristy501c8042011-05-26 17:46:28 +000023602 ;
23603 return 0;
23604}
23605_ACEOF
23606if ac_fn_c_try_run "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000023607
cristy501c8042011-05-26 17:46:28 +000023608else
23609 ac_cv_type_long_long_int=no
23610fi
23611rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23612 conftest.$ac_objext conftest.beam conftest.$ac_ext
23613fi
23614
cristy5ed9c6e2013-07-14 21:20:31 +000023615 fi
cristy045228a2013-06-23 11:00:16 +000023616 fi
cristy501c8042011-05-26 17:46:28 +000023617fi
23618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
23619$as_echo "$ac_cv_type_long_long_int" >&6; }
23620 if test $ac_cv_type_long_long_int = yes; then
23621
23622$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
23623
23624 fi
23625
23626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
23627$as_echo_n "checking for mbstate_t... " >&6; }
23628if ${ac_cv_type_mbstate_t+:} false; then :
23629 $as_echo_n "(cached) " >&6
23630else
23631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23632/* end confdefs.h. */
23633$ac_includes_default
23634# include <wchar.h>
23635int
23636main ()
23637{
23638mbstate_t x; return sizeof x;
23639 ;
23640 return 0;
23641}
23642_ACEOF
23643if ac_fn_c_try_compile "$LINENO"; then :
23644 ac_cv_type_mbstate_t=yes
23645else
23646 ac_cv_type_mbstate_t=no
23647fi
23648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23649fi
23650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
23651$as_echo "$ac_cv_type_mbstate_t" >&6; }
23652 if test $ac_cv_type_mbstate_t = yes; then
23653
23654$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
23655
23656 else
23657
23658$as_echo "#define mbstate_t int" >>confdefs.h
23659
23660 fi
23661ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
23662if test "x$ac_cv_type_mode_t" = xyes; then :
23663
23664else
23665
23666cat >>confdefs.h <<_ACEOF
23667#define mode_t int
23668_ACEOF
23669
23670fi
23671
23672ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
23673if test "x$ac_cv_type_off_t" = xyes; then :
23674
23675else
23676
23677cat >>confdefs.h <<_ACEOF
23678#define off_t long int
23679_ACEOF
23680
23681fi
23682
23683ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
23684if test "x$ac_cv_type_pid_t" = xyes; then :
23685
23686else
23687
23688cat >>confdefs.h <<_ACEOF
23689#define pid_t int
23690_ACEOF
23691
23692fi
23693
23694ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
23695if test "x$ac_cv_type_size_t" = xyes; then :
23696
23697else
23698
23699cat >>confdefs.h <<_ACEOF
23700#define size_t unsigned int
23701_ACEOF
23702
23703fi
23704
23705ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23706if test "x$ac_cv_type_ssize_t" = xyes; then :
23707
23708else
23709
23710cat >>confdefs.h <<_ACEOF
23711#define ssize_t int
23712_ACEOF
23713
23714fi
23715
23716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
23717$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
23718if ${ac_cv_type_uid_t+:} false; then :
23719 $as_echo_n "(cached) " >&6
23720else
23721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23722/* end confdefs.h. */
23723#include <sys/types.h>
23724
23725_ACEOF
23726if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23727 $EGREP "uid_t" >/dev/null 2>&1; then :
23728 ac_cv_type_uid_t=yes
23729else
23730 ac_cv_type_uid_t=no
23731fi
23732rm -f conftest*
23733
23734fi
23735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
23736$as_echo "$ac_cv_type_uid_t" >&6; }
23737if test $ac_cv_type_uid_t = no; then
23738
23739$as_echo "#define uid_t int" >>confdefs.h
23740
23741
23742$as_echo "#define gid_t int" >>confdefs.h
23743
23744fi
23745
23746ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
23747case $ac_cv_c_uint8_t in #(
23748 no|yes) ;; #(
23749 *)
23750
23751$as_echo "#define _UINT8_T 1" >>confdefs.h
23752
23753
23754cat >>confdefs.h <<_ACEOF
23755#define uint8_t $ac_cv_c_uint8_t
23756_ACEOF
23757;;
23758 esac
23759
23760ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
23761case $ac_cv_c_uint16_t in #(
23762 no|yes) ;; #(
23763 *)
23764
23765
23766cat >>confdefs.h <<_ACEOF
23767#define uint16_t $ac_cv_c_uint16_t
23768_ACEOF
23769;;
23770 esac
23771
23772ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
23773case $ac_cv_c_uint32_t in #(
23774 no|yes) ;; #(
23775 *)
23776
23777$as_echo "#define _UINT32_T 1" >>confdefs.h
23778
23779
23780cat >>confdefs.h <<_ACEOF
23781#define uint32_t $ac_cv_c_uint32_t
23782_ACEOF
23783;;
23784 esac
23785
23786ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
23787case $ac_cv_c_uint64_t in #(
23788 no|yes) ;; #(
23789 *)
23790
23791$as_echo "#define _UINT64_T 1" >>confdefs.h
23792
23793
23794cat >>confdefs.h <<_ACEOF
23795#define uint64_t $ac_cv_c_uint64_t
23796_ACEOF
23797;;
23798 esac
23799
23800
cristy501c8042011-05-26 17:46:28 +000023801
23802 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
23803if test "x$ac_cv_type_uintmax_t" = xyes; then :
23804
23805$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
23806
23807else
23808 test $ac_cv_type_unsigned_long_long_int = yes \
23809 && ac_type='unsigned long long int' \
23810 || ac_type='unsigned long int'
23811
23812cat >>confdefs.h <<_ACEOF
23813#define uintmax_t $ac_type
23814_ACEOF
23815
23816fi
23817
23818
23819
23820 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23821if test "x$ac_cv_type_uintptr_t" = xyes; then :
23822
23823$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
23824
23825else
23826 for ac_type in 'unsigned int' 'unsigned long int' \
23827 'unsigned long long int'; do
23828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23829/* end confdefs.h. */
23830$ac_includes_default
23831int
23832main ()
23833{
23834static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000023835test_array [0] = 0;
23836return test_array [0];
cristy501c8042011-05-26 17:46:28 +000023837
23838 ;
23839 return 0;
23840}
23841_ACEOF
23842if ac_fn_c_try_compile "$LINENO"; then :
23843
23844cat >>confdefs.h <<_ACEOF
23845#define uintptr_t $ac_type
23846_ACEOF
23847
23848 ac_type=
23849fi
23850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23851 test -z "$ac_type" && break
23852 done
23853fi
23854
23855
23856
23857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23858$as_echo_n "checking for unsigned long long int... " >&6; }
23859if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23860 $as_echo_n "(cached) " >&6
23861else
cristy045228a2013-06-23 11:00:16 +000023862 ac_cv_type_unsigned_long_long_int=yes
23863 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
23864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000023865/* end confdefs.h. */
23866
23867 /* For now, do not test the preprocessor; as of 2007 there are too many
cristy5ed9c6e2013-07-14 21:20:31 +000023868 implementations with broken preprocessors. Perhaps this can
23869 be revisited in 2012. In the meantime, code should not expect
23870 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000023871 /* Test literals. */
23872 long long int ll = 9223372036854775807ll;
23873 long long int nll = -9223372036854775807LL;
23874 unsigned long long int ull = 18446744073709551615ULL;
23875 /* Test constant expressions. */
23876 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristy5ed9c6e2013-07-14 21:20:31 +000023877 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023878 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristy5ed9c6e2013-07-14 21:20:31 +000023879 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023880 int i = 63;
23881int
23882main ()
23883{
23884/* Test availability of runtime routines for shift and division. */
23885 long long int llmax = 9223372036854775807ll;
23886 unsigned long long int ullmax = 18446744073709551615ull;
23887 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristy5ed9c6e2013-07-14 21:20:31 +000023888 | (llmax / ll) | (llmax % ll)
23889 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23890 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000023891 ;
23892 return 0;
23893}
23894
23895_ACEOF
23896if ac_fn_c_try_link "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000023897
cristy501c8042011-05-26 17:46:28 +000023898else
23899 ac_cv_type_unsigned_long_long_int=no
23900fi
23901rm -f core conftest.err conftest.$ac_objext \
23902 conftest$ac_exeext conftest.$ac_ext
cristy045228a2013-06-23 11:00:16 +000023903 fi
cristy501c8042011-05-26 17:46:28 +000023904fi
23905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23906$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23907 if test $ac_cv_type_unsigned_long_long_int = yes; then
23908
23909$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23910
23911 fi
23912
23913
cristy708922a2015-05-17 02:33:56 +000023914ac_fn_c_check_type "$LINENO" "locale_t" "ac_cv_type_locale_t" "#include <xlocale.h>
23915"
cristy98beafc2015-05-14 19:55:55 +000023916if test "x$ac_cv_type_locale_t" = xyes; then :
23917
23918cat >>confdefs.h <<_ACEOF
23919#define HAVE_LOCALE_T 1
23920_ACEOF
23921
23922
23923fi
23924
23925
cristyfec31822013-05-23 12:32:12 +000023926# Float_t and double_t are intended to be the the most efficient type.
23927ac_fn_c_check_type "$LINENO" "float_t" "ac_cv_type_float_t" "#include <math.h>
23928"
23929if test "x$ac_cv_type_float_t" = xyes; then :
23930
23931cat >>confdefs.h <<_ACEOF
23932#define HAVE_FLOAT_T 1
23933_ACEOF
23934
23935
23936fi
23937
23938ac_fn_c_check_type "$LINENO" "double_t" "ac_cv_type_double_t" "#include <math.h>
23939"
23940if test "x$ac_cv_type_double_t" = xyes; then :
23941
23942cat >>confdefs.h <<_ACEOF
23943#define HAVE_DOUBLE_T 1
23944_ACEOF
23945
23946
23947fi
23948
23949# The cast to long int works around a bug in the HP C Compiler
23950# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23951# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23952# This bug is HP SR number 8606223364.
23953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float_t" >&5
23954$as_echo_n "checking size of float_t... " >&6; }
23955if ${ac_cv_sizeof_float_t+:} false; then :
23956 $as_echo_n "(cached) " >&6
23957else
23958 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float_t))" "ac_cv_sizeof_float_t" "#include <math.h>
23959"; then :
23960
23961else
23962 if test "$ac_cv_type_float_t" = 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 (float_t)
23966See \`config.log' for more details" "$LINENO" 5; }
23967 else
23968 ac_cv_sizeof_float_t=0
23969 fi
23970fi
23971
23972fi
23973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float_t" >&5
23974$as_echo "$ac_cv_sizeof_float_t" >&6; }
23975
23976
23977
23978cat >>confdefs.h <<_ACEOF
23979#define SIZEOF_FLOAT_T $ac_cv_sizeof_float_t
23980_ACEOF
23981
23982
23983# The cast to long int works around a bug in the HP C Compiler
23984# 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 double_t" >&5
23988$as_echo_n "checking size of double_t... " >&6; }
23989if ${ac_cv_sizeof_double_t+:} false; then :
23990 $as_echo_n "(cached) " >&6
23991else
23992 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double_t))" "ac_cv_sizeof_double_t" "#include <math.h>
23993"; then :
23994
23995else
23996 if test "$ac_cv_type_double_t" = yes; then
23997 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23998$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23999as_fn_error 77 "cannot compute sizeof (double_t)
24000See \`config.log' for more details" "$LINENO" 5; }
24001 else
24002 ac_cv_sizeof_double_t=0
24003 fi
24004fi
24005
24006fi
24007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double_t" >&5
24008$as_echo "$ac_cv_sizeof_double_t" >&6; }
24009
24010
24011
24012cat >>confdefs.h <<_ACEOF
24013#define SIZEOF_DOUBLE_T $ac_cv_sizeof_double_t
24014_ACEOF
24015
24016
24017
cristy9b86f202012-11-28 21:55:35 +000024018# Get size of float, double and long double for comparaison.
24019# The cast to long int works around a bug in the HP C Compiler
24020# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24021# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24022# This bug is HP SR number 8606223364.
24023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
24024$as_echo_n "checking size of float... " >&6; }
24025if ${ac_cv_sizeof_float+:} false; then :
24026 $as_echo_n "(cached) " >&6
24027else
24028 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
24029
24030else
24031 if test "$ac_cv_type_float" = yes; then
24032 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24033$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24034as_fn_error 77 "cannot compute sizeof (float)
24035See \`config.log' for more details" "$LINENO" 5; }
24036 else
24037 ac_cv_sizeof_float=0
24038 fi
24039fi
24040
24041fi
24042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
24043$as_echo "$ac_cv_sizeof_float" >&6; }
24044
24045
24046
24047cat >>confdefs.h <<_ACEOF
24048#define SIZEOF_FLOAT $ac_cv_sizeof_float
24049_ACEOF
24050
24051
24052# The cast to long int works around a bug in the HP C Compiler
24053# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24054# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24055# This bug is HP SR number 8606223364.
24056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
24057$as_echo_n "checking size of double... " >&6; }
24058if ${ac_cv_sizeof_double+:} false; then :
24059 $as_echo_n "(cached) " >&6
24060else
24061 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
24062
24063else
24064 if test "$ac_cv_type_double" = yes; then
24065 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24066$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24067as_fn_error 77 "cannot compute sizeof (double)
24068See \`config.log' for more details" "$LINENO" 5; }
24069 else
24070 ac_cv_sizeof_double=0
24071 fi
24072fi
24073
24074fi
24075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
24076$as_echo "$ac_cv_sizeof_double" >&6; }
24077
24078
24079
24080cat >>confdefs.h <<_ACEOF
24081#define SIZEOF_DOUBLE $ac_cv_sizeof_double
24082_ACEOF
24083
24084
cristy9e2b6242014-03-25 11:49:41 +000024085# The cast to long int works around a bug in the HP C Compiler
cristyfec31822013-05-23 12:32:12 +000024086# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24087# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24088# This bug is HP SR number 8606223364.
24089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
24090$as_echo_n "checking size of long double... " >&6; }
24091if ${ac_cv_sizeof_long_double+:} false; then :
24092 $as_echo_n "(cached) " >&6
24093else
24094 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
24095
24096else
24097 if test "$ac_cv_type_long_double" = yes; then
24098 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24099$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24100as_fn_error 77 "cannot compute sizeof (long double)
24101See \`config.log' for more details" "$LINENO" 5; }
24102 else
24103 ac_cv_sizeof_long_double=0
24104 fi
24105fi
24106
24107fi
24108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
24109$as_echo "$ac_cv_sizeof_long_double" >&6; }
24110
24111
24112
24113cat >>confdefs.h <<_ACEOF
24114#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
24115_ACEOF
24116
24117
cristyf0cf9a22012-10-24 12:05:01 +000024118
cristy3ed852e2009-09-05 21:47:34 +000024119# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
24120# The cast to long int works around a bug in the HP C Compiler
24121# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24122# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24123# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000024125$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024126if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024127 $as_echo_n "(cached) " >&6
24128else
cristy8b350f62009-11-15 23:12:43 +000024129 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 +000024130
cristy3ed852e2009-09-05 21:47:34 +000024131else
cristy8b350f62009-11-15 23:12:43 +000024132 if test "$ac_cv_type_signed_short" = yes; then
24133 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024134$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024135as_fn_error 77 "cannot compute sizeof (signed short)
24136See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024137 else
24138 ac_cv_sizeof_signed_short=0
24139 fi
24140fi
cristy8b350f62009-11-15 23:12:43 +000024141
cristy3ed852e2009-09-05 21:47:34 +000024142fi
cristy8b350f62009-11-15 23:12:43 +000024143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000024144$as_echo "$ac_cv_sizeof_signed_short" >&6; }
24145
24146
24147
24148cat >>confdefs.h <<_ACEOF
24149#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
24150_ACEOF
24151
24152
24153
24154# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
24155# The cast to long int works around a bug in the HP C Compiler
24156# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24157# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24158# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000024160$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024161if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024162 $as_echo_n "(cached) " >&6
24163else
cristy8b350f62009-11-15 23:12:43 +000024164 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 +000024165
cristy3ed852e2009-09-05 21:47:34 +000024166else
cristy8b350f62009-11-15 23:12:43 +000024167 if test "$ac_cv_type_unsigned_short" = yes; then
24168 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024169$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024170as_fn_error 77 "cannot compute sizeof (unsigned short)
24171See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024172 else
24173 ac_cv_sizeof_unsigned_short=0
24174 fi
24175fi
cristy8b350f62009-11-15 23:12:43 +000024176
cristy3ed852e2009-09-05 21:47:34 +000024177fi
cristy8b350f62009-11-15 23:12:43 +000024178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000024179$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
24180
24181
24182
24183cat >>confdefs.h <<_ACEOF
24184#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
24185_ACEOF
24186
24187
24188
24189# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
24190# The cast to long int works around a bug in the HP C Compiler
24191# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24192# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24193# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024195$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024196if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024197 $as_echo_n "(cached) " >&6
24198else
cristy8b350f62009-11-15 23:12:43 +000024199 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 +000024200
cristy3ed852e2009-09-05 21:47:34 +000024201else
cristy8b350f62009-11-15 23:12:43 +000024202 if test "$ac_cv_type_signed_int" = yes; then
24203 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024204$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024205as_fn_error 77 "cannot compute sizeof (signed int)
24206See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024207 else
24208 ac_cv_sizeof_signed_int=0
24209 fi
24210fi
cristy8b350f62009-11-15 23:12:43 +000024211
cristy3ed852e2009-09-05 21:47:34 +000024212fi
cristy8b350f62009-11-15 23:12:43 +000024213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024214$as_echo "$ac_cv_sizeof_signed_int" >&6; }
24215
24216
24217
24218cat >>confdefs.h <<_ACEOF
24219#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
24220_ACEOF
24221
24222
24223
24224# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
24225# The cast to long int works around a bug in the HP C Compiler
24226# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24227# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24228# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024230$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024231if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024232 $as_echo_n "(cached) " >&6
24233else
cristy8b350f62009-11-15 23:12:43 +000024234 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 +000024235
cristy3ed852e2009-09-05 21:47:34 +000024236else
cristy8b350f62009-11-15 23:12:43 +000024237 if test "$ac_cv_type_unsigned_int" = yes; then
24238 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024239$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024240as_fn_error 77 "cannot compute sizeof (unsigned int)
24241See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024242 else
24243 ac_cv_sizeof_unsigned_int=0
24244 fi
24245fi
cristy8b350f62009-11-15 23:12:43 +000024246
cristy3ed852e2009-09-05 21:47:34 +000024247fi
cristy8b350f62009-11-15 23:12:43 +000024248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024249$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
24250
24251
24252
24253cat >>confdefs.h <<_ACEOF
24254#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
24255_ACEOF
24256
24257
24258
24259# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
24260# The cast to long int works around a bug in the HP C Compiler
24261# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24262# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24263# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024265$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024266if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024267 $as_echo_n "(cached) " >&6
24268else
cristy8b350f62009-11-15 23:12:43 +000024269 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 +000024270
cristy3ed852e2009-09-05 21:47:34 +000024271else
cristy8b350f62009-11-15 23:12:43 +000024272 if test "$ac_cv_type_signed_long" = yes; then
24273 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024274$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024275as_fn_error 77 "cannot compute sizeof (signed long)
24276See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024277 else
24278 ac_cv_sizeof_signed_long=0
24279 fi
24280fi
cristy8b350f62009-11-15 23:12:43 +000024281
cristy3ed852e2009-09-05 21:47:34 +000024282fi
cristy8b350f62009-11-15 23:12:43 +000024283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024284$as_echo "$ac_cv_sizeof_signed_long" >&6; }
24285
24286
24287
24288cat >>confdefs.h <<_ACEOF
24289#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
24290_ACEOF
24291
24292
24293
24294# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
24295# The cast to long int works around a bug in the HP C Compiler
24296# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24297# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24298# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024300$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024301if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024302 $as_echo_n "(cached) " >&6
24303else
cristy8b350f62009-11-15 23:12:43 +000024304 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 +000024305
cristy3ed852e2009-09-05 21:47:34 +000024306else
cristy8b350f62009-11-15 23:12:43 +000024307 if test "$ac_cv_type_unsigned_long" = yes; then
24308 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024309$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024310as_fn_error 77 "cannot compute sizeof (unsigned long)
24311See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024312 else
24313 ac_cv_sizeof_unsigned_long=0
24314 fi
24315fi
cristy8b350f62009-11-15 23:12:43 +000024316
cristy3ed852e2009-09-05 21:47:34 +000024317fi
cristy8b350f62009-11-15 23:12:43 +000024318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024319$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
24320
24321
24322
24323cat >>confdefs.h <<_ACEOF
24324#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
24325_ACEOF
24326
24327
24328
24329# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
24330# 'signed long long' is not supported then the value defined is zero.
24331# The cast to long int works around a bug in the HP C Compiler
24332# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24333# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24334# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024336$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024337if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024338 $as_echo_n "(cached) " >&6
24339else
cristy8b350f62009-11-15 23:12:43 +000024340 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 +000024341
cristy3ed852e2009-09-05 21:47:34 +000024342else
cristy8b350f62009-11-15 23:12:43 +000024343 if test "$ac_cv_type_signed_long_long" = yes; then
24344 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024345$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024346as_fn_error 77 "cannot compute sizeof (signed long long)
24347See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024348 else
24349 ac_cv_sizeof_signed_long_long=0
24350 fi
24351fi
cristy8b350f62009-11-15 23:12:43 +000024352
cristy3ed852e2009-09-05 21:47:34 +000024353fi
cristy8b350f62009-11-15 23:12:43 +000024354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024355$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
24356
24357
24358
24359cat >>confdefs.h <<_ACEOF
24360#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
24361_ACEOF
24362
24363
24364
24365# Obtain size of a 'unsigned long long' and define as
24366# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
24367# supported then the value defined is zero.
24368# The cast to long int works around a bug in the HP C Compiler
24369# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24370# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24371# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024373$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024374if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024375 $as_echo_n "(cached) " >&6
24376else
cristy8b350f62009-11-15 23:12:43 +000024377 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 +000024378
cristy3ed852e2009-09-05 21:47:34 +000024379else
cristy8b350f62009-11-15 23:12:43 +000024380 if test "$ac_cv_type_unsigned_long_long" = yes; then
24381 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024382$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024383as_fn_error 77 "cannot compute sizeof (unsigned long long)
24384See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024385 else
24386 ac_cv_sizeof_unsigned_long_long=0
24387 fi
24388fi
cristy8b350f62009-11-15 23:12:43 +000024389
cristy3ed852e2009-09-05 21:47:34 +000024390fi
cristy8b350f62009-11-15 23:12:43 +000024391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024392$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
24393
24394
24395
24396cat >>confdefs.h <<_ACEOF
24397#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
24398_ACEOF
24399
24400
24401
cristyfec31822013-05-23 12:32:12 +000024402# Obtain size of off_t and define as SIZEOF_OFF_T
24403# The cast to long int works around a bug in the HP C Compiler
24404# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24405# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24406# This bug is HP SR number 8606223364.
24407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
24408$as_echo_n "checking size of off_t... " >&6; }
24409if ${ac_cv_sizeof_off_t+:} false; then :
24410 $as_echo_n "(cached) " >&6
24411else
24412 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
24413
24414else
24415 if test "$ac_cv_type_off_t" = yes; then
24416 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24417$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24418as_fn_error 77 "cannot compute sizeof (off_t)
24419See \`config.log' for more details" "$LINENO" 5; }
24420 else
24421 ac_cv_sizeof_off_t=0
24422 fi
24423fi
24424
24425fi
24426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
24427$as_echo "$ac_cv_sizeof_off_t" >&6; }
24428
24429
24430
24431cat >>confdefs.h <<_ACEOF
24432#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
24433_ACEOF
24434
24435
24436
24437# Obtain size of size_t and define as SIZEOF_SIZE_T
24438# The cast to long int works around a bug in the HP C Compiler
24439# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24440# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24441# This bug is HP SR number 8606223364.
24442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
24443$as_echo_n "checking size of size_t... " >&6; }
24444if ${ac_cv_sizeof_size_t+:} false; then :
24445 $as_echo_n "(cached) " >&6
24446else
24447 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
24448
24449else
24450 if test "$ac_cv_type_size_t" = yes; then
24451 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24452$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24453as_fn_error 77 "cannot compute sizeof (size_t)
24454See \`config.log' for more details" "$LINENO" 5; }
24455 else
24456 ac_cv_sizeof_size_t=0
24457 fi
24458fi
24459
24460fi
24461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
24462$as_echo "$ac_cv_sizeof_size_t" >&6; }
24463
24464
24465
24466cat >>confdefs.h <<_ACEOF
24467#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
24468_ACEOF
24469
24470
24471
24472# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
24473# The cast to long int works around a bug in the HP C Compiler
24474# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24475# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24476# This bug is HP SR number 8606223364.
24477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
24478$as_echo_n "checking size of ssize_t... " >&6; }
24479if ${ac_cv_sizeof_ssize_t+:} false; then :
24480 $as_echo_n "(cached) " >&6
24481else
24482 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
24483
24484else
24485 if test "$ac_cv_type_ssize_t" = yes; then
24486 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24487$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24488as_fn_error 77 "cannot compute sizeof (ssize_t)
24489See \`config.log' for more details" "$LINENO" 5; }
24490 else
24491 ac_cv_sizeof_ssize_t=0
24492 fi
24493fi
24494
24495fi
24496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
24497$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
24498
24499
24500
24501cat >>confdefs.h <<_ACEOF
24502#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
24503_ACEOF
24504
24505
24506
cristy3ed852e2009-09-05 21:47:34 +000024507# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
24508# The cast to long int works around a bug in the HP C Compiler
24509# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24510# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24511# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000024513$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024514if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024515 $as_echo_n "(cached) " >&6
24516else
cristy8b350f62009-11-15 23:12:43 +000024517 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 +000024518
cristy3ed852e2009-09-05 21:47:34 +000024519else
cristy8b350f62009-11-15 23:12:43 +000024520 if test "$ac_cv_type_unsigned_intp" = yes; then
24521 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024522$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024523as_fn_error 77 "cannot compute sizeof (unsigned int*)
24524See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024525 else
24526 ac_cv_sizeof_unsigned_intp=0
24527 fi
24528fi
cristy8b350f62009-11-15 23:12:43 +000024529
cristy3ed852e2009-09-05 21:47:34 +000024530fi
cristy8b350f62009-11-15 23:12:43 +000024531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024532$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
24533
24534
24535
24536cat >>confdefs.h <<_ACEOF
24537#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
24538_ACEOF
24539
24540
24541
24542#
24543# Compute sized types for current CPU and compiler options.
24544#
24545
cristy8b350f62009-11-15 23:12:43 +000024546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024547$as_echo_n "checking for signed 8-bit type... " >&6; }
24548INT8_T='signed char'
cristyad38abe2012-12-23 23:03:21 +000024549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
24550$as_echo "$INT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024551
24552
cristy8b350f62009-11-15 23:12:43 +000024553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024554$as_echo_n "checking for unsigned 8-bit type... " >&6; }
24555UINT8_T='unsigned char'
cristyad38abe2012-12-23 23:03:21 +000024556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
24557$as_echo "$UINT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024558
24559
cristy8b350f62009-11-15 23:12:43 +000024560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024561$as_echo_n "checking for signed 16-bit type... " >&6; }
24562INT16_T='signed short'
cristyad38abe2012-12-23 23:03:21 +000024563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
24564$as_echo "$INT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024565
24566
cristy8b350f62009-11-15 23:12:43 +000024567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024568$as_echo_n "checking for unsigned 16-bit type... " >&6; }
24569UINT16_T='unsigned short'
cristyad38abe2012-12-23 23:03:21 +000024570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
24571$as_echo "$UINT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024572
24573
cristy8b350f62009-11-15 23:12:43 +000024574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024575$as_echo_n "checking for signed 32-bit type... " >&6; }
24576INT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024577INT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024578if test $ac_cv_sizeof_signed_int -eq 4; then
24579 INT32_T='signed int'
cristy6d5e20f2011-04-25 13:48:54 +000024580 INT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000024581elif test $ac_cv_sizeof_signed_long -eq 4; then
24582 INT32_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000024583 INT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024584fi
cristyad38abe2012-12-23 23:03:21 +000024585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
24586$as_echo "$INT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024587
24588
cristy6d5e20f2011-04-25 13:48:54 +000024589
cristy8b350f62009-11-15 23:12:43 +000024590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024591$as_echo_n "checking for unsigned 32-bit type... " >&6; }
24592UINT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024593UINT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024594if test $ac_cv_sizeof_unsigned_int -eq 4; then
24595 UINT32_T='unsigned int'
cristy6d5e20f2011-04-25 13:48:54 +000024596 UINT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000024597elif test $ac_cv_sizeof_unsigned_long -eq 4; then
24598 UINT32_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024599 UINT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024600fi
cristyad38abe2012-12-23 23:03:21 +000024601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
24602$as_echo "$UINT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024603
24604
cristy6d5e20f2011-04-25 13:48:54 +000024605
cristy8b350f62009-11-15 23:12:43 +000024606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024607$as_echo_n "checking for signed 64-bit type... " >&6; }
24608INT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024609INT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024610if test $ac_cv_sizeof_signed_long -eq 8; then
24611 INT64_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000024612 INT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024613elif test $ac_cv_sizeof_signed_long_long -eq 8; then
24614 INT64_T='signed long long'
cristy6d5e20f2011-04-25 13:48:54 +000024615 INT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024616fi
cristy3a99dcf2011-12-17 01:29:40 +000024617case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000024618 mingw* )
24619 INT64_F='"I64"'
24620 ;;
24621esac
cristyad38abe2012-12-23 23:03:21 +000024622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
24623$as_echo "$INT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024624
24625
cristy6d5e20f2011-04-25 13:48:54 +000024626
cristy8b350f62009-11-15 23:12:43 +000024627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024628$as_echo_n "checking for unsigned 64-bit type... " >&6; }
24629UINT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024630UINT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024631if test $ac_cv_sizeof_unsigned_long -eq 8; then
24632 UINT64_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024633 UINT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024634elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
24635 UINT64_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000024636 UINT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024637fi
cristy3a99dcf2011-12-17 01:29:40 +000024638case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000024639 mingw* )
24640 UINT64_F='"I64"'
24641 ;;
24642esac
cristyad38abe2012-12-23 23:03:21 +000024643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
24644$as_echo "$UINT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024645
24646
cristy6d5e20f2011-04-25 13:48:54 +000024647
cristy8b350f62009-11-15 23:12:43 +000024648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024649$as_echo_n "checking for unsigned maximum type... " >&6; }
24650UINTMAX_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024651UINTMAX_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024652if test "$UINT64_T" != 'none'; then
24653 UINTMAX_T=$UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +000024654 UINTMAX_F=$UINT64_F
cristy3ed852e2009-09-05 21:47:34 +000024655elif test "$UINT32_T" != 'none'; then
24656 UINTMAX_T=$UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +000024657 UINTMAX_F=$UINT32_F
cristy3ed852e2009-09-05 21:47:34 +000024658fi
cristyad38abe2012-12-23 23:03:21 +000024659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
24660$as_echo "$UINTMAX_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024661
24662
cristy6d5e20f2011-04-25 13:48:54 +000024663
cristy8b350f62009-11-15 23:12:43 +000024664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024665$as_echo_n "checking for pointer difference type... " >&6; }
24666UINTPTR_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024667UINTPTR_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024668if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
24669 UINTPTR_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024670 UINTPTR_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024671elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
24672 UINTPTR_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000024673 UINTPTR_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024674fi
cristyad38abe2012-12-23 23:03:21 +000024675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
24676$as_echo "$UINTPTR_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024677
24678
cristy6d5e20f2011-04-25 13:48:54 +000024679
cristy8b350f62009-11-15 23:12:43 +000024680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000024681$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024682cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024683/* end confdefs.h. */
24684
24685int
24686main ()
24687{
24688{ const char *func = __func__; return(func != 0 ? 0 : 1); }
24689 ;
24690 return 0;
24691}
24692_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024693if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000024694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24695$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024696else
cristyad38abe2012-12-23 23:03:21 +000024697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24698$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000024700$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024702/* end confdefs.h. */
24703
24704int
24705main ()
24706{
24707{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
24708 ;
24709 return 0;
24710}
24711_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024712if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000024713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24714$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024715
cristy8b350f62009-11-15 23:12:43 +000024716$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024717
24718else
cristyad38abe2012-12-23 23:03:21 +000024719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24720$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024721
cristy8b350f62009-11-15 23:12:43 +000024722$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024723
24724fi
cristy3ed852e2009-09-05 21:47:34 +000024725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24726fi
cristy3ed852e2009-09-05 21:47:34 +000024727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24728
24729########
24730#
24731# Check for functions
24732#
24733########
cristy8b350f62009-11-15 23:12:43 +000024734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024735$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024736if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024737 $as_echo_n "(cached) " >&6
24738else
cristy8b350f62009-11-15 23:12:43 +000024739 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024740 ac_cv_func_closedir_void=yes
24741else
cristy8b350f62009-11-15 23:12:43 +000024742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024743/* end confdefs.h. */
24744$ac_includes_default
24745#include <$ac_header_dirent>
24746#ifndef __cplusplus
24747int closedir ();
24748#endif
24749
24750int
24751main ()
24752{
24753return closedir (opendir (".")) != 0;
24754 ;
24755 return 0;
24756}
24757_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024758if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024759 ac_cv_func_closedir_void=no
24760else
cristy8b350f62009-11-15 23:12:43 +000024761 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000024762fi
cristy8b350f62009-11-15 23:12:43 +000024763rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24764 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024765fi
24766
cristy3ed852e2009-09-05 21:47:34 +000024767fi
cristy8b350f62009-11-15 23:12:43 +000024768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024769$as_echo "$ac_cv_func_closedir_void" >&6; }
24770if test $ac_cv_func_closedir_void = yes; then
24771
cristy8b350f62009-11-15 23:12:43 +000024772$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024773
24774fi
24775
cristycd4c5312009-11-22 01:19:08 +000024776
24777
24778
24779 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000024780do :
24781 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000024782ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
24783"
cristy98dddb52010-11-04 00:30:15 +000024784if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024785 cat >>confdefs.h <<_ACEOF
24786#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24787_ACEOF
24788
24789fi
24790
24791done
24792
cristycd4c5312009-11-22 01:19:08 +000024793
24794
24795
24796
24797
24798
24799
cristy3ed852e2009-09-05 21:47:34 +000024800for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000024801do :
24802 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024803if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024804 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024805#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000024806_ACEOF
24807
24808fi
24809done
24810
cristy8b350f62009-11-15 23:12:43 +000024811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000024812$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024813if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024814 $as_echo_n "(cached) " >&6
24815else
cristy8b350f62009-11-15 23:12:43 +000024816 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024817 ac_cv_func_mmap_fixed_mapped=no
24818else
cristy8b350f62009-11-15 23:12:43 +000024819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024820/* end confdefs.h. */
24821$ac_includes_default
24822/* malloc might have been renamed as rpl_malloc. */
24823#undef malloc
24824
24825/* Thanks to Mike Haertel and Jim Avera for this test.
24826 Here is a matrix of mmap possibilities:
24827 mmap private not fixed
24828 mmap private fixed at somewhere currently unmapped
24829 mmap private fixed at somewhere already mapped
24830 mmap shared not fixed
24831 mmap shared fixed at somewhere currently unmapped
24832 mmap shared fixed at somewhere already mapped
24833 For private mappings, we should verify that changes cannot be read()
24834 back from the file, nor mmap's back from the file at a different
24835 address. (There have been systems where private was not correctly
24836 implemented like the infamous i386 svr4.0, and systems where the
24837 VM page cache was not coherent with the file system buffer cache
24838 like early versions of FreeBSD and possibly contemporary NetBSD.)
24839 For shared mappings, we should conversely verify that changes get
24840 propagated back to all the places they're supposed to be.
24841
24842 Grep wants private fixed already mapped.
24843 The main things grep needs to know about mmap are:
24844 * does it exist and is it safe to write into the mmap'd area
24845 * how to use it (BSD variants) */
24846
24847#include <fcntl.h>
24848#include <sys/mman.h>
24849
24850#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24851char *malloc ();
24852#endif
24853
24854/* This mess was copied from the GNU getpagesize.h. */
24855#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000024856# ifdef _SC_PAGESIZE
24857# define getpagesize() sysconf(_SC_PAGESIZE)
24858# else /* no _SC_PAGESIZE */
24859# ifdef HAVE_SYS_PARAM_H
24860# include <sys/param.h>
24861# ifdef EXEC_PAGESIZE
24862# define getpagesize() EXEC_PAGESIZE
24863# else /* no EXEC_PAGESIZE */
24864# ifdef NBPG
24865# define getpagesize() NBPG * CLSIZE
24866# ifndef CLSIZE
24867# define CLSIZE 1
24868# endif /* no CLSIZE */
24869# else /* no NBPG */
24870# ifdef NBPC
24871# define getpagesize() NBPC
24872# else /* no NBPC */
24873# ifdef PAGESIZE
24874# define getpagesize() PAGESIZE
24875# endif /* PAGESIZE */
24876# endif /* no NBPC */
24877# endif /* no NBPG */
24878# endif /* no EXEC_PAGESIZE */
24879# else /* no HAVE_SYS_PARAM_H */
24880# define getpagesize() 8192 /* punt totally */
24881# endif /* no HAVE_SYS_PARAM_H */
24882# endif /* no _SC_PAGESIZE */
24883
24884#endif /* no HAVE_GETPAGESIZE */
24885
24886int
24887main ()
24888{
24889 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000024890 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000024891 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000024892 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000024893
24894 pagesize = getpagesize ();
24895
24896 /* First, make a file with some known garbage in it. */
24897 data = (char *) malloc (pagesize);
24898 if (!data)
24899 return 1;
24900 for (i = 0; i < pagesize; ++i)
24901 *(data + i) = rand ();
24902 umask (0);
24903 fd = creat ("conftest.mmap", 0600);
24904 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024905 return 2;
cristy3ed852e2009-09-05 21:47:34 +000024906 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024907 return 3;
cristy3ed852e2009-09-05 21:47:34 +000024908 close (fd);
24909
cristycd4c5312009-11-22 01:19:08 +000024910 /* Next, check that the tail of a page is zero-filled. File must have
24911 non-zero length, otherwise we risk SIGBUS for entire page. */
24912 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24913 if (fd2 < 0)
24914 return 4;
cristyc54f5d42009-11-27 21:36:31 +000024915 cdata2 = "";
24916 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000024917 return 5;
cristyc54f5d42009-11-27 21:36:31 +000024918 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000024919 if (data2 == MAP_FAILED)
24920 return 6;
24921 for (i = 0; i < pagesize; ++i)
24922 if (*(data2 + i))
24923 return 7;
24924 close (fd2);
24925 if (munmap (data2, pagesize))
24926 return 8;
24927
cristy3ed852e2009-09-05 21:47:34 +000024928 /* Next, try to mmap the file at a fixed address which already has
24929 something else allocated at it. If we can, also make sure that
24930 we see the same garbage. */
24931 fd = open ("conftest.mmap", O_RDWR);
24932 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024933 return 9;
cristy3ed852e2009-09-05 21:47:34 +000024934 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24935 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000024936 return 10;
cristy3ed852e2009-09-05 21:47:34 +000024937 for (i = 0; i < pagesize; ++i)
24938 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000024939 return 11;
cristy3ed852e2009-09-05 21:47:34 +000024940
24941 /* Finally, make sure that changes to the mapped area do not
24942 percolate back to the file as seen by read(). (This is a bug on
24943 some variants of i386 svr4.0.) */
24944 for (i = 0; i < pagesize; ++i)
24945 *(data2 + i) = *(data2 + i) + 1;
24946 data3 = (char *) malloc (pagesize);
24947 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000024948 return 12;
cristy3ed852e2009-09-05 21:47:34 +000024949 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024950 return 13;
cristy3ed852e2009-09-05 21:47:34 +000024951 for (i = 0; i < pagesize; ++i)
24952 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000024953 return 14;
cristy3ed852e2009-09-05 21:47:34 +000024954 close (fd);
24955 return 0;
24956}
24957_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024958if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024959 ac_cv_func_mmap_fixed_mapped=yes
24960else
cristy8b350f62009-11-15 23:12:43 +000024961 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000024962fi
cristy8b350f62009-11-15 23:12:43 +000024963rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24964 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024965fi
24966
cristy3ed852e2009-09-05 21:47:34 +000024967fi
cristy8b350f62009-11-15 23:12:43 +000024968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000024969$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24970if test $ac_cv_func_mmap_fixed_mapped = yes; then
24971
cristy8b350f62009-11-15 23:12:43 +000024972$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024973
24974fi
cristycd4c5312009-11-22 01:19:08 +000024975rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000024976
cristy3ed852e2009-09-05 21:47:34 +000024977for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000024978do :
24979 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000024980if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024981 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024982#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000024983_ACEOF
24984
24985fi
24986
24987done
24988
cristy3ed852e2009-09-05 21:47:34 +000024989for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000024990do :
24991 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24992ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024993if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024994 cat >>confdefs.h <<_ACEOF
24995#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24996_ACEOF
24997
24998fi
24999done
25000
25001if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000025002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000025003$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025004if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025005 $as_echo_n "(cached) " >&6
25006else
cristy8b350f62009-11-15 23:12:43 +000025007 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025008 ac_cv_func_fork_works=cross
25009else
cristy8b350f62009-11-15 23:12:43 +000025010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025011/* end confdefs.h. */
25012$ac_includes_default
25013int
25014main ()
25015{
25016
25017 /* By Ruediger Kuhlmann. */
25018 return fork () < 0;
25019
25020 ;
25021 return 0;
25022}
25023_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025024if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025025 ac_cv_func_fork_works=yes
25026else
cristy8b350f62009-11-15 23:12:43 +000025027 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000025028fi
cristy8b350f62009-11-15 23:12:43 +000025029rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25030 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025031fi
25032
cristy3ed852e2009-09-05 21:47:34 +000025033fi
cristy8b350f62009-11-15 23:12:43 +000025034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000025035$as_echo "$ac_cv_func_fork_works" >&6; }
25036
25037else
25038 ac_cv_func_fork_works=$ac_cv_func_fork
25039fi
25040if test "x$ac_cv_func_fork_works" = xcross; then
25041 case $host in
25042 *-*-amigaos* | *-*-msdosdjgpp*)
25043 # Override, as these systems have only a dummy fork() stub
25044 ac_cv_func_fork_works=no
25045 ;;
25046 *)
25047 ac_cv_func_fork_works=yes
25048 ;;
25049 esac
cristy8b350f62009-11-15 23:12:43 +000025050 { $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 +000025051$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
25052fi
25053ac_cv_func_vfork_works=$ac_cv_func_vfork
25054if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000025055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000025056$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025057if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025058 $as_echo_n "(cached) " >&6
25059else
cristy8b350f62009-11-15 23:12:43 +000025060 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025061 ac_cv_func_vfork_works=cross
25062else
cristy8b350f62009-11-15 23:12:43 +000025063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025064/* end confdefs.h. */
25065/* Thanks to Paul Eggert for this test. */
25066$ac_includes_default
25067#include <sys/wait.h>
25068#ifdef HAVE_VFORK_H
25069# include <vfork.h>
25070#endif
25071/* On some sparc systems, changes by the child to local and incoming
25072 argument registers are propagated back to the parent. The compiler
25073 is told about this with #include <vfork.h>, but some compilers
25074 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
25075 static variable whose address is put into a register that is
25076 clobbered by the vfork. */
25077static void
25078#ifdef __cplusplus
25079sparc_address_test (int arg)
25080# else
25081sparc_address_test (arg) int arg;
25082#endif
25083{
25084 static pid_t child;
25085 if (!child) {
25086 child = vfork ();
25087 if (child < 0) {
25088 perror ("vfork");
25089 _exit(2);
25090 }
25091 if (!child) {
25092 arg = getpid();
25093 write(-1, "", 0);
25094 _exit (arg);
25095 }
25096 }
25097}
25098
25099int
25100main ()
25101{
25102 pid_t parent = getpid ();
25103 pid_t child;
25104
25105 sparc_address_test (0);
25106
25107 child = vfork ();
25108
25109 if (child == 0) {
25110 /* Here is another test for sparc vfork register problems. This
25111 test uses lots of local variables, at least as many local
25112 variables as main has allocated so far including compiler
25113 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25114 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25115 reuse the register of parent for one of the local variables,
25116 since it will think that parent can't possibly be used any more
25117 in this routine. Assigning to the local variable will thus
25118 munge parent in the parent process. */
25119 pid_t
25120 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25121 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25122 /* Convince the compiler that p..p7 are live; otherwise, it might
25123 use the same hardware register for all 8 local variables. */
25124 if (p != p1 || p != p2 || p != p3 || p != p4
25125 || p != p5 || p != p6 || p != p7)
25126 _exit(1);
25127
25128 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25129 from child file descriptors. If the child closes a descriptor
25130 before it execs or exits, this munges the parent's descriptor
25131 as well. Test for this by closing stdout in the child. */
25132 _exit(close(fileno(stdout)) != 0);
25133 } else {
25134 int status;
25135 struct stat st;
25136
25137 while (wait(&status) != child)
25138 ;
25139 return (
25140 /* Was there some problem with vforking? */
25141 child < 0
25142
25143 /* Did the child fail? (This shouldn't happen.) */
25144 || status
25145
25146 /* Did the vfork/compiler bug occur? */
25147 || parent != getpid()
25148
25149 /* Did the file descriptor bug occur? */
25150 || fstat(fileno(stdout), &st) != 0
25151 );
25152 }
25153}
25154_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025155if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025156 ac_cv_func_vfork_works=yes
25157else
cristy8b350f62009-11-15 23:12:43 +000025158 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000025159fi
cristy8b350f62009-11-15 23:12:43 +000025160rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25161 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025162fi
25163
cristy3ed852e2009-09-05 21:47:34 +000025164fi
cristy8b350f62009-11-15 23:12:43 +000025165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000025166$as_echo "$ac_cv_func_vfork_works" >&6; }
25167
25168fi;
25169if test "x$ac_cv_func_fork_works" = xcross; then
25170 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000025171 { $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 +000025172$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25173fi
25174
25175if test "x$ac_cv_func_vfork_works" = xyes; then
25176
cristy8b350f62009-11-15 23:12:43 +000025177$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025178
25179else
25180
cristy8b350f62009-11-15 23:12:43 +000025181$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025182
25183fi
25184if test "x$ac_cv_func_fork_works" = xyes; then
25185
cristy8b350f62009-11-15 23:12:43 +000025186$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025187
25188fi
25189
cristy8b350f62009-11-15 23:12:43 +000025190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025191$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025192if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025193 $as_echo_n "(cached) " >&6
25194else
cristy8b350f62009-11-15 23:12:43 +000025195 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025196 ac_cv_func_memcmp_working=no
25197else
cristy8b350f62009-11-15 23:12:43 +000025198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025199/* end confdefs.h. */
25200$ac_includes_default
25201int
25202main ()
25203{
25204
25205 /* Some versions of memcmp are not 8-bit clean. */
25206 char c0 = '\100', c1 = '\200', c2 = '\201';
25207 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
25208 return 1;
25209
25210 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
25211 or more and with at least one buffer not starting on a 4-byte boundary.
25212 William Lewis provided this test program. */
25213 {
25214 char foo[21];
25215 char bar[21];
25216 int i;
25217 for (i = 0; i < 4; i++)
25218 {
25219 char *a = foo + i;
25220 char *b = bar + i;
25221 strcpy (a, "--------01111111");
25222 strcpy (b, "--------10000000");
25223 if (memcmp (a, b, 16) >= 0)
25224 return 1;
25225 }
25226 return 0;
25227 }
25228
25229 ;
25230 return 0;
25231}
25232_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025233if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025234 ac_cv_func_memcmp_working=yes
25235else
cristy8b350f62009-11-15 23:12:43 +000025236 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000025237fi
cristy8b350f62009-11-15 23:12:43 +000025238rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25239 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025240fi
25241
cristy3ed852e2009-09-05 21:47:34 +000025242fi
cristy8b350f62009-11-15 23:12:43 +000025243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000025244$as_echo "$ac_cv_func_memcmp_working" >&6; }
25245test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
25246 *" memcmp.$ac_objext "* ) ;;
25247 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
25248 ;;
25249esac
25250
25251
cristy3ed852e2009-09-05 21:47:34 +000025252for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000025253do :
25254 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25255ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000025256if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025257 cat >>confdefs.h <<_ACEOF
25258#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25259_ACEOF
25260
25261fi
25262
25263done
25264
cristy8b350f62009-11-15 23:12:43 +000025265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000025266$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025267if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025268 $as_echo_n "(cached) " >&6
25269else
25270 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
25271 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
25272 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
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$ac_includes_default
25276#ifdef HAVE_SYS_SELECT_H
25277# include <sys/select.h>
25278#endif
25279#ifdef HAVE_SYS_SOCKET_H
25280# include <sys/socket.h>
25281#endif
25282
25283int
25284main ()
25285{
25286extern int select ($ac_arg1,
25287 $ac_arg234, $ac_arg234, $ac_arg234,
25288 $ac_arg5);
25289 ;
25290 return 0;
25291}
25292_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025293if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025294 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000025295fi
cristy3ed852e2009-09-05 21:47:34 +000025296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25297 done
25298 done
25299done
25300# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000025301: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000025302
25303fi
cristy8b350f62009-11-15 23:12:43 +000025304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000025305$as_echo "$ac_cv_func_select_args" >&6; }
25306ac_save_IFS=$IFS; IFS=','
25307set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
25308IFS=$ac_save_IFS
25309shift
25310
25311cat >>confdefs.h <<_ACEOF
25312#define SELECT_TYPE_ARG1 $1
25313_ACEOF
25314
25315
25316cat >>confdefs.h <<_ACEOF
25317#define SELECT_TYPE_ARG234 ($2)
25318_ACEOF
25319
25320
25321cat >>confdefs.h <<_ACEOF
25322#define SELECT_TYPE_ARG5 ($3)
25323_ACEOF
25324
25325rm -f conftest*
25326
cristyda16f162011-02-19 23:52:17 +000025327if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025328 $as_echo_n "(cached) " >&6
25329else
25330 ac_cv_func_setvbuf_reversed=no
25331fi
25332
25333
cristy8b350f62009-11-15 23:12:43 +000025334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000025335$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025336if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025337 $as_echo_n "(cached) " >&6
25338else
cristy8b350f62009-11-15 23:12:43 +000025339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025340/* end confdefs.h. */
25341#include <sys/types.h>
25342#include <signal.h>
25343
25344int
25345main ()
25346{
25347return *(signal (0, 0)) (0) == 1;
25348 ;
25349 return 0;
25350}
25351_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025352if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025353 ac_cv_type_signal=int
25354else
cristy8b350f62009-11-15 23:12:43 +000025355 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000025356fi
cristy3ed852e2009-09-05 21:47:34 +000025357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25358fi
cristy8b350f62009-11-15 23:12:43 +000025359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000025360$as_echo "$ac_cv_type_signal" >&6; }
25361
25362cat >>confdefs.h <<_ACEOF
25363#define RETSIGTYPE $ac_cv_type_signal
25364_ACEOF
25365
25366
cristy8b350f62009-11-15 23:12:43 +000025367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000025368$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025369if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025370 $as_echo_n "(cached) " >&6
25371else
cristy8b350f62009-11-15 23:12:43 +000025372 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025373 ac_cv_func_strtod=no
25374else
cristy8b350f62009-11-15 23:12:43 +000025375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025376/* end confdefs.h. */
25377
25378$ac_includes_default
25379#ifndef strtod
25380double strtod ();
25381#endif
25382int
25383main()
25384{
25385 {
25386 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
25387 char *string = " +69";
25388 char *term;
25389 double value;
25390 value = strtod (string, &term);
25391 if (value != 69 || term != (string + 4))
25392 return 1;
25393 }
25394
25395 {
25396 /* Under Solaris 2.4, strtod returns the wrong value for the
25397 terminating character under some conditions. */
25398 char *string = "NaN";
25399 char *term;
25400 strtod (string, &term);
25401 if (term != string && *(term - 1) == 0)
25402 return 1;
25403 }
25404 return 0;
25405}
25406
25407_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025408if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025409 ac_cv_func_strtod=yes
25410else
cristy8b350f62009-11-15 23:12:43 +000025411 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000025412fi
cristy8b350f62009-11-15 23:12:43 +000025413rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25414 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025415fi
25416
cristy3ed852e2009-09-05 21:47:34 +000025417fi
cristy8b350f62009-11-15 23:12:43 +000025418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000025419$as_echo "$ac_cv_func_strtod" >&6; }
25420if test $ac_cv_func_strtod = no; then
25421 case " $LIBOBJS " in
25422 *" strtod.$ac_objext "* ) ;;
25423 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
25424 ;;
25425esac
25426
cristy8b350f62009-11-15 23:12:43 +000025427ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000025428if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025429
cristy3ed852e2009-09-05 21:47:34 +000025430fi
25431
cristy3ed852e2009-09-05 21:47:34 +000025432if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000025433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000025434$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025435if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025436 $as_echo_n "(cached) " >&6
25437else
25438 ac_check_lib_save_LIBS=$LIBS
25439LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025440cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025441/* end confdefs.h. */
25442
25443/* Override any GCC internal prototype to avoid an error.
25444 Use char because int might match the return type of a GCC
25445 builtin and then its argument prototype would still apply. */
25446#ifdef __cplusplus
25447extern "C"
25448#endif
25449char pow ();
25450int
25451main ()
25452{
25453return pow ();
25454 ;
25455 return 0;
25456}
25457_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025458if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025459 ac_cv_lib_m_pow=yes
25460else
cristy8b350f62009-11-15 23:12:43 +000025461 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000025462fi
cristy8b350f62009-11-15 23:12:43 +000025463rm -f core conftest.err conftest.$ac_objext \
25464 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025465LIBS=$ac_check_lib_save_LIBS
25466fi
cristy8b350f62009-11-15 23:12:43 +000025467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000025468$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000025469if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025470 POW_LIB=-lm
25471else
cristy8b350f62009-11-15 23:12:43 +000025472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000025473$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
25474fi
25475
25476fi
25477
25478fi
25479
cristy7d4a1d62011-10-13 15:54:12 +000025480ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
25481if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
25482 ac_have_decl=1
25483else
25484 ac_have_decl=0
25485fi
25486
25487cat >>confdefs.h <<_ACEOF
25488#define HAVE_DECL_STRERROR_R $ac_have_decl
25489_ACEOF
25490
25491for ac_func in strerror_r
25492do :
25493 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
25494if test "x$ac_cv_func_strerror_r" = xyes; then :
25495 cat >>confdefs.h <<_ACEOF
25496#define HAVE_STRERROR_R 1
25497_ACEOF
25498
25499fi
25500done
25501
25502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
25503$as_echo_n "checking whether strerror_r returns char *... " >&6; }
25504if ${ac_cv_func_strerror_r_char_p+:} false; then :
25505 $as_echo_n "(cached) " >&6
25506else
25507
25508 ac_cv_func_strerror_r_char_p=no
25509 if test $ac_cv_have_decl_strerror_r = yes; then
25510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25511/* end confdefs.h. */
25512$ac_includes_default
25513int
25514main ()
25515{
25516
25517 char buf[100];
25518 char x = *strerror_r (0, buf, sizeof buf);
25519 char *p = strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000025520 return !p || x;
cristy7d4a1d62011-10-13 15:54:12 +000025521
25522 ;
25523 return 0;
25524}
25525_ACEOF
25526if ac_fn_c_try_compile "$LINENO"; then :
25527 ac_cv_func_strerror_r_char_p=yes
25528fi
25529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25530 else
25531 # strerror_r is not declared. Choose between
25532 # systems that have relatively inaccessible declarations for the
25533 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
25534 # former has a strerror_r that returns char*, while the latter
25535 # has a strerror_r that returns `int'.
25536 # This test should segfault on the DEC system.
25537 if test "$cross_compiling" = yes; then :
25538 :
25539else
25540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25541/* end confdefs.h. */
25542$ac_includes_default
25543 extern char *strerror_r ();
25544int
25545main ()
25546{
25547char buf[100];
25548 char x = *strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000025549 return ! isalpha (x);
cristy7d4a1d62011-10-13 15:54:12 +000025550 ;
25551 return 0;
25552}
25553_ACEOF
25554if ac_fn_c_try_run "$LINENO"; then :
25555 ac_cv_func_strerror_r_char_p=yes
25556fi
25557rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25558 conftest.$ac_objext conftest.beam conftest.$ac_ext
25559fi
25560
25561 fi
25562
25563fi
25564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
25565$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
25566if test $ac_cv_func_strerror_r_char_p = yes; then
25567
25568$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
25569
25570fi
25571
cristy3ed852e2009-09-05 21:47:34 +000025572for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000025573do :
25574 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000025575if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025576 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025577#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000025578_ACEOF
25579
cristy8b350f62009-11-15 23:12:43 +000025580ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000025581if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025582
cristy8b350f62009-11-15 23:12:43 +000025583$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025584
25585fi
25586
25587fi
25588done
25589
25590
25591
cristy161b9262010-03-20 19:34:32 +000025592#
25593# Find math library
25594#
25595MATH_LIBS=''
25596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
25597$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025598if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000025599 $as_echo_n "(cached) " >&6
25600else
25601 ac_check_lib_save_LIBS=$LIBS
25602LIBS="-lm $LIBS"
25603cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25604/* end confdefs.h. */
25605
25606/* Override any GCC internal prototype to avoid an error.
25607 Use char because int might match the return type of a GCC
25608 builtin and then its argument prototype would still apply. */
25609#ifdef __cplusplus
25610extern "C"
25611#endif
25612char sqrt ();
25613int
25614main ()
25615{
25616return sqrt ();
25617 ;
25618 return 0;
25619}
25620_ACEOF
25621if ac_fn_c_try_link "$LINENO"; then :
25622 ac_cv_lib_m_sqrt=yes
25623else
25624 ac_cv_lib_m_sqrt=no
25625fi
25626rm -f core conftest.err conftest.$ac_objext \
25627 conftest$ac_exeext conftest.$ac_ext
25628LIBS=$ac_check_lib_save_LIBS
25629fi
25630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
25631$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000025632if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000025633 MATH_LIBS="-lm"
25634fi
25635
25636LIBS="$MATH_LIBS $LIBS"
25637
25638
cristy85572162013-01-04 19:19:32 +000025639#
25640# Find socket library
25641#
cristy8a5d7f42013-01-06 15:24:33 +000025642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
25643$as_echo_n "checking for library containing gethostbyname... " >&6; }
25644if ${ac_cv_search_gethostbyname+:} false; then :
25645 $as_echo_n "(cached) " >&6
25646else
25647 ac_func_search_save_LIBS=$LIBS
25648cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25649/* end confdefs.h. */
25650
25651/* Override any GCC internal prototype to avoid an error.
25652 Use char because int might match the return type of a GCC
25653 builtin and then its argument prototype would still apply. */
25654#ifdef __cplusplus
25655extern "C"
25656#endif
25657char gethostbyname ();
25658int
25659main ()
25660{
25661return gethostbyname ();
25662 ;
25663 return 0;
25664}
25665_ACEOF
25666for ac_lib in '' resolv nsl; do
25667 if test -z "$ac_lib"; then
25668 ac_res="none required"
25669 else
25670 ac_res=-l$ac_lib
25671 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25672 fi
25673 if ac_fn_c_try_link "$LINENO"; then :
25674 ac_cv_search_gethostbyname=$ac_res
25675fi
25676rm -f core conftest.err conftest.$ac_objext \
25677 conftest$ac_exeext
25678 if ${ac_cv_search_gethostbyname+:} false; then :
25679 break
25680fi
25681done
25682if ${ac_cv_search_gethostbyname+:} false; then :
25683
25684else
25685 ac_cv_search_gethostbyname=no
25686fi
25687rm conftest.$ac_ext
25688LIBS=$ac_func_search_save_LIBS
25689fi
25690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
25691$as_echo "$ac_cv_search_gethostbyname" >&6; }
25692ac_res=$ac_cv_search_gethostbyname
25693if test "$ac_res" != no; then :
25694 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25695
25696fi
25697
cristy85572162013-01-04 19:19:32 +000025698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
25699$as_echo_n "checking for library containing socket... " >&6; }
25700if ${ac_cv_search_socket+:} false; then :
25701 $as_echo_n "(cached) " >&6
25702else
25703 ac_func_search_save_LIBS=$LIBS
25704cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25705/* end confdefs.h. */
25706
25707/* Override any GCC internal prototype to avoid an error.
25708 Use char because int might match the return type of a GCC
25709 builtin and then its argument prototype would still apply. */
25710#ifdef __cplusplus
25711extern "C"
25712#endif
25713char socket ();
25714int
25715main ()
25716{
25717return socket ();
25718 ;
25719 return 0;
25720}
25721_ACEOF
25722for ac_lib in '' socket; do
25723 if test -z "$ac_lib"; then
25724 ac_res="none required"
25725 else
25726 ac_res=-l$ac_lib
25727 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25728 fi
25729 if ac_fn_c_try_link "$LINENO"; then :
25730 ac_cv_search_socket=$ac_res
25731fi
25732rm -f core conftest.err conftest.$ac_objext \
25733 conftest$ac_exeext
25734 if ${ac_cv_search_socket+:} false; then :
25735 break
25736fi
25737done
25738if ${ac_cv_search_socket+:} false; then :
25739
25740else
25741 ac_cv_search_socket=no
25742fi
25743rm conftest.$ac_ext
25744LIBS=$ac_func_search_save_LIBS
25745fi
25746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
25747$as_echo "$ac_cv_search_socket" >&6; }
25748ac_res=$ac_cv_search_socket
25749if test "$ac_res" != no; then :
25750 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25751
cristy85572162013-01-04 19:19:32 +000025752
cristy8a5d7f42013-01-06 15:24:33 +000025753$as_echo "#define HAVE_SOCKET 1" >>confdefs.h
cristy85572162013-01-04 19:19:32 +000025754
cristy03f187e2013-01-24 00:22:19 +000025755 MAGICK_FEATURES="DPC $MAGICK_FEATURES"
cristy85572162013-01-04 19:19:32 +000025756
25757fi
25758
25759
cristya29f2b82015-05-30 14:10:30 +000025760for 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 sendfile 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 +000025761do :
25762 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25763ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025764if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025765 cat >>confdefs.h <<_ACEOF
25766#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25767_ACEOF
25768
25769fi
25770done
25771
25772
cristye43a45e2009-09-28 14:49:00 +000025773#
25774# Check for clock_gettime().
25775#
cristy8b350f62009-11-15 23:12:43 +000025776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025777$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025778if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025779 $as_echo_n "(cached) " >&6
25780else
25781 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000025782cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025783/* end confdefs.h. */
25784
25785/* Override any GCC internal prototype to avoid an error.
25786 Use char because int might match the return type of a GCC
25787 builtin and then its argument prototype would still apply. */
25788#ifdef __cplusplus
25789extern "C"
25790#endif
25791char clock_gettime ();
25792int
25793main ()
25794{
25795return clock_gettime ();
25796 ;
25797 return 0;
25798}
25799_ACEOF
25800for ac_lib in '' rt; do
25801 if test -z "$ac_lib"; then
25802 ac_res="none required"
25803 else
25804 ac_res=-l$ac_lib
25805 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25806 fi
cristy8b350f62009-11-15 23:12:43 +000025807 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025808 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000025809fi
cristy8b350f62009-11-15 23:12:43 +000025810rm -f core conftest.err conftest.$ac_objext \
25811 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000025812 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025813 break
25814fi
25815done
cristyda16f162011-02-19 23:52:17 +000025816if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000025817
cristye43a45e2009-09-28 14:49:00 +000025818else
25819 ac_cv_search_clock_gettime=no
25820fi
25821rm conftest.$ac_ext
25822LIBS=$ac_func_search_save_LIBS
25823fi
cristy8b350f62009-11-15 23:12:43 +000025824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025825$as_echo "$ac_cv_search_clock_gettime" >&6; }
25826ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000025827if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000025828 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25829
25830
cristy8b350f62009-11-15 23:12:43 +000025831$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025832
cristy8b350f62009-11-15 23:12:43 +000025833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000025834$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025836/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000025837
25838 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000025839int
25840main ()
25841{
25842clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000025843 ;
25844 return 0;
25845}
25846_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025847if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025848
cristyad38abe2012-12-23 23:03:21 +000025849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25850$as_echo "yes" >&6; }
cristye43a45e2009-09-28 14:49:00 +000025851
cristy8b350f62009-11-15 23:12:43 +000025852$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025853
25854
25855else
cristyad38abe2012-12-23 23:03:21 +000025856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25857$as_echo "no" >&6; }
cristye43a45e2009-09-28 14:49:00 +000025858
25859fi
cristye43a45e2009-09-28 14:49:00 +000025860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25861
25862else
25863
cristy8b350f62009-11-15 23:12:43 +000025864 for ac_func in gettimeofday ftime
25865do :
25866 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25867ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025868if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000025869 cat >>confdefs.h <<_ACEOF
25870#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25871_ACEOF
25872 break
25873fi
25874done
25875
25876
25877
25878fi
25879
25880
cristy3ed852e2009-09-05 21:47:34 +000025881########
25882#
25883# Check for function prototypes
25884#
25885########
25886
cristy8b350f62009-11-15 23:12:43 +000025887ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000025888#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025889"
cristyda16f162011-02-19 23:52:17 +000025890if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025891 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025892else
cristy8b350f62009-11-15 23:12:43 +000025893 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025894fi
25895
cristy3ed852e2009-09-05 21:47:34 +000025896cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025897#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025898_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025899ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000025900#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025901"
cristyda16f162011-02-19 23:52:17 +000025902if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025903 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025904else
cristy8b350f62009-11-15 23:12:43 +000025905 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025906fi
25907
cristy3ed852e2009-09-05 21:47:34 +000025908cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025909#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025910_ACEOF
25911
25912
cristy8b350f62009-11-15 23:12:43 +000025913ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000025914#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000025915"
cristyda16f162011-02-19 23:52:17 +000025916if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025917 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025918else
cristy8b350f62009-11-15 23:12:43 +000025919 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025920fi
25921
cristy3ed852e2009-09-05 21:47:34 +000025922cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025923#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025924_ACEOF
25925
25926
cristy8b350f62009-11-15 23:12:43 +000025927ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000025928#include <stdio.h>
25929#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000025930"
cristyda16f162011-02-19 23:52:17 +000025931if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025932 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025933else
cristy8b350f62009-11-15 23:12:43 +000025934 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025935fi
25936
cristy3ed852e2009-09-05 21:47:34 +000025937cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025938#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025939_ACEOF
25940
25941
cristy3ed852e2009-09-05 21:47:34 +000025942########
25943#
25944# C++ Support Tests (For Magick++)
25945#
25946########
25947have_magick_plus_plus='no'
25948if test "$with_magick_plus_plus" = 'yes'; then
25949 OLIBS="$LIBS"
25950 LIBS=''
25951 ac_ext=cpp
25952ac_cpp='$CXXCPP $CPPFLAGS'
25953ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25954ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25955ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25956
25957
25958 # Full set of headers used...
25959 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
25960 # functional iomanip iosfwd iostream iterator list string strstream utility
25961 ac_ext=cpp
25962ac_cpp='$CXXCPP $CPPFLAGS'
25963ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25964ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25965ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25966
25967 ac_ext=cpp
25968ac_cpp='$CXXCPP $CPPFLAGS'
25969ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25970ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25971ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25972if test -z "$CXX"; then
25973 if test -n "$CCC"; then
25974 CXX=$CCC
25975 else
25976 if test -n "$ac_tool_prefix"; then
25977 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25978 do
25979 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
25980set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025982$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025983if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025984 $as_echo_n "(cached) " >&6
25985else
25986 if test -n "$CXX"; then
25987 ac_cv_prog_CXX="$CXX" # Let the user override the test.
25988else
25989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25990for as_dir in $PATH
25991do
25992 IFS=$as_save_IFS
25993 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025994 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025996 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025998 break 2
25999 fi
26000done
cristy8b350f62009-11-15 23:12:43 +000026001 done
cristy3ed852e2009-09-05 21:47:34 +000026002IFS=$as_save_IFS
26003
26004fi
26005fi
26006CXX=$ac_cv_prog_CXX
26007if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000026008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000026009$as_echo "$CXX" >&6; }
26010else
cristy8b350f62009-11-15 23:12:43 +000026011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026012$as_echo "no" >&6; }
26013fi
26014
26015
26016 test -n "$CXX" && break
26017 done
26018fi
26019if test -z "$CXX"; then
26020 ac_ct_CXX=$CXX
26021 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
26022do
26023 # Extract the first word of "$ac_prog", so it can be a program name with args.
26024set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000026025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000026026$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026027if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026028 $as_echo_n "(cached) " >&6
26029else
26030 if test -n "$ac_ct_CXX"; then
26031 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
26032else
26033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26034for as_dir in $PATH
26035do
26036 IFS=$as_save_IFS
26037 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000026038 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000026039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000026040 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000026041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026042 break 2
26043 fi
26044done
cristy8b350f62009-11-15 23:12:43 +000026045 done
cristy3ed852e2009-09-05 21:47:34 +000026046IFS=$as_save_IFS
26047
26048fi
26049fi
26050ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
26051if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000026052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000026053$as_echo "$ac_ct_CXX" >&6; }
26054else
cristy8b350f62009-11-15 23:12:43 +000026055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026056$as_echo "no" >&6; }
26057fi
26058
26059
26060 test -n "$ac_ct_CXX" && break
26061done
26062
26063 if test "x$ac_ct_CXX" = x; then
26064 CXX="g++"
26065 else
26066 case $cross_compiling:$ac_tool_warned in
26067yes:)
cristy8b350f62009-11-15 23:12:43 +000026068{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000026069$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26070ac_tool_warned=yes ;;
26071esac
26072 CXX=$ac_ct_CXX
26073 fi
26074fi
26075
26076 fi
26077fi
26078# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000026079$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000026080set X $ac_compile
26081ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000026082for ac_option in --version -v -V -qversion; do
26083 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000026084case "(($ac_try" in
26085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26086 *) ac_try_echo=$ac_try;;
26087esac
cristy8b350f62009-11-15 23:12:43 +000026088eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
26089$as_echo "$ac_try_echo"; } >&5
26090 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000026091 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026092 if test -s conftest.err; then
26093 sed '10a\
26094... rest of stderr output deleted ...
26095 10q' conftest.err >conftest.er1
26096 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000026097 fi
cristycd4c5312009-11-22 01:19:08 +000026098 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000026099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26100 test $ac_status = 0; }
26101done
cristy3ed852e2009-09-05 21:47:34 +000026102
cristy8b350f62009-11-15 23:12:43 +000026103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000026104$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026105if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026106 $as_echo_n "(cached) " >&6
26107else
cristy8b350f62009-11-15 23:12:43 +000026108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026109/* end confdefs.h. */
26110
26111int
26112main ()
26113{
26114#ifndef __GNUC__
26115 choke me
26116#endif
26117
26118 ;
26119 return 0;
26120}
26121_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026122if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026123 ac_compiler_gnu=yes
26124else
cristy8b350f62009-11-15 23:12:43 +000026125 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000026126fi
cristy3ed852e2009-09-05 21:47:34 +000026127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26128ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
26129
26130fi
cristy8b350f62009-11-15 23:12:43 +000026131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000026132$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
26133if test $ac_compiler_gnu = yes; then
26134 GXX=yes
26135else
26136 GXX=
26137fi
26138ac_test_CXXFLAGS=${CXXFLAGS+set}
26139ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000026140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000026141$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026142if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026143 $as_echo_n "(cached) " >&6
26144else
26145 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
26146 ac_cxx_werror_flag=yes
26147 ac_cv_prog_cxx_g=no
26148 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000026149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026150/* end confdefs.h. */
26151
26152int
26153main ()
26154{
26155
26156 ;
26157 return 0;
26158}
26159_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026160if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026161 ac_cv_prog_cxx_g=yes
26162else
cristy8b350f62009-11-15 23:12:43 +000026163 CXXFLAGS=""
26164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026165/* end confdefs.h. */
26166
26167int
26168main ()
26169{
26170
26171 ;
26172 return 0;
26173}
26174_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026175if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026176
cristy8b350f62009-11-15 23:12:43 +000026177else
26178 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000026179 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000026180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026181/* end confdefs.h. */
26182
26183int
26184main ()
26185{
26186
26187 ;
26188 return 0;
26189}
26190_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026191if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026192 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000026193fi
cristy3ed852e2009-09-05 21:47:34 +000026194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26195fi
cristy3ed852e2009-09-05 21:47:34 +000026196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26197fi
cristy3ed852e2009-09-05 21:47:34 +000026198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26199 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
26200fi
cristy8b350f62009-11-15 23:12:43 +000026201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000026202$as_echo "$ac_cv_prog_cxx_g" >&6; }
26203if test "$ac_test_CXXFLAGS" = set; then
26204 CXXFLAGS=$ac_save_CXXFLAGS
26205elif test $ac_cv_prog_cxx_g = yes; then
26206 if test "$GXX" = yes; then
26207 CXXFLAGS="-g -O2"
26208 else
26209 CXXFLAGS="-g"
26210 fi
26211else
26212 if test "$GXX" = yes; then
26213 CXXFLAGS="-O2"
26214 else
26215 CXXFLAGS=
26216 fi
26217fi
26218ac_ext=cpp
26219ac_cpp='$CXXCPP $CPPFLAGS'
26220ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26221ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26222ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26223
cristy73bd4a52010-10-05 11:24:23 +000026224depcc="$CXX" am_compiler_list=
26225
26226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
26227$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026228if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026229 $as_echo_n "(cached) " >&6
26230else
26231 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
26232 # We make a subdir and do the tests there. Otherwise we can end up
26233 # making bogus files that we don't know about and never remove. For
26234 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +000026235 # making a dummy file named 'D' -- because '-MD' means "put the output
26236 # in D".
cristy7247bba2012-02-05 16:37:27 +000026237 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +000026238 mkdir conftest.dir
26239 # Copy depcomp to subdir because otherwise we won't find it if we're
26240 # using a relative directory.
26241 cp "$am_depcomp" conftest.dir
26242 cd conftest.dir
26243 # We will build objects and dependencies in a subdirectory because
26244 # it helps to detect inapplicable dependency modes. For instance
26245 # both Tru64's cc and ICC support -MD to output dependencies as a
26246 # side effect of compilation, but ICC will put the dependencies in
26247 # the current directory while Tru64 will put them in the object
26248 # directory.
26249 mkdir sub
26250
26251 am_cv_CXX_dependencies_compiler_type=none
26252 if test "$am_compiler_list" = ""; then
26253 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
26254 fi
26255 am__universal=false
26256 case " $depcc " in #(
26257 *\ -arch\ *\ -arch\ *) am__universal=true ;;
26258 esac
26259
26260 for depmode in $am_compiler_list; do
26261 # Setup a source with many dependencies, because some compilers
26262 # like to wrap large dependency lists on column 80 (with \), and
26263 # we should not choose a depcomp mode which is confused by this.
26264 #
26265 # We need to recreate these files for each test, as the compiler may
26266 # overwrite some of them when testing with obscure command lines.
26267 # This happens at least with the AIX C compiler.
26268 : > sub/conftest.c
26269 for i in 1 2 3 4 5 6; do
26270 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +000026271 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
26272 # Solaris 10 /bin/sh.
26273 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +000026274 done
26275 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
26276
cristyc0890a62012-07-19 00:18:20 +000026277 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +000026278 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +000026279 # handle '-M -o', and we need to detect this. Also, some Intel
26280 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +000026281 am__obj=sub/conftest.${OBJEXT-o}
26282 am__minus_obj="-o $am__obj"
26283 case $depmode in
26284 gcc)
26285 # This depmode causes a compiler race in universal mode.
26286 test "$am__universal" = false || continue
26287 ;;
26288 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +000026289 # After this tag, mechanisms are not by side-effect, so they'll
26290 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +000026291 if test "x$enable_dependency_tracking" = xyes; then
26292 continue
26293 else
26294 break
26295 fi
26296 ;;
cristy7247bba2012-02-05 16:37:27 +000026297 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +000026298 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +000026299 # not run yet. These depmodes are late enough in the game, and
26300 # so weak that their functioning should not be impacted.
26301 am__obj=conftest.${OBJEXT-o}
26302 am__minus_obj=
26303 ;;
26304 none) break ;;
26305 esac
26306 if depmode=$depmode \
26307 source=sub/conftest.c object=$am__obj \
26308 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
26309 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
26310 >/dev/null 2>conftest.err &&
26311 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
26312 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
26313 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
26314 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
26315 # icc doesn't choke on unknown options, it will just issue warnings
26316 # or remarks (even with -Werror). So we grep stderr for any message
26317 # that says an option was ignored or not supported.
26318 # When given -MP, icc 7.0 and 7.1 complain thusly:
26319 # icc: Command line warning: ignoring option '-M'; no argument required
26320 # The diagnosis changed in icc 8.0:
26321 # icc: Command line remark: option '-MP' not supported
26322 if (grep 'ignoring option' conftest.err ||
26323 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
26324 am_cv_CXX_dependencies_compiler_type=$depmode
26325 break
26326 fi
26327 fi
26328 done
26329
26330 cd ..
26331 rm -rf conftest.dir
26332else
26333 am_cv_CXX_dependencies_compiler_type=none
26334fi
26335
26336fi
26337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
26338$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
26339CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
26340
26341 if
26342 test "x$enable_dependency_tracking" != xno \
26343 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
26344 am__fastdepCXX_TRUE=
26345 am__fastdepCXX_FALSE='#'
26346else
26347 am__fastdepCXX_TRUE='#'
26348 am__fastdepCXX_FALSE=
26349fi
26350
26351
cristy146497a2015-05-17 22:46:16 +000026352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
cristy73bd4a52010-10-05 11:24:23 +000026353$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026354if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026355 $as_echo_n "(cached) " >&6
26356else
cristy146497a2015-05-17 22:46:16 +000026357 ac_ext=cpp
cristy73bd4a52010-10-05 11:24:23 +000026358ac_cpp='$CXXCPP $CPPFLAGS'
26359ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26360ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26361ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26362
cristy146497a2015-05-17 22:46:16 +000026363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000026364/* end confdefs.h. */
cristy146497a2015-05-17 22:46:16 +000026365 int f(int x){return 1;}
26366 int f(char x){return 1;}
26367 int f(bool x){return 1;}
cristy73bd4a52010-10-05 11:24:23 +000026368int
26369main ()
26370{
26371bool b = true; return f(b);
26372 ;
26373 return 0;
26374}
26375_ACEOF
26376if ac_fn_cxx_try_compile "$LINENO"; then :
26377 ax_cv_cxx_bool=yes
26378else
26379 ax_cv_cxx_bool=no
26380fi
26381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy146497a2015-05-17 22:46:16 +000026382 ac_ext=cpp
cristy73bd4a52010-10-05 11:24:23 +000026383ac_cpp='$CXXCPP $CPPFLAGS'
26384ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26385ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26386ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26387
26388
26389fi
26390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
26391$as_echo "$ax_cv_cxx_bool" >&6; }
cristy146497a2015-05-17 22:46:16 +000026392 if test "X$ax_cv_cxx_bool" = Xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000026393
26394$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
26395
26396fi
26397
26398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
26399$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026400if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026401 $as_echo_n "(cached) " >&6
26402else
cristy17491be2014-06-24 01:10:53 +000026403 ac_ext=cpp
cristy73bd4a52010-10-05 11:24:23 +000026404ac_cpp='$CXXCPP $CPPFLAGS'
26405ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26406ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26407ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26408
26409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26410/* end confdefs.h. */
26411namespace Outer { namespace Inner { int i = 0; }}
cristy17491be2014-06-24 01:10:53 +000026412 using namespace Outer::Inner; int foo(void) { return i;}
cristy73bd4a52010-10-05 11:24:23 +000026413_ACEOF
26414if ac_fn_cxx_try_compile "$LINENO"; then :
26415 ax_cv_cxx_namespaces=yes
26416else
26417 ax_cv_cxx_namespaces=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: $ax_cv_cxx_namespaces" >&5
26429$as_echo "$ax_cv_cxx_namespaces" >&6; }
26430if test "$ax_cv_cxx_namespaces" = yes; then
26431
26432$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
26433
26434fi
26435
26436
26437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
26438$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026439if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026440 $as_echo_n "(cached) " >&6
26441else
26442
26443 ac_ext=cpp
26444ac_cpp='$CXXCPP $CPPFLAGS'
26445ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26446ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26447ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26448
26449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26450/* end confdefs.h. */
26451#include <iostream>
26452 std::istream& is = std::cin;
26453int
26454main ()
26455{
26456
26457 ;
26458 return 0;
26459}
26460_ACEOF
26461if ac_fn_cxx_try_compile "$LINENO"; then :
26462 ax_cv_cxx_have_std_namespace=yes
26463else
26464 ax_cv_cxx_have_std_namespace=no
26465fi
26466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26467 ac_ext=cpp
26468ac_cpp='$CXXCPP $CPPFLAGS'
26469ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26470ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26471ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26472
26473
26474fi
26475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
26476$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
26477 if test "$ax_cv_cxx_have_std_namespace" = yes; then
26478
26479$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
26480
26481 fi
26482
26483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
26484$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026485if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026486 $as_echo_n "(cached) " >&6
26487else
26488
26489
26490 ac_ext=cpp
26491ac_cpp='$CXXCPP $CPPFLAGS'
26492ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26493ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26494ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26495
26496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26497/* end confdefs.h. */
26498#include <iostream>
26499#include <map>
26500#include <iomanip>
26501#include <cmath>
26502#ifdef HAVE_NAMESPACES
26503using namespace std;
26504#endif
26505int
26506main ()
26507{
26508return 0;
26509 ;
26510 return 0;
26511}
26512_ACEOF
26513if ac_fn_cxx_try_compile "$LINENO"; then :
26514 ac_cv_cxx_have_std_libs=yes
26515else
26516 ac_cv_cxx_have_std_libs=no
26517fi
26518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26519 ac_ext=cpp
26520ac_cpp='$CXXCPP $CPPFLAGS'
26521ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26522ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26523ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26524
26525
26526fi
26527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
26528$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
26529if test "$ac_cv_cxx_have_std_libs" = yes; then
26530
26531$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
26532
26533fi
26534
cristy3ed852e2009-09-05 21:47:34 +000026535
26536 OPENMP_CXXFLAGS=
26537 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000026538if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026539 enableval=$enable_openmp;
26540fi
26541
26542 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000026543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
26544$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026545if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026546 $as_echo_n "(cached) " >&6
26547else
cristy8b350f62009-11-15 23:12:43 +000026548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26549/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000026550
26551#ifndef _OPENMP
26552 choke me
26553#endif
26554#include <omp.h>
26555int main () { return omp_get_num_threads (); }
26556
26557_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026558if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026559 ac_cv_prog_cxx_openmp='none needed'
26560else
cristy8b350f62009-11-15 23:12:43 +000026561 ac_cv_prog_cxx_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +000026562 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
26563 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +000026564 ac_save_CXXFLAGS=$CXXFLAGS
26565 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000026566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26567/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000026568
26569#ifndef _OPENMP
26570 choke me
26571#endif
26572#include <omp.h>
26573int main () { return omp_get_num_threads (); }
26574
26575_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026576if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026577 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000026578fi
cristy8b350f62009-11-15 23:12:43 +000026579rm -f core conftest.err conftest.$ac_objext \
26580 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026581 CXXFLAGS=$ac_save_CXXFLAGS
26582 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
26583 break
26584 fi
26585 done
26586fi
cristy8b350f62009-11-15 23:12:43 +000026587rm -f core conftest.err conftest.$ac_objext \
26588 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026589fi
cristy8b350f62009-11-15 23:12:43 +000026590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026591$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
26592 case $ac_cv_prog_cxx_openmp in #(
26593 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000026594 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000026595 *)
cristy8b350f62009-11-15 23:12:43 +000026596 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000026597 esac
26598 fi
26599
26600
26601 ac_ext=c
26602ac_cpp='$CPP $CPPFLAGS'
26603ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26604ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26605ac_compiler_gnu=$ac_cv_c_compiler_gnu
26606
26607
cristy8b350f62009-11-15 23:12:43 +000026608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000026609$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
26610 if \
cristy964cb7f2010-04-25 23:18:00 +000026611 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026612 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000026613 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026614 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000026615 have_magick_plus_plus='yes'
26616 else
26617 have_magick_plus_plus='no (failed tests)'
26618 fi
cristyad38abe2012-12-23 23:03:21 +000026619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
26620$as_echo "$have_magick_plus_plus" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026621 LIBS="$OLIBS"
26622fi
cristy73bd4a52010-10-05 11:24:23 +000026623 if test "$have_magick_plus_plus" = 'yes'; then
26624 WITH_MAGICK_PLUS_PLUS_TRUE=
26625 WITH_MAGICK_PLUS_PLUS_FALSE='#'
26626else
26627 WITH_MAGICK_PLUS_PLUS_TRUE='#'
26628 WITH_MAGICK_PLUS_PLUS_FALSE=
26629fi
26630
cristy3ed852e2009-09-05 21:47:34 +000026631
26632# Only check for delegate libraries in subdirectories if requested.
26633if test "$enable_delegate_build" != 'no'; then
26634 # Check for delegate sub-directories and add -I & -L options as required.
26635 # This presumes that delegates are installed as detailed in the ImageMagick
26636 # README. If delegates are installed in a standard location where the
26637 # compiler will automatically find them then these options should not be
26638 # required.
26639
26640 #
26641 # Most delegates have includes in the same directory as the library, but not all...
26642 #
26643 # Includes
cristy834307f2015-01-25 00:43:41 +000026644 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 +000026645 if test -d "$builddir/$dir"; then
26646 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
26647 else
26648 if test -d "$srcdirfull/$dir"; then
26649 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
26650 fi
26651 fi
26652 done
26653
26654 # Libraries
cristy834307f2015-01-25 00:43:41 +000026655 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 +000026656 if test -d "$builddir/$dir/.libs"; then
26657 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
26658 else
26659 if test -d "$srcdirfull/$dir/.libs"; then
26660 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
26661 fi
26662 fi
26663 if test -d "$builddir/$dir"; then
26664 LDFLAGS="$LDFLAGS -L$builddir/$dir"
26665 else
26666 if test -d "$srcdirfull/$dir"; then
26667 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
26668 fi
26669 fi
26670 done
26671fi
26672
26673# Assume that delegate headers reside under same directory as ImageMagick
26674# installation prefix.
cristybdabdd62013-03-04 17:43:36 +000026675MAGICK_CPPFLAGS="-I$INCLUDE_DIR/${PACKAGE_NAME}-$MAGICK_MAJOR_VERSION $MAGICK_CPPFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000026676
26677#
26678# Find the X11 RGB database
26679#
cristy8b350f62009-11-15 23:12:43 +000026680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000026681$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026682if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026683 $as_echo_n "(cached) " >&6
26684else
26685 # Look for the header file in a standard set of common directories.
26686# Check X11 before X11Rn because it is often a symlink to the current release.
26687 for ac_dir in \
26688 /lib/usr/lib/X11 \
26689 /usr/X11/lib \
26690 /usr/X11R4/lib \
26691 /usr/X11R5/lib \
26692 /usr/X11R6/lib \
26693 /usr/X11R7/lib \
26694 /usr/X386/lib \
26695 /usr/XFree86/lib/X11 \
26696 /usr/athena/lib \
26697 /usr/lib \
26698 /usr/lib/X11 \
26699 /usr/lib/X11R4 \
26700 /usr/lib/X11R5 \
26701 /usr/lib/X11R6 \
26702 /usr/lib/X11R7 \
26703 /usr/local/X11/lib \
26704 /usr/local/X11R4/lib \
26705 /usr/local/X11R5/lib \
26706 /usr/local/X11R6/lib \
26707 /usr/local/lib \
26708 /usr/local/lib/X11 \
26709 /usr/local/lib/X11R4 \
26710 /usr/local/lib/X11R5 \
26711 /usr/local/lib/X11R6 \
26712 /usr/local/lib/X11R7 \
26713 /usr/local/x11r5/lib \
26714 /usr/lpp/Xamples/lib \
26715 /usr/openwin/lib \
26716 /usr/openwin/share/lib \
26717 /usr/unsupported/lib \
26718 /usr/x386/lib \
26719 ; do
26720 if test -f "$ac_dir/X11/rgb.txt"; then
26721 im_cv_x_configure="$ac_dir/X11/"
26722 break
26723 elif test -f "$ac_dir/rgb.txt"; then
26724 im_cv_x_configure="$ac_dir/"
26725 break
26726 fi
26727
26728 done
26729fi
cristy8b350f62009-11-15 23:12:43 +000026730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000026731$as_echo "$im_cv_x_configure" >&6; }
26732X11_CONFIGURE_PATH="$im_cv_x_configure"
26733case "${build_os}" in
26734 mingw* )
26735 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
26736 ;;
26737esac
26738
26739cat >>confdefs.h <<_ACEOF
26740#define X11_CONFIGURE_PATH "$X11ConfigurePath"
26741_ACEOF
26742
26743
26744#
26745# Find OpenMP library
26746#
26747GOMP_LIBS=''
26748if test "$enable_openmp" != 'no'; then
26749 if test "${GCC}" = "yes"; then
cristy18307f12011-12-30 01:20:16 +000026750 # Open64 (passes for GCC but uses different OpenMP implementation)
26751 if test "x$GOMP_LIBS" = x ; then
26752 if $CC --version 2>&1 | grep Open64 > /dev/null ; then
26753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp_get_num_procs in -lopenmp" >&5
26754$as_echo_n "checking for omp_get_num_procs in -lopenmp... " >&6; }
26755if ${ac_cv_lib_openmp_omp_get_num_procs+:} false; then :
26756 $as_echo_n "(cached) " >&6
26757else
26758 ac_check_lib_save_LIBS=$LIBS
26759LIBS="-lopenmp $LIBS"
26760cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26761/* end confdefs.h. */
26762
26763/* Override any GCC internal prototype to avoid an error.
26764 Use char because int might match the return type of a GCC
26765 builtin and then its argument prototype would still apply. */
26766#ifdef __cplusplus
26767extern "C"
26768#endif
26769char omp_get_num_procs ();
26770int
26771main ()
26772{
26773return omp_get_num_procs ();
26774 ;
26775 return 0;
26776}
26777_ACEOF
26778if ac_fn_c_try_link "$LINENO"; then :
26779 ac_cv_lib_openmp_omp_get_num_procs=yes
26780else
26781 ac_cv_lib_openmp_omp_get_num_procs=no
26782fi
26783rm -f core conftest.err conftest.$ac_objext \
26784 conftest$ac_exeext conftest.$ac_ext
26785LIBS=$ac_check_lib_save_LIBS
26786fi
26787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openmp_omp_get_num_procs" >&5
26788$as_echo "$ac_cv_lib_openmp_omp_get_num_procs" >&6; }
26789if test "x$ac_cv_lib_openmp_omp_get_num_procs" = xyes; then :
26790 GOMP_LIBS="-lopenmp"
26791fi
26792
26793 fi
26794 fi
26795 # GCC
26796 if test "x$GOMP_LIBS" = x ; then
26797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026798$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026799if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026800 $as_echo_n "(cached) " >&6
26801else
26802 ac_check_lib_save_LIBS=$LIBS
26803LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026804cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026805/* end confdefs.h. */
26806
26807/* Override any GCC internal prototype to avoid an error.
26808 Use char because int might match the return type of a GCC
26809 builtin and then its argument prototype would still apply. */
26810#ifdef __cplusplus
26811extern "C"
26812#endif
26813char GOMP_parallel_start ();
26814int
26815main ()
26816{
26817return GOMP_parallel_start ();
26818 ;
26819 return 0;
26820}
26821_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026822if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026823 ac_cv_lib_gomp_GOMP_parallel_start=yes
26824else
cristy8b350f62009-11-15 23:12:43 +000026825 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000026826fi
cristy8b350f62009-11-15 23:12:43 +000026827rm -f core conftest.err conftest.$ac_objext \
26828 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026829LIBS=$ac_check_lib_save_LIBS
26830fi
cristy8b350f62009-11-15 23:12:43 +000026831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000026832$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000026833if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026834 GOMP_LIBS="-lgomp"
26835fi
cristy18307f12011-12-30 01:20:16 +000026836
26837 fi
cristy3ed852e2009-09-05 21:47:34 +000026838 else
cristy18307f12011-12-30 01:20:16 +000026839 # Sun CC
26840 if test "x$GOMP_LIBS" = x ; then
26841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000026842$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026843if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026844 $as_echo_n "(cached) " >&6
26845else
26846 ac_check_lib_save_LIBS=$LIBS
26847LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026848cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026849/* end confdefs.h. */
26850
26851/* Override any GCC internal prototype to avoid an error.
26852 Use char because int might match the return type of a GCC
26853 builtin and then its argument prototype would still apply. */
26854#ifdef __cplusplus
26855extern "C"
26856#endif
26857char sunw_mp_register_warn ();
26858int
26859main ()
26860{
26861return sunw_mp_register_warn ();
26862 ;
26863 return 0;
26864}
26865_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026866if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026867 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
26868else
cristy8b350f62009-11-15 23:12:43 +000026869 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000026870fi
cristy8b350f62009-11-15 23:12:43 +000026871rm -f core conftest.err conftest.$ac_objext \
26872 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026873LIBS=$ac_check_lib_save_LIBS
26874fi
cristy8b350f62009-11-15 23:12:43 +000026875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000026876$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000026877if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026878 GOMP_LIBS="-lmtsk"
26879fi
cristy18307f12011-12-30 01:20:16 +000026880
26881 fi
26882 # AIX xlc
26883 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026885$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026886if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026887 $as_echo_n "(cached) " >&6
26888else
26889 ac_check_lib_save_LIBS=$LIBS
26890LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026891cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026892/* end confdefs.h. */
26893
26894/* Override any GCC internal prototype to avoid an error.
26895 Use char because int might match the return type of a GCC
26896 builtin and then its argument prototype would still apply. */
26897#ifdef __cplusplus
26898extern "C"
26899#endif
26900char _xlsmpFlush ();
26901int
26902main ()
26903{
26904return _xlsmpFlush ();
26905 ;
26906 return 0;
26907}
26908_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026909if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026910 ac_cv_lib_xlsmp__xlsmpFlush=yes
26911else
cristy8b350f62009-11-15 23:12:43 +000026912 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000026913fi
cristy8b350f62009-11-15 23:12:43 +000026914rm -f core conftest.err conftest.$ac_objext \
26915 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026916LIBS=$ac_check_lib_save_LIBS
26917fi
cristy8b350f62009-11-15 23:12:43 +000026918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000026919$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000026920if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026921 GOMP_LIBS="-lxlsmp"
26922fi
cristy18307f12011-12-30 01:20:16 +000026923
26924 fi
26925 # SGI IRIX 6.5 MIPSpro C/C++
26926 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026928$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026929if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026930 $as_echo_n "(cached) " >&6
26931else
26932 ac_check_lib_save_LIBS=$LIBS
26933LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026934cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026935/* end confdefs.h. */
26936
26937/* Override any GCC internal prototype to avoid an error.
26938 Use char because int might match the return type of a GCC
26939 builtin and then its argument prototype would still apply. */
26940#ifdef __cplusplus
26941extern "C"
26942#endif
26943char mp_destroy ();
26944int
26945main ()
26946{
26947return mp_destroy ();
26948 ;
26949 return 0;
26950}
26951_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026952if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026953 ac_cv_lib_mp_mp_destroy=yes
26954else
cristy8b350f62009-11-15 23:12:43 +000026955 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000026956fi
cristy8b350f62009-11-15 23:12:43 +000026957rm -f core conftest.err conftest.$ac_objext \
26958 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026959LIBS=$ac_check_lib_save_LIBS
26960fi
cristy8b350f62009-11-15 23:12:43 +000026961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000026962$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000026963if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026964 GOMP_LIBS="-lmp"
26965fi
cristy18307f12011-12-30 01:20:16 +000026966
26967 fi
cristy3ed852e2009-09-05 21:47:34 +000026968 fi
26969 LIBS="$GOMP_LIBS $LIBS"
26970fi
26971
26972
cristy12ac8192014-11-04 13:59:13 +000026973#
cristy3b0097d2014-11-04 15:34:47 +000026974# Check for jemalloc.
cristy12ac8192014-11-04 13:59:13 +000026975#
cristy3b0097d2014-11-04 15:34:47 +000026976have_jemalloc='no'
26977JEMALLOC_LIBS=''
26978if test "$with_jemalloc" != 'no'; then
26979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JEMALLOC support " >&5
26980$as_echo_n "checking for JEMALLOC support ... " >&6; }
26981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26982$as_echo "" >&6; }
26983 failed=0
26984 passed=0
26985 ac_fn_c_check_header_mongrel "$LINENO" "jemalloc/jemalloc.h" "ac_cv_header_jemalloc_jemalloc_h" "$ac_includes_default"
26986if test "x$ac_cv_header_jemalloc_jemalloc_h" = xyes; then :
cristy22007ae2014-11-04 15:59:22 +000026987 passed=`expr $passed + 1`
26988else
26989 failed=`expr $failed + 1`
cristy12ac8192014-11-04 13:59:13 +000026990fi
26991
26992
cristy3b0097d2014-11-04 15:34:47 +000026993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc_stats_print in -ljemalloc" >&5
26994$as_echo_n "checking for malloc_stats_print in -ljemalloc... " >&6; }
26995if ${ac_cv_lib_jemalloc_malloc_stats_print+:} false; then :
cristy12ac8192014-11-04 13:59:13 +000026996 $as_echo_n "(cached) " >&6
26997else
26998 ac_check_lib_save_LIBS=$LIBS
26999LIBS="-ljemalloc $LIBS"
27000cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27001/* end confdefs.h. */
27002
27003/* Override any GCC internal prototype to avoid an error.
27004 Use char because int might match the return type of a GCC
27005 builtin and then its argument prototype would still apply. */
27006#ifdef __cplusplus
27007extern "C"
27008#endif
cristy3b0097d2014-11-04 15:34:47 +000027009char malloc_stats_print ();
cristy12ac8192014-11-04 13:59:13 +000027010int
27011main ()
27012{
cristy3b0097d2014-11-04 15:34:47 +000027013return malloc_stats_print ();
cristy12ac8192014-11-04 13:59:13 +000027014 ;
27015 return 0;
27016}
27017_ACEOF
27018if ac_fn_c_try_link "$LINENO"; then :
cristy3b0097d2014-11-04 15:34:47 +000027019 ac_cv_lib_jemalloc_malloc_stats_print=yes
cristy12ac8192014-11-04 13:59:13 +000027020else
cristy3b0097d2014-11-04 15:34:47 +000027021 ac_cv_lib_jemalloc_malloc_stats_print=no
cristy12ac8192014-11-04 13:59:13 +000027022fi
27023rm -f core conftest.err conftest.$ac_objext \
27024 conftest$ac_exeext conftest.$ac_ext
27025LIBS=$ac_check_lib_save_LIBS
27026fi
cristy3b0097d2014-11-04 15:34:47 +000027027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jemalloc_malloc_stats_print" >&5
27028$as_echo "$ac_cv_lib_jemalloc_malloc_stats_print" >&6; }
27029if test "x$ac_cv_lib_jemalloc_malloc_stats_print" = xyes; then :
cristy22007ae2014-11-04 15:59:22 +000027030 passed=`expr $passed + 1`
27031else
27032 failed=`expr $failed + 1`
cristy12ac8192014-11-04 13:59:13 +000027033fi
27034
cristy3b0097d2014-11-04 15:34:47 +000027035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jemalloc memory allocation library is complete" >&5
27036$as_echo_n "checking if jemalloc memory allocation library is complete... " >&6; }
27037 if test $passed -gt 0; then
27038 if test $failed -gt 0; then
27039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27040$as_echo "no -- some components failed test" >&6; }
27041 have_jemalloc='no (failed tests)'
27042 else
27043 JEMALLOC_LIBS='-ljemalloc'
27044 LIBS="$JEMALLOC_LIBS $LIBS"
cristy12ac8192014-11-04 13:59:13 +000027045
cristy3b0097d2014-11-04 15:34:47 +000027046$as_echo "#define HasJEMALLOC 1" >>confdefs.h
cristy12ac8192014-11-04 13:59:13 +000027047
cristy3b0097d2014-11-04 15:34:47 +000027048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27049$as_echo "yes" >&6; }
27050 have_jemalloc='yes'
27051 fi
cristy12ac8192014-11-04 13:59:13 +000027052 else
cristy3b0097d2014-11-04 15:34:47 +000027053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27054$as_echo "no" >&6; }
cristy12ac8192014-11-04 13:59:13 +000027055 fi
27056fi
cristy3b0097d2014-11-04 15:34:47 +000027057 if test "$have_jemalloc" = 'yes'; then
27058 HasJEMALLOC_TRUE=
27059 HasJEMALLOC_FALSE='#'
27060else
27061 HasJEMALLOC_TRUE='#'
27062 HasJEMALLOC_FALSE=
cristy12ac8192014-11-04 13:59:13 +000027063fi
27064
cristy3b0097d2014-11-04 15:34:47 +000027065
27066
cristy3ed852e2009-09-05 21:47:34 +000027067#
27068# Check for umem.
27069#
27070have_umem='no'
27071UMEM_LIBS=''
27072if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000027074$as_echo_n "checking for UMEM support ... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27076$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027077 failed=0
27078 passed=0
cristy8b350f62009-11-15 23:12:43 +000027079 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027080if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027081 passed=`expr $passed + 1`
27082else
27083 failed=`expr $failed + 1`
27084fi
27085
27086
cristy8b350f62009-11-15 23:12:43 +000027087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000027088$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027089if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027090 $as_echo_n "(cached) " >&6
27091else
27092 ac_check_lib_save_LIBS=$LIBS
27093LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027094cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027095/* end confdefs.h. */
27096
27097/* Override any GCC internal prototype to avoid an error.
27098 Use char because int might match the return type of a GCC
27099 builtin and then its argument prototype would still apply. */
27100#ifdef __cplusplus
27101extern "C"
27102#endif
27103char umem_alloc ();
27104int
27105main ()
27106{
27107return umem_alloc ();
27108 ;
27109 return 0;
27110}
27111_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027112if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027113 ac_cv_lib_umem_umem_alloc=yes
27114else
cristy8b350f62009-11-15 23:12:43 +000027115 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000027116fi
cristy8b350f62009-11-15 23:12:43 +000027117rm -f core conftest.err conftest.$ac_objext \
27118 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027119LIBS=$ac_check_lib_save_LIBS
27120fi
cristy8b350f62009-11-15 23:12:43 +000027121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027122$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000027123if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027124 passed=`expr $passed + 1`
27125else
27126 failed=`expr $failed + 1`
27127fi
27128
cristy8b350f62009-11-15 23:12:43 +000027129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000027130$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027131if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027132 $as_echo_n "(cached) " >&6
27133else
27134 ac_check_lib_save_LIBS=$LIBS
27135LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027136cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027137/* end confdefs.h. */
27138
27139/* Override any GCC internal prototype to avoid an error.
27140 Use char because int might match the return type of a GCC
27141 builtin and then its argument prototype would still apply. */
27142#ifdef __cplusplus
27143extern "C"
27144#endif
27145char umem_free ();
27146int
27147main ()
27148{
27149return umem_free ();
27150 ;
27151 return 0;
27152}
27153_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027154if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027155 ac_cv_lib_umem_umem_free=yes
27156else
cristy8b350f62009-11-15 23:12:43 +000027157 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000027158fi
cristy8b350f62009-11-15 23:12:43 +000027159rm -f core conftest.err conftest.$ac_objext \
27160 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027161LIBS=$ac_check_lib_save_LIBS
27162fi
cristy8b350f62009-11-15 23:12:43 +000027163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000027164$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000027165if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027166 passed=`expr $passed + 1`
27167else
27168 failed=`expr $failed + 1`
27169fi
27170
cristy8b350f62009-11-15 23:12:43 +000027171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027172$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
27173 if test $passed -gt 0; then
27174 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000027175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27176$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027177 have_umem='no (failed tests)'
27178 else
27179 UMEM_LIBS='-lumem'
27180 LIBS="$UMEM_LIBS $LIBS"
27181
cristy8b350f62009-11-15 23:12:43 +000027182$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027183
cristyad38abe2012-12-23 23:03:21 +000027184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27185$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027186 have_umem='yes'
27187 fi
27188 else
cristyad38abe2012-12-23 23:03:21 +000027189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27190$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027191 fi
27192fi
cristy73bd4a52010-10-05 11:24:23 +000027193 if test "$have_umem" = 'yes'; then
27194 HasUMEM_TRUE=
27195 HasUMEM_FALSE='#'
27196else
27197 HasUMEM_TRUE='#'
27198 HasUMEM_FALSE=
27199fi
27200
cristy3ed852e2009-09-05 21:47:34 +000027201
27202
27203#
27204# Add support for ccmalloc memory debugging library if requested
27205#
27206have_ccmalloc='no'
27207CCMALLOC_LIBS=''
27208if test "$enable_ccmalloc" = 'yes'; then
27209 # Extract the first word of "ccmalloc", so it can be a program name with args.
27210set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000027211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000027212$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027213if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027214 $as_echo_n "(cached) " >&6
27215else
27216 case $CCMALLOCDelegate in
27217 [\\/]* | ?:[\\/]*)
27218 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
27219 ;;
27220 *)
27221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27222for as_dir in $PATH
27223do
27224 IFS=$as_save_IFS
27225 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000027226 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000027227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000027228 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000027229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027230 break 2
27231 fi
27232done
cristy8b350f62009-11-15 23:12:43 +000027233 done
cristy3ed852e2009-09-05 21:47:34 +000027234IFS=$as_save_IFS
27235
27236 ;;
27237esac
27238fi
27239CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
27240if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000027241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027242$as_echo "$CCMALLOCDelegate" >&6; }
27243else
cristy8b350f62009-11-15 23:12:43 +000027244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027245$as_echo "no" >&6; }
27246fi
27247
27248
27249 if test -n "$CCMALLOCDelegate"; then
27250 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
27251 OLIBS="$LIBS"
27252 # Assume that gcc is used with ccmalloc.
27253 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000027254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027255$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027256if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027257 $as_echo_n "(cached) " >&6
27258else
27259 ac_check_lib_save_LIBS=$LIBS
27260LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027261cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027262/* end confdefs.h. */
27263
27264/* Override any GCC internal prototype to avoid an error.
27265 Use char because int might match the return type of a GCC
27266 builtin and then its argument prototype would still apply. */
27267#ifdef __cplusplus
27268extern "C"
27269#endif
27270char ccmalloc_malloc ();
27271int
27272main ()
27273{
27274return ccmalloc_malloc ();
27275 ;
27276 return 0;
27277}
27278_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027279if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027280 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
27281else
cristy8b350f62009-11-15 23:12:43 +000027282 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000027283fi
cristy8b350f62009-11-15 23:12:43 +000027284rm -f core conftest.err conftest.$ac_objext \
27285 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027286LIBS=$ac_check_lib_save_LIBS
27287fi
cristy8b350f62009-11-15 23:12:43 +000027288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027289$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000027290if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027291 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
27292fi
27293
27294 if test -n "$CCMALLOC_LIBS"; then
27295 LIBS="$OLIBS"
27296 LIBS="$LIBS $CCMALLOC_LIBS"
27297 have_ccmalloc='yes'
27298 else
27299 LIBS="$OLIBS"
27300 fi
27301 fi
27302fi
27303
27304#
cristy944e51f2013-04-16 18:45:02 +000027305# Add support for 'huge pages' if requested
27306#
27307if test "x$enable_hugepages" != "xno"; then :
27308
27309
27310$as_echo "#define HAVE_HUGEPAGES 1" >>confdefs.h
27311
27312
27313fi
27314
27315#
cristy3ed852e2009-09-05 21:47:34 +000027316# Add support for efence memory debugging library if requested
27317#
27318if test "$enable_efence" = 'yes'; then
27319 EFENCE_LIBS='-lefence'
27320 LIBS="$EFENCE_LIBS $LIBS"
27321fi
27322
cristy3ed852e2009-09-05 21:47:34 +000027323
27324#
27325# Check for BZLIB
27326#
27327
27328
27329# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000027330if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027331 withval=$with_bzlib; with_bzlib=$withval
27332else
27333 with_bzlib='yes'
27334fi
27335
27336
27337if test "$with_bzlib" != 'yes'; then
27338 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
27339fi
27340
27341have_bzlib='no'
27342if test "$with_bzlib" != 'no'; then
27343 BZLIB_LIBS=''
cristyad38abe2012-12-23 23:03:21 +000027344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27345$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000027347$as_echo_n "checking for BZLIB... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27349$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027350 failed=0
27351 passed=0
27352 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000027353 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027354if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027355 passed=`expr $passed + 1`
27356else
27357 failed=`expr $failed + 1`
27358fi
27359
27360
cristy8b350f62009-11-15 23:12:43 +000027361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027362$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027363if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027364 $as_echo_n "(cached) " >&6
27365else
27366 ac_check_lib_save_LIBS=$LIBS
27367LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027368cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027369/* end confdefs.h. */
27370
27371/* Override any GCC internal prototype to avoid an error.
27372 Use char because int might match the return type of a GCC
27373 builtin and then its argument prototype would still apply. */
27374#ifdef __cplusplus
27375extern "C"
27376#endif
27377char BZ2_bzDecompress ();
27378int
27379main ()
27380{
27381return BZ2_bzDecompress ();
27382 ;
27383 return 0;
27384}
27385_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027386if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027387 ac_cv_lib_bz2_BZ2_bzDecompress=yes
27388else
cristy8b350f62009-11-15 23:12:43 +000027389 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000027390fi
cristy8b350f62009-11-15 23:12:43 +000027391rm -f core conftest.err conftest.$ac_objext \
27392 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027393LIBS=$ac_check_lib_save_LIBS
27394fi
cristy8b350f62009-11-15 23:12:43 +000027395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027396$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027397if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027398 found_libbz=`expr $found_libbz + 1`
27399fi
27400
27401 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027403$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027404if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027405 $as_echo_n "(cached) " >&6
27406else
27407 ac_check_lib_save_LIBS=$LIBS
27408LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027409cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027410/* end confdefs.h. */
27411
27412/* Override any GCC internal prototype to avoid an error.
27413 Use char because int might match the return type of a GCC
27414 builtin and then its argument prototype would still apply. */
27415#ifdef __cplusplus
27416extern "C"
27417#endif
27418char _imp__BZ2_decompress ();
27419int
27420main ()
27421{
27422return _imp__BZ2_decompress ();
27423 ;
27424 return 0;
27425}
27426_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027427if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027428 ac_cv_lib_bz2__imp__BZ2_decompress=yes
27429else
cristy8b350f62009-11-15 23:12:43 +000027430 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000027431fi
cristy8b350f62009-11-15 23:12:43 +000027432rm -f core conftest.err conftest.$ac_objext \
27433 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027434LIBS=$ac_check_lib_save_LIBS
27435fi
cristy8b350f62009-11-15 23:12:43 +000027436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027437$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027438if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027439 found_libbz=`expr $found_libbz + 1`
27440fi
27441
27442 fi
27443 if test $found_libbz -gt 0; then
27444 passed=`expr $passed + 1`
27445 else
27446 failed=`expr $failed + 1`
27447 fi
cristy8b350f62009-11-15 23:12:43 +000027448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027449$as_echo_n "checking if BZLIB package is complete... " >&6; }
27450 if test $passed -gt 0; then
27451 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000027452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27453$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027454 have_bzlib='no (failed tests)'
27455 else
27456 BZLIB_LIBS='-lbz2'
27457 LIBS="$BZLIB_LIBS $LIBS"
27458
cristy8b350f62009-11-15 23:12:43 +000027459$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027460
cristyad38abe2012-12-23 23:03:21 +000027461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27462$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027463 have_bzlib='yes'
27464 fi
27465 else
cristyad38abe2012-12-23 23:03:21 +000027466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27467$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027468 fi
27469fi
cristy73bd4a52010-10-05 11:24:23 +000027470 if test "$have_bzlib" = 'yes'; then
27471 BZLIB_DELEGATE_TRUE=
27472 BZLIB_DELEGATE_FALSE='#'
27473else
27474 BZLIB_DELEGATE_TRUE='#'
27475 BZLIB_DELEGATE_FALSE=
27476fi
27477
cristy3ed852e2009-09-05 21:47:34 +000027478
27479
27480#
27481# Find the X11 include and library directories.
27482#
27483IPC_LIBS=''
27484X11_LIBS=''
27485XEXT_LIBS=''
27486XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000027487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000027488$as_echo_n "checking for X... " >&6; }
27489
27490
27491# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000027492if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000027493 withval=$with_x;
27494fi
27495
27496# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
27497if test "x$with_x" = xno; then
27498 # The user explicitly disabled X.
27499 have_x=disabled
27500else
27501 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000027502 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000027503 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000027504 $as_echo_n "(cached) " >&6
27505else
27506 # One or both of the vars are not set, and there is no cached value.
27507ac_x_includes=no ac_x_libraries=no
27508rm -f -r conftest.dir
27509if mkdir conftest.dir; then
27510 cd conftest.dir
27511 cat >Imakefile <<'_ACEOF'
27512incroot:
27513 @echo incroot='${INCROOT}'
27514usrlibdir:
27515 @echo usrlibdir='${USRLIBDIR}'
27516libdir:
27517 @echo libdir='${LIBDIR}'
27518_ACEOF
27519 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000027520 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000027521 for ac_var in incroot usrlibdir libdir; do
27522 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
27523 done
27524 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
27525 for ac_extension in a so sl dylib la dll; do
27526 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
27527 test -f "$ac_im_libdir/libX11.$ac_extension"; then
27528 ac_im_usrlibdir=$ac_im_libdir; break
27529 fi
27530 done
27531 # Screen out bogus values from the imake configuration. They are
27532 # bogus both because they are the default anyway, and because
27533 # using them would break gcc on systems where it needs fixed includes.
27534 case $ac_im_incroot in
27535 /usr/include) ac_x_includes= ;;
27536 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
27537 esac
27538 case $ac_im_usrlibdir in
27539 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
27540 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
27541 esac
27542 fi
27543 cd ..
27544 rm -f -r conftest.dir
27545fi
27546
27547# Standard set of common directories for X headers.
27548# Check X11 before X11Rn because it is often a symlink to the current release.
27549ac_x_header_dirs='
27550/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000027551/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027552/usr/X11R6/include
27553/usr/X11R5/include
27554/usr/X11R4/include
27555
27556/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000027557/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027558/usr/include/X11R6
27559/usr/include/X11R5
27560/usr/include/X11R4
27561
27562/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000027563/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027564/usr/local/X11R6/include
27565/usr/local/X11R5/include
27566/usr/local/X11R4/include
27567
27568/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000027569/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027570/usr/local/include/X11R6
27571/usr/local/include/X11R5
27572/usr/local/include/X11R4
27573
27574/usr/X386/include
27575/usr/x386/include
27576/usr/XFree86/include/X11
27577
27578/usr/include
27579/usr/local/include
27580/usr/unsupported/include
27581/usr/athena/include
27582/usr/local/x11r5/include
27583/usr/lpp/Xamples/include
27584
27585/usr/openwin/include
27586/usr/openwin/share/include'
27587
27588if test "$ac_x_includes" = no; then
27589 # Guess where to find include files, by looking for Xlib.h.
27590 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000027591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027592/* end confdefs.h. */
27593#include <X11/Xlib.h>
27594_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027595if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027596 # We can compile using X headers with no special include directory.
27597ac_x_includes=
27598else
cristyc7083c12009-10-14 03:16:55 +000027599 for ac_dir in $ac_x_header_dirs; do
27600 if test -r "$ac_dir/X11/Xlib.h"; then
27601 ac_x_includes=$ac_dir
27602 break
27603 fi
27604done
27605fi
cristyda16f162011-02-19 23:52:17 +000027606rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027607fi # $ac_x_includes = no
27608
27609if test "$ac_x_libraries" = no; then
27610 # Check for the libraries.
27611 # See if we find them without any special options.
27612 # Don't add to $LIBS permanently.
27613 ac_save_LIBS=$LIBS
27614 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027616/* end confdefs.h. */
27617#include <X11/Xlib.h>
27618int
27619main ()
27620{
27621XrmInitialize ()
27622 ;
27623 return 0;
27624}
27625_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027626if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027627 LIBS=$ac_save_LIBS
27628# We can link X programs with no special library path.
27629ac_x_libraries=
27630else
cristy8b350f62009-11-15 23:12:43 +000027631 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000027632for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
27633do
27634 # Don't even attempt the hair of trying to link an X program!
27635 for ac_extension in a so sl dylib la dll; do
27636 if test -r "$ac_dir/libX11.$ac_extension"; then
27637 ac_x_libraries=$ac_dir
27638 break 2
27639 fi
27640 done
27641done
27642fi
cristy8b350f62009-11-15 23:12:43 +000027643rm -f core conftest.err conftest.$ac_objext \
27644 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027645fi # $ac_x_libraries = no
27646
27647case $ac_x_includes,$ac_x_libraries in #(
27648 no,* | *,no | *\'*)
27649 # Didn't find X, or a directory has "'" in its name.
27650 ac_cv_have_x="have_x=no";; #(
27651 *)
27652 # Record where we found X for the cache.
27653 ac_cv_have_x="have_x=yes\
27654 ac_x_includes='$ac_x_includes'\
27655 ac_x_libraries='$ac_x_libraries'"
27656esac
27657fi
27658;; #(
27659 *) have_x=yes;;
27660 esac
27661 eval "$ac_cv_have_x"
27662fi # $with_x != no
27663
27664if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000027665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000027666$as_echo "$have_x" >&6; }
27667 no_x=yes
27668else
27669 # If each of the values was on the command line, it overrides each guess.
27670 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
27671 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
27672 # Update the cache value to reflect the command line values.
27673 ac_cv_have_x="have_x=yes\
27674 ac_x_includes='$x_includes'\
27675 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000027676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000027677$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
27678fi
27679
cristy3ed852e2009-09-05 21:47:34 +000027680if test "$no_x" = yes; then
27681 # Not all programs may use this symbol, but it does not hurt to define it.
27682
cristy8b350f62009-11-15 23:12:43 +000027683$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027684
27685 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
27686else
27687 if test -n "$x_includes"; then
27688 X_CFLAGS="$X_CFLAGS -I$x_includes"
27689 fi
27690
27691 # It would also be nice to do this for all -L options, not just this one.
27692 if test -n "$x_libraries"; then
27693 X_LIBS="$X_LIBS -L$x_libraries"
27694 # For Solaris; some versions of Sun CC require a space after -R and
27695 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000027696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000027697$as_echo_n "checking whether -R must be followed by a space... " >&6; }
27698 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
27699 ac_xsave_c_werror_flag=$ac_c_werror_flag
27700 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000027701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027702/* end confdefs.h. */
27703
27704int
27705main ()
27706{
27707
27708 ;
27709 return 0;
27710}
27711_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027712if ac_fn_c_try_link "$LINENO"; then :
27713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027714$as_echo "no" >&6; }
27715 X_LIBS="$X_LIBS -R$x_libraries"
27716else
cristy8b350f62009-11-15 23:12:43 +000027717 LIBS="$ac_xsave_LIBS -R $x_libraries"
27718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027719/* end confdefs.h. */
27720
27721int
27722main ()
27723{
27724
27725 ;
27726 return 0;
27727}
27728_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027729if ac_fn_c_try_link "$LINENO"; then :
27730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027731$as_echo "yes" >&6; }
27732 X_LIBS="$X_LIBS -R $x_libraries"
27733else
cristy8b350f62009-11-15 23:12:43 +000027734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000027735$as_echo "neither works" >&6; }
27736fi
cristy8b350f62009-11-15 23:12:43 +000027737rm -f core conftest.err conftest.$ac_objext \
27738 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027739fi
cristy8b350f62009-11-15 23:12:43 +000027740rm -f core conftest.err conftest.$ac_objext \
27741 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027742 ac_c_werror_flag=$ac_xsave_c_werror_flag
27743 LIBS=$ac_xsave_LIBS
27744 fi
27745
27746 # Check for system-dependent libraries X programs must link with.
27747 # Do this before checking for the system-independent R6 libraries
27748 # (-lICE), since we may need -lsocket or whatever for X linking.
27749
27750 if test "$ISC" = yes; then
27751 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
27752 else
27753 # Martyn Johnson says this is needed for Ultrix, if the X
27754 # libraries were built with DECnet support. And Karl Berry says
27755 # the Alpha needs dnet_stub (dnet does not exist).
27756 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000027757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027758/* end confdefs.h. */
27759
27760/* Override any GCC internal prototype to avoid an error.
27761 Use char because int might match the return type of a GCC
27762 builtin and then its argument prototype would still apply. */
27763#ifdef __cplusplus
27764extern "C"
27765#endif
27766char XOpenDisplay ();
27767int
27768main ()
27769{
27770return XOpenDisplay ();
27771 ;
27772 return 0;
27773}
27774_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027775if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027776
cristy8b350f62009-11-15 23:12:43 +000027777else
27778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000027779$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027780if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027781 $as_echo_n "(cached) " >&6
27782else
27783 ac_check_lib_save_LIBS=$LIBS
27784LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027785cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027786/* end confdefs.h. */
27787
27788/* Override any GCC internal prototype to avoid an error.
27789 Use char because int might match the return type of a GCC
27790 builtin and then its argument prototype would still apply. */
27791#ifdef __cplusplus
27792extern "C"
27793#endif
27794char dnet_ntoa ();
27795int
27796main ()
27797{
27798return dnet_ntoa ();
27799 ;
27800 return 0;
27801}
27802_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027803if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027804 ac_cv_lib_dnet_dnet_ntoa=yes
27805else
cristy8b350f62009-11-15 23:12:43 +000027806 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027807fi
cristy8b350f62009-11-15 23:12:43 +000027808rm -f core conftest.err conftest.$ac_objext \
27809 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027810LIBS=$ac_check_lib_save_LIBS
27811fi
cristy8b350f62009-11-15 23:12:43 +000027812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027813$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027814if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027815 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
27816fi
27817
27818 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000027819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000027820$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027821if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027822 $as_echo_n "(cached) " >&6
27823else
27824 ac_check_lib_save_LIBS=$LIBS
27825LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027826cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027827/* end confdefs.h. */
27828
27829/* Override any GCC internal prototype to avoid an error.
27830 Use char because int might match the return type of a GCC
27831 builtin and then its argument prototype would still apply. */
27832#ifdef __cplusplus
27833extern "C"
27834#endif
27835char dnet_ntoa ();
27836int
27837main ()
27838{
27839return dnet_ntoa ();
27840 ;
27841 return 0;
27842}
27843_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027844if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027845 ac_cv_lib_dnet_stub_dnet_ntoa=yes
27846else
cristy8b350f62009-11-15 23:12:43 +000027847 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027848fi
cristy8b350f62009-11-15 23:12:43 +000027849rm -f core conftest.err conftest.$ac_objext \
27850 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027851LIBS=$ac_check_lib_save_LIBS
27852fi
cristy8b350f62009-11-15 23:12:43 +000027853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027854$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027855if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027856 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
27857fi
27858
27859 fi
27860fi
cristy8b350f62009-11-15 23:12:43 +000027861rm -f core conftest.err conftest.$ac_objext \
27862 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027863 LIBS="$ac_xsave_LIBS"
27864
27865 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27866 # to get the SysV transport functions.
27867 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27868 # needs -lnsl.
27869 # The nsl library prevents programs from opening the X display
27870 # on Irix 5.2, according to T.E. Dickey.
27871 # The functions gethostbyname, getservbyname, and inet_addr are
27872 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000027873 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000027874if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027875
cristy3ed852e2009-09-05 21:47:34 +000027876fi
27877
cristy3ed852e2009-09-05 21:47:34 +000027878 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027880$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027881if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027882 $as_echo_n "(cached) " >&6
27883else
27884 ac_check_lib_save_LIBS=$LIBS
27885LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027886cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027887/* end confdefs.h. */
27888
27889/* Override any GCC internal prototype to avoid an error.
27890 Use char because int might match the return type of a GCC
27891 builtin and then its argument prototype would still apply. */
27892#ifdef __cplusplus
27893extern "C"
27894#endif
27895char gethostbyname ();
27896int
27897main ()
27898{
27899return gethostbyname ();
27900 ;
27901 return 0;
27902}
27903_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027904if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027905 ac_cv_lib_nsl_gethostbyname=yes
27906else
cristy8b350f62009-11-15 23:12:43 +000027907 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027908fi
cristy8b350f62009-11-15 23:12:43 +000027909rm -f core conftest.err conftest.$ac_objext \
27910 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027911LIBS=$ac_check_lib_save_LIBS
27912fi
cristy8b350f62009-11-15 23:12:43 +000027913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027914$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027915if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027916 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
27917fi
27918
27919 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000027921$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027922if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027923 $as_echo_n "(cached) " >&6
27924else
27925 ac_check_lib_save_LIBS=$LIBS
27926LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027927cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027928/* end confdefs.h. */
27929
27930/* Override any GCC internal prototype to avoid an error.
27931 Use char because int might match the return type of a GCC
27932 builtin and then its argument prototype would still apply. */
27933#ifdef __cplusplus
27934extern "C"
27935#endif
27936char gethostbyname ();
27937int
27938main ()
27939{
27940return gethostbyname ();
27941 ;
27942 return 0;
27943}
27944_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027945if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027946 ac_cv_lib_bsd_gethostbyname=yes
27947else
cristy8b350f62009-11-15 23:12:43 +000027948 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027949fi
cristy8b350f62009-11-15 23:12:43 +000027950rm -f core conftest.err conftest.$ac_objext \
27951 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027952LIBS=$ac_check_lib_save_LIBS
27953fi
cristy8b350f62009-11-15 23:12:43 +000027954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027955$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027956if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027957 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27958fi
27959
27960 fi
27961 fi
27962
27963 # lieder@skyler.mavd.honeywell.com says without -lsocket,
27964 # socket/setsockopt and other routines are undefined under SCO ODT
27965 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
27966 # on later versions), says Simon Leinen: it contains gethostby*
27967 # variants that don't use the name server (or something). -lsocket
27968 # must be given before -lnsl if both are needed. We assume that
27969 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000027970 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000027971if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027972
cristy3ed852e2009-09-05 21:47:34 +000027973fi
27974
cristy3ed852e2009-09-05 21:47:34 +000027975 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000027976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000027977$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027978if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027979 $as_echo_n "(cached) " >&6
27980else
27981 ac_check_lib_save_LIBS=$LIBS
27982LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027983cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027984/* end confdefs.h. */
27985
27986/* Override any GCC internal prototype to avoid an error.
27987 Use char because int might match the return type of a GCC
27988 builtin and then its argument prototype would still apply. */
27989#ifdef __cplusplus
27990extern "C"
27991#endif
27992char connect ();
27993int
27994main ()
27995{
27996return connect ();
27997 ;
27998 return 0;
27999}
28000_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028001if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028002 ac_cv_lib_socket_connect=yes
28003else
cristy8b350f62009-11-15 23:12:43 +000028004 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000028005fi
cristy8b350f62009-11-15 23:12:43 +000028006rm -f core conftest.err conftest.$ac_objext \
28007 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028008LIBS=$ac_check_lib_save_LIBS
28009fi
cristy8b350f62009-11-15 23:12:43 +000028010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000028011$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000028012if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028013 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
28014fi
28015
28016 fi
28017
28018 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000028019 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000028020if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028021
cristy3ed852e2009-09-05 21:47:34 +000028022fi
28023
cristy3ed852e2009-09-05 21:47:34 +000028024 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000028025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000028026$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028027if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028028 $as_echo_n "(cached) " >&6
28029else
28030 ac_check_lib_save_LIBS=$LIBS
28031LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028032cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028033/* end confdefs.h. */
28034
28035/* Override any GCC internal prototype to avoid an error.
28036 Use char because int might match the return type of a GCC
28037 builtin and then its argument prototype would still apply. */
28038#ifdef __cplusplus
28039extern "C"
28040#endif
28041char remove ();
28042int
28043main ()
28044{
28045return remove ();
28046 ;
28047 return 0;
28048}
28049_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028050if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028051 ac_cv_lib_posix_remove=yes
28052else
cristy8b350f62009-11-15 23:12:43 +000028053 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000028054fi
cristy8b350f62009-11-15 23:12:43 +000028055rm -f core conftest.err conftest.$ac_objext \
28056 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028057LIBS=$ac_check_lib_save_LIBS
28058fi
cristy8b350f62009-11-15 23:12:43 +000028059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000028060$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000028061if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028062 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
28063fi
28064
28065 fi
28066
28067 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000028068 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000028069if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028070
cristy3ed852e2009-09-05 21:47:34 +000028071fi
28072
cristy3ed852e2009-09-05 21:47:34 +000028073 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000028074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000028075$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028076if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028077 $as_echo_n "(cached) " >&6
28078else
28079 ac_check_lib_save_LIBS=$LIBS
28080LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028081cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028082/* end confdefs.h. */
28083
28084/* Override any GCC internal prototype to avoid an error.
28085 Use char because int might match the return type of a GCC
28086 builtin and then its argument prototype would still apply. */
28087#ifdef __cplusplus
28088extern "C"
28089#endif
28090char shmat ();
28091int
28092main ()
28093{
28094return shmat ();
28095 ;
28096 return 0;
28097}
28098_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028099if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028100 ac_cv_lib_ipc_shmat=yes
28101else
cristy8b350f62009-11-15 23:12:43 +000028102 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000028103fi
cristy8b350f62009-11-15 23:12:43 +000028104rm -f core conftest.err conftest.$ac_objext \
28105 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028106LIBS=$ac_check_lib_save_LIBS
28107fi
cristy8b350f62009-11-15 23:12:43 +000028108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000028109$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000028110if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028111 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
28112fi
28113
28114 fi
28115 fi
28116
28117 # Check for libraries that X11R6 Xt/Xaw programs need.
28118 ac_save_LDFLAGS=$LDFLAGS
28119 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
28120 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
28121 # check for ICE first), but we must link in the order -lSM -lICE or
28122 # we get undefined symbols. So assume we have SM if we have ICE.
28123 # These have to be linked with before -lX11, unlike the other
28124 # libraries we check for below, so use a different variable.
28125 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000028126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000028127$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028128if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028129 $as_echo_n "(cached) " >&6
28130else
28131 ac_check_lib_save_LIBS=$LIBS
28132LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028133cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028134/* end confdefs.h. */
28135
28136/* Override any GCC internal prototype to avoid an error.
28137 Use char because int might match the return type of a GCC
28138 builtin and then its argument prototype would still apply. */
28139#ifdef __cplusplus
28140extern "C"
28141#endif
28142char IceConnectionNumber ();
28143int
28144main ()
28145{
28146return IceConnectionNumber ();
28147 ;
28148 return 0;
28149}
28150_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028151if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028152 ac_cv_lib_ICE_IceConnectionNumber=yes
28153else
cristy8b350f62009-11-15 23:12:43 +000028154 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000028155fi
cristy8b350f62009-11-15 23:12:43 +000028156rm -f core conftest.err conftest.$ac_objext \
28157 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028158LIBS=$ac_check_lib_save_LIBS
28159fi
cristy8b350f62009-11-15 23:12:43 +000028160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000028161$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000028162if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028163 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
28164fi
28165
28166 LDFLAGS=$ac_save_LDFLAGS
28167
28168fi
28169
28170if test "$no_x" != 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000028171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28172$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000028174$as_echo_n "checking for X11... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28176$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028177 LDFLAGS="$LDFLAGS $X_LIBS"
28178 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
28179 LIBS="$X11_LIBS $LIBS"
28180 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
28181
28182
cristy8b350f62009-11-15 23:12:43 +000028183$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028184
28185 #
28186 # Check for X11 shared memory extension
28187 #
28188 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000028189 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000028190if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028191 have_shmctl='yes'
28192fi
28193
28194 if test "$have_shmctl" != 'yes'; then
28195 PERSIST_LIBS=$LIBS
28196 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000028197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028198/* end confdefs.h. */
28199
28200/* Override any GCC internal prototype to avoid an error.
28201 Use char because int might match the return type of a GCC
28202 builtin and then its argument prototype would still apply. */
28203#ifdef __cplusplus
28204extern "C"
28205#endif
28206char shmctl ();
28207int
28208main ()
28209{
28210return shmctl ();
28211 ;
28212 return 0;
28213}
28214_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028215if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028216 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000028217fi
cristy8b350f62009-11-15 23:12:43 +000028218rm -f core conftest.err conftest.$ac_objext \
28219 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028220 LIBS=$PERSIST_LIBS
28221 fi
28222
28223 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028225$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028226if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028227 $as_echo_n "(cached) " >&6
28228else
28229 ac_check_lib_save_LIBS=$LIBS
28230LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028231cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028232/* end confdefs.h. */
28233
28234/* Override any GCC internal prototype to avoid an error.
28235 Use char because int might match the return type of a GCC
28236 builtin and then its argument prototype would still apply. */
28237#ifdef __cplusplus
28238extern "C"
28239#endif
28240char XShmAttach ();
28241int
28242main ()
28243{
28244return XShmAttach ();
28245 ;
28246 return 0;
28247}
28248_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028249if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028250 ac_cv_lib_Xext_XShmAttach=yes
28251else
cristy8b350f62009-11-15 23:12:43 +000028252 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000028253fi
cristy8b350f62009-11-15 23:12:43 +000028254rm -f core conftest.err conftest.$ac_objext \
28255 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028256LIBS=$ac_check_lib_save_LIBS
28257fi
cristy8b350f62009-11-15 23:12:43 +000028258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000028259$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000028260if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028261 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000028262$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028263
28264fi
28265
28266 fi
28267
28268 #
28269 # Check for X11 shape extension
28270 #
cristy8b350f62009-11-15 23:12:43 +000028271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028272$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028273if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028274 $as_echo_n "(cached) " >&6
28275else
28276 ac_check_lib_save_LIBS=$LIBS
28277LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028278cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028279/* end confdefs.h. */
28280
28281/* Override any GCC internal prototype to avoid an error.
28282 Use char because int might match the return type of a GCC
28283 builtin and then its argument prototype would still apply. */
28284#ifdef __cplusplus
28285extern "C"
28286#endif
28287char XShapeCombineMask ();
28288int
28289main ()
28290{
28291return XShapeCombineMask ();
28292 ;
28293 return 0;
28294}
28295_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028296if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028297 ac_cv_lib_Xext_XShapeCombineMask=yes
28298else
cristy8b350f62009-11-15 23:12:43 +000028299 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000028300fi
cristy8b350f62009-11-15 23:12:43 +000028301rm -f core conftest.err conftest.$ac_objext \
28302 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028303LIBS=$ac_check_lib_save_LIBS
28304fi
cristy8b350f62009-11-15 23:12:43 +000028305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000028306$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000028307if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028308 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000028309$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028310
28311fi
28312
cristy8b350f62009-11-15 23:12:43 +000028313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000028314$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028315if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028316 $as_echo_n "(cached) " >&6
28317else
28318 ac_check_lib_save_LIBS=$LIBS
28319LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028320cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028321/* end confdefs.h. */
28322
28323/* Override any GCC internal prototype to avoid an error.
28324 Use char because int might match the return type of a GCC
28325 builtin and then its argument prototype would still apply. */
28326#ifdef __cplusplus
28327extern "C"
28328#endif
28329char XtSetEventDispatcher ();
28330int
28331main ()
28332{
28333return XtSetEventDispatcher ();
28334 ;
28335 return 0;
28336}
28337_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028338if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028339 ac_cv_lib_Xt_XtSetEventDispatcher=yes
28340else
cristy8b350f62009-11-15 23:12:43 +000028341 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000028342fi
cristy8b350f62009-11-15 23:12:43 +000028343rm -f core conftest.err conftest.$ac_objext \
28344 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028345LIBS=$ac_check_lib_save_LIBS
28346fi
cristy8b350f62009-11-15 23:12:43 +000028347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000028348$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000028349if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028350 XT_LIBS='-lXt'
28351fi
28352
28353 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
28354fi
28355if test "$no_x" != 'yes'; then
28356 have_x='yes'
28357else
28358 have_x='no'
28359fi
cristy73bd4a52010-10-05 11:24:23 +000028360 if test "$have_x" = 'yes'; then
28361 X11_DELEGATE_TRUE=
28362 X11_DELEGATE_FALSE='#'
28363else
28364 X11_DELEGATE_TRUE='#'
28365 X11_DELEGATE_FALSE=
28366fi
28367
cristy3ed852e2009-09-05 21:47:34 +000028368
28369
28370
28371
28372#
28373# Check for ZLIB
28374#
28375
28376# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000028377if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028378 withval=$with_zlib; with_zlib=$withval
28379else
28380 with_zlib='yes'
28381fi
28382
28383
28384if test "$with_zlib" != 'yes'; then
28385 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
28386fi
28387
28388have_zlib='no'
cristy32f75d42015-06-05 18:46:23 +000028389ZLIB_CFLAGS=""
28390ZLIB_LIBS=""
28391ZLIB_PKG=""
28392if test "x$with_zlib" = "xyes"; then
28393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristyad38abe2012-12-23 23:03:21 +000028394$as_echo "-------------------------------------------------------------" >&6; }
cristy32f75d42015-06-05 18:46:23 +000028395
28396pkg_failed=no
28397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000028398$as_echo_n "checking for ZLIB... " >&6; }
cristy32f75d42015-06-05 18:46:23 +000028399
28400if test -n "$ZLIB_CFLAGS"; then
28401 pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS"
28402 elif test -n "$PKG_CONFIG"; then
28403 if test -n "$PKG_CONFIG" && \
28404 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.0.0\""; } >&5
28405 ($PKG_CONFIG --exists --print-errors "zlib >= 1.0.0") 2>&5
28406 ac_status=$?
28407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28408 test $ac_status = 0; }; then
28409 pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib >= 1.0.0" 2>/dev/null`
28410 test "x$?" != "x0" && pkg_failed=yes
cristy3ed852e2009-09-05 21:47:34 +000028411else
cristy32f75d42015-06-05 18:46:23 +000028412 pkg_failed=yes
28413fi
28414 else
28415 pkg_failed=untried
28416fi
28417if test -n "$ZLIB_LIBS"; then
28418 pkg_cv_ZLIB_LIBS="$ZLIB_LIBS"
28419 elif test -n "$PKG_CONFIG"; then
28420 if test -n "$PKG_CONFIG" && \
28421 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.0.0\""; } >&5
28422 ($PKG_CONFIG --exists --print-errors "zlib >= 1.0.0") 2>&5
28423 ac_status=$?
28424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28425 test $ac_status = 0; }; then
28426 pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "zlib >= 1.0.0" 2>/dev/null`
28427 test "x$?" != "x0" && pkg_failed=yes
28428else
28429 pkg_failed=yes
28430fi
28431 else
28432 pkg_failed=untried
cristy3ed852e2009-09-05 21:47:34 +000028433fi
28434
28435
cristy3ed852e2009-09-05 21:47:34 +000028436
cristy32f75d42015-06-05 18:46:23 +000028437if test $pkg_failed = yes; then
28438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28439$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028440
cristy32f75d42015-06-05 18:46:23 +000028441if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28442 _pkg_short_errors_supported=yes
cristy3ed852e2009-09-05 21:47:34 +000028443else
cristy32f75d42015-06-05 18:46:23 +000028444 _pkg_short_errors_supported=no
cristy3ed852e2009-09-05 21:47:34 +000028445fi
cristy32f75d42015-06-05 18:46:23 +000028446 if test $_pkg_short_errors_supported = yes; then
28447 ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib >= 1.0.0" 2>&1`
cristy3ed852e2009-09-05 21:47:34 +000028448 else
cristy32f75d42015-06-05 18:46:23 +000028449 ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib >= 1.0.0" 2>&1`
28450 fi
28451 # Put the nasty error message in config.log where it belongs
28452 echo "$ZLIB_PKG_ERRORS" >&5
28453
28454 have_zlib=no
28455elif test $pkg_failed = untried; then
28456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28457$as_echo "no" >&6; }
28458 have_zlib=no
28459else
28460 ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS
28461 ZLIB_LIBS=$pkg_cv_ZLIB_LIBS
28462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28463$as_echo "yes" >&6; }
28464 have_zlib=yes
28465fi
28466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28467$as_echo "" >&6; }
28468fi
28469
28470if test "$have_zlib" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000028471
cristy8b350f62009-11-15 23:12:43 +000028472$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028473
cristy32f75d42015-06-05 18:46:23 +000028474 CFLAGS="$ZLIB_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000028475fi
cristy32f75d42015-06-05 18:46:23 +000028476
cristy73bd4a52010-10-05 11:24:23 +000028477 if test "$have_zlib" = 'yes'; then
28478 ZLIB_DELEGATE_TRUE=
28479 ZLIB_DELEGATE_FALSE='#'
28480else
28481 ZLIB_DELEGATE_TRUE='#'
28482 ZLIB_DELEGATE_FALSE=
28483fi
28484
cristy3ed852e2009-09-05 21:47:34 +000028485
28486
cristy32f75d42015-06-05 18:46:23 +000028487
28488
cristy5eef09f2012-10-16 12:08:28 +000028489# whether modules are built or not.
28490with_ltdl='yes'
28491have_ltdl='no'
28492LTDL_LIBS=''
28493if test "$build_modules" != 'no' ; then
cristyad38abe2012-12-23 23:03:21 +000028494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28495$as_echo "-------------------------------------------------------------" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000028496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libltdl" >&5
28497$as_echo_n "checking for libltdl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28499$as_echo "" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000028500 failed=0
28501 passed=0
28502 ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
28503if test "x$ac_cv_header_ltdl_h" = xyes; then :
28504 passed=`expr $passed + 1`
28505else
28506 failed=`expr $failed + 1`
28507fi
28508
28509
28510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
28511$as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
28512if ${ac_cv_lib_ltdl_lt_dlinit+:} false; then :
28513 $as_echo_n "(cached) " >&6
28514else
28515 ac_check_lib_save_LIBS=$LIBS
28516LIBS="-lltdl $LIBS"
28517cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28518/* end confdefs.h. */
28519
28520/* Override any GCC internal prototype to avoid an error.
28521 Use char because int might match the return type of a GCC
28522 builtin and then its argument prototype would still apply. */
28523#ifdef __cplusplus
28524extern "C"
28525#endif
28526char lt_dlinit ();
28527int
28528main ()
28529{
28530return lt_dlinit ();
28531 ;
28532 return 0;
28533}
28534_ACEOF
28535if ac_fn_c_try_link "$LINENO"; then :
28536 ac_cv_lib_ltdl_lt_dlinit=yes
28537else
28538 ac_cv_lib_ltdl_lt_dlinit=no
28539fi
28540rm -f core conftest.err conftest.$ac_objext \
28541 conftest$ac_exeext conftest.$ac_ext
28542LIBS=$ac_check_lib_save_LIBS
28543fi
28544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
28545$as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
28546if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes; then :
28547 passed=`expr $passed + 1`
28548else
28549 failed=`expr $failed + 1`
28550fi
28551
28552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libltdl package is complete" >&5
28553$as_echo_n "checking if libltdl package is complete... " >&6; }
28554 if test $passed -gt 0 ; then
28555 if test $failed -gt 0 ; then
28556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28557$as_echo "no -- some components failed test" >&6; }
28558 have_ltdl='no (failed tests)'
28559 else
28560 LTDL_LIBS='-lltdl'
28561 LIBS="$LTDL_LIBS $LIBS"
28562
28563$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
28564
28565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28566$as_echo "yes" >&6; }
28567 have_ltdl='yes'
28568 fi
28569 else
28570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28571$as_echo "no" >&6; }
28572 fi
cristyaf4cbf32012-10-16 23:47:41 +000028573 if test "$have_ltdl" != 'yes' ; then
28574 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28575$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28576as_fn_error 1 "libltdl is required for modules build
28577See \`config.log' for more details" "$LINENO" 5; }
28578 fi
cristy5eef09f2012-10-16 12:08:28 +000028579fi
28580 if test "$have_ltdl" != 'no'; then
28581 WITH_LTDL_TRUE=
28582 WITH_LTDL_FALSE='#'
28583else
28584 WITH_LTDL_TRUE='#'
28585 WITH_LTDL_FALSE=
28586fi
28587
28588
cristy3ed852e2009-09-05 21:47:34 +000028589#
28590# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
28591#
28592LIB_DL=''
28593if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000028595$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028596if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028597 $as_echo_n "(cached) " >&6
28598else
28599 ac_check_lib_save_LIBS=$LIBS
28600LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028601cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028602/* end confdefs.h. */
28603
28604/* Override any GCC internal prototype to avoid an error.
28605 Use char because int might match the return type of a GCC
28606 builtin and then its argument prototype would still apply. */
28607#ifdef __cplusplus
28608extern "C"
28609#endif
28610char dlopen ();
28611int
28612main ()
28613{
28614return dlopen ();
28615 ;
28616 return 0;
28617}
28618_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028619if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028620 ac_cv_lib_dl_dlopen=yes
28621else
cristy8b350f62009-11-15 23:12:43 +000028622 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000028623fi
cristy8b350f62009-11-15 23:12:43 +000028624rm -f core conftest.err conftest.$ac_objext \
28625 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028626LIBS=$ac_check_lib_save_LIBS
28627fi
cristy8b350f62009-11-15 23:12:43 +000028628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028629$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000028630if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028631 LIB_DL='-ldl'
28632fi
28633
28634 LIBS="$LIB_DL $LIBS"
28635fi
28636
28637
28638
28639#
cristy5a3dc992014-12-05 19:50:04 +000028640# Set Apple font directory.
28641#
28642
28643# Check whether --with-apple-font-dir was given.
28644if test "${with_apple_font_dir+set}" = set; then :
28645 withval=$with_apple_font_dir; with_apple_font_dir=$withval
28646else
28647 with_apple_font_dir='default'
28648fi
28649
28650
28651if test "$with_apple_font_dir" != 'default'; then
28652 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-apple-font-dir=$with_apple_font_dir "
28653fi
28654
28655
28656#
cristy3ed852e2009-09-05 21:47:34 +000028657# Check for Autotrace delegate library.
28658#
28659
28660# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000028661if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028662 withval=$with_autotrace; with_autotrace=$withval
28663else
28664 with_autotrace='no'
28665fi
28666
28667
28668if test "$with_autotrace" != 'yes'; then
28669 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
28670fi
28671
28672have_autotrace='no'
28673AUTOTRACE_CFLAGS=""
28674AUTOTRACE_LIBS=""
28675AUTOTRACE_PKG=""
28676if test "x$with_autotrace" = "xyes"; then
cristy32f75d42015-06-05 18:46:23 +000028677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristyad38abe2012-12-23 23:03:21 +000028678$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028679
28680pkg_failed=no
28681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
28682$as_echo_n "checking for AUTOTRACE... " >&6; }
28683
28684if test -n "$AUTOTRACE_CFLAGS"; then
28685 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
28686 elif test -n "$PKG_CONFIG"; then
28687 if test -n "$PKG_CONFIG" && \
28688 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28689 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28690 ac_status=$?
28691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28692 test $ac_status = 0; }; then
28693 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000028694 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000028695else
28696 pkg_failed=yes
28697fi
28698 else
28699 pkg_failed=untried
28700fi
28701if test -n "$AUTOTRACE_LIBS"; then
28702 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
28703 elif test -n "$PKG_CONFIG"; then
28704 if test -n "$PKG_CONFIG" && \
28705 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28706 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28707 ac_status=$?
28708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28709 test $ac_status = 0; }; then
28710 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000028711 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000028712else
28713 pkg_failed=yes
28714fi
28715 else
28716 pkg_failed=untried
28717fi
28718
28719
28720
28721if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000028722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28723$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028724
28725if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28726 _pkg_short_errors_supported=yes
28727else
28728 _pkg_short_errors_supported=no
28729fi
28730 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000028731 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "autotrace >= 0.31.1" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000028732 else
cristy146497a2015-05-17 22:46:16 +000028733 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "autotrace >= 0.31.1" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000028734 fi
28735 # Put the nasty error message in config.log where it belongs
28736 echo "$AUTOTRACE_PKG_ERRORS" >&5
28737
cristy146497a2015-05-17 22:46:16 +000028738 have_autotrace=no
cristy73bd4a52010-10-05 11:24:23 +000028739elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000028740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28741$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028742 have_autotrace=no
28743else
28744 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
28745 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
28746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28747$as_echo "yes" >&6; }
28748 have_autotrace=yes
28749fi
cristy32f75d42015-06-05 18:46:23 +000028750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristyad38abe2012-12-23 23:03:21 +000028751$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028752fi
28753
28754if test "$have_autotrace" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000028755
cristy8b350f62009-11-15 23:12:43 +000028756$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028757
cristy32f75d42015-06-05 18:46:23 +000028758 CFLAGS="$AUTOTRACE_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000028759fi
28760
cristy73bd4a52010-10-05 11:24:23 +000028761 if test "$have_autotrace" = 'yes'; then
28762 AUTOTRACE_DELEGATE_TRUE=
28763 AUTOTRACE_DELEGATE_FALSE='#'
28764else
28765 AUTOTRACE_DELEGATE_TRUE='#'
28766 AUTOTRACE_DELEGATE_FALSE=
28767fi
28768
cristy3ed852e2009-09-05 21:47:34 +000028769
28770
28771
28772
28773#
28774# Check for Display Postscript delegate library.
28775#
28776
28777# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000028778if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028779 withval=$with_dps; with_dps=$withval
28780else
28781 with_dps='yes'
28782fi
28783
28784
28785if test "$with_dps" != 'yes'; then
28786 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
28787fi
28788
28789have_dps='no'
28790DPS_LIBS=''
28791if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28793$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000028795$as_echo_n "checking for DPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28797$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028798 failed=0
28799 passed=0
28800 PERSIST_CPPFLAGS="$CPPFLAGS"
28801 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000028802 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 +000028803if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028804 passed=`expr $passed + 1`
28805else
28806 failed=`expr $failed + 1`
28807fi
28808
28809
28810 # DPS issues:
28811 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
28812 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
28813 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
28814 # ImageMagick itself doesn't use -lXt.
28815 have_libdps='no'
28816 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000028817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028818$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028819if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028820 $as_echo_n "(cached) " >&6
28821else
28822 ac_check_lib_save_LIBS=$LIBS
28823LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028824cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028825/* end confdefs.h. */
28826
28827/* Override any GCC internal prototype to avoid an error.
28828 Use char because int might match the return type of a GCC
28829 builtin and then its argument prototype would still apply. */
28830#ifdef __cplusplus
28831extern "C"
28832#endif
28833char DPSInitialize ();
28834int
28835main ()
28836{
28837return DPSInitialize ();
28838 ;
28839 return 0;
28840}
28841_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028842if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028843 ac_cv_lib_dps_DPSInitialize=yes
28844else
cristy8b350f62009-11-15 23:12:43 +000028845 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028846fi
cristy8b350f62009-11-15 23:12:43 +000028847rm -f core conftest.err conftest.$ac_objext \
28848 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028849LIBS=$ac_check_lib_save_LIBS
28850fi
cristy8b350f62009-11-15 23:12:43 +000028851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028852$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028853if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028854 have_libdps='yes'
28855else
28856 have_libdps='no'
28857fi
28858
28859 if test "$have_libdps" != 'yes'; then
28860 # Unset cache variable so we can try again.
28861 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000028862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028863$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028864if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028865 $as_echo_n "(cached) " >&6
28866else
28867 ac_check_lib_save_LIBS=$LIBS
28868LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028869cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028870/* end confdefs.h. */
28871
28872/* Override any GCC internal prototype to avoid an error.
28873 Use char because int might match the return type of a GCC
28874 builtin and then its argument prototype would still apply. */
28875#ifdef __cplusplus
28876extern "C"
28877#endif
28878char DPSInitialize ();
28879int
28880main ()
28881{
28882return DPSInitialize ();
28883 ;
28884 return 0;
28885}
28886_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028887if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028888 ac_cv_lib_dps_DPSInitialize=yes
28889else
cristy8b350f62009-11-15 23:12:43 +000028890 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028891fi
cristy8b350f62009-11-15 23:12:43 +000028892rm -f core conftest.err conftest.$ac_objext \
28893 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028894LIBS=$ac_check_lib_save_LIBS
28895fi
cristy8b350f62009-11-15 23:12:43 +000028896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028897$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028898if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028899 have_libdps='yes'
28900else
28901 have_libdps='no'
28902fi
28903
28904 if test "$have_libdps" = 'yes'; then
28905 LIBDPS_XT='-lXt'
28906 fi
28907 fi
28908 if test "$have_libdps" = 'yes'; then
28909 passed=`expr $passed + 1`
28910 else
28911 failed=`expr $failed + 1`
28912 fi
cristy8b350f62009-11-15 23:12:43 +000028913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000028914$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028915if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028916 $as_echo_n "(cached) " >&6
28917else
28918 ac_check_lib_save_LIBS=$LIBS
28919LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028920cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028921/* end confdefs.h. */
28922
28923/* Override any GCC internal prototype to avoid an error.
28924 Use char because int might match the return type of a GCC
28925 builtin and then its argument prototype would still apply. */
28926#ifdef __cplusplus
28927extern "C"
28928#endif
28929char XDPSPixelsPerPoint ();
28930int
28931main ()
28932{
28933return XDPSPixelsPerPoint ();
28934 ;
28935 return 0;
28936}
28937_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028938if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028939 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
28940else
cristy8b350f62009-11-15 23:12:43 +000028941 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000028942fi
cristy8b350f62009-11-15 23:12:43 +000028943rm -f core conftest.err conftest.$ac_objext \
28944 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028945LIBS=$ac_check_lib_save_LIBS
28946fi
cristy8b350f62009-11-15 23:12:43 +000028947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000028948$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000028949if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028950 passed=`expr $passed + 1`
28951else
28952 failed=`expr $failed + 1`
28953fi
28954
cristy8b350f62009-11-15 23:12:43 +000028955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028956$as_echo_n "checking if DPS package is complete... " >&6; }
28957 if test $passed -gt 0; then
28958 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28960$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028961 have_dps='no (failed tests)'
28962 CPPFLAGS="$PERSIST_CPPFLAGS"
28963 else
28964 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
28965 LIBS="$DPS_LIBS $LIBS"
28966
cristy8b350f62009-11-15 23:12:43 +000028967$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028968
cristyad38abe2012-12-23 23:03:21 +000028969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28970$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028971 have_dps='yes'
28972 fi
28973 else
cristyad38abe2012-12-23 23:03:21 +000028974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28975$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028976 CPPFLAGS=$PERSIST_CPPFLAGS
28977 fi
28978fi
cristy73bd4a52010-10-05 11:24:23 +000028979 if test "$have_dps" = 'yes'; then
28980 DPS_DELEGATE_TRUE=
28981 DPS_DELEGATE_FALSE='#'
28982else
28983 DPS_DELEGATE_TRUE='#'
28984 DPS_DELEGATE_FALSE=
28985fi
28986
cristy3ed852e2009-09-05 21:47:34 +000028987
28988
28989
28990#
cristy430a7312010-01-21 20:44:04 +000028991# Set DejaVu font directory.
28992#
28993
28994# Check whether --with-dejavu-font-dir was given.
28995if test "${with_dejavu_font_dir+set}" = set; then :
28996 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
28997else
28998 with_dejavu_font_dir='default'
28999fi
29000
29001
29002if test "$with_dejavu_font_dir" != 'default'; then
29003 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
29004fi
29005
29006
29007#
cristy3ed852e2009-09-05 21:47:34 +000029008# Check for FFTW delegate library.
29009#
29010
29011# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000029012if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029013 withval=$with_fftw; with_fftw=$withval
29014else
29015 with_fftw='yes'
29016fi
29017
29018
29019if test "$with_fftw" != 'yes'; then
29020 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
29021fi
29022
cristy81beccd2011-10-03 18:17:24 +000029023have_fftw='no'
cristy32f75d42015-06-05 18:46:23 +000029024FFTW_CFLAGS=""
29025FFTW_LIBS=""
29026FFTW_PKG=""
29027if test "x$with_fftw" = "xyes"; then
29028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristyad38abe2012-12-23 23:03:21 +000029029$as_echo "-------------------------------------------------------------" >&6; }
cristy32f75d42015-06-05 18:46:23 +000029030
29031pkg_failed=no
29032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw3" >&5
29033$as_echo_n "checking for fftw3... " >&6; }
29034
29035if test -n "$fftw3_CFLAGS"; then
29036 pkg_cv_fftw3_CFLAGS="$fftw3_CFLAGS"
29037 elif test -n "$PKG_CONFIG"; then
29038 if test -n "$PKG_CONFIG" && \
29039 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fftw3 >= 3.0.0\""; } >&5
29040 ($PKG_CONFIG --exists --print-errors "fftw3 >= 3.0.0") 2>&5
29041 ac_status=$?
29042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29043 test $ac_status = 0; }; then
29044 pkg_cv_fftw3_CFLAGS=`$PKG_CONFIG --cflags "fftw3 >= 3.0.0" 2>/dev/null`
29045 test "x$?" != "x0" && pkg_failed=yes
cristy81beccd2011-10-03 18:17:24 +000029046else
cristy32f75d42015-06-05 18:46:23 +000029047 pkg_failed=yes
29048fi
29049 else
29050 pkg_failed=untried
29051fi
29052if test -n "$fftw3_LIBS"; then
29053 pkg_cv_fftw3_LIBS="$fftw3_LIBS"
29054 elif test -n "$PKG_CONFIG"; then
29055 if test -n "$PKG_CONFIG" && \
29056 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fftw3 >= 3.0.0\""; } >&5
29057 ($PKG_CONFIG --exists --print-errors "fftw3 >= 3.0.0") 2>&5
29058 ac_status=$?
29059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29060 test $ac_status = 0; }; then
29061 pkg_cv_fftw3_LIBS=`$PKG_CONFIG --libs "fftw3 >= 3.0.0" 2>/dev/null`
29062 test "x$?" != "x0" && pkg_failed=yes
29063else
29064 pkg_failed=yes
29065fi
29066 else
29067 pkg_failed=untried
cristy3ed852e2009-09-05 21:47:34 +000029068fi
29069
cristy81beccd2011-10-03 18:17:24 +000029070
cristy81beccd2011-10-03 18:17:24 +000029071
cristy32f75d42015-06-05 18:46:23 +000029072if test $pkg_failed = yes; then
29073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29074$as_echo "no" >&6; }
cristy81beccd2011-10-03 18:17:24 +000029075
cristy32f75d42015-06-05 18:46:23 +000029076if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29077 _pkg_short_errors_supported=yes
29078else
29079 _pkg_short_errors_supported=no
29080fi
29081 if test $_pkg_short_errors_supported = yes; then
29082 fftw3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fftw3 >= 3.0.0" 2>&1`
cristy81beccd2011-10-03 18:17:24 +000029083 else
cristy32f75d42015-06-05 18:46:23 +000029084 fftw3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fftw3 >= 3.0.0" 2>&1`
29085 fi
29086 # Put the nasty error message in config.log where it belongs
29087 echo "$fftw3_PKG_ERRORS" >&5
29088
29089 have_fftw=no
29090elif test $pkg_failed = untried; then
29091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29092$as_echo "no" >&6; }
29093 have_fftw=no
29094else
29095 fftw3_CFLAGS=$pkg_cv_fftw3_CFLAGS
29096 fftw3_LIBS=$pkg_cv_fftw3_LIBS
29097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29098$as_echo "yes" >&6; }
29099 have_fftw=yes
29100fi
29101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29102$as_echo "" >&6; }
29103fi
29104
29105if test "$have_fftw" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029106
cristy8b350f62009-11-15 23:12:43 +000029107$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029108
cristyb74ab6e2015-06-06 12:39:54 +000029109 FFTW_CFLAGS="$fftw3_CFLAGS"
29110 FFTW_LIBS="$fftw3_LIBS"
cristy32f75d42015-06-05 18:46:23 +000029111 CFLAGS="$fftw3_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000029112fi
cristy32f75d42015-06-05 18:46:23 +000029113
cristy73bd4a52010-10-05 11:24:23 +000029114 if test "$have_fftw" = 'yes'; then
29115 FFTW_DELEGATE_TRUE=
29116 FFTW_DELEGATE_FALSE='#'
29117else
29118 FFTW_DELEGATE_TRUE='#'
29119 FFTW_DELEGATE_FALSE=
29120fi
29121
cristy3ed852e2009-09-05 21:47:34 +000029122
29123
29124
cristy32f75d42015-06-05 18:46:23 +000029125
cristy3ed852e2009-09-05 21:47:34 +000029126#
29127# Check for FlashPIX delegate library.
29128#
29129
29130# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000029131if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029132 withval=$with_fpx; with_fpx=$withval
29133else
29134 with_fpx='yes'
29135fi
29136
29137
29138if test "$with_fpx" != 'yes'; then
29139 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
29140fi
29141
29142have_fpx='no'
29143FPX_LIBS=''
29144if test "$with_fpx" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29146$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000029148$as_echo_n "checking for FlashPIX... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29150$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029151 failed=0
29152 passed=0
29153 ac_ext=cpp
29154ac_cpp='$CXXCPP $CPPFLAGS'
29155ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29156ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29157ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29158
29159
cristy8b350f62009-11-15 23:12:43 +000029160ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029161if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029162 passed=`expr $passed + 1`
29163else
29164 failed=`expr $failed + 1`
29165fi
29166
29167
cristy8b350f62009-11-15 23:12:43 +000029168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000029169$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029170if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029171 $as_echo_n "(cached) " >&6
29172else
29173 ac_check_lib_save_LIBS=$LIBS
29174LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029175cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029176/* end confdefs.h. */
29177
29178/* Override any GCC internal prototype to avoid an error.
29179 Use char because int might match the return type of a GCC
29180 builtin and then its argument prototype would still apply. */
29181#ifdef __cplusplus
29182extern "C"
29183#endif
29184char FPX_OpenImageByFilename ();
29185int
29186main ()
29187{
29188return FPX_OpenImageByFilename ();
29189 ;
29190 return 0;
29191}
29192_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029193if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029194 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
29195else
cristy8b350f62009-11-15 23:12:43 +000029196 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000029197fi
cristy8b350f62009-11-15 23:12:43 +000029198rm -f core conftest.err conftest.$ac_objext \
29199 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029200LIBS=$ac_check_lib_save_LIBS
29201fi
cristy8b350f62009-11-15 23:12:43 +000029202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000029203$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000029204if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029205 passed=`expr $passed + 1`
29206else
29207 failed=`expr $failed + 1`
29208fi
29209
29210 ac_ext=c
29211ac_cpp='$CPP $CPPFLAGS'
29212ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29213ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29214ac_compiler_gnu=$ac_cv_c_compiler_gnu
29215
cristy8b350f62009-11-15 23:12:43 +000029216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029217$as_echo_n "checking if FlashPIX package is complete... " >&6; }
29218 if test $passed -gt 0; then
29219 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29221$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029222 have_fpx='no (failed tests)'
29223 else
29224 FPX_LIBS='-lfpx'
29225
cristy8b350f62009-11-15 23:12:43 +000029226$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029227
cristyad38abe2012-12-23 23:03:21 +000029228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29229$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029230 have_fpx='yes'
29231 PERLMAINCC="$CXX"
29232 fi
29233 else
cristyad38abe2012-12-23 23:03:21 +000029234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29235$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029236 fi
29237fi
cristy73bd4a52010-10-05 11:24:23 +000029238 if test "$have_fpx" = 'yes'; then
29239 FPX_DELEGATE_TRUE=
29240 FPX_DELEGATE_FALSE='#'
29241else
29242 FPX_DELEGATE_TRUE='#'
29243 FPX_DELEGATE_FALSE=
29244fi
29245
cristy3ed852e2009-09-05 21:47:34 +000029246
cristy853d9902014-08-21 18:50:43 +000029247
29248
29249#
29250# Check for DJVU delegate library.
29251#
29252
29253# Check whether --with-djvu was given.
29254if test "${with_djvu+set}" = set; then :
29255 withval=$with_djvu; with_djvu=$withval
29256else
29257 with_djvu='yes'
29258fi
29259
29260
29261if test "$with_djvu" != 'yes'; then
29262 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
29263fi
29264
29265have_djvu='no'
cristy32f75d42015-06-05 18:46:23 +000029266DJVU_CFLAGS=""
29267DJVU_LIBS=""
29268DJVU_PKG=""
29269if test "x$with_djvu" = "xyes"; then
29270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy853d9902014-08-21 18:50:43 +000029271$as_echo "-------------------------------------------------------------" >&6; }
cristy32f75d42015-06-05 18:46:23 +000029272
29273pkg_failed=no
29274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvuapi" >&5
29275$as_echo_n "checking for ddjvuapi... " >&6; }
29276
29277if test -n "$ddjvuapi_CFLAGS"; then
29278 pkg_cv_ddjvuapi_CFLAGS="$ddjvuapi_CFLAGS"
29279 elif test -n "$PKG_CONFIG"; then
29280 if test -n "$PKG_CONFIG" && \
29281 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ddjvuapi >= 3.5.0\""; } >&5
29282 ($PKG_CONFIG --exists --print-errors "ddjvuapi >= 3.5.0") 2>&5
29283 ac_status=$?
29284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29285 test $ac_status = 0; }; then
29286 pkg_cv_ddjvuapi_CFLAGS=`$PKG_CONFIG --cflags "ddjvuapi >= 3.5.0" 2>/dev/null`
29287 test "x$?" != "x0" && pkg_failed=yes
cristy853d9902014-08-21 18:50:43 +000029288else
cristy32f75d42015-06-05 18:46:23 +000029289 pkg_failed=yes
29290fi
29291 else
29292 pkg_failed=untried
29293fi
29294if test -n "$ddjvuapi_LIBS"; then
29295 pkg_cv_ddjvuapi_LIBS="$ddjvuapi_LIBS"
29296 elif test -n "$PKG_CONFIG"; then
29297 if test -n "$PKG_CONFIG" && \
29298 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ddjvuapi >= 3.5.0\""; } >&5
29299 ($PKG_CONFIG --exists --print-errors "ddjvuapi >= 3.5.0") 2>&5
29300 ac_status=$?
29301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29302 test $ac_status = 0; }; then
29303 pkg_cv_ddjvuapi_LIBS=`$PKG_CONFIG --libs "ddjvuapi >= 3.5.0" 2>/dev/null`
29304 test "x$?" != "x0" && pkg_failed=yes
29305else
29306 pkg_failed=yes
29307fi
29308 else
29309 pkg_failed=untried
cristy853d9902014-08-21 18:50:43 +000029310fi
29311
29312
cristy853d9902014-08-21 18:50:43 +000029313
cristy32f75d42015-06-05 18:46:23 +000029314if test $pkg_failed = yes; then
29315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29316$as_echo "no" >&6; }
cristy853d9902014-08-21 18:50:43 +000029317
cristy32f75d42015-06-05 18:46:23 +000029318if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29319 _pkg_short_errors_supported=yes
29320else
29321 _pkg_short_errors_supported=no
29322fi
29323 if test $_pkg_short_errors_supported = yes; then
29324 ddjvuapi_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ddjvuapi >= 3.5.0" 2>&1`
cristy853d9902014-08-21 18:50:43 +000029325 else
cristy32f75d42015-06-05 18:46:23 +000029326 ddjvuapi_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ddjvuapi >= 3.5.0" 2>&1`
29327 fi
29328 # Put the nasty error message in config.log where it belongs
29329 echo "$ddjvuapi_PKG_ERRORS" >&5
29330
29331 have_djvu=no
29332elif test $pkg_failed = untried; then
29333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29334$as_echo "no" >&6; }
29335 have_djvu=no
29336else
29337 ddjvuapi_CFLAGS=$pkg_cv_ddjvuapi_CFLAGS
29338 ddjvuapi_LIBS=$pkg_cv_ddjvuapi_LIBS
29339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29340$as_echo "yes" >&6; }
29341 have_djvu=yes
29342fi
29343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29344$as_echo "" >&6; }
29345fi
29346
29347if test "$have_djvu" = 'yes'; then
cristy853d9902014-08-21 18:50:43 +000029348
29349$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
29350
cristyc83c2cc2015-06-06 16:35:26 +000029351 DJVU_CFLAGS="$ddjvuapi_CFLAGS"
29352 DJVU_LIBS="$ddjvuapi_LIBS"
29353 CFLAGS="$ddjvuapi_CFLAGS $CFLAGS"
cristy853d9902014-08-21 18:50:43 +000029354fi
cristy32f75d42015-06-05 18:46:23 +000029355
cristy853d9902014-08-21 18:50:43 +000029356 if test "$have_djvu" = 'yes'; then
29357 DJVU_DELEGATE_TRUE=
29358 DJVU_DELEGATE_FALSE='#'
29359else
29360 DJVU_DELEGATE_TRUE='#'
29361 DJVU_DELEGATE_FALSE=
29362fi
29363
29364
cristy3ed852e2009-09-05 21:47:34 +000029365
29366
cristy32f75d42015-06-05 18:46:23 +000029367
cristy3ed852e2009-09-05 21:47:34 +000029368#
29369# Check for fontconfig delegate library.
29370#
29371
29372# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000029373if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029374 withval=$with_fontconfig; with_fontconfig=$withval
29375else
cristyfc3d0222012-02-07 15:05:57 +000029376 with_fontconfig='yes'
cristy3ed852e2009-09-05 21:47:34 +000029377fi
29378
29379
29380if test "$with_fontconfig" != 'yes'; then
29381 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
29382fi
29383
29384have_fontconfig='no'
29385FONTCONFIG_CFLAGS=""
29386FONTCONFIG_LIBS=""
29387FONTCONFIG_PKG=""
29388if test "x$with_fontconfig" = "xyes"; then
cristy32f75d42015-06-05 18:46:23 +000029389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristyad38abe2012-12-23 23:03:21 +000029390$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029391
29392pkg_failed=no
29393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
29394$as_echo_n "checking for FONTCONFIG... " >&6; }
29395
29396if test -n "$FONTCONFIG_CFLAGS"; then
29397 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
29398 elif test -n "$PKG_CONFIG"; then
29399 if test -n "$PKG_CONFIG" && \
29400 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29401 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29402 ac_status=$?
29403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29404 test $ac_status = 0; }; then
29405 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000029406 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000029407else
29408 pkg_failed=yes
29409fi
29410 else
29411 pkg_failed=untried
29412fi
29413if test -n "$FONTCONFIG_LIBS"; then
29414 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
29415 elif test -n "$PKG_CONFIG"; then
29416 if test -n "$PKG_CONFIG" && \
29417 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29418 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29419 ac_status=$?
29420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29421 test $ac_status = 0; }; then
29422 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000029423 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000029424else
29425 pkg_failed=yes
29426fi
29427 else
29428 pkg_failed=untried
29429fi
29430
29431
29432
29433if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000029434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29435$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029436
29437if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29438 _pkg_short_errors_supported=yes
29439else
29440 _pkg_short_errors_supported=no
29441fi
29442 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000029443 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fontconfig >= 2.1.0" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000029444 else
cristy146497a2015-05-17 22:46:16 +000029445 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fontconfig >= 2.1.0" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000029446 fi
29447 # Put the nasty error message in config.log where it belongs
29448 echo "$FONTCONFIG_PKG_ERRORS" >&5
29449
cristy146497a2015-05-17 22:46:16 +000029450 have_fontconfig=no
cristy73bd4a52010-10-05 11:24:23 +000029451elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000029452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29453$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029454 have_fontconfig=no
29455else
29456 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
29457 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
29458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29459$as_echo "yes" >&6; }
29460 have_fontconfig=yes
29461fi
cristy32f75d42015-06-05 18:46:23 +000029462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristyad38abe2012-12-23 23:03:21 +000029463$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029464fi
29465
29466if test "$have_fontconfig" = 'yes'; then
29467
cristy8b350f62009-11-15 23:12:43 +000029468$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029469
cristy32f75d42015-06-05 18:46:23 +000029470 CFLAGS="$FONTCONFIG_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000029471fi
29472
cristy73bd4a52010-10-05 11:24:23 +000029473 if test "$have_fontconfig" = 'yes'; then
29474 FONTCONFIG_DELEGATE_TRUE=
29475 FONTCONFIG_DELEGATE_FALSE='#'
29476else
29477 FONTCONFIG_DELEGATE_TRUE='#'
29478 FONTCONFIG_DELEGATE_FALSE=
29479fi
29480
cristy3ed852e2009-09-05 21:47:34 +000029481
29482
29483
29484
29485#
cristy03f187e2013-01-24 00:22:19 +000029486# Check for the Freetype delegate library.
cristy3ed852e2009-09-05 21:47:34 +000029487#
29488
29489# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000029490if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029491 withval=$with_freetype; with_freetype=$withval
29492else
29493 with_freetype='yes'
29494fi
29495
29496
cristy3ed852e2009-09-05 21:47:34 +000029497if test "$with_freetype" != 'yes'; then
29498 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
29499fi
29500
cristy81beccd2011-10-03 18:17:24 +000029501have_freetype='no'
cristy03f187e2013-01-24 00:22:19 +000029502FREETYPE_CFLAGS=""
29503FREETYPE_LIBS=""
29504FREETYPE_PKG=""
29505if test "x$with_freetype" = "xyes"; then
cristy32f75d42015-06-05 18:46:23 +000029506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristyad38abe2012-12-23 23:03:21 +000029507$as_echo "-------------------------------------------------------------" >&6; }
cristy03f187e2013-01-24 00:22:19 +000029508
29509pkg_failed=no
29510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
29511$as_echo_n "checking for FREETYPE... " >&6; }
29512
29513if test -n "$FREETYPE_CFLAGS"; then
29514 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
29515 elif test -n "$PKG_CONFIG"; then
29516 if test -n "$PKG_CONFIG" && \
29517 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
29518 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
29519 ac_status=$?
29520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29521 test $ac_status = 0; }; then
29522 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000029523 test "x$?" != "x0" && pkg_failed=yes
cristy03f187e2013-01-24 00:22:19 +000029524else
29525 pkg_failed=yes
29526fi
29527 else
29528 pkg_failed=untried
29529fi
29530if test -n "$FREETYPE_LIBS"; then
29531 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
29532 elif test -n "$PKG_CONFIG"; then
29533 if test -n "$PKG_CONFIG" && \
29534 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
29535 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
29536 ac_status=$?
29537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29538 test $ac_status = 0; }; then
29539 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000029540 test "x$?" != "x0" && pkg_failed=yes
cristy03f187e2013-01-24 00:22:19 +000029541else
29542 pkg_failed=yes
29543fi
29544 else
29545 pkg_failed=untried
29546fi
29547
29548
29549
29550if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000029551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29552$as_echo "no" >&6; }
cristy03f187e2013-01-24 00:22:19 +000029553
29554if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29555 _pkg_short_errors_supported=yes
29556else
29557 _pkg_short_errors_supported=no
29558fi
29559 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000029560 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "freetype2" 2>&1`
cristy03f187e2013-01-24 00:22:19 +000029561 else
cristy146497a2015-05-17 22:46:16 +000029562 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "freetype2" 2>&1`
cristy03f187e2013-01-24 00:22:19 +000029563 fi
29564 # Put the nasty error message in config.log where it belongs
29565 echo "$FREETYPE_PKG_ERRORS" >&5
29566
cristy146497a2015-05-17 22:46:16 +000029567 have_freetype=no
cristy03f187e2013-01-24 00:22:19 +000029568elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000029569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29570$as_echo "no" >&6; }
cristy03f187e2013-01-24 00:22:19 +000029571 have_freetype=no
29572else
29573 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
29574 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
29575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29576$as_echo "yes" >&6; }
29577 have_freetype=yes
29578fi
cristy32f75d42015-06-05 18:46:23 +000029579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristyad38abe2012-12-23 23:03:21 +000029580$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029581fi
29582
cristy03f187e2013-01-24 00:22:19 +000029583if test "$have_freetype" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029584
cristy8b350f62009-11-15 23:12:43 +000029585$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029586
cristy32f75d42015-06-05 18:46:23 +000029587 CFLAGS="$FREETYPE_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000029588fi
cristy03f187e2013-01-24 00:22:19 +000029589
cristy73bd4a52010-10-05 11:24:23 +000029590 if test "$have_freetype" = 'yes'; then
29591 FREETYPE_DELEGATE_TRUE=
29592 FREETYPE_DELEGATE_FALSE='#'
29593else
29594 FREETYPE_DELEGATE_TRUE='#'
29595 FREETYPE_DELEGATE_FALSE=
29596fi
29597
cristy3ed852e2009-09-05 21:47:34 +000029598
29599
29600
cristy03f187e2013-01-24 00:22:19 +000029601
cristy3ed852e2009-09-05 21:47:34 +000029602#
29603# Check for Ghostscript library or framework.
29604#
29605# Test for iapi.h & test for gsapi_new_instance in -lgs
29606# or -framework Ghostscript
29607
29608
29609# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000029610if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029611 withval=$with_gslib; with_gslib=$withval
29612else
29613 with_gslib='no'
29614fi
29615
29616
cristyb7931f12009-09-25 10:22:21 +000029617gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000029618if test "$with_gslib" != 'yes'; then
29619 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
29620fi
29621
29622have_gslib='no'
29623GS_LIBS=''
29624if test "$with_gslib" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29626$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000029628$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29630$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000029631 framework=0
cristy3ed852e2009-09-05 21:47:34 +000029632 failed=0
29633 passed=0
cristy8b350f62009-11-15 23:12:43 +000029634 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 +000029635if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029636 passed=`expr $passed + 1`
29637else
29638 failed=`expr $failed + 1`
29639fi
29640
29641
cristy8b350f62009-11-15 23:12:43 +000029642 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 +000029643if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029644 passed=`expr $passed + 1`
29645else
29646 failed=`expr $failed + 1`
29647fi
29648
29649
cristy73bd4a52010-10-05 11:24:23 +000029650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
29651$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029652if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000029653 $as_echo_n "(cached) " >&6
29654else
29655 ac_check_framework_save_LIBS=$LIBS
29656LIBS="-framework Ghostscript $LIBS"
29657cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29658/* end confdefs.h. */
29659
29660/* Override any GCC internal prototype to avoid an error.
29661 Use char because int might match the return type of a GCC
29662 builtin and then its argument prototype would still apply. */
29663#ifdef __cplusplus
29664extern "C"
29665#endif
29666char gsapi_new_instance ();
29667int
29668main ()
29669{
29670return gsapi_new_instance ();
29671 ;
29672 return 0;
29673}
29674_ACEOF
29675if ac_fn_c_try_link "$LINENO"; then :
29676 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
29677else
29678 ac_cv_framework_Ghostscript_gsapi_new_instance=no
29679fi
29680rm -f core conftest.err conftest.$ac_objext \
29681 conftest$ac_exeext conftest.$ac_ext
29682LIBS=$ac_check_framework_save_LIBS
29683fi
29684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
29685$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
29686if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
29687 framework=`expr $framework + 1`
29688else
29689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029690$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029691if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029692 $as_echo_n "(cached) " >&6
29693else
29694 ac_check_lib_save_LIBS=$LIBS
29695LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029696cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029697/* end confdefs.h. */
29698
29699/* Override any GCC internal prototype to avoid an error.
29700 Use char because int might match the return type of a GCC
29701 builtin and then its argument prototype would still apply. */
29702#ifdef __cplusplus
29703extern "C"
29704#endif
29705char gsapi_new_instance ();
29706int
29707main ()
29708{
29709return gsapi_new_instance ();
29710 ;
29711 return 0;
29712}
29713_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029714if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029715 ac_cv_lib_gs_gsapi_new_instance=yes
29716else
cristy8b350f62009-11-15 23:12:43 +000029717 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000029718fi
cristy8b350f62009-11-15 23:12:43 +000029719rm -f core conftest.err conftest.$ac_objext \
29720 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029721LIBS=$ac_check_lib_save_LIBS
29722fi
cristy8b350f62009-11-15 23:12:43 +000029723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000029724$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000029725if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029726 passed=`expr $passed + 1`
29727else
29728 failed=`expr $failed + 1`
29729fi
cristy73bd4a52010-10-05 11:24:23 +000029730
29731fi
cristy8b350f62009-11-15 23:12:43 +000029732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029733$as_echo_n "checking if Ghostscript package is complete... " >&6; }
29734 if test $passed -gt 0; then
29735 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29737$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029738 have_gslib='no (failed tests)'
29739 else
29740 if test $framework -gt 0; then
29741 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000029742 gslib_framework='yes'
cristyad38abe2012-12-23 23:03:21 +000029743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
29744$as_echo "yes, using framework." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029745 else
cristyad38abe2012-12-23 23:03:21 +000029746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
29747$as_echo "yes, using library." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029748 GS_LIBS='-lgs'
29749 fi
29750 LIBS="$GS_LIBS $LIBS"
29751
cristy8b350f62009-11-15 23:12:43 +000029752$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029753
29754 have_gslib='yes'
29755 fi
29756 else
cristyad38abe2012-12-23 23:03:21 +000029757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29758$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029759 fi
29760fi
cristy73bd4a52010-10-05 11:24:23 +000029761 if test "$have_gslib" = 'yes'; then
29762 GS_DELEGATE_TRUE=
29763 GS_DELEGATE_FALSE='#'
29764else
29765 GS_DELEGATE_TRUE='#'
29766 GS_DELEGATE_FALSE=
29767fi
29768
cristy3ed852e2009-09-05 21:47:34 +000029769
29770
29771# Set default font search path
29772
29773# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000029774if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029775 withval=$with_fontpath; with_fontpath=$withval
29776else
29777 with_fontpath=''
29778fi
29779
29780
29781if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
29782 with_fontpath=''
29783else
29784
29785cat >>confdefs.h <<_ACEOF
29786#define MAGICK_FONT_PATH "$with_fontpath"
29787_ACEOF
29788
29789fi
29790if test "$with_fontpath=" != ''; then
29791 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
29792fi
29793
29794# Set Ghostscript font directory
29795
29796# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029797if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029798 withval=$with_gs_font_dir; with_gs_font_dir=$withval
29799else
29800 with_gs_font_dir='default'
29801fi
29802
29803
29804if test "$with_gs_font_dir" != 'default'; then
29805 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
29806fi
29807
29808
29809#
29810# Check for GVC delegate library.
29811#
29812
29813# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000029814if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029815 withval=$with_gvc; with_gvc=$withval
29816else
cristy86e31f32015-06-06 15:47:32 +000029817 with_gvc='yes'
cristy3ed852e2009-09-05 21:47:34 +000029818fi
29819
29820
29821if test "$with_gvc" != 'yes'; then
29822 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
29823fi
29824
29825GVC_PKG=""
29826if test "x$with_gvc" = "xyes"; then
cristy32f75d42015-06-05 18:46:23 +000029827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristyad38abe2012-12-23 23:03:21 +000029828$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029829
29830pkg_failed=no
29831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
29832$as_echo_n "checking for GVC... " >&6; }
29833
29834if test -n "$GVC_CFLAGS"; then
29835 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
29836 elif test -n "$PKG_CONFIG"; then
29837 if test -n "$PKG_CONFIG" && \
29838 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29839 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29840 ac_status=$?
29841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29842 test $ac_status = 0; }; then
29843 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000029844 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000029845else
29846 pkg_failed=yes
29847fi
29848 else
29849 pkg_failed=untried
29850fi
29851if test -n "$GVC_LIBS"; then
29852 pkg_cv_GVC_LIBS="$GVC_LIBS"
29853 elif test -n "$PKG_CONFIG"; then
29854 if test -n "$PKG_CONFIG" && \
29855 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29856 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29857 ac_status=$?
29858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29859 test $ac_status = 0; }; then
29860 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000029861 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000029862else
29863 pkg_failed=yes
29864fi
29865 else
29866 pkg_failed=untried
29867fi
29868
29869
29870
29871if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000029872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29873$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029874
29875if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29876 _pkg_short_errors_supported=yes
29877else
29878 _pkg_short_errors_supported=no
29879fi
29880 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000029881 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libgvc >= 2.9.0" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000029882 else
cristy146497a2015-05-17 22:46:16 +000029883 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libgvc >= 2.9.0" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000029884 fi
29885 # Put the nasty error message in config.log where it belongs
29886 echo "$GVC_PKG_ERRORS" >&5
29887
cristy146497a2015-05-17 22:46:16 +000029888 have_gvc=no
cristy73bd4a52010-10-05 11:24:23 +000029889elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000029890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29891$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029892 have_gvc=no
29893else
29894 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
29895 GVC_LIBS=$pkg_cv_GVC_LIBS
29896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29897$as_echo "yes" >&6; }
29898 have_gvc=yes
29899fi
cristy32f75d42015-06-05 18:46:23 +000029900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristyad38abe2012-12-23 23:03:21 +000029901$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029902fi
29903
29904if test "$have_gvc" = 'yes'; then
29905
cristy8b350f62009-11-15 23:12:43 +000029906$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029907
cristy32f75d42015-06-05 18:46:23 +000029908 CFLAGS="$GVC_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000029909fi
29910
cristy73bd4a52010-10-05 11:24:23 +000029911 if test "$have_gvc" = 'yes'; then
29912 GVC_DELEGATE_TRUE=
29913 GVC_DELEGATE_FALSE='#'
29914else
29915 GVC_DELEGATE_TRUE='#'
29916 GVC_DELEGATE_FALSE=
29917fi
29918
cristy3ed852e2009-09-05 21:47:34 +000029919
29920
29921
29922
29923#
29924# Check for JBIG delegate library.
29925#
29926
29927
29928# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000029929if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029930 withval=$with_jbig; with_jbig=$withval
29931else
29932 with_jbig='yes'
29933fi
29934
29935
29936have_jbig='no'
29937JBIG_LIBS=''
29938if test "$with_jbig" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29940$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029942$as_echo_n "checking for JBIG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29944$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029945 failed=0
29946 passed=0
cristy8b350f62009-11-15 23:12:43 +000029947 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029948if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029949 passed=`expr $passed + 1`
29950else
29951 failed=`expr $failed + 1`
29952fi
29953
29954
cristy8b350f62009-11-15 23:12:43 +000029955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000029956$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029957if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029958 $as_echo_n "(cached) " >&6
29959else
29960 ac_check_lib_save_LIBS=$LIBS
29961LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029962cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029963/* end confdefs.h. */
29964
29965/* Override any GCC internal prototype to avoid an error.
29966 Use char because int might match the return type of a GCC
29967 builtin and then its argument prototype would still apply. */
29968#ifdef __cplusplus
29969extern "C"
29970#endif
29971char jbg_dec_init ();
29972int
29973main ()
29974{
29975return jbg_dec_init ();
29976 ;
29977 return 0;
29978}
29979_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029980if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029981 ac_cv_lib_jbig_jbg_dec_init=yes
29982else
cristy8b350f62009-11-15 23:12:43 +000029983 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000029984fi
cristy8b350f62009-11-15 23:12:43 +000029985rm -f core conftest.err conftest.$ac_objext \
29986 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029987LIBS=$ac_check_lib_save_LIBS
29988fi
cristy8b350f62009-11-15 23:12:43 +000029989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000029990$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000029991if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029992 passed=`expr $passed + 1`
29993else
29994 failed=`expr $failed + 1`
29995fi
29996
cristy8b350f62009-11-15 23:12:43 +000029997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029998$as_echo_n "checking if JBIG package is complete... " >&6; }
29999 if test $passed -gt 0; then
30000 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000030001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30002$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030003 have_jbig='no (failed tests)'
30004 else
30005 JBIG_LIBS='-ljbig'
30006 LIBS="$JBIG_LIBS $LIBS"
30007
cristy8b350f62009-11-15 23:12:43 +000030008$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030009
cristyad38abe2012-12-23 23:03:21 +000030010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30011$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030012 have_jbig='yes'
30013 fi
30014 else
cristyad38abe2012-12-23 23:03:21 +000030015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30016$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030017 fi
30018fi
cristy73bd4a52010-10-05 11:24:23 +000030019 if test "$have_jbig" = 'yes'; then
30020 JBIG_DELEGATE_TRUE=
30021 JBIG_DELEGATE_FALSE='#'
30022else
30023 JBIG_DELEGATE_TRUE='#'
30024 JBIG_DELEGATE_FALSE=
30025fi
30026
cristy3ed852e2009-09-05 21:47:34 +000030027
30028
30029
30030#
30031# Check for JPEG delegate library.
30032#
30033
30034# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000030035if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030036 withval=$with_jpeg; with_jpeg=$withval
30037else
30038 with_jpeg='yes'
30039fi
30040
30041
30042if test "$with_jpeg" != 'yes'; then
30043 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
30044fi
30045
30046have_jpeg='no'
30047JPEG_LIBS=''
30048if test "$with_jpeg" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000030049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30050$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000030052$as_echo_n "checking for JPEG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30054$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030055 failed=0
30056 passed=0
cristy8b350f62009-11-15 23:12:43 +000030057 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030058if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030059 passed=`expr $passed + 1`
30060else
30061 failed=`expr $failed + 1`
30062fi
30063
30064
cristy8b350f62009-11-15 23:12:43 +000030065 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030066if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030067 passed=`expr $passed + 1`
30068else
30069 failed=`expr $failed + 1`
30070fi
30071
30072
cristy8b350f62009-11-15 23:12:43 +000030073 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030074if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030075 passed=`expr $passed + 1`
30076else
30077 failed=`expr $failed + 1`
30078fi
30079
30080
cristy8b350f62009-11-15 23:12:43 +000030081 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030082if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030083 passed=`expr $passed + 1`
30084else
30085 failed=`expr $failed + 1`
30086fi
30087
30088
cristy8b350f62009-11-15 23:12:43 +000030089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000030090$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030091if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030092 $as_echo_n "(cached) " >&6
30093else
30094 ac_check_lib_save_LIBS=$LIBS
30095LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030096cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030097/* end confdefs.h. */
30098
30099/* Override any GCC internal prototype to avoid an error.
30100 Use char because int might match the return type of a GCC
30101 builtin and then its argument prototype would still apply. */
30102#ifdef __cplusplus
30103extern "C"
30104#endif
30105char jpeg_read_header ();
30106int
30107main ()
30108{
30109return jpeg_read_header ();
30110 ;
30111 return 0;
30112}
30113_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030114if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030115 ac_cv_lib_jpeg_jpeg_read_header=yes
30116else
cristy8b350f62009-11-15 23:12:43 +000030117 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000030118fi
cristy8b350f62009-11-15 23:12:43 +000030119rm -f core conftest.err conftest.$ac_objext \
30120 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030121LIBS=$ac_check_lib_save_LIBS
30122fi
cristy8b350f62009-11-15 23:12:43 +000030123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000030124$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000030125if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030126 passed=`expr $passed + 1`
30127else
30128 failed=`expr $failed + 1`
30129fi
30130
30131
30132# Test for compatible JPEG library
30133if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000030134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000030135$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030136if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030137 $as_echo_n "(cached) " >&6
30138else
cristy8b350f62009-11-15 23:12:43 +000030139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030140/* end confdefs.h. */
30141#include <stdio.h>
30142#include <stdlib.h>
30143#include <jpeglib.h>
30144
30145int
30146main ()
30147{
30148
30149#if JPEG_LIB_VERSION < 62
30150#error IJG JPEG library must be version 6b or newer!
30151#endif
30152return 0;
30153
30154 ;
30155 return 0;
30156}
30157_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030158if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030159 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
30160else
cristy8b350f62009-11-15 23:12:43 +000030161 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030162fi
cristy3ed852e2009-09-05 21:47:34 +000030163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30164fi
cristy8b350f62009-11-15 23:12:43 +000030165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000030166$as_echo "$ac_cv_jpeg_version_ok" >&6; }
30167fi
cristy8b350f62009-11-15 23:12:43 +000030168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030169$as_echo_n "checking if JPEG package is complete... " >&6; }
30170 if test $passed -gt 0; then
30171 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000030172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30173$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030174 have_jpeg='no (failed tests)'
30175 else
30176 JPEG_LIBS='-ljpeg'
30177 LIBS="$JPEG_LIBS $LIBS"
30178
cristy8b350f62009-11-15 23:12:43 +000030179$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030180
cristyad38abe2012-12-23 23:03:21 +000030181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30182$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030183 have_jpeg='yes'
30184 fi
30185 else
cristyad38abe2012-12-23 23:03:21 +000030186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30187$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030188 fi
30189fi
cristy73bd4a52010-10-05 11:24:23 +000030190 if test "$have_jpeg" = 'yes'; then
30191 JPEG_DELEGATE_TRUE=
30192 JPEG_DELEGATE_FALSE='#'
30193else
30194 JPEG_DELEGATE_TRUE='#'
30195 JPEG_DELEGATE_FALSE=
30196fi
30197
cristy3ed852e2009-09-05 21:47:34 +000030198
30199
30200
30201#
cristy3ed852e2009-09-05 21:47:34 +000030202# Check for LCMS delegate library.
30203#
30204
30205# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000030206if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030207 withval=$with_lcms; with_lcms=$withval
30208else
30209 with_lcms='yes'
30210fi
30211
cristy71203402010-06-18 13:12:03 +000030212if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000030213 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
30214fi
30215
cristy71203402010-06-18 13:12:03 +000030216have_lcms='no'
cristy32f75d42015-06-05 18:46:23 +000030217LCMS_CFLAGS=""
30218LCMS_LIBS=""
30219LCMS_PKG=""
30220if test "x$with_lcms" = "xyes"; then
30221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristyad38abe2012-12-23 23:03:21 +000030222$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000030223
cristy32f75d42015-06-05 18:46:23 +000030224pkg_failed=no
cristyb054e072015-06-05 20:35:43 +000030225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS2" >&5
30226$as_echo_n "checking for LCMS2... " >&6; }
30227
30228if test -n "$LCMS2_CFLAGS"; then
30229 pkg_cv_LCMS2_CFLAGS="$LCMS2_CFLAGS"
30230 elif test -n "$PKG_CONFIG"; then
30231 if test -n "$PKG_CONFIG" && \
30232 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2 >= 2.0.0\""; } >&5
30233 ($PKG_CONFIG --exists --print-errors "lcms2 >= 2.0.0") 2>&5
30234 ac_status=$?
30235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30236 test $ac_status = 0; }; then
30237 pkg_cv_LCMS2_CFLAGS=`$PKG_CONFIG --cflags "lcms2 >= 2.0.0" 2>/dev/null`
30238 test "x$?" != "x0" && pkg_failed=yes
30239else
30240 pkg_failed=yes
30241fi
30242 else
30243 pkg_failed=untried
30244fi
30245if test -n "$LCMS2_LIBS"; then
30246 pkg_cv_LCMS2_LIBS="$LCMS2_LIBS"
30247 elif test -n "$PKG_CONFIG"; then
30248 if test -n "$PKG_CONFIG" && \
30249 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2 >= 2.0.0\""; } >&5
30250 ($PKG_CONFIG --exists --print-errors "lcms2 >= 2.0.0") 2>&5
30251 ac_status=$?
30252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30253 test $ac_status = 0; }; then
30254 pkg_cv_LCMS2_LIBS=`$PKG_CONFIG --libs "lcms2 >= 2.0.0" 2>/dev/null`
30255 test "x$?" != "x0" && pkg_failed=yes
30256else
30257 pkg_failed=yes
30258fi
30259 else
30260 pkg_failed=untried
30261fi
30262
30263
30264
30265if test $pkg_failed = yes; then
30266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30267$as_echo "no" >&6; }
30268
30269if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30270 _pkg_short_errors_supported=yes
30271else
30272 _pkg_short_errors_supported=no
30273fi
30274 if test $_pkg_short_errors_supported = yes; then
30275 LCMS2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lcms2 >= 2.0.0" 2>&1`
30276 else
30277 LCMS2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lcms2 >= 2.0.0" 2>&1`
30278 fi
30279 # Put the nasty error message in config.log where it belongs
30280 echo "$LCMS2_PKG_ERRORS" >&5
30281
30282 have_lcms=no
30283elif test $pkg_failed = untried; then
30284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30285$as_echo "no" >&6; }
30286 have_lcms=no
30287else
30288 LCMS2_CFLAGS=$pkg_cv_LCMS2_CFLAGS
30289 LCMS2_LIBS=$pkg_cv_LCMS2_LIBS
30290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30291$as_echo "yes" >&6; }
30292 have_lcms=yes
30293fi
30294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30295$as_echo "" >&6; }
30296fi
30297
30298if test "$have_lcms" = 'yes'; then
30299
30300$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
30301
cristyb74ab6e2015-06-06 12:39:54 +000030302 LCMS_CFLAGS="$LCMS2_CFLAGS"
30303 LCMS_LIBS="$LCMS2_LIBS"
cristyb054e072015-06-05 20:35:43 +000030304 CFLAGS="$LCMS2_CFLAGS $CFLAGS"
cristyd6ac47f2015-06-06 13:46:55 +000030305 ac_fn_c_check_header_mongrel "$LINENO" "lcms2/lcms2.h" "ac_cv_header_lcms2_lcms2_h" "$ac_includes_default"
30306if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
30307 have_lcms_header='yes'
30308fi
30309
30310
30311 if test "$have_lcms_header" = 'yes'; then
30312
30313$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
30314
cristybc8ef1c2015-06-06 14:32:21 +000030315 else
30316
30317$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
30318
cristyd6ac47f2015-06-06 13:46:55 +000030319 fi
cristy32f75d42015-06-05 18:46:23 +000030320fi
30321
30322 if test "$have_lcms" = 'yes'; then
cristy73bd4a52010-10-05 11:24:23 +000030323 LCMS_DELEGATE_TRUE=
30324 LCMS_DELEGATE_FALSE='#'
30325else
30326 LCMS_DELEGATE_TRUE='#'
30327 LCMS_DELEGATE_FALSE=
30328fi
30329
cristy71203402010-06-18 13:12:03 +000030330
cristy3ed852e2009-09-05 21:47:34 +000030331
30332
30333
30334#
cristy99db3872014-01-01 15:11:34 +000030335# Check for the OpenJP2 delegate library.
30336#
30337
30338# Check whether --with-openjp2 was given.
30339if test "${with_openjp2+set}" = set; then :
30340 withval=$with_openjp2; with_openjp2=$withval
30341else
30342 with_openjp2='yes'
30343fi
30344
30345
30346if test "$with_openjp2" != 'yes'; then
30347 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openjp2=$with_openjp2 "
30348fi
30349
30350have_openjp2='no'
30351LIBOPENJP2_CFLAGS=""
30352LIBOPENJP2_LIBS=""
30353LIBOPENJP2_PKG=""
30354if test "x$with_openjp2" = "xyes"; then
cristy32f75d42015-06-05 18:46:23 +000030355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy99db3872014-01-01 15:11:34 +000030356$as_echo "-------------------------------------------------------------" >&6; }
30357
30358pkg_failed=no
30359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBOPENJP2" >&5
30360$as_echo_n "checking for LIBOPENJP2... " >&6; }
30361
30362if test -n "$LIBOPENJP2_CFLAGS"; then
30363 pkg_cv_LIBOPENJP2_CFLAGS="$LIBOPENJP2_CFLAGS"
30364 elif test -n "$PKG_CONFIG"; then
30365 if test -n "$PKG_CONFIG" && \
cristybc964932014-05-08 21:45:03 +000030366 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopenjp2 >= 2.1.0\""; } >&5
30367 ($PKG_CONFIG --exists --print-errors "libopenjp2 >= 2.1.0") 2>&5
cristy99db3872014-01-01 15:11:34 +000030368 ac_status=$?
30369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30370 test $ac_status = 0; }; then
cristybc964932014-05-08 21:45:03 +000030371 pkg_cv_LIBOPENJP2_CFLAGS=`$PKG_CONFIG --cflags "libopenjp2 >= 2.1.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000030372 test "x$?" != "x0" && pkg_failed=yes
cristy99db3872014-01-01 15:11:34 +000030373else
30374 pkg_failed=yes
30375fi
30376 else
30377 pkg_failed=untried
30378fi
30379if test -n "$LIBOPENJP2_LIBS"; then
30380 pkg_cv_LIBOPENJP2_LIBS="$LIBOPENJP2_LIBS"
30381 elif test -n "$PKG_CONFIG"; then
30382 if test -n "$PKG_CONFIG" && \
cristybc964932014-05-08 21:45:03 +000030383 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopenjp2 >= 2.1.0\""; } >&5
30384 ($PKG_CONFIG --exists --print-errors "libopenjp2 >= 2.1.0") 2>&5
cristy99db3872014-01-01 15:11:34 +000030385 ac_status=$?
30386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30387 test $ac_status = 0; }; then
cristybc964932014-05-08 21:45:03 +000030388 pkg_cv_LIBOPENJP2_LIBS=`$PKG_CONFIG --libs "libopenjp2 >= 2.1.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000030389 test "x$?" != "x0" && pkg_failed=yes
cristy99db3872014-01-01 15:11:34 +000030390else
30391 pkg_failed=yes
30392fi
30393 else
30394 pkg_failed=untried
30395fi
30396
30397
30398
30399if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000030400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30401$as_echo "no" >&6; }
cristy99db3872014-01-01 15:11:34 +000030402
30403if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30404 _pkg_short_errors_supported=yes
30405else
30406 _pkg_short_errors_supported=no
30407fi
30408 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000030409 LIBOPENJP2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libopenjp2 >= 2.1.0" 2>&1`
cristy99db3872014-01-01 15:11:34 +000030410 else
cristy146497a2015-05-17 22:46:16 +000030411 LIBOPENJP2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libopenjp2 >= 2.1.0" 2>&1`
cristy99db3872014-01-01 15:11:34 +000030412 fi
30413 # Put the nasty error message in config.log where it belongs
30414 echo "$LIBOPENJP2_PKG_ERRORS" >&5
30415
cristy146497a2015-05-17 22:46:16 +000030416 have_openjp2=no
cristy99db3872014-01-01 15:11:34 +000030417elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000030418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30419$as_echo "no" >&6; }
cristy99db3872014-01-01 15:11:34 +000030420 have_openjp2=no
30421else
30422 LIBOPENJP2_CFLAGS=$pkg_cv_LIBOPENJP2_CFLAGS
30423 LIBOPENJP2_LIBS=$pkg_cv_LIBOPENJP2_LIBS
30424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30425$as_echo "yes" >&6; }
30426 have_openjp2=yes
30427fi
cristy32f75d42015-06-05 18:46:23 +000030428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy99db3872014-01-01 15:11:34 +000030429$as_echo "" >&6; }
30430fi
30431
30432if test "$have_openjp2" = 'yes'; then
30433
30434$as_echo "#define LIBOPENJP2_DELEGATE 1" >>confdefs.h
30435
cristy32f75d42015-06-05 18:46:23 +000030436 CFLAGS="$LIBOPENJP2_CFLAGS $CFLAGS"
cristy99db3872014-01-01 15:11:34 +000030437fi
30438
30439 if test "$have_openjp2" = 'yes'; then
30440 LIBOPENJP2_DELEGATE_TRUE=
30441 LIBOPENJP2_DELEGATE_FALSE='#'
30442else
30443 LIBOPENJP2_DELEGATE_TRUE='#'
30444 LIBOPENJP2_DELEGATE_FALSE=
30445fi
30446
30447
30448
30449
30450
30451
30452#
cristy3ed852e2009-09-05 21:47:34 +000030453# Check for the LQR (Liquid Rescale) delegate library.
30454#
30455
30456# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000030457if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030458 withval=$with_lqr; with_lqr=$withval
30459else
30460 with_lqr='yes'
30461fi
30462
30463
30464if test "$with_lqr" != 'yes'; then
30465 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
30466fi
30467
30468have_lqr='no'
30469LQR_CFLAGS=""
30470LQR_LIBS=""
30471LQR_PKG=""
30472if test "x$with_lqr" = "xyes"; then
cristy32f75d42015-06-05 18:46:23 +000030473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristyad38abe2012-12-23 23:03:21 +000030474$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030475
30476pkg_failed=no
30477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
30478$as_echo_n "checking for LQR... " >&6; }
30479
30480if test -n "$LQR_CFLAGS"; then
30481 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
30482 elif test -n "$PKG_CONFIG"; then
30483 if test -n "$PKG_CONFIG" && \
30484 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30485 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30486 ac_status=$?
30487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30488 test $ac_status = 0; }; then
30489 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000030490 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000030491else
30492 pkg_failed=yes
30493fi
30494 else
30495 pkg_failed=untried
30496fi
30497if test -n "$LQR_LIBS"; then
30498 pkg_cv_LQR_LIBS="$LQR_LIBS"
30499 elif test -n "$PKG_CONFIG"; then
30500 if test -n "$PKG_CONFIG" && \
30501 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30502 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30503 ac_status=$?
30504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30505 test $ac_status = 0; }; then
30506 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000030507 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000030508else
30509 pkg_failed=yes
30510fi
30511 else
30512 pkg_failed=untried
30513fi
30514
30515
30516
30517if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000030518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30519$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030520
30521if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30522 _pkg_short_errors_supported=yes
30523else
30524 _pkg_short_errors_supported=no
30525fi
30526 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000030527 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lqr-1 >= 0.1.0" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000030528 else
cristy146497a2015-05-17 22:46:16 +000030529 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lqr-1 >= 0.1.0" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000030530 fi
30531 # Put the nasty error message in config.log where it belongs
30532 echo "$LQR_PKG_ERRORS" >&5
30533
cristy146497a2015-05-17 22:46:16 +000030534 have_lqr=no
cristy73bd4a52010-10-05 11:24:23 +000030535elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000030536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30537$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030538 have_lqr=no
30539else
30540 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
30541 LQR_LIBS=$pkg_cv_LQR_LIBS
30542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30543$as_echo "yes" >&6; }
30544 have_lqr=yes
30545fi
cristy32f75d42015-06-05 18:46:23 +000030546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristyad38abe2012-12-23 23:03:21 +000030547$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030548fi
30549
30550if test "$have_lqr" = 'yes'; then
30551
cristy8b350f62009-11-15 23:12:43 +000030552$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030553
cristy32f75d42015-06-05 18:46:23 +000030554 CFLAGS="$LQR_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000030555fi
30556
cristy73bd4a52010-10-05 11:24:23 +000030557 if test "$have_lqr" = 'yes'; then
30558 LQR_DELEGATE_TRUE=
30559 LQR_DELEGATE_FALSE='#'
30560else
30561 LQR_DELEGATE_TRUE='#'
30562 LQR_DELEGATE_FALSE=
30563fi
30564
cristy3ed852e2009-09-05 21:47:34 +000030565
30566
30567
30568
cristy81beccd2011-10-03 18:17:24 +000030569# Disable LZMA (lzma library)
cristyfbb0ef02010-12-19 02:32:11 +000030570
30571# Check whether --with-lzma was given.
30572if test "${with_lzma+set}" = set; then :
30573 withval=$with_lzma; with_lzma=$withval
30574else
30575 with_lzma='yes'
30576fi
30577
cristy81beccd2011-10-03 18:17:24 +000030578if test "$with_lzma" != 'yes' ; then
cristyfbb0ef02010-12-19 02:32:11 +000030579 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
30580fi
30581
cristyb94e5002011-11-14 13:20:10 +000030582LZMA_PKG=""
30583if test "x$with_lzma" = "xyes"; then
cristy32f75d42015-06-05 18:46:23 +000030584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristyad38abe2012-12-23 23:03:21 +000030585$as_echo "-------------------------------------------------------------" >&6; }
cristyb94e5002011-11-14 13:20:10 +000030586
30587pkg_failed=no
30588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
cristyfbb0ef02010-12-19 02:32:11 +000030589$as_echo_n "checking for LZMA... " >&6; }
cristyb94e5002011-11-14 13:20:10 +000030590
30591if test -n "$LZMA_CFLAGS"; then
30592 pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
30593 elif test -n "$PKG_CONFIG"; then
30594 if test -n "$PKG_CONFIG" && \
30595 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30596 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30597 ac_status=$?
30598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30599 test $ac_status = 0; }; then
30600 pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000030601 test "x$?" != "x0" && pkg_failed=yes
cristyb94e5002011-11-14 13:20:10 +000030602else
30603 pkg_failed=yes
30604fi
30605 else
30606 pkg_failed=untried
30607fi
30608if test -n "$LZMA_LIBS"; then
30609 pkg_cv_LZMA_LIBS="$LZMA_LIBS"
30610 elif test -n "$PKG_CONFIG"; then
30611 if test -n "$PKG_CONFIG" && \
30612 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30613 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30614 ac_status=$?
30615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30616 test $ac_status = 0; }; then
30617 pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000030618 test "x$?" != "x0" && pkg_failed=yes
cristyb94e5002011-11-14 13:20:10 +000030619else
30620 pkg_failed=yes
30621fi
30622 else
30623 pkg_failed=untried
30624fi
30625
30626
30627
30628if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000030629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30630$as_echo "no" >&6; }
cristyb94e5002011-11-14 13:20:10 +000030631
30632if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30633 _pkg_short_errors_supported=yes
30634else
30635 _pkg_short_errors_supported=no
30636fi
30637 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000030638 LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "liblzma >= 2.9.0" 2>&1`
cristyb94e5002011-11-14 13:20:10 +000030639 else
cristy146497a2015-05-17 22:46:16 +000030640 LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "liblzma >= 2.9.0" 2>&1`
cristyb94e5002011-11-14 13:20:10 +000030641 fi
30642 # Put the nasty error message in config.log where it belongs
30643 echo "$LZMA_PKG_ERRORS" >&5
30644
cristy146497a2015-05-17 22:46:16 +000030645 have_lzma=no
cristyb94e5002011-11-14 13:20:10 +000030646elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000030647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30648$as_echo "no" >&6; }
cristyb94e5002011-11-14 13:20:10 +000030649 have_lzma=no
30650else
30651 LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
30652 LZMA_LIBS=$pkg_cv_LZMA_LIBS
30653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30654$as_echo "yes" >&6; }
30655 have_lzma=yes
30656fi
cristy32f75d42015-06-05 18:46:23 +000030657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristyad38abe2012-12-23 23:03:21 +000030658$as_echo "" >&6; }
cristyfbb0ef02010-12-19 02:32:11 +000030659fi
30660
cristyb94e5002011-11-14 13:20:10 +000030661if test "$have_lzma" = 'yes'; then
cristyfbb0ef02010-12-19 02:32:11 +000030662
30663$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
30664
cristy32f75d42015-06-05 18:46:23 +000030665 CFLAGS="$LZMA_CFLAGS $CFLAGS"
cristyfbb0ef02010-12-19 02:32:11 +000030666fi
cristyb94e5002011-11-14 13:20:10 +000030667
cristyfbb0ef02010-12-19 02:32:11 +000030668 if test "$have_lzma" = 'yes'; then
30669 LZMA_DELEGATE_TRUE=
30670 LZMA_DELEGATE_FALSE='#'
30671else
30672 LZMA_DELEGATE_TRUE='#'
30673 LZMA_DELEGATE_FALSE=
30674fi
30675
30676
30677
30678
cristyb94e5002011-11-14 13:20:10 +000030679
cristy3ed852e2009-09-05 21:47:34 +000030680#
30681# Check for the OpenEXR delegate library.
30682#
30683
30684# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000030685if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030686 withval=$with_openexr; with_openexr=$withval
30687else
30688 with_openexr='yes'
30689fi
30690
30691
30692if test "$with_openexr" != 'yes'; then
30693 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
30694fi
30695
30696have_openexr='no'
30697OPENEXR_CFLAGS=""
30698OPENEXR_LIBS=""
30699OPENEXR_PKG=""
30700if test "x$with_openexr" = "xyes"; then
cristy32f75d42015-06-05 18:46:23 +000030701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristyad38abe2012-12-23 23:03:21 +000030702$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030703
30704pkg_failed=no
30705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
30706$as_echo_n "checking for OPENEXR... " >&6; }
30707
30708if test -n "$OPENEXR_CFLAGS"; then
30709 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
30710 elif test -n "$PKG_CONFIG"; then
30711 if test -n "$PKG_CONFIG" && \
30712 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30713 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30714 ac_status=$?
30715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30716 test $ac_status = 0; }; then
30717 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000030718 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000030719else
30720 pkg_failed=yes
30721fi
30722 else
30723 pkg_failed=untried
30724fi
30725if test -n "$OPENEXR_LIBS"; then
30726 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
30727 elif test -n "$PKG_CONFIG"; then
30728 if test -n "$PKG_CONFIG" && \
30729 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30730 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30731 ac_status=$?
30732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30733 test $ac_status = 0; }; then
30734 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000030735 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000030736else
30737 pkg_failed=yes
30738fi
30739 else
30740 pkg_failed=untried
30741fi
30742
30743
30744
30745if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000030746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30747$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030748
30749if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30750 _pkg_short_errors_supported=yes
30751else
30752 _pkg_short_errors_supported=no
30753fi
30754 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000030755 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "OpenEXR >= 1.0.6" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000030756 else
cristy146497a2015-05-17 22:46:16 +000030757 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "OpenEXR >= 1.0.6" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000030758 fi
30759 # Put the nasty error message in config.log where it belongs
30760 echo "$OPENEXR_PKG_ERRORS" >&5
30761
cristy146497a2015-05-17 22:46:16 +000030762 have_openexr=no
cristy73bd4a52010-10-05 11:24:23 +000030763elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000030764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30765$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030766 have_openexr=no
30767else
30768 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
30769 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
30770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30771$as_echo "yes" >&6; }
30772 have_openexr=yes
30773fi
cristy32f75d42015-06-05 18:46:23 +000030774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristyad38abe2012-12-23 23:03:21 +000030775$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030776fi
30777
30778if test "$have_openexr" = 'yes'; then
30779
cristy8b350f62009-11-15 23:12:43 +000030780$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030781
cristy32f75d42015-06-05 18:46:23 +000030782 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000030783fi
30784
cristy73bd4a52010-10-05 11:24:23 +000030785 if test "$have_openexr" = 'yes'; then
30786 OPENEXR_DELEGATE_TRUE=
30787 OPENEXR_DELEGATE_FALSE='#'
30788else
30789 OPENEXR_DELEGATE_TRUE='#'
30790 OPENEXR_DELEGATE_FALSE=
30791fi
30792
cristy3ed852e2009-09-05 21:47:34 +000030793
30794
30795
30796
30797#
cristy41cbe8a2011-10-27 01:35:18 +000030798# Check for PANGO delegate library.
30799#
30800
30801# Check whether --with-pango was given.
30802if test "${with_pango+set}" = set; then :
30803 withval=$with_pango; with_pango=$withval
30804else
cristyfc3d0222012-02-07 15:05:57 +000030805 with_pango='yes'
cristy41cbe8a2011-10-27 01:35:18 +000030806fi
30807
30808
30809if test "$with_pango" != 'yes'; then
30810 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
30811fi
30812
30813have_pango='no'
cristya054b762012-03-26 23:16:00 +000030814have_pangocairo='no'
cristy41cbe8a2011-10-27 01:35:18 +000030815PANGO_CFLAGS=""
30816PANGO_LIBS=""
30817PANGO_PKG=""
30818if test "x$with_pango" = "xyes"; then
cristy32f75d42015-06-05 18:46:23 +000030819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy41cbe8a2011-10-27 01:35:18 +000030820$as_echo "-------------------------------------------------------------" >&6; }
30821
30822pkg_failed=no
30823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30824$as_echo_n "checking for PANGO... " >&6; }
30825
30826if test -n "$PANGO_CFLAGS"; then
30827 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30828 elif test -n "$PKG_CONFIG"; then
30829 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030830 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30831 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030832 ac_status=$?
30833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30834 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030835 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangocairo >= 1.28.1" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000030836 test "x$?" != "x0" && pkg_failed=yes
cristy41cbe8a2011-10-27 01:35:18 +000030837else
30838 pkg_failed=yes
30839fi
30840 else
30841 pkg_failed=untried
30842fi
30843if test -n "$PANGO_LIBS"; then
30844 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30845 elif test -n "$PKG_CONFIG"; then
30846 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030847 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30848 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030849 ac_status=$?
30850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30851 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030852 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangocairo >= 1.28.1" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000030853 test "x$?" != "x0" && pkg_failed=yes
cristy41cbe8a2011-10-27 01:35:18 +000030854else
30855 pkg_failed=yes
30856fi
30857 else
30858 pkg_failed=untried
30859fi
30860
30861
30862
30863if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000030864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30865$as_echo "no" >&6; }
cristy41cbe8a2011-10-27 01:35:18 +000030866
30867if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30868 _pkg_short_errors_supported=yes
30869else
30870 _pkg_short_errors_supported=no
30871fi
30872 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000030873 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030874 else
cristy146497a2015-05-17 22:46:16 +000030875 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030876 fi
30877 # Put the nasty error message in config.log where it belongs
30878 echo "$PANGO_PKG_ERRORS" >&5
30879
cristy146497a2015-05-17 22:46:16 +000030880 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000030881elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000030882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30883$as_echo "no" >&6; }
cristya054b762012-03-26 23:16:00 +000030884 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000030885else
30886 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30887 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30889$as_echo "yes" >&6; }
cristya054b762012-03-26 23:16:00 +000030890 have_pangocairo=yes
cristy41cbe8a2011-10-27 01:35:18 +000030891fi
cristy32f75d42015-06-05 18:46:23 +000030892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy41cbe8a2011-10-27 01:35:18 +000030893$as_echo "" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000030894
30895pkg_failed=no
30896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30897$as_echo_n "checking for PANGO... " >&6; }
30898
30899if test -n "$PANGO_CFLAGS"; then
30900 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30901 elif test -n "$PKG_CONFIG"; then
30902 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030903 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30904 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030905 ac_status=$?
30906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30907 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030908 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000030909 test "x$?" != "x0" && pkg_failed=yes
cristy7dc48ed2011-10-28 14:11:43 +000030910else
30911 pkg_failed=yes
30912fi
30913 else
30914 pkg_failed=untried
30915fi
30916if test -n "$PANGO_LIBS"; then
30917 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30918 elif test -n "$PKG_CONFIG"; then
30919 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030920 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30921 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030922 ac_status=$?
30923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30924 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030925 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000030926 test "x$?" != "x0" && pkg_failed=yes
cristy7dc48ed2011-10-28 14:11:43 +000030927else
30928 pkg_failed=yes
30929fi
30930 else
30931 pkg_failed=untried
30932fi
30933
30934
30935
30936if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000030937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30938$as_echo "no" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000030939
30940if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30941 _pkg_short_errors_supported=yes
30942else
30943 _pkg_short_errors_supported=no
30944fi
30945 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000030946 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030947 else
cristy146497a2015-05-17 22:46:16 +000030948 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030949 fi
30950 # Put the nasty error message in config.log where it belongs
30951 echo "$PANGO_PKG_ERRORS" >&5
30952
cristy146497a2015-05-17 22:46:16 +000030953 have_pango=no
cristy7dc48ed2011-10-28 14:11:43 +000030954elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000030955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30956$as_echo "no" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000030957 have_pango=no
30958else
30959 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30960 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30962$as_echo "yes" >&6; }
30963 have_pango=yes
30964fi
cristy32f75d42015-06-05 18:46:23 +000030965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy7dc48ed2011-10-28 14:11:43 +000030966$as_echo "" >&6; }
cristy41cbe8a2011-10-27 01:35:18 +000030967fi
30968
30969if test "$have_pango" = 'yes'; then
30970
30971$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h
30972
cristy32f75d42015-06-05 18:46:23 +000030973 CFLAGS="$PANGO_CFLAGS $CFLAGS"
cristy41cbe8a2011-10-27 01:35:18 +000030974fi
30975
cristya054b762012-03-26 23:16:00 +000030976if test "$have_pangocairo" = 'yes'; then
cristy41cbe8a2011-10-27 01:35:18 +000030977
cristya054b762012-03-26 23:16:00 +000030978$as_echo "#define PANGOCAIRO_DELEGATE 1" >>confdefs.h
cristy41cbe8a2011-10-27 01:35:18 +000030979
cristy32f75d42015-06-05 18:46:23 +000030980 CFLAGS="$PANGOCAIRO_CFLAGS $CFLAGS"
cristy41cbe8a2011-10-27 01:35:18 +000030981fi
30982
30983 if test "$have_pango" = 'yes'; then
30984 PANGO_DELEGATE_TRUE=
30985 PANGO_DELEGATE_FALSE='#'
30986else
30987 PANGO_DELEGATE_TRUE='#'
30988 PANGO_DELEGATE_FALSE=
30989fi
30990
cristya054b762012-03-26 23:16:00 +000030991 if test "$have_pangocairo" = 'yes'; then
30992 PANGOCAIRO_DELEGATE_TRUE=
30993 PANGOCAIRO_DELEGATE_FALSE='#'
cristy41cbe8a2011-10-27 01:35:18 +000030994else
cristya054b762012-03-26 23:16:00 +000030995 PANGOCAIRO_DELEGATE_TRUE='#'
30996 PANGOCAIRO_DELEGATE_FALSE=
cristy41cbe8a2011-10-27 01:35:18 +000030997fi
30998
30999
31000
31001
31002
31003#
cristy3ed852e2009-09-05 21:47:34 +000031004# Check for PNG delegate library.
31005#
31006
31007# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000031008if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031009 withval=$with_png; with_png=$withval
31010else
31011 with_png='yes'
31012fi
31013
31014
31015if test "$with_png" != 'yes'; then
31016 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
31017fi
31018
cristy81beccd2011-10-03 18:17:24 +000031019have_png='no'
cristy32f75d42015-06-05 18:46:23 +000031020PNG_CFLAGS=""
31021PNG_LIBS=""
31022PNG_PKG=""
31023if test "x$with_png" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000031024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31025$as_echo "-------------------------------------------------------------" >&6; }
cristy32f75d42015-06-05 18:46:23 +000031026
31027pkg_failed=no
31028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
31029$as_echo_n "checking for PNG... " >&6; }
31030
31031if test -n "$PNG_CFLAGS"; then
31032 pkg_cv_PNG_CFLAGS="$PNG_CFLAGS"
31033 elif test -n "$PKG_CONFIG"; then
31034 if test -n "$PKG_CONFIG" && \
31035 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng >= 1.0.0\""; } >&5
31036 ($PKG_CONFIG --exists --print-errors "libpng >= 1.0.0") 2>&5
31037 ac_status=$?
31038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31039 test $ac_status = 0; }; then
31040 pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng >= 1.0.0" 2>/dev/null`
31041 test "x$?" != "x0" && pkg_failed=yes
31042else
31043 pkg_failed=yes
31044fi
31045 else
31046 pkg_failed=untried
31047fi
31048if test -n "$PNG_LIBS"; then
31049 pkg_cv_PNG_LIBS="$PNG_LIBS"
31050 elif test -n "$PKG_CONFIG"; then
31051 if test -n "$PKG_CONFIG" && \
31052 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng >= 1.0.0\""; } >&5
31053 ($PKG_CONFIG --exists --print-errors "libpng >= 1.0.0") 2>&5
31054 ac_status=$?
31055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31056 test $ac_status = 0; }; then
31057 pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng >= 1.0.0" 2>/dev/null`
31058 test "x$?" != "x0" && pkg_failed=yes
31059else
31060 pkg_failed=yes
31061fi
31062 else
31063 pkg_failed=untried
31064fi
31065
31066
31067
31068if test $pkg_failed = yes; then
31069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31070$as_echo "no" >&6; }
31071
31072if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31073 _pkg_short_errors_supported=yes
31074else
31075 _pkg_short_errors_supported=no
31076fi
31077 if test $_pkg_short_errors_supported = yes; then
31078 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpng >= 1.0.0" 2>&1`
31079 else
31080 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpng >= 1.0.0" 2>&1`
31081 fi
31082 # Put the nasty error message in config.log where it belongs
31083 echo "$PNG_PKG_ERRORS" >&5
31084
31085 have_png=no
31086elif test $pkg_failed = untried; then
31087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31088$as_echo "no" >&6; }
31089 have_png=no
31090else
31091 PNG_CFLAGS=$pkg_cv_PNG_CFLAGS
31092 PNG_LIBS=$pkg_cv_PNG_LIBS
31093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31094$as_echo "yes" >&6; }
31095 have_png=yes
31096fi
cristyad38abe2012-12-23 23:03:21 +000031097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31098$as_echo "" >&6; }
cristy64877302011-08-23 19:10:31 +000031099fi
31100
cristy32f75d42015-06-05 18:46:23 +000031101if test "$have_png" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000031102
cristy8b350f62009-11-15 23:12:43 +000031103$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031104
cristy32f75d42015-06-05 18:46:23 +000031105 CFLAGS="$PNG_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000031106fi
cristy64877302011-08-23 19:10:31 +000031107
cristy73bd4a52010-10-05 11:24:23 +000031108 if test "$have_png" = 'yes'; then
31109 PNG_DELEGATE_TRUE=
31110 PNG_DELEGATE_FALSE='#'
31111else
31112 PNG_DELEGATE_TRUE='#'
31113 PNG_DELEGATE_FALSE=
31114fi
31115
cristy3ed852e2009-09-05 21:47:34 +000031116
cristy50d3f5c2011-09-10 20:09:06 +000031117
cristy3ed852e2009-09-05 21:47:34 +000031118
31119
31120#
31121# Check for RSVG delegate library.
31122#
31123
31124# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000031125if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031126 withval=$with_rsvg; with_rsvg=$withval
31127else
cristy1164d5f2012-08-15 00:58:25 +000031128 with_rsvg='no'
cristy3ed852e2009-09-05 21:47:34 +000031129fi
31130
31131
31132if test "$with_rsvg" != 'yes'; then
31133 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
31134fi
31135
31136have_rsvg='no'
31137have_cairo='no'
31138RSVG_CFLAGS=""
31139RSVG_LIBS=""
31140RSVG_PKG=""
31141if test "x$with_rsvg" = "xyes"; then
cristy32f75d42015-06-05 18:46:23 +000031142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristyad38abe2012-12-23 23:03:21 +000031143$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031144
31145pkg_failed=no
31146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
31147$as_echo_n "checking for RSVG... " >&6; }
31148
31149if test -n "$RSVG_CFLAGS"; then
31150 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
31151 elif test -n "$PKG_CONFIG"; then
31152 if test -n "$PKG_CONFIG" && \
31153 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31154 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31155 ac_status=$?
31156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31157 test $ac_status = 0; }; then
31158 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000031159 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000031160else
31161 pkg_failed=yes
31162fi
31163 else
31164 pkg_failed=untried
31165fi
31166if test -n "$RSVG_LIBS"; then
31167 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
31168 elif test -n "$PKG_CONFIG"; then
31169 if test -n "$PKG_CONFIG" && \
31170 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31171 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31172 ac_status=$?
31173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31174 test $ac_status = 0; }; then
31175 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000031176 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000031177else
31178 pkg_failed=yes
31179fi
31180 else
31181 pkg_failed=untried
31182fi
31183
31184
31185
31186if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000031187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31188$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031189
31190if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31191 _pkg_short_errors_supported=yes
31192else
31193 _pkg_short_errors_supported=no
31194fi
31195 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000031196 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "librsvg-2.0 >= 2.9.0" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000031197 else
cristy146497a2015-05-17 22:46:16 +000031198 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "librsvg-2.0 >= 2.9.0" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000031199 fi
31200 # Put the nasty error message in config.log where it belongs
31201 echo "$RSVG_PKG_ERRORS" >&5
31202
cristy146497a2015-05-17 22:46:16 +000031203 have_rsvg=no
cristy73bd4a52010-10-05 11:24:23 +000031204elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000031205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31206$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031207 have_rsvg=no
31208else
31209 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
31210 RSVG_LIBS=$pkg_cv_RSVG_LIBS
31211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31212$as_echo "yes" >&6; }
31213 have_rsvg=yes
31214fi
cristy32f75d42015-06-05 18:46:23 +000031215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristyad38abe2012-12-23 23:03:21 +000031216$as_echo "" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031217
31218pkg_failed=no
31219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
31220$as_echo_n "checking for CAIRO_SVG... " >&6; }
31221
31222if test -n "$CAIRO_SVG_CFLAGS"; then
31223 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
31224 elif test -n "$PKG_CONFIG"; then
31225 if test -n "$PKG_CONFIG" && \
31226 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31227 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31228 ac_status=$?
31229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31230 test $ac_status = 0; }; then
31231 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000031232 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000031233else
31234 pkg_failed=yes
31235fi
31236 else
31237 pkg_failed=untried
31238fi
31239if test -n "$CAIRO_SVG_LIBS"; then
31240 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
31241 elif test -n "$PKG_CONFIG"; then
31242 if test -n "$PKG_CONFIG" && \
31243 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31244 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31245 ac_status=$?
31246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31247 test $ac_status = 0; }; then
31248 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000031249 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000031250else
31251 pkg_failed=yes
31252fi
31253 else
31254 pkg_failed=untried
31255fi
31256
31257
31258
31259if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000031260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31261$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031262
31263if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31264 _pkg_short_errors_supported=yes
31265else
31266 _pkg_short_errors_supported=no
31267fi
31268 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000031269 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo-svg" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000031270 else
cristy146497a2015-05-17 22:46:16 +000031271 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cairo-svg" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000031272 fi
31273 # Put the nasty error message in config.log where it belongs
31274 echo "$CAIRO_SVG_PKG_ERRORS" >&5
31275
cristy146497a2015-05-17 22:46:16 +000031276 have_cairo=no
cristy73bd4a52010-10-05 11:24:23 +000031277elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000031278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31279$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031280 have_cairo=no
31281else
31282 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
31283 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
31284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31285$as_echo "yes" >&6; }
31286 have_cairo=yes
31287fi
cristy32f75d42015-06-05 18:46:23 +000031288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristyad38abe2012-12-23 23:03:21 +000031289$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031290fi
31291
31292if test "$have_rsvg" = 'yes'; then
31293
cristy8b350f62009-11-15 23:12:43 +000031294$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031295
cristy32f75d42015-06-05 18:46:23 +000031296 CFLAGS="$RSVG_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000031297fi
31298
31299if test "$have_cairo" = 'yes'; then
31300
cristy8b350f62009-11-15 23:12:43 +000031301$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031302
cristy32f75d42015-06-05 18:46:23 +000031303 CFLAGS="$CAIRO_SVG_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000031304fi
31305
cristy73bd4a52010-10-05 11:24:23 +000031306 if test "$have_rsvg" = 'yes'; then
31307 RSVG_DELEGATE_TRUE=
31308 RSVG_DELEGATE_FALSE='#'
31309else
31310 RSVG_DELEGATE_TRUE='#'
31311 RSVG_DELEGATE_FALSE=
31312fi
31313
31314 if test "$have_cairo" = 'yes'; then
31315 CAIRO_DELEGATE_TRUE=
31316 CAIRO_DELEGATE_FALSE='#'
31317else
31318 CAIRO_DELEGATE_TRUE='#'
31319 CAIRO_DELEGATE_FALSE=
31320fi
31321
cristy3ed852e2009-09-05 21:47:34 +000031322
31323
31324
31325
31326#
31327# Check for TIFF delegate library.
31328#
31329
31330# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000031331if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031332 withval=$with_tiff; with_tiff=$withval
31333else
31334 with_tiff='yes'
31335fi
31336
31337
31338if test "$with_tiff" != 'yes'; then
31339 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
31340fi
31341
31342have_tiff='no'
31343TIFF_LIBS=''
31344if test "$with_tiff" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000031345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31346$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031348$as_echo_n "checking for TIFF... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000031349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31350$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031351 failed=0
31352 passed=0
cristy8b350f62009-11-15 23:12:43 +000031353 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031354if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031355 passed=`expr $passed + 1`
31356else
31357 failed=`expr $failed + 1`
31358fi
31359
31360
cristy8b350f62009-11-15 23:12:43 +000031361 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031362if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031363 passed=`expr $passed + 1`
31364else
31365 failed=`expr $failed + 1`
31366fi
31367
31368
cristy8b350f62009-11-15 23:12:43 +000031369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031370$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031371if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031372 $as_echo_n "(cached) " >&6
31373else
31374 ac_check_lib_save_LIBS=$LIBS
31375LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031376cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031377/* end confdefs.h. */
31378
31379/* Override any GCC internal prototype to avoid an error.
31380 Use char because int might match the return type of a GCC
31381 builtin and then its argument prototype would still apply. */
31382#ifdef __cplusplus
31383extern "C"
31384#endif
31385char TIFFOpen ();
31386int
31387main ()
31388{
31389return TIFFOpen ();
31390 ;
31391 return 0;
31392}
31393_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031394if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031395 ac_cv_lib_tiff_TIFFOpen=yes
31396else
cristy8b350f62009-11-15 23:12:43 +000031397 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031398fi
cristy8b350f62009-11-15 23:12:43 +000031399rm -f core conftest.err conftest.$ac_objext \
31400 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031401LIBS=$ac_check_lib_save_LIBS
31402fi
cristy8b350f62009-11-15 23:12:43 +000031403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031404$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031405if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031406 passed=`expr $passed + 1`
31407else
31408 failed=`expr $failed + 1`
31409fi
31410
cristy8b350f62009-11-15 23:12:43 +000031411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031412$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031413if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031414 $as_echo_n "(cached) " >&6
31415else
31416 ac_check_lib_save_LIBS=$LIBS
31417LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031418cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031419/* end confdefs.h. */
31420
31421/* Override any GCC internal prototype to avoid an error.
31422 Use char because int might match the return type of a GCC
31423 builtin and then its argument prototype would still apply. */
31424#ifdef __cplusplus
31425extern "C"
31426#endif
31427char TIFFClientOpen ();
31428int
31429main ()
31430{
31431return TIFFClientOpen ();
31432 ;
31433 return 0;
31434}
31435_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031436if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031437 ac_cv_lib_tiff_TIFFClientOpen=yes
31438else
cristy8b350f62009-11-15 23:12:43 +000031439 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031440fi
cristy8b350f62009-11-15 23:12:43 +000031441rm -f core conftest.err conftest.$ac_objext \
31442 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031443LIBS=$ac_check_lib_save_LIBS
31444fi
cristy8b350f62009-11-15 23:12:43 +000031445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031446$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031447if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031448 passed=`expr $passed + 1`
31449else
31450 failed=`expr $failed + 1`
31451fi
31452
cristy8b350f62009-11-15 23:12:43 +000031453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031454$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031455if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031456 $as_echo_n "(cached) " >&6
31457else
31458 ac_check_lib_save_LIBS=$LIBS
31459LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031460cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031461/* end confdefs.h. */
31462
31463/* Override any GCC internal prototype to avoid an error.
31464 Use char because int might match the return type of a GCC
31465 builtin and then its argument prototype would still apply. */
31466#ifdef __cplusplus
31467extern "C"
31468#endif
31469char TIFFIsByteSwapped ();
31470int
31471main ()
31472{
31473return TIFFIsByteSwapped ();
31474 ;
31475 return 0;
31476}
31477_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031478if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031479 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
31480else
cristy8b350f62009-11-15 23:12:43 +000031481 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000031482fi
cristy8b350f62009-11-15 23:12:43 +000031483rm -f core conftest.err conftest.$ac_objext \
31484 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031485LIBS=$ac_check_lib_save_LIBS
31486fi
cristy8b350f62009-11-15 23:12:43 +000031487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000031488$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000031489if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031490 passed=`expr $passed + 1`
31491else
31492 failed=`expr $failed + 1`
31493fi
31494
cristy8b350f62009-11-15 23:12:43 +000031495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031496$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031497if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031498 $as_echo_n "(cached) " >&6
31499else
31500 ac_check_lib_save_LIBS=$LIBS
31501LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031502cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031503/* end confdefs.h. */
31504
31505/* Override any GCC internal prototype to avoid an error.
31506 Use char because int might match the return type of a GCC
31507 builtin and then its argument prototype would still apply. */
31508#ifdef __cplusplus
31509extern "C"
31510#endif
31511char TIFFReadRGBATile ();
31512int
31513main ()
31514{
31515return TIFFReadRGBATile ();
31516 ;
31517 return 0;
31518}
31519_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031520if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031521 ac_cv_lib_tiff_TIFFReadRGBATile=yes
31522else
cristy8b350f62009-11-15 23:12:43 +000031523 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000031524fi
cristy8b350f62009-11-15 23:12:43 +000031525rm -f core conftest.err conftest.$ac_objext \
31526 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031527LIBS=$ac_check_lib_save_LIBS
31528fi
cristy8b350f62009-11-15 23:12:43 +000031529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000031530$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000031531if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031532 passed=`expr $passed + 1`
31533else
31534 failed=`expr $failed + 1`
31535fi
31536
cristy8b350f62009-11-15 23:12:43 +000031537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031538$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031539if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031540 $as_echo_n "(cached) " >&6
31541else
31542 ac_check_lib_save_LIBS=$LIBS
31543LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031544cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031545/* end confdefs.h. */
31546
31547/* Override any GCC internal prototype to avoid an error.
31548 Use char because int might match the return type of a GCC
31549 builtin and then its argument prototype would still apply. */
31550#ifdef __cplusplus
31551extern "C"
31552#endif
31553char TIFFReadRGBAStrip ();
31554int
31555main ()
31556{
31557return TIFFReadRGBAStrip ();
31558 ;
31559 return 0;
31560}
31561_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031562if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031563 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
31564else
cristy8b350f62009-11-15 23:12:43 +000031565 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000031566fi
cristy8b350f62009-11-15 23:12:43 +000031567rm -f core conftest.err conftest.$ac_objext \
31568 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031569LIBS=$ac_check_lib_save_LIBS
31570fi
cristy8b350f62009-11-15 23:12:43 +000031571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000031572$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000031573if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031574 passed=`expr $passed + 1`
31575else
31576 failed=`expr $failed + 1`
31577fi
31578
cristy8b350f62009-11-15 23:12:43 +000031579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000031580$as_echo_n "checking if TIFF package is complete... " >&6; }
31581 if test $passed -gt 0; then
31582 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000031583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31584$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031585 have_tiff='no (failed tests)'
31586 else
31587 TIFF_LIBS='-ltiff'
31588 LIBS="$TIFF_LIBS $LIBS"
31589
cristy8b350f62009-11-15 23:12:43 +000031590$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031591
cristyad38abe2012-12-23 23:03:21 +000031592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31593$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031594 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000031595 for ac_header in tiffconf.h
31596do :
31597 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031598if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031599 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031600#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000031601_ACEOF
31602
31603fi
31604
31605done
31606
cristy8b350f62009-11-15 23:12:43 +000031607 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3f590e52011-11-14 14:29:44 +000031608 TIFFIsBigEndian TIFFReadEXIFDirectory TIFFSetErrorHandlerExt \
31609 TIFFSetTagExtender TIFFSetWarningHandlerExt \
31610 TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000031611do :
31612 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31613ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000031614if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000031615 cat >>confdefs.h <<_ACEOF
31616#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31617_ACEOF
31618
31619fi
31620done
31621
31622 fi
31623 else
cristyad38abe2012-12-23 23:03:21 +000031624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31625$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031626 fi
31627fi
cristy73bd4a52010-10-05 11:24:23 +000031628 if test "$have_tiff" = 'yes'; then
31629 TIFF_DELEGATE_TRUE=
31630 TIFF_DELEGATE_FALSE='#'
31631else
31632 TIFF_DELEGATE_TRUE='#'
31633 TIFF_DELEGATE_FALSE=
31634fi
31635
cristy3ed852e2009-09-05 21:47:34 +000031636
31637
31638
31639#
cristyb1860752011-03-14 00:27:46 +000031640# Check for WEBP delegate library.
31641#
31642
31643# Check whether --with-webp was given.
31644if test "${with_webp+set}" = set; then :
31645 withval=$with_webp; with_webp=$withval
31646else
31647 with_webp='yes'
31648fi
31649
31650
31651if test "$with_webp" != 'yes'; then
31652 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
31653fi
31654
31655have_webp='no'
31656WEBP_LIBS=''
31657if test "$with_webp" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000031658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31659$as_echo "-------------------------------------------------------------" >&6; }
cristyb1860752011-03-14 00:27:46 +000031660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
31661$as_echo_n "checking for WEBP... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000031662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31663$as_echo "" >&6; }
cristyb1860752011-03-14 00:27:46 +000031664 failed=0
31665 passed=0
31666 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
31667if test "x$ac_cv_header_webp_decode_h" = xyes; then :
31668 passed=`expr $passed + 1`
31669else
31670 failed=`expr $failed + 1`
31671fi
31672
31673
cristy6d670312013-03-22 23:23:01 +000031674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPPictureInitInternal in -lwebp" >&5
31675$as_echo_n "checking for WebPPictureInitInternal in -lwebp... " >&6; }
31676if ${ac_cv_lib_webp_WebPPictureInitInternal+:} false; then :
cristyb1860752011-03-14 00:27:46 +000031677 $as_echo_n "(cached) " >&6
31678else
31679 ac_check_lib_save_LIBS=$LIBS
31680LIBS="-lwebp $LIBS"
31681cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31682/* end confdefs.h. */
31683
31684/* Override any GCC internal prototype to avoid an error.
31685 Use char because int might match the return type of a GCC
31686 builtin and then its argument prototype would still apply. */
31687#ifdef __cplusplus
31688extern "C"
31689#endif
cristy6d670312013-03-22 23:23:01 +000031690char WebPPictureInitInternal ();
cristyb1860752011-03-14 00:27:46 +000031691int
31692main ()
31693{
cristy6d670312013-03-22 23:23:01 +000031694return WebPPictureInitInternal ();
cristyb1860752011-03-14 00:27:46 +000031695 ;
31696 return 0;
31697}
31698_ACEOF
31699if ac_fn_c_try_link "$LINENO"; then :
cristy6d670312013-03-22 23:23:01 +000031700 ac_cv_lib_webp_WebPPictureInitInternal=yes
cristyb1860752011-03-14 00:27:46 +000031701else
cristy6d670312013-03-22 23:23:01 +000031702 ac_cv_lib_webp_WebPPictureInitInternal=no
cristyb1860752011-03-14 00:27:46 +000031703fi
31704rm -f core conftest.err conftest.$ac_objext \
31705 conftest$ac_exeext conftest.$ac_ext
31706LIBS=$ac_check_lib_save_LIBS
31707fi
cristy6d670312013-03-22 23:23:01 +000031708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPPictureInitInternal" >&5
31709$as_echo "$ac_cv_lib_webp_WebPPictureInitInternal" >&6; }
31710if test "x$ac_cv_lib_webp_WebPPictureInitInternal" = xyes; then :
cristyb1860752011-03-14 00:27:46 +000031711 passed=`expr $passed + 1`
31712else
31713 failed=`expr $failed + 1`
31714fi
31715
31716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
31717$as_echo_n "checking if WEBP package is complete... " >&6; }
31718 if test $passed -gt 0; then
31719 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000031720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31721$as_echo "no -- some components failed test" >&6; }
cristyb1860752011-03-14 00:27:46 +000031722 have_webp='no (failed tests)'
31723 else
31724 WEBP_LIBS='-lwebp'
31725 LIBS="$WEBP_LIBS $LIBS"
31726
31727$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
31728
cristyad38abe2012-12-23 23:03:21 +000031729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31730$as_echo "yes" >&6; }
cristyb1860752011-03-14 00:27:46 +000031731 have_webp='yes'
31732 fi
31733 else
cristyad38abe2012-12-23 23:03:21 +000031734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31735$as_echo "no" >&6; }
cristyb1860752011-03-14 00:27:46 +000031736 fi
31737fi
31738 if test "$have_webp" = 'yes'; then
31739 WEBP_DELEGATE_TRUE=
31740 WEBP_DELEGATE_FALSE='#'
31741else
31742 WEBP_DELEGATE_TRUE='#'
31743 WEBP_DELEGATE_FALSE=
31744fi
31745
31746
31747
31748
31749#
cristy3ed852e2009-09-05 21:47:34 +000031750# Set Windows font directory.
31751#
31752
31753# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000031754if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031755 withval=$with_windows_font_dir; with_windows_font_dir=$withval
31756else
cristy5a3dc992014-12-05 19:50:04 +000031757 with_windows_font_dir='default'
cristy3ed852e2009-09-05 21:47:34 +000031758fi
31759
cristy5a3dc992014-12-05 19:50:04 +000031760
31761if test "$with_windows_font_dir" != 'default'; then
cristy3ed852e2009-09-05 21:47:34 +000031762 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
31763fi
31764
31765
31766#
31767# Check for WMF delegate library.
31768#
31769
31770# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000031771if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031772 withval=$with_wmf; with_wmf=$withval
31773else
cristy32f75d42015-06-05 18:46:23 +000031774 with_wmf='yes'
cristy3ed852e2009-09-05 21:47:34 +000031775fi
31776
31777
31778if test "$with_wmf" != 'yes'; then
31779 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
31780fi
31781
31782have_wmf='no'
cristyebc8f692015-06-16 10:36:30 +000031783WMF_LIBS=''
31784WMF_CFLAGS=''
31785OLIBS="$LIBS"
31786if test "$with_wmf" != 'no'; then
31787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF support " >&5
31788$as_echo_n "checking for WMF support ... " >&6; }
cristy32f75d42015-06-05 18:46:23 +000031789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31790$as_echo "" >&6; }
cristyebc8f692015-06-16 10:36:30 +000031791
31792 have_libwmflite='no'
31793 have_libwmf_ipa_h='no'
31794
31795 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
31796"
31797if test "x$ac_cv_header_libwmf_ipa_h" = xyes; then :
31798 have_libwmf_ipa_h='yes'
cristy03f7cf92011-12-15 01:40:41 +000031799fi
31800
cristyebc8f692015-06-16 10:36:30 +000031801
31802 if test "$have_libwmf_ipa_h" = 'yes'; then
31803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
31804$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
31805if ${ac_cv_lib_wmflite_wmf_lite_create+:} false; then :
31806 $as_echo_n "(cached) " >&6
31807else
31808 ac_check_lib_save_LIBS=$LIBS
31809LIBS="-lwmflite $LIBS"
31810cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31811/* end confdefs.h. */
31812
31813/* Override any GCC internal prototype to avoid an error.
31814 Use char because int might match the return type of a GCC
31815 builtin and then its argument prototype would still apply. */
31816#ifdef __cplusplus
31817extern "C"
31818#endif
31819char wmf_lite_create ();
31820int
31821main ()
31822{
31823return wmf_lite_create ();
31824 ;
31825 return 0;
31826}
31827_ACEOF
31828if ac_fn_c_try_link "$LINENO"; then :
31829 ac_cv_lib_wmflite_wmf_lite_create=yes
31830else
31831 ac_cv_lib_wmflite_wmf_lite_create=no
31832fi
31833rm -f core conftest.err conftest.$ac_objext \
31834 conftest$ac_exeext conftest.$ac_ext
31835LIBS=$ac_check_lib_save_LIBS
31836fi
31837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
31838$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
31839if test "x$ac_cv_lib_wmflite_wmf_lite_create" = xyes; then :
31840 have_libwmflite='yes'
31841fi
31842
31843 if test "$have_libwmflite" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000031844
cristy8b350f62009-11-15 23:12:43 +000031845$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031846
cristyebc8f692015-06-16 10:36:30 +000031847 WMF_LIBS='-lwmflite'
31848 LIBS="$WMF_LIBS $LIBS"
31849 have_wmf='yes'
31850 else
31851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31852$as_echo "no -- some components failed test" >&6; }
31853 have_wmf='no (failed tests)'
31854 have_wmflite='no (failed tests)'
31855 LIBS="$OLIBS"
31856 WMF_LIBS=''
31857 fi
31858 fi
cristy3ed852e2009-09-05 21:47:34 +000031859fi
cristyebc8f692015-06-16 10:36:30 +000031860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete " >&5
31861$as_echo_n "checking if WMF package is complete ... " >&6; }
31862if test "$have_wmf" = 'yes'; then
31863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31864$as_echo "yes" >&6; }
31865else
31866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31867$as_echo "no" >&6; }
31868fi
cristy73bd4a52010-10-05 11:24:23 +000031869 if test "$have_wmf" = 'yes'; then
31870 WMF_DELEGATE_TRUE=
31871 WMF_DELEGATE_FALSE='#'
31872else
31873 WMF_DELEGATE_TRUE='#'
31874 WMF_DELEGATE_FALSE=
31875fi
31876
cristy3ed852e2009-09-05 21:47:34 +000031877
31878
31879
cristy81beccd2011-10-03 18:17:24 +000031880
cristy3ed852e2009-09-05 21:47:34 +000031881#
31882# Check for XML delegate library.
31883#
31884
31885# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000031886if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031887 withval=$with_xml; with_xml=$withval
31888else
cristyfc3d0222012-02-07 15:05:57 +000031889 with_xml='yes'
cristy3ed852e2009-09-05 21:47:34 +000031890fi
31891
31892
cristy81beccd2011-10-03 18:17:24 +000031893if test "$with_xml" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000031894 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
31895fi
31896
cristy81beccd2011-10-03 18:17:24 +000031897have_xml='no'
cristy32f75d42015-06-05 18:46:23 +000031898XML_CFLAGS=""
31899XML_LIBS=""
31900XML_PKG=""
31901if test "x$with_xml" = "xyes"; then
31902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristyad38abe2012-12-23 23:03:21 +000031903$as_echo "-------------------------------------------------------------" >&6; }
cristy32f75d42015-06-05 18:46:23 +000031904
31905pkg_failed=no
31906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
cristy81beccd2011-10-03 18:17:24 +000031907$as_echo_n "checking for XML... " >&6; }
cristy81beccd2011-10-03 18:17:24 +000031908
cristy32f75d42015-06-05 18:46:23 +000031909if test -n "$XML_CFLAGS"; then
31910 pkg_cv_XML_CFLAGS="$XML_CFLAGS"
31911 elif test -n "$PKG_CONFIG"; then
31912 if test -n "$PKG_CONFIG" && \
31913 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.0.0\""; } >&5
31914 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.0.0") 2>&5
31915 ac_status=$?
31916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31917 test $ac_status = 0; }; then
31918 pkg_cv_XML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.0.0" 2>/dev/null`
31919 test "x$?" != "x0" && pkg_failed=yes
cristy81beccd2011-10-03 18:17:24 +000031920else
cristy32f75d42015-06-05 18:46:23 +000031921 pkg_failed=yes
31922fi
31923 else
31924 pkg_failed=untried
31925fi
31926if test -n "$XML_LIBS"; then
31927 pkg_cv_XML_LIBS="$XML_LIBS"
31928 elif test -n "$PKG_CONFIG"; then
31929 if test -n "$PKG_CONFIG" && \
31930 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.0.0\""; } >&5
31931 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.0.0") 2>&5
31932 ac_status=$?
31933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31934 test $ac_status = 0; }; then
31935 pkg_cv_XML_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.0.0" 2>/dev/null`
31936 test "x$?" != "x0" && pkg_failed=yes
31937else
31938 pkg_failed=yes
31939fi
31940 else
31941 pkg_failed=untried
31942fi
31943
31944
31945
31946if test $pkg_failed = yes; then
31947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy81beccd2011-10-03 18:17:24 +000031948$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031949
cristy32f75d42015-06-05 18:46:23 +000031950if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31951 _pkg_short_errors_supported=yes
cristy81beccd2011-10-03 18:17:24 +000031952else
cristy32f75d42015-06-05 18:46:23 +000031953 _pkg_short_errors_supported=no
cristy81beccd2011-10-03 18:17:24 +000031954fi
cristy32f75d42015-06-05 18:46:23 +000031955 if test $_pkg_short_errors_supported = yes; then
31956 XML_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.0.0" 2>&1`
cristy81beccd2011-10-03 18:17:24 +000031957 else
cristy32f75d42015-06-05 18:46:23 +000031958 XML_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.0.0" 2>&1`
31959 fi
31960 # Put the nasty error message in config.log where it belongs
31961 echo "$XML_PKG_ERRORS" >&5
31962
31963 have_xml=no
31964elif test $pkg_failed = untried; then
31965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31966$as_echo "no" >&6; }
31967 have_xml=no
31968else
31969 XML_CFLAGS=$pkg_cv_XML_CFLAGS
31970 XML_LIBS=$pkg_cv_XML_LIBS
31971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31972$as_echo "yes" >&6; }
31973 have_xml=yes
31974fi
31975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31976$as_echo "" >&6; }
31977fi
31978
31979if test "$have_xml" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000031980
cristy8b350f62009-11-15 23:12:43 +000031981$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031982
cristy32f75d42015-06-05 18:46:23 +000031983 CFLAGS="$XML_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000031984fi
cristy32f75d42015-06-05 18:46:23 +000031985
cristy73bd4a52010-10-05 11:24:23 +000031986 if test "$have_xml" = 'yes'; then
31987 XML_DELEGATE_TRUE=
31988 XML_DELEGATE_FALSE='#'
31989else
31990 XML_DELEGATE_TRUE='#'
31991 XML_DELEGATE_FALSE=
31992fi
31993
cristy3ed852e2009-09-05 21:47:34 +000031994
31995
31996
cristy32f75d42015-06-05 18:46:23 +000031997
cristy3ed852e2009-09-05 21:47:34 +000031998# Substitute compiler name to build/link PerlMagick
31999#
32000
32001
32002#
32003# Configure install Paths
32004#
cristy7def36a2011-10-28 19:04:41 +000032005
cristy2a11bef2011-10-28 18:33:11 +000032006# Path to ImageMagick header files
cristybdabdd62013-03-04 17:43:36 +000032007INCLUDE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristye52f12f2012-12-31 15:32:36 +000032008INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}"
32009DEFINE_INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}/"
cristy2a11bef2011-10-28 18:33:11 +000032010case "${build_os}" in
32011 mingw* )
32012 DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1`
32013 ;;
32014esac
32015
32016cat >>confdefs.h <<_ACEOF
32017#define INCLUDE_PATH "$DEFINE_INCLUDE_PATH"
32018_ACEOF
32019
32020
cristy3ed852e2009-09-05 21:47:34 +000032021
cristye52f12f2012-12-31 15:32:36 +000032022# Path to ImageMagick header files (arch part)
32023INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}"
32024DEFINE_INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/"
32025case "${build_os}" in
32026 mingw* )
32027 DEFINE_INCLUDEARCH_PATH=`$WinPathScript "$DEFINE_INCLUDEARCH_PATH" 1`
32028 ;;
32029esac
32030
32031cat >>confdefs.h <<_ACEOF
32032#define INCLUDEARCH_PATH "$DEFINE_INCLUDE_PATH"
32033_ACEOF
32034
32035
32036
cristy3ed852e2009-09-05 21:47:34 +000032037# Subdirectory under lib to place ImageMagick lib files
32038LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
32039
32040cat >>confdefs.h <<_ACEOF
32041#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
32042_ACEOF
32043
32044
32045# Path to ImageMagick bin directory
32046EXECUTABLE_PATH="${BIN_DIR}"
32047DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
32048case "${build_os}" in
32049 mingw* )
32050 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
32051 ;;
32052esac
32053
32054cat >>confdefs.h <<_ACEOF
32055#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
32056_ACEOF
32057
32058
32059
32060# Path to ImageMagick lib
32061LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
32062DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
32063case "${build_os}" in
32064 mingw* )
32065 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
32066 ;;
32067esac
32068
32069cat >>confdefs.h <<_ACEOF
32070#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
32071_ACEOF
32072
32073
32074
cristy3ed852e2009-09-05 21:47:34 +000032075#
cristy8d0ff762013-03-10 20:33:28 +000032076# path to local binaries
32077if test "x$LIB_BIN_BASEDIRNAME" = "x"; then
32078 LIB_BIN_BASEDIRNAME="bin"
32079fi
32080
32081cat >>confdefs.h <<_ACEOF
32082#define LIB_BIN_BASEDIRNAME "$LIB_BIN_BASEDIRNAME"
32083_ACEOF
32084
32085
32086
32087if test "x$LIB_BIN_DIR" = "x"; then
32088 LIB_BIN_DIR=${LIB_BIN_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32089fi
32090
32091
32092LIB_BIN_DIR_RELATIVE_PATH=$LIB_BIN_DIR
32093
32094LIB_BIN_DIR_PATH="${LIBRARY_PATH}/${LIB_BIN_DIR_RELATIVE_PATH}"
32095
32096
32097#
cristy01ff9f32012-12-01 18:15:29 +000032098# path to modules lib
32099if test "x$MODULES_BASEDIRNAME" = "x"; then
32100 MODULES_BASEDIRNAME="modules"
32101fi
cristy3ed852e2009-09-05 21:47:34 +000032102
32103cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032104#define MODULES_BASEDIRNAME "$MODULES_BASEDIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032105_ACEOF
32106
cristy01ff9f32012-12-01 18:15:29 +000032107
32108
32109if test "x$MODULES_DIRNAME" = "x"; then
cristy4bdbd342012-12-03 18:41:18 +000032110 MODULES_DIRNAME=${MODULES_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32111else
cristy3ed852e2009-09-05 21:47:34 +000032112
32113cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032114#define MODULES_DIRNAME "$MODULES_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032115_ACEOF
32116
cristycf4a3c22012-12-02 21:47:25 +000032117fi
cristy01ff9f32012-12-01 18:15:29 +000032118
32119
cristy371d4812012-12-01 19:48:10 +000032120MODULES_RELATIVE_PATH="${MODULES_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032121
32122MODULES_PATH="${LIBRARY_PATH}/${MODULES_RELATIVE_PATH}"
32123
32124
32125#
32126# path to coders lib
32127if test "x$CODER_DIRNAME" = "x"; then
32128 CODER_DIRNAME="coders"
32129fi
32130
32131cat >>confdefs.h <<_ACEOF
32132#define CODER_DIRNAME "$CODER_DIRNAME"
32133_ACEOF
32134
32135
32136
cristy371d4812012-12-01 19:48:10 +000032137CODER_RELATIVE_PATH="${CODER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032138CODER_PATH="${MODULES_PATH}/${CODER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000032139
32140
32141#
32142# Subdirectory under lib to place ImageMagick filter module files
cristy01ff9f32012-12-01 18:15:29 +000032143#
32144# path to coders lib
32145if test "x$FILTER_DIRNAME" = "x"; then
32146 FILTER_DIRNAME="filters"
32147fi
cristy3ed852e2009-09-05 21:47:34 +000032148
32149cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032150#define FILTER_DIRNAME "$FILTER_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032151_ACEOF
32152
cristy3ed852e2009-09-05 21:47:34 +000032153
cristy3ed852e2009-09-05 21:47:34 +000032154
cristy371d4812012-12-01 19:48:10 +000032155FILTER_RELATIVE_PATH="${FILTER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032156FILTER_PATH="${MODULES_PATH}/${FILTER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000032157
32158
32159#
32160# Path to ImageMagick documentation files
cristybdabdd62013-03-04 17:43:36 +000032161DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristyd55889c2011-03-27 00:50:24 +000032162DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
32163DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032164case "${build_os}" in
32165 mingw* )
32166 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
32167 ;;
32168esac
32169
32170cat >>confdefs.h <<_ACEOF
32171#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
32172_ACEOF
32173
32174
32175
cristydd17feb2014-03-05 02:06:32 +000032176#
32177# Enable/Disable documentation
32178# Check whether --enable-docs was given.
32179if test "${enable_docs+set}" = set; then :
32180 enableval=$enable_docs; wantdocs=$enableval
32181else
cristy02272312014-03-07 00:55:25 +000032182 wantdocs=yes
cristydd17feb2014-03-05 02:06:32 +000032183fi
32184
cristy02272312014-03-07 00:55:25 +000032185 if test "$wantdocs" = "yes"; then
cristydd17feb2014-03-05 02:06:32 +000032186 INSTALL_DOC_TRUE=
32187 INSTALL_DOC_FALSE='#'
32188else
32189 INSTALL_DOC_TRUE='#'
32190 INSTALL_DOC_FALSE=
32191fi
32192
32193
cristy2a11bef2011-10-28 18:33:11 +000032194# Subdirectory to place architecture-dependent configuration files
cristybdabdd62013-03-04 17:43:36 +000032195CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristy45dbd322011-03-27 16:40:38 +000032196
32197cat >>confdefs.h <<_ACEOF
32198#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
32199_ACEOF
32200
cristy7def36a2011-10-28 19:04:41 +000032201CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
cristy45dbd322011-03-27 16:40:38 +000032202DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
32203case "${build_os}" in
32204 mingw* )
32205 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
32206 ;;
32207esac
32208
32209cat >>confdefs.h <<_ACEOF
32210#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
32211_ACEOF
32212
32213
32214
cristy2a11bef2011-10-28 18:33:11 +000032215# Subdirectory to place architecture-independent configuration files
cristybdabdd62013-03-04 17:43:36 +000032216SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristy3ed852e2009-09-05 21:47:34 +000032217
32218cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032219#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032220_ACEOF
32221
cristy670aa3c2011-11-03 00:54:00 +000032222SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
cristy4f820712011-04-01 12:35:43 +000032223DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032224case "${build_os}" in
32225 mingw* )
cristy4f820712011-04-01 12:35:43 +000032226 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000032227 ;;
32228esac
32229
32230cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032231#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032232_ACEOF
32233
32234
32235
cristy54378032012-12-04 15:52:20 +000032236#
32237# Subdirectory to place architecture-dependent configuration files.
32238if test "x$SHAREARCH_BASEDIRNAME" = "x"; then
32239 SHAREARCH_BASEDIRNAME="config"
32240fi
cristy670aa3c2011-11-03 00:54:00 +000032241
32242cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000032243#define SHAREARCH_BASEDIRNAME "$SHAREARCH_BASEDIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000032244_ACEOF
32245
cristy54378032012-12-04 15:52:20 +000032246
32247
32248if test "x$SHAREARCH_DIRNAME" = "x"; then
32249 SHAREARCH_DIRNAME=${SHAREARCH_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32250else
cristy670aa3c2011-11-03 00:54:00 +000032251
32252cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000032253#define SHAREARCH_DIRNAME "$SHAREARCH_DIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000032254_ACEOF
32255
cristy54378032012-12-04 15:52:20 +000032256fi
32257
32258
32259SHAREARCH_RELATIVE_PATH="${SHAREARCH_DIRNAME}"
32260
32261SHAREARCH_PATH="${LIBRARY_PATH}/${SHAREARCH_RELATIVE_PATH}"
cristy670aa3c2011-11-03 00:54:00 +000032262
32263
cristy3ed852e2009-09-05 21:47:34 +000032264#
32265# program_transform_name is formed for use in a Makefile, so create a
32266# modified version for use in a shell script.
32267configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
32268
32269# Default delegate definitions
cristyad38abe2012-12-23 23:03:21 +000032270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32271$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000032273$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32275$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032276AutotraceDecodeDelegateDefault='autotrace'
cristy16b412d2014-12-15 11:09:48 +000032277BPGDecodeDelegateDefault='bpgdec'
32278BPGEncodeDelegateDefault='bpgenc'
cristy3d7f8062009-09-24 20:45:35 +000032279BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000032280BZIPDelegateDefault='bzip2'
32281BrowseDelegateDefault='xdg-open'
cristy3ed852e2009-09-05 21:47:34 +000032282CatDelegateDefault='cat'
32283DNGDecodeDelegateDefault='ufraw-batch'
cristy66f238e2014-05-16 12:21:48 +000032284DOCDecodeDelegateDefault='soffice'
cristy3ed852e2009-09-05 21:47:34 +000032285GVCDecodeDelegateDefault='dot'
32286DVIDecodeDelegateDefault='dvips'
32287EchoDelegateDefault='echo'
32288EditorDelegateDefault='xterm'
cristy3ed852e2009-09-05 21:47:34 +000032289ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
32290DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
32291MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
32292GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000032293HPGLDecodeDelegateDefault='hp2xx'
32294HTMLDecodeDelegateDefault='html2ps'
32295ILBMDecodeDelegateDefault='ilbmtoppm'
32296ILBMEncodeDelegateDefault='ppmtoilbm'
cristy71f53d52013-04-27 13:33:59 +000032297JXRDecodeDelegateDefault='JxrDecApp'
32298JXREncodeDelegateDefault='JxrEncApp'
cristy3ed852e2009-09-05 21:47:34 +000032299LPDelegateDefault='lp'
32300LPRDelegateDefault='lpr'
cristy3ed852e2009-09-05 21:47:34 +000032301LaunchDelegateDefault='gimp'
32302MANDelegateDefault='groff'
cristy81ab5af2013-10-06 18:28:39 +000032303MPEGDecodeDelegateDefault='avconv'
32304MPEGEncodeDelegateDefault='avconv'
cristy935c86e2010-06-05 23:50:07 +000032305MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000032306MVDelegateDefault='mv'
32307PCLDelegateDefault='pcl6'
32308PGPDecodeDelegateDefault='pgpv'
32309POVDelegateDefault='povray'
32310if test "$native_win32_build" = 'yes'; then
32311 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000032312elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032313 PSDelegateDefault='gsc'
32314else
32315 PSDelegateDefault='gs'
32316fi
32317RLEEncodeDelegateDefault='rawtorle'
32318RMDelegateDefault='rm'
cristy5281e322012-02-09 21:12:45 +000032319RSVGDecodeDelegateDefault='rsvg-convert'
cristy3ed852e2009-09-05 21:47:34 +000032320SCANDecodeDelegateDefault='scanimage'
cristyec6934f2012-08-14 18:38:40 +000032321SVGDecodeDelegateDefault='inkscape'
cristy3ed852e2009-09-05 21:47:34 +000032322TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000032323UniconvertorDelegateDefault='uniconvertor'
cristy86e86092013-08-04 17:43:57 +000032324WebPDecodeDelegateDefault='dwebp'
32325WebPEncodeDelegateDefault='cwebp'
cristy3ed852e2009-09-05 21:47:34 +000032326WMFDecodeDelegateDefault='wmf2eps'
32327WWWDecodeDelegateDefault='curl'
32328XPSDelegateDefault='gxps'
32329ZipDelegateDefault='gzip'
32330
32331# Search for delegates
32332# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
32333set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032335$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032336if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032337 $as_echo_n "(cached) " >&6
32338else
32339 case $AutotraceDecodeDelegate in
32340 [\\/]* | ?:[\\/]*)
32341 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
32342 ;;
32343 *)
32344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32345for as_dir in $PATH
32346do
32347 IFS=$as_save_IFS
32348 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032349 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032351 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032353 break 2
32354 fi
32355done
cristy8b350f62009-11-15 23:12:43 +000032356 done
cristy3ed852e2009-09-05 21:47:34 +000032357IFS=$as_save_IFS
32358
32359 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
32360 ;;
32361esac
32362fi
32363AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
32364if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032366$as_echo "$AutotraceDecodeDelegate" >&6; }
32367else
cristy8b350f62009-11-15 23:12:43 +000032368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032369$as_echo "no" >&6; }
32370fi
32371
32372
cristy16b412d2014-12-15 11:09:48 +000032373# Extract the first word of ""$BGPDecodeDelegateDefault"", so it can be a program name with args.
32374set dummy "$BGPDecodeDelegateDefault"; ac_word=$2
32375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32376$as_echo_n "checking for $ac_word... " >&6; }
32377if ${ac_cv_path_BGPDecodeDelegate+:} false; then :
32378 $as_echo_n "(cached) " >&6
32379else
32380 case $BGPDecodeDelegate in
32381 [\\/]* | ?:[\\/]*)
32382 ac_cv_path_BGPDecodeDelegate="$BGPDecodeDelegate" # Let the user override the test with a path.
32383 ;;
32384 *)
32385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32386for as_dir in $PATH
32387do
32388 IFS=$as_save_IFS
32389 test -z "$as_dir" && as_dir=.
32390 for ac_exec_ext in '' $ac_executable_extensions; do
32391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32392 ac_cv_path_BGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32394 break 2
32395 fi
32396done
32397 done
32398IFS=$as_save_IFS
32399
32400 test -z "$ac_cv_path_BGPDecodeDelegate" && ac_cv_path_BGPDecodeDelegate=""$BGPDecodeDelegateDefault""
32401 ;;
32402esac
32403fi
32404BGPDecodeDelegate=$ac_cv_path_BGPDecodeDelegate
32405if test -n "$BGPDecodeDelegate"; then
32406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BGPDecodeDelegate" >&5
32407$as_echo "$BGPDecodeDelegate" >&6; }
32408else
32409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32410$as_echo "no" >&6; }
32411fi
32412
32413
32414# Extract the first word of ""$BGPEncodeDelegateDefault"", so it can be a program name with args.
32415set dummy "$BGPEncodeDelegateDefault"; ac_word=$2
32416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32417$as_echo_n "checking for $ac_word... " >&6; }
32418if ${ac_cv_path_BGPEncodeDelegate+:} false; then :
32419 $as_echo_n "(cached) " >&6
32420else
32421 case $BGPEncodeDelegate in
32422 [\\/]* | ?:[\\/]*)
32423 ac_cv_path_BGPEncodeDelegate="$BGPEncodeDelegate" # Let the user override the test with a path.
32424 ;;
32425 *)
32426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32427for as_dir in $PATH
32428do
32429 IFS=$as_save_IFS
32430 test -z "$as_dir" && as_dir=.
32431 for ac_exec_ext in '' $ac_executable_extensions; do
32432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32433 ac_cv_path_BGPEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32435 break 2
32436 fi
32437done
32438 done
32439IFS=$as_save_IFS
32440
32441 test -z "$ac_cv_path_BGPEncodeDelegate" && ac_cv_path_BGPEncodeDelegate=""$BGPEncodeDelegateDefault""
32442 ;;
32443esac
32444fi
32445BGPEncodeDelegate=$ac_cv_path_BGPEncodeDelegate
32446if test -n "$BGPEncodeDelegate"; then
32447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BGPEncodeDelegate" >&5
32448$as_echo "$BGPEncodeDelegate" >&6; }
32449else
32450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32451$as_echo "no" >&6; }
32452fi
32453
32454
cristy3ed852e2009-09-05 21:47:34 +000032455# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
32456set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032458$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032459if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032460 $as_echo_n "(cached) " >&6
32461else
32462 case $BlenderDecodeDelegate in
32463 [\\/]* | ?:[\\/]*)
32464 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
32465 ;;
32466 *)
32467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32468for as_dir in $PATH
32469do
32470 IFS=$as_save_IFS
32471 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032472 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032473 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032474 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032476 break 2
32477 fi
32478done
cristy8b350f62009-11-15 23:12:43 +000032479 done
cristy3ed852e2009-09-05 21:47:34 +000032480IFS=$as_save_IFS
32481
32482 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
32483 ;;
32484esac
32485fi
32486BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
32487if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032489$as_echo "$BlenderDecodeDelegate" >&6; }
32490else
cristy8b350f62009-11-15 23:12:43 +000032491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032492$as_echo "no" >&6; }
32493fi
32494
32495
32496# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
32497set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032499$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032500if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032501 $as_echo_n "(cached) " >&6
32502else
32503 case $BZIPDelegate in
32504 [\\/]* | ?:[\\/]*)
32505 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
32506 ;;
32507 *)
32508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32509for as_dir in $PATH
32510do
32511 IFS=$as_save_IFS
32512 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032513 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032515 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032517 break 2
32518 fi
32519done
cristy8b350f62009-11-15 23:12:43 +000032520 done
cristy3ed852e2009-09-05 21:47:34 +000032521IFS=$as_save_IFS
32522
32523 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
32524 ;;
32525esac
32526fi
32527BZIPDelegate=$ac_cv_path_BZIPDelegate
32528if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032530$as_echo "$BZIPDelegate" >&6; }
32531else
cristy8b350f62009-11-15 23:12:43 +000032532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032533$as_echo "no" >&6; }
32534fi
32535
32536
cristyc59f0e72012-08-27 12:59:33 +000032537for ac_prog in "$BrowseDelegateDefault" google-chrome firefox konqueror mozilla lynx
32538do
32539 # Extract the first word of "$ac_prog", so it can be a program name with args.
32540set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032542$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032543if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032544 $as_echo_n "(cached) " >&6
32545else
32546 case $BrowseDelegate in
32547 [\\/]* | ?:[\\/]*)
32548 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
32549 ;;
32550 *)
32551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32552for as_dir in $PATH
32553do
32554 IFS=$as_save_IFS
32555 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032556 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032558 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032560 break 2
32561 fi
32562done
cristy8b350f62009-11-15 23:12:43 +000032563 done
cristy3ed852e2009-09-05 21:47:34 +000032564IFS=$as_save_IFS
32565
cristy3ed852e2009-09-05 21:47:34 +000032566 ;;
32567esac
32568fi
32569BrowseDelegate=$ac_cv_path_BrowseDelegate
32570if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032572$as_echo "$BrowseDelegate" >&6; }
32573else
cristy8b350f62009-11-15 23:12:43 +000032574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032575$as_echo "no" >&6; }
32576fi
32577
32578
cristyc59f0e72012-08-27 12:59:33 +000032579 test -n "$BrowseDelegate" && break
32580done
32581test -n "$BrowseDelegate" || BrowseDelegate=""$BrowseDelegateDefault""
32582
cristy3ed852e2009-09-05 21:47:34 +000032583# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
32584set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032586$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032587if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032588 $as_echo_n "(cached) " >&6
32589else
32590 case $CatDelegate in
32591 [\\/]* | ?:[\\/]*)
32592 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
32593 ;;
32594 *)
32595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32596for as_dir in $PATH
32597do
32598 IFS=$as_save_IFS
32599 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032600 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032602 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032604 break 2
32605 fi
32606done
cristy8b350f62009-11-15 23:12:43 +000032607 done
cristy3ed852e2009-09-05 21:47:34 +000032608IFS=$as_save_IFS
32609
32610 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
32611 ;;
32612esac
32613fi
32614CatDelegate=$ac_cv_path_CatDelegate
32615if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032617$as_echo "$CatDelegate" >&6; }
32618else
cristy8b350f62009-11-15 23:12:43 +000032619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032620$as_echo "no" >&6; }
32621fi
32622
32623
32624# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
32625set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032627$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032628if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032629 $as_echo_n "(cached) " >&6
32630else
32631 case $DNGDecodeDelegate in
32632 [\\/]* | ?:[\\/]*)
32633 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # 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=.
cristy8b350f62009-11-15 23:12:43 +000032641 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
cristy3ed852e2009-09-05 21:47:34 +000032643 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032645 break 2
32646 fi
32647done
cristy8b350f62009-11-15 23:12:43 +000032648 done
cristy3ed852e2009-09-05 21:47:34 +000032649IFS=$as_save_IFS
32650
32651 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
32652 ;;
32653esac
32654fi
32655DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
32656if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032658$as_echo "$DNGDecodeDelegate" >&6; }
32659else
cristy8b350f62009-11-15 23:12:43 +000032660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032661$as_echo "no" >&6; }
32662fi
32663
32664
cristy66f238e2014-05-16 12:21:48 +000032665# Extract the first word of ""$DOCDecodeDelegateDefault"", so it can be a program name with args.
32666set dummy "$DOCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032668$as_echo_n "checking for $ac_word... " >&6; }
cristy66f238e2014-05-16 12:21:48 +000032669if ${ac_cv_path_DOCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032670 $as_echo_n "(cached) " >&6
32671else
cristy66f238e2014-05-16 12:21:48 +000032672 case $DOCDecodeDelegate in
cristy3ed852e2009-09-05 21:47:34 +000032673 [\\/]* | ?:[\\/]*)
cristy66f238e2014-05-16 12:21:48 +000032674 ac_cv_path_DOCDecodeDelegate="$DOCDecodeDelegate" # Let the user override the test with a path.
cristy3ed852e2009-09-05 21:47:34 +000032675 ;;
32676 *)
32677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32678for as_dir in $PATH
32679do
32680 IFS=$as_save_IFS
32681 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032682 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy66f238e2014-05-16 12:21:48 +000032684 ac_cv_path_DOCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032686 break 2
32687 fi
32688done
cristy8b350f62009-11-15 23:12:43 +000032689 done
cristy3ed852e2009-09-05 21:47:34 +000032690IFS=$as_save_IFS
32691
cristy66f238e2014-05-16 12:21:48 +000032692 test -z "$ac_cv_path_DOCDecodeDelegate" && ac_cv_path_DOCDecodeDelegate=""$DOCDecodeDelegateDefault""
cristy3ed852e2009-09-05 21:47:34 +000032693 ;;
32694esac
32695fi
cristy66f238e2014-05-16 12:21:48 +000032696DOCDecodeDelegate=$ac_cv_path_DOCDecodeDelegate
32697if test -n "$DOCDecodeDelegate"; then
32698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOCDecodeDelegate" >&5
32699$as_echo "$DOCDecodeDelegate" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032700else
cristy8b350f62009-11-15 23:12:43 +000032701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032702$as_echo "no" >&6; }
32703fi
32704
32705
32706# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
32707set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032709$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032710if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032711 $as_echo_n "(cached) " >&6
32712else
32713 case $DVIDecodeDelegate in
32714 [\\/]* | ?:[\\/]*)
32715 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
32716 ;;
32717 *)
32718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32719for as_dir in $PATH
32720do
32721 IFS=$as_save_IFS
32722 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032723 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032725 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032727 break 2
32728 fi
32729done
cristy8b350f62009-11-15 23:12:43 +000032730 done
cristy3ed852e2009-09-05 21:47:34 +000032731IFS=$as_save_IFS
32732
32733 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
32734 ;;
32735esac
32736fi
32737DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
32738if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032740$as_echo "$DVIDecodeDelegate" >&6; }
32741else
cristy8b350f62009-11-15 23:12:43 +000032742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032743$as_echo "no" >&6; }
32744fi
32745
32746
cristy3ed852e2009-09-05 21:47:34 +000032747# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
32748set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032750$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032751if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032752 $as_echo_n "(cached) " >&6
32753else
32754 case $ConvertDelegate in
32755 [\\/]* | ?:[\\/]*)
32756 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
32757 ;;
32758 *)
32759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32760for as_dir in $PATH
32761do
32762 IFS=$as_save_IFS
32763 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032764 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032766 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032768 break 2
32769 fi
32770done
cristy8b350f62009-11-15 23:12:43 +000032771 done
cristy3ed852e2009-09-05 21:47:34 +000032772IFS=$as_save_IFS
32773
32774 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
32775 ;;
32776esac
32777fi
32778ConvertDelegate=$ac_cv_path_ConvertDelegate
32779if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032781$as_echo "$ConvertDelegate" >&6; }
32782else
cristy8b350f62009-11-15 23:12:43 +000032783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032784$as_echo "no" >&6; }
32785fi
32786
32787
32788# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
32789set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032791$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032792if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032793 $as_echo_n "(cached) " >&6
32794else
32795 case $DisplayDelegate in
32796 [\\/]* | ?:[\\/]*)
32797 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
32798 ;;
32799 *)
32800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32801for as_dir in $PATH
32802do
32803 IFS=$as_save_IFS
32804 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032805 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032807 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032809 break 2
32810 fi
32811done
cristy8b350f62009-11-15 23:12:43 +000032812 done
cristy3ed852e2009-09-05 21:47:34 +000032813IFS=$as_save_IFS
32814
32815 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
32816 ;;
32817esac
32818fi
32819DisplayDelegate=$ac_cv_path_DisplayDelegate
32820if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032822$as_echo "$DisplayDelegate" >&6; }
32823else
cristy8b350f62009-11-15 23:12:43 +000032824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032825$as_echo "no" >&6; }
32826fi
32827
32828
cristy66f238e2014-05-16 12:21:48 +000032829# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
32830set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032832$as_echo_n "checking for $ac_word... " >&6; }
cristy66f238e2014-05-16 12:21:48 +000032833if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032834 $as_echo_n "(cached) " >&6
32835else
cristy66f238e2014-05-16 12:21:48 +000032836 case $EchoDelegate in
cristy3ed852e2009-09-05 21:47:34 +000032837 [\\/]* | ?:[\\/]*)
cristy66f238e2014-05-16 12:21:48 +000032838 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
cristy3ed852e2009-09-05 21:47:34 +000032839 ;;
32840 *)
32841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32842for as_dir in $PATH
32843do
32844 IFS=$as_save_IFS
32845 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032846 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy66f238e2014-05-16 12:21:48 +000032848 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032850 break 2
32851 fi
32852done
cristy8b350f62009-11-15 23:12:43 +000032853 done
cristy3ed852e2009-09-05 21:47:34 +000032854IFS=$as_save_IFS
32855
cristy66f238e2014-05-16 12:21:48 +000032856 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
cristy3ed852e2009-09-05 21:47:34 +000032857 ;;
32858esac
32859fi
cristy66f238e2014-05-16 12:21:48 +000032860EchoDelegate=$ac_cv_path_EchoDelegate
32861if test -n "$EchoDelegate"; then
32862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
32863$as_echo "$EchoDelegate" >&6; }
32864else
32865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32866$as_echo "no" >&6; }
32867fi
32868
32869
32870# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
32871set dummy "$EditorDelegateDefault"; ac_word=$2
32872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32873$as_echo_n "checking for $ac_word... " >&6; }
32874if ${ac_cv_path_EditorDelegate+:} false; then :
32875 $as_echo_n "(cached) " >&6
32876else
32877 case $EditorDelegate in
32878 [\\/]* | ?:[\\/]*)
32879 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
32880 ;;
32881 *)
32882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32883for as_dir in $PATH
32884do
32885 IFS=$as_save_IFS
32886 test -z "$as_dir" && as_dir=.
32887 for ac_exec_ext in '' $ac_executable_extensions; do
32888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32889 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
32890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32891 break 2
32892 fi
32893done
32894 done
32895IFS=$as_save_IFS
32896
32897 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
32898 ;;
32899esac
32900fi
32901EditorDelegate=$ac_cv_path_EditorDelegate
32902if test -n "$EditorDelegate"; then
32903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
32904$as_echo "$EditorDelegate" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032905else
cristy8b350f62009-11-15 23:12:43 +000032906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032907$as_echo "no" >&6; }
32908fi
32909
32910
32911# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
32912set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032914$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032915if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032916 $as_echo_n "(cached) " >&6
32917else
32918 case $GnuplotDecodeDelegate in
32919 [\\/]* | ?:[\\/]*)
32920 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
32921 ;;
32922 *)
32923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32924for as_dir in $PATH
32925do
32926 IFS=$as_save_IFS
32927 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032928 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032930 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032932 break 2
32933 fi
32934done
cristy8b350f62009-11-15 23:12:43 +000032935 done
cristy3ed852e2009-09-05 21:47:34 +000032936IFS=$as_save_IFS
32937
32938 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
32939 ;;
32940esac
32941fi
32942GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
32943if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032945$as_echo "$GnuplotDecodeDelegate" >&6; }
32946else
cristy8b350f62009-11-15 23:12:43 +000032947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032948$as_echo "no" >&6; }
32949fi
32950
32951
cristy66f238e2014-05-16 12:21:48 +000032952# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
32953set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
32954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32955$as_echo_n "checking for $ac_word... " >&6; }
32956if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
32957 $as_echo_n "(cached) " >&6
32958else
32959 case $GVCDecodeDelegate in
32960 [\\/]* | ?:[\\/]*)
32961 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
32962 ;;
32963 *)
32964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32965for as_dir in $PATH
32966do
32967 IFS=$as_save_IFS
32968 test -z "$as_dir" && as_dir=.
32969 for ac_exec_ext in '' $ac_executable_extensions; do
32970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32971 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32973 break 2
32974 fi
32975done
32976 done
32977IFS=$as_save_IFS
32978
32979 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
32980 ;;
32981esac
32982fi
32983GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
32984if test -n "$GVCDecodeDelegate"; then
32985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
32986$as_echo "$GVCDecodeDelegate" >&6; }
32987else
32988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32989$as_echo "no" >&6; }
32990fi
32991
32992
cristy3ed852e2009-09-05 21:47:34 +000032993# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
32994set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032996$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032997if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032998 $as_echo_n "(cached) " >&6
32999else
33000 case $HPGLDecodeDelegate in
33001 [\\/]* | ?:[\\/]*)
33002 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
33003 ;;
33004 *)
33005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33006for as_dir in $PATH
33007do
33008 IFS=$as_save_IFS
33009 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033010 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033012 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033014 break 2
33015 fi
33016done
cristy8b350f62009-11-15 23:12:43 +000033017 done
cristy3ed852e2009-09-05 21:47:34 +000033018IFS=$as_save_IFS
33019
33020 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
33021 ;;
33022esac
33023fi
33024HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
33025if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033027$as_echo "$HPGLDecodeDelegate" >&6; }
33028else
cristy8b350f62009-11-15 23:12:43 +000033029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033030$as_echo "no" >&6; }
33031fi
33032
33033
33034# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
33035set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033037$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033038if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033039 $as_echo_n "(cached) " >&6
33040else
33041 case $HTMLDecodeDelegate in
33042 [\\/]* | ?:[\\/]*)
33043 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
33044 ;;
33045 *)
33046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33047for as_dir in $PATH
33048do
33049 IFS=$as_save_IFS
33050 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033051 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033053 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033055 break 2
33056 fi
33057done
cristy8b350f62009-11-15 23:12:43 +000033058 done
cristy3ed852e2009-09-05 21:47:34 +000033059IFS=$as_save_IFS
33060
33061 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
33062 ;;
33063esac
33064fi
33065HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
33066if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033068$as_echo "$HTMLDecodeDelegate" >&6; }
33069else
cristy8b350f62009-11-15 23:12:43 +000033070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033071$as_echo "no" >&6; }
33072fi
33073
33074
33075# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
33076set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033078$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033079if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033080 $as_echo_n "(cached) " >&6
33081else
33082 case $ILBMDecodeDelegate in
33083 [\\/]* | ?:[\\/]*)
33084 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
33085 ;;
33086 *)
33087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33088for as_dir in $PATH
33089do
33090 IFS=$as_save_IFS
33091 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033092 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033094 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033096 break 2
33097 fi
33098done
cristy8b350f62009-11-15 23:12:43 +000033099 done
cristy3ed852e2009-09-05 21:47:34 +000033100IFS=$as_save_IFS
33101
33102 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
33103 ;;
33104esac
33105fi
33106ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
33107if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033109$as_echo "$ILBMDecodeDelegate" >&6; }
33110else
cristy8b350f62009-11-15 23:12:43 +000033111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033112$as_echo "no" >&6; }
33113fi
33114
33115
33116# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
33117set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033119$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033120if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033121 $as_echo_n "(cached) " >&6
33122else
33123 case $ILBMEncodeDelegate in
33124 [\\/]* | ?:[\\/]*)
33125 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
33126 ;;
33127 *)
33128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33129for as_dir in $PATH
33130do
33131 IFS=$as_save_IFS
33132 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033133 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033135 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033137 break 2
33138 fi
33139done
cristy8b350f62009-11-15 23:12:43 +000033140 done
cristy3ed852e2009-09-05 21:47:34 +000033141IFS=$as_save_IFS
33142
33143 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
33144 ;;
33145esac
33146fi
33147ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
33148if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033150$as_echo "$ILBMEncodeDelegate" >&6; }
33151else
cristy8b350f62009-11-15 23:12:43 +000033152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033153$as_echo "no" >&6; }
33154fi
33155
33156
cristy71f53d52013-04-27 13:33:59 +000033157# Extract the first word of ""$JXRDecodeDelegateDefault"", so it can be a program name with args.
33158set dummy "$JXRDecodeDelegateDefault"; ac_word=$2
33159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33160$as_echo_n "checking for $ac_word... " >&6; }
33161if ${ac_cv_path_JXRDecodeDelegate+:} false; then :
33162 $as_echo_n "(cached) " >&6
33163else
33164 case $JXRDecodeDelegate in
33165 [\\/]* | ?:[\\/]*)
33166 ac_cv_path_JXRDecodeDelegate="$JXRDecodeDelegate" # Let the user override the test with a path.
33167 ;;
33168 *)
33169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33170for as_dir in $PATH
33171do
33172 IFS=$as_save_IFS
33173 test -z "$as_dir" && as_dir=.
33174 for ac_exec_ext in '' $ac_executable_extensions; do
33175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33176 ac_cv_path_JXRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33178 break 2
33179 fi
33180done
33181 done
33182IFS=$as_save_IFS
33183
33184 test -z "$ac_cv_path_JXRDecodeDelegate" && ac_cv_path_JXRDecodeDelegate=""$JXRDecodeDelegateDefault""
33185 ;;
33186esac
33187fi
33188JXRDecodeDelegate=$ac_cv_path_JXRDecodeDelegate
33189if test -n "$JXRDecodeDelegate"; then
33190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXRDecodeDelegate" >&5
33191$as_echo "$JXRDecodeDelegate" >&6; }
33192else
33193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33194$as_echo "no" >&6; }
33195fi
33196
33197
33198# Extract the first word of ""$JXREncodeDelegateDefault"", so it can be a program name with args.
33199set dummy "$JXREncodeDelegateDefault"; ac_word=$2
33200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33201$as_echo_n "checking for $ac_word... " >&6; }
33202if ${ac_cv_path_JXREncodeDelegate+:} false; then :
33203 $as_echo_n "(cached) " >&6
33204else
33205 case $JXREncodeDelegate in
33206 [\\/]* | ?:[\\/]*)
33207 ac_cv_path_JXREncodeDelegate="$JXREncodeDelegate" # Let the user override the test with a path.
33208 ;;
33209 *)
33210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33211for as_dir in $PATH
33212do
33213 IFS=$as_save_IFS
33214 test -z "$as_dir" && as_dir=.
33215 for ac_exec_ext in '' $ac_executable_extensions; do
33216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33217 ac_cv_path_JXREncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33219 break 2
33220 fi
33221done
33222 done
33223IFS=$as_save_IFS
33224
33225 test -z "$ac_cv_path_JXREncodeDelegate" && ac_cv_path_JXREncodeDelegate=""$JXREncodeDelegateDefault""
33226 ;;
33227esac
33228fi
33229JXREncodeDelegate=$ac_cv_path_JXREncodeDelegate
33230if test -n "$JXREncodeDelegate"; then
33231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXREncodeDelegate" >&5
33232$as_echo "$JXREncodeDelegate" >&6; }
33233else
33234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33235$as_echo "no" >&6; }
33236fi
33237
33238
cristy3ed852e2009-09-05 21:47:34 +000033239# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
33240set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033242$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033243if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033244 $as_echo_n "(cached) " >&6
33245else
33246 case $LPDelegate in
33247 [\\/]* | ?:[\\/]*)
33248 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
33249 ;;
33250 *)
33251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33252for as_dir in $PATH
33253do
33254 IFS=$as_save_IFS
33255 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033256 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033258 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033260 break 2
33261 fi
33262done
cristy8b350f62009-11-15 23:12:43 +000033263 done
cristy3ed852e2009-09-05 21:47:34 +000033264IFS=$as_save_IFS
33265
33266 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
33267 ;;
33268esac
33269fi
33270LPDelegate=$ac_cv_path_LPDelegate
33271if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033273$as_echo "$LPDelegate" >&6; }
33274else
cristy8b350f62009-11-15 23:12:43 +000033275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033276$as_echo "no" >&6; }
33277fi
33278
33279
33280# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
33281set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033283$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033284if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033285 $as_echo_n "(cached) " >&6
33286else
33287 case $LPRDelegate in
33288 [\\/]* | ?:[\\/]*)
33289 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
33290 ;;
33291 *)
33292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33293for as_dir in $PATH
33294do
33295 IFS=$as_save_IFS
33296 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033297 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033299 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033301 break 2
33302 fi
33303done
cristy8b350f62009-11-15 23:12:43 +000033304 done
cristy3ed852e2009-09-05 21:47:34 +000033305IFS=$as_save_IFS
33306
33307 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
33308 ;;
33309esac
33310fi
33311LPRDelegate=$ac_cv_path_LPRDelegate
33312if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033314$as_echo "$LPRDelegate" >&6; }
33315else
cristy8b350f62009-11-15 23:12:43 +000033316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033317$as_echo "no" >&6; }
33318fi
33319
33320
cristy3ed852e2009-09-05 21:47:34 +000033321# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
33322set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033324$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033325if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033326 $as_echo_n "(cached) " >&6
33327else
33328 case $LaunchDelegate in
33329 [\\/]* | ?:[\\/]*)
33330 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
33331 ;;
33332 *)
33333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33334for as_dir in $PATH
33335do
33336 IFS=$as_save_IFS
33337 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033338 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033340 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033342 break 2
33343 fi
33344done
cristy8b350f62009-11-15 23:12:43 +000033345 done
cristy3ed852e2009-09-05 21:47:34 +000033346IFS=$as_save_IFS
33347
33348 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
33349 ;;
33350esac
33351fi
33352LaunchDelegate=$ac_cv_path_LaunchDelegate
33353if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033355$as_echo "$LaunchDelegate" >&6; }
33356else
cristy8b350f62009-11-15 23:12:43 +000033357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033358$as_echo "no" >&6; }
33359fi
33360
33361
33362# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
33363set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033365$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033366if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033367 $as_echo_n "(cached) " >&6
33368else
33369 case $MANDelegate in
33370 [\\/]* | ?:[\\/]*)
33371 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
33372 ;;
33373 *)
33374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33375for as_dir in $PATH
33376do
33377 IFS=$as_save_IFS
33378 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033379 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033381 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033383 break 2
33384 fi
33385done
cristy8b350f62009-11-15 23:12:43 +000033386 done
cristy3ed852e2009-09-05 21:47:34 +000033387IFS=$as_save_IFS
33388
33389 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
33390 ;;
33391esac
33392fi
33393MANDelegate=$ac_cv_path_MANDelegate
33394if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033396$as_echo "$MANDelegate" >&6; }
33397else
cristy8b350f62009-11-15 23:12:43 +000033398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033399$as_echo "no" >&6; }
33400fi
33401
33402
cristy66f238e2014-05-16 12:21:48 +000033403# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
33404set dummy "$MogrifyDelegateDefault"; ac_word=$2
33405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33406$as_echo_n "checking for $ac_word... " >&6; }
33407if ${ac_cv_path_MogrifyDelegate+:} false; then :
33408 $as_echo_n "(cached) " >&6
33409else
33410 case $MogrifyDelegate in
33411 [\\/]* | ?:[\\/]*)
33412 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
33413 ;;
33414 *)
33415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33416for as_dir in $PATH
33417do
33418 IFS=$as_save_IFS
33419 test -z "$as_dir" && as_dir=.
33420 for ac_exec_ext in '' $ac_executable_extensions; do
33421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33422 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
33423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33424 break 2
33425 fi
33426done
33427 done
33428IFS=$as_save_IFS
33429
33430 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
33431 ;;
33432esac
33433fi
33434MogrifyDelegate=$ac_cv_path_MogrifyDelegate
33435if test -n "$MogrifyDelegate"; then
33436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
33437$as_echo "$MogrifyDelegate" >&6; }
33438else
33439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33440$as_echo "no" >&6; }
33441fi
33442
33443
cristy3ed852e2009-09-05 21:47:34 +000033444# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33445set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033447$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033448if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033449 $as_echo_n "(cached) " >&6
33450else
33451 case $MPEGDecodeDelegate in
33452 [\\/]* | ?:[\\/]*)
33453 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
33454 ;;
33455 *)
33456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33457for as_dir in $PATH
33458do
33459 IFS=$as_save_IFS
33460 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033461 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033463 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033465 break 2
33466 fi
33467done
cristy8b350f62009-11-15 23:12:43 +000033468 done
cristy3ed852e2009-09-05 21:47:34 +000033469IFS=$as_save_IFS
33470
33471 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
33472 ;;
33473esac
33474fi
33475MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
33476if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033478$as_echo "$MPEGDecodeDelegate" >&6; }
33479else
cristy8b350f62009-11-15 23:12:43 +000033480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033481$as_echo "no" >&6; }
33482fi
33483
33484
cristy058d15f2014-08-21 18:53:03 +000033485if test "$MPEGDecodeDelegate" = "$MPEGDecodeDelegateDefault" ; then
cristy81ab5af2013-10-06 18:28:39 +000033486 MPEGDecodeDelegateDefault='ffmpeg'
33487 # Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33488set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
33489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33490$as_echo_n "checking for $ac_word... " >&6; }
33491if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
33492 $as_echo_n "(cached) " >&6
33493else
33494 case $MPEGDecodeDelegate in
33495 [\\/]* | ?:[\\/]*)
33496 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
33497 ;;
33498 *)
33499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33500for as_dir in $PATH
33501do
33502 IFS=$as_save_IFS
33503 test -z "$as_dir" && as_dir=.
33504 for ac_exec_ext in '' $ac_executable_extensions; do
33505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33506 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33508 break 2
33509 fi
33510done
33511 done
33512IFS=$as_save_IFS
33513
33514 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
33515 ;;
33516esac
33517fi
33518MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
33519if test -n "$MPEGDecodeDelegate"; then
33520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
33521$as_echo "$MPEGDecodeDelegate" >&6; }
33522else
33523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33524$as_echo "no" >&6; }
33525fi
33526
33527
33528fi;
cristy3ed852e2009-09-05 21:47:34 +000033529# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
33530set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033532$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033533if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033534 $as_echo_n "(cached) " >&6
33535else
33536 case $MPEGEncodeDelegate in
33537 [\\/]* | ?:[\\/]*)
33538 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
33539 ;;
33540 *)
33541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33542for as_dir in $PATH
33543do
33544 IFS=$as_save_IFS
33545 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033546 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033548 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033550 break 2
33551 fi
33552done
cristy8b350f62009-11-15 23:12:43 +000033553 done
cristy3ed852e2009-09-05 21:47:34 +000033554IFS=$as_save_IFS
33555
33556 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
33557 ;;
33558esac
33559fi
33560MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
33561if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033563$as_echo "$MPEGEncodeDelegate" >&6; }
33564else
cristy8b350f62009-11-15 23:12:43 +000033565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033566$as_echo "no" >&6; }
33567fi
33568
33569
cristy058d15f2014-08-21 18:53:03 +000033570if test "$MPEGEncodeDelegate" = "$MPEGEncodeDelegateDefault" ; then
cristy81ab5af2013-10-06 18:28:39 +000033571 MPEGEncodeDelegateDefault='ffmpeg'
33572 # Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
33573set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
33574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33575$as_echo_n "checking for $ac_word... " >&6; }
33576if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
33577 $as_echo_n "(cached) " >&6
33578else
33579 case $MPEGEncodeDelegate in
33580 [\\/]* | ?:[\\/]*)
33581 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
33582 ;;
33583 *)
33584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33585for as_dir in $PATH
33586do
33587 IFS=$as_save_IFS
33588 test -z "$as_dir" && as_dir=.
33589 for ac_exec_ext in '' $ac_executable_extensions; do
33590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33591 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33593 break 2
33594 fi
33595done
33596 done
33597IFS=$as_save_IFS
33598
33599 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
33600 ;;
33601esac
33602fi
33603MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
33604if test -n "$MPEGEncodeDelegate"; then
33605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
33606$as_echo "$MPEGEncodeDelegate" >&6; }
33607else
33608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33609$as_echo "no" >&6; }
33610fi
33611
33612
33613fi;
cristy935c86e2010-06-05 23:50:07 +000033614# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
33615set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
33616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33617$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033618if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000033619 $as_echo_n "(cached) " >&6
33620else
33621 case $MrSIDDecodeDelegate in
33622 [\\/]* | ?:[\\/]*)
33623 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
33624 ;;
33625 *)
33626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33627for as_dir in $PATH
33628do
33629 IFS=$as_save_IFS
33630 test -z "$as_dir" && as_dir=.
33631 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy935c86e2010-06-05 23:50:07 +000033633 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33635 break 2
33636 fi
33637done
33638 done
33639IFS=$as_save_IFS
33640
33641 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
33642 ;;
33643esac
33644fi
33645MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
33646if test -n "$MrSIDDecodeDelegate"; then
33647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
33648$as_echo "$MrSIDDecodeDelegate" >&6; }
33649else
33650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33651$as_echo "no" >&6; }
33652fi
33653
33654
cristy3ed852e2009-09-05 21:47:34 +000033655# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
33656set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033658$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033659if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033660 $as_echo_n "(cached) " >&6
33661else
33662 case $MVDelegate in
33663 [\\/]* | ?:[\\/]*)
33664 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
33665 ;;
33666 *)
33667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33668for as_dir in $PATH
33669do
33670 IFS=$as_save_IFS
33671 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033672 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033674 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033676 break 2
33677 fi
33678done
cristy8b350f62009-11-15 23:12:43 +000033679 done
cristy3ed852e2009-09-05 21:47:34 +000033680IFS=$as_save_IFS
33681
33682 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
33683 ;;
33684esac
33685fi
33686MVDelegate=$ac_cv_path_MVDelegate
33687if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033689$as_echo "$MVDelegate" >&6; }
33690else
cristy8b350f62009-11-15 23:12:43 +000033691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033692$as_echo "no" >&6; }
33693fi
33694
33695
33696# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
33697set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033699$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033700if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033701 $as_echo_n "(cached) " >&6
33702else
33703 case $PCLDelegate in
33704 [\\/]* | ?:[\\/]*)
33705 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
33706 ;;
33707 *)
33708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33709for as_dir in $PATH
33710do
33711 IFS=$as_save_IFS
33712 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033713 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033715 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033717 break 2
33718 fi
33719done
cristy8b350f62009-11-15 23:12:43 +000033720 done
cristy3ed852e2009-09-05 21:47:34 +000033721IFS=$as_save_IFS
33722
33723 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
33724 ;;
33725esac
33726fi
33727PCLDelegate=$ac_cv_path_PCLDelegate
33728if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033730$as_echo "$PCLDelegate" >&6; }
33731else
cristy8b350f62009-11-15 23:12:43 +000033732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033733$as_echo "no" >&6; }
33734fi
33735
33736
33737# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
33738set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033740$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033741if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033742 $as_echo_n "(cached) " >&6
33743else
33744 case $PGPDecodeDelegate in
33745 [\\/]* | ?:[\\/]*)
33746 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
33747 ;;
33748 *)
33749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33750for as_dir in $PATH
33751do
33752 IFS=$as_save_IFS
33753 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033754 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033756 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033758 break 2
33759 fi
33760done
cristy8b350f62009-11-15 23:12:43 +000033761 done
cristy3ed852e2009-09-05 21:47:34 +000033762IFS=$as_save_IFS
33763
33764 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
33765 ;;
33766esac
33767fi
33768PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
33769if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033771$as_echo "$PGPDecodeDelegate" >&6; }
33772else
cristy8b350f62009-11-15 23:12:43 +000033773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033774$as_echo "no" >&6; }
33775fi
33776
33777
33778# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
33779set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033781$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033782if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033783 $as_echo_n "(cached) " >&6
33784else
33785 case $POVDelegate in
33786 [\\/]* | ?:[\\/]*)
33787 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
33788 ;;
33789 *)
33790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33791for as_dir in $PATH
33792do
33793 IFS=$as_save_IFS
33794 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033795 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033797 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033799 break 2
33800 fi
33801done
cristy8b350f62009-11-15 23:12:43 +000033802 done
cristy3ed852e2009-09-05 21:47:34 +000033803IFS=$as_save_IFS
33804
33805 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
33806 ;;
33807esac
33808fi
33809POVDelegate=$ac_cv_path_POVDelegate
33810if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033812$as_echo "$POVDelegate" >&6; }
33813else
cristy8b350f62009-11-15 23:12:43 +000033814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033815$as_echo "no" >&6; }
33816fi
33817
33818
33819for ac_prog in gsx gsc "$PSDelegateDefault"
33820do
33821 # Extract the first word of "$ac_prog", so it can be a program name with args.
33822set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033824$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033825if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033826 $as_echo_n "(cached) " >&6
33827else
33828 case $PSDelegate in
33829 [\\/]* | ?:[\\/]*)
33830 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
33831 ;;
33832 *)
33833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33834for as_dir in $PATH
33835do
33836 IFS=$as_save_IFS
33837 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033838 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033840 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033842 break 2
33843 fi
33844done
cristy8b350f62009-11-15 23:12:43 +000033845 done
cristy3ed852e2009-09-05 21:47:34 +000033846IFS=$as_save_IFS
33847
33848 ;;
33849esac
33850fi
33851PSDelegate=$ac_cv_path_PSDelegate
33852if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033854$as_echo "$PSDelegate" >&6; }
33855else
cristy8b350f62009-11-15 23:12:43 +000033856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033857$as_echo "no" >&6; }
33858fi
33859
33860
33861 test -n "$PSDelegate" && break
33862done
33863test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
33864
33865# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
33866set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033868$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033869if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033870 $as_echo_n "(cached) " >&6
33871else
33872 case $RLEEncodeDelegate in
33873 [\\/]* | ?:[\\/]*)
33874 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
33875 ;;
33876 *)
33877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33878for as_dir in $PATH
33879do
33880 IFS=$as_save_IFS
33881 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033882 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033884 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033886 break 2
33887 fi
33888done
cristy8b350f62009-11-15 23:12:43 +000033889 done
cristy3ed852e2009-09-05 21:47:34 +000033890IFS=$as_save_IFS
33891
33892 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
33893 ;;
33894esac
33895fi
33896RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
33897if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033899$as_echo "$RLEEncodeDelegate" >&6; }
33900else
cristy8b350f62009-11-15 23:12:43 +000033901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033902$as_echo "no" >&6; }
33903fi
33904
33905
33906# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
33907set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033909$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033910if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033911 $as_echo_n "(cached) " >&6
33912else
33913 case $RMDelegate in
33914 [\\/]* | ?:[\\/]*)
33915 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
33916 ;;
33917 *)
33918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33919for as_dir in $PATH
33920do
33921 IFS=$as_save_IFS
33922 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033923 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033925 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033927 break 2
33928 fi
33929done
cristy8b350f62009-11-15 23:12:43 +000033930 done
cristy3ed852e2009-09-05 21:47:34 +000033931IFS=$as_save_IFS
33932
33933 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
33934 ;;
33935esac
33936fi
33937RMDelegate=$ac_cv_path_RMDelegate
33938if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033940$as_echo "$RMDelegate" >&6; }
33941else
cristy8b350f62009-11-15 23:12:43 +000033942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033943$as_echo "no" >&6; }
33944fi
33945
33946
cristy4689cf02010-02-17 21:15:45 +000033947# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
33948set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
33949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33950$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033951if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000033952 $as_echo_n "(cached) " >&6
33953else
33954 case $RSVGDecodeDelegate in
33955 [\\/]* | ?:[\\/]*)
33956 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
33957 ;;
33958 *)
33959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33960for as_dir in $PATH
33961do
33962 IFS=$as_save_IFS
33963 test -z "$as_dir" && as_dir=.
33964 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy4689cf02010-02-17 21:15:45 +000033966 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33968 break 2
33969 fi
33970done
33971 done
33972IFS=$as_save_IFS
33973
33974 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
33975 ;;
33976esac
33977fi
33978RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
33979if test -n "$RSVGDecodeDelegate"; then
33980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
33981$as_echo "$RSVGDecodeDelegate" >&6; }
33982else
33983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33984$as_echo "no" >&6; }
33985fi
33986
33987
cristy3ed852e2009-09-05 21:47:34 +000033988# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
33989set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033991$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033992if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033993 $as_echo_n "(cached) " >&6
33994else
33995 case $SCANDecodeDelegate in
33996 [\\/]* | ?:[\\/]*)
33997 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
33998 ;;
33999 *)
34000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34001for as_dir in $PATH
34002do
34003 IFS=$as_save_IFS
34004 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034005 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034007 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034009 break 2
34010 fi
34011done
cristy8b350f62009-11-15 23:12:43 +000034012 done
cristy3ed852e2009-09-05 21:47:34 +000034013IFS=$as_save_IFS
34014
34015 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
34016 ;;
34017esac
34018fi
34019SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
34020if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034022$as_echo "$SCANDecodeDelegate" >&6; }
34023else
cristy8b350f62009-11-15 23:12:43 +000034024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034025$as_echo "no" >&6; }
34026fi
34027
34028
cristyec6934f2012-08-14 18:38:40 +000034029# Extract the first word of ""$SVGDecodeDelegateDefault"", so it can be a program name with args.
34030set dummy "$SVGDecodeDelegateDefault"; ac_word=$2
34031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34032$as_echo_n "checking for $ac_word... " >&6; }
34033if ${ac_cv_path_SVGDecodeDelegate+:} false; then :
34034 $as_echo_n "(cached) " >&6
34035else
34036 case $SVGDecodeDelegate in
34037 [\\/]* | ?:[\\/]*)
34038 ac_cv_path_SVGDecodeDelegate="$SVGDecodeDelegate" # Let the user override the test with a path.
34039 ;;
34040 *)
34041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34042for as_dir in $PATH
34043do
34044 IFS=$as_save_IFS
34045 test -z "$as_dir" && as_dir=.
34046 for ac_exec_ext in '' $ac_executable_extensions; do
34047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34048 ac_cv_path_SVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34050 break 2
34051 fi
34052done
34053 done
34054IFS=$as_save_IFS
34055
34056 test -z "$ac_cv_path_SVGDecodeDelegate" && ac_cv_path_SVGDecodeDelegate=""$SVGDecodeDelegateDefault""
34057 ;;
34058esac
34059fi
34060SVGDecodeDelegate=$ac_cv_path_SVGDecodeDelegate
34061if test -n "$SVGDecodeDelegate"; then
34062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVGDecodeDelegate" >&5
34063$as_echo "$SVGDecodeDelegate" >&6; }
34064else
34065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34066$as_echo "no" >&6; }
34067fi
34068
34069
cristy3ed852e2009-09-05 21:47:34 +000034070# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
34071set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034073$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034074if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034075 $as_echo_n "(cached) " >&6
34076else
34077 case $TXTDelegate in
34078 [\\/]* | ?:[\\/]*)
34079 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
34080 ;;
34081 *)
34082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34083for as_dir in $PATH
34084do
34085 IFS=$as_save_IFS
34086 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034087 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034089 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034091 break 2
34092 fi
34093done
cristy8b350f62009-11-15 23:12:43 +000034094 done
cristy3ed852e2009-09-05 21:47:34 +000034095IFS=$as_save_IFS
34096
34097 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
34098 ;;
34099esac
34100fi
34101TXTDelegate=$ac_cv_path_TXTDelegate
34102if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034104$as_echo "$TXTDelegate" >&6; }
34105else
cristy8b350f62009-11-15 23:12:43 +000034106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034107$as_echo "no" >&6; }
34108fi
34109
34110
cristy5ac9ac82010-07-29 13:24:24 +000034111# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
34112set dummy "$UniconvertorDelegateDefault"; ac_word=$2
34113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34114$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034115if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000034116 $as_echo_n "(cached) " >&6
34117else
34118 case $UniconvertorDelegate in
34119 [\\/]* | ?:[\\/]*)
34120 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
34121 ;;
34122 *)
34123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34124for as_dir in $PATH
34125do
34126 IFS=$as_save_IFS
34127 test -z "$as_dir" && as_dir=.
34128 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy5ac9ac82010-07-29 13:24:24 +000034130 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
34131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34132 break 2
34133 fi
34134done
34135 done
34136IFS=$as_save_IFS
34137
34138 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
34139 ;;
34140esac
34141fi
34142UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
34143if test -n "$UniconvertorDelegate"; then
34144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
34145$as_echo "$UniconvertorDelegate" >&6; }
34146else
34147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34148$as_echo "no" >&6; }
34149fi
34150
34151
cristy86e86092013-08-04 17:43:57 +000034152# Extract the first word of ""$WebPDecodeDelegateDefault"", so it can be a program name with args.
34153set dummy "$WebPDecodeDelegateDefault"; ac_word=$2
34154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34155$as_echo_n "checking for $ac_word... " >&6; }
34156if ${ac_cv_path_WebPDecodeDelegate+:} false; then :
34157 $as_echo_n "(cached) " >&6
34158else
34159 case $WebPDecodeDelegate in
34160 [\\/]* | ?:[\\/]*)
34161 ac_cv_path_WebPDecodeDelegate="$WebPDecodeDelegate" # Let the user override the test with a path.
34162 ;;
34163 *)
34164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34165for as_dir in $PATH
34166do
34167 IFS=$as_save_IFS
34168 test -z "$as_dir" && as_dir=.
34169 for ac_exec_ext in '' $ac_executable_extensions; do
34170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34171 ac_cv_path_WebPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34173 break 2
34174 fi
34175done
34176 done
34177IFS=$as_save_IFS
34178
34179 test -z "$ac_cv_path_WebPDecodeDelegate" && ac_cv_path_WebPDecodeDelegate=""$WebPDecodeDelegateDefault""
34180 ;;
34181esac
34182fi
34183WebPDecodeDelegate=$ac_cv_path_WebPDecodeDelegate
34184if test -n "$WebPDecodeDelegate"; then
34185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WebPDecodeDelegate" >&5
34186$as_echo "$WebPDecodeDelegate" >&6; }
34187else
34188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34189$as_echo "no" >&6; }
34190fi
34191
34192
34193# Extract the first word of ""$WebPEncodeDelegateDefault"", so it can be a program name with args.
34194set dummy "$WebPEncodeDelegateDefault"; ac_word=$2
34195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34196$as_echo_n "checking for $ac_word... " >&6; }
34197if ${ac_cv_path_WebPEncodeDelegate+:} false; then :
34198 $as_echo_n "(cached) " >&6
34199else
34200 case $WebPEncodeDelegate in
34201 [\\/]* | ?:[\\/]*)
34202 ac_cv_path_WebPEncodeDelegate="$WebPEncodeDelegate" # Let the user override the test with a path.
34203 ;;
34204 *)
34205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34206for as_dir in $PATH
34207do
34208 IFS=$as_save_IFS
34209 test -z "$as_dir" && as_dir=.
34210 for ac_exec_ext in '' $ac_executable_extensions; do
34211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34212 ac_cv_path_WebPEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34214 break 2
34215 fi
34216done
34217 done
34218IFS=$as_save_IFS
34219
34220 test -z "$ac_cv_path_WebPEncodeDelegate" && ac_cv_path_WebPEncodeDelegate=""$WebPEncodeDelegateDefault""
34221 ;;
34222esac
34223fi
34224WebPEncodeDelegate=$ac_cv_path_WebPEncodeDelegate
34225if test -n "$WebPEncodeDelegate"; then
34226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WebPEncodeDelegate" >&5
34227$as_echo "$WebPEncodeDelegate" >&6; }
34228else
34229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34230$as_echo "no" >&6; }
34231fi
34232
34233
cristy3ed852e2009-09-05 21:47:34 +000034234# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
34235set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034237$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034238if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034239 $as_echo_n "(cached) " >&6
34240else
34241 case $WMFDecodeDelegate in
34242 [\\/]* | ?:[\\/]*)
34243 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
34244 ;;
34245 *)
34246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34247for as_dir in $PATH
34248do
34249 IFS=$as_save_IFS
34250 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034251 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034253 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034255 break 2
34256 fi
34257done
cristy8b350f62009-11-15 23:12:43 +000034258 done
cristy3ed852e2009-09-05 21:47:34 +000034259IFS=$as_save_IFS
34260
34261 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
34262 ;;
34263esac
34264fi
34265WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
34266if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034268$as_echo "$WMFDecodeDelegate" >&6; }
34269else
cristy8b350f62009-11-15 23:12:43 +000034270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034271$as_echo "no" >&6; }
34272fi
34273
34274
34275# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
34276set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034278$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034279if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034280 $as_echo_n "(cached) " >&6
34281else
34282 case $WWWDecodeDelegate in
34283 [\\/]* | ?:[\\/]*)
34284 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
34285 ;;
34286 *)
34287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34288for as_dir in $PATH
34289do
34290 IFS=$as_save_IFS
34291 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034292 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034294 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034296 break 2
34297 fi
34298done
cristy8b350f62009-11-15 23:12:43 +000034299 done
cristy3ed852e2009-09-05 21:47:34 +000034300IFS=$as_save_IFS
34301
34302 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
34303 ;;
34304esac
34305fi
34306WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
34307if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034309$as_echo "$WWWDecodeDelegate" >&6; }
34310else
cristy8b350f62009-11-15 23:12:43 +000034311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034312$as_echo "no" >&6; }
34313fi
34314
34315
34316# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
34317set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034319$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034320if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034321 $as_echo_n "(cached) " >&6
34322else
34323 case $XPSDelegate in
34324 [\\/]* | ?:[\\/]*)
34325 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
34326 ;;
34327 *)
34328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34329for as_dir in $PATH
34330do
34331 IFS=$as_save_IFS
34332 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034333 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034335 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034337 break 2
34338 fi
34339done
cristy8b350f62009-11-15 23:12:43 +000034340 done
cristy3ed852e2009-09-05 21:47:34 +000034341IFS=$as_save_IFS
34342
34343 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
34344 ;;
34345esac
34346fi
34347XPSDelegate=$ac_cv_path_XPSDelegate
34348if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034350$as_echo "$XPSDelegate" >&6; }
34351else
cristy8b350f62009-11-15 23:12:43 +000034352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034353$as_echo "no" >&6; }
34354fi
34355
34356
34357# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
34358set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034360$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034361if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034362 $as_echo_n "(cached) " >&6
34363else
34364 case $ZipDelegate in
34365 [\\/]* | ?:[\\/]*)
34366 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
34367 ;;
34368 *)
34369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34370for as_dir in $PATH
34371do
34372 IFS=$as_save_IFS
34373 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034374 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034376 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034378 break 2
34379 fi
34380done
cristy8b350f62009-11-15 23:12:43 +000034381 done
cristy3ed852e2009-09-05 21:47:34 +000034382IFS=$as_save_IFS
34383
34384 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
34385 ;;
34386esac
34387fi
34388ZipDelegate=$ac_cv_path_ZipDelegate
34389if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034391$as_echo "$ZipDelegate" >&6; }
34392else
cristy8b350f62009-11-15 23:12:43 +000034393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034394$as_echo "no" >&6; }
34395fi
34396
34397
34398
34399# Prefer lpr to lp; lp needs options tacked on.
34400if test "$LPRDelegate" != no; then
34401 PrintDelegate="$LPRDelegate"
34402else
34403 PrintDelegate="$LPDelegate -c -s"
34404fi
34405
34406
34407# Installed ImageMagick utiltity paths
34408ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
34409DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
34410MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
34411
34412# Set delegate booleans
cristy81ab5af2013-10-06 18:28:39 +000034413have_avconv='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_avconv='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034414have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
34415have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
34416have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000034417have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034418have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
34419have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034420have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
34421
34422#
34423# Test for font directories
34424#
34425type_include_files=''
34426
cristy5a3dc992014-12-05 19:50:04 +000034427 Apple fonts.
34428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Apple fonts directory" >&5
34429$as_echo_n "checking for Apple fonts directory... " >&6; }
34430apple_font_dir=''
34431if test "${with_apple_font_dir}" != 'default'; then
34432 apple_font_dir="${with_apple_font_dir}/"
34433else
34434 for font_dir in '/Library/Fonts/'; do
34435 if test -f "${font_dir}Arial.ttf"; then
34436 apple_font_dir="${font_dir}"
34437 break 1
34438 fi
34439 done
34440fi
34441if test "${apple_font_dir}x" != 'x'; then
34442 type_include_files="${type_include_files} "'<include file="type-apple.xml" />'
34443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apple_font_dir" >&5
34444$as_echo "$apple_font_dir" >&6; }
34445else
34446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
34447$as_echo "not found!" >&6; };
34448fi
34449
34450
cristy430a7312010-01-21 20:44:04 +000034451# Dejavu fonts.
34452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
34453$as_echo_n "checking for Dejavu fonts directory... " >&6; }
34454dejavu_font_dir=''
34455if test "${with_dejavu_font_dir}" != 'default'; then
34456 dejavu_font_dir="${with_dejavu_font_dir}/"
34457else
34458 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
34459 if test -f "${font_dir}DejaVuSerif.ttf"; then
34460 dejavu_font_dir="${font_dir}"
34461 break 1
34462 fi
34463 done
34464fi
34465if test "${dejavu_font_dir}x" != 'x'; then
34466 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
cristyad38abe2012-12-23 23:03:21 +000034467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
34468$as_echo "$dejavu_font_dir" >&6; }
cristy430a7312010-01-21 20:44:04 +000034469else
cristyad38abe2012-12-23 23:03:21 +000034470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
34471$as_echo "not found!" >&6; };
cristy430a7312010-01-21 20:44:04 +000034472fi
34473
34474
cristy3ed852e2009-09-05 21:47:34 +000034475# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000034476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000034477$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
34478ghostscript_font_dir=''
34479if test "${with_gs_font_dir}" != 'default'; then
34480 ghostscript_font_dir="${with_gs_font_dir}/"
34481else
34482 if test "${native_win32_build}" = 'yes'; then
34483 # Native Windows Build
34484 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
34485 if test -f "${font_dir}a010013l.pfb"; then
34486 ghostscript_font_dir="$font_dir"
34487 break 1
34488 fi
34489 done
34490 if test "${PSDelegate}" != 'gswin32c'; then
34491 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
34492 fi
34493 else
34494 # Linux / Mac OS X / Unix Build
34495 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
34496 if test -f "${font_dir}a010013l.pfb"; then
34497 ghostscript_font_dir="${font_dir}"
34498 break 1
34499 fi
34500 done
34501 if test "${ghostscript_font_dir}x" = 'x'; then
34502 if test "$PSDelegate" != 'gs'; then
34503 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
34504 fi
34505 fi
34506 fi
34507fi
34508if test "${ghostscript_font_dir}x" != 'x'; then
34509 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristyad38abe2012-12-23 23:03:21 +000034510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
34511$as_echo "$ghostscript_font_dir" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034512else
cristyad38abe2012-12-23 23:03:21 +000034513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
34514$as_echo "not found!" >&6; };
cristy3ed852e2009-09-05 21:47:34 +000034515fi
34516
34517case "${build_os}" in
34518 mingw* )
34519 PSDelegate=`$WinPathScript "$PSDelegate" 1`
34520 ;;
34521esac
34522
cristy5a3dc992014-12-05 19:50:04 +000034523# Windows fonts.
34524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows fonts directory" >&5
34525$as_echo_n "checking for Windows fonts directory... " >&6; }
34526windows_font_dir=''
34527if test "${with_windows_font_dir}" != 'default'; then
34528 windows_font_dir="${with_windows_font_dir}/"
34529else
34530 for font_dir in '/usr/X11R6/lib/X11/fonts/truetype/' '/usr/X11R7/lib/X11/fonts/truetype/' '/usr/share/fonts/msttcore/'; do
34531 if test -f "${font_dir}arial.ttf"; then
34532 windows_font_dir="${font_dir}"
34533 break 1
34534 fi
34535 done
34536fi
34537if test "${windows_font_dir}x" != 'x'; then
34538 type_include_files="${type_include_files} "'<include file="type-windows.xml" />'
34539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $windows_font_dir" >&5
34540$as_echo "$windows_font_dir" >&6; }
34541else
34542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
34543$as_echo "not found!" >&6; };
34544fi
34545
34546
cristy3ed852e2009-09-05 21:47:34 +000034547
34548
34549#
34550# Handle case where user doesn't want frozen paths
34551#
34552if test "$with_frozenpaths" != 'yes'; then
34553 # Re-set delegate definitions to default (no paths)
34554 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy16b412d2014-12-15 11:09:48 +000034555 BGPDecodeDelegate="$BGPDecodeDelegateDefault"
34556 BGPEncodeDelegate="$BGPEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034557 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
34558 BZIPDelegate="$BZIPDelegateDefault"
34559 BrowseDelegate="$BrowseDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034560 CatDelegate="$CatDelegateDefault"
34561 ConvertDelegate="$ConvertDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000034562 DisplayDelegate="$DisplayDelegateDefault"
34563 DNGDecodeDelegate="$DNGDecodeDelegateDefault"
cristy66f238e2014-05-16 12:21:48 +000034564 DOCDecodeDelegate="$DOCDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034565 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
34566 EchoDelegate="$EchoDelegateDefault"
34567 EditorDelegate="$EditorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034568 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000034569 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034570 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
34571 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
34572 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
34573 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000034574 JXRDecodeDelegate="$JXRDecodeDelegateDefault"
34575 JXREncodeDelegate="$JXREncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034576 LPDelegate="$LPDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034577 LaunchDelegate="$LaunchDelegateDefault"
34578 MANDelegate="$MANDelegateDefault"
34579 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
34580 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034581 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000034582 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
34583 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034584 PCLDelegate="$PCLDelegateDefault"
34585 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
34586 POVDelegate="$POVDelegateDefault"
34587 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034588 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
34589 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000034590 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034591 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
cristyec6934f2012-08-14 18:38:40 +000034592 SVGDecodeDelegate="$SVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034593 ShowImageDelegate="$ShowImageDelegateDefault"
34594 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000034595 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy86e86092013-08-04 17:43:57 +000034596 WebPDecodeDelegate="$WebPDecodeDelegateDefault"
34597 WebPEncodeDelegate="$WebPEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034598 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
34599 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
34600 XPSDelegate="$XPSDelegateDefault"
34601 ZipDelegate="$ZipDelegateDefault"
34602fi
34603
34604# Delegate substitutions
34605
34606
34607
34608
34609
34610
34611
34612
34613
34614
34615
34616
34617
34618
34619
34620
34621
34622
34623
34624
34625
34626
34627
34628
34629
34630
34631
34632
34633
34634
34635
34636
34637
34638
34639
34640
34641
34642
34643
34644
cristy71f53d52013-04-27 13:33:59 +000034645
34646
cristy16b412d2014-12-15 11:09:48 +000034647
34648
cristy3ed852e2009-09-05 21:47:34 +000034649#
34650# RPM support.
34651#
34652RPM=''
34653for ac_prog in gnutar gtar tar
34654do
34655 # Extract the first word of "$ac_prog", so it can be a program name with args.
34656set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034658$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034659if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034660 $as_echo_n "(cached) " >&6
34661else
34662 if test -n "$TAR"; then
34663 ac_cv_prog_TAR="$TAR" # Let the user override the test.
34664else
34665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34666for as_dir in $PATH
34667do
34668 IFS=$as_save_IFS
34669 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034670 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034672 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034674 break 2
34675 fi
34676done
cristy8b350f62009-11-15 23:12:43 +000034677 done
cristy3ed852e2009-09-05 21:47:34 +000034678IFS=$as_save_IFS
34679
34680fi
34681fi
34682TAR=$ac_cv_prog_TAR
34683if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000034684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000034685$as_echo "$TAR" >&6; }
34686else
cristy8b350f62009-11-15 23:12:43 +000034687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034688$as_echo "no" >&6; }
34689fi
34690
34691
34692 test -n "$TAR" && break
34693done
34694
34695for ac_prog in perl
34696do
34697 # Extract the first word of "$ac_prog", so it can be a program name with args.
34698set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034700$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034701if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034702 $as_echo_n "(cached) " >&6
34703else
34704 if test -n "$PERL"; then
34705 ac_cv_prog_PERL="$PERL" # Let the user override the test.
34706else
34707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34708for as_dir in $PATH
34709do
34710 IFS=$as_save_IFS
34711 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034712 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034714 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034716 break 2
34717 fi
34718done
cristy8b350f62009-11-15 23:12:43 +000034719 done
cristy3ed852e2009-09-05 21:47:34 +000034720IFS=$as_save_IFS
34721
34722fi
34723fi
34724PERL=$ac_cv_prog_PERL
34725if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000034726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034727$as_echo "$PERL" >&6; }
34728else
cristy8b350f62009-11-15 23:12:43 +000034729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034730$as_echo "no" >&6; }
34731fi
34732
34733
34734 test -n "$PERL" && break
34735done
34736
34737for ac_prog in rpmbuild rpm
34738do
34739 # Extract the first word of "$ac_prog", so it can be a program name with args.
34740set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034742$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034743if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034744 $as_echo_n "(cached) " >&6
34745else
34746 if test -n "$RPM"; then
34747 ac_cv_prog_RPM="$RPM" # Let the user override the test.
34748else
34749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34750for as_dir in $PATH
34751do
34752 IFS=$as_save_IFS
34753 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034754 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034756 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034758 break 2
34759 fi
34760done
cristy8b350f62009-11-15 23:12:43 +000034761 done
cristy3ed852e2009-09-05 21:47:34 +000034762IFS=$as_save_IFS
34763
34764fi
34765fi
34766RPM=$ac_cv_prog_RPM
34767if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000034768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000034769$as_echo "$RPM" >&6; }
34770else
cristy8b350f62009-11-15 23:12:43 +000034771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034772$as_echo "no" >&6; }
34773fi
34774
34775
34776 test -n "$RPM" && break
34777done
34778
34779
cristy73bd4a52010-10-05 11:24:23 +000034780ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
34781
34782
34783AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
34784
34785
34786AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
34787
34788
34789AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
34790
34791
34792 if test "x$RPM" != "x" ; then
34793 RPM_DELEGATE_TRUE=
34794 RPM_DELEGATE_FALSE='#'
34795else
34796 RPM_DELEGATE_TRUE='#'
34797 RPM_DELEGATE_FALSE=
34798fi
34799
cristy3ed852e2009-09-05 21:47:34 +000034800
34801#
34802# 7ZIP support (http://p7zip.sourceforge.net/)
34803#
34804P7ZIP=''
34805for ac_prog in 7za
34806do
34807 # Extract the first word of "$ac_prog", so it can be a program name with args.
34808set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034810$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034811if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034812 $as_echo_n "(cached) " >&6
34813else
34814 if test -n "$P7ZIP"; then
34815 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
34816else
34817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34818for as_dir in $PATH
34819do
34820 IFS=$as_save_IFS
34821 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034822 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034824 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034826 break 2
34827 fi
34828done
cristy8b350f62009-11-15 23:12:43 +000034829 done
cristy3ed852e2009-09-05 21:47:34 +000034830IFS=$as_save_IFS
34831
34832fi
34833fi
34834P7ZIP=$ac_cv_prog_P7ZIP
34835if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000034836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000034837$as_echo "$P7ZIP" >&6; }
34838else
cristy8b350f62009-11-15 23:12:43 +000034839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034840$as_echo "no" >&6; }
34841fi
34842
34843
34844 test -n "$P7ZIP" && break
34845done
34846
34847
cristy73bd4a52010-10-05 11:24:23 +000034848 if test "x$P7ZIP" != "x" ; then
34849 P7ZIP_DELEGATE_TRUE=
34850 P7ZIP_DELEGATE_FALSE='#'
34851else
34852 P7ZIP_DELEGATE_TRUE='#'
34853 P7ZIP_DELEGATE_FALSE=
34854fi
34855
cristy3ed852e2009-09-05 21:47:34 +000034856
34857#
34858# ZIP support (http://www.info-zip.org/Zip.html)
34859#
34860ZIP=''
34861for ac_prog in zip
34862do
34863 # Extract the first word of "$ac_prog", so it can be a program name with args.
34864set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034866$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034867if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034868 $as_echo_n "(cached) " >&6
34869else
34870 if test -n "$ZIP"; then
34871 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
34872else
34873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34874for as_dir in $PATH
34875do
34876 IFS=$as_save_IFS
34877 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034878 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034880 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034882 break 2
34883 fi
34884done
cristy8b350f62009-11-15 23:12:43 +000034885 done
cristy3ed852e2009-09-05 21:47:34 +000034886IFS=$as_save_IFS
34887
34888fi
34889fi
34890ZIP=$ac_cv_prog_ZIP
34891if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000034892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000034893$as_echo "$ZIP" >&6; }
34894else
cristy8b350f62009-11-15 23:12:43 +000034895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034896$as_echo "no" >&6; }
34897fi
34898
34899
34900 test -n "$ZIP" && break
34901done
34902
34903
cristy73bd4a52010-10-05 11:24:23 +000034904 if test "x$ZIP" != "x" ; then
34905 ZIP_DELEGATE_TRUE=
34906 ZIP_DELEGATE_FALSE='#'
34907else
34908 ZIP_DELEGATE_TRUE='#'
34909 ZIP_DELEGATE_FALSE=
34910fi
34911
cristy3ed852e2009-09-05 21:47:34 +000034912
34913#
34914# GhostPCL related configuration.
34915#
34916PCLColorDevice=ppmraw
cristy8bc84082011-09-07 13:57:00 +000034917PCLCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000034918PCLMonoDevice=pbmraw
34919if test -z "$PCLVersion"; then
34920 PCLVersion='unknown'
34921fi
34922if test $have_pcl = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000034923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
34924$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000034925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034926$as_echo_n "checking for PCL... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000034927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
34928$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034929 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000034930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034931$as_echo_n "checking for pcl color device... " >&6; }
cristy86e31f32015-06-06 15:47:32 +000034932 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
cristy3ed852e2009-09-05 21:47:34 +000034933 :
34934 else
34935 PCLColorDevice=ppmraw
34936 fi
cristyad38abe2012-12-23 23:03:21 +000034937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
34938$as_echo "$PCLColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034939
34940 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034942$as_echo_n "checking for pcl CMYK device... " >&6; }
cristy86e31f32015-06-06 15:47:32 +000034943 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
cristy3ed852e2009-09-05 21:47:34 +000034944 :
34945 else
34946 PCLCMYKDevice=$PCLColorDevice
34947 fi
cristyad38abe2012-12-23 23:03:21 +000034948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
34949$as_echo "$PCLCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034950
34951 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034953$as_echo_n "checking for pcl mono device... " >&6; }
cristy86e31f32015-06-06 15:47:32 +000034954 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
cristy3ed852e2009-09-05 21:47:34 +000034955 :
34956 else
34957 PCLMonoDevice=$PCLColorDevice
34958 fi
cristyad38abe2012-12-23 23:03:21 +000034959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
34960$as_echo "$PCLMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034961fi
34962
34963
34964
34965
34966
34967
34968#
34969# GhostXPS related configuration.
34970#
34971XPSColorDevice=ppmraw
34972XPSCMYKDevice=bmpsep8
34973XPSMonoDevice=pbmraw
34974if test -z "$XPSVersion"; then
34975 XPSVersion='unknown'
34976fi
34977if test $have_xps = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000034978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
34979$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000034980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000034981$as_echo_n "checking for XPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000034982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
34983$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034984 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000034985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034986$as_echo_n "checking for xps color device... " >&6; }
cristy86e31f32015-06-06 15:47:32 +000034987 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
cristy3ed852e2009-09-05 21:47:34 +000034988 :
34989 else
34990 XPSColorDevice=ppmraw
34991 fi
cristyad38abe2012-12-23 23:03:21 +000034992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
34993$as_echo "$XPSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034994
34995 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034997$as_echo_n "checking for xps CMYK device... " >&6; }
cristy86e31f32015-06-06 15:47:32 +000034998 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
cristy3ed852e2009-09-05 21:47:34 +000034999 :
35000 else
35001 XPSCMYKDevice=$XPSColorDevice
35002 fi
cristyad38abe2012-12-23 23:03:21 +000035003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
35004$as_echo "$XPSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035005
35006 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035008$as_echo_n "checking for xps mono device... " >&6; }
cristy86e31f32015-06-06 15:47:32 +000035009 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
cristy3ed852e2009-09-05 21:47:34 +000035010 :
35011 else
35012 XPSMonoDevice=$XPSColorDevice
35013 fi
cristyad38abe2012-12-23 23:03:21 +000035014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
35015$as_echo "$XPSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035016fi
35017
35018
35019
35020
35021
35022
35023#
35024# Ghostscript related configuration.
35025#
cristya97426c2011-02-04 01:41:27 +000035026GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000035027GSColorDevice=pnmraw
cristy63970c52015-06-06 16:09:04 +000035028GSCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000035029GSMonoDevice=pbmraw
35030GSPDFDevice=pdfwrite
cristyb096ea52013-10-26 20:56:38 +000035031GSPSDevice=ps2write
cristya5b91e72015-01-07 15:39:36 +000035032GSEPSDevice=eps2write
cristy3ed852e2009-09-05 21:47:34 +000035033GSVersion='unknown'
35034if test $have_gs = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35036$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000035038$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35040$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000035042$as_echo_n "checking for Ghostscript version... " >&6; }
35043 if GSVersion=`$PSDelegate --version`; then
35044 :
35045 else
35046 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
35047 fi
cristyad38abe2012-12-23 23:03:21 +000035048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
35049$as_echo "$GSVersion" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035050
cristy3ed852e2009-09-05 21:47:34 +000035051 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035053$as_echo_n "checking for gs color device... " >&6; }
cristy86e31f32015-06-06 15:47:32 +000035054 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
cristy3ed852e2009-09-05 21:47:34 +000035055 :
35056 else
cristy63970c52015-06-06 16:09:04 +000035057 GSColorDevice=ppmraw
cristy3ed852e2009-09-05 21:47:34 +000035058 fi
cristyad38abe2012-12-23 23:03:21 +000035059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
35060$as_echo "$GSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035061
cristy63970c52015-06-06 16:09:04 +000035062 # GSAlphaDevice
35063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
35064$as_echo_n "checking for gs alpha device... " >&6; }
35065 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
35066 :
35067 else
35068 GSAlphaDevice=$GSColorDevice
35069 fi
35070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
35071$as_echo "$GSAlphaDevice" >&6; }
35072
cristy3ed852e2009-09-05 21:47:34 +000035073 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035075$as_echo_n "checking for gs CMYK device... " >&6; }
cristy86e31f32015-06-06 15:47:32 +000035076 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
cristy3ed852e2009-09-05 21:47:34 +000035077 :
35078 else
cristy63970c52015-06-06 16:09:04 +000035079 GSCMYKDevice=pam
cristy3ed852e2009-09-05 21:47:34 +000035080 fi
cristyad38abe2012-12-23 23:03:21 +000035081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
35082$as_echo "$GSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035083
35084 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035086$as_echo_n "checking for gs mono device... " >&6; }
cristy86e31f32015-06-06 15:47:32 +000035087 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
cristy3ed852e2009-09-05 21:47:34 +000035088 :
35089 else
35090 GSMonoDevice=$GSColorDevice
35091 fi
cristyad38abe2012-12-23 23:03:21 +000035092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
35093$as_echo "$GSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035094
35095 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000035096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035097$as_echo_n "checking for gs PDF writing device... " >&6; }
cristy86e31f32015-06-06 15:47:32 +000035098 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
cristy3ed852e2009-09-05 21:47:34 +000035099 :
35100 else
35101 GSPDFDevice=nodevice
35102 fi
cristy63970c52015-06-06 16:09:04 +000035103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
cristyad38abe2012-12-23 23:03:21 +000035104$as_echo "$GSPDFDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035105
35106 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000035107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035108$as_echo_n "checking for gs PS writing device... " >&6; }
cristy86e31f32015-06-06 15:47:32 +000035109 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
cristy3ed852e2009-09-05 21:47:34 +000035110 :
35111 else
cristy15308162015-01-09 23:43:12 +000035112 GSPSDevice=pswrite
cristy3ed852e2009-09-05 21:47:34 +000035113 fi
cristyad38abe2012-12-23 23:03:21 +000035114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
35115$as_echo "$GSPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035116
35117 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000035118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035119$as_echo_n "checking for gs EPS writing device... " >&6; }
cristy86e31f32015-06-06 15:47:32 +000035120 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
cristy3ed852e2009-09-05 21:47:34 +000035121 :
35122 else
cristy15308162015-01-09 23:43:12 +000035123 GSEPSDevice=epswrite
cristy3ed852e2009-09-05 21:47:34 +000035124 fi
cristyad38abe2012-12-23 23:03:21 +000035125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
35126$as_echo "$GSEPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035127fi
35128
35129
35130
35131
35132
35133
35134
35135
35136
35137
35138#
35139# PerlMagick-related configuration
35140#
35141
35142# Look for PERL if PerlMagick requested
35143# If name/path of desired PERL interpreter is specified, look for that one first
35144have_perl='no'
35145if test "$with_perl" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000035146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35147$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035149$as_echo_n "checking for Perl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35151$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035152 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035154$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035155if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035156 $as_echo_n "(cached) " >&6
35157else
35158 ac_cv_path_PERL="$with_perl"
35159fi
cristy8b350f62009-11-15 23:12:43 +000035160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035161$as_echo "$ac_cv_path_PERL" >&6; };
35162 PERL=$ac_cv_path_PERL
35163 have_perl="$ac_cv_path_PERL"
35164 else
35165 for ac_prog in perl perl5
35166do
35167 # Extract the first word of "$ac_prog", so it can be a program name with args.
35168set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035170$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035171if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035172 $as_echo_n "(cached) " >&6
35173else
35174 case $PERL in
35175 [\\/]* | ?:[\\/]*)
35176 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
35177 ;;
35178 *)
35179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35180for as_dir in $PATH
35181do
35182 IFS=$as_save_IFS
35183 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035184 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035186 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035188 break 2
35189 fi
35190done
cristy8b350f62009-11-15 23:12:43 +000035191 done
cristy3ed852e2009-09-05 21:47:34 +000035192IFS=$as_save_IFS
35193
35194 ;;
35195esac
35196fi
35197PERL=$ac_cv_path_PERL
35198if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000035199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035200$as_echo "$PERL" >&6; }
35201else
cristy8b350f62009-11-15 23:12:43 +000035202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035203$as_echo "no" >&6; }
35204fi
35205
35206
35207 test -n "$PERL" && break
35208done
35209 if test "$ac_cv_path_PERL"; then
35210 have_perl="$ac_cv_path_PERL"
35211 fi
35212 fi
35213fi
35214
cristy949301e2010-01-06 01:38:40 +000035215if test "$with_perl" != 'yes' ; then
35216 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
35217fi
35218
35219PERL_SUPPORTS_DESTDIR='no'
35220
cristy3ed852e2009-09-05 21:47:34 +000035221with_perl_static='no'
35222with_perl_dynamic='no'
35223if test "$have_perl" != 'no'; then
35224 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
35225 with_perl_static='yes'
35226 fi
35227 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
35228 with_perl_dynamic='yes'
35229 fi
35230 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000035231
35232
35233
35234
35235 if test -n "$PERL"; then :
35236
35237 ax_perl_version="5.8.1"
35238
35239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
35240$as_echo_n "checking for perl version... " >&6; }
35241
cristy17491be2014-06-24 01:10:53 +000035242 perl_version=`$PERL --version 2>&1 \
35243 | $SED -n -e '/This is perl/b inspect
35244b
35245: inspect
35246s/.* (\{0,1\}v\([0-9]*\.[0-9]*\.[0-9]*\))\{0,1\} .*/\1/;p'`
cristy73bd4a52010-10-05 11:24:23 +000035247
35248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
35249$as_echo "$perl_version" >&6; }
35250
35251 PERL_VERSION=$perl_version
35252
35253
35254
35255
35256
35257 # Used to indicate true or false condition
35258 ax_compare_version=false
35259
35260 # Convert the two version strings to be compared into a format that
35261 # allows a simple string comparison. The end result is that a version
35262 # string of the form 1.12.5-r617 will be converted to the form
35263 # 0001001200050617. In other words, each number is zero padded to four
35264 # digits, and non digits are removed.
35265
35266 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35267 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35268 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35269 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35270 -e 's/[^0-9]//g'`
35271
35272
35273 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35274 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35275 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35276 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35277 -e 's/[^0-9]//g'`
35278
35279
35280 ax_compare_version=`echo "x$ax_compare_version_A
35281x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
35282
35283
35284
35285 if test "$ax_compare_version" = "true" ; then
35286
35287 :
35288 PERL_SUPPORTS_DESTDIR='yes'
35289
35290 else
35291 :
35292 PERL_SUPPORTS_DESTDIR='no'
35293
35294 fi
35295
35296
35297else
35298
35299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
35300$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
35301 PERL_SUPPORTS_DESTDIR='no'
35302
cristy3ed852e2009-09-05 21:47:34 +000035303fi
cristy73bd4a52010-10-05 11:24:23 +000035304
35305fi
35306 if test "$have_perl" != 'no'; then
35307 WITH_PERL_TRUE=
35308 WITH_PERL_FALSE='#'
35309else
35310 WITH_PERL_TRUE='#'
35311 WITH_PERL_FALSE=
35312fi
35313
35314 if test $with_perl_static = 'yes'; then
35315 WITH_PERL_STATIC_TRUE=
35316 WITH_PERL_STATIC_FALSE='#'
35317else
35318 WITH_PERL_STATIC_TRUE='#'
35319 WITH_PERL_STATIC_FALSE=
35320fi
35321
35322 if test $with_perl_dynamic = 'yes'; then
35323 WITH_PERL_DYNAMIC_TRUE=
35324 WITH_PERL_DYNAMIC_FALSE='#'
35325else
35326 WITH_PERL_DYNAMIC_TRUE='#'
35327 WITH_PERL_DYNAMIC_FALSE=
35328fi
35329
cristy3ed852e2009-09-05 21:47:34 +000035330
35331
35332# Determine path to pick up MagickCore library from for use with building PerlMagick
35333MAGICKCORE_PATH="${LIB_DIR}"
35334if test $with_perl_static = 'yes'; then
35335 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
35336 libtool_objdir=$objdir
35337
35338 # Linker search path to library, followed by -lMagickCore
cristy4c08aed2011-07-01 19:47:50 +000035339 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
cristy3ed852e2009-09-05 21:47:34 +000035340fi
35341
35342
cristy2a3eb392012-12-17 13:39:20 +000035343# Create a simple string containing format names for all delegate libraries.
cristy422d5502012-12-22 22:20:57 +000035344MAGICK_DELEGATES=''
cristy2a3eb392012-12-17 13:39:20 +000035345if test "$have_autotrace" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035346 MAGICK_DELEGATES="$MAGICK_DELEGATES autotrace"
cristy3ed852e2009-09-05 21:47:34 +000035347fi
cristy2a3eb392012-12-17 13:39:20 +000035348if test "$have_bzlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035349 MAGICK_DELEGATES="$MAGICK_DELEGATES bzlib"
cristy2a3eb392012-12-17 13:39:20 +000035350fi
35351if test "$have_dps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035352 MAGICK_DELEGATES="$MAGICK_DELEGATES dps"
cristy2a3eb392012-12-17 13:39:20 +000035353fi
35354if test "$have_djvu" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035355 MAGICK_DELEGATES="$MAGICK_DELEGATES djvu"
cristy2a3eb392012-12-17 13:39:20 +000035356fi
cristy81ab5af2013-10-06 18:28:39 +000035357if test "$have_avconv" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035358 MAGICK_DELEGATES="$MAGICK_DELEGATES mpeg"
cristy2a3eb392012-12-17 13:39:20 +000035359fi
35360if test "$have_fftw" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035361 MAGICK_DELEGATES="$MAGICK_DELEGATES fftw"
cristy2a3eb392012-12-17 13:39:20 +000035362fi
cristy2a3eb392012-12-17 13:39:20 +000035363if test "$have_fpx" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035364 MAGICK_DELEGATES="$MAGICK_DELEGATES fpx"
cristy2a3eb392012-12-17 13:39:20 +000035365fi
35366if test "$have_fontconfig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035367 MAGICK_DELEGATES="$MAGICK_DELEGATES fontconfig"
cristy2a3eb392012-12-17 13:39:20 +000035368fi
35369if test "$have_freetype" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035370 MAGICK_DELEGATES="$MAGICK_DELEGATES freetype"
cristy2a3eb392012-12-17 13:39:20 +000035371fi
35372if test "$have_gslib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035373 MAGICK_DELEGATES="$MAGICK_DELEGATES gslib"
cristy2a3eb392012-12-17 13:39:20 +000035374fi
35375if test "$have_jbig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035376 MAGICK_DELEGATES="$MAGICK_DELEGATES jbig"
cristy2a3eb392012-12-17 13:39:20 +000035377fi
35378if test "$have_png$have_jpeg" = 'yesyes' ; then
cristy422d5502012-12-22 22:20:57 +000035379 MAGICK_DELEGATES="$MAGICK_DELEGATES jng"
cristy2a3eb392012-12-17 13:39:20 +000035380fi
cristy2a3eb392012-12-17 13:39:20 +000035381if test "$have_jpeg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035382 MAGICK_DELEGATES="$MAGICK_DELEGATES jpeg"
cristy2a3eb392012-12-17 13:39:20 +000035383fi
35384if test "$have_lcms" = 'yes' || test "$have_lcms2" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035385 MAGICK_DELEGATES="$MAGICK_DELEGATES lcms"
cristy2a3eb392012-12-17 13:39:20 +000035386fi
35387if test "$have_lqr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035388 MAGICK_DELEGATES="$MAGICK_DELEGATES lqr"
cristy2a3eb392012-12-17 13:39:20 +000035389fi
35390if test "$have_lzma" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035391 MAGICK_DELEGATES="$MAGICK_DELEGATES lzma"
cristy2a3eb392012-12-17 13:39:20 +000035392fi
35393if test "$have_openexr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035394 MAGICK_DELEGATES="$MAGICK_DELEGATES openexr"
cristy2a3eb392012-12-17 13:39:20 +000035395fi
cristy99db3872014-01-01 15:11:34 +000035396if test "$have_openjp2" = 'yes' ; then
35397 MAGICK_DELEGATES="$MAGICK_DELEGATES openjp2"
cristy3fe09452014-01-01 12:29:14 +000035398fi
cristy2a3eb392012-12-17 13:39:20 +000035399if test "$have_pango" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035400 MAGICK_DELEGATES="$MAGICK_DELEGATES pango"
cristy2a3eb392012-12-17 13:39:20 +000035401fi
35402if test "$have_png" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035403 MAGICK_DELEGATES="$MAGICK_DELEGATES png"
cristy2a3eb392012-12-17 13:39:20 +000035404fi
35405have_ps='no'
35406if test "$have_dps" = 'yes' || \
35407 test "$have_gs" = 'yes' || \
35408 test "${native_win32_build}" = 'yes' ; then
35409 have_ps='yes'
35410fi
35411if test "$have_ps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035412 MAGICK_DELEGATES="$MAGICK_DELEGATES ps"
cristy2a3eb392012-12-17 13:39:20 +000035413fi
cristy2a3eb392012-12-17 13:39:20 +000035414if test "$have_ra_ppm" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035415 MAGICK_DELEGATES="$MAGICK_DELEGATES rad"
cristy2a3eb392012-12-17 13:39:20 +000035416fi
35417if test "$have_rsvg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035418 MAGICK_DELEGATES="$MAGICK_DELEGATES rsvg"
cristy2a3eb392012-12-17 13:39:20 +000035419fi
35420if test "$have_tiff" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035421 MAGICK_DELEGATES="$MAGICK_DELEGATES tiff"
cristy2a3eb392012-12-17 13:39:20 +000035422fi
35423if test "$have_ttf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035424 MAGICK_DELEGATES="$MAGICK_DELEGATES ttf"
cristy2a3eb392012-12-17 13:39:20 +000035425fi
cristy3b640ed2013-07-29 00:27:59 +000035426if test "$have_webp" = 'yes' ; then
35427 MAGICK_DELEGATES="$MAGICK_DELEGATES webp"
35428fi
cristy2a3eb392012-12-17 13:39:20 +000035429if test "$have_wmf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035430 MAGICK_DELEGATES="$MAGICK_DELEGATES wmf"
cristy2a3eb392012-12-17 13:39:20 +000035431fi
35432if test "$have_x" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035433 MAGICK_DELEGATES="$MAGICK_DELEGATES x"
cristy2a3eb392012-12-17 13:39:20 +000035434fi
35435if test "$have_xml" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035436 MAGICK_DELEGATES="$MAGICK_DELEGATES xml"
cristy2a3eb392012-12-17 13:39:20 +000035437fi
35438if test "$have_zlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035439 MAGICK_DELEGATES="$MAGICK_DELEGATES zlib"
cristy2a3eb392012-12-17 13:39:20 +000035440fi
cristyead532a2015-06-05 00:49:30 +000035441
cristy2a3eb392012-12-17 13:39:20 +000035442# Remove extraneous spaces from output variables (asthetic)
cristy422d5502012-12-22 22:20:57 +000035443MAGICK_DELEGATES=`echo $MAGICK_DELEGATES | sed -e 's/ */ /g'`
cristy2a3eb392012-12-17 13:39:20 +000035444MAGICK_FEATURES=`echo $MAGICK_FEATURES | sed -e 's/ */ /g'`
cristy3ed852e2009-09-05 21:47:34 +000035445
35446
cristyfa161182012-12-19 15:45:28 +000035447
cristy3ed852e2009-09-05 21:47:34 +000035448#
35449# Handle special compiler flags
35450#
35451
35452# Add '-p' if prof source profiling support enabled
35453if test "$enable_prof" = 'yes'; then
35454 CFLAGS="-p $CFLAGS"
35455 CXXFLAGS="-p $CXXFLAGS"
35456 LDFLAGS="-p $LDFLAGS"
35457fi
35458
35459# Add '-pg' if gprof source profiling support enabled
35460if test "$enable_gprof" = 'yes'; then
35461 CFLAGS="-pg $CFLAGS"
35462 CXXFLAGS="-pg $CXXFLAGS"
35463 LDFLAGS="-pg $LDFLAGS"
35464fi
35465
35466# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
35467# This is a gcc-specific feature
35468if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035470$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035471if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035472 $as_echo_n "(cached) " >&6
35473else
35474 ac_check_lib_save_LIBS=$LIBS
35475LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035476cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035477/* end confdefs.h. */
35478
35479/* Override any GCC internal prototype to avoid an error.
35480 Use char because int might match the return type of a GCC
35481 builtin and then its argument prototype would still apply. */
35482#ifdef __cplusplus
35483extern "C"
35484#endif
35485char _gcov_init ();
35486int
35487main ()
35488{
35489return _gcov_init ();
35490 ;
35491 return 0;
35492}
35493_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035494if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035495 ac_cv_lib_gcov__gcov_init=yes
35496else
cristy8b350f62009-11-15 23:12:43 +000035497 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035498fi
cristy8b350f62009-11-15 23:12:43 +000035499rm -f core conftest.err conftest.$ac_objext \
35500 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035501LIBS=$ac_check_lib_save_LIBS
35502fi
cristy8b350f62009-11-15 23:12:43 +000035503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035504$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035505if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035506 cat >>confdefs.h <<_ACEOF
35507#define HAVE_LIBGCOV 1
35508_ACEOF
35509
35510 LIBS="-lgcov $LIBS"
35511
35512fi
35513
cristy8b350f62009-11-15 23:12:43 +000035514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035515$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035516if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035517 $as_echo_n "(cached) " >&6
35518else
35519 ac_check_lib_save_LIBS=$LIBS
35520LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035521cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035522/* end confdefs.h. */
35523
35524/* Override any GCC internal prototype to avoid an error.
35525 Use char because int might match the return type of a GCC
35526 builtin and then its argument prototype would still apply. */
35527#ifdef __cplusplus
35528extern "C"
35529#endif
35530char __gcov_init ();
35531int
35532main ()
35533{
35534return __gcov_init ();
35535 ;
35536 return 0;
35537}
35538_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035539if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035540 ac_cv_lib_gcov___gcov_init=yes
35541else
cristy8b350f62009-11-15 23:12:43 +000035542 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035543fi
cristy8b350f62009-11-15 23:12:43 +000035544rm -f core conftest.err conftest.$ac_objext \
35545 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035546LIBS=$ac_check_lib_save_LIBS
35547fi
cristy8b350f62009-11-15 23:12:43 +000035548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035549$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035550if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035551 cat >>confdefs.h <<_ACEOF
35552#define HAVE_LIBGCOV 1
35553_ACEOF
35554
35555 LIBS="-lgcov $LIBS"
35556
35557fi
35558
35559 case "$target_os" in
35560 darwin*)
35561 OSX_GCOV_LDFLAG="-Wl,-single_module"
35562 ;;
35563 *)
35564 OSX_GCOV_LDFLAG=""
35565 ;;
35566 esac
35567
35568 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
35569 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
35570 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
35571fi
35572
35573#
35574# Build library dependency list for libMagickCore
35575#
35576
cristyc6722092012-10-14 00:19:31 +000035577if test "$build_modules" != 'no'; then
cristybc8ef1c2015-06-06 14:32:21 +000035578 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 +000035579else
cristy70870272015-06-06 15:54:14 +000035580 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 $LIBOPENJP2_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 +000035581fi
35582
35583
cristy3ed852e2009-09-05 21:47:34 +000035584# Pass only user-provided LIBS as "global" libraries
35585LIBS=$USER_LIBS
35586
35587#AC_SUBST(CPPFLAGS)
35588
35589#AC_SUBST(LDFLAGS)
35590#AC_SUBST(X_PRE_LIBS)
35591#AC_SUBST(X_LIBS)
35592#AC_SUBST(X_EXTRA_LIBS)
35593
35594MAGICK_CFLAGS=$CFLAGS
35595MAGICK_CXXFLAGS="$CXXFLAGS"
35596MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
35597MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
35598MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
cristy31b9e072013-10-17 15:02:53 +000035599MAGICK_LIBS="$MAGICK_DEP_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000035600
35601
35602
35603
35604
35605
35606
35607
35608# Set configured scripts to executable.
35609ac_config_commands="$ac_config_commands default"
35610
cristy2bd4b6e2012-07-22 15:29:11 +000035611ac_config_commands="$ac_config_commands magick.sh.in"
35612
cristy3ed852e2009-09-05 21:47:34 +000035613ac_config_commands="$ac_config_commands MagickCore-config.in"
35614
cristy3ed852e2009-09-05 21:47:34 +000035615ac_config_commands="$ac_config_commands MagickWand-config.in"
35616
cristy3ed852e2009-09-05 21:47:34 +000035617ac_config_commands="$ac_config_commands Magick++-config.in"
35618
35619ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
35620
35621
cristyad38abe2012-12-23 23:03:21 +000035622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35623$as_echo "-------------------------------------------------------------" >&6; }
35624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
35625$as_echo "Update ImageMagick configuration" >&6; }
cristy9af1cbf2014-12-28 22:03:09 +000035626
35627rm -f magick-version
35628
35629result_dejavu_font_dir='none'
35630if test "${dejavu_font_dir}x" != 'x'; then
35631 result_dejavu_font_dir=$dejavu_font_dir
35632fi
35633
35634result_ghostscript_font_dir='none'
35635if test "${ghostscript_font_dir}x" != 'x'; then
35636 result_ghostscript_font_dir=$ghostscript_font_dir
35637fi
35638
35639result_windows_font_dir='none'
35640if test "${windows_font_dir}x" != 'x'; then
35641 result_windows_font_dir=${windows_font_dir}
35642fi
35643
35644# ==============================================================================
35645# Generate build environment
35646# ==============================================================================
35647ac_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"
35648
cristy3ed852e2009-09-05 21:47:34 +000035649cat >confcache <<\_ACEOF
35650# This file is a shell script that caches the results of configure
35651# tests run on this system so they can be shared between configure
35652# scripts and configure runs, see configure's option --config-cache.
35653# It is not useful on other systems. If it contains results you don't
35654# want to keep, you may remove or edit it.
35655#
35656# config.status only pays attention to the cache file if you give it
35657# the --recheck option to rerun configure.
35658#
35659# `ac_cv_env_foo' variables (set or unset) will be overridden when
35660# loading this file, other *unset* `ac_cv_foo' will be assigned the
35661# following values.
35662
35663_ACEOF
35664
35665# The following way of writing the cache mishandles newlines in values,
35666# but we know of no workaround that is simple, portable, and efficient.
35667# So, we kill variables containing newlines.
35668# Ultrix sh set writes to stderr and can't be redirected directly,
35669# and sets the high bit in the cache file unless we assign to the vars.
35670(
35671 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35672 eval ac_val=\$$ac_var
35673 case $ac_val in #(
35674 *${as_nl}*)
35675 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000035676 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000035677$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
35678 esac
35679 case $ac_var in #(
35680 _ | IFS | as_nl) ;; #(
35681 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000035682 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000035683 esac ;;
35684 esac
35685 done
35686
35687 (set) 2>&1 |
35688 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35689 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000035690 # `set' does not quote correctly, so add quotes: double-quote
35691 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000035692 sed -n \
35693 "s/'/'\\\\''/g;
35694 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35695 ;; #(
35696 *)
35697 # `set' quotes correctly as required by POSIX, so do not add quotes.
35698 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35699 ;;
35700 esac |
35701 sort
35702) |
35703 sed '
35704 /^ac_cv_env_/b end
35705 t clear
35706 :clear
35707 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35708 t end
35709 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35710 :end' >>confcache
35711if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35712 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000035713 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000035714 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035715$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000035716 if test ! -f "$cache_file" || test -h "$cache_file"; then
35717 cat confcache >"$cache_file"
35718 else
35719 case $cache_file in #(
35720 */* | ?:*)
35721 mv -f confcache "$cache_file"$$ &&
35722 mv -f "$cache_file"$$ "$cache_file" ;; #(
35723 *)
35724 mv -f confcache "$cache_file" ;;
35725 esac
35726 fi
35727 fi
cristy3ed852e2009-09-05 21:47:34 +000035728 else
cristy8b350f62009-11-15 23:12:43 +000035729 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035730$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35731 fi
35732fi
35733rm -f confcache
35734
35735test "x$prefix" = xNONE && prefix=$ac_default_prefix
35736# Let make expand exec_prefix.
35737test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35738
35739DEFS=-DHAVE_CONFIG_H
35740
35741ac_libobjs=
35742ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000035743U=
cristy3ed852e2009-09-05 21:47:34 +000035744for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35745 # 1. Remove the extension, and $U if already installed.
35746 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35747 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
35748 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35749 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000035750 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35751 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000035752done
35753LIBOBJS=$ac_libobjs
35754
35755LTLIBOBJS=$ac_ltlibobjs
35756
35757
cristyc0890a62012-07-19 00:18:20 +000035758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
35759$as_echo_n "checking that generated files are newer than configure... " >&6; }
35760 if test -n "$am_sleep_pid"; then
35761 # Hide warnings about reused PIDs.
35762 wait $am_sleep_pid 2>/dev/null
35763 fi
35764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
35765$as_echo "done" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000035766 if test -n "$EXEEXT"; then
35767 am__EXEEXT_TRUE=
35768 am__EXEEXT_FALSE='#'
35769else
35770 am__EXEEXT_TRUE='#'
35771 am__EXEEXT_FALSE=
35772fi
cristy3ed852e2009-09-05 21:47:34 +000035773
cristy9af1cbf2014-12-28 22:03:09 +000035774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
35775$as_echo_n "checking that generated files are newer than configure... " >&6; }
35776 if test -n "$am_sleep_pid"; then
35777 # Hide warnings about reused PIDs.
35778 wait $am_sleep_pid 2>/dev/null
35779 fi
35780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
35781$as_echo "done" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000035782if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035783 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035784Usually this means the macro was only invoked conditionally." "$LINENO" 5
35785fi
35786if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035787 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035788Usually this means the macro was only invoked conditionally." "$LINENO" 5
35789fi
35790if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035791 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035792Usually this means the macro was only invoked conditionally." "$LINENO" 5
35793fi
35794if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035795 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035796Usually this means the macro was only invoked conditionally." "$LINENO" 5
35797fi
cristy9b86f202012-11-28 21:55:35 +000035798if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
35799 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
35800Usually this means the macro was only invoked conditionally." "$LINENO" 5
35801fi
cristy73bd4a52010-10-05 11:24:23 +000035802if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035803 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035804Usually this means the macro was only invoked conditionally." "$LINENO" 5
35805fi
35806if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035807 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035808Usually this means the macro was only invoked conditionally." "$LINENO" 5
35809fi
35810if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035811 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035812Usually this means the macro was only invoked conditionally." "$LINENO" 5
35813fi
35814if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035815 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035816Usually this means the macro was only invoked conditionally." "$LINENO" 5
35817fi
cristy73bd4a52010-10-05 11:24:23 +000035818if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035819 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035820Usually this means the macro was only invoked conditionally." "$LINENO" 5
35821fi
35822if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035823 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035824Usually this means the macro was only invoked conditionally." "$LINENO" 5
35825fi
cristy73bd4a52010-10-05 11:24:23 +000035826if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035827 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035828Usually this means the macro was only invoked conditionally." "$LINENO" 5
35829fi
cristy71d8c202012-03-20 17:05:01 +000035830if test -z "${LEGACY_SUPPORT_TRUE}" && test -z "${LEGACY_SUPPORT_FALSE}"; then
35831 as_fn_error $? "conditional \"LEGACY_SUPPORT\" was never defined.
35832Usually this means the macro was only invoked conditionally." "$LINENO" 5
35833fi
cristy73bd4a52010-10-05 11:24:23 +000035834
35835if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035836 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035837Usually this means the macro was only invoked conditionally." "$LINENO" 5
35838fi
35839if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035840 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035841Usually this means the macro was only invoked conditionally." "$LINENO" 5
35842fi
cristy3b0097d2014-11-04 15:34:47 +000035843if test -z "${HasJEMALLOC_TRUE}" && test -z "${HasJEMALLOC_FALSE}"; then
35844 as_fn_error $? "conditional \"HasJEMALLOC\" was never defined.
35845Usually this means the macro was only invoked conditionally." "$LINENO" 5
35846fi
cristy73bd4a52010-10-05 11:24:23 +000035847if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035848 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035849Usually this means the macro was only invoked conditionally." "$LINENO" 5
35850fi
35851if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035852 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035853Usually this means the macro was only invoked conditionally." "$LINENO" 5
35854fi
35855if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035856 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035857Usually this means the macro was only invoked conditionally." "$LINENO" 5
35858fi
35859if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035860 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035861Usually this means the macro was only invoked conditionally." "$LINENO" 5
35862fi
cristy5eef09f2012-10-16 12:08:28 +000035863if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
35864 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
35865Usually this means the macro was only invoked conditionally." "$LINENO" 5
35866fi
cristy73bd4a52010-10-05 11:24:23 +000035867if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035868 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035869Usually this means the macro was only invoked conditionally." "$LINENO" 5
35870fi
35871if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035872 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035873Usually this means the macro was only invoked conditionally." "$LINENO" 5
35874fi
cristy73bd4a52010-10-05 11:24:23 +000035875if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035876 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035877Usually this means the macro was only invoked conditionally." "$LINENO" 5
35878fi
35879if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035880 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035881Usually this means the macro was only invoked conditionally." "$LINENO" 5
35882fi
cristy853d9902014-08-21 18:50:43 +000035883if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
35884 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
35885Usually this means the macro was only invoked conditionally." "$LINENO" 5
35886fi
cristy73bd4a52010-10-05 11:24:23 +000035887if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035888 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035889Usually this means the macro was only invoked conditionally." "$LINENO" 5
35890fi
35891if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035892 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035893Usually this means the macro was only invoked conditionally." "$LINENO" 5
35894fi
35895if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035896 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035897Usually this means the macro was only invoked conditionally." "$LINENO" 5
35898fi
35899if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035900 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035901Usually this means the macro was only invoked conditionally." "$LINENO" 5
35902fi
35903if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035904 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035905Usually this means the macro was only invoked conditionally." "$LINENO" 5
35906fi
35907if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035908 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035909Usually this means the macro was only invoked conditionally." "$LINENO" 5
35910fi
cristy73bd4a52010-10-05 11:24:23 +000035911if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035912 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035913Usually this means the macro was only invoked conditionally." "$LINENO" 5
35914fi
cristy99db3872014-01-01 15:11:34 +000035915if test -z "${LIBOPENJP2_DELEGATE_TRUE}" && test -z "${LIBOPENJP2_DELEGATE_FALSE}"; then
35916 as_fn_error $? "conditional \"LIBOPENJP2_DELEGATE\" was never defined.
35917Usually this means the macro was only invoked conditionally." "$LINENO" 5
35918fi
cristy73bd4a52010-10-05 11:24:23 +000035919if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035920 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035921Usually this means the macro was only invoked conditionally." "$LINENO" 5
35922fi
cristyfbb0ef02010-12-19 02:32:11 +000035923if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
35924 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
35925Usually this means the macro was only invoked conditionally." "$LINENO" 5
35926fi
cristy73bd4a52010-10-05 11:24:23 +000035927if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035928 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035929Usually this means the macro was only invoked conditionally." "$LINENO" 5
35930fi
cristy41cbe8a2011-10-27 01:35:18 +000035931if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
35932 as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
35933Usually this means the macro was only invoked conditionally." "$LINENO" 5
35934fi
cristya054b762012-03-26 23:16:00 +000035935if test -z "${PANGOCAIRO_DELEGATE_TRUE}" && test -z "${PANGOCAIRO_DELEGATE_FALSE}"; then
35936 as_fn_error $? "conditional \"PANGOCAIRO_DELEGATE\" was never defined.
cristy41cbe8a2011-10-27 01:35:18 +000035937Usually this means the macro was only invoked conditionally." "$LINENO" 5
35938fi
cristy73bd4a52010-10-05 11:24:23 +000035939if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035940 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035941Usually this means the macro was only invoked conditionally." "$LINENO" 5
35942fi
35943if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035944 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035945Usually this means the macro was only invoked conditionally." "$LINENO" 5
35946fi
35947if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035948 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035949Usually this means the macro was only invoked conditionally." "$LINENO" 5
35950fi
35951if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035952 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035953Usually this means the macro was only invoked conditionally." "$LINENO" 5
35954fi
cristyb1860752011-03-14 00:27:46 +000035955if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
35956 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
35957Usually this means the macro was only invoked conditionally." "$LINENO" 5
35958fi
cristy73bd4a52010-10-05 11:24:23 +000035959if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035960 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035961Usually this means the macro was only invoked conditionally." "$LINENO" 5
35962fi
35963if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035964 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035965Usually this means the macro was only invoked conditionally." "$LINENO" 5
35966fi
cristydd17feb2014-03-05 02:06:32 +000035967if test -z "${INSTALL_DOC_TRUE}" && test -z "${INSTALL_DOC_FALSE}"; then
35968 as_fn_error $? "conditional \"INSTALL_DOC\" was never defined.
35969Usually this means the macro was only invoked conditionally." "$LINENO" 5
35970fi
cristy73bd4a52010-10-05 11:24:23 +000035971if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035972 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035973Usually this means the macro was only invoked conditionally." "$LINENO" 5
35974fi
35975if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035976 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035977Usually this means the macro was only invoked conditionally." "$LINENO" 5
35978fi
35979if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035980 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035981Usually this means the macro was only invoked conditionally." "$LINENO" 5
35982fi
35983if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035984 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035985Usually this means the macro was only invoked conditionally." "$LINENO" 5
35986fi
35987if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035988 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035989Usually this means the macro was only invoked conditionally." "$LINENO" 5
35990fi
35991if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035992 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035993Usually this means the macro was only invoked conditionally." "$LINENO" 5
35994fi
cristy3ed852e2009-09-05 21:47:34 +000035995
cristyda16f162011-02-19 23:52:17 +000035996: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000035997ac_write_fail=0
35998ac_clean_files_save=$ac_clean_files
35999ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000036000{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000036001$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000036002as_write_fail=0
36003cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036004#! $SHELL
36005# Generated by $as_me.
36006# Run this file to recreate the current configuration.
36007# Compiler output produced by configure, useful for debugging
36008# configure, is in config.log if it exists.
36009
36010debug=false
36011ac_cs_recheck=false
36012ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000036013
cristy8b350f62009-11-15 23:12:43 +000036014SHELL=\${CONFIG_SHELL-$SHELL}
36015export SHELL
36016_ASEOF
36017cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
36018## -------------------- ##
36019## M4sh Initialization. ##
36020## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000036021
36022# Be more Bourne compatible
36023DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000036024if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000036025 emulate sh
36026 NULLCMD=:
36027 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
36028 # is contrary to our usage. Disable this feature.
36029 alias -g '${1+"$@"}'='"$@"'
36030 setopt NO_GLOB_SUBST
36031else
cristy8b350f62009-11-15 23:12:43 +000036032 case `(set -o) 2>/dev/null` in #(
36033 *posix*) :
36034 set -o posix ;; #(
36035 *) :
36036 ;;
cristy3ed852e2009-09-05 21:47:34 +000036037esac
cristy3ed852e2009-09-05 21:47:34 +000036038fi
36039
36040
cristy3ed852e2009-09-05 21:47:34 +000036041as_nl='
36042'
36043export as_nl
36044# Printing a long string crashes Solaris 7 /usr/bin/printf.
36045as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
36046as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
36047as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000036048# Prefer a ksh shell builtin over an external printf program on Solaris,
36049# but without wasting forks for bash or zsh.
36050if test -z "$BASH_VERSION$ZSH_VERSION" \
36051 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
36052 as_echo='print -r --'
36053 as_echo_n='print -rn --'
36054elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000036055 as_echo='printf %s\n'
36056 as_echo_n='printf %s'
36057else
36058 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
36059 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
36060 as_echo_n='/usr/ucb/echo -n'
36061 else
36062 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
36063 as_echo_n_body='eval
36064 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000036065 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000036066 *"$as_nl"*)
36067 expr "X$arg" : "X\\(.*\\)$as_nl";
36068 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
36069 esac;
36070 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
36071 '
36072 export as_echo_n_body
36073 as_echo_n='sh -c $as_echo_n_body as_echo'
36074 fi
36075 export as_echo_body
36076 as_echo='sh -c $as_echo_body as_echo'
36077fi
36078
36079# The user is always right.
36080if test "${PATH_SEPARATOR+set}" != set; then
36081 PATH_SEPARATOR=:
36082 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
36083 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
36084 PATH_SEPARATOR=';'
36085 }
36086fi
36087
cristy3ed852e2009-09-05 21:47:34 +000036088
36089# IFS
36090# We need space, tab and new line, in precisely that order. Quoting is
36091# there to prevent editors from complaining about space-tab.
36092# (If _AS_PATH_WALK were called with IFS unset, it would disable word
36093# splitting by setting IFS to empty value.)
36094IFS=" "" $as_nl"
36095
36096# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000036097as_myself=
cristy8b350f62009-11-15 23:12:43 +000036098case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000036099 *[\\/]* ) as_myself=$0 ;;
36100 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36101for as_dir in $PATH
36102do
36103 IFS=$as_save_IFS
36104 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000036105 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
36106 done
cristy3ed852e2009-09-05 21:47:34 +000036107IFS=$as_save_IFS
36108
36109 ;;
36110esac
36111# We did not find ourselves, most probably we were run as `sh COMMAND'
36112# in which case we are not to be found in the path.
36113if test "x$as_myself" = x; then
36114 as_myself=$0
36115fi
36116if test ! -f "$as_myself"; then
36117 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000036118 exit 1
cristy3ed852e2009-09-05 21:47:34 +000036119fi
36120
cristy8b350f62009-11-15 23:12:43 +000036121# Unset variables that we do not need and which cause bugs (e.g. in
36122# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
36123# suppresses any "Segmentation fault" message there. '((' could
36124# trigger a bug in pdksh 5.2.14.
36125for as_var in BASH_ENV ENV MAIL MAILPATH
36126do eval test x\${$as_var+set} = xset \
36127 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000036128done
36129PS1='$ '
36130PS2='> '
36131PS4='+ '
36132
36133# NLS nuisances.
36134LC_ALL=C
36135export LC_ALL
36136LANGUAGE=C
36137export LANGUAGE
36138
cristy8b350f62009-11-15 23:12:43 +000036139# CDPATH.
36140(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36141
36142
cristy98dddb52010-11-04 00:30:15 +000036143# as_fn_error STATUS ERROR [LINENO LOG_FD]
36144# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000036145# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
36146# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000036147# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000036148as_fn_error ()
36149{
cristy98dddb52010-11-04 00:30:15 +000036150 as_status=$1; test $as_status -eq 0 && as_status=1
36151 if test "$4"; then
36152 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
36153 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000036154 fi
cristy98dddb52010-11-04 00:30:15 +000036155 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000036156 as_fn_exit $as_status
36157} # as_fn_error
36158
36159
36160# as_fn_set_status STATUS
36161# -----------------------
36162# Set $? to STATUS, without forking.
36163as_fn_set_status ()
36164{
36165 return $1
36166} # as_fn_set_status
36167
36168# as_fn_exit STATUS
36169# -----------------
36170# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
36171as_fn_exit ()
36172{
36173 set +e
36174 as_fn_set_status $1
36175 exit $1
36176} # as_fn_exit
36177
36178# as_fn_unset VAR
36179# ---------------
36180# Portably unset VAR.
36181as_fn_unset ()
36182{
36183 { eval $1=; unset $1;}
36184}
36185as_unset=as_fn_unset
36186# as_fn_append VAR VALUE
36187# ----------------------
36188# Append the text in VALUE to the end of the definition contained in VAR. Take
36189# advantage of any shell optimizations that allow amortized linear growth over
36190# repeated appends, instead of the typical quadratic growth present in naive
36191# implementations.
36192if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
36193 eval 'as_fn_append ()
36194 {
36195 eval $1+=\$2
36196 }'
36197else
36198 as_fn_append ()
36199 {
36200 eval $1=\$$1\$2
36201 }
36202fi # as_fn_append
36203
36204# as_fn_arith ARG...
36205# ------------------
36206# Perform arithmetic evaluation on the ARGs, and store the result in the
36207# global $as_val. Take advantage of shells that can avoid forks. The arguments
36208# must be portable across $(()) and expr.
36209if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
36210 eval 'as_fn_arith ()
36211 {
36212 as_val=$(( $* ))
36213 }'
36214else
36215 as_fn_arith ()
36216 {
36217 as_val=`expr "$@" || test $? -eq 1`
36218 }
36219fi # as_fn_arith
36220
36221
cristy3ed852e2009-09-05 21:47:34 +000036222if expr a : '\(a\)' >/dev/null 2>&1 &&
36223 test "X`expr 00001 : '.*\(...\)'`" = X001; then
36224 as_expr=expr
36225else
36226 as_expr=false
36227fi
36228
36229if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
36230 as_basename=basename
36231else
36232 as_basename=false
36233fi
36234
cristy8b350f62009-11-15 23:12:43 +000036235if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
36236 as_dirname=dirname
36237else
36238 as_dirname=false
36239fi
cristy3ed852e2009-09-05 21:47:34 +000036240
cristy3ed852e2009-09-05 21:47:34 +000036241as_me=`$as_basename -- "$0" ||
36242$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
36243 X"$0" : 'X\(//\)$' \| \
36244 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
36245$as_echo X/"$0" |
36246 sed '/^.*\/\([^/][^/]*\)\/*$/{
36247 s//\1/
36248 q
36249 }
36250 /^X\/\(\/\/\)$/{
36251 s//\1/
36252 q
36253 }
36254 /^X\/\(\/\).*/{
36255 s//\1/
36256 q
36257 }
36258 s/.*/./; q'`
36259
cristy8b350f62009-11-15 23:12:43 +000036260# Avoid depending upon Character Ranges.
36261as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36262as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36263as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36264as_cr_digits='0123456789'
36265as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000036266
36267ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000036268case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000036269-n*)
cristy8b350f62009-11-15 23:12:43 +000036270 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000036271 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000036272 xy) ECHO_C='\c';;
36273 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
36274 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000036275 esac;;
36276*)
36277 ECHO_N='-n';;
36278esac
cristy3ed852e2009-09-05 21:47:34 +000036279
36280rm -f conf$$ conf$$.exe conf$$.file
36281if test -d conf$$.dir; then
36282 rm -f conf$$.dir/conf$$.file
36283else
36284 rm -f conf$$.dir
36285 mkdir conf$$.dir 2>/dev/null
36286fi
36287if (echo >conf$$.file) 2>/dev/null; then
36288 if ln -s conf$$.file conf$$ 2>/dev/null; then
36289 as_ln_s='ln -s'
36290 # ... but there are two gotchas:
36291 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
36292 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cristy14fefe52012-05-21 00:59:18 +000036293 # In both cases, we have to default to `cp -pR'.
cristy3ed852e2009-09-05 21:47:34 +000036294 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cristy14fefe52012-05-21 00:59:18 +000036295 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036296 elif ln conf$$.file conf$$ 2>/dev/null; then
36297 as_ln_s=ln
36298 else
cristy14fefe52012-05-21 00:59:18 +000036299 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036300 fi
36301else
cristy14fefe52012-05-21 00:59:18 +000036302 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036303fi
36304rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
36305rmdir conf$$.dir 2>/dev/null
36306
cristy8b350f62009-11-15 23:12:43 +000036307
36308# as_fn_mkdir_p
36309# -------------
36310# Create "$as_dir" as a directory, including parents if necessary.
36311as_fn_mkdir_p ()
36312{
36313
36314 case $as_dir in #(
36315 -*) as_dir=./$as_dir;;
36316 esac
36317 test -d "$as_dir" || eval $as_mkdir_p || {
36318 as_dirs=
36319 while :; do
36320 case $as_dir in #(
36321 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
36322 *) as_qdir=$as_dir;;
36323 esac
36324 as_dirs="'$as_qdir' $as_dirs"
36325 as_dir=`$as_dirname -- "$as_dir" ||
36326$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36327 X"$as_dir" : 'X\(//\)[^/]' \| \
36328 X"$as_dir" : 'X\(//\)$' \| \
36329 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36330$as_echo X"$as_dir" |
36331 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36332 s//\1/
36333 q
36334 }
36335 /^X\(\/\/\)[^/].*/{
36336 s//\1/
36337 q
36338 }
36339 /^X\(\/\/\)$/{
36340 s//\1/
36341 q
36342 }
36343 /^X\(\/\).*/{
36344 s//\1/
36345 q
36346 }
36347 s/.*/./; q'`
36348 test -d "$as_dir" && break
36349 done
36350 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000036351 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000036352
36353
36354} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000036355if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000036356 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000036357else
36358 test -d ./-p && rmdir ./-p
36359 as_mkdir_p=false
36360fi
36361
cristy14fefe52012-05-21 00:59:18 +000036362
36363# as_fn_executable_p FILE
36364# -----------------------
36365# Test if FILE is an executable regular file.
36366as_fn_executable_p ()
36367{
36368 test -f "$1" && test -x "$1"
36369} # as_fn_executable_p
36370as_test_x='test -x'
36371as_executable_p=as_fn_executable_p
cristy3ed852e2009-09-05 21:47:34 +000036372
36373# Sed expression to map a string onto a valid CPP name.
36374as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
36375
36376# Sed expression to map a string onto a valid variable name.
36377as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
36378
36379
36380exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000036381## ----------------------------------- ##
36382## Main body of $CONFIG_STATUS script. ##
36383## ----------------------------------- ##
36384_ASEOF
36385test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036386
cristy8b350f62009-11-15 23:12:43 +000036387cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36388# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000036389# report actual input values of CONFIG_FILES etc. instead of their
36390# values after options handling.
36391ac_log="
cristy29eb34e2011-10-16 00:46:08 +000036392This file was extended by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +000036393generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000036394
36395 CONFIG_FILES = $CONFIG_FILES
36396 CONFIG_HEADERS = $CONFIG_HEADERS
36397 CONFIG_LINKS = $CONFIG_LINKS
36398 CONFIG_COMMANDS = $CONFIG_COMMANDS
36399 $ $0 $@
36400
36401on `(hostname || uname -n) 2>/dev/null | sed 1q`
36402"
36403
36404_ACEOF
36405
36406case $ac_config_files in *"
36407"*) set x $ac_config_files; shift; ac_config_files=$*;;
36408esac
36409
36410case $ac_config_headers in *"
36411"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
36412esac
36413
36414
36415cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36416# Files that config.status was made for.
36417config_files="$ac_config_files"
36418config_headers="$ac_config_headers"
36419config_commands="$ac_config_commands"
36420
36421_ACEOF
36422
36423cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36424ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000036425\`$as_me' instantiates files and other configuration actions
36426from templates according to the current configuration. Unless the files
36427and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000036428
cristy8b350f62009-11-15 23:12:43 +000036429Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000036430
36431 -h, --help print this help, then exit
36432 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000036433 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000036434 -q, --quiet, --silent
36435 do not print progress messages
36436 -d, --debug don't remove temporary files
36437 --recheck update $as_me by reconfiguring in the same conditions
36438 --file=FILE[:TEMPLATE]
36439 instantiate the configuration file FILE
36440 --header=FILE[:TEMPLATE]
36441 instantiate the configuration header FILE
36442
36443Configuration files:
36444$config_files
36445
36446Configuration headers:
36447$config_headers
36448
36449Configuration commands:
36450$config_commands
36451
cristy8b350f62009-11-15 23:12:43 +000036452Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000036453
36454_ACEOF
36455cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000036456ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000036457ac_cs_version="\\
cristy29eb34e2011-10-16 00:46:08 +000036458ImageMagick config.status 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +000036459configured by $0, generated by GNU Autoconf 2.69,
cristycd4c5312009-11-22 01:19:08 +000036460 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000036461
cristy14fefe52012-05-21 00:59:18 +000036462Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000036463This config.status script is free software; the Free Software Foundation
36464gives unlimited permission to copy, distribute and modify it."
36465
36466ac_pwd='$ac_pwd'
36467srcdir='$srcdir'
36468INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000036469MKDIR_P='$MKDIR_P'
36470AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000036471test -n "\$AWK" || AWK=awk
36472_ACEOF
36473
36474cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36475# The default lists apply if the user does not specify any file.
36476ac_need_defaults=:
36477while test $# != 0
36478do
36479 case $1 in
cristyda16f162011-02-19 23:52:17 +000036480 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000036481 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36482 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
36483 ac_shift=:
36484 ;;
cristyda16f162011-02-19 23:52:17 +000036485 --*=)
36486 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36487 ac_optarg=
36488 ac_shift=:
36489 ;;
cristy3ed852e2009-09-05 21:47:34 +000036490 *)
36491 ac_option=$1
36492 ac_optarg=$2
36493 ac_shift=shift
36494 ;;
36495 esac
36496
36497 case $ac_option in
36498 # Handling of the options.
36499 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
36500 ac_cs_recheck=: ;;
36501 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
36502 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000036503 --config | --confi | --conf | --con | --co | --c )
36504 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000036505 --debug | --debu | --deb | --de | --d | -d )
36506 debug=: ;;
36507 --file | --fil | --fi | --f )
36508 $ac_shift
36509 case $ac_optarg in
36510 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000036511 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000036512 esac
cristy8b350f62009-11-15 23:12:43 +000036513 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036514 ac_need_defaults=false;;
36515 --header | --heade | --head | --hea )
36516 $ac_shift
36517 case $ac_optarg in
36518 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
36519 esac
cristy8b350f62009-11-15 23:12:43 +000036520 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036521 ac_need_defaults=false;;
36522 --he | --h)
36523 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000036524 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036525Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000036526 --help | --hel | -h )
36527 $as_echo "$ac_cs_usage"; exit ;;
36528 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
36529 | -silent | --silent | --silen | --sile | --sil | --si | --s)
36530 ac_cs_silent=: ;;
36531
36532 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000036533 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036534Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000036535
cristy8b350f62009-11-15 23:12:43 +000036536 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000036537 ac_need_defaults=false ;;
36538
36539 esac
36540 shift
36541done
36542
36543ac_configure_extra_args=
36544
36545if $ac_cs_silent; then
36546 exec 6>/dev/null
36547 ac_configure_extra_args="$ac_configure_extra_args --silent"
36548fi
36549
36550_ACEOF
36551cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36552if \$ac_cs_recheck; then
cristy14fefe52012-05-21 00:59:18 +000036553 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
cristy3ed852e2009-09-05 21:47:34 +000036554 shift
36555 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
36556 CONFIG_SHELL='$SHELL'
36557 export CONFIG_SHELL
36558 exec "\$@"
36559fi
36560
36561_ACEOF
36562cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36563exec 5>>config.log
36564{
36565 echo
36566 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36567## Running $as_me. ##
36568_ASBOX
36569 $as_echo "$ac_log"
36570} >&5
36571
36572_ACEOF
36573cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000036574#
36575# INIT-COMMANDS
36576#
36577PACKAGE="$PACKAGE"
36578AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
36579
36580
36581# The HP-UX ksh and POSIX shell print the target directory to stdout
36582# if CDPATH is set.
36583(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36584
36585sed_quote_subst='$sed_quote_subst'
36586double_quote_subst='$double_quote_subst'
36587delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000036588SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
36589Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
36590GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
36591EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
36592FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
36593SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
36594ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
36595LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
36596macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
36597macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
36598AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
36599DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
36600OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
36601enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
36602enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
36603pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
36604enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
cristy99bd5232011-12-07 14:38:20 +000036605PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036606host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
36607host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
36608host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
36609build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
36610build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
36611build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
36612NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
36613LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
36614max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
36615ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
36616exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
36617lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
36618lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
36619lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036620lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
36621lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036622reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
36623reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
36624deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
36625file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036626file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
36627want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
36628sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036629AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
36630AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036631archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036632STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
36633RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
36634old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36635old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36636old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
36637lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
36638CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
36639CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
36640compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
36641GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
36642lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
36643lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
36644lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
36645lt_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 +000036646nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
36647lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036648objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
36649MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
36650lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036651lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036652lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036653lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
36654lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
36655need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036656MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036657DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
36658NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
36659LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
36660OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
36661OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
36662libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
36663shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
36664extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36665archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
36666enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
36667export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
36668whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
36669compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
36670old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
36671old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36672archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
36673archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36674module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
36675module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36676with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
36677allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
36678no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
36679hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036680hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
36681hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
36682hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
36683hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
36684hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
36685hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
36686inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
36687link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036688always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
36689export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
36690exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
36691include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
36692prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036693postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036694file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
36695variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
36696need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
36697need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
36698version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
36699runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
36700shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
36701shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
36702libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
36703library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
36704soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
36705install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
36706postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36707postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36708finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
36709finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
36710hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
36711sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
36712sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
36713hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
36714enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
36715enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
36716enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
36717old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
36718striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
36719compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
36720predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
36721postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
36722predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
36723postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
36724compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
36725LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
36726reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
36727reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36728old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36729compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
36730GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
36731lt_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 +000036732lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036733lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036734lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
36735lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
36736archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
36737enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
36738export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36739whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36740compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
36741old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36742old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36743archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36744archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36745module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36746module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36747with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
36748allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36749no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36750hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036751hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
36752hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
36753hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
36754hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
36755hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
36756hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
36757inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
36758link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036759always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
36760export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36761exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36762include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36763prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036764postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036765file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
36766hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
36767compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
36768predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36769postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36770predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
36771postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
36772compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000036773
36774LTCC='$LTCC'
36775LTCFLAGS='$LTCFLAGS'
36776compiler='$compiler_DEFAULT'
36777
cristy0c60a692010-11-04 01:09:47 +000036778# A function that is used when there is no print builtin or printf.
36779func_fallback_echo ()
36780{
36781 eval 'cat <<_LTECHO_EOF
36782\$1
36783_LTECHO_EOF'
36784}
36785
cristy73bd4a52010-10-05 11:24:23 +000036786# Quote evaled strings.
36787for var in SED \
36788GREP \
36789EGREP \
36790FGREP \
cristy0c60a692010-11-04 01:09:47 +000036791SHELL \
36792ECHO \
cristy73bd4a52010-10-05 11:24:23 +000036793LD \
cristy0c60a692010-11-04 01:09:47 +000036794AS \
36795DLLTOOL \
36796OBJDUMP \
cristy99bd5232011-12-07 14:38:20 +000036797PATH_SEPARATOR \
cristy73bd4a52010-10-05 11:24:23 +000036798NM \
36799LN_S \
36800lt_SP2NL \
36801lt_NL2SP \
36802reload_flag \
36803deplibs_check_method \
36804file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000036805file_magic_glob \
36806want_nocaseglob \
36807sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000036808AR \
36809AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000036810archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036811STRIP \
36812RANLIB \
36813CC \
36814CFLAGS \
36815compiler \
36816lt_cv_sys_global_symbol_pipe \
36817lt_cv_sys_global_symbol_to_cdecl \
36818lt_cv_sys_global_symbol_to_c_name_address \
36819lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000036820nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036821lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000036822lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000036823lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000036824lt_prog_compiler_static \
36825lt_cv_prog_compiler_c_o \
36826need_locks \
cristyda16f162011-02-19 23:52:17 +000036827MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000036828DSYMUTIL \
36829NMEDIT \
36830LIPO \
36831OTOOL \
36832OTOOL64 \
36833shrext_cmds \
36834export_dynamic_flag_spec \
36835whole_archive_flag_spec \
36836compiler_needs_object \
36837with_gnu_ld \
36838allow_undefined_flag \
36839no_undefined_flag \
36840hardcode_libdir_flag_spec \
cristy73bd4a52010-10-05 11:24:23 +000036841hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000036842exclude_expsyms \
36843include_expsyms \
36844file_list_spec \
36845variables_saved_for_relink \
36846libname_spec \
36847library_names_spec \
36848soname_spec \
cristy0c60a692010-11-04 01:09:47 +000036849install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000036850finish_eval \
36851old_striplib \
36852striplib \
36853compiler_lib_search_dirs \
36854predep_objects \
36855postdep_objects \
36856predeps \
36857postdeps \
36858compiler_lib_search_path \
36859LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000036860reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036861compiler_CXX \
36862lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036863lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000036864lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036865lt_prog_compiler_static_CXX \
36866lt_cv_prog_compiler_c_o_CXX \
36867export_dynamic_flag_spec_CXX \
36868whole_archive_flag_spec_CXX \
36869compiler_needs_object_CXX \
36870with_gnu_ld_CXX \
36871allow_undefined_flag_CXX \
36872no_undefined_flag_CXX \
36873hardcode_libdir_flag_spec_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036874hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036875exclude_expsyms_CXX \
36876include_expsyms_CXX \
36877file_list_spec_CXX \
36878compiler_lib_search_dirs_CXX \
36879predep_objects_CXX \
36880postdep_objects_CXX \
36881predeps_CXX \
36882postdeps_CXX \
36883compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000036884 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000036885 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000036886 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000036887 ;;
36888 *)
36889 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
36890 ;;
36891 esac
36892done
36893
36894# Double-quote double-evaled strings.
36895for var in reload_cmds \
36896old_postinstall_cmds \
36897old_postuninstall_cmds \
36898old_archive_cmds \
36899extract_expsyms_cmds \
36900old_archive_from_new_cmds \
36901old_archive_from_expsyms_cmds \
36902archive_cmds \
36903archive_expsym_cmds \
36904module_cmds \
36905module_expsym_cmds \
36906export_symbols_cmds \
36907prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000036908postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000036909postinstall_cmds \
36910postuninstall_cmds \
36911finish_cmds \
36912sys_lib_search_path_spec \
36913sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000036914reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036915old_archive_cmds_CXX \
36916old_archive_from_new_cmds_CXX \
36917old_archive_from_expsyms_cmds_CXX \
36918archive_cmds_CXX \
36919archive_expsym_cmds_CXX \
36920module_cmds_CXX \
36921module_expsym_cmds_CXX \
36922export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000036923prelink_cmds_CXX \
36924postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000036925 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000036926 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000036927 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000036928 ;;
36929 *)
36930 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
36931 ;;
36932 esac
36933done
36934
cristy73bd4a52010-10-05 11:24:23 +000036935ac_aux_dir='$ac_aux_dir'
36936xsi_shell='$xsi_shell'
36937lt_shell_append='$lt_shell_append'
36938
36939# See if we are running on zsh, and set the options which allow our
36940# commands through without removal of \ escapes INIT.
36941if test -n "\${ZSH_VERSION+set}" ; then
36942 setopt NO_GLOB_SUBST
36943fi
36944
36945
36946 PACKAGE='$PACKAGE'
36947 VERSION='$VERSION'
36948 TIMESTAMP='$TIMESTAMP'
36949 RM='$RM'
36950 ofile='$ofile'
36951
36952
36953
36954
36955
36956
cristy3ed852e2009-09-05 21:47:34 +000036957_ACEOF
36958
36959cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36960
36961# Handling of arguments.
36962for ac_config_target in $ac_config_targets
36963do
36964 case $ac_config_target in
36965 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy01ff9f32012-12-01 18:15:29 +000036966 "MagickCore/magick-baseconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-baseconfig.h" ;;
cristy9af1cbf2014-12-28 22:03:09 +000036967 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
36968 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
36969 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
36970 "magick.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS magick.sh.in" ;;
36971 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
36972 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
36973 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
36974 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
cristy305c5dd2012-09-13 00:30:13 +000036975 "common.shi") CONFIG_FILES="$CONFIG_FILES common.shi" ;;
cristy3ed852e2009-09-05 21:47:34 +000036976 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
36977 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
36978 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
36979 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
36980 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy2df32802012-09-17 01:15:28 +000036981 "config/Magick++.dox") CONFIG_FILES="$CONFIG_FILES config/Magick++.dox" ;;
cristy5a3dc992014-12-05 19:50:04 +000036982 "config/type-apple.xml") CONFIG_FILES="$CONFIG_FILES config/type-apple.xml" ;;
cristy430a7312010-01-21 20:44:04 +000036983 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000036984 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
36985 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
36986 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
36987 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
36988 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
cristy4c08aed2011-07-01 19:47:50 +000036989 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000036990 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
cristy4c08aed2011-07-01 19:47:50 +000036991 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
36992 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
36993 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000036994 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
36995 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
cristy3ed852e2009-09-05 21:47:34 +000036996 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
cristy8d0ff762013-03-10 20:33:28 +000036997 "PerlMagick/default/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Magick.pm" ;;
cristy3e049f82013-02-13 13:26:53 +000036998 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
cristy8d0ff762013-03-10 20:33:28 +000036999 "PerlMagick/default/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Makefile.PL" ;;
cristycf0cbcc2013-02-13 23:32:58 +000037000 "PerlMagick/quantum/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/Makefile.PL" ;;
37001 "PerlMagick/quantum/quantum.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.pm" ;;
37002 "PerlMagick/quantum/quantum.xs") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.xs" ;;
37003 "PerlMagick/quantum/typemap") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/typemap" ;;
cristy3ed852e2009-09-05 21:47:34 +000037004 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
37005 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
37006 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
37007 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
37008 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
37009 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
37010 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
37011 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
37012 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
37013 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
37014 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
37015 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
cristy4c08aed2011-07-01 19:47:50 +000037016 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
37017 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000037018
cristy98dddb52010-11-04 00:30:15 +000037019 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037020 esac
37021done
37022
37023
37024# If the user did not use the arguments to specify the items to instantiate,
37025# then the envvar interface is used. Set only those that are not.
37026# We use the long form for the default assignment because of an extremely
37027# bizarre bug on SunOS 4.1.3.
37028if $ac_need_defaults; then
37029 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
37030 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
37031 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
37032fi
37033
37034# Have a temporary directory for convenience. Make it in the build tree
37035# simply because there is no reason against having it here, and in addition,
37036# creating and moving files from /tmp can sometimes cause problems.
37037# Hook for its removal unless debugging.
37038# Note that there is a small window in which the directory will not be cleaned:
37039# after its creation but before its name has been assigned to `$tmp'.
37040$debug ||
37041{
cristyda16f162011-02-19 23:52:17 +000037042 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000037043 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000037044 : "${ac_tmp:=$tmp}"
37045 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000037046' 0
cristy8b350f62009-11-15 23:12:43 +000037047 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000037048}
37049# Create a (secure) tmp directory for tmp files.
37050
37051{
37052 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000037053 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000037054} ||
37055{
37056 tmp=./conf$$-$RANDOM
37057 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000037058} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037059ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000037060
37061# Set up the scripts for CONFIG_FILES section.
37062# No need to generate them if there are no CONFIG_FILES.
37063# This happens for instance with `./config.status config.h'.
37064if test -n "$CONFIG_FILES"; then
37065
37066
cristy8b350f62009-11-15 23:12:43 +000037067ac_cr=`echo X | tr X '\015'`
37068# On cygwin, bash can eat \r inside `` if the user requested igncr.
37069# But we know of no other shell where ac_cr would be empty at this
37070# point, so we can use a bashism as a fallback.
37071if test "x$ac_cr" = x; then
37072 eval ac_cr=\$\'\\r\'
37073fi
cristy3ed852e2009-09-05 21:47:34 +000037074ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
37075if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000037076 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000037077else
37078 ac_cs_awk_cr=$ac_cr
37079fi
37080
cristyda16f162011-02-19 23:52:17 +000037081echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000037082_ACEOF
37083
37084
37085{
37086 echo "cat >conf$$subs.awk <<_ACEOF" &&
37087 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
37088 echo "_ACEOF"
37089} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037090 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
37091ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000037092ac_delim='%!_!# '
37093for ac_last_try in false false false false false :; do
37094 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037095 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037096
37097 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
37098 if test $ac_delim_n = $ac_delim_num; then
37099 break
37100 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037101 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037102 else
37103 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37104 fi
37105done
37106rm -f conf$$subs.sh
37107
37108cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000037109cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037110_ACEOF
37111sed -n '
37112h
37113s/^/S["/; s/!.*/"]=/
37114p
37115g
37116s/^[^!]*!//
37117:repl
37118t repl
37119s/'"$ac_delim"'$//
37120t delim
37121:nl
37122h
cristycd4c5312009-11-22 01:19:08 +000037123s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037124t more1
37125s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
37126p
37127n
37128b repl
37129:more1
37130s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37131p
37132g
37133s/.\{148\}//
37134t nl
37135:delim
37136h
cristycd4c5312009-11-22 01:19:08 +000037137s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037138t more2
37139s/["\\]/\\&/g; s/^/"/; s/$/"/
37140p
37141b
37142:more2
37143s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37144p
37145g
37146s/.\{148\}//
37147t delim
37148' <conf$$subs.awk | sed '
37149/^[^""]/{
37150 N
37151 s/\n//
37152}
37153' >>$CONFIG_STATUS || ac_write_fail=1
37154rm -f conf$$subs.awk
37155cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37156_ACAWK
cristyda16f162011-02-19 23:52:17 +000037157cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037158 for (key in S) S_is_set[key] = 1
37159 FS = ""
37160
37161}
37162{
37163 line = $ 0
37164 nfields = split(line, field, "@")
37165 substed = 0
37166 len = length(field[1])
37167 for (i = 2; i < nfields; i++) {
37168 key = field[i]
37169 keylen = length(key)
37170 if (S_is_set[key]) {
37171 value = S[key]
37172 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
37173 len += length(value) + length(field[++i])
37174 substed = 1
37175 } else
37176 len += 1 + keylen
37177 }
37178
37179 print line
37180}
37181
37182_ACAWK
37183_ACEOF
37184cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37185if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
37186 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
37187else
37188 cat
cristyda16f162011-02-19 23:52:17 +000037189fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000037190 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037191_ACEOF
37192
cristy98dddb52010-11-04 00:30:15 +000037193# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
37194# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000037195# trailing colons and then remove the whole line if VPATH becomes empty
37196# (actually we leave an empty line to preserve line numbers).
37197if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000037198 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
37199h
37200s///
37201s/^/:/
37202s/[ ]*$/:/
37203s/:\$(srcdir):/:/g
37204s/:\${srcdir}:/:/g
37205s/:@srcdir@:/:/g
37206s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000037207s/:*$//
cristy98dddb52010-11-04 00:30:15 +000037208x
37209s/\(=[ ]*\).*/\1/
37210G
37211s/\n//
cristy3ed852e2009-09-05 21:47:34 +000037212s/^[^=]*=[ ]*$//
37213}'
37214fi
37215
37216cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37217fi # test -n "$CONFIG_FILES"
37218
37219# Set up the scripts for CONFIG_HEADERS section.
37220# No need to generate them if there are no CONFIG_HEADERS.
37221# This happens for instance with `./config.status Makefile'.
37222if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000037223cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000037224BEGIN {
37225_ACEOF
37226
37227# Transform confdefs.h into an awk script `defines.awk', embedded as
37228# here-document in config.status, that substitutes the proper values into
37229# config.h.in to produce config.h.
37230
37231# Create a delimiter string that does not exist in confdefs.h, to ease
37232# handling of long lines.
37233ac_delim='%!_!# '
37234for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000037235 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
37236 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000037237 break
37238 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037239 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037240 else
37241 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37242 fi
37243done
37244
37245# For the awk script, D is an array of macro values keyed by name,
37246# likewise P contains macro parameters if any. Preserve backslash
37247# newline sequences.
37248
37249ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
37250sed -n '
37251s/.\{148\}/&'"$ac_delim"'/g
37252t rset
37253:rset
37254s/^[ ]*#[ ]*define[ ][ ]*/ /
37255t def
37256d
37257:def
37258s/\\$//
37259t bsnl
37260s/["\\]/\\&/g
37261s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37262D["\1"]=" \3"/p
37263s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
37264d
37265:bsnl
37266s/["\\]/\\&/g
37267s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37268D["\1"]=" \3\\\\\\n"\\/p
37269t cont
37270s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
37271t cont
37272d
37273:cont
37274n
37275s/.\{148\}/&'"$ac_delim"'/g
37276t clear
37277:clear
37278s/\\$//
37279t bsnlc
37280s/["\\]/\\&/g; s/^/"/; s/$/"/p
37281d
37282:bsnlc
37283s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
37284b cont
37285' <confdefs.h | sed '
37286s/'"$ac_delim"'/"\\\
37287"/g' >>$CONFIG_STATUS || ac_write_fail=1
37288
37289cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37290 for (key in D) D_is_set[key] = 1
37291 FS = ""
37292}
37293/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
37294 line = \$ 0
37295 split(line, arg, " ")
37296 if (arg[1] == "#") {
37297 defundef = arg[2]
37298 mac1 = arg[3]
37299 } else {
37300 defundef = substr(arg[1], 2)
37301 mac1 = arg[2]
37302 }
37303 split(mac1, mac2, "(") #)
37304 macro = mac2[1]
37305 prefix = substr(line, 1, index(line, defundef) - 1)
37306 if (D_is_set[macro]) {
37307 # Preserve the white space surrounding the "#".
37308 print prefix "define", macro P[macro] D[macro]
37309 next
37310 } else {
37311 # Replace #undef with comments. This is necessary, for example,
37312 # in the case of _POSIX_SOURCE, which is predefined and required
37313 # on some systems where configure will not decide to define it.
37314 if (defundef == "undef") {
37315 print "/*", prefix defundef, macro, "*/"
37316 next
37317 }
37318 }
37319}
37320{ print }
37321_ACAWK
37322_ACEOF
37323cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000037324 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037325fi # test -n "$CONFIG_HEADERS"
37326
37327
37328eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
37329shift
37330for ac_tag
37331do
37332 case $ac_tag in
37333 :[FHLC]) ac_mode=$ac_tag; continue;;
37334 esac
37335 case $ac_mode$ac_tag in
37336 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000037337 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037338 :[FH]-) ac_tag=-:-;;
37339 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
37340 esac
37341 ac_save_IFS=$IFS
37342 IFS=:
37343 set x $ac_tag
37344 IFS=$ac_save_IFS
37345 shift
37346 ac_file=$1
37347 shift
37348
37349 case $ac_mode in
37350 :L) ac_source=$1;;
37351 :[FH])
37352 ac_file_inputs=
37353 for ac_f
37354 do
37355 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000037356 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000037357 *) # Look for the file first in the build tree, then in the source tree
37358 # (if the path is not absolute). The absolute path cannot be DOS-style,
37359 # because $ac_f cannot contain `:'.
37360 test -f "$ac_f" ||
37361 case $ac_f in
37362 [\\/$]*) false;;
37363 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
37364 esac ||
cristy98dddb52010-11-04 00:30:15 +000037365 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037366 esac
37367 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000037368 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000037369 done
37370
37371 # Let's still pretend it is `configure' which instantiates (i.e., don't
37372 # use $as_me), people would be surprised to read:
37373 # /* config.h. Generated by config.status. */
37374 configure_input='Generated from '`
37375 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
37376 `' by configure.'
37377 if test x"$ac_file" != x-; then
37378 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000037379 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000037380$as_echo "$as_me: creating $ac_file" >&6;}
37381 fi
37382 # Neutralize special characters interpreted by sed in replacement strings.
37383 case $configure_input in #(
37384 *\&* | *\|* | *\\* )
37385 ac_sed_conf_input=`$as_echo "$configure_input" |
37386 sed 's/[\\\\&|]/\\\\&/g'`;; #(
37387 *) ac_sed_conf_input=$configure_input;;
37388 esac
37389
37390 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000037391 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000037392 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000037393 esac
37394 ;;
37395 esac
37396
37397 ac_dir=`$as_dirname -- "$ac_file" ||
37398$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37399 X"$ac_file" : 'X\(//\)[^/]' \| \
37400 X"$ac_file" : 'X\(//\)$' \| \
37401 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
37402$as_echo X"$ac_file" |
37403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37404 s//\1/
37405 q
37406 }
37407 /^X\(\/\/\)[^/].*/{
37408 s//\1/
37409 q
37410 }
37411 /^X\(\/\/\)$/{
37412 s//\1/
37413 q
37414 }
37415 /^X\(\/\).*/{
37416 s//\1/
37417 q
37418 }
37419 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000037420 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000037421 ac_builddir=.
37422
37423case "$ac_dir" in
37424.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
37425*)
37426 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
37427 # A ".." for each directory in $ac_dir_suffix.
37428 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
37429 case $ac_top_builddir_sub in
37430 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
37431 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
37432 esac ;;
37433esac
37434ac_abs_top_builddir=$ac_pwd
37435ac_abs_builddir=$ac_pwd$ac_dir_suffix
37436# for backward compatibility:
37437ac_top_builddir=$ac_top_build_prefix
37438
37439case $srcdir in
37440 .) # We are building in place.
37441 ac_srcdir=.
37442 ac_top_srcdir=$ac_top_builddir_sub
37443 ac_abs_top_srcdir=$ac_pwd ;;
37444 [\\/]* | ?:[\\/]* ) # Absolute name.
37445 ac_srcdir=$srcdir$ac_dir_suffix;
37446 ac_top_srcdir=$srcdir
37447 ac_abs_top_srcdir=$srcdir ;;
37448 *) # Relative name.
37449 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
37450 ac_top_srcdir=$ac_top_build_prefix$srcdir
37451 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
37452esac
37453ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
37454
37455
37456 case $ac_mode in
37457 :F)
37458 #
37459 # CONFIG_FILE
37460 #
37461
37462 case $INSTALL in
37463 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
37464 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
37465 esac
cristy73bd4a52010-10-05 11:24:23 +000037466 ac_MKDIR_P=$MKDIR_P
37467 case $MKDIR_P in
37468 [\\/$]* | ?:[\\/]* ) ;;
37469 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
37470 esac
cristy3ed852e2009-09-05 21:47:34 +000037471_ACEOF
37472
37473cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37474# If the template does not know about datarootdir, expand it.
37475# FIXME: This hack should be removed a few years after 2.60.
37476ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000037477ac_sed_dataroot='
37478/datarootdir/ {
37479 p
37480 q
37481}
37482/@datadir@/p
37483/@docdir@/p
37484/@infodir@/p
37485/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000037486/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000037487case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
37488*datarootdir*) ac_datarootdir_seen=yes;;
37489*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000037490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000037491$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
37492_ACEOF
37493cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37494 ac_datarootdir_hack='
37495 s&@datadir@&$datadir&g
37496 s&@docdir@&$docdir&g
37497 s&@infodir@&$infodir&g
37498 s&@localedir@&$localedir&g
37499 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000037500 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000037501esac
37502_ACEOF
37503
37504# Neutralize VPATH when `$srcdir' = `.'.
37505# Shell code in configure.ac might set extrasub.
37506# FIXME: do we really want to maintain this feature?
37507cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37508ac_sed_extra="$ac_vpsub
37509$extrasub
37510_ACEOF
37511cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37512:t
37513/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
37514s|@configure_input@|$ac_sed_conf_input|;t t
37515s&@top_builddir@&$ac_top_builddir_sub&;t t
37516s&@top_build_prefix@&$ac_top_build_prefix&;t t
37517s&@srcdir@&$ac_srcdir&;t t
37518s&@abs_srcdir@&$ac_abs_srcdir&;t t
37519s&@top_srcdir@&$ac_top_srcdir&;t t
37520s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
37521s&@builddir@&$ac_builddir&;t t
37522s&@abs_builddir@&$ac_abs_builddir&;t t
37523s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
37524s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000037525s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000037526$ac_datarootdir_hack
37527"
cristyda16f162011-02-19 23:52:17 +000037528eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
37529 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037530
37531test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000037532 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
37533 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
37534 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000037535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037536which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000037537$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037538which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000037539
cristyda16f162011-02-19 23:52:17 +000037540 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000037541 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000037542 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
37543 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000037544 esac \
cristy98dddb52010-11-04 00:30:15 +000037545 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037546 ;;
37547 :H)
37548 #
37549 # CONFIG_HEADER
37550 #
37551 if test x"$ac_file" != x-; then
37552 {
37553 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037554 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
37555 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000037556 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037557 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000037558 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000037559$as_echo "$as_me: $ac_file is unchanged" >&6;}
37560 else
37561 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000037562 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000037563 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037564 fi
37565 else
37566 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037567 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000037568 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037569 fi
cristy73bd4a52010-10-05 11:24:23 +000037570# Compute "$ac_file"'s index in $config_headers.
37571_am_arg="$ac_file"
37572_am_stamp_count=1
37573for _am_header in $config_headers :; do
37574 case $_am_header in
37575 $_am_arg | $_am_arg:* )
37576 break ;;
37577 * )
37578 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
37579 esac
37580done
37581echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
37582$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37583 X"$_am_arg" : 'X\(//\)[^/]' \| \
37584 X"$_am_arg" : 'X\(//\)$' \| \
37585 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
37586$as_echo X"$_am_arg" |
37587 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37588 s//\1/
37589 q
37590 }
37591 /^X\(\/\/\)[^/].*/{
37592 s//\1/
37593 q
37594 }
37595 /^X\(\/\/\)$/{
37596 s//\1/
37597 q
37598 }
37599 /^X\(\/\).*/{
37600 s//\1/
37601 q
37602 }
37603 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000037604 ;;
37605
cristy8b350f62009-11-15 23:12:43 +000037606 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000037607$as_echo "$as_me: executing $ac_file commands" >&6;}
37608 ;;
37609 esac
37610
37611
37612 case $ac_file$ac_mode in
cristy01ff9f32012-12-01 18:15:29 +000037613 "MagickCore/magick-baseconfig.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-baseconfig.h`
cristy73bd4a52010-10-05 11:24:23 +000037614ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
37615ac_prefix_conf_PKG=`echo MagickCore`
37616ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
37617ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
37618ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
37619if test ".$ac_prefix_conf_INP" = "."; then
37620 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
37621 case "$ac_file" in
37622 *.h) ac_prefix_conf_INP=$ac_file ;;
37623 *)
37624 esac
37625 test ".$ac_prefix_conf_INP" != "." && break
37626 done
37627fi
37628if test ".$ac_prefix_conf_INP" = "."; then
37629 case "$ac_prefix_conf_OUT" in
37630 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
37631 ;;
37632 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
37633 ;;
37634 *) ac_prefix_conf_INP=config.h
37635 ;;
37636 esac
37637fi
37638if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000037639 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000037640else
37641 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
37642 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
37643 fi fi
37644 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
37645$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
37646 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000037647 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
37648 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
37649 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
37650 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
37651 $as_echo "#endif/" >> conftest.prefix
37652 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
37653 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
37654 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000037655 # now executing _script on _DEF input to create _OUT output file
37656 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
37657 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
37658 echo ' ' >>$tmp/pconfig.h
37659 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
37660
37661 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
37662 echo ' ' >>$tmp/pconfig.h
37663 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
37664 echo "#endif" >>$tmp/pconfig.h
37665 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
37666 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
37667$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
37668 else
37669 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
37670$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37671 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
37672 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
37673 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
37674$as_echo X"$ac_prefix_conf_OUT" |
37675 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37676 s//\1/
37677 q
37678 }
37679 /^X\(\/\/\)[^/].*/{
37680 s//\1/
37681 q
37682 }
37683 /^X\(\/\/\)$/{
37684 s//\1/
37685 q
37686 }
37687 /^X\(\/\).*/{
37688 s//\1/
37689 q
37690 }
37691 s/.*/./; q'`
37692 as_dir="$ac_dir"; as_fn_mkdir_p
37693 rm -f "$ac_prefix_conf_OUT"
37694 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
37695 fi
cristy73bd4a52010-10-05 11:24:23 +000037696 else
cristy98dddb52010-11-04 00:30:15 +000037697 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 +000037698 fi
37699 rm -f conftest.*
37700fi
37701 ;;
37702 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
cristy58d34aa2013-01-24 15:11:54 +000037703 # Older Autoconf quotes --file arguments for eval, but not when files
cristy73bd4a52010-10-05 11:24:23 +000037704 # are listed without --file. Let's play safe and only enable the eval
37705 # if we detect the quoting.
37706 case $CONFIG_FILES in
37707 *\'*) eval set x "$CONFIG_FILES" ;;
37708 *) set x $CONFIG_FILES ;;
37709 esac
37710 shift
37711 for mf
37712 do
37713 # Strip MF so we end up with the name of the file.
37714 mf=`echo "$mf" | sed -e 's/:.*$//'`
37715 # Check whether this is an Automake generated Makefile or not.
cristyc0890a62012-07-19 00:18:20 +000037716 # We used to match only the files named 'Makefile.in', but
cristy73bd4a52010-10-05 11:24:23 +000037717 # some people rename them; so instead we look at the file content.
37718 # Grep'ing the first line is not enough: some people post-process
37719 # each Makefile.in and add a new line on top of each file to say so.
37720 # Grep'ing the whole file is not good either: AIX grep has a line
37721 # limit of 2048, but all sed's we know have understand at least 4000.
37722 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
37723 dirpart=`$as_dirname -- "$mf" ||
37724$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37725 X"$mf" : 'X\(//\)[^/]' \| \
37726 X"$mf" : 'X\(//\)$' \| \
37727 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
37728$as_echo X"$mf" |
37729 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37730 s//\1/
37731 q
37732 }
37733 /^X\(\/\/\)[^/].*/{
37734 s//\1/
37735 q
37736 }
37737 /^X\(\/\/\)$/{
37738 s//\1/
37739 q
37740 }
37741 /^X\(\/\).*/{
37742 s//\1/
37743 q
37744 }
37745 s/.*/./; q'`
37746 else
37747 continue
37748 fi
37749 # Extract the definition of DEPDIR, am__include, and am__quote
cristyc0890a62012-07-19 00:18:20 +000037750 # from the Makefile without running 'make'.
cristy73bd4a52010-10-05 11:24:23 +000037751 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
37752 test -z "$DEPDIR" && continue
37753 am__include=`sed -n 's/^am__include = //p' < "$mf"`
cristybced8142013-05-31 01:23:57 +000037754 test -z "$am__include" && continue
cristy73bd4a52010-10-05 11:24:23 +000037755 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
cristy73bd4a52010-10-05 11:24:23 +000037756 # Find all dependency output files, they are included files with
37757 # $(DEPDIR) in their names. We invoke sed twice because it is the
37758 # simplest approach to changing $(DEPDIR) to its actual value in the
37759 # expansion.
37760 for file in `sed -n "
37761 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
cristyc0890a62012-07-19 00:18:20 +000037762 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
cristy73bd4a52010-10-05 11:24:23 +000037763 # Make sure the directory exists.
37764 test -f "$dirpart/$file" && continue
37765 fdir=`$as_dirname -- "$file" ||
37766$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37767 X"$file" : 'X\(//\)[^/]' \| \
37768 X"$file" : 'X\(//\)$' \| \
37769 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
37770$as_echo X"$file" |
37771 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37772 s//\1/
37773 q
37774 }
37775 /^X\(\/\/\)[^/].*/{
37776 s//\1/
37777 q
37778 }
37779 /^X\(\/\/\)$/{
37780 s//\1/
37781 q
37782 }
37783 /^X\(\/\).*/{
37784 s//\1/
37785 q
37786 }
37787 s/.*/./; q'`
37788 as_dir=$dirpart/$fdir; as_fn_mkdir_p
37789 # echo "creating $dirpart/$file"
37790 echo '# dummy' > "$dirpart/$file"
37791 done
37792 done
37793}
37794 ;;
37795 "libtool":C)
37796
37797 # See if we are running on zsh, and set the options which allow our
37798 # commands through without removal of \ escapes.
37799 if test -n "${ZSH_VERSION+set}" ; then
37800 setopt NO_GLOB_SUBST
37801 fi
37802
37803 cfgfile="${ofile}T"
37804 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
37805 $RM "$cfgfile"
37806
37807 cat <<_LT_EOF >> "$cfgfile"
37808#! $SHELL
37809
37810# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
37811# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
37812# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
37813# NOTE: Changes made to this file will be lost: look at ltmain.sh.
37814#
37815# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy99bd5232011-12-07 14:38:20 +000037816# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
37817# Foundation, Inc.
cristy73bd4a52010-10-05 11:24:23 +000037818# Written by Gordon Matzigkeit, 1996
37819#
37820# This file is part of GNU Libtool.
37821#
37822# GNU Libtool is free software; you can redistribute it and/or
37823# modify it under the terms of the GNU General Public License as
37824# published by the Free Software Foundation; either version 2 of
37825# the License, or (at your option) any later version.
37826#
37827# As a special exception to the GNU General Public License,
37828# if you distribute this file as part of a program or library that
37829# is built using GNU Libtool, you may include this file under the
37830# same distribution terms that you use for the rest of that program.
37831#
37832# GNU Libtool is distributed in the hope that it will be useful,
37833# but WITHOUT ANY WARRANTY; without even the implied warranty of
37834# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
37835# GNU General Public License for more details.
37836#
37837# You should have received a copy of the GNU General Public License
37838# along with GNU Libtool; see the file COPYING. If not, a copy
37839# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
37840# obtained by writing to the Free Software Foundation, Inc.,
37841# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
37842
37843
37844# The names of the tagged configurations supported by this script.
37845available_tags="CXX "
37846
37847# ### BEGIN LIBTOOL CONFIG
37848
37849# A sed program that does not truncate output.
37850SED=$lt_SED
37851
37852# Sed that helps us avoid accidentally triggering echo(1) options like -n.
37853Xsed="\$SED -e 1s/^X//"
37854
37855# A grep program that handles long lines.
37856GREP=$lt_GREP
37857
37858# An ERE matcher.
37859EGREP=$lt_EGREP
37860
37861# A literal string matcher.
37862FGREP=$lt_FGREP
37863
cristy0c60a692010-11-04 01:09:47 +000037864# Shell to use when invoking shell scripts.
37865SHELL=$lt_SHELL
37866
37867# An echo program that protects backslashes.
37868ECHO=$lt_ECHO
37869
cristy73bd4a52010-10-05 11:24:23 +000037870# Which release of libtool.m4 was used?
37871macro_version=$macro_version
37872macro_revision=$macro_revision
37873
37874# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000037875AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000037876
37877# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000037878DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000037879
37880# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000037881OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000037882
37883# Whether or not to build shared libraries.
37884build_libtool_libs=$enable_shared
37885
37886# Whether or not to build static libraries.
37887build_old_libs=$enable_static
37888
37889# What type of objects to build.
37890pic_mode=$pic_mode
37891
37892# Whether or not to optimize for fast installation.
37893fast_install=$enable_fast_install
37894
cristy99bd5232011-12-07 14:38:20 +000037895# The PATH separator for the build system.
37896PATH_SEPARATOR=$lt_PATH_SEPARATOR
37897
cristy73bd4a52010-10-05 11:24:23 +000037898# The host system.
37899host_alias=$host_alias
37900host=$host
37901host_os=$host_os
37902
37903# The build system.
37904build_alias=$build_alias
37905build=$build
37906build_os=$build_os
37907
37908# A BSD- or MS-compatible name lister.
37909NM=$lt_NM
37910
37911# Whether we need soft or hard links.
37912LN_S=$lt_LN_S
37913
37914# What is the maximum length of a command?
37915max_cmd_len=$max_cmd_len
37916
37917# Object file suffix (normally "o").
37918objext=$ac_objext
37919
37920# Executable file suffix (normally "").
37921exeext=$exeext
37922
37923# whether the shell understands "unset".
37924lt_unset=$lt_unset
37925
37926# turn spaces into newlines.
37927SP2NL=$lt_lt_SP2NL
37928
37929# turn newlines into spaces.
37930NL2SP=$lt_lt_NL2SP
37931
cristyda16f162011-02-19 23:52:17 +000037932# convert \$build file names to \$host format.
37933to_host_file_cmd=$lt_cv_to_host_file_cmd
37934
37935# convert \$build files to toolchain format.
37936to_tool_file_cmd=$lt_cv_to_tool_file_cmd
37937
cristy73bd4a52010-10-05 11:24:23 +000037938# Method to check whether dependent libraries are shared objects.
37939deplibs_check_method=$lt_deplibs_check_method
37940
cristyda16f162011-02-19 23:52:17 +000037941# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000037942file_magic_cmd=$lt_file_magic_cmd
37943
cristyda16f162011-02-19 23:52:17 +000037944# How to find potential files when deplibs_check_method = "file_magic".
37945file_magic_glob=$lt_file_magic_glob
37946
37947# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
37948want_nocaseglob=$lt_want_nocaseglob
37949
37950# Command to associate shared and link libraries.
37951sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
37952
cristy73bd4a52010-10-05 11:24:23 +000037953# The archiver.
37954AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000037955
37956# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000037957AR_FLAGS=$lt_AR_FLAGS
37958
cristyda16f162011-02-19 23:52:17 +000037959# How to feed a file listing to the archiver.
37960archiver_list_spec=$lt_archiver_list_spec
37961
cristy73bd4a52010-10-05 11:24:23 +000037962# A symbol stripping program.
37963STRIP=$lt_STRIP
37964
37965# Commands used to install an old-style archive.
37966RANLIB=$lt_RANLIB
37967old_postinstall_cmds=$lt_old_postinstall_cmds
37968old_postuninstall_cmds=$lt_old_postuninstall_cmds
37969
cristy0c60a692010-11-04 01:09:47 +000037970# Whether to use a lock for old archive extraction.
37971lock_old_archive_extraction=$lock_old_archive_extraction
37972
cristy73bd4a52010-10-05 11:24:23 +000037973# A C compiler.
37974LTCC=$lt_CC
37975
37976# LTCC compiler flags.
37977LTCFLAGS=$lt_CFLAGS
37978
37979# Take the output of nm and produce a listing of raw symbols and C names.
37980global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
37981
37982# Transform the output of nm in a proper C declaration.
37983global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
37984
37985# Transform the output of nm in a C name address pair.
37986global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
37987
37988# Transform the output of nm in a C name address pair when lib prefix is needed.
37989global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
37990
cristyda16f162011-02-19 23:52:17 +000037991# Specify filename containing input files for \$NM.
37992nm_file_list_spec=$lt_nm_file_list_spec
37993
37994# The root where to search for dependent libraries,and in which our libraries should be installed.
37995lt_sysroot=$lt_sysroot
37996
cristy73bd4a52010-10-05 11:24:23 +000037997# The name of the directory that contains temporary libtool files.
37998objdir=$objdir
37999
cristy73bd4a52010-10-05 11:24:23 +000038000# Used to examine libraries when file_magic_cmd begins with "file".
38001MAGIC_CMD=$MAGIC_CMD
38002
38003# Must we lock files when doing compilation?
38004need_locks=$lt_need_locks
38005
cristyda16f162011-02-19 23:52:17 +000038006# Manifest tool.
38007MANIFEST_TOOL=$lt_MANIFEST_TOOL
38008
cristy73bd4a52010-10-05 11:24:23 +000038009# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
38010DSYMUTIL=$lt_DSYMUTIL
38011
38012# Tool to change global to local symbols on Mac OS X.
38013NMEDIT=$lt_NMEDIT
38014
38015# Tool to manipulate fat objects and archives on Mac OS X.
38016LIPO=$lt_LIPO
38017
38018# ldd/readelf like tool for Mach-O binaries on Mac OS X.
38019OTOOL=$lt_OTOOL
38020
38021# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
38022OTOOL64=$lt_OTOOL64
38023
38024# Old archive suffix (normally "a").
38025libext=$libext
38026
38027# Shared library suffix (normally ".so").
38028shrext_cmds=$lt_shrext_cmds
38029
38030# The commands to extract the exported symbol list from a shared archive.
38031extract_expsyms_cmds=$lt_extract_expsyms_cmds
38032
38033# Variables whose values should be saved in libtool wrapper scripts and
38034# restored at link time.
38035variables_saved_for_relink=$lt_variables_saved_for_relink
38036
38037# Do we need the "lib" prefix for modules?
38038need_lib_prefix=$need_lib_prefix
38039
38040# Do we need a version for libraries?
38041need_version=$need_version
38042
38043# Library versioning type.
38044version_type=$version_type
38045
38046# Shared library runtime path variable.
38047runpath_var=$runpath_var
38048
38049# Shared library path variable.
38050shlibpath_var=$shlibpath_var
38051
38052# Is shlibpath searched before the hard-coded library search path?
38053shlibpath_overrides_runpath=$shlibpath_overrides_runpath
38054
38055# Format of library name prefix.
38056libname_spec=$lt_libname_spec
38057
38058# List of archive names. First name is the real one, the rest are links.
38059# The last name is the one that the linker finds with -lNAME
38060library_names_spec=$lt_library_names_spec
38061
38062# The coded name of the library, if different from the real name.
38063soname_spec=$lt_soname_spec
38064
cristy0c60a692010-11-04 01:09:47 +000038065# Permission mode override for installation of shared libraries.
38066install_override_mode=$lt_install_override_mode
38067
cristy73bd4a52010-10-05 11:24:23 +000038068# Command to use after installation of a shared archive.
38069postinstall_cmds=$lt_postinstall_cmds
38070
38071# Command to use after uninstallation of a shared archive.
38072postuninstall_cmds=$lt_postuninstall_cmds
38073
38074# Commands used to finish a libtool library installation in a directory.
38075finish_cmds=$lt_finish_cmds
38076
38077# As "finish_cmds", except a single script fragment to be evaled but
38078# not shown.
38079finish_eval=$lt_finish_eval
38080
38081# Whether we should hardcode library paths into libraries.
38082hardcode_into_libs=$hardcode_into_libs
38083
38084# Compile-time system search path for libraries.
38085sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
38086
38087# Run-time system search path for libraries.
38088sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
38089
38090# Whether dlopen is supported.
38091dlopen_support=$enable_dlopen
38092
38093# Whether dlopen of programs is supported.
38094dlopen_self=$enable_dlopen_self
38095
38096# Whether dlopen of statically linked programs is supported.
38097dlopen_self_static=$enable_dlopen_self_static
38098
38099# Commands to strip libraries.
38100old_striplib=$lt_old_striplib
38101striplib=$lt_striplib
38102
38103
38104# The linker used to build libraries.
38105LD=$lt_LD
38106
cristy0c60a692010-11-04 01:09:47 +000038107# How to create reloadable object files.
38108reload_flag=$lt_reload_flag
38109reload_cmds=$lt_reload_cmds
38110
cristy73bd4a52010-10-05 11:24:23 +000038111# Commands used to build an old-style archive.
38112old_archive_cmds=$lt_old_archive_cmds
38113
38114# A language specific compiler.
38115CC=$lt_compiler
38116
38117# Is the compiler the GNU compiler?
38118with_gcc=$GCC
38119
38120# Compiler flag to turn off builtin functions.
38121no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
38122
cristy73bd4a52010-10-05 11:24:23 +000038123# Additional compiler flags for building library objects.
38124pic_flag=$lt_lt_prog_compiler_pic
38125
cristyda16f162011-02-19 23:52:17 +000038126# How to pass a linker flag through the compiler.
38127wl=$lt_lt_prog_compiler_wl
38128
cristy73bd4a52010-10-05 11:24:23 +000038129# Compiler flag to prevent dynamic linking.
38130link_static_flag=$lt_lt_prog_compiler_static
38131
38132# Does compiler simultaneously support -c and -o options?
38133compiler_c_o=$lt_lt_cv_prog_compiler_c_o
38134
38135# Whether or not to add -lc for building shared libraries.
38136build_libtool_need_lc=$archive_cmds_need_lc
38137
38138# Whether or not to disallow shared libs when runtime libs are static.
38139allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
38140
38141# Compiler flag to allow reflexive dlopens.
38142export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
38143
38144# Compiler flag to generate shared objects directly from archives.
38145whole_archive_flag_spec=$lt_whole_archive_flag_spec
38146
38147# Whether the compiler copes with passing no objects directly.
38148compiler_needs_object=$lt_compiler_needs_object
38149
38150# Create an old-style archive from a shared archive.
38151old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
38152
38153# Create a temporary old-style archive to link instead of a shared archive.
38154old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
38155
38156# Commands used to build a shared archive.
38157archive_cmds=$lt_archive_cmds
38158archive_expsym_cmds=$lt_archive_expsym_cmds
38159
38160# Commands used to build a loadable module if different from building
38161# a shared archive.
38162module_cmds=$lt_module_cmds
38163module_expsym_cmds=$lt_module_expsym_cmds
38164
38165# Whether we are building with GNU ld or not.
38166with_gnu_ld=$lt_with_gnu_ld
38167
38168# Flag that allows shared libraries with undefined symbols to be built.
38169allow_undefined_flag=$lt_allow_undefined_flag
38170
38171# Flag that enforces no undefined symbols.
38172no_undefined_flag=$lt_no_undefined_flag
38173
38174# Flag to hardcode \$libdir into a binary during linking.
38175# This must work even if \$libdir does not exist
38176hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
38177
cristy73bd4a52010-10-05 11:24:23 +000038178# Whether we need a single "-rpath" flag with a separated argument.
38179hardcode_libdir_separator=$lt_hardcode_libdir_separator
38180
38181# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38182# DIR into the resulting binary.
38183hardcode_direct=$hardcode_direct
38184
38185# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38186# DIR into the resulting binary and the resulting library dependency is
38187# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38188# library is relocated.
38189hardcode_direct_absolute=$hardcode_direct_absolute
38190
38191# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38192# into the resulting binary.
38193hardcode_minus_L=$hardcode_minus_L
38194
38195# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38196# into the resulting binary.
38197hardcode_shlibpath_var=$hardcode_shlibpath_var
38198
38199# Set to "yes" if building a shared library automatically hardcodes DIR
38200# into the library and all subsequent libraries and executables linked
38201# against it.
38202hardcode_automatic=$hardcode_automatic
38203
38204# Set to yes if linker adds runtime paths of dependent libraries
38205# to runtime path list.
38206inherit_rpath=$inherit_rpath
38207
38208# Whether libtool must link a program against all its dependency libraries.
38209link_all_deplibs=$link_all_deplibs
38210
cristy73bd4a52010-10-05 11:24:23 +000038211# Set to "yes" if exported symbols are required.
38212always_export_symbols=$always_export_symbols
38213
38214# The commands to list exported symbols.
38215export_symbols_cmds=$lt_export_symbols_cmds
38216
38217# Symbols that should not be listed in the preloaded symbols.
38218exclude_expsyms=$lt_exclude_expsyms
38219
38220# Symbols that must always be exported.
38221include_expsyms=$lt_include_expsyms
38222
38223# Commands necessary for linking programs (against libraries) with templates.
38224prelink_cmds=$lt_prelink_cmds
38225
cristyda16f162011-02-19 23:52:17 +000038226# Commands necessary for finishing linking programs.
38227postlink_cmds=$lt_postlink_cmds
38228
cristy73bd4a52010-10-05 11:24:23 +000038229# Specify filename containing input files.
38230file_list_spec=$lt_file_list_spec
38231
38232# How to hardcode a shared library path into an executable.
38233hardcode_action=$hardcode_action
38234
38235# The directories searched by this compiler when creating a shared library.
38236compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
38237
38238# Dependencies to place before and after the objects being linked to
38239# create a shared library.
38240predep_objects=$lt_predep_objects
38241postdep_objects=$lt_postdep_objects
38242predeps=$lt_predeps
38243postdeps=$lt_postdeps
38244
38245# The library search path used internally by the compiler when linking
38246# a shared library.
38247compiler_lib_search_path=$lt_compiler_lib_search_path
38248
38249# ### END LIBTOOL CONFIG
38250
38251_LT_EOF
38252
38253 case $host_os in
38254 aix3*)
38255 cat <<\_LT_EOF >> "$cfgfile"
38256# AIX sometimes has problems with the GCC collect2 program. For some
38257# reason, if we set the COLLECT_NAMES environment variable, the problems
38258# vanish in a puff of smoke.
38259if test "X${COLLECT_NAMES+set}" != Xset; then
38260 COLLECT_NAMES=
38261 export COLLECT_NAMES
38262fi
38263_LT_EOF
38264 ;;
38265 esac
38266
38267
38268ltmain="$ac_aux_dir/ltmain.sh"
38269
38270
38271 # We use sed instead of cat because bash on DJGPP gets confused if
38272 # if finds mixed CR/LF and LF-only lines. Since sed operates in
38273 # text mode, it properly converts lines to CR/LF. This bash problem
38274 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000038275 sed '$q' "$ltmain" >> "$cfgfile" \
38276 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000038277
cristyda16f162011-02-19 23:52:17 +000038278 if test x"$xsi_shell" = xyes; then
38279 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
38280func_dirname ()\
38281{\
38282\ case ${1} in\
38283\ */*) func_dirname_result="${1%/*}${2}" ;;\
38284\ * ) func_dirname_result="${3}" ;;\
38285\ esac\
38286} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
38287 && mv -f "$cfgfile.tmp" "$cfgfile" \
38288 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38289test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038290
38291
cristyda16f162011-02-19 23:52:17 +000038292 sed -e '/^func_basename ()$/,/^} # func_basename /c\
38293func_basename ()\
38294{\
38295\ func_basename_result="${1##*/}"\
38296} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
38297 && mv -f "$cfgfile.tmp" "$cfgfile" \
38298 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38299test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038300
38301
cristyda16f162011-02-19 23:52:17 +000038302 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
38303func_dirname_and_basename ()\
38304{\
38305\ case ${1} in\
38306\ */*) func_dirname_result="${1%/*}${2}" ;;\
38307\ * ) func_dirname_result="${3}" ;;\
38308\ esac\
38309\ func_basename_result="${1##*/}"\
38310} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
38311 && mv -f "$cfgfile.tmp" "$cfgfile" \
38312 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38313test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038314
cristyda16f162011-02-19 23:52:17 +000038315
38316 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
38317func_stripname ()\
38318{\
38319\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
38320\ # positional parameters, so assign one to ordinary parameter first.\
38321\ func_stripname_result=${3}\
38322\ func_stripname_result=${func_stripname_result#"${1}"}\
38323\ func_stripname_result=${func_stripname_result%"${2}"}\
38324} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
38325 && mv -f "$cfgfile.tmp" "$cfgfile" \
38326 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38327test 0 -eq $? || _lt_function_replace_fail=:
38328
38329
38330 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
38331func_split_long_opt ()\
38332{\
38333\ func_split_long_opt_name=${1%%=*}\
38334\ func_split_long_opt_arg=${1#*=}\
38335} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
38336 && mv -f "$cfgfile.tmp" "$cfgfile" \
38337 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38338test 0 -eq $? || _lt_function_replace_fail=:
38339
38340
38341 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
38342func_split_short_opt ()\
38343{\
38344\ func_split_short_opt_arg=${1#??}\
38345\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
38346} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
38347 && mv -f "$cfgfile.tmp" "$cfgfile" \
38348 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38349test 0 -eq $? || _lt_function_replace_fail=:
38350
38351
38352 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
38353func_lo2o ()\
38354{\
38355\ case ${1} in\
38356\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
38357\ *) func_lo2o_result=${1} ;;\
38358\ esac\
38359} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
38360 && mv -f "$cfgfile.tmp" "$cfgfile" \
38361 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38362test 0 -eq $? || _lt_function_replace_fail=:
38363
38364
38365 sed -e '/^func_xform ()$/,/^} # func_xform /c\
38366func_xform ()\
38367{\
38368 func_xform_result=${1%.*}.lo\
38369} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
38370 && mv -f "$cfgfile.tmp" "$cfgfile" \
38371 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38372test 0 -eq $? || _lt_function_replace_fail=:
38373
38374
38375 sed -e '/^func_arith ()$/,/^} # func_arith /c\
38376func_arith ()\
38377{\
38378 func_arith_result=$(( $* ))\
38379} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
38380 && mv -f "$cfgfile.tmp" "$cfgfile" \
38381 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38382test 0 -eq $? || _lt_function_replace_fail=:
38383
38384
38385 sed -e '/^func_len ()$/,/^} # func_len /c\
38386func_len ()\
38387{\
38388 func_len_result=${#1}\
38389} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
38390 && mv -f "$cfgfile.tmp" "$cfgfile" \
38391 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38392test 0 -eq $? || _lt_function_replace_fail=:
38393
38394fi
38395
38396if test x"$lt_shell_append" = xyes; then
38397 sed -e '/^func_append ()$/,/^} # func_append /c\
38398func_append ()\
38399{\
38400 eval "${1}+=\\${2}"\
38401} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
38402 && mv -f "$cfgfile.tmp" "$cfgfile" \
38403 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38404test 0 -eq $? || _lt_function_replace_fail=:
38405
38406
38407 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
38408func_append_quoted ()\
38409{\
38410\ func_quote_for_eval "${2}"\
38411\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
38412} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
38413 && mv -f "$cfgfile.tmp" "$cfgfile" \
38414 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38415test 0 -eq $? || _lt_function_replace_fail=:
38416
38417
38418 # Save a `func_append' function call where possible by direct use of '+='
38419 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
38420 && mv -f "$cfgfile.tmp" "$cfgfile" \
38421 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38422 test 0 -eq $? || _lt_function_replace_fail=:
38423else
38424 # Save a `func_append' function call even when '+=' is not available
38425 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
38426 && mv -f "$cfgfile.tmp" "$cfgfile" \
38427 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38428 test 0 -eq $? || _lt_function_replace_fail=:
38429fi
38430
38431if test x"$_lt_function_replace_fail" = x":"; then
38432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
38433$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
38434fi
38435
38436
38437 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000038438 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
38439 chmod +x "$ofile"
38440
38441
38442 cat <<_LT_EOF >> "$ofile"
38443
38444# ### BEGIN LIBTOOL TAG CONFIG: CXX
38445
38446# The linker used to build libraries.
38447LD=$lt_LD_CXX
38448
cristy0c60a692010-11-04 01:09:47 +000038449# How to create reloadable object files.
38450reload_flag=$lt_reload_flag_CXX
38451reload_cmds=$lt_reload_cmds_CXX
38452
cristy73bd4a52010-10-05 11:24:23 +000038453# Commands used to build an old-style archive.
38454old_archive_cmds=$lt_old_archive_cmds_CXX
38455
38456# A language specific compiler.
38457CC=$lt_compiler_CXX
38458
38459# Is the compiler the GNU compiler?
38460with_gcc=$GCC_CXX
38461
38462# Compiler flag to turn off builtin functions.
38463no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
38464
cristy73bd4a52010-10-05 11:24:23 +000038465# Additional compiler flags for building library objects.
38466pic_flag=$lt_lt_prog_compiler_pic_CXX
38467
cristyda16f162011-02-19 23:52:17 +000038468# How to pass a linker flag through the compiler.
38469wl=$lt_lt_prog_compiler_wl_CXX
38470
cristy73bd4a52010-10-05 11:24:23 +000038471# Compiler flag to prevent dynamic linking.
38472link_static_flag=$lt_lt_prog_compiler_static_CXX
38473
38474# Does compiler simultaneously support -c and -o options?
38475compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
38476
38477# Whether or not to add -lc for building shared libraries.
38478build_libtool_need_lc=$archive_cmds_need_lc_CXX
38479
38480# Whether or not to disallow shared libs when runtime libs are static.
38481allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
38482
38483# Compiler flag to allow reflexive dlopens.
38484export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
38485
38486# Compiler flag to generate shared objects directly from archives.
38487whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
38488
38489# Whether the compiler copes with passing no objects directly.
38490compiler_needs_object=$lt_compiler_needs_object_CXX
38491
38492# Create an old-style archive from a shared archive.
38493old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
38494
38495# Create a temporary old-style archive to link instead of a shared archive.
38496old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
38497
38498# Commands used to build a shared archive.
38499archive_cmds=$lt_archive_cmds_CXX
38500archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
38501
38502# Commands used to build a loadable module if different from building
38503# a shared archive.
38504module_cmds=$lt_module_cmds_CXX
38505module_expsym_cmds=$lt_module_expsym_cmds_CXX
38506
38507# Whether we are building with GNU ld or not.
38508with_gnu_ld=$lt_with_gnu_ld_CXX
38509
38510# Flag that allows shared libraries with undefined symbols to be built.
38511allow_undefined_flag=$lt_allow_undefined_flag_CXX
38512
38513# Flag that enforces no undefined symbols.
38514no_undefined_flag=$lt_no_undefined_flag_CXX
38515
38516# Flag to hardcode \$libdir into a binary during linking.
38517# This must work even if \$libdir does not exist
38518hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
38519
cristy73bd4a52010-10-05 11:24:23 +000038520# Whether we need a single "-rpath" flag with a separated argument.
38521hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
38522
38523# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38524# DIR into the resulting binary.
38525hardcode_direct=$hardcode_direct_CXX
38526
38527# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38528# DIR into the resulting binary and the resulting library dependency is
38529# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38530# library is relocated.
38531hardcode_direct_absolute=$hardcode_direct_absolute_CXX
38532
38533# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38534# into the resulting binary.
38535hardcode_minus_L=$hardcode_minus_L_CXX
38536
38537# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38538# into the resulting binary.
38539hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
38540
38541# Set to "yes" if building a shared library automatically hardcodes DIR
38542# into the library and all subsequent libraries and executables linked
38543# against it.
38544hardcode_automatic=$hardcode_automatic_CXX
38545
38546# Set to yes if linker adds runtime paths of dependent libraries
38547# to runtime path list.
38548inherit_rpath=$inherit_rpath_CXX
38549
38550# Whether libtool must link a program against all its dependency libraries.
38551link_all_deplibs=$link_all_deplibs_CXX
38552
cristy73bd4a52010-10-05 11:24:23 +000038553# Set to "yes" if exported symbols are required.
38554always_export_symbols=$always_export_symbols_CXX
38555
38556# The commands to list exported symbols.
38557export_symbols_cmds=$lt_export_symbols_cmds_CXX
38558
38559# Symbols that should not be listed in the preloaded symbols.
38560exclude_expsyms=$lt_exclude_expsyms_CXX
38561
38562# Symbols that must always be exported.
38563include_expsyms=$lt_include_expsyms_CXX
38564
38565# Commands necessary for linking programs (against libraries) with templates.
38566prelink_cmds=$lt_prelink_cmds_CXX
38567
cristyda16f162011-02-19 23:52:17 +000038568# Commands necessary for finishing linking programs.
38569postlink_cmds=$lt_postlink_cmds_CXX
38570
cristy73bd4a52010-10-05 11:24:23 +000038571# Specify filename containing input files.
38572file_list_spec=$lt_file_list_spec_CXX
38573
38574# How to hardcode a shared library path into an executable.
38575hardcode_action=$hardcode_action_CXX
38576
38577# The directories searched by this compiler when creating a shared library.
38578compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
38579
38580# Dependencies to place before and after the objects being linked to
38581# create a shared library.
38582predep_objects=$lt_predep_objects_CXX
38583postdep_objects=$lt_postdep_objects_CXX
38584predeps=$lt_predeps_CXX
38585postdeps=$lt_postdeps_CXX
38586
38587# The library search path used internally by the compiler when linking
38588# a shared library.
38589compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
38590
38591# ### END LIBTOOL TAG CONFIG: CXX
38592_LT_EOF
38593
38594 ;;
cristy2bd4b6e2012-07-22 15:29:11 +000038595 "magick.sh.in":C) chmod +x magick.sh ;;
cristy4c08aed2011-07-01 19:47:50 +000038596 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
cristy4c08aed2011-07-01 19:47:50 +000038597 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
cristy3ed852e2009-09-05 21:47:34 +000038598 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
38599 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
38600
38601 esac
38602done # for ac_tag
38603
38604
cristy8b350f62009-11-15 23:12:43 +000038605as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000038606_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000038607ac_clean_files=$ac_clean_files_save
38608
38609test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000038610 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038611
38612
38613# configure is writing to config.log, and then calls config.status.
38614# config.status does its own redirection, appending to config.log.
38615# Unfortunately, on DOS this fails, as config.log is still kept open
38616# by configure, so config.status won't be able to write to it; its
38617# output is simply discarded. So we exec the FD to /dev/null,
38618# effectively closing config.log, so it can be properly (re)opened and
38619# appended to by config.status. When coming back to configure, we
38620# need to make the FD available again.
38621if test "$no_create" != yes; then
38622 ac_cs_success=:
38623 ac_config_status_args=
38624 test "$silent" = yes &&
38625 ac_config_status_args="$ac_config_status_args --quiet"
38626 exec 5>/dev/null
38627 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
38628 exec 5>>config.log
38629 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
38630 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000038631 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000038632fi
38633if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000038634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000038635$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
38636fi
38637
38638
cristy9af1cbf2014-12-28 22:03:09 +000038639# ==============================================================================
38640# ImageMagick Configuration
38641# ==============================================================================
38642{ $as_echo "$as_me:${as_lineno-$LINENO}:
38643==============================================================================
cristy3ed852e2009-09-05 21:47:34 +000038644ImageMagick is configured as follows. Please verify that this configuration
38645matches your expectations.
38646
cristy9af1cbf2014-12-28 22:03:09 +000038647 Host system type: $host
38648 Build system type: $build
cristy3ed852e2009-09-05 21:47:34 +000038649
38650 Option Value
cristy9af1cbf2014-12-28 22:03:09 +000038651 ------------------------------------------------------------------------------
38652 Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38653 Static libraries --enable-static=$enable_static $libtool_build_static_libs
38654 Module support --with-modules=$build_modules $build_modules
38655 GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38656 Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38657 High Dynamic Range Imagery
38658 --enable-hdri=$enable_hdri $enable_hdri
cristy3ed852e2009-09-05 21:47:34 +000038659
cristy9af1cbf2014-12-28 22:03:09 +000038660 Install documentation: $wantdocs
cristy3ed852e2009-09-05 21:47:34 +000038661
cristy9af1cbf2014-12-28 22:03:09 +000038662 Delegate Library Configuration:
38663 BZLIB --with-bzlib=$with_bzlib $have_bzlib
38664 Autotrace --with-autotrace=$with_autotrace $have_autotrace
38665 DJVU --with-djvu=$with_djvu $have_djvu
38666 DPS --with-dps=$with_dps $have_dps
38667 FFTW --with-fftw=$with_fftw $have_fftw
38668 FlashPIX --with-fpx=$with_fpx $have_fpx
cristybc8ef1c2015-06-06 14:32:21 +000038669 FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
cristy9af1cbf2014-12-28 22:03:09 +000038670 FreeType --with-freetype=$with_freetype $have_freetype
38671 Ghostscript lib --with-gslib=$with_gslib $have_gslib
38672 Graphviz --with-gvc=$with_gvc $have_gvc
38673 JBIG --with-jbig=$with_jbig $have_jbig
38674 JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
cristyd6ac47f2015-06-06 13:46:55 +000038675 LCMS --with-lcms=$with_lcms $have_lcms
cristy86e31f32015-06-06 15:47:32 +000038676 LIBJPEG2 --with-openjp2=$with_openjp2 $have_openjp2
cristy9af1cbf2014-12-28 22:03:09 +000038677 LQR --with-lqr=$with_lqr $have_lqr
38678 LTDL --with-ltdl=$with_ltdl $have_ltdl
38679 LZMA --with-lzma=$with_lzma $have_lzma
38680 Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38681 OpenEXR --with-openexr=$with_openexr $have_openexr
38682 PANGO --with-pango=$with_pango $have_pango
38683 PERL --with-perl=$with_perl $have_perl
38684 PNG --with-png=$with_png $have_png
38685 RSVG --with-rsvg=$with_rsvg $have_rsvg
38686 TIFF --with-tiff=$with_tiff $have_tiff
38687 WEBP --with-webp=$with_webp $have_webp
38688 WMF --with-wmf=$with_wmf $have_wmf
38689 X11 --with-x=$with_x $have_x
38690 XML --with-xml=$with_xml $have_xml
38691 ZLIB --with-zlib=$with_zlib $have_zlib
cristy5a3dc992014-12-05 19:50:04 +000038692
cristy9af1cbf2014-12-28 22:03:09 +000038693 Delegate Program Configuration:
38694 GhostPCL None $PCLDelegate ($PCLVersion)
38695 GhostXPS None $XPSDelegate ($XPSVersion)
38696 Ghostscript None $PSDelegate ($GSVersion)
cristy5a3dc992014-12-05 19:50:04 +000038697
cristy9af1cbf2014-12-28 22:03:09 +000038698 Font Configuration:
38699 Apple fonts --with-apple-font-dir=$with_apple_font_dir $result_apple_font_dir
38700 Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
38701 Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38702 Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038703
cristy9af1cbf2014-12-28 22:03:09 +000038704 X11 Configuration:
38705 X_CFLAGS = $X_CFLAGS
38706 X_PRE_LIBS = $X_PRE_LIBS
38707 X_LIBS = $X_LIBS
38708 X_EXTRA_LIBS = $X_EXTRA_LIBS
38709
38710 Options used to compile and link:
38711 PREFIX = $PREFIX_DIR
38712 EXEC-PREFIX = $EXEC_PREFIX_DIR
38713 VERSION = $PACKAGE_VERSION
38714 CC = $CC
38715 CFLAGS = $CFLAGS
38716 CPPFLAGS = $CPPFLAGS
38717 PCFLAGS = $PCFLAGS
38718 DEFS = $DEFS
38719 LDFLAGS = $LDFLAGS
38720 LIBS = $LIBS
38721 CXX = $CXX
38722 CXXFLAGS = $CXXFLAGS
38723 FEATURES = $MAGICK_FEATURES
38724 DELEGATES = $MAGICK_DELEGATES
38725==============================================================================
cristy3ed852e2009-09-05 21:47:34 +000038726" >&5
cristy9af1cbf2014-12-28 22:03:09 +000038727$as_echo "$as_me:
38728==============================================================================
cristy3ed852e2009-09-05 21:47:34 +000038729ImageMagick is configured as follows. Please verify that this configuration
38730matches your expectations.
38731
cristy9af1cbf2014-12-28 22:03:09 +000038732 Host system type: $host
38733 Build system type: $build
cristy3ed852e2009-09-05 21:47:34 +000038734
38735 Option Value
cristy9af1cbf2014-12-28 22:03:09 +000038736 ------------------------------------------------------------------------------
38737 Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38738 Static libraries --enable-static=$enable_static $libtool_build_static_libs
38739 Module support --with-modules=$build_modules $build_modules
38740 GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38741 Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38742 High Dynamic Range Imagery
38743 --enable-hdri=$enable_hdri $enable_hdri
cristy3ed852e2009-09-05 21:47:34 +000038744
cristy9af1cbf2014-12-28 22:03:09 +000038745 Install documentation: $wantdocs
cristy3ed852e2009-09-05 21:47:34 +000038746
cristy9af1cbf2014-12-28 22:03:09 +000038747 Delegate Library Configuration:
38748 BZLIB --with-bzlib=$with_bzlib $have_bzlib
38749 Autotrace --with-autotrace=$with_autotrace $have_autotrace
38750 DJVU --with-djvu=$with_djvu $have_djvu
38751 DPS --with-dps=$with_dps $have_dps
38752 FFTW --with-fftw=$with_fftw $have_fftw
38753 FlashPIX --with-fpx=$with_fpx $have_fpx
cristybc8ef1c2015-06-06 14:32:21 +000038754 FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
cristy9af1cbf2014-12-28 22:03:09 +000038755 FreeType --with-freetype=$with_freetype $have_freetype
38756 Ghostscript lib --with-gslib=$with_gslib $have_gslib
38757 Graphviz --with-gvc=$with_gvc $have_gvc
38758 JBIG --with-jbig=$with_jbig $have_jbig
38759 JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
cristyd6ac47f2015-06-06 13:46:55 +000038760 LCMS --with-lcms=$with_lcms $have_lcms
cristy86e31f32015-06-06 15:47:32 +000038761 LIBJPEG2 --with-openjp2=$with_openjp2 $have_openjp2
cristy9af1cbf2014-12-28 22:03:09 +000038762 LQR --with-lqr=$with_lqr $have_lqr
38763 LTDL --with-ltdl=$with_ltdl $have_ltdl
38764 LZMA --with-lzma=$with_lzma $have_lzma
38765 Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38766 OpenEXR --with-openexr=$with_openexr $have_openexr
38767 PANGO --with-pango=$with_pango $have_pango
38768 PERL --with-perl=$with_perl $have_perl
38769 PNG --with-png=$with_png $have_png
38770 RSVG --with-rsvg=$with_rsvg $have_rsvg
38771 TIFF --with-tiff=$with_tiff $have_tiff
38772 WEBP --with-webp=$with_webp $have_webp
38773 WMF --with-wmf=$with_wmf $have_wmf
38774 X11 --with-x=$with_x $have_x
38775 XML --with-xml=$with_xml $have_xml
38776 ZLIB --with-zlib=$with_zlib $have_zlib
cristy5a3dc992014-12-05 19:50:04 +000038777
cristy9af1cbf2014-12-28 22:03:09 +000038778 Delegate Program Configuration:
38779 GhostPCL None $PCLDelegate ($PCLVersion)
38780 GhostXPS None $XPSDelegate ($XPSVersion)
38781 Ghostscript None $PSDelegate ($GSVersion)
cristy5a3dc992014-12-05 19:50:04 +000038782
cristy9af1cbf2014-12-28 22:03:09 +000038783 Font Configuration:
38784 Apple fonts --with-apple-font-dir=$with_apple_font_dir $result_apple_font_dir
38785 Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
38786 Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38787 Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038788
cristy9af1cbf2014-12-28 22:03:09 +000038789 X11 Configuration:
38790 X_CFLAGS = $X_CFLAGS
38791 X_PRE_LIBS = $X_PRE_LIBS
38792 X_LIBS = $X_LIBS
38793 X_EXTRA_LIBS = $X_EXTRA_LIBS
38794
38795 Options used to compile and link:
38796 PREFIX = $PREFIX_DIR
38797 EXEC-PREFIX = $EXEC_PREFIX_DIR
38798 VERSION = $PACKAGE_VERSION
38799 CC = $CC
38800 CFLAGS = $CFLAGS
38801 CPPFLAGS = $CPPFLAGS
38802 PCFLAGS = $PCFLAGS
38803 DEFS = $DEFS
38804 LDFLAGS = $LDFLAGS
38805 LIBS = $LIBS
38806 CXX = $CXX
38807 CXXFLAGS = $CXXFLAGS
38808 FEATURES = $MAGICK_FEATURES
38809 DELEGATES = $MAGICK_DELEGATES
38810==============================================================================
38811" >&6;}