blob: 3ab368d082c98c7ea80433b8ecc8f9bbcf118481 [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
cristy3ed852e2009-09-05 21:47:34 +0000737AutotraceDecodeDelegate
cristy670aa3c2011-11-03 00:54:00 +0000738SHAREARCH_PATH
cristy54378032012-12-04 15:52:20 +0000739SHAREARCH_RELATIVE_PATH
740SHAREARCH_DIRNAME
741SHAREARCH_BASEDIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000742SHARE_PATH
cristy4f820712011-04-01 12:35:43 +0000743CONFIGURE_PATH
cristydd17feb2014-03-05 02:06:32 +0000744INSTALL_DOC_FALSE
745INSTALL_DOC_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000746DOCUMENTATION_PATH
747FILTER_PATH
cristy01ff9f32012-12-01 18:15:29 +0000748FILTER_DIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000749CODER_PATH
cristy01ff9f32012-12-01 18:15:29 +0000750CODER_DIRNAME
751MODULES_PATH
752MODULES_RELATIVE_PATH
753MODULES_DIRNAME
754MODULES_BASEDIRNAME
cristy8d0ff762013-03-10 20:33:28 +0000755LIB_BIN_DIR_PATH
756LIB_BIN_DIR_RELATIVE_PATH
757LIB_BIN_DIR
758LIB_BIN_BASEDIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000759LIBRARY_PATH
760EXECUTABLE_PATH
cristye52f12f2012-12-31 15:32:36 +0000761INCLUDEARCH_PATH
cristy2a11bef2011-10-28 18:33:11 +0000762INCLUDE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000763PERLMAINCC
764XML_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000765XML_DELEGATE_FALSE
766XML_DELEGATE_TRUE
cristy81beccd2011-10-03 18:17:24 +0000767xml2_config
cristy03f7cf92011-12-15 01:40:41 +0000768WMF_LIBS_DEPS
cristy3ed852e2009-09-05 21:47:34 +0000769WMF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000770WMF_DELEGATE_FALSE
771WMF_DELEGATE_TRUE
cristyb1860752011-03-14 00:27:46 +0000772WEBP_LIBS
773WEBP_DELEGATE_FALSE
774WEBP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000775TIFF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000776TIFF_DELEGATE_FALSE
777TIFF_DELEGATE_TRUE
778CAIRO_DELEGATE_FALSE
779CAIRO_DELEGATE_TRUE
780RSVG_DELEGATE_FALSE
781RSVG_DELEGATE_TRUE
782CAIRO_SVG_LIBS
783CAIRO_SVG_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000784RSVG_LIBS
785RSVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +0000786PNG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000787PNG_DELEGATE_FALSE
788PNG_DELEGATE_TRUE
cristya054b762012-03-26 23:16:00 +0000789PANGOCAIRO_DELEGATE_FALSE
790PANGOCAIRO_DELEGATE_TRUE
cristy41cbe8a2011-10-27 01:35:18 +0000791PANGO_DELEGATE_FALSE
792PANGO_DELEGATE_TRUE
793PANGO_LIBS
794PANGO_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000795OPENEXR_DELEGATE_FALSE
796OPENEXR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000797OPENEXR_LIBS
798OPENEXR_CFLAGS
cristyfbb0ef02010-12-19 02:32:11 +0000799LZMA_DELEGATE_FALSE
800LZMA_DELEGATE_TRUE
cristyb94e5002011-11-14 13:20:10 +0000801LZMA_LIBS
802LZMA_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000803LQR_DELEGATE_FALSE
804LQR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000805LQR_LIBS
806LQR_CFLAGS
cristy99db3872014-01-01 15:11:34 +0000807LIBOPENJP2_DELEGATE_FALSE
808LIBOPENJP2_DELEGATE_TRUE
809LIBOPENJP2_LIBS
810LIBOPENJP2_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000811LCMS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000812LCMS_DELEGATE_FALSE
813LCMS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000814JPEG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000815JPEG_DELEGATE_FALSE
816JPEG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000817JBIG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000818JBIG_DELEGATE_FALSE
819JBIG_DELEGATE_TRUE
820GVC_DELEGATE_FALSE
821GVC_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000822GVC_LIBS
823GVC_CFLAGS
824GS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000825GS_DELEGATE_FALSE
826GS_DELEGATE_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000827FREETYPE_DELEGATE_FALSE
828FREETYPE_DELEGATE_TRUE
cristy03f187e2013-01-24 00:22:19 +0000829FREETYPE_LIBS
830FREETYPE_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000831FONTCONFIG_DELEGATE_FALSE
832FONTCONFIG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000833FONTCONFIG_LIBS
834FONTCONFIG_CFLAGS
cristy853d9902014-08-21 18:50:43 +0000835DJVU_LIBS
836DJVU_DELEGATE_FALSE
837DJVU_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000838FPX_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000839FPX_DELEGATE_FALSE
840FPX_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000841FFTW_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000842FFTW_DELEGATE_FALSE
843FFTW_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000844DPS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000845DPS_DELEGATE_FALSE
846DPS_DELEGATE_TRUE
847AUTOTRACE_DELEGATE_FALSE
848AUTOTRACE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000849AUTOTRACE_LIBS
850AUTOTRACE_CFLAGS
851LIB_DL
cristy5eef09f2012-10-16 12:08:28 +0000852WITH_LTDL_FALSE
853WITH_LTDL_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000854ZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000855ZLIB_DELEGATE_FALSE
856ZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000857XEXT_LIBS
858X11_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000859X11_DELEGATE_FALSE
860X11_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000861X_EXTRA_LIBS
862X_LIBS
863X_PRE_LIBS
864X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000865XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000866BZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000867BZLIB_DELEGATE_FALSE
868BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000869CCMALLOCDelegate
870UMEM_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000871HasUMEM_FALSE
872HasUMEM_TRUE
cristy3b0097d2014-11-04 15:34:47 +0000873JEMALLOC_LIBS
874HasJEMALLOC_FALSE
875HasJEMALLOC_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000876GOMP_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000877WITH_MAGICK_PLUS_PLUS_FALSE
878WITH_MAGICK_PLUS_PLUS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000879OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000880MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000881POW_LIB
882LIBOBJS
cristy6d5e20f2011-04-25 13:48:54 +0000883UINTPTR_F
cristy3ed852e2009-09-05 21:47:34 +0000884UINTPTR_T
cristy6d5e20f2011-04-25 13:48:54 +0000885UINTMAX_F
cristy3ed852e2009-09-05 21:47:34 +0000886UINTMAX_T
cristy6d5e20f2011-04-25 13:48:54 +0000887UINT64_F
cristy3ed852e2009-09-05 21:47:34 +0000888UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000889INT64_F
cristy3ed852e2009-09-05 21:47:34 +0000890INT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000891UINT32_F
cristy3ed852e2009-09-05 21:47:34 +0000892UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +0000893INT32_F
cristy3ed852e2009-09-05 21:47:34 +0000894INT32_T
895UINT16_T
896INT16_T
897UINT8_T
898INT8_T
899LIBRARY_EXTRA_CPPFLAGS
900MODULE_EXTRA_CPPFLAGS
901LIBSTDCLDFLAGS
902PERL_MAKE_OPTIONS
cristy3a75f062012-09-08 23:29:40 +0000903MAGICK_LT_RELEASE_OPTS
cristy7a26abd2012-12-03 00:18:59 +0000904MAGICK_ABI_SUFFIX
cristy3ed852e2009-09-05 21:47:34 +0000905QUANTUM_DEPTH
cristy71d8c202012-03-20 17:05:01 +0000906LEGACY_SUPPORT_FALSE
907LEGACY_SUPPORT_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000908MAINT
909MAINTAINER_MODE_FALSE
910MAINTAINER_MODE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000911MAGICK_HDRI
cristy73bd4a52010-10-05 11:24:23 +0000912WITH_MODULES_FALSE
913WITH_MODULES_TRUE
914WITH_SHARED_LIBS_FALSE
915WITH_SHARED_LIBS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000916LIBTOOL_DEPS
cristy73bd4a52010-10-05 11:24:23 +0000917CXXCPP
918OTOOL64
919OTOOL
920LIPO
921NMEDIT
922DSYMUTIL
cristyda16f162011-02-19 23:52:17 +0000923MANIFEST_TOOL
cristy73bd4a52010-10-05 11:24:23 +0000924RANLIB
cristyda16f162011-02-19 23:52:17 +0000925ac_ct_AR
cristy73bd4a52010-10-05 11:24:23 +0000926AR
927NM
928ac_ct_DUMPBIN
929DUMPBIN
930LIBTOOL
931OBJDUMP
932DLLTOOL
933AS
cristy3ed852e2009-09-05 21:47:34 +0000934LFS_CPPFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000935CL_LIBS
cristy736173a2009-09-20 21:18:22 +0000936CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000937OPENMP_CFLAGS
cristy1ae5c992013-07-30 14:55:07 +0000938THREAD_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000939PTHREAD_CFLAGS
940PTHREAD_LIBS
941PTHREAD_CC
942ax_pthread_config
cristy2ec87cc2013-02-18 17:46:50 +0000943pkgconfigdir
cristy670aa3c2011-11-03 00:54:00 +0000944SHAREARCH_DIR
945INCLUDEARCH_DIR
cristy3ed852e2009-09-05 21:47:34 +0000946WinPathScript
cristy73bd4a52010-10-05 11:24:23 +0000947USING_CL_FALSE
948USING_CL_TRUE
949CYGWIN_BUILD_FALSE
950CYGWIN_BUILD_TRUE
951WIN32_NATIVE_BUILD_FALSE
952WIN32_NATIVE_BUILD_TRUE
953WINGDI32_DELEGATE_FALSE
954WINGDI32_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000955GDI32_LIBS
cristy9b86f202012-11-28 21:55:35 +0000956HAVE_LD_VERSION_SCRIPT_FALSE
957HAVE_LD_VERSION_SCRIPT_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000958PKG_CONFIG
cristya0459972013-11-03 18:09:35 +0000959PRTDIAG
cristy3ed852e2009-09-05 21:47:34 +0000960LN_S
cristy3ed852e2009-09-05 21:47:34 +0000961LD
cristy73bd4a52010-10-05 11:24:23 +0000962FGREP
963SED
964am__fastdepCXX_FALSE
965am__fastdepCXX_TRUE
966CXXDEPMODE
cristy95646052009-11-28 23:05:30 +0000967ac_ct_CXX
968CXXFLAGS
969CXX
cristya0b81c32010-01-22 02:54:33 +0000970EGREP
971GREP
972CPP
cristy73bd4a52010-10-05 11:24:23 +0000973am__fastdepCC_FALSE
974am__fastdepCC_TRUE
975CCDEPMODE
cristy7247bba2012-02-05 16:37:27 +0000976am__nodep
cristy73bd4a52010-10-05 11:24:23 +0000977AMDEPBACKSLASH
978AMDEP_FALSE
979AMDEP_TRUE
980am__quote
981am__include
982DEPDIR
cristy3ed852e2009-09-05 21:47:34 +0000983OBJEXT
984EXEEXT
985ac_ct_CC
986CPPFLAGS
987LDFLAGS
988CFLAGS
989CC
990DIRSEP
991MAGICK_FILTER_MODULE_PATH
992MAGICK_CONFIGURE_BUILD_PATH
993MAGICK_CONFIGURE_SRC_PATH
994MAGICK_CODER_MODULE_PATH
995MAN_DIR
996INFO_DIR
997PERSISTINCLUDE_DIR
998INCLUDE_DIR
999LIB_DIR
1000LOCALSTATE_DIR
1001SHAREDSTATE_DIR
1002SYSCONF_DIR
cristyd55889c2011-03-27 00:50:24 +00001003DOC_DIR
cristy3ed852e2009-09-05 21:47:34 +00001004DATA_DIR
1005LIBEXEC_DIR
1006SBIN_DIR
1007BIN_DIR
1008EXEC_PREFIX_DIR
1009PREFIX_DIR
1010CONFIG_STATUS_DEPENDENCIES
cristy5ed9c6e2013-07-14 21:20:31 +00001011MAGICKPP_LIB_VERSION_TEXT
1012MAGICKPP_LIB_VERSION
cristy3ed852e2009-09-05 21:47:34 +00001013MAGICK_LIB_VERSION_NUMBER
1014MAGICK_LIB_VERSION_TEXT
1015MAGICK_LIB_VERSION
cristy73bd4a52010-10-05 11:24:23 +00001016AM_BACKSLASH
1017AM_DEFAULT_VERBOSITY
cristyc3fb77b2012-02-06 01:49:41 +00001018AM_DEFAULT_V
1019AM_V
cristy73bd4a52010-10-05 11:24:23 +00001020am__untar
1021am__tar
1022AMTAR
1023am__leading_dot
1024SET_MAKE
1025AWK
1026mkdir_p
1027MKDIR_P
1028INSTALL_STRIP_PROGRAM
1029STRIP
1030install_sh
1031MAKEINFO
1032AUTOHEADER
1033AUTOMAKE
1034AUTOCONF
1035ACLOCAL
1036VERSION
1037PACKAGE
1038CYGPATH_W
1039am__isrc
1040INSTALL_DATA
1041INSTALL_SCRIPT
1042INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +00001043PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +00001044PACKAGE_RELEASE_DATE
1045PACKAGE_LIB_VERSION_NUMBER
1046PACKAGE_LIB_VERSION
1047PACKAGE_CHANGE_DATE
1048PACKAGE_RELEASE
cristy878c2f12011-08-19 00:25:19 +00001049PACKAGE_PERL_VERSION
cristy5ed9c6e2013-07-14 21:20:31 +00001050MAGICKPP_LIBRARY_VERSION_INFO
1051MAGICKPP_LIBRARY_CURRENT_MIN
1052MAGICKPP_LIBRARY_AGE
1053MAGICKPP_LIBRARY_REVISION
1054MAGICKPP_LIBRARY_CURRENT
cristybab87c32010-02-09 20:54:22 +00001055MAGICK_LIBRARY_VERSION_INFO
1056MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +00001057MAGICK_LIBRARY_AGE
1058MAGICK_LIBRARY_REVISION
1059MAGICK_LIBRARY_CURRENT
cristy37442762013-02-10 21:07:23 +00001060MAGICK_SVN_REVISION
1061MAGICK_VERSION
1062MAGICK_PATCHLEVEL_VERSION
1063MAGICK_MICRO_VERSION
1064MAGICK_MINOR_VERSION
1065MAGICK_MAJOR_VERSION
cristy3225a072010-04-17 01:47:28 +00001066MAGICK_TARGET_OS
1067MAGICK_TARGET_VENDOR
1068MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +00001069target_os
1070target_vendor
1071target_cpu
1072target
1073host_os
1074host_vendor
1075host_cpu
1076host
1077build_os
1078build_vendor
1079build_cpu
1080build
1081CONFIGURE_ARGS
1082DISTCHECK_CONFIG_FLAGS
1083target_alias
1084host_alias
1085build_alias
1086LIBS
1087ECHO_T
1088ECHO_N
1089ECHO_C
1090DEFS
1091mandir
1092localedir
1093libdir
1094psdir
1095pdfdir
1096dvidir
1097htmldir
1098infodir
1099docdir
1100oldincludedir
1101includedir
1102localstatedir
1103sharedstatedir
1104sysconfdir
1105datadir
1106datarootdir
1107libexecdir
1108sbindir
1109bindir
1110program_transform_name
1111prefix
1112exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001113PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001114PACKAGE_BUGREPORT
1115PACKAGE_STRING
1116PACKAGE_VERSION
1117PACKAGE_TARNAME
1118PACKAGE_NAME
1119PATH_SEPARATOR
1120SHELL'
1121ac_subst_files=''
1122ac_user_opts='
1123enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001124enable_silent_rules
1125enable_dependency_tracking
1126with_gnu_ld
1127with_dmalloc
cristya0459972013-11-03 18:09:35 +00001128with_gcc_arch
cristy9b86f202012-11-28 21:55:35 +00001129enable_ld_version_script
cristy3ed852e2009-09-05 21:47:34 +00001130enable_bounds_checking
1131enable_osx_universal_binary
cristy670aa3c2011-11-03 00:54:00 +00001132with_includearch_dir
1133with_sharearch_dir
cristy2ec87cc2013-02-18 17:46:50 +00001134with_pkgconfigdir
cristy3ed852e2009-09-05 21:47:34 +00001135with_threads
1136enable_openmp
cristy73bd4a52010-10-05 11:24:23 +00001137enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001138enable_largefile
cristy73bd4a52010-10-05 11:24:23 +00001139enable_shared
1140enable_static
1141with_pic
1142enable_fast_install
cristyda16f162011-02-19 23:52:17 +00001143with_sysroot
cristy73bd4a52010-10-05 11:24:23 +00001144enable_libtool_lock
cristy3ed852e2009-09-05 21:47:34 +00001145with_modules
1146enable_delegate_build
1147enable_deprecated
1148enable_installed
1149enable_cipher
cristy6e3607c2011-09-13 13:59:17 +00001150enable_zero_configuration
cristy3ed852e2009-09-05 21:47:34 +00001151enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001152enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001153enable_maintainer_mode
cristy944e51f2013-04-16 18:45:02 +00001154enable_hugepages
cristy3ed852e2009-09-05 21:47:34 +00001155enable_ccmalloc
1156enable_efence
1157enable_prof
1158enable_gprof
1159enable_gcov
1160with_method_prefix
cristy71d8c202012-03-20 17:05:01 +00001161enable_legacy_support
cristy3ed852e2009-09-05 21:47:34 +00001162with_quantum_depth
1163with_cache
1164with_frozenpaths
1165with_magick_plus_plus
cristy3a75f062012-09-08 23:29:40 +00001166with_package_release_name
cristy3ed852e2009-09-05 21:47:34 +00001167with_perl
1168with_perl_options
cristy3b0097d2014-11-04 15:34:47 +00001169with_jemalloc
cristy3ed852e2009-09-05 21:47:34 +00001170with_umem
1171with_libstdc
1172with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001173with_x
cristy3ed852e2009-09-05 21:47:34 +00001174with_zlib
cristy5a3dc992014-12-05 19:50:04 +00001175with_apple_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001176with_autotrace
1177with_dps
cristy430a7312010-01-21 20:44:04 +00001178with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001179with_fftw
1180with_fpx
cristy853d9902014-08-21 18:50:43 +00001181with_djvu
cristy3ed852e2009-09-05 21:47:34 +00001182with_fontconfig
1183with_freetype
1184with_gslib
1185with_fontpath
1186with_gs_font_dir
1187with_gvc
1188with_jbig
1189with_jpeg
cristy3ed852e2009-09-05 21:47:34 +00001190with_lcms
cristy71203402010-06-18 13:12:03 +00001191with_lcms2
cristy99db3872014-01-01 15:11:34 +00001192with_openjp2
cristy3ed852e2009-09-05 21:47:34 +00001193with_lqr
cristyfbb0ef02010-12-19 02:32:11 +00001194with_lzma
cristy3ed852e2009-09-05 21:47:34 +00001195with_openexr
cristy41cbe8a2011-10-27 01:35:18 +00001196with_pango
cristy3ed852e2009-09-05 21:47:34 +00001197with_png
1198with_rsvg
1199with_tiff
cristyb1860752011-03-14 00:27:46 +00001200with_webp
cristy3ed852e2009-09-05 21:47:34 +00001201with_windows_font_dir
1202with_wmf
1203with_xml
cristydd17feb2014-03-05 02:06:32 +00001204enable_docs
cristy3ed852e2009-09-05 21:47:34 +00001205'
1206 ac_precious_vars='build_alias
1207host_alias
1208target_alias
1209CC
1210CFLAGS
1211LDFLAGS
1212LIBS
1213CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001214CPP
cristy3ed852e2009-09-05 21:47:34 +00001215CXX
1216CXXFLAGS
1217CCC
cristy73bd4a52010-10-05 11:24:23 +00001218PKG_CONFIG
1219CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001220XMKMF
cristy73bd4a52010-10-05 11:24:23 +00001221AUTOTRACE_CFLAGS
1222AUTOTRACE_LIBS
1223FONTCONFIG_CFLAGS
1224FONTCONFIG_LIBS
cristy03f187e2013-01-24 00:22:19 +00001225FREETYPE_CFLAGS
1226FREETYPE_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001227GVC_CFLAGS
1228GVC_LIBS
cristy99db3872014-01-01 15:11:34 +00001229LIBOPENJP2_CFLAGS
1230LIBOPENJP2_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001231LQR_CFLAGS
1232LQR_LIBS
cristyb94e5002011-11-14 13:20:10 +00001233LZMA_CFLAGS
1234LZMA_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001235OPENEXR_CFLAGS
1236OPENEXR_LIBS
cristy41cbe8a2011-10-27 01:35:18 +00001237PANGO_CFLAGS
1238PANGO_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001239RSVG_CFLAGS
1240RSVG_LIBS
1241CAIRO_SVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +00001242CAIRO_SVG_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001243
1244
1245# Initialize some variables set by options.
1246ac_init_help=
1247ac_init_version=false
1248ac_unrecognized_opts=
1249ac_unrecognized_sep=
1250# The variables have the same names as the options, with
1251# dashes changed to underlines.
1252cache_file=/dev/null
1253exec_prefix=NONE
1254no_create=
1255no_recursion=
1256prefix=NONE
1257program_prefix=NONE
1258program_suffix=NONE
1259program_transform_name=s,x,x,
1260silent=
1261site=
1262srcdir=
1263verbose=
1264x_includes=NONE
1265x_libraries=NONE
1266
1267# Installation directory options.
1268# These are left unexpanded so users can "make install exec_prefix=/foo"
1269# and all the variables that are supposed to be based on exec_prefix
1270# by default will actually change.
1271# Use braces instead of parens because sh, perl, etc. also accept them.
1272# (The list follows the same order as the GNU Coding Standards.)
1273bindir='${exec_prefix}/bin'
1274sbindir='${exec_prefix}/sbin'
1275libexecdir='${exec_prefix}/libexec'
1276datarootdir='${prefix}/share'
1277datadir='${datarootdir}'
1278sysconfdir='${prefix}/etc'
1279sharedstatedir='${prefix}/com'
1280localstatedir='${prefix}/var'
1281includedir='${prefix}/include'
1282oldincludedir='/usr/include'
1283docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1284infodir='${datarootdir}/info'
1285htmldir='${docdir}'
1286dvidir='${docdir}'
1287pdfdir='${docdir}'
1288psdir='${docdir}'
1289libdir='${exec_prefix}/lib'
1290localedir='${datarootdir}/locale'
1291mandir='${datarootdir}/man'
1292
1293ac_prev=
1294ac_dashdash=
1295for ac_option
1296do
1297 # If the previous option needs an argument, assign it.
1298 if test -n "$ac_prev"; then
1299 eval $ac_prev=\$ac_option
1300 ac_prev=
1301 continue
1302 fi
1303
1304 case $ac_option in
cristyda16f162011-02-19 23:52:17 +00001305 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1306 *=) ac_optarg= ;;
1307 *) ac_optarg=yes ;;
cristy3ed852e2009-09-05 21:47:34 +00001308 esac
1309
1310 # Accept the important Cygnus configure options, so we can diagnose typos.
1311
1312 case $ac_dashdash$ac_option in
1313 --)
1314 ac_dashdash=yes ;;
1315
1316 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1317 ac_prev=bindir ;;
1318 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1319 bindir=$ac_optarg ;;
1320
1321 -build | --build | --buil | --bui | --bu)
1322 ac_prev=build_alias ;;
1323 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1324 build_alias=$ac_optarg ;;
1325
1326 -cache-file | --cache-file | --cache-fil | --cache-fi \
1327 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1328 ac_prev=cache_file ;;
1329 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1330 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1331 cache_file=$ac_optarg ;;
1332
1333 --config-cache | -C)
1334 cache_file=config.cache ;;
1335
1336 -datadir | --datadir | --datadi | --datad)
1337 ac_prev=datadir ;;
1338 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1339 datadir=$ac_optarg ;;
1340
1341 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1342 | --dataroo | --dataro | --datar)
1343 ac_prev=datarootdir ;;
1344 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1345 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1346 datarootdir=$ac_optarg ;;
1347
1348 -disable-* | --disable-*)
1349 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1350 # Reject names that are not valid shell variable names.
1351 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001352 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001353 ac_useropt_orig=$ac_useropt
1354 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1355 case $ac_user_opts in
1356 *"
1357"enable_$ac_useropt"
1358"*) ;;
1359 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1360 ac_unrecognized_sep=', ';;
1361 esac
1362 eval enable_$ac_useropt=no ;;
1363
1364 -docdir | --docdir | --docdi | --doc | --do)
1365 ac_prev=docdir ;;
1366 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1367 docdir=$ac_optarg ;;
1368
1369 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1370 ac_prev=dvidir ;;
1371 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1372 dvidir=$ac_optarg ;;
1373
1374 -enable-* | --enable-*)
1375 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1376 # Reject names that are not valid shell variable names.
1377 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001378 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001379 ac_useropt_orig=$ac_useropt
1380 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1381 case $ac_user_opts in
1382 *"
1383"enable_$ac_useropt"
1384"*) ;;
1385 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1386 ac_unrecognized_sep=', ';;
1387 esac
1388 eval enable_$ac_useropt=\$ac_optarg ;;
1389
1390 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1391 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1392 | --exec | --exe | --ex)
1393 ac_prev=exec_prefix ;;
1394 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1395 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1396 | --exec=* | --exe=* | --ex=*)
1397 exec_prefix=$ac_optarg ;;
1398
1399 -gas | --gas | --ga | --g)
1400 # Obsolete; use --with-gas.
1401 with_gas=yes ;;
1402
1403 -help | --help | --hel | --he | -h)
1404 ac_init_help=long ;;
1405 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1406 ac_init_help=recursive ;;
1407 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1408 ac_init_help=short ;;
1409
1410 -host | --host | --hos | --ho)
1411 ac_prev=host_alias ;;
1412 -host=* | --host=* | --hos=* | --ho=*)
1413 host_alias=$ac_optarg ;;
1414
1415 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1416 ac_prev=htmldir ;;
1417 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1418 | --ht=*)
1419 htmldir=$ac_optarg ;;
1420
1421 -includedir | --includedir | --includedi | --included | --include \
1422 | --includ | --inclu | --incl | --inc)
1423 ac_prev=includedir ;;
1424 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1425 | --includ=* | --inclu=* | --incl=* | --inc=*)
1426 includedir=$ac_optarg ;;
1427
1428 -infodir | --infodir | --infodi | --infod | --info | --inf)
1429 ac_prev=infodir ;;
1430 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1431 infodir=$ac_optarg ;;
1432
1433 -libdir | --libdir | --libdi | --libd)
1434 ac_prev=libdir ;;
1435 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1436 libdir=$ac_optarg ;;
1437
1438 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1439 | --libexe | --libex | --libe)
1440 ac_prev=libexecdir ;;
1441 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1442 | --libexe=* | --libex=* | --libe=*)
1443 libexecdir=$ac_optarg ;;
1444
1445 -localedir | --localedir | --localedi | --localed | --locale)
1446 ac_prev=localedir ;;
1447 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1448 localedir=$ac_optarg ;;
1449
1450 -localstatedir | --localstatedir | --localstatedi | --localstated \
1451 | --localstate | --localstat | --localsta | --localst | --locals)
1452 ac_prev=localstatedir ;;
1453 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1454 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1455 localstatedir=$ac_optarg ;;
1456
1457 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1458 ac_prev=mandir ;;
1459 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1460 mandir=$ac_optarg ;;
1461
1462 -nfp | --nfp | --nf)
1463 # Obsolete; use --without-fp.
1464 with_fp=no ;;
1465
1466 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1467 | --no-cr | --no-c | -n)
1468 no_create=yes ;;
1469
1470 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1471 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1472 no_recursion=yes ;;
1473
1474 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1475 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1476 | --oldin | --oldi | --old | --ol | --o)
1477 ac_prev=oldincludedir ;;
1478 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1479 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1480 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1481 oldincludedir=$ac_optarg ;;
1482
1483 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1484 ac_prev=prefix ;;
1485 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1486 prefix=$ac_optarg ;;
1487
1488 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1489 | --program-pre | --program-pr | --program-p)
1490 ac_prev=program_prefix ;;
1491 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1492 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1493 program_prefix=$ac_optarg ;;
1494
1495 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1496 | --program-suf | --program-su | --program-s)
1497 ac_prev=program_suffix ;;
1498 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1499 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1500 program_suffix=$ac_optarg ;;
1501
1502 -program-transform-name | --program-transform-name \
1503 | --program-transform-nam | --program-transform-na \
1504 | --program-transform-n | --program-transform- \
1505 | --program-transform | --program-transfor \
1506 | --program-transfo | --program-transf \
1507 | --program-trans | --program-tran \
1508 | --progr-tra | --program-tr | --program-t)
1509 ac_prev=program_transform_name ;;
1510 -program-transform-name=* | --program-transform-name=* \
1511 | --program-transform-nam=* | --program-transform-na=* \
1512 | --program-transform-n=* | --program-transform-=* \
1513 | --program-transform=* | --program-transfor=* \
1514 | --program-transfo=* | --program-transf=* \
1515 | --program-trans=* | --program-tran=* \
1516 | --progr-tra=* | --program-tr=* | --program-t=*)
1517 program_transform_name=$ac_optarg ;;
1518
1519 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1520 ac_prev=pdfdir ;;
1521 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1522 pdfdir=$ac_optarg ;;
1523
1524 -psdir | --psdir | --psdi | --psd | --ps)
1525 ac_prev=psdir ;;
1526 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1527 psdir=$ac_optarg ;;
1528
1529 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1530 | -silent | --silent | --silen | --sile | --sil)
1531 silent=yes ;;
1532
1533 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1534 ac_prev=sbindir ;;
1535 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1536 | --sbi=* | --sb=*)
1537 sbindir=$ac_optarg ;;
1538
1539 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1540 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1541 | --sharedst | --shareds | --shared | --share | --shar \
1542 | --sha | --sh)
1543 ac_prev=sharedstatedir ;;
1544 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1545 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1546 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1547 | --sha=* | --sh=*)
1548 sharedstatedir=$ac_optarg ;;
1549
1550 -site | --site | --sit)
1551 ac_prev=site ;;
1552 -site=* | --site=* | --sit=*)
1553 site=$ac_optarg ;;
1554
1555 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1556 ac_prev=srcdir ;;
1557 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1558 srcdir=$ac_optarg ;;
1559
1560 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1561 | --syscon | --sysco | --sysc | --sys | --sy)
1562 ac_prev=sysconfdir ;;
1563 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1564 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1565 sysconfdir=$ac_optarg ;;
1566
1567 -target | --target | --targe | --targ | --tar | --ta | --t)
1568 ac_prev=target_alias ;;
1569 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1570 target_alias=$ac_optarg ;;
1571
1572 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1573 verbose=yes ;;
1574
1575 -version | --version | --versio | --versi | --vers | -V)
1576 ac_init_version=: ;;
1577
1578 -with-* | --with-*)
1579 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1580 # Reject names that are not valid shell variable names.
1581 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001582 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001583 ac_useropt_orig=$ac_useropt
1584 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1585 case $ac_user_opts in
1586 *"
1587"with_$ac_useropt"
1588"*) ;;
1589 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1590 ac_unrecognized_sep=', ';;
1591 esac
1592 eval with_$ac_useropt=\$ac_optarg ;;
1593
1594 -without-* | --without-*)
1595 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1596 # Reject names that are not valid shell variable names.
1597 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001598 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001599 ac_useropt_orig=$ac_useropt
1600 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1601 case $ac_user_opts in
1602 *"
1603"with_$ac_useropt"
1604"*) ;;
1605 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1606 ac_unrecognized_sep=', ';;
1607 esac
1608 eval with_$ac_useropt=no ;;
1609
1610 --x)
1611 # Obsolete; use --with-x.
1612 with_x=yes ;;
1613
1614 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1615 | --x-incl | --x-inc | --x-in | --x-i)
1616 ac_prev=x_includes ;;
1617 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1618 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1619 x_includes=$ac_optarg ;;
1620
1621 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1622 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1623 ac_prev=x_libraries ;;
1624 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1625 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1626 x_libraries=$ac_optarg ;;
1627
cristy98dddb52010-11-04 00:30:15 +00001628 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1629Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001630 ;;
1631
1632 *=*)
1633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1634 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001635 case $ac_envvar in #(
1636 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001637 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001638 esac
cristy3ed852e2009-09-05 21:47:34 +00001639 eval $ac_envvar=\$ac_optarg
1640 export $ac_envvar ;;
1641
1642 *)
1643 # FIXME: should be removed in autoconf 3.0.
1644 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1646 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cristyda16f162011-02-19 23:52:17 +00001647 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cristy3ed852e2009-09-05 21:47:34 +00001648 ;;
1649
1650 esac
1651done
1652
1653if test -n "$ac_prev"; then
1654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001655 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001656fi
1657
1658if test -n "$ac_unrecognized_opts"; then
1659 case $enable_option_checking in
1660 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001661 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001662 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1663 esac
1664fi
1665
1666# Check all directory arguments for consistency.
1667for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1668 datadir sysconfdir sharedstatedir localstatedir includedir \
1669 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1670 libdir localedir mandir
1671do
1672 eval ac_val=\$$ac_var
1673 # Remove trailing slashes.
1674 case $ac_val in
1675 */ )
1676 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1677 eval $ac_var=\$ac_val;;
1678 esac
1679 # Be sure to have absolute directory names.
1680 case $ac_val in
1681 [\\/$]* | ?:[\\/]* ) continue;;
1682 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1683 esac
cristy98dddb52010-11-04 00:30:15 +00001684 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001685done
1686
1687# There might be people who depend on the old broken behavior: `$host'
1688# used to hold the argument of --host etc.
1689# FIXME: To remove some day.
1690build=$build_alias
1691host=$host_alias
1692target=$target_alias
1693
1694# FIXME: To remove some day.
1695if test "x$host_alias" != x; then
1696 if test "x$build_alias" = x; then
1697 cross_compiling=maybe
cristy3ed852e2009-09-05 21:47:34 +00001698 elif test "x$build_alias" != "x$host_alias"; then
1699 cross_compiling=yes
1700 fi
1701fi
1702
1703ac_tool_prefix=
1704test -n "$host_alias" && ac_tool_prefix=$host_alias-
1705
1706test "$silent" = yes && exec 6>/dev/null
1707
1708
1709ac_pwd=`pwd` && test -n "$ac_pwd" &&
1710ac_ls_di=`ls -di .` &&
1711ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001712 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001713test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001714 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001715
1716
1717# Find the source files, if location was not specified.
1718if test -z "$srcdir"; then
1719 ac_srcdir_defaulted=yes
1720 # Try the directory containing this script, then the parent directory.
1721 ac_confdir=`$as_dirname -- "$as_myself" ||
1722$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1723 X"$as_myself" : 'X\(//\)[^/]' \| \
1724 X"$as_myself" : 'X\(//\)$' \| \
1725 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1726$as_echo X"$as_myself" |
1727 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1728 s//\1/
1729 q
1730 }
1731 /^X\(\/\/\)[^/].*/{
1732 s//\1/
1733 q
1734 }
1735 /^X\(\/\/\)$/{
1736 s//\1/
1737 q
1738 }
1739 /^X\(\/\).*/{
1740 s//\1/
1741 q
1742 }
1743 s/.*/./; q'`
1744 srcdir=$ac_confdir
1745 if test ! -r "$srcdir/$ac_unique_file"; then
1746 srcdir=..
1747 fi
1748else
1749 ac_srcdir_defaulted=no
1750fi
1751if test ! -r "$srcdir/$ac_unique_file"; then
1752 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001753 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001754fi
1755ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1756ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001757 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001758 pwd)`
1759# When building in place, set srcdir=.
1760if test "$ac_abs_confdir" = "$ac_pwd"; then
1761 srcdir=.
1762fi
1763# Remove unnecessary trailing slashes from srcdir.
1764# Double slashes in file names in object file debugging info
1765# mess up M-x gdb in Emacs.
1766case $srcdir in
1767*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1768esac
1769for ac_var in $ac_precious_vars; do
1770 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1771 eval ac_env_${ac_var}_value=\$${ac_var}
1772 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1773 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1774done
1775
1776#
1777# Report the --help message.
1778#
1779if test "$ac_init_help" = "long"; then
1780 # Omit some internal or obsolete options to make the list less imposing.
1781 # This message is too long to be a string in the A/UX 3.1 sh.
1782 cat <<_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00001783\`configure' configures ImageMagick 7.0.0-0 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001784
1785Usage: $0 [OPTION]... [VAR=VALUE]...
1786
1787To assign environment variables (e.g., CC, CFLAGS...), specify them as
1788VAR=VALUE. See below for descriptions of some of the useful variables.
1789
1790Defaults for the options are specified in brackets.
1791
1792Configuration:
1793 -h, --help display this help and exit
1794 --help=short display options specific to this package
1795 --help=recursive display the short help of all the included packages
1796 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001797 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001798 --cache-file=FILE cache test results in FILE [disabled]
1799 -C, --config-cache alias for \`--cache-file=config.cache'
1800 -n, --no-create do not create output files
1801 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1802
1803Installation directories:
1804 --prefix=PREFIX install architecture-independent files in PREFIX
1805 [$ac_default_prefix]
1806 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1807 [PREFIX]
1808
1809By default, \`make install' will install all the files in
1810\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1811an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1812for instance \`--prefix=\$HOME'.
1813
1814For better control, use the options below.
1815
1816Fine tuning of the installation directories:
1817 --bindir=DIR user executables [EPREFIX/bin]
1818 --sbindir=DIR system admin executables [EPREFIX/sbin]
1819 --libexecdir=DIR program executables [EPREFIX/libexec]
1820 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1821 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1822 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1823 --libdir=DIR object code libraries [EPREFIX/lib]
1824 --includedir=DIR C header files [PREFIX/include]
1825 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1826 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1827 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1828 --infodir=DIR info documentation [DATAROOTDIR/info]
1829 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1830 --mandir=DIR man documentation [DATAROOTDIR/man]
cristy09b53e12011-10-14 12:47:22 +00001831 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
cristy3ed852e2009-09-05 21:47:34 +00001832 --htmldir=DIR html documentation [DOCDIR]
1833 --dvidir=DIR dvi documentation [DOCDIR]
1834 --pdfdir=DIR pdf documentation [DOCDIR]
1835 --psdir=DIR ps documentation [DOCDIR]
1836_ACEOF
1837
1838 cat <<\_ACEOF
1839
cristy73bd4a52010-10-05 11:24:23 +00001840Program names:
1841 --program-prefix=PREFIX prepend PREFIX to installed program names
1842 --program-suffix=SUFFIX append SUFFIX to installed program names
1843 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1844
cristy3ed852e2009-09-05 21:47:34 +00001845X features:
1846 --x-includes=DIR X include files are in DIR
1847 --x-libraries=DIR X library files are in DIR
1848
1849System types:
1850 --build=BUILD configure for building on BUILD [guessed]
1851 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1852 --target=TARGET configure for building compilers for TARGET [HOST]
1853_ACEOF
1854fi
1855
1856if test -n "$ac_init_help"; then
1857 case $ac_init_help in
cristy29eb34e2011-10-16 00:46:08 +00001858 short | recursive ) echo "Configuration of ImageMagick 7.0.0-0:";;
cristy3ed852e2009-09-05 21:47:34 +00001859 esac
1860 cat <<\_ACEOF
1861
1862Optional Features:
1863 --disable-option-checking ignore unrecognized --enable/--with options
1864 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1865 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristyc0890a62012-07-19 00:18:20 +00001866 --enable-silent-rules less verbose build output (undo: "make V=1")
1867 --disable-silent-rules verbose build output (undo: "make V=0")
1868 --enable-dependency-tracking
1869 do not reject slow dependency extractors
1870 --disable-dependency-tracking
1871 speeds up one-time build
cristy9b86f202012-11-28 21:55:35 +00001872 --enable-ld-version-script
1873 enable linker version script (default is enabled
1874 when possible)
cristya3824692012-03-30 17:22:07 +00001875 --enable-bounds-checking
1876 enable run-time bounds-checking
cristy3ed852e2009-09-05 21:47:34 +00001877 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001878 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001879 --disable-openmp do not use OpenMP
cristy48794642012-09-02 15:19:08 +00001880 --enable-opencl enable OpenCL support
cristy3ed852e2009-09-05 21:47:34 +00001881 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001882 --enable-shared[=PKGS] build shared libraries [default=yes]
1883 --enable-static[=PKGS] build static libraries [default=yes]
1884 --enable-fast-install[=PKGS]
1885 optimize for fast installation [default=yes]
1886 --disable-libtool-lock avoid locking (might break parallel builds)
cristy3ed852e2009-09-05 21:47:34 +00001887 --enable-delegate-build look for delegate libraries in build directory
1888 --disable-deprecated exclude deprecated methods in MagickCore and
cristy3a75f062012-09-08 23:29:40 +00001889 MagickWand APIs
cristy3ed852e2009-09-05 21:47:34 +00001890 --disable-installed Formally install ImageMagick under PREFIX
1891 --disable-cipher disable enciphering and deciphering image pixels
cristy6e3607c2011-09-13 13:59:17 +00001892 --enable-zero-configuration
1893 enable self-contained, embeddable,
cristy3ed852e2009-09-05 21:47:34 +00001894 zero-configuration ImageMagick
cristyf314dbd2012-11-15 13:35:28 +00001895 --enable-hdri accurately represent the wide range of intensity
cristy3ed852e2009-09-05 21:47:34 +00001896 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001897 --disable-assert disable assert() statements in build
cristyc0890a62012-07-19 00:18:20 +00001898 --enable-maintainer-mode
1899 enable make rules and dependencies not useful (and
1900 sometimes confusing) to the casual installer
cristy944e51f2013-04-16 18:45:02 +00001901 --enable-hugepages enable 'huge pages' support
cristy3ed852e2009-09-05 21:47:34 +00001902 --enable-ccmalloc enable 'ccmalloc' memory debug support
1903 --enable-efence enable 'efence' memory debug support
1904 --enable-prof enable 'prof' profiling support
1905 --enable-gprof enable 'gprof' profiling support
1906 --enable-gcov enable 'gcov' profiling support
cristy71d8c202012-03-20 17:05:01 +00001907 --enable-legacy-support install legacy command-line utilities (default disabled)
cristya0b81c32010-01-22 02:54:33 +00001908 --disable-assert turn off assertions
cristydd17feb2014-03-05 02:06:32 +00001909 --disable-docs disable building of documentation
cristy3ed852e2009-09-05 21:47:34 +00001910
1911Optional Packages:
1912 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1913 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001914 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
cristy7247bba2012-02-05 16:37:27 +00001915 --with-dmalloc use dmalloc, as in http://www.dmalloc.com
cristya0459972013-11-03 18:09:35 +00001916 --with-gcc-arch=<arch> use architecture <arch> for gcc -march/-mtune,
1917 instead of guessing
cristy670aa3c2011-11-03 00:54:00 +00001918 --includearch-dir=DIR ARCH specific include directory
1919 --sharearch-dir=DIR ARCH specific config directory
cristy2ec87cc2013-02-18 17:46:50 +00001920 --with-pkgconfigdir=DIR Path to the pkgconfig directory [LIBDIR/pkgconfig]
cristy3ed852e2009-09-05 21:47:34 +00001921 --without-threads disable threads support
cristy99bd5232011-12-07 14:38:20 +00001922 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
cristy73bd4a52010-10-05 11:24:23 +00001923 both]
cristyda16f162011-02-19 23:52:17 +00001924 --with-sysroot=DIR Search for dependent libraries within DIR
1925 (or the compiler's sysroot if not specified).
cristy3ed852e2009-09-05 21:47:34 +00001926 --with-modules enable building dynamically loadable modules
1927 --with-method-prefix=PREFIX
1928 prefix MagickCore API methods
1929 --with-quantum-depth=DEPTH
1930 number of bits in a pixel quantum (default 16)
1931 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1932 memory)
1933 --with-frozenpaths freeze delegate paths
1934 --without-magick-plus-plus
1935 disable build/install of Magick++
cristy3a75f062012-09-08 23:29:40 +00001936 --with-package-release-name=NAME
1937 encode this name into the shared library
cristy3ed852e2009-09-05 21:47:34 +00001938 --with-perl enable build/install of PerlMagick
1939 --with-perl-options=OPTIONS
1940 options to pass on command-line when generating
cristyfc3d0222012-02-07 15:05:57 +00001941 PerlMagick build file
cristy3b0097d2014-11-04 15:34:47 +00001942 --with-jemalloc enable jemalloc memory allocation library support
cristy3ed852e2009-09-05 21:47:34 +00001943 --with-umem enable umem memory allocation library support
1944 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1945 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001946 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001947 --without-zlib disable ZLIB support
cristy5a3dc992014-12-05 19:50:04 +00001948 --with-apple-font-dir=DIR
1949 Apple font directory
cristy3ed852e2009-09-05 21:47:34 +00001950 --with-autotrace enable autotrace support
1951 --without-dps disable Display Postscript support
cristy430a7312010-01-21 20:44:04 +00001952 --with-dejavu-font-dir=DIR
1953 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001954 --without-fftw disable FFTW support
1955 --without-fpx disable FlashPIX support
cristy853d9902014-08-21 18:50:43 +00001956 --without-djvu disable DjVu support
cristy3ed852e2009-09-05 21:47:34 +00001957 --without-fontconfig disable fontconfig support
cristy81beccd2011-10-03 18:17:24 +00001958 --without-freetype disable Freetype support
cristybdabdd62013-03-04 17:43:36 +00001959 --with-gslib enable Ghostscript library support
cristy3ed852e2009-09-05 21:47:34 +00001960 --with-fontpath=DIR prepend to default font search path
1961 --with-gs-font-dir=DIR Ghostscript font directory
cristybdabdd62013-03-04 17:43:36 +00001962 --with-gvc enable GVC support
cristy3ed852e2009-09-05 21:47:34 +00001963 --without-jbig disable JBIG support
1964 --without-jpeg disable JPEG support
cristy71203402010-06-18 13:12:03 +00001965 --without-lcms disable lcms (v1.1X) support
1966 --without-lcms2 disable lcms (v2.X) support
cristy99db3872014-01-01 15:11:34 +00001967 --without-openjp2 disable OpenJP2 support
cristyf0c78232010-03-15 12:53:40 +00001968 --without-lqr disable Liquid Rescale support
cristyfbb0ef02010-12-19 02:32:11 +00001969 --without-lzma disable LZMA support
cristy3ed852e2009-09-05 21:47:34 +00001970 --without-openexr disable OpenEXR support
cristy41cbe8a2011-10-27 01:35:18 +00001971 --without-pango disable PANGO support
cristy3ed852e2009-09-05 21:47:34 +00001972 --without-png disable PNG support
cristy51633f52013-04-23 14:03:19 +00001973 --with-rsvg enable RSVG support
cristy3ed852e2009-09-05 21:47:34 +00001974 --without-tiff disable TIFF support
cristyb1860752011-03-14 00:27:46 +00001975 --without-webp disable WEBP support
cristy3ed852e2009-09-05 21:47:34 +00001976 --with-windows-font-dir=DIR
cristy5a3dc992014-12-05 19:50:04 +00001977 Windows font directory
cristyde3fc5d2012-02-12 15:40:47 +00001978 --with-wmf enable WMF support
cristy3ed852e2009-09-05 21:47:34 +00001979 --without-xml disable XML support
1980
1981Some influential environment variables:
1982 CC C compiler command
1983 CFLAGS C compiler flags
1984 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1985 nonstandard directory <lib dir>
1986 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001987 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001988 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001989 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001990 CXX C++ compiler command
1991 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00001992 PKG_CONFIG path to pkg-config utility
nicolas6237c462010-10-05 06:11:49 +00001993 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00001994 XMKMF Path to xmkmf, Makefile generator for X Window System
1995 AUTOTRACE_CFLAGS
1996 C compiler flags for AUTOTRACE, overriding pkg-config
1997 AUTOTRACE_LIBS
1998 linker flags for AUTOTRACE, overriding pkg-config
1999 FONTCONFIG_CFLAGS
2000 C compiler flags for FONTCONFIG, overriding pkg-config
2001 FONTCONFIG_LIBS
2002 linker flags for FONTCONFIG, overriding pkg-config
cristy03f187e2013-01-24 00:22:19 +00002003 FREETYPE_CFLAGS
2004 C compiler flags for FREETYPE, overriding pkg-config
2005 FREETYPE_LIBS
2006 linker flags for FREETYPE, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002007 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
2008 GVC_LIBS linker flags for GVC, overriding pkg-config
cristy99db3872014-01-01 15:11:34 +00002009 LIBOPENJP2_CFLAGS
2010 C compiler flags for LIBOPENJP2, overriding pkg-config
2011 LIBOPENJP2_LIBS
2012 linker flags for LIBOPENJP2, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002013 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
2014 LQR_LIBS linker flags for LQR, overriding pkg-config
cristyb94e5002011-11-14 13:20:10 +00002015 LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config
2016 LZMA_LIBS linker flags for LZMA, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002017 OPENEXR_CFLAGS
2018 C compiler flags for OPENEXR, overriding pkg-config
2019 OPENEXR_LIBS
2020 linker flags for OPENEXR, overriding pkg-config
cristy41cbe8a2011-10-27 01:35:18 +00002021 PANGO_CFLAGS
2022 C compiler flags for PANGO, overriding pkg-config
2023 PANGO_LIBS linker flags for PANGO, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002024 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
2025 RSVG_LIBS linker flags for RSVG, overriding pkg-config
2026 CAIRO_SVG_CFLAGS
2027 C compiler flags for CAIRO_SVG, overriding pkg-config
2028 CAIRO_SVG_LIBS
2029 linker flags for CAIRO_SVG, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00002030
2031Use these variables to override the choices made by `configure' or to help
2032it to find libraries and programs with nonstandard names/locations.
2033
2034Report bugs to <http://www.imagemagick.org>.
2035_ACEOF
2036ac_status=$?
2037fi
2038
2039if test "$ac_init_help" = "recursive"; then
2040 # If there are subdirs, report their specific --help.
2041 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2042 test -d "$ac_dir" ||
2043 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2044 continue
2045 ac_builddir=.
2046
2047case "$ac_dir" in
2048.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2049*)
2050 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2051 # A ".." for each directory in $ac_dir_suffix.
2052 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2053 case $ac_top_builddir_sub in
2054 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2055 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2056 esac ;;
2057esac
2058ac_abs_top_builddir=$ac_pwd
2059ac_abs_builddir=$ac_pwd$ac_dir_suffix
2060# for backward compatibility:
2061ac_top_builddir=$ac_top_build_prefix
2062
2063case $srcdir in
2064 .) # We are building in place.
2065 ac_srcdir=.
2066 ac_top_srcdir=$ac_top_builddir_sub
2067 ac_abs_top_srcdir=$ac_pwd ;;
2068 [\\/]* | ?:[\\/]* ) # Absolute name.
2069 ac_srcdir=$srcdir$ac_dir_suffix;
2070 ac_top_srcdir=$srcdir
2071 ac_abs_top_srcdir=$srcdir ;;
2072 *) # Relative name.
2073 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2074 ac_top_srcdir=$ac_top_build_prefix$srcdir
2075 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2076esac
2077ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2078
2079 cd "$ac_dir" || { ac_status=$?; continue; }
2080 # Check for guested configure.
2081 if test -f "$ac_srcdir/configure.gnu"; then
2082 echo &&
2083 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2084 elif test -f "$ac_srcdir/configure"; then
2085 echo &&
2086 $SHELL "$ac_srcdir/configure" --help=recursive
2087 else
2088 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2089 fi || ac_status=$?
2090 cd "$ac_pwd" || { ac_status=$?; break; }
2091 done
2092fi
2093
2094test -n "$ac_init_help" && exit $ac_status
2095if $ac_init_version; then
2096 cat <<\_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00002097ImageMagick configure 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +00002098generated by GNU Autoconf 2.69
cristy3ed852e2009-09-05 21:47:34 +00002099
cristy14fefe52012-05-21 00:59:18 +00002100Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002101This configure script is free software; the Free Software Foundation
2102gives unlimited permission to copy, distribute and modify it.
2103_ACEOF
2104 exit
2105fi
cristy8b350f62009-11-15 23:12:43 +00002106
2107## ------------------------ ##
2108## Autoconf initialization. ##
2109## ------------------------ ##
2110
2111# ac_fn_c_try_compile LINENO
2112# --------------------------
2113# Try to compile conftest.$ac_ext, and return whether this succeeded.
2114ac_fn_c_try_compile ()
2115{
2116 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2117 rm -f conftest.$ac_objext
2118 if { { ac_try="$ac_compile"
2119case "(($ac_try" in
2120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2121 *) ac_try_echo=$ac_try;;
2122esac
2123eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2124$as_echo "$ac_try_echo"; } >&5
2125 (eval "$ac_compile") 2>conftest.err
2126 ac_status=$?
2127 if test -s conftest.err; then
2128 grep -v '^ *+' conftest.err >conftest.er1
2129 cat conftest.er1 >&5
2130 mv -f conftest.er1 conftest.err
2131 fi
2132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2133 test $ac_status = 0; } && {
2134 test -z "$ac_c_werror_flag" ||
2135 test ! -s conftest.err
2136 } && test -s conftest.$ac_objext; then :
2137 ac_retval=0
2138else
2139 $as_echo "$as_me: failed program was:" >&5
2140sed 's/^/| /' conftest.$ac_ext >&5
2141
2142 ac_retval=1
2143fi
cristyda16f162011-02-19 23:52:17 +00002144 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002145 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002146
2147} # ac_fn_c_try_compile
2148
cristy95646052009-11-28 23:05:30 +00002149# ac_fn_c_try_cpp LINENO
2150# ----------------------
2151# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2152ac_fn_c_try_cpp ()
2153{
2154 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2155 if { { ac_try="$ac_cpp conftest.$ac_ext"
2156case "(($ac_try" in
2157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2158 *) ac_try_echo=$ac_try;;
2159esac
2160eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2161$as_echo "$ac_try_echo"; } >&5
2162 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2163 ac_status=$?
2164 if test -s conftest.err; then
2165 grep -v '^ *+' conftest.err >conftest.er1
2166 cat conftest.er1 >&5
2167 mv -f conftest.er1 conftest.err
2168 fi
2169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002170 test $ac_status = 0; } > conftest.i && {
cristy95646052009-11-28 23:05:30 +00002171 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2172 test ! -s conftest.err
2173 }; then :
2174 ac_retval=0
2175else
2176 $as_echo "$as_me: failed program was:" >&5
2177sed 's/^/| /' conftest.$ac_ext >&5
2178
2179 ac_retval=1
2180fi
cristyda16f162011-02-19 23:52:17 +00002181 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy95646052009-11-28 23:05:30 +00002182 as_fn_set_status $ac_retval
2183
2184} # ac_fn_c_try_cpp
2185
cristy8b350f62009-11-15 23:12:43 +00002186# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2187# -------------------------------------------------------
2188# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2189# the include files in INCLUDES and setting the cache variable VAR
2190# accordingly.
2191ac_fn_c_check_header_mongrel ()
2192{
2193 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002194 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2196$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002197if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002198 $as_echo_n "(cached) " >&6
2199fi
2200eval ac_res=\$$3
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2202$as_echo "$ac_res" >&6; }
2203else
2204 # Is the header compilable?
2205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2206$as_echo_n "checking $2 usability... " >&6; }
2207cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2208/* end confdefs.h. */
2209$4
2210#include <$2>
2211_ACEOF
2212if ac_fn_c_try_compile "$LINENO"; then :
2213 ac_header_compiler=yes
2214else
2215 ac_header_compiler=no
2216fi
2217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2219$as_echo "$ac_header_compiler" >&6; }
2220
2221# Is the header present?
2222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2223$as_echo_n "checking $2 presence... " >&6; }
2224cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2225/* end confdefs.h. */
2226#include <$2>
2227_ACEOF
2228if ac_fn_c_try_cpp "$LINENO"; then :
2229 ac_header_preproc=yes
2230else
2231 ac_header_preproc=no
2232fi
cristyda16f162011-02-19 23:52:17 +00002233rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2235$as_echo "$ac_header_preproc" >&6; }
2236
2237# So? What about this header?
2238case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2239 yes:no: )
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2241$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2243$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2244 ;;
2245 no:yes:* )
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2247$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2249$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2251$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2253$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2255$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002256( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002257## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002258## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002259 ) | sed "s/^/$as_me: WARNING: /" >&2
2260 ;;
2261esac
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2263$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002264if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002265 $as_echo_n "(cached) " >&6
2266else
2267 eval "$3=\$ac_header_compiler"
2268fi
2269eval ac_res=\$$3
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2271$as_echo "$ac_res" >&6; }
2272fi
cristyda16f162011-02-19 23:52:17 +00002273 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002274
2275} # ac_fn_c_check_header_mongrel
2276
2277# ac_fn_c_try_run LINENO
2278# ----------------------
2279# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2280# that executables *can* be run.
2281ac_fn_c_try_run ()
2282{
2283 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2284 if { { ac_try="$ac_link"
2285case "(($ac_try" in
2286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2287 *) ac_try_echo=$ac_try;;
2288esac
2289eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2290$as_echo "$ac_try_echo"; } >&5
2291 (eval "$ac_link") 2>&5
2292 ac_status=$?
2293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2294 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2295 { { case "(($ac_try" in
2296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2297 *) ac_try_echo=$ac_try;;
2298esac
2299eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2300$as_echo "$ac_try_echo"; } >&5
2301 (eval "$ac_try") 2>&5
2302 ac_status=$?
2303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2304 test $ac_status = 0; }; }; then :
2305 ac_retval=0
2306else
2307 $as_echo "$as_me: program exited with status $ac_status" >&5
2308 $as_echo "$as_me: failed program was:" >&5
2309sed 's/^/| /' conftest.$ac_ext >&5
2310
2311 ac_retval=$ac_status
2312fi
2313 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002314 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002315 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002316
2317} # ac_fn_c_try_run
2318
2319# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2320# -------------------------------------------------------
2321# Tests whether HEADER exists and can be compiled using the include files in
2322# INCLUDES, setting the cache variable VAR accordingly.
2323ac_fn_c_check_header_compile ()
2324{
2325 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2327$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002328if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002329 $as_echo_n "(cached) " >&6
2330else
2331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2332/* end confdefs.h. */
2333$4
2334#include <$2>
2335_ACEOF
2336if ac_fn_c_try_compile "$LINENO"; then :
2337 eval "$3=yes"
2338else
2339 eval "$3=no"
2340fi
2341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2342fi
2343eval ac_res=\$$3
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2345$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002346 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002347
2348} # ac_fn_c_check_header_compile
2349
cristya0b81c32010-01-22 02:54:33 +00002350# ac_fn_cxx_try_compile LINENO
2351# ----------------------------
2352# Try to compile conftest.$ac_ext, and return whether this succeeded.
2353ac_fn_cxx_try_compile ()
2354{
2355 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2356 rm -f conftest.$ac_objext
2357 if { { ac_try="$ac_compile"
2358case "(($ac_try" in
2359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2360 *) ac_try_echo=$ac_try;;
2361esac
2362eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2363$as_echo "$ac_try_echo"; } >&5
2364 (eval "$ac_compile") 2>conftest.err
2365 ac_status=$?
2366 if test -s conftest.err; then
2367 grep -v '^ *+' conftest.err >conftest.er1
2368 cat conftest.er1 >&5
2369 mv -f conftest.er1 conftest.err
2370 fi
2371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2372 test $ac_status = 0; } && {
2373 test -z "$ac_cxx_werror_flag" ||
2374 test ! -s conftest.err
2375 } && test -s conftest.$ac_objext; then :
2376 ac_retval=0
2377else
2378 $as_echo "$as_me: failed program was:" >&5
2379sed 's/^/| /' conftest.$ac_ext >&5
2380
2381 ac_retval=1
2382fi
cristyda16f162011-02-19 23:52:17 +00002383 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristya0b81c32010-01-22 02:54:33 +00002384 as_fn_set_status $ac_retval
2385
2386} # ac_fn_cxx_try_compile
2387
cristyd95b7a52013-10-23 13:12:53 +00002388# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2389# --------------------------------------------
2390# Tries to find the compile-time value of EXPR in a program that includes
2391# INCLUDES, setting VAR accordingly. Returns whether the value could be
2392# computed
2393ac_fn_c_compute_int ()
2394{
2395 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2396 if test "$cross_compiling" = yes; then
2397 # Depending upon the size, compute the lo and hi bounds.
2398cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2399/* end confdefs.h. */
2400$4
2401int
2402main ()
2403{
2404static int test_array [1 - 2 * !(($2) >= 0)];
2405test_array [0] = 0;
2406return test_array [0];
2407
2408 ;
2409 return 0;
2410}
2411_ACEOF
2412if ac_fn_c_try_compile "$LINENO"; then :
2413 ac_lo=0 ac_mid=0
2414 while :; do
2415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2416/* end confdefs.h. */
2417$4
2418int
2419main ()
2420{
2421static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2422test_array [0] = 0;
2423return test_array [0];
2424
2425 ;
2426 return 0;
2427}
2428_ACEOF
2429if ac_fn_c_try_compile "$LINENO"; then :
2430 ac_hi=$ac_mid; break
2431else
2432 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2433 if test $ac_lo -le $ac_mid; then
2434 ac_lo= ac_hi=
2435 break
2436 fi
2437 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2438fi
2439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2440 done
2441else
2442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2443/* end confdefs.h. */
2444$4
2445int
2446main ()
2447{
2448static int test_array [1 - 2 * !(($2) < 0)];
2449test_array [0] = 0;
2450return test_array [0];
2451
2452 ;
2453 return 0;
2454}
2455_ACEOF
2456if ac_fn_c_try_compile "$LINENO"; then :
2457 ac_hi=-1 ac_mid=-1
2458 while :; do
2459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2460/* end confdefs.h. */
2461$4
2462int
2463main ()
2464{
2465static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2466test_array [0] = 0;
2467return test_array [0];
2468
2469 ;
2470 return 0;
2471}
2472_ACEOF
2473if ac_fn_c_try_compile "$LINENO"; then :
2474 ac_lo=$ac_mid; break
2475else
2476 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2477 if test $ac_mid -le $ac_hi; then
2478 ac_lo= ac_hi=
2479 break
2480 fi
2481 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2482fi
2483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2484 done
2485else
2486 ac_lo= ac_hi=
2487fi
2488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2489fi
2490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2491# Binary search between lo and hi bounds.
2492while test "x$ac_lo" != "x$ac_hi"; do
2493 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2495/* end confdefs.h. */
2496$4
2497int
2498main ()
2499{
2500static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2501test_array [0] = 0;
2502return test_array [0];
2503
2504 ;
2505 return 0;
2506}
2507_ACEOF
2508if ac_fn_c_try_compile "$LINENO"; then :
2509 ac_hi=$ac_mid
2510else
2511 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2512fi
2513rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2514done
2515case $ac_lo in #((
2516?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2517'') ac_retval=1 ;;
2518esac
2519 else
2520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2521/* end confdefs.h. */
2522$4
2523static long int longval () { return $2; }
2524static unsigned long int ulongval () { return $2; }
2525#include <stdio.h>
2526#include <stdlib.h>
2527int
2528main ()
2529{
2530
2531 FILE *f = fopen ("conftest.val", "w");
2532 if (! f)
2533 return 1;
2534 if (($2) < 0)
2535 {
2536 long int i = longval ();
2537 if (i != ($2))
2538 return 1;
2539 fprintf (f, "%ld", i);
2540 }
2541 else
2542 {
2543 unsigned long int i = ulongval ();
2544 if (i != ($2))
2545 return 1;
2546 fprintf (f, "%lu", i);
2547 }
2548 /* Do not output a trailing newline, as this causes \r\n confusion
2549 on some platforms. */
2550 return ferror (f) || fclose (f) != 0;
2551
2552 ;
2553 return 0;
2554}
2555_ACEOF
2556if ac_fn_c_try_run "$LINENO"; then :
2557 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2558else
2559 ac_retval=1
2560fi
2561rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2562 conftest.$ac_objext conftest.beam conftest.$ac_ext
2563rm -f conftest.val
2564
2565 fi
2566 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2567 as_fn_set_status $ac_retval
2568
2569} # ac_fn_c_compute_int
2570
cristy8b350f62009-11-15 23:12:43 +00002571# ac_fn_c_try_link LINENO
2572# -----------------------
2573# Try to link conftest.$ac_ext, and return whether this succeeded.
2574ac_fn_c_try_link ()
2575{
2576 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2577 rm -f conftest.$ac_objext conftest$ac_exeext
2578 if { { ac_try="$ac_link"
2579case "(($ac_try" in
2580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2581 *) ac_try_echo=$ac_try;;
2582esac
2583eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2584$as_echo "$ac_try_echo"; } >&5
2585 (eval "$ac_link") 2>conftest.err
2586 ac_status=$?
2587 if test -s conftest.err; then
2588 grep -v '^ *+' conftest.err >conftest.er1
2589 cat conftest.er1 >&5
2590 mv -f conftest.er1 conftest.err
2591 fi
2592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2593 test $ac_status = 0; } && {
2594 test -z "$ac_c_werror_flag" ||
2595 test ! -s conftest.err
2596 } && test -s conftest$ac_exeext && {
2597 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002598 test -x conftest$ac_exeext
cristy8b350f62009-11-15 23:12:43 +00002599 }; then :
2600 ac_retval=0
2601else
2602 $as_echo "$as_me: failed program was:" >&5
2603sed 's/^/| /' conftest.$ac_ext >&5
2604
2605 ac_retval=1
2606fi
2607 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2608 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2609 # interfere with the next link command; also delete a directory that is
2610 # left behind by Apple's compiler. We do this before executing the actions.
2611 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002612 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002613 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002614
2615} # ac_fn_c_try_link
2616
cristy73bd4a52010-10-05 11:24:23 +00002617# ac_fn_c_check_func LINENO FUNC VAR
2618# ----------------------------------
2619# Tests whether FUNC exists, setting the cache variable VAR accordingly
2620ac_fn_c_check_func ()
2621{
2622 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2624$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002625if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002626 $as_echo_n "(cached) " >&6
2627else
2628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2629/* end confdefs.h. */
2630/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2631 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2632#define $2 innocuous_$2
2633
2634/* System header to define __stub macros and hopefully few prototypes,
2635 which can conflict with char $2 (); below.
2636 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2637 <limits.h> exists even on freestanding compilers. */
2638
2639#ifdef __STDC__
2640# include <limits.h>
2641#else
2642# include <assert.h>
2643#endif
2644
2645#undef $2
2646
2647/* Override any GCC internal prototype to avoid an error.
2648 Use char because int might match the return type of a GCC
2649 builtin and then its argument prototype would still apply. */
2650#ifdef __cplusplus
2651extern "C"
2652#endif
2653char $2 ();
2654/* The GNU C library defines this for functions which it implements
2655 to always fail with ENOSYS. Some functions are actually named
2656 something starting with __ and the normal name is an alias. */
2657#if defined __stub_$2 || defined __stub___$2
2658choke me
2659#endif
2660
2661int
2662main ()
2663{
2664return $2 ();
2665 ;
2666 return 0;
2667}
2668_ACEOF
2669if ac_fn_c_try_link "$LINENO"; then :
2670 eval "$3=yes"
2671else
2672 eval "$3=no"
2673fi
2674rm -f core conftest.err conftest.$ac_objext \
2675 conftest$ac_exeext conftest.$ac_ext
2676fi
2677eval ac_res=\$$3
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2679$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002680 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002681
2682} # ac_fn_c_check_func
2683
2684# ac_fn_cxx_try_cpp LINENO
2685# ------------------------
2686# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2687ac_fn_cxx_try_cpp ()
2688{
2689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2690 if { { ac_try="$ac_cpp conftest.$ac_ext"
2691case "(($ac_try" in
2692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2693 *) ac_try_echo=$ac_try;;
2694esac
2695eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2696$as_echo "$ac_try_echo"; } >&5
2697 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2698 ac_status=$?
2699 if test -s conftest.err; then
2700 grep -v '^ *+' conftest.err >conftest.er1
2701 cat conftest.er1 >&5
2702 mv -f conftest.er1 conftest.err
2703 fi
2704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002705 test $ac_status = 0; } > conftest.i && {
cristy73bd4a52010-10-05 11:24:23 +00002706 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2707 test ! -s conftest.err
2708 }; then :
2709 ac_retval=0
2710else
2711 $as_echo "$as_me: failed program was:" >&5
2712sed 's/^/| /' conftest.$ac_ext >&5
2713
2714 ac_retval=1
2715fi
cristyda16f162011-02-19 23:52:17 +00002716 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002717 as_fn_set_status $ac_retval
2718
2719} # ac_fn_cxx_try_cpp
2720
2721# ac_fn_cxx_try_link LINENO
2722# -------------------------
2723# Try to link conftest.$ac_ext, and return whether this succeeded.
2724ac_fn_cxx_try_link ()
2725{
2726 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2727 rm -f conftest.$ac_objext conftest$ac_exeext
2728 if { { ac_try="$ac_link"
2729case "(($ac_try" in
2730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2731 *) ac_try_echo=$ac_try;;
2732esac
2733eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2734$as_echo "$ac_try_echo"; } >&5
2735 (eval "$ac_link") 2>conftest.err
2736 ac_status=$?
2737 if test -s conftest.err; then
2738 grep -v '^ *+' conftest.err >conftest.er1
2739 cat conftest.er1 >&5
2740 mv -f conftest.er1 conftest.err
2741 fi
2742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2743 test $ac_status = 0; } && {
2744 test -z "$ac_cxx_werror_flag" ||
2745 test ! -s conftest.err
2746 } && test -s conftest$ac_exeext && {
2747 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002748 test -x conftest$ac_exeext
cristy73bd4a52010-10-05 11:24:23 +00002749 }; then :
2750 ac_retval=0
2751else
2752 $as_echo "$as_me: failed program was:" >&5
2753sed 's/^/| /' conftest.$ac_ext >&5
2754
2755 ac_retval=1
2756fi
2757 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2758 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2759 # interfere with the next link command; also delete a directory that is
2760 # left behind by Apple's compiler. We do this before executing the actions.
2761 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002762 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002763 as_fn_set_status $ac_retval
2764
2765} # ac_fn_cxx_try_link
2766
cristy8b350f62009-11-15 23:12:43 +00002767# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2768# -------------------------------------------
2769# Tests whether TYPE exists after having included INCLUDES, setting cache
2770# variable VAR accordingly.
2771ac_fn_c_check_type ()
2772{
2773 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2775$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002776if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002777 $as_echo_n "(cached) " >&6
2778else
2779 eval "$3=no"
2780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2781/* end confdefs.h. */
2782$4
2783int
2784main ()
2785{
2786if (sizeof ($2))
2787 return 0;
2788 ;
2789 return 0;
2790}
2791_ACEOF
2792if ac_fn_c_try_compile "$LINENO"; then :
2793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2794/* end confdefs.h. */
2795$4
2796int
2797main ()
2798{
2799if (sizeof (($2)))
2800 return 0;
2801 ;
2802 return 0;
2803}
2804_ACEOF
2805if ac_fn_c_try_compile "$LINENO"; then :
2806
2807else
2808 eval "$3=yes"
2809fi
2810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2811fi
2812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2813fi
2814eval ac_res=\$$3
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2816$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002817 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002818
2819} # ac_fn_c_check_type
2820
cristy92703d82010-04-26 00:18:18 +00002821# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2822# ----------------------------------------------------
2823# Tries to find if the field MEMBER exists in type AGGR, after including
2824# INCLUDES, setting cache variable VAR accordingly.
2825ac_fn_c_check_member ()
2826{
2827 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2829$as_echo_n "checking for $2.$3... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002830if eval \${$4+:} false; then :
cristy92703d82010-04-26 00:18:18 +00002831 $as_echo_n "(cached) " >&6
2832else
2833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2834/* end confdefs.h. */
2835$5
2836int
2837main ()
2838{
2839static $2 ac_aggr;
2840if (ac_aggr.$3)
2841return 0;
2842 ;
2843 return 0;
2844}
2845_ACEOF
2846if ac_fn_c_try_compile "$LINENO"; then :
2847 eval "$4=yes"
2848else
2849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2850/* end confdefs.h. */
2851$5
2852int
2853main ()
2854{
2855static $2 ac_aggr;
2856if (sizeof ac_aggr.$3)
2857return 0;
2858 ;
2859 return 0;
2860}
2861_ACEOF
2862if ac_fn_c_try_compile "$LINENO"; then :
2863 eval "$4=yes"
2864else
2865 eval "$4=no"
2866fi
2867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2868fi
2869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2870fi
2871eval ac_res=\$$4
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2873$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002874 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy92703d82010-04-26 00:18:18 +00002875
2876} # ac_fn_c_check_member
2877
cristy5eef09f2012-10-16 12:08:28 +00002878# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2879# ---------------------------------------------
2880# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2881# accordingly.
2882ac_fn_c_check_decl ()
2883{
2884 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2885 as_decl_name=`echo $2|sed 's/ *(.*//'`
2886 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2888$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2889if eval \${$3+:} false; then :
2890 $as_echo_n "(cached) " >&6
2891else
2892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2893/* end confdefs.h. */
2894$4
2895int
2896main ()
2897{
2898#ifndef $as_decl_name
2899#ifdef __cplusplus
2900 (void) $as_decl_use;
2901#else
2902 (void) $as_decl_name;
2903#endif
2904#endif
2905
2906 ;
2907 return 0;
2908}
2909_ACEOF
2910if ac_fn_c_try_compile "$LINENO"; then :
2911 eval "$3=yes"
2912else
2913 eval "$3=no"
2914fi
2915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2916fi
2917eval ac_res=\$$3
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2919$as_echo "$ac_res" >&6; }
2920 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2921
2922} # ac_fn_c_check_decl
2923
cristy501c8042011-05-26 17:46:28 +00002924# ac_fn_c_find_intX_t LINENO BITS VAR
2925# -----------------------------------
2926# Finds a signed integer type with width BITS, setting cache variable VAR
2927# accordingly.
2928ac_fn_c_find_intX_t ()
2929{
2930 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2932$as_echo_n "checking for int$2_t... " >&6; }
2933if eval \${$3+:} false; then :
2934 $as_echo_n "(cached) " >&6
2935else
2936 eval "$3=no"
2937 # Order is important - never check a type that is potentially smaller
2938 # than half of the expected target width.
2939 for ac_type in int$2_t 'int' 'long int' \
2940 'long long int' 'short int' 'signed char'; do
2941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2942/* end confdefs.h. */
2943$ac_includes_default
2944 enum { N = $2 / 2 - 1 };
2945int
2946main ()
2947{
2948static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
cristy14fefe52012-05-21 00:59:18 +00002949test_array [0] = 0;
2950return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002951
2952 ;
2953 return 0;
2954}
2955_ACEOF
2956if ac_fn_c_try_compile "$LINENO"; then :
2957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2958/* end confdefs.h. */
2959$ac_includes_default
2960 enum { N = $2 / 2 - 1 };
2961int
2962main ()
2963{
2964static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2965 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
cristy14fefe52012-05-21 00:59:18 +00002966test_array [0] = 0;
2967return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002968
2969 ;
2970 return 0;
2971}
2972_ACEOF
2973if ac_fn_c_try_compile "$LINENO"; then :
2974
2975else
2976 case $ac_type in #(
2977 int$2_t) :
2978 eval "$3=yes" ;; #(
2979 *) :
2980 eval "$3=\$ac_type" ;;
2981esac
2982fi
2983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2984fi
2985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2986 if eval test \"x\$"$3"\" = x"no"; then :
2987
2988else
2989 break
2990fi
2991 done
2992fi
2993eval ac_res=\$$3
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2995$as_echo "$ac_res" >&6; }
2996 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2997
2998} # ac_fn_c_find_intX_t
2999
3000# ac_fn_c_find_uintX_t LINENO BITS VAR
3001# ------------------------------------
3002# Finds an unsigned integer type with width BITS, setting cache variable VAR
3003# accordingly.
3004ac_fn_c_find_uintX_t ()
3005{
3006 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
3008$as_echo_n "checking for uint$2_t... " >&6; }
3009if eval \${$3+:} false; then :
3010 $as_echo_n "(cached) " >&6
3011else
3012 eval "$3=no"
3013 # Order is important - never check a type that is potentially smaller
3014 # than half of the expected target width.
3015 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
3016 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
3017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3018/* end confdefs.h. */
3019$ac_includes_default
3020int
3021main ()
3022{
3023static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
cristy14fefe52012-05-21 00:59:18 +00003024test_array [0] = 0;
3025return test_array [0];
cristy501c8042011-05-26 17:46:28 +00003026
3027 ;
3028 return 0;
3029}
3030_ACEOF
3031if ac_fn_c_try_compile "$LINENO"; then :
3032 case $ac_type in #(
3033 uint$2_t) :
3034 eval "$3=yes" ;; #(
3035 *) :
3036 eval "$3=\$ac_type" ;;
3037esac
3038fi
3039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3040 if eval test \"x\$"$3"\" = x"no"; then :
3041
3042else
3043 break
3044fi
3045 done
3046fi
3047eval ac_res=\$$3
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3049$as_echo "$ac_res" >&6; }
3050 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3051
3052} # ac_fn_c_find_uintX_t
3053
cristy8b350f62009-11-15 23:12:43 +00003054# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
3055# ---------------------------------------------------------
3056# Tests whether HEADER exists, giving a warning if it cannot be compiled using
3057# the include files in INCLUDES and setting the cache variable VAR
3058# accordingly.
3059ac_fn_cxx_check_header_mongrel ()
3060{
3061 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00003062 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3064$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003065if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003066 $as_echo_n "(cached) " >&6
3067fi
3068eval ac_res=\$$3
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3070$as_echo "$ac_res" >&6; }
3071else
3072 # Is the header compilable?
3073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
3074$as_echo_n "checking $2 usability... " >&6; }
3075cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3076/* end confdefs.h. */
3077$4
3078#include <$2>
3079_ACEOF
3080if ac_fn_cxx_try_compile "$LINENO"; then :
3081 ac_header_compiler=yes
3082else
3083 ac_header_compiler=no
3084fi
3085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3087$as_echo "$ac_header_compiler" >&6; }
3088
3089# Is the header present?
3090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3091$as_echo_n "checking $2 presence... " >&6; }
3092cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3093/* end confdefs.h. */
3094#include <$2>
3095_ACEOF
3096if ac_fn_cxx_try_cpp "$LINENO"; then :
3097 ac_header_preproc=yes
3098else
3099 ac_header_preproc=no
3100fi
cristyda16f162011-02-19 23:52:17 +00003101rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00003102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3103$as_echo "$ac_header_preproc" >&6; }
3104
3105# So? What about this header?
3106case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3107 yes:no: )
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3109$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3111$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3112 ;;
3113 no:yes:* )
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3115$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3117$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3119$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3121$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3123$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003124( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00003125## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00003126## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00003127 ) | sed "s/^/$as_me: WARNING: /" >&2
3128 ;;
3129esac
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3131$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003132if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003133 $as_echo_n "(cached) " >&6
3134else
3135 eval "$3=\$ac_header_compiler"
3136fi
3137eval ac_res=\$$3
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3139$as_echo "$ac_res" >&6; }
3140fi
cristyda16f162011-02-19 23:52:17 +00003141 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00003142
3143} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00003144cat >config.log <<_ACEOF
3145This file contains any messages produced by compilers while
3146running configure, to aid debugging if configure makes a mistake.
3147
cristy29eb34e2011-10-16 00:46:08 +00003148It was created by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +00003149generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00003150
3151 $ $0 $@
3152
3153_ACEOF
3154exec 5>>config.log
3155{
3156cat <<_ASUNAME
3157## --------- ##
3158## Platform. ##
3159## --------- ##
3160
3161hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3162uname -m = `(uname -m) 2>/dev/null || echo unknown`
3163uname -r = `(uname -r) 2>/dev/null || echo unknown`
3164uname -s = `(uname -s) 2>/dev/null || echo unknown`
3165uname -v = `(uname -v) 2>/dev/null || echo unknown`
3166
3167/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3168/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3169
3170/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3171/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3172/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3173/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3174/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3175/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3176/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3177
3178_ASUNAME
3179
3180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3181for as_dir in $PATH
3182do
3183 IFS=$as_save_IFS
3184 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003185 $as_echo "PATH: $as_dir"
3186 done
cristy3ed852e2009-09-05 21:47:34 +00003187IFS=$as_save_IFS
3188
3189} >&5
3190
3191cat >&5 <<_ACEOF
3192
3193
3194## ----------- ##
3195## Core tests. ##
3196## ----------- ##
3197
3198_ACEOF
3199
3200
3201# Keep a trace of the command line.
3202# Strip out --no-create and --no-recursion so they do not pile up.
3203# Strip out --silent because we don't want to record it for future runs.
3204# Also quote any args containing shell meta-characters.
3205# Make two passes to allow for proper duplicate-argument suppression.
3206ac_configure_args=
3207ac_configure_args0=
3208ac_configure_args1=
3209ac_must_keep_next=false
3210for ac_pass in 1 2
3211do
3212 for ac_arg
3213 do
3214 case $ac_arg in
3215 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3216 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3217 | -silent | --silent | --silen | --sile | --sil)
3218 continue ;;
3219 *\'*)
3220 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3221 esac
3222 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003223 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003224 2)
cristy8b350f62009-11-15 23:12:43 +00003225 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003226 if test $ac_must_keep_next = true; then
3227 ac_must_keep_next=false # Got value, back to normal.
3228 else
3229 case $ac_arg in
3230 *=* | --config-cache | -C | -disable-* | --disable-* \
3231 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3232 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3233 | -with-* | --with-* | -without-* | --without-* | --x)
3234 case "$ac_configure_args0 " in
3235 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3236 esac
3237 ;;
3238 -* ) ac_must_keep_next=true ;;
3239 esac
3240 fi
cristy8b350f62009-11-15 23:12:43 +00003241 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003242 ;;
3243 esac
3244 done
3245done
cristy8b350f62009-11-15 23:12:43 +00003246{ ac_configure_args0=; unset ac_configure_args0;}
3247{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003248
3249# When interrupted or exit'd, cleanup temporary files, and complete
3250# config.log. We remove comments because anyway the quotes in there
3251# would cause problems or look ugly.
3252# WARNING: Use '\'' to represent an apostrophe within the trap.
3253# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3254trap 'exit_status=$?
3255 # Save into config.log some information that might help in debugging.
3256 {
3257 echo
3258
cristy98dddb52010-11-04 00:30:15 +00003259 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003260## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003261## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003262 echo
3263 # The following way of writing the cache mishandles newlines in values,
3264(
3265 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3266 eval ac_val=\$$ac_var
3267 case $ac_val in #(
3268 *${as_nl}*)
3269 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003270 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003271$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3272 esac
3273 case $ac_var in #(
3274 _ | IFS | as_nl) ;; #(
3275 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003276 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003277 esac ;;
3278 esac
3279 done
3280 (set) 2>&1 |
3281 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3282 *${as_nl}ac_space=\ *)
3283 sed -n \
3284 "s/'\''/'\''\\\\'\'''\''/g;
3285 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3286 ;; #(
3287 *)
3288 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3289 ;;
3290 esac |
3291 sort
3292)
3293 echo
3294
cristy98dddb52010-11-04 00:30:15 +00003295 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003296## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003297## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003298 echo
3299 for ac_var in $ac_subst_vars
3300 do
3301 eval ac_val=\$$ac_var
3302 case $ac_val in
3303 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3304 esac
3305 $as_echo "$ac_var='\''$ac_val'\''"
3306 done | sort
3307 echo
3308
3309 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003310 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003311## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003312## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003313 echo
3314 for ac_var in $ac_subst_files
3315 do
3316 eval ac_val=\$$ac_var
3317 case $ac_val in
3318 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3319 esac
3320 $as_echo "$ac_var='\''$ac_val'\''"
3321 done | sort
3322 echo
3323 fi
3324
3325 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003326 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003327## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003328## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003329 echo
3330 cat confdefs.h
3331 echo
3332 fi
3333 test "$ac_signal" != 0 &&
3334 $as_echo "$as_me: caught signal $ac_signal"
3335 $as_echo "$as_me: exit $exit_status"
3336 } >&5
3337 rm -f core *.core core.conftest.* &&
3338 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3339 exit $exit_status
3340' 0
3341for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003342 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003343done
3344ac_signal=0
3345
3346# confdefs.h avoids OS command line length limits that DEFS can exceed.
3347rm -f -r conftest* confdefs.h
3348
cristy8b350f62009-11-15 23:12:43 +00003349$as_echo "/* confdefs.h */" > confdefs.h
3350
cristy3ed852e2009-09-05 21:47:34 +00003351# Predefined preprocessor variables.
3352
3353cat >>confdefs.h <<_ACEOF
3354#define PACKAGE_NAME "$PACKAGE_NAME"
3355_ACEOF
3356
cristy3ed852e2009-09-05 21:47:34 +00003357cat >>confdefs.h <<_ACEOF
3358#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3359_ACEOF
3360
cristy3ed852e2009-09-05 21:47:34 +00003361cat >>confdefs.h <<_ACEOF
3362#define PACKAGE_VERSION "$PACKAGE_VERSION"
3363_ACEOF
3364
cristy3ed852e2009-09-05 21:47:34 +00003365cat >>confdefs.h <<_ACEOF
3366#define PACKAGE_STRING "$PACKAGE_STRING"
3367_ACEOF
3368
cristy3ed852e2009-09-05 21:47:34 +00003369cat >>confdefs.h <<_ACEOF
3370#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3371_ACEOF
3372
cristy8b350f62009-11-15 23:12:43 +00003373cat >>confdefs.h <<_ACEOF
3374#define PACKAGE_URL "$PACKAGE_URL"
3375_ACEOF
3376
cristy3ed852e2009-09-05 21:47:34 +00003377
3378# Let the site file select an alternate cache file if it wants to.
3379# Prefer an explicitly selected file to automatically selected ones.
3380ac_site_file1=NONE
3381ac_site_file2=NONE
3382if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003383 # We do not want a PATH search for config.site.
3384 case $CONFIG_SITE in #((
3385 -*) ac_site_file1=./$CONFIG_SITE;;
3386 */*) ac_site_file1=$CONFIG_SITE;;
3387 *) ac_site_file1=./$CONFIG_SITE;;
3388 esac
cristy3ed852e2009-09-05 21:47:34 +00003389elif test "x$prefix" != xNONE; then
3390 ac_site_file1=$prefix/share/config.site
3391 ac_site_file2=$prefix/etc/config.site
3392else
3393 ac_site_file1=$ac_default_prefix/share/config.site
3394 ac_site_file2=$ac_default_prefix/etc/config.site
3395fi
3396for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3397do
3398 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003399 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003400 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003401$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3402 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003403 . "$ac_site_file" \
3404 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3405$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3406as_fn_error $? "failed to load site script $ac_site_file
3407See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003408 fi
3409done
3410
3411if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003412 # Some versions of bash will fail to source /dev/null (special files
3413 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3414 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003415 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003416$as_echo "$as_me: loading cache $cache_file" >&6;}
3417 case $cache_file in
3418 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3419 *) . "./$cache_file";;
3420 esac
3421 fi
3422else
cristy8b350f62009-11-15 23:12:43 +00003423 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003424$as_echo "$as_me: creating cache $cache_file" >&6;}
3425 >$cache_file
3426fi
3427
cristycd4c5312009-11-22 01:19:08 +00003428as_fn_append ac_header_list " stdlib.h"
3429as_fn_append ac_header_list " unistd.h"
3430as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003431# Check that the precious variables saved in the cache have kept the same
3432# value.
3433ac_cache_corrupted=false
3434for ac_var in $ac_precious_vars; do
3435 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3436 eval ac_new_set=\$ac_env_${ac_var}_set
3437 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3438 eval ac_new_val=\$ac_env_${ac_var}_value
3439 case $ac_old_set,$ac_new_set in
3440 set,)
cristy8b350f62009-11-15 23:12:43 +00003441 { $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 +00003442$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3443 ac_cache_corrupted=: ;;
3444 ,set)
cristy8b350f62009-11-15 23:12:43 +00003445 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003446$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3447 ac_cache_corrupted=: ;;
3448 ,);;
3449 *)
3450 if test "x$ac_old_val" != "x$ac_new_val"; then
3451 # differences in whitespace do not lead to failure.
3452 ac_old_val_w=`echo x $ac_old_val`
3453 ac_new_val_w=`echo x $ac_new_val`
3454 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003455 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003456$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3457 ac_cache_corrupted=:
3458 else
cristy8b350f62009-11-15 23:12:43 +00003459 { $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 +00003460$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3461 eval $ac_var=\$ac_old_val
3462 fi
cristy8b350f62009-11-15 23:12:43 +00003463 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003464$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003465 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003466$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3467 fi;;
3468 esac
3469 # Pass precious variables to config.status.
3470 if test "$ac_new_set" = set; then
3471 case $ac_new_val in
3472 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3473 *) ac_arg=$ac_var=$ac_new_val ;;
3474 esac
3475 case " $ac_configure_args " in
3476 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003477 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003478 esac
3479 fi
3480done
3481if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003482 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003483$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003484 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003485$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003486 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003487fi
cristy8b350f62009-11-15 23:12:43 +00003488## -------------------- ##
3489## Main body of script. ##
3490## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003491
3492ac_ext=c
3493ac_cpp='$CPP $CPPFLAGS'
3494ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3495ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3496ac_compiler_gnu=$ac_cv_c_compiler_gnu
3497
3498
3499
3500ac_aux_dir=
3501for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003502 if test -f "$ac_dir/install-sh"; then
3503 ac_aux_dir=$ac_dir
3504 ac_install_sh="$ac_aux_dir/install-sh -c"
3505 break
3506 elif test -f "$ac_dir/install.sh"; then
3507 ac_aux_dir=$ac_dir
3508 ac_install_sh="$ac_aux_dir/install.sh -c"
3509 break
3510 elif test -f "$ac_dir/shtool"; then
3511 ac_aux_dir=$ac_dir
3512 ac_install_sh="$ac_aux_dir/shtool install -c"
3513 break
3514 fi
cristy3ed852e2009-09-05 21:47:34 +00003515done
3516if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003517 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003518fi
3519
3520# These three variables are undocumented and unsupported,
3521# and are intended to be withdrawn in a future Autoconf release.
3522# They can cause serious problems if a builder's source tree is in a directory
3523# whose full name contains unusual characters.
3524ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3525ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3526ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3527
3528
3529
3530
3531ac_config_headers="$ac_config_headers config/config.h"
3532
cristy24fc1fe2010-10-23 21:13:01 +00003533
cristy01ff9f32012-12-01 18:15:29 +00003534ac_config_commands="$ac_config_commands MagickCore/magick-baseconfig.h"
cristy73bd4a52010-10-05 11:24:23 +00003535
cristy5a3dc992014-12-05 19:50:04 +00003536ac_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"
cristy3ed852e2009-09-05 21:47:34 +00003537
3538
3539#
3540# Save initial user-tunable values
3541#
3542USER_LIBS=$LIBS
3543for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3544 eval isset=\${$var+set}
3545 if test "$isset" = 'set'; then
3546 eval val=$`echo $var`
3547 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3548 fi
3549done
3550
3551
3552CONFIGURE_ARGS="$0 ${ac_configure_args}"
3553
3554
3555# Source file containing package/library versioning information.
3556. ${srcdir}/version.sh
3557
cristy15a88782010-01-31 23:24:49 +00003558echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003559# Make sure we can run config.sub.
3560$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003561 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003562
cristy8b350f62009-11-15 23:12:43 +00003563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003564$as_echo_n "checking build system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003565if ${ac_cv_build+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003566 $as_echo_n "(cached) " >&6
3567else
3568 ac_build_alias=$build_alias
3569test "x$ac_build_alias" = x &&
3570 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3571test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003572 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003573ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003574 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003575
3576fi
cristy8b350f62009-11-15 23:12:43 +00003577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003578$as_echo "$ac_cv_build" >&6; }
3579case $ac_cv_build in
3580*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003581*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003582esac
3583build=$ac_cv_build
3584ac_save_IFS=$IFS; IFS='-'
3585set x $ac_cv_build
3586shift
3587build_cpu=$1
3588build_vendor=$2
3589shift; shift
3590# Remember, the first character of IFS is used to create $*,
3591# except with old shells:
3592build_os=$*
3593IFS=$ac_save_IFS
3594case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3595
3596
cristy8b350f62009-11-15 23:12:43 +00003597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003598$as_echo_n "checking host system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003599if ${ac_cv_host+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003600 $as_echo_n "(cached) " >&6
3601else
3602 if test "x$host_alias" = x; then
3603 ac_cv_host=$ac_cv_build
3604else
3605 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003606 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003607fi
3608
3609fi
cristy8b350f62009-11-15 23:12:43 +00003610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003611$as_echo "$ac_cv_host" >&6; }
3612case $ac_cv_host in
3613*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003614*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003615esac
3616host=$ac_cv_host
3617ac_save_IFS=$IFS; IFS='-'
3618set x $ac_cv_host
3619shift
3620host_cpu=$1
3621host_vendor=$2
3622shift; shift
3623# Remember, the first character of IFS is used to create $*,
3624# except with old shells:
3625host_os=$*
3626IFS=$ac_save_IFS
3627case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3628
3629
cristy8b350f62009-11-15 23:12:43 +00003630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003631$as_echo_n "checking target system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003632if ${ac_cv_target+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003633 $as_echo_n "(cached) " >&6
3634else
3635 if test "x$target_alias" = x; then
3636 ac_cv_target=$ac_cv_host
3637else
3638 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003639 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003640fi
3641
3642fi
cristy8b350f62009-11-15 23:12:43 +00003643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003644$as_echo "$ac_cv_target" >&6; }
3645case $ac_cv_target in
3646*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003647*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003648esac
3649target=$ac_cv_target
3650ac_save_IFS=$IFS; IFS='-'
3651set x $ac_cv_target
3652shift
3653target_cpu=$1
3654target_vendor=$2
3655shift; shift
3656# Remember, the first character of IFS is used to create $*,
3657# except with old shells:
3658target_os=$*
3659IFS=$ac_save_IFS
3660case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3661
3662
3663# The aliases save the names the user supplied, while $host etc.
3664# will get canonicalized.
3665test -n "$target_alias" &&
3666 test "$program_prefix$program_suffix$program_transform_name" = \
3667 NONENONEs,x,x, &&
3668 program_prefix=${target_alias}-
3669
cristy837d6dc2010-02-27 01:16:57 +00003670
3671
3672
cristy8be34142012-06-17 14:07:18 +00003673
cristy19615b82011-04-13 20:02:01 +00003674MAGICK_TARGET_CPU=$host_cpu
cristy3225a072010-04-17 01:47:28 +00003675
3676
cristy27d53d62012-07-29 23:30:07 +00003677cat >>confdefs.h <<_ACEOF
3678#define MAGICK_TARGET_CPU $MAGICK_TARGET_CPU
3679_ACEOF
3680
3681
cristy19615b82011-04-13 20:02:01 +00003682MAGICK_TARGET_VENDOR=$host_vendor
cristy3225a072010-04-17 01:47:28 +00003683
3684
cristy27d53d62012-07-29 23:30:07 +00003685cat >>confdefs.h <<_ACEOF
3686#define MAGICK_TARGET_VENDOR $MAGICK_TARGET_VENDOR
3687_ACEOF
3688
3689
cristy19615b82011-04-13 20:02:01 +00003690MAGICK_TARGET_OS=$host_os
cristy3225a072010-04-17 01:47:28 +00003691
3692
cristy27d53d62012-07-29 23:30:07 +00003693cat >>confdefs.h <<_ACEOF
3694#define MAGICK_TARGET_OS $MAGICK_TARGET_OS
3695_ACEOF
3696
3697
cristy37442762013-02-10 21:07:23 +00003698
3699# Substitute versioning
3700MAGICK_MAJOR_VERSION=7
3701
3702MAGICK_MINOR_VERSION=0
3703
3704MAGICK_MICRO_VERSION=0
3705
3706MAGICK_PATCHLEVEL_VERSION=0
3707
3708MAGICK_VERSION=7.0.0-0
3709
cristy5a3dc992014-12-05 19:50:04 +00003710MAGICK_SVN_REVISION=17128:17158M
cristy37442762013-02-10 21:07:23 +00003711
3712
cristy3ed852e2009-09-05 21:47:34 +00003713# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003714MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3715
3716MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3717
cristy37442762013-02-10 21:07:23 +00003718
cristy5ed9c6e2013-07-14 21:20:31 +00003719MAGICKPP_LIBRARY_CURRENT_MIN=`expr $MAGICKPP_LIBRARY_CURRENT - $MAGICKPP_LIBRARY_AGE`
3720
3721MAGICKPP_LIBRARY_VERSION_INFO=$MAGICKPP_LIBRARY_CURRENT:$MAGICKPP_LIBRARY_REVISION:$MAGICKPP_LIBRARY_AGE
3722
3723
cristyd694ca32011-03-27 21:42:54 +00003724
cristy3ed852e2009-09-05 21:47:34 +00003725# Ensure that make can run correctly
cristy73bd4a52010-10-05 11:24:23 +00003726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3727$as_echo_n "checking whether build environment is sane... " >&6; }
cristy73bd4a52010-10-05 11:24:23 +00003728# Reject unsafe characters in $srcdir or the absolute working directory
3729# name. Accept space and tab only in the latter.
3730am_lf='
3731'
3732case `pwd` in
3733 *[\\\"\#\$\&\'\`$am_lf]*)
cristy98dddb52010-11-04 00:30:15 +00003734 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003735esac
3736case $srcdir in
3737 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristyc0890a62012-07-19 00:18:20 +00003738 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003739esac
cristy3ed852e2009-09-05 21:47:34 +00003740
cristyc0890a62012-07-19 00:18:20 +00003741# Do 'set' in a subshell so we don't clobber the current shell's
cristy73bd4a52010-10-05 11:24:23 +00003742# arguments. Must try -L first in case configure is actually a
3743# symlink; some systems play weird games with the mod time of symlinks
3744# (eg FreeBSD returns the mod time of the symlink's containing
3745# directory).
3746if (
cristyc0890a62012-07-19 00:18:20 +00003747 am_has_slept=no
3748 for am_try in 1 2; do
3749 echo "timestamp, slept: $am_has_slept" > conftest.file
3750 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3751 if test "$*" = "X"; then
3752 # -L didn't work.
3753 set X `ls -t "$srcdir/configure" conftest.file`
3754 fi
3755 if test "$*" != "X $srcdir/configure conftest.file" \
3756 && test "$*" != "X conftest.file $srcdir/configure"; then
cristy73bd4a52010-10-05 11:24:23 +00003757
cristyc0890a62012-07-19 00:18:20 +00003758 # If neither matched, then we have a broken ls. This can happen
3759 # if, for instance, CONFIG_SHELL is bash and it inherits a
3760 # broken ls alias from the environment. This has actually
3761 # happened. Such a system could not be considered "sane".
3762 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3763 alias in your environment" "$LINENO" 5
3764 fi
3765 if test "$2" = conftest.file || test $am_try -eq 2; then
3766 break
3767 fi
3768 # Just in case.
3769 sleep 1
3770 am_has_slept=yes
3771 done
cristy73bd4a52010-10-05 11:24:23 +00003772 test "$2" = conftest.file
3773 )
3774then
3775 # Ok.
3776 :
3777else
cristy98dddb52010-11-04 00:30:15 +00003778 as_fn_error $? "newly created file is older than distributed files!
cristy73bd4a52010-10-05 11:24:23 +00003779Check your system clock" "$LINENO" 5
3780fi
3781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3782$as_echo "yes" >&6; }
cristyc0890a62012-07-19 00:18:20 +00003783# If we didn't sleep, we still need to ensure time stamps of config.status and
3784# generated files are strictly newer.
3785am_sleep_pid=
3786if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3787 ( sleep 1 ) &
3788 am_sleep_pid=$!
3789fi
cristy73bd4a52010-10-05 11:24:23 +00003790
cristyc0890a62012-07-19 00:18:20 +00003791rm -f conftest.file
3792
3793
cristya5bda012013-11-03 18:05:38 +00003794am__api_version='1.14'
cristy73bd4a52010-10-05 11:24:23 +00003795
3796# Find a good install program. We prefer a C program (faster),
3797# so one script is as good as another. But avoid the broken or
3798# incompatible versions:
3799# SysV /etc/install, /usr/sbin/install
3800# SunOS /usr/etc/install
3801# IRIX /sbin/install
3802# AIX /bin/install
3803# AmigaOS /C/install, which installs bootblocks on floppy discs
3804# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3805# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3806# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3807# OS/2's system install, which has a completely different semantic
3808# ./install, which can be erroneously created by make from ./install.sh.
3809# Reject install programs that cannot install multiple files.
3810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3811$as_echo_n "checking for a BSD-compatible install... " >&6; }
3812if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003813if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003814 $as_echo_n "(cached) " >&6
3815else
3816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3817for as_dir in $PATH
3818do
3819 IFS=$as_save_IFS
3820 test -z "$as_dir" && as_dir=.
3821 # Account for people who put trailing slashes in PATH elements.
3822case $as_dir/ in #((
3823 ./ | .// | /[cC]/* | \
3824 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3825 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3826 /usr/ucb/* ) ;;
3827 *)
3828 # OSF1 and SCO ODT 3.0 have their own names for install.
3829 # Don't use installbsd from OSF since it installs stuff as root
3830 # by default.
3831 for ac_prog in ginstall scoinst install; do
3832 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003833 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003834 if test $ac_prog = install &&
3835 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3836 # AIX install. It has an incompatible calling convention.
3837 :
3838 elif test $ac_prog = install &&
3839 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3840 # program-specific install script used by HP pwplus--don't use.
3841 :
3842 else
3843 rm -rf conftest.one conftest.two conftest.dir
3844 echo one > conftest.one
3845 echo two > conftest.two
3846 mkdir conftest.dir
3847 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3848 test -s conftest.one && test -s conftest.two &&
3849 test -s conftest.dir/conftest.one &&
3850 test -s conftest.dir/conftest.two
3851 then
3852 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3853 break 3
3854 fi
3855 fi
3856 fi
3857 done
3858 done
3859 ;;
3860esac
3861
3862 done
3863IFS=$as_save_IFS
3864
3865rm -rf conftest.one conftest.two conftest.dir
3866
3867fi
3868 if test "${ac_cv_path_install+set}" = set; then
3869 INSTALL=$ac_cv_path_install
3870 else
3871 # As a last resort, use the slow shell script. Don't cache a
3872 # value for INSTALL within a source directory, because that will
3873 # break other packages using the cache if that directory is
3874 # removed, or if the value is a relative name.
3875 INSTALL=$ac_install_sh
3876 fi
3877fi
3878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3879$as_echo "$INSTALL" >&6; }
3880
3881# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3882# It thinks the first close brace ends the variable substitution.
3883test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3884
3885test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3886
3887test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3888
3889test "$program_prefix" != NONE &&
3890 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3891# Use a double $ so make ignores it.
3892test "$program_suffix" != NONE &&
3893 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3894# Double any \ or $.
3895# By default was `s,x,x', remove it if useless.
3896ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3897program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3898
3899# expand $ac_aux_dir to an absolute path
3900am_aux_dir=`cd $ac_aux_dir && pwd`
3901
3902if test x"${MISSING+set}" != xset; then
3903 case $am_aux_dir in
3904 *\ * | *\ *)
3905 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3906 *)
3907 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3908 esac
3909fi
3910# Use eval to expand $SHELL
cristy58d34aa2013-01-24 15:11:54 +00003911if eval "$MISSING --is-lightweight"; then
3912 am_missing_run="$MISSING "
cristy73bd4a52010-10-05 11:24:23 +00003913else
3914 am_missing_run=
cristyc0890a62012-07-19 00:18:20 +00003915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3916$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
cristy73bd4a52010-10-05 11:24:23 +00003917fi
3918
3919if test x"${install_sh}" != xset; then
3920 case $am_aux_dir in
3921 *\ * | *\ *)
3922 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3923 *)
3924 install_sh="\${SHELL} $am_aux_dir/install-sh"
3925 esac
3926fi
3927
cristyc0890a62012-07-19 00:18:20 +00003928# Installed binaries are usually stripped using 'strip' when the user
3929# run "make install-strip". However 'strip' might not be the right
cristy73bd4a52010-10-05 11:24:23 +00003930# tool to use in cross-compilation environments, therefore Automake
cristyc0890a62012-07-19 00:18:20 +00003931# will honor the 'STRIP' environment variable to overrule this program.
cristy73bd4a52010-10-05 11:24:23 +00003932if test "$cross_compiling" != no; then
3933 if test -n "$ac_tool_prefix"; then
3934 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3935set dummy ${ac_tool_prefix}strip; ac_word=$2
3936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3937$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003938if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003939 $as_echo_n "(cached) " >&6
3940else
3941 if test -n "$STRIP"; then
3942 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3943else
3944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3945for as_dir in $PATH
3946do
3947 IFS=$as_save_IFS
3948 test -z "$as_dir" && as_dir=.
3949 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003951 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3953 break 2
3954 fi
3955done
3956 done
3957IFS=$as_save_IFS
3958
3959fi
3960fi
3961STRIP=$ac_cv_prog_STRIP
3962if test -n "$STRIP"; then
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3964$as_echo "$STRIP" >&6; }
3965else
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3967$as_echo "no" >&6; }
3968fi
3969
3970
3971fi
3972if test -z "$ac_cv_prog_STRIP"; then
3973 ac_ct_STRIP=$STRIP
3974 # Extract the first word of "strip", so it can be a program name with args.
3975set dummy strip; ac_word=$2
3976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3977$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003978if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003979 $as_echo_n "(cached) " >&6
3980else
3981 if test -n "$ac_ct_STRIP"; then
3982 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3983else
3984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3985for as_dir in $PATH
3986do
3987 IFS=$as_save_IFS
3988 test -z "$as_dir" && as_dir=.
3989 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003991 ac_cv_prog_ac_ct_STRIP="strip"
3992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3993 break 2
3994 fi
3995done
3996 done
3997IFS=$as_save_IFS
3998
3999fi
4000fi
4001ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4002if test -n "$ac_ct_STRIP"; then
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4004$as_echo "$ac_ct_STRIP" >&6; }
4005else
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4007$as_echo "no" >&6; }
4008fi
4009
4010 if test "x$ac_ct_STRIP" = x; then
4011 STRIP=":"
4012 else
4013 case $cross_compiling:$ac_tool_warned in
4014yes:)
4015{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4016$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4017ac_tool_warned=yes ;;
4018esac
4019 STRIP=$ac_ct_STRIP
4020 fi
4021else
4022 STRIP="$ac_cv_prog_STRIP"
4023fi
4024
4025fi
4026INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4027
4028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4029$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4030if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00004031 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004032 $as_echo_n "(cached) " >&6
4033else
4034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4035for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4036do
4037 IFS=$as_save_IFS
4038 test -z "$as_dir" && as_dir=.
4039 for ac_prog in mkdir gmkdir; do
4040 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004041 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
cristy73bd4a52010-10-05 11:24:23 +00004042 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4043 'mkdir (GNU coreutils) '* | \
4044 'mkdir (coreutils) '* | \
4045 'mkdir (fileutils) '4.1*)
4046 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4047 break 3;;
4048 esac
4049 done
4050 done
4051 done
4052IFS=$as_save_IFS
4053
4054fi
4055
4056 test -d ./--version && rmdir ./--version
4057 if test "${ac_cv_path_mkdir+set}" = set; then
4058 MKDIR_P="$ac_cv_path_mkdir -p"
4059 else
4060 # As a last resort, use the slow shell script. Don't cache a
4061 # value for MKDIR_P within a source directory, because that will
4062 # break other packages using the cache if that directory is
4063 # removed, or if the value is a relative name.
4064 MKDIR_P="$ac_install_sh -d"
4065 fi
4066fi
4067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4068$as_echo "$MKDIR_P" >&6; }
4069
cristy73bd4a52010-10-05 11:24:23 +00004070for ac_prog in gawk mawk nawk awk
4071do
4072 # Extract the first word of "$ac_prog", so it can be a program name with args.
4073set dummy $ac_prog; ac_word=$2
4074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4075$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004076if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004077 $as_echo_n "(cached) " >&6
4078else
4079 if test -n "$AWK"; then
4080 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4081else
4082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4083for as_dir in $PATH
4084do
4085 IFS=$as_save_IFS
4086 test -z "$as_dir" && as_dir=.
4087 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00004089 ac_cv_prog_AWK="$ac_prog"
4090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4091 break 2
4092 fi
4093done
4094 done
4095IFS=$as_save_IFS
4096
4097fi
4098fi
4099AWK=$ac_cv_prog_AWK
4100if test -n "$AWK"; then
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4102$as_echo "$AWK" >&6; }
4103else
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4105$as_echo "no" >&6; }
4106fi
4107
4108
4109 test -n "$AWK" && break
4110done
4111
4112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4113$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4114set x ${MAKE-make}
4115ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00004116if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004117 $as_echo_n "(cached) " >&6
4118else
4119 cat >conftest.make <<\_ACEOF
4120SHELL = /bin/sh
4121all:
4122 @echo '@@@%%%=$(MAKE)=@@@%%%'
4123_ACEOF
cristy98dddb52010-11-04 00:30:15 +00004124# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00004125case `${MAKE-make} -f conftest.make 2>/dev/null` in
4126 *@@@%%%=?*=@@@%%%*)
4127 eval ac_cv_prog_make_${ac_make}_set=yes;;
4128 *)
4129 eval ac_cv_prog_make_${ac_make}_set=no;;
4130esac
4131rm -f conftest.make
4132fi
4133if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4135$as_echo "yes" >&6; }
4136 SET_MAKE=
4137else
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4139$as_echo "no" >&6; }
4140 SET_MAKE="MAKE=${MAKE-make}"
4141fi
4142
4143rm -rf .tst 2>/dev/null
4144mkdir .tst 2>/dev/null
4145if test -d .tst; then
4146 am__leading_dot=.
4147else
4148 am__leading_dot=_
4149fi
4150rmdir .tst 2>/dev/null
4151
cristya448bd22011-10-14 12:38:13 +00004152# Check whether --enable-silent-rules was given.
4153if test "${enable_silent_rules+set}" = set; then :
4154 enableval=$enable_silent_rules;
4155fi
4156
cristyc0890a62012-07-19 00:18:20 +00004157case $enable_silent_rules in # (((
4158 yes) AM_DEFAULT_VERBOSITY=0;;
4159 no) AM_DEFAULT_VERBOSITY=1;;
4160 *) AM_DEFAULT_VERBOSITY=1;;
cristya448bd22011-10-14 12:38:13 +00004161esac
cristyc3fb77b2012-02-06 01:49:41 +00004162am_make=${MAKE-make}
4163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4164$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4165if ${am_cv_make_support_nested_variables+:} false; then :
4166 $as_echo_n "(cached) " >&6
4167else
4168 if $as_echo 'TRUE=$(BAR$(V))
4169BAR0=false
4170BAR1=true
4171V=1
4172am__doit:
4173 @$(TRUE)
4174.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4175 am_cv_make_support_nested_variables=yes
4176else
4177 am_cv_make_support_nested_variables=no
4178fi
4179fi
4180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4181$as_echo "$am_cv_make_support_nested_variables" >&6; }
4182if test $am_cv_make_support_nested_variables = yes; then
4183 AM_V='$(V)'
4184 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4185else
4186 AM_V=$AM_DEFAULT_VERBOSITY
4187 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4188fi
cristya448bd22011-10-14 12:38:13 +00004189AM_BACKSLASH='\'
4190
cristy73bd4a52010-10-05 11:24:23 +00004191if test "`cd $srcdir && pwd`" != "`pwd`"; then
4192 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4193 # is not polluted with repeated "-I."
4194 am__isrc=' -I$(srcdir)'
4195 # test to see if srcdir already configured
4196 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00004197 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00004198 fi
4199fi
4200
4201# test whether we have cygpath
4202if test -z "$CYGPATH_W"; then
4203 if (cygpath --version) >/dev/null 2>/dev/null; then
4204 CYGPATH_W='cygpath -w'
4205 else
4206 CYGPATH_W=echo
4207 fi
4208fi
4209
4210
4211# Define the identity of the package.
cristy09b53e12011-10-14 12:47:22 +00004212 PACKAGE='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +00004213 VERSION='7.0.0-0'
cristy73bd4a52010-10-05 11:24:23 +00004214
4215
cristya448bd22011-10-14 12:38:13 +00004216cat >>confdefs.h <<_ACEOF
4217#define PACKAGE "$PACKAGE"
4218_ACEOF
4219
4220
4221cat >>confdefs.h <<_ACEOF
4222#define VERSION "$VERSION"
4223_ACEOF
4224
cristy73bd4a52010-10-05 11:24:23 +00004225# Some tools Automake needs.
4226
4227ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4228
4229
4230AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4231
4232
4233AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4234
4235
4236AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4237
4238
4239MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4240
cristyc0890a62012-07-19 00:18:20 +00004241# For better backward compatibility. To be removed once Automake 1.9.x
4242# dies out for good. For more background, see:
4243# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4244# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4245mkdir_p='$(MKDIR_P)'
4246
cristy73bd4a52010-10-05 11:24:23 +00004247# We need awk for the "check" target. The system "awk" is bad on
4248# some platforms.
cristyc3fb77b2012-02-06 01:49:41 +00004249# Always define AMTAR for backward compatibility. Yes, it's still used
4250# in the wild :-( We should find a proper way to deprecate it ...
4251AMTAR='$${TAR-tar}'
cristy73bd4a52010-10-05 11:24:23 +00004252
cristye69bdbe2013-05-03 21:40:44 +00004253
4254# We'll loop over all known methods to create a tar archive until one works.
4255_am_tools='gnutar pax cpio none'
4256
cristyc3fb77b2012-02-06 01:49:41 +00004257am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
cristy73bd4a52010-10-05 11:24:23 +00004258
4259
4260
4261
4262
cristy3ed852e2009-09-05 21:47:34 +00004263
cristya5bda012013-11-03 18:05:38 +00004264# POSIX will say in a future version that running "rm -f" with no argument
4265# is OK; and we want to be able to make that assumption in our Makefile
4266# recipes. So use an aggressive probe to check that the usage we want is
4267# actually supported "in the wild" to an acceptable degree.
4268# See automake bug#10828.
4269# To make any issue more visible, cause the running configure to be aborted
4270# by default if the 'rm' program in use doesn't match our expectations; the
4271# user can still override this though.
4272if rm -f && rm -fr && rm -rf; then : OK; else
4273 cat >&2 <<'END'
4274Oops!
4275
4276Your 'rm' program seems unable to run without file operands specified
4277on the command line, even when the '-f' option is present. This is contrary
4278to the behaviour of most rm programs out there, and not conforming with
4279the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4280
4281Please tell bug-automake@gnu.org about your system, including the value
4282of your $PATH and any error possibly output before this message. This
4283can help us improve future automake versions.
4284
4285END
4286 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4287 echo 'Configuration will proceed anyway, since you have set the' >&2
4288 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4289 echo >&2
4290 else
4291 cat >&2 <<'END'
4292Aborting the configuration process, to ensure you take notice of the issue.
4293
4294You can download and install GNU coreutils to get an 'rm' implementation
4295that behaves properly: <http://www.gnu.org/software/coreutils/>.
4296
4297If you want to complete the configuration process using your problematic
4298'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4299to "yes", and re-run configure.
4300
4301END
4302 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4303 fi
4304fi
cristye69bdbe2013-05-03 21:40:44 +00004305
cristy3ed852e2009-09-05 21:47:34 +00004306# Enable support for silent build rules
cristy73bd4a52010-10-05 11:24:23 +00004307# Check whether --enable-silent-rules was given.
4308if test "${enable_silent_rules+set}" = set; then :
4309 enableval=$enable_silent_rules;
4310fi
4311
cristyc0890a62012-07-19 00:18:20 +00004312case $enable_silent_rules in # (((
4313 yes) AM_DEFAULT_VERBOSITY=0;;
4314 no) AM_DEFAULT_VERBOSITY=1;;
4315 *) AM_DEFAULT_VERBOSITY=0;;
cristy73bd4a52010-10-05 11:24:23 +00004316esac
cristyc3fb77b2012-02-06 01:49:41 +00004317am_make=${MAKE-make}
4318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4319$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4320if ${am_cv_make_support_nested_variables+:} false; then :
4321 $as_echo_n "(cached) " >&6
4322else
4323 if $as_echo 'TRUE=$(BAR$(V))
4324BAR0=false
4325BAR1=true
4326V=1
4327am__doit:
4328 @$(TRUE)
4329.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4330 am_cv_make_support_nested_variables=yes
4331else
4332 am_cv_make_support_nested_variables=no
4333fi
4334fi
4335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4336$as_echo "$am_cv_make_support_nested_variables" >&6; }
4337if test $am_cv_make_support_nested_variables = yes; then
4338 AM_V='$(V)'
4339 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4340else
4341 AM_V=$AM_DEFAULT_VERBOSITY
4342 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4343fi
cristy73bd4a52010-10-05 11:24:23 +00004344AM_BACKSLASH='\'
4345
cristy3ed852e2009-09-05 21:47:34 +00004346
cristyf279b692014-08-13 12:01:27 +00004347# versioning of library
cristy3ed852e2009-09-05 21:47:34 +00004348MAGICK_LIB_VERSION="0x"
4349if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4350 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4351fi
4352MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4353if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4354 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4355fi
4356MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4357if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4358 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4359fi
4360MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4361
4362
4363# Definition used to define MagickLibVersionText in version.h
4364MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4365
4366
4367# Definition used to define MagickLibVersionNumber in version.h
4368MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4369
4370
cristy5ed9c6e2013-07-14 21:20:31 +00004371MAGICKPP_LIB_VERSION="0x"
4372if test ${MAGICKPP_LIBRARY_CURRENT} -lt 10 ; then
4373 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4374fi
4375MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_CURRENT}
4376if test ${MAGICKPP_LIBRARY_AGE} -lt 10 ; then
4377 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4378fi
4379MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_AGE}
4380if test ${MAGICKPP_LIBRARY_REVISION} -lt 10 ; then
4381 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4382fi
4383MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_REVISION}
4384
4385
4386# Definition used to define MagickLibVersionText in version.h
4387MAGICKPP_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4388
4389
4390# Definition used to define MagickLibVersionNumber in version.h
4391MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4392
4393
4394
4395
cristy3ed852e2009-09-05 21:47:34 +00004396# Regenerate config.status if ChangeLog or version.sh is updated.
4397CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4398
4399
4400PERLMAINCC=$CC
4401
4402MAGICK_CFLAGS=''
4403MAGICK_CPPFLAGS=$CPPFLAGS_USER
4404MAGICK_PCFLAGS=$CPPFLAGS_USER
4405MAGICK_LDFLAGS=''
4406MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00004407MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00004408
4409#
4410# Evaluate shell variable equivalents to Makefile directory variables
4411#
4412if test "x$prefix" = xNONE; then
4413 prefix=$ac_default_prefix
4414fi
4415# Let make expand exec_prefix.
4416if test "x$exec_prefix" = xNONE; then
4417 exec_prefix='${prefix}'
4418fi
4419
4420#
4421eval "eval PREFIX_DIR=${prefix}"
4422
4423eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4424
4425eval "eval BIN_DIR=$bindir"
4426
4427eval "eval SBIN_DIR=$sbindir"
4428
4429eval "eval LIBEXEC_DIR=$libexecdir"
4430
4431eval "eval DATA_DIR=$datadir"
4432
cristy4e65ec22012-04-08 01:33:27 +00004433eval "eval DOC_DIR=$datadir/doc"
cristyd55889c2011-03-27 00:50:24 +00004434
cristy3ed852e2009-09-05 21:47:34 +00004435eval "eval SYSCONF_DIR=$sysconfdir"
4436
4437eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4438
4439eval "eval LOCALSTATE_DIR=$localstatedir"
4440
4441eval "eval LIB_DIR=$libdir"
4442
4443eval "eval INCLUDE_DIR=$includedir"
4444
4445eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4446
4447eval "eval INFO_DIR=$infodir"
4448
4449eval "eval MAN_DIR=$mandir"
4450
4451
4452# Get full paths to source and build directories
4453srcdirfull="`cd $srcdir && pwd`"
4454builddir="`pwd`"
4455
4456#
4457# Compute variables useful for running uninstalled software.
4458#
4459MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4460MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4461MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4462MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4463DIRSEP=':'
4464case "${build_os}" in
4465 mingw* )
4466 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4467 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4468 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4469 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4470 DIRSEP=';'
4471 ;;
4472esac
4473case "${host_os}" in
4474 mingw* )
4475 DIRSEP=';'
4476 ;;
4477esac
4478
4479
4480
4481
4482
4483
cristya0b81c32010-01-22 02:54:33 +00004484
4485#
4486# Enable OS features.
4487#
cristy73bd4a52010-10-05 11:24:23 +00004488DEPDIR="${am__leading_dot}deps"
4489
4490ac_config_commands="$ac_config_commands depfiles"
4491
4492
4493am_make=${MAKE-make}
4494cat > confinc << 'END'
4495am__doit:
4496 @echo this is the am__doit target
4497.PHONY: am__doit
4498END
4499# If we don't find an include directive, just comment out the code.
4500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4501$as_echo_n "checking for style of include used by $am_make... " >&6; }
4502am__include="#"
4503am__quote=
4504_am_result=none
4505# First try GNU make style include.
4506echo "include confinc" > confmf
cristyc0890a62012-07-19 00:18:20 +00004507# Ignore all kinds of additional output from 'make'.
cristy73bd4a52010-10-05 11:24:23 +00004508case `$am_make -s -f confmf 2> /dev/null` in #(
4509*the\ am__doit\ target*)
4510 am__include=include
4511 am__quote=
4512 _am_result=GNU
4513 ;;
4514esac
4515# Now try BSD make style include.
4516if test "$am__include" = "#"; then
4517 echo '.include "confinc"' > confmf
4518 case `$am_make -s -f confmf 2> /dev/null` in #(
4519 *the\ am__doit\ target*)
4520 am__include=.include
4521 am__quote="\""
4522 _am_result=BSD
4523 ;;
4524 esac
4525fi
4526
4527
4528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4529$as_echo "$_am_result" >&6; }
4530rm -f confinc confmf
4531
4532# Check whether --enable-dependency-tracking was given.
4533if test "${enable_dependency_tracking+set}" = set; then :
4534 enableval=$enable_dependency_tracking;
4535fi
4536
4537if test "x$enable_dependency_tracking" != xno; then
4538 am_depcomp="$ac_aux_dir/depcomp"
4539 AMDEPBACKSLASH='\'
cristy7247bba2012-02-05 16:37:27 +00004540 am__nodep='_no'
cristy73bd4a52010-10-05 11:24:23 +00004541fi
4542 if test "x$enable_dependency_tracking" != xno; then
4543 AMDEP_TRUE=
4544 AMDEP_FALSE='#'
4545else
4546 AMDEP_TRUE='#'
4547 AMDEP_FALSE=
4548fi
4549
4550
cristy3ed852e2009-09-05 21:47:34 +00004551ac_ext=c
4552ac_cpp='$CPP $CPPFLAGS'
4553ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4554ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4555ac_compiler_gnu=$ac_cv_c_compiler_gnu
4556if test -n "$ac_tool_prefix"; then
4557 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4558set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004560$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004561if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004562 $as_echo_n "(cached) " >&6
4563else
4564 if test -n "$CC"; then
4565 ac_cv_prog_CC="$CC" # Let the user override the test.
4566else
4567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4568for as_dir in $PATH
4569do
4570 IFS=$as_save_IFS
4571 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004572 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004574 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004576 break 2
4577 fi
4578done
cristy8b350f62009-11-15 23:12:43 +00004579 done
cristy3ed852e2009-09-05 21:47:34 +00004580IFS=$as_save_IFS
4581
4582fi
4583fi
4584CC=$ac_cv_prog_CC
4585if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004587$as_echo "$CC" >&6; }
4588else
cristy8b350f62009-11-15 23:12:43 +00004589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004590$as_echo "no" >&6; }
4591fi
4592
4593
4594fi
4595if test -z "$ac_cv_prog_CC"; then
4596 ac_ct_CC=$CC
4597 # Extract the first word of "gcc", so it can be a program name with args.
4598set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004600$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004601if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004602 $as_echo_n "(cached) " >&6
4603else
4604 if test -n "$ac_ct_CC"; then
4605 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4606else
4607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4608for as_dir in $PATH
4609do
4610 IFS=$as_save_IFS
4611 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004612 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004614 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004616 break 2
4617 fi
4618done
cristy8b350f62009-11-15 23:12:43 +00004619 done
cristy3ed852e2009-09-05 21:47:34 +00004620IFS=$as_save_IFS
4621
4622fi
4623fi
4624ac_ct_CC=$ac_cv_prog_ac_ct_CC
4625if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004627$as_echo "$ac_ct_CC" >&6; }
4628else
cristy8b350f62009-11-15 23:12:43 +00004629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004630$as_echo "no" >&6; }
4631fi
4632
4633 if test "x$ac_ct_CC" = x; then
4634 CC=""
4635 else
4636 case $cross_compiling:$ac_tool_warned in
4637yes:)
cristy8b350f62009-11-15 23:12:43 +00004638{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004639$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4640ac_tool_warned=yes ;;
4641esac
4642 CC=$ac_ct_CC
4643 fi
4644else
4645 CC="$ac_cv_prog_CC"
4646fi
4647
4648if test -z "$CC"; then
4649 if test -n "$ac_tool_prefix"; then
4650 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4651set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004653$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004654if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004655 $as_echo_n "(cached) " >&6
4656else
4657 if test -n "$CC"; then
4658 ac_cv_prog_CC="$CC" # Let the user override the test.
4659else
4660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4661for as_dir in $PATH
4662do
4663 IFS=$as_save_IFS
4664 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004665 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004667 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004669 break 2
4670 fi
4671done
cristy8b350f62009-11-15 23:12:43 +00004672 done
cristy3ed852e2009-09-05 21:47:34 +00004673IFS=$as_save_IFS
4674
4675fi
4676fi
4677CC=$ac_cv_prog_CC
4678if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004680$as_echo "$CC" >&6; }
4681else
cristy8b350f62009-11-15 23:12:43 +00004682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004683$as_echo "no" >&6; }
4684fi
4685
4686
4687 fi
4688fi
4689if test -z "$CC"; then
4690 # Extract the first word of "cc", so it can be a program name with args.
4691set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004693$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004694if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004695 $as_echo_n "(cached) " >&6
4696else
4697 if test -n "$CC"; then
4698 ac_cv_prog_CC="$CC" # Let the user override the test.
4699else
4700 ac_prog_rejected=no
4701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4702for as_dir in $PATH
4703do
4704 IFS=$as_save_IFS
4705 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004706 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004708 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4709 ac_prog_rejected=yes
4710 continue
4711 fi
4712 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004714 break 2
4715 fi
4716done
cristy8b350f62009-11-15 23:12:43 +00004717 done
cristy3ed852e2009-09-05 21:47:34 +00004718IFS=$as_save_IFS
4719
4720if test $ac_prog_rejected = yes; then
4721 # We found a bogon in the path, so make sure we never use it.
4722 set dummy $ac_cv_prog_CC
4723 shift
4724 if test $# != 0; then
4725 # We chose a different compiler from the bogus one.
4726 # However, it has the same basename, so the bogon will be chosen
4727 # first if we set CC to just the basename; use the full file name.
4728 shift
4729 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4730 fi
4731fi
4732fi
4733fi
4734CC=$ac_cv_prog_CC
4735if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004737$as_echo "$CC" >&6; }
4738else
cristy8b350f62009-11-15 23:12:43 +00004739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004740$as_echo "no" >&6; }
4741fi
4742
4743
4744fi
4745if test -z "$CC"; then
4746 if test -n "$ac_tool_prefix"; then
4747 for ac_prog in cl.exe
4748 do
4749 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4750set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004752$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004753if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004754 $as_echo_n "(cached) " >&6
4755else
4756 if test -n "$CC"; then
4757 ac_cv_prog_CC="$CC" # Let the user override the test.
4758else
4759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4760for as_dir in $PATH
4761do
4762 IFS=$as_save_IFS
4763 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004764 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004766 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004768 break 2
4769 fi
4770done
cristy8b350f62009-11-15 23:12:43 +00004771 done
cristy3ed852e2009-09-05 21:47:34 +00004772IFS=$as_save_IFS
4773
4774fi
4775fi
4776CC=$ac_cv_prog_CC
4777if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004779$as_echo "$CC" >&6; }
4780else
cristy8b350f62009-11-15 23:12:43 +00004781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004782$as_echo "no" >&6; }
4783fi
4784
4785
4786 test -n "$CC" && break
4787 done
4788fi
4789if test -z "$CC"; then
4790 ac_ct_CC=$CC
4791 for ac_prog in cl.exe
4792do
4793 # Extract the first word of "$ac_prog", so it can be a program name with args.
4794set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004796$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004797if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004798 $as_echo_n "(cached) " >&6
4799else
4800 if test -n "$ac_ct_CC"; then
4801 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4802else
4803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4804for as_dir in $PATH
4805do
4806 IFS=$as_save_IFS
4807 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004808 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004810 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004812 break 2
4813 fi
4814done
cristy8b350f62009-11-15 23:12:43 +00004815 done
cristy3ed852e2009-09-05 21:47:34 +00004816IFS=$as_save_IFS
4817
4818fi
4819fi
4820ac_ct_CC=$ac_cv_prog_ac_ct_CC
4821if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004823$as_echo "$ac_ct_CC" >&6; }
4824else
cristy8b350f62009-11-15 23:12:43 +00004825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004826$as_echo "no" >&6; }
4827fi
4828
4829
4830 test -n "$ac_ct_CC" && break
4831done
4832
4833 if test "x$ac_ct_CC" = x; then
4834 CC=""
4835 else
4836 case $cross_compiling:$ac_tool_warned in
4837yes:)
cristy8b350f62009-11-15 23:12:43 +00004838{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004839$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4840ac_tool_warned=yes ;;
4841esac
4842 CC=$ac_ct_CC
4843 fi
4844fi
4845
4846fi
4847
4848
cristy8b350f62009-11-15 23:12:43 +00004849test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004850$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004851as_fn_error $? "no acceptable C compiler found in \$PATH
4852See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004853
4854# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004855$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004856set X $ac_compile
4857ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004858for ac_option in --version -v -V -qversion; do
4859 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004860case "(($ac_try" in
4861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4862 *) ac_try_echo=$ac_try;;
4863esac
cristy8b350f62009-11-15 23:12:43 +00004864eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4865$as_echo "$ac_try_echo"; } >&5
4866 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004867 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004868 if test -s conftest.err; then
4869 sed '10a\
4870... rest of stderr output deleted ...
4871 10q' conftest.err >conftest.er1
4872 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004873 fi
cristycd4c5312009-11-22 01:19:08 +00004874 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4876 test $ac_status = 0; }
4877done
cristy3ed852e2009-09-05 21:47:34 +00004878
cristy8b350f62009-11-15 23:12:43 +00004879cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004880/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004881
cristy3ed852e2009-09-05 21:47:34 +00004882int
4883main ()
4884{
4885
4886 ;
4887 return 0;
4888}
4889_ACEOF
4890ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004891ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004892# Try to create an executable without -o first, disregard a.out.
4893# It will help us diagnose broken compilers, and finding out an intuition
4894# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4896$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004897ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4898
4899# The possible output files:
4900ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4901
4902ac_rmfiles=
4903for ac_file in $ac_files
4904do
4905 case $ac_file in
4906 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4907 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4908 esac
4909done
4910rm -f $ac_rmfiles
4911
cristy8b350f62009-11-15 23:12:43 +00004912if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004913case "(($ac_try" in
4914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4915 *) ac_try_echo=$ac_try;;
4916esac
cristy8b350f62009-11-15 23:12:43 +00004917eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4918$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004919 (eval "$ac_link_default") 2>&5
4920 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4922 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004923 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4924# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4925# in a Makefile. We should not override ac_cv_exeext if it was cached,
4926# so that the user can short-circuit this test for compilers unknown to
4927# Autoconf.
4928for ac_file in $ac_files ''
4929do
4930 test -f "$ac_file" || continue
4931 case $ac_file in
4932 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4933 ;;
4934 [ab].out )
4935 # We found the default executable, but exeext='' is most
4936 # certainly right.
4937 break;;
4938 *.* )
cristy8b350f62009-11-15 23:12:43 +00004939 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004940 then :; else
4941 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4942 fi
4943 # We set ac_cv_exeext here because the later test for it is not
4944 # safe: cross compilers may not add the suffix if given an `-o'
4945 # argument, so we may need to know it at that point already.
4946 # Even if this section looks crufty: it has the advantage of
4947 # actually working.
4948 break;;
4949 * )
4950 break;;
4951 esac
4952done
4953test "$ac_cv_exeext" = no && ac_cv_exeext=
4954
4955else
4956 ac_file=''
4957fi
cristy8b350f62009-11-15 23:12:43 +00004958if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4960$as_echo "no" >&6; }
4961$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004962sed 's/^/| /' conftest.$ac_ext >&5
4963
cristy8b350f62009-11-15 23:12:43 +00004964{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004965$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004966as_fn_error 77 "C compiler cannot create executables
4967See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004968else
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4970$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004971fi
cristycd4c5312009-11-22 01:19:08 +00004972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4973$as_echo_n "checking for C compiler default output file name... " >&6; }
4974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4975$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004976ac_exeext=$ac_cv_exeext
4977
cristycd4c5312009-11-22 01:19:08 +00004978rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004979ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004981$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004982if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004983case "(($ac_try" in
4984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4985 *) ac_try_echo=$ac_try;;
4986esac
cristy8b350f62009-11-15 23:12:43 +00004987eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4988$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004989 (eval "$ac_link") 2>&5
4990 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4992 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004993 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4994# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4995# work properly (i.e., refer to `conftest.exe'), while it won't with
4996# `rm'.
4997for ac_file in conftest.exe conftest conftest.*; do
4998 test -f "$ac_file" || continue
4999 case $ac_file in
5000 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5001 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5002 break;;
5003 * ) break;;
5004 esac
5005done
5006else
cristy8b350f62009-11-15 23:12:43 +00005007 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005008$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005009as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5010See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00005011fi
cristycd4c5312009-11-22 01:19:08 +00005012rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00005013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00005014$as_echo "$ac_cv_exeext" >&6; }
5015
5016rm -f conftest.$ac_ext
5017EXEEXT=$ac_cv_exeext
5018ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00005019cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5020/* end confdefs.h. */
5021#include <stdio.h>
5022int
5023main ()
5024{
5025FILE *f = fopen ("conftest.out", "w");
5026 return ferror (f) || fclose (f) != 0;
5027
5028 ;
5029 return 0;
5030}
5031_ACEOF
5032ac_clean_files="$ac_clean_files conftest.out"
5033# Check that the compiler produces executables we can run. If not, either
5034# the compiler is broken, or we cross compile.
5035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5036$as_echo_n "checking whether we are cross compiling... " >&6; }
5037if test "$cross_compiling" != yes; then
5038 { { ac_try="$ac_link"
5039case "(($ac_try" in
5040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5041 *) ac_try_echo=$ac_try;;
5042esac
5043eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5044$as_echo "$ac_try_echo"; } >&5
5045 (eval "$ac_link") 2>&5
5046 ac_status=$?
5047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5048 test $ac_status = 0; }
5049 if { ac_try='./conftest$ac_cv_exeext'
5050 { { case "(($ac_try" in
5051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5052 *) ac_try_echo=$ac_try;;
5053esac
5054eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5055$as_echo "$ac_try_echo"; } >&5
5056 (eval "$ac_try") 2>&5
5057 ac_status=$?
5058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5059 test $ac_status = 0; }; }; then
5060 cross_compiling=no
5061 else
5062 if test "$cross_compiling" = maybe; then
5063 cross_compiling=yes
5064 else
5065 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5066$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005067as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00005068If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00005069See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00005070 fi
5071 fi
5072fi
5073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5074$as_echo "$cross_compiling" >&6; }
5075
5076rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5077ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00005078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00005079$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005080if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005081 $as_echo_n "(cached) " >&6
5082else
cristy8b350f62009-11-15 23:12:43 +00005083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005084/* end confdefs.h. */
5085
5086int
5087main ()
5088{
5089
5090 ;
5091 return 0;
5092}
5093_ACEOF
5094rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00005095if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00005096case "(($ac_try" in
5097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5098 *) ac_try_echo=$ac_try;;
5099esac
cristy8b350f62009-11-15 23:12:43 +00005100eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5101$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00005102 (eval "$ac_compile") 2>&5
5103 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00005104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5105 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00005106 for ac_file in conftest.o conftest.obj conftest.*; do
5107 test -f "$ac_file" || continue;
5108 case $ac_file in
5109 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5110 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5111 break;;
5112 esac
5113done
5114else
5115 $as_echo "$as_me: failed program was:" >&5
5116sed 's/^/| /' conftest.$ac_ext >&5
5117
cristy8b350f62009-11-15 23:12:43 +00005118{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005119$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005120as_fn_error $? "cannot compute suffix of object files: cannot compile
5121See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00005122fi
cristy3ed852e2009-09-05 21:47:34 +00005123rm -f conftest.$ac_cv_objext conftest.$ac_ext
5124fi
cristy8b350f62009-11-15 23:12:43 +00005125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00005126$as_echo "$ac_cv_objext" >&6; }
5127OBJEXT=$ac_cv_objext
5128ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00005129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00005130$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005131if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005132 $as_echo_n "(cached) " >&6
5133else
cristy8b350f62009-11-15 23:12:43 +00005134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005135/* end confdefs.h. */
5136
5137int
5138main ()
5139{
5140#ifndef __GNUC__
5141 choke me
5142#endif
5143
5144 ;
5145 return 0;
5146}
5147_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005148if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005149 ac_compiler_gnu=yes
5150else
cristy8b350f62009-11-15 23:12:43 +00005151 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00005152fi
cristy3ed852e2009-09-05 21:47:34 +00005153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5154ac_cv_c_compiler_gnu=$ac_compiler_gnu
5155
5156fi
cristy8b350f62009-11-15 23:12:43 +00005157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00005158$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5159if test $ac_compiler_gnu = yes; then
5160 GCC=yes
5161else
5162 GCC=
5163fi
5164ac_test_CFLAGS=${CFLAGS+set}
5165ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00005166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005167$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005168if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005169 $as_echo_n "(cached) " >&6
5170else
5171 ac_save_c_werror_flag=$ac_c_werror_flag
5172 ac_c_werror_flag=yes
5173 ac_cv_prog_cc_g=no
5174 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005176/* end confdefs.h. */
5177
5178int
5179main ()
5180{
5181
5182 ;
5183 return 0;
5184}
5185_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005186if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005187 ac_cv_prog_cc_g=yes
5188else
cristy8b350f62009-11-15 23:12:43 +00005189 CFLAGS=""
5190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005191/* end confdefs.h. */
5192
5193int
5194main ()
5195{
5196
5197 ;
5198 return 0;
5199}
5200_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005201if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005202
cristy8b350f62009-11-15 23:12:43 +00005203else
5204 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00005205 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005207/* end confdefs.h. */
5208
5209int
5210main ()
5211{
5212
5213 ;
5214 return 0;
5215}
5216_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005217if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005218 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00005219fi
cristy3ed852e2009-09-05 21:47:34 +00005220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5221fi
cristy3ed852e2009-09-05 21:47:34 +00005222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5223fi
cristy3ed852e2009-09-05 21:47:34 +00005224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5225 ac_c_werror_flag=$ac_save_c_werror_flag
5226fi
cristy8b350f62009-11-15 23:12:43 +00005227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005228$as_echo "$ac_cv_prog_cc_g" >&6; }
5229if test "$ac_test_CFLAGS" = set; then
5230 CFLAGS=$ac_save_CFLAGS
5231elif test $ac_cv_prog_cc_g = yes; then
5232 if test "$GCC" = yes; then
5233 CFLAGS="-g -O2"
5234 else
5235 CFLAGS="-g"
5236 fi
5237else
5238 if test "$GCC" = yes; then
5239 CFLAGS="-O2"
5240 else
5241 CFLAGS=
5242 fi
5243fi
cristy8b350f62009-11-15 23:12:43 +00005244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005245$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005246if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005247 $as_echo_n "(cached) " >&6
5248else
5249 ac_cv_prog_cc_c89=no
5250ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00005251cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005252/* end confdefs.h. */
5253#include <stdarg.h>
5254#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00005255struct stat;
cristy3ed852e2009-09-05 21:47:34 +00005256/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5257struct buf { int x; };
5258FILE * (*rcsopen) (struct buf *, struct stat *, int);
5259static char *e (p, i)
5260 char **p;
5261 int i;
5262{
5263 return p[i];
5264}
5265static char *f (char * (*g) (char **, int), char **p, ...)
5266{
5267 char *s;
5268 va_list v;
5269 va_start (v,p);
5270 s = g (p, va_arg (v,int));
5271 va_end (v);
5272 return s;
5273}
5274
5275/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5276 function prototypes and stuff, but not '\xHH' hex character constants.
5277 These don't provoke an error unfortunately, instead are silently treated
5278 as 'x'. The following induces an error, until -std is added to get
5279 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5280 array size at least. It's necessary to write '\x00'==0 to get something
5281 that's true only with -std. */
5282int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5283
5284/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5285 inside strings and character constants. */
5286#define FOO(x) 'x'
5287int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5288
5289int test (int i, double x);
5290struct s1 {int (*f) (int a);};
5291struct s2 {int (*f) (double a);};
5292int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5293int argc;
5294char **argv;
5295int
5296main ()
5297{
5298return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5299 ;
5300 return 0;
5301}
5302_ACEOF
5303for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5304 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5305do
5306 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005307 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005308 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005309fi
cristy3ed852e2009-09-05 21:47:34 +00005310rm -f core conftest.err conftest.$ac_objext
5311 test "x$ac_cv_prog_cc_c89" != "xno" && break
5312done
5313rm -f conftest.$ac_ext
5314CC=$ac_save_CC
5315
5316fi
5317# AC_CACHE_VAL
5318case "x$ac_cv_prog_cc_c89" in
5319 x)
cristy8b350f62009-11-15 23:12:43 +00005320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005321$as_echo "none needed" >&6; } ;;
5322 xno)
cristy8b350f62009-11-15 23:12:43 +00005323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005324$as_echo "unsupported" >&6; } ;;
5325 *)
5326 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005328$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5329esac
cristy8b350f62009-11-15 23:12:43 +00005330if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005331
cristy8b350f62009-11-15 23:12:43 +00005332fi
cristy3ed852e2009-09-05 21:47:34 +00005333
5334ac_ext=c
5335ac_cpp='$CPP $CPPFLAGS'
5336ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5337ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5338ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005339
cristya5bda012013-11-03 18:05:38 +00005340ac_ext=c
5341ac_cpp='$CPP $CPPFLAGS'
5342ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5343ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5344ac_compiler_gnu=$ac_cv_c_compiler_gnu
5345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5346$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5347if ${am_cv_prog_cc_c_o+:} false; then :
5348 $as_echo_n "(cached) " >&6
5349else
5350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5351/* end confdefs.h. */
5352
5353int
5354main ()
5355{
5356
5357 ;
5358 return 0;
5359}
5360_ACEOF
5361 # Make sure it works both with $CC and with simple cc.
5362 # Following AC_PROG_CC_C_O, we do the test twice because some
5363 # compilers refuse to overwrite an existing .o file with -o,
5364 # though they will create one.
5365 am_cv_prog_cc_c_o=yes
5366 for am_i in 1 2; do
5367 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5368 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5369 ac_status=$?
5370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5371 (exit $ac_status); } \
5372 && test -f conftest2.$ac_objext; then
5373 : OK
5374 else
5375 am_cv_prog_cc_c_o=no
5376 break
5377 fi
5378 done
5379 rm -f core conftest*
5380 unset am_i
5381fi
5382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5383$as_echo "$am_cv_prog_cc_c_o" >&6; }
5384if test "$am_cv_prog_cc_c_o" != yes; then
5385 # Losing compiler, so override with the script.
5386 # FIXME: It is wrong to rewrite CC.
5387 # But if we don't then we get into trouble of one sort or another.
5388 # A longer-term fix would be to have automake use am__CC in this case,
5389 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5390 CC="$am_aux_dir/compile $CC"
5391fi
5392ac_ext=c
5393ac_cpp='$CPP $CPPFLAGS'
5394ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5395ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5396ac_compiler_gnu=$ac_cv_c_compiler_gnu
5397
5398
cristy73bd4a52010-10-05 11:24:23 +00005399depcc="$CC" am_compiler_list=
5400
5401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5402$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005403if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00005404 $as_echo_n "(cached) " >&6
5405else
5406 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5407 # We make a subdir and do the tests there. Otherwise we can end up
5408 # making bogus files that we don't know about and never remove. For
5409 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00005410 # making a dummy file named 'D' -- because '-MD' means "put the output
5411 # in D".
cristy7247bba2012-02-05 16:37:27 +00005412 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00005413 mkdir conftest.dir
5414 # Copy depcomp to subdir because otherwise we won't find it if we're
5415 # using a relative directory.
5416 cp "$am_depcomp" conftest.dir
5417 cd conftest.dir
5418 # We will build objects and dependencies in a subdirectory because
5419 # it helps to detect inapplicable dependency modes. For instance
5420 # both Tru64's cc and ICC support -MD to output dependencies as a
5421 # side effect of compilation, but ICC will put the dependencies in
5422 # the current directory while Tru64 will put them in the object
5423 # directory.
5424 mkdir sub
5425
5426 am_cv_CC_dependencies_compiler_type=none
5427 if test "$am_compiler_list" = ""; then
5428 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5429 fi
5430 am__universal=false
5431 case " $depcc " in #(
5432 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5433 esac
5434
5435 for depmode in $am_compiler_list; do
5436 # Setup a source with many dependencies, because some compilers
5437 # like to wrap large dependency lists on column 80 (with \), and
5438 # we should not choose a depcomp mode which is confused by this.
5439 #
5440 # We need to recreate these files for each test, as the compiler may
5441 # overwrite some of them when testing with obscure command lines.
5442 # This happens at least with the AIX C compiler.
5443 : > sub/conftest.c
5444 for i in 1 2 3 4 5 6; do
5445 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00005446 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5447 # Solaris 10 /bin/sh.
5448 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00005449 done
5450 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5451
cristyc0890a62012-07-19 00:18:20 +00005452 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00005453 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00005454 # handle '-M -o', and we need to detect this. Also, some Intel
5455 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00005456 am__obj=sub/conftest.${OBJEXT-o}
5457 am__minus_obj="-o $am__obj"
5458 case $depmode in
5459 gcc)
5460 # This depmode causes a compiler race in universal mode.
5461 test "$am__universal" = false || continue
5462 ;;
5463 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00005464 # After this tag, mechanisms are not by side-effect, so they'll
5465 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00005466 if test "x$enable_dependency_tracking" = xyes; then
5467 continue
5468 else
5469 break
5470 fi
5471 ;;
cristy7247bba2012-02-05 16:37:27 +00005472 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00005473 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00005474 # not run yet. These depmodes are late enough in the game, and
5475 # so weak that their functioning should not be impacted.
5476 am__obj=conftest.${OBJEXT-o}
5477 am__minus_obj=
5478 ;;
5479 none) break ;;
5480 esac
5481 if depmode=$depmode \
5482 source=sub/conftest.c object=$am__obj \
5483 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5484 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5485 >/dev/null 2>conftest.err &&
5486 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5487 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5488 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5489 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5490 # icc doesn't choke on unknown options, it will just issue warnings
5491 # or remarks (even with -Werror). So we grep stderr for any message
5492 # that says an option was ignored or not supported.
5493 # When given -MP, icc 7.0 and 7.1 complain thusly:
5494 # icc: Command line warning: ignoring option '-M'; no argument required
5495 # The diagnosis changed in icc 8.0:
5496 # icc: Command line remark: option '-MP' not supported
5497 if (grep 'ignoring option' conftest.err ||
5498 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5499 am_cv_CC_dependencies_compiler_type=$depmode
5500 break
5501 fi
5502 fi
5503 done
5504
5505 cd ..
5506 rm -rf conftest.dir
5507else
5508 am_cv_CC_dependencies_compiler_type=none
5509fi
5510
5511fi
5512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5513$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5514CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5515
5516 if
5517 test "x$enable_dependency_tracking" != xno \
5518 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5519 am__fastdepCC_TRUE=
5520 am__fastdepCC_FALSE='#'
5521else
5522 am__fastdepCC_TRUE='#'
5523 am__fastdepCC_FALSE=
5524fi
5525
5526
cristy3ed852e2009-09-05 21:47:34 +00005527
cristya0b81c32010-01-22 02:54:33 +00005528ac_ext=c
5529ac_cpp='$CPP $CPPFLAGS'
5530ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5531ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5532ac_compiler_gnu=$ac_cv_c_compiler_gnu
5533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5534$as_echo_n "checking how to run the C preprocessor... " >&6; }
5535# On Suns, sometimes $CPP names a directory.
5536if test -n "$CPP" && test -d "$CPP"; then
5537 CPP=
5538fi
5539if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005540 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005541 $as_echo_n "(cached) " >&6
5542else
5543 # Double quotes because CPP needs to be expanded
5544 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5545 do
5546 ac_preproc_ok=false
5547for ac_c_preproc_warn_flag in '' yes
5548do
5549 # Use a header file that comes with gcc, so configuring glibc
5550 # with a fresh cross-compiler works.
5551 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5552 # <limits.h> exists even on freestanding compilers.
5553 # On the NeXT, cc -E runs the code through the compiler's parser,
5554 # not just through cpp. "Syntax error" is here to catch this case.
5555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5556/* end confdefs.h. */
5557#ifdef __STDC__
5558# include <limits.h>
5559#else
5560# include <assert.h>
5561#endif
5562 Syntax error
5563_ACEOF
5564if ac_fn_c_try_cpp "$LINENO"; then :
5565
5566else
5567 # Broken: fails on valid input.
5568continue
5569fi
cristyda16f162011-02-19 23:52:17 +00005570rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005571
5572 # OK, works on sane cases. Now check whether nonexistent headers
5573 # can be detected and how.
5574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5575/* end confdefs.h. */
5576#include <ac_nonexistent.h>
5577_ACEOF
5578if ac_fn_c_try_cpp "$LINENO"; then :
5579 # Broken: success on invalid input.
5580continue
5581else
5582 # Passes both tests.
5583ac_preproc_ok=:
5584break
5585fi
cristyda16f162011-02-19 23:52:17 +00005586rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005587
5588done
5589# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005590rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005591if $ac_preproc_ok; then :
5592 break
5593fi
5594
5595 done
5596 ac_cv_prog_CPP=$CPP
5597
5598fi
5599 CPP=$ac_cv_prog_CPP
5600else
5601 ac_cv_prog_CPP=$CPP
5602fi
5603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5604$as_echo "$CPP" >&6; }
5605ac_preproc_ok=false
5606for ac_c_preproc_warn_flag in '' yes
5607do
5608 # Use a header file that comes with gcc, so configuring glibc
5609 # with a fresh cross-compiler works.
5610 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5611 # <limits.h> exists even on freestanding compilers.
5612 # On the NeXT, cc -E runs the code through the compiler's parser,
5613 # not just through cpp. "Syntax error" is here to catch this case.
5614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5615/* end confdefs.h. */
5616#ifdef __STDC__
5617# include <limits.h>
5618#else
5619# include <assert.h>
5620#endif
5621 Syntax error
5622_ACEOF
5623if ac_fn_c_try_cpp "$LINENO"; then :
5624
5625else
5626 # Broken: fails on valid input.
5627continue
5628fi
cristyda16f162011-02-19 23:52:17 +00005629rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005630
5631 # OK, works on sane cases. Now check whether nonexistent headers
5632 # can be detected and how.
5633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5634/* end confdefs.h. */
5635#include <ac_nonexistent.h>
5636_ACEOF
5637if ac_fn_c_try_cpp "$LINENO"; then :
5638 # Broken: success on invalid input.
5639continue
5640else
5641 # Passes both tests.
5642ac_preproc_ok=:
5643break
5644fi
cristyda16f162011-02-19 23:52:17 +00005645rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005646
5647done
5648# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005649rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005650if $ac_preproc_ok; then :
5651
5652else
5653 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5654$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005655as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5656See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005657fi
5658
5659ac_ext=c
5660ac_cpp='$CPP $CPPFLAGS'
5661ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5662ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5663ac_compiler_gnu=$ac_cv_c_compiler_gnu
5664
5665
5666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5667$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005668if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005669 $as_echo_n "(cached) " >&6
5670else
5671 if test -z "$GREP"; then
5672 ac_path_GREP_found=false
5673 # Loop through the user's path and test for each of PROGNAME-LIST
5674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5675for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5676do
5677 IFS=$as_save_IFS
5678 test -z "$as_dir" && as_dir=.
5679 for ac_prog in grep ggrep; do
5680 for ac_exec_ext in '' $ac_executable_extensions; do
5681 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005682 as_fn_executable_p "$ac_path_GREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005683# Check for GNU ac_path_GREP and select it if it is found.
5684 # Check for GNU $ac_path_GREP
5685case `"$ac_path_GREP" --version 2>&1` in
5686*GNU*)
5687 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5688*)
5689 ac_count=0
5690 $as_echo_n 0123456789 >"conftest.in"
5691 while :
5692 do
5693 cat "conftest.in" "conftest.in" >"conftest.tmp"
5694 mv "conftest.tmp" "conftest.in"
5695 cp "conftest.in" "conftest.nl"
5696 $as_echo 'GREP' >> "conftest.nl"
5697 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5698 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5699 as_fn_arith $ac_count + 1 && ac_count=$as_val
5700 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5701 # Best one so far, save it but keep looking for a better one
5702 ac_cv_path_GREP="$ac_path_GREP"
5703 ac_path_GREP_max=$ac_count
5704 fi
5705 # 10*(2^10) chars as input seems more than enough
5706 test $ac_count -gt 10 && break
5707 done
5708 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5709esac
5710
5711 $ac_path_GREP_found && break 3
5712 done
5713 done
5714 done
5715IFS=$as_save_IFS
5716 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005717 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005718 fi
5719else
5720 ac_cv_path_GREP=$GREP
5721fi
5722
5723fi
5724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5725$as_echo "$ac_cv_path_GREP" >&6; }
5726 GREP="$ac_cv_path_GREP"
5727
5728
5729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5730$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005731if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005732 $as_echo_n "(cached) " >&6
5733else
5734 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5735 then ac_cv_path_EGREP="$GREP -E"
5736 else
5737 if test -z "$EGREP"; then
5738 ac_path_EGREP_found=false
5739 # Loop through the user's path and test for each of PROGNAME-LIST
5740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5741for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5742do
5743 IFS=$as_save_IFS
5744 test -z "$as_dir" && as_dir=.
5745 for ac_prog in egrep; do
5746 for ac_exec_ext in '' $ac_executable_extensions; do
5747 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005748 as_fn_executable_p "$ac_path_EGREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005749# Check for GNU ac_path_EGREP and select it if it is found.
5750 # Check for GNU $ac_path_EGREP
5751case `"$ac_path_EGREP" --version 2>&1` in
5752*GNU*)
5753 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5754*)
5755 ac_count=0
5756 $as_echo_n 0123456789 >"conftest.in"
5757 while :
5758 do
5759 cat "conftest.in" "conftest.in" >"conftest.tmp"
5760 mv "conftest.tmp" "conftest.in"
5761 cp "conftest.in" "conftest.nl"
5762 $as_echo 'EGREP' >> "conftest.nl"
5763 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5764 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5765 as_fn_arith $ac_count + 1 && ac_count=$as_val
5766 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5767 # Best one so far, save it but keep looking for a better one
5768 ac_cv_path_EGREP="$ac_path_EGREP"
5769 ac_path_EGREP_max=$ac_count
5770 fi
5771 # 10*(2^10) chars as input seems more than enough
5772 test $ac_count -gt 10 && break
5773 done
5774 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5775esac
5776
5777 $ac_path_EGREP_found && break 3
5778 done
5779 done
5780 done
5781IFS=$as_save_IFS
5782 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005783 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005784 fi
5785else
5786 ac_cv_path_EGREP=$EGREP
5787fi
5788
5789 fi
5790fi
5791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5792$as_echo "$ac_cv_path_EGREP" >&6; }
5793 EGREP="$ac_cv_path_EGREP"
5794
5795
5796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5797$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005798if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005799 $as_echo_n "(cached) " >&6
5800else
5801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5802/* end confdefs.h. */
5803#include <stdlib.h>
5804#include <stdarg.h>
5805#include <string.h>
5806#include <float.h>
5807
5808int
5809main ()
5810{
5811
5812 ;
5813 return 0;
5814}
5815_ACEOF
5816if ac_fn_c_try_compile "$LINENO"; then :
5817 ac_cv_header_stdc=yes
5818else
5819 ac_cv_header_stdc=no
5820fi
5821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5822
5823if test $ac_cv_header_stdc = yes; then
5824 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5826/* end confdefs.h. */
5827#include <string.h>
5828
5829_ACEOF
5830if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5831 $EGREP "memchr" >/dev/null 2>&1; then :
5832
5833else
5834 ac_cv_header_stdc=no
5835fi
5836rm -f conftest*
5837
5838fi
5839
5840if test $ac_cv_header_stdc = yes; then
5841 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5843/* end confdefs.h. */
5844#include <stdlib.h>
5845
5846_ACEOF
5847if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5848 $EGREP "free" >/dev/null 2>&1; then :
5849
5850else
5851 ac_cv_header_stdc=no
5852fi
5853rm -f conftest*
5854
5855fi
5856
5857if test $ac_cv_header_stdc = yes; then
5858 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5859 if test "$cross_compiling" = yes; then :
5860 :
5861else
5862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5863/* end confdefs.h. */
5864#include <ctype.h>
5865#include <stdlib.h>
5866#if ((' ' & 0x0FF) == 0x020)
5867# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5868# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5869#else
5870# define ISLOWER(c) \
5871 (('a' <= (c) && (c) <= 'i') \
5872 || ('j' <= (c) && (c) <= 'r') \
5873 || ('s' <= (c) && (c) <= 'z'))
5874# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5875#endif
5876
5877#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5878int
5879main ()
5880{
5881 int i;
5882 for (i = 0; i < 256; i++)
5883 if (XOR (islower (i), ISLOWER (i))
5884 || toupper (i) != TOUPPER (i))
5885 return 2;
5886 return 0;
5887}
5888_ACEOF
5889if ac_fn_c_try_run "$LINENO"; then :
5890
5891else
5892 ac_cv_header_stdc=no
5893fi
5894rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5895 conftest.$ac_objext conftest.beam conftest.$ac_ext
5896fi
5897
5898fi
5899fi
5900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5901$as_echo "$ac_cv_header_stdc" >&6; }
5902if test $ac_cv_header_stdc = yes; then
5903
5904$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5905
5906fi
5907
5908# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5909for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5910 inttypes.h stdint.h unistd.h
5911do :
5912 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5913ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5914"
cristy98dddb52010-11-04 00:30:15 +00005915if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005916 cat >>confdefs.h <<_ACEOF
5917#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5918_ACEOF
5919
5920fi
5921
5922done
5923
5924
5925
5926 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 +00005927if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00005928 MINIX=yes
5929else
5930 MINIX=
5931fi
5932
5933
5934 if test "$MINIX" = yes; then
5935
5936$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5937
5938
5939$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5940
5941
5942$as_echo "#define _MINIX 1" >>confdefs.h
5943
5944 fi
5945
5946
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5948$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005949if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005950 $as_echo_n "(cached) " >&6
5951else
5952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5953/* end confdefs.h. */
5954
cristy14fefe52012-05-21 00:59:18 +00005955# define __EXTENSIONS__ 1
5956 $ac_includes_default
cristya0b81c32010-01-22 02:54:33 +00005957int
5958main ()
5959{
5960
5961 ;
5962 return 0;
5963}
5964_ACEOF
5965if ac_fn_c_try_compile "$LINENO"; then :
5966 ac_cv_safe_to_define___extensions__=yes
5967else
5968 ac_cv_safe_to_define___extensions__=no
5969fi
5970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5971fi
5972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5973$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5974 test $ac_cv_safe_to_define___extensions__ = yes &&
5975 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5976
5977 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5978
5979 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5980
5981 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5982
5983 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5984
5985
5986
5987# Check for programs
5988ac_ext=c
5989ac_cpp='$CPP $CPPFLAGS'
5990ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5991ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5992ac_compiler_gnu=$ac_cv_c_compiler_gnu
5993if test -n "$ac_tool_prefix"; then
5994 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5995set dummy ${ac_tool_prefix}gcc; ac_word=$2
5996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5997$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005998if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005999 $as_echo_n "(cached) " >&6
6000else
6001 if test -n "$CC"; then
6002 ac_cv_prog_CC="$CC" # Let the user override the test.
6003else
6004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6005for as_dir in $PATH
6006do
6007 IFS=$as_save_IFS
6008 test -z "$as_dir" && as_dir=.
6009 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006011 ac_cv_prog_CC="${ac_tool_prefix}gcc"
6012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6013 break 2
6014 fi
6015done
6016 done
6017IFS=$as_save_IFS
6018
6019fi
6020fi
6021CC=$ac_cv_prog_CC
6022if test -n "$CC"; then
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6024$as_echo "$CC" >&6; }
6025else
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6027$as_echo "no" >&6; }
6028fi
6029
6030
6031fi
6032if test -z "$ac_cv_prog_CC"; then
6033 ac_ct_CC=$CC
6034 # Extract the first word of "gcc", so it can be a program name with args.
6035set dummy gcc; ac_word=$2
6036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6037$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006038if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006039 $as_echo_n "(cached) " >&6
6040else
6041 if test -n "$ac_ct_CC"; then
6042 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6043else
6044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6045for as_dir in $PATH
6046do
6047 IFS=$as_save_IFS
6048 test -z "$as_dir" && as_dir=.
6049 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006051 ac_cv_prog_ac_ct_CC="gcc"
6052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6053 break 2
6054 fi
6055done
6056 done
6057IFS=$as_save_IFS
6058
6059fi
6060fi
6061ac_ct_CC=$ac_cv_prog_ac_ct_CC
6062if test -n "$ac_ct_CC"; then
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6064$as_echo "$ac_ct_CC" >&6; }
6065else
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6067$as_echo "no" >&6; }
6068fi
6069
6070 if test "x$ac_ct_CC" = x; then
6071 CC=""
6072 else
6073 case $cross_compiling:$ac_tool_warned in
6074yes:)
6075{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6076$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6077ac_tool_warned=yes ;;
6078esac
6079 CC=$ac_ct_CC
6080 fi
6081else
6082 CC="$ac_cv_prog_CC"
6083fi
6084
6085if test -z "$CC"; then
6086 if test -n "$ac_tool_prefix"; then
6087 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6088set dummy ${ac_tool_prefix}cc; ac_word=$2
6089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6090$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006091if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006092 $as_echo_n "(cached) " >&6
6093else
6094 if test -n "$CC"; then
6095 ac_cv_prog_CC="$CC" # Let the user override the test.
6096else
6097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6098for as_dir in $PATH
6099do
6100 IFS=$as_save_IFS
6101 test -z "$as_dir" && as_dir=.
6102 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006104 ac_cv_prog_CC="${ac_tool_prefix}cc"
6105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6106 break 2
6107 fi
6108done
6109 done
6110IFS=$as_save_IFS
6111
6112fi
6113fi
6114CC=$ac_cv_prog_CC
6115if test -n "$CC"; then
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6117$as_echo "$CC" >&6; }
6118else
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6120$as_echo "no" >&6; }
6121fi
6122
6123
6124 fi
6125fi
6126if test -z "$CC"; then
6127 # Extract the first word of "cc", so it can be a program name with args.
6128set dummy cc; ac_word=$2
6129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6130$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006131if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006132 $as_echo_n "(cached) " >&6
6133else
6134 if test -n "$CC"; then
6135 ac_cv_prog_CC="$CC" # Let the user override the test.
6136else
6137 ac_prog_rejected=no
6138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6139for as_dir in $PATH
6140do
6141 IFS=$as_save_IFS
6142 test -z "$as_dir" && as_dir=.
6143 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006145 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6146 ac_prog_rejected=yes
6147 continue
6148 fi
6149 ac_cv_prog_CC="cc"
6150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6151 break 2
6152 fi
6153done
6154 done
6155IFS=$as_save_IFS
6156
6157if test $ac_prog_rejected = yes; then
6158 # We found a bogon in the path, so make sure we never use it.
6159 set dummy $ac_cv_prog_CC
6160 shift
6161 if test $# != 0; then
6162 # We chose a different compiler from the bogus one.
6163 # However, it has the same basename, so the bogon will be chosen
6164 # first if we set CC to just the basename; use the full file name.
6165 shift
6166 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6167 fi
6168fi
6169fi
6170fi
6171CC=$ac_cv_prog_CC
6172if test -n "$CC"; then
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6174$as_echo "$CC" >&6; }
6175else
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6177$as_echo "no" >&6; }
6178fi
6179
6180
6181fi
6182if test -z "$CC"; then
6183 if test -n "$ac_tool_prefix"; then
6184 for ac_prog in cl.exe
6185 do
6186 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6187set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6189$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006190if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006191 $as_echo_n "(cached) " >&6
6192else
6193 if test -n "$CC"; then
6194 ac_cv_prog_CC="$CC" # Let the user override the test.
6195else
6196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6197for as_dir in $PATH
6198do
6199 IFS=$as_save_IFS
6200 test -z "$as_dir" && as_dir=.
6201 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006203 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6205 break 2
6206 fi
6207done
6208 done
6209IFS=$as_save_IFS
6210
6211fi
6212fi
6213CC=$ac_cv_prog_CC
6214if test -n "$CC"; then
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6216$as_echo "$CC" >&6; }
6217else
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6219$as_echo "no" >&6; }
6220fi
6221
6222
6223 test -n "$CC" && break
6224 done
6225fi
6226if test -z "$CC"; then
6227 ac_ct_CC=$CC
6228 for ac_prog in cl.exe
6229do
6230 # Extract the first word of "$ac_prog", so it can be a program name with args.
6231set dummy $ac_prog; ac_word=$2
6232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6233$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006234if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006235 $as_echo_n "(cached) " >&6
6236else
6237 if test -n "$ac_ct_CC"; then
6238 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6239else
6240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6241for as_dir in $PATH
6242do
6243 IFS=$as_save_IFS
6244 test -z "$as_dir" && as_dir=.
6245 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006247 ac_cv_prog_ac_ct_CC="$ac_prog"
6248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6249 break 2
6250 fi
6251done
6252 done
6253IFS=$as_save_IFS
6254
6255fi
6256fi
6257ac_ct_CC=$ac_cv_prog_ac_ct_CC
6258if test -n "$ac_ct_CC"; then
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6260$as_echo "$ac_ct_CC" >&6; }
6261else
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6263$as_echo "no" >&6; }
6264fi
6265
6266
6267 test -n "$ac_ct_CC" && break
6268done
6269
6270 if test "x$ac_ct_CC" = x; then
6271 CC=""
6272 else
6273 case $cross_compiling:$ac_tool_warned in
6274yes:)
6275{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6276$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6277ac_tool_warned=yes ;;
6278esac
6279 CC=$ac_ct_CC
6280 fi
6281fi
6282
6283fi
6284
6285
6286test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6287$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00006288as_fn_error $? "no acceptable C compiler found in \$PATH
6289See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00006290
6291# Provide some information about the compiler.
6292$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6293set X $ac_compile
6294ac_compiler=$2
6295for ac_option in --version -v -V -qversion; do
6296 { { ac_try="$ac_compiler $ac_option >&5"
6297case "(($ac_try" in
6298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6299 *) ac_try_echo=$ac_try;;
6300esac
6301eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6302$as_echo "$ac_try_echo"; } >&5
6303 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6304 ac_status=$?
6305 if test -s conftest.err; then
6306 sed '10a\
6307... rest of stderr output deleted ...
6308 10q' conftest.err >conftest.er1
6309 cat conftest.er1 >&5
6310 fi
6311 rm -f conftest.er1 conftest.err
6312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6313 test $ac_status = 0; }
6314done
6315
6316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6317$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006318if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006319 $as_echo_n "(cached) " >&6
6320else
6321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6322/* end confdefs.h. */
6323
6324int
6325main ()
6326{
6327#ifndef __GNUC__
6328 choke me
6329#endif
6330
6331 ;
6332 return 0;
6333}
6334_ACEOF
6335if ac_fn_c_try_compile "$LINENO"; then :
6336 ac_compiler_gnu=yes
6337else
6338 ac_compiler_gnu=no
6339fi
6340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6341ac_cv_c_compiler_gnu=$ac_compiler_gnu
6342
6343fi
6344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6345$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6346if test $ac_compiler_gnu = yes; then
6347 GCC=yes
6348else
6349 GCC=
6350fi
6351ac_test_CFLAGS=${CFLAGS+set}
6352ac_save_CFLAGS=$CFLAGS
6353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6354$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006355if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006356 $as_echo_n "(cached) " >&6
6357else
6358 ac_save_c_werror_flag=$ac_c_werror_flag
6359 ac_c_werror_flag=yes
6360 ac_cv_prog_cc_g=no
6361 CFLAGS="-g"
6362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6363/* end confdefs.h. */
6364
6365int
6366main ()
6367{
6368
6369 ;
6370 return 0;
6371}
6372_ACEOF
6373if ac_fn_c_try_compile "$LINENO"; then :
6374 ac_cv_prog_cc_g=yes
6375else
6376 CFLAGS=""
6377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6378/* end confdefs.h. */
6379
6380int
6381main ()
6382{
6383
6384 ;
6385 return 0;
6386}
6387_ACEOF
6388if ac_fn_c_try_compile "$LINENO"; then :
6389
6390else
6391 ac_c_werror_flag=$ac_save_c_werror_flag
6392 CFLAGS="-g"
6393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6394/* end confdefs.h. */
6395
6396int
6397main ()
6398{
6399
6400 ;
6401 return 0;
6402}
6403_ACEOF
6404if ac_fn_c_try_compile "$LINENO"; then :
6405 ac_cv_prog_cc_g=yes
6406fi
6407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6408fi
6409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6410fi
6411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6412 ac_c_werror_flag=$ac_save_c_werror_flag
6413fi
6414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6415$as_echo "$ac_cv_prog_cc_g" >&6; }
6416if test "$ac_test_CFLAGS" = set; then
6417 CFLAGS=$ac_save_CFLAGS
6418elif test $ac_cv_prog_cc_g = yes; then
6419 if test "$GCC" = yes; then
6420 CFLAGS="-g -O2"
6421 else
6422 CFLAGS="-g"
6423 fi
6424else
6425 if test "$GCC" = yes; then
6426 CFLAGS="-O2"
6427 else
6428 CFLAGS=
6429 fi
6430fi
6431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6432$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006433if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006434 $as_echo_n "(cached) " >&6
6435else
6436 ac_cv_prog_cc_c89=no
6437ac_save_CC=$CC
6438cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6439/* end confdefs.h. */
6440#include <stdarg.h>
6441#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00006442struct stat;
cristya0b81c32010-01-22 02:54:33 +00006443/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6444struct buf { int x; };
6445FILE * (*rcsopen) (struct buf *, struct stat *, int);
6446static char *e (p, i)
6447 char **p;
6448 int i;
6449{
6450 return p[i];
6451}
6452static char *f (char * (*g) (char **, int), char **p, ...)
6453{
6454 char *s;
6455 va_list v;
6456 va_start (v,p);
6457 s = g (p, va_arg (v,int));
6458 va_end (v);
6459 return s;
6460}
6461
6462/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6463 function prototypes and stuff, but not '\xHH' hex character constants.
6464 These don't provoke an error unfortunately, instead are silently treated
6465 as 'x'. The following induces an error, until -std is added to get
6466 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6467 array size at least. It's necessary to write '\x00'==0 to get something
6468 that's true only with -std. */
6469int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6470
6471/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6472 inside strings and character constants. */
6473#define FOO(x) 'x'
6474int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6475
6476int test (int i, double x);
6477struct s1 {int (*f) (int a);};
6478struct s2 {int (*f) (double a);};
6479int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6480int argc;
6481char **argv;
6482int
6483main ()
6484{
6485return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6486 ;
6487 return 0;
6488}
6489_ACEOF
6490for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6491 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6492do
6493 CC="$ac_save_CC $ac_arg"
6494 if ac_fn_c_try_compile "$LINENO"; then :
6495 ac_cv_prog_cc_c89=$ac_arg
6496fi
6497rm -f core conftest.err conftest.$ac_objext
6498 test "x$ac_cv_prog_cc_c89" != "xno" && break
6499done
6500rm -f conftest.$ac_ext
6501CC=$ac_save_CC
6502
6503fi
6504# AC_CACHE_VAL
6505case "x$ac_cv_prog_cc_c89" in
6506 x)
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6508$as_echo "none needed" >&6; } ;;
6509 xno)
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6511$as_echo "unsupported" >&6; } ;;
6512 *)
6513 CC="$CC $ac_cv_prog_cc_c89"
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6515$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6516esac
6517if test "x$ac_cv_prog_cc_c89" != xno; then :
6518
6519fi
6520
6521ac_ext=c
6522ac_cpp='$CPP $CPPFLAGS'
6523ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6524ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6525ac_compiler_gnu=$ac_cv_c_compiler_gnu
6526
cristya5bda012013-11-03 18:05:38 +00006527ac_ext=c
6528ac_cpp='$CPP $CPPFLAGS'
6529ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6530ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6531ac_compiler_gnu=$ac_cv_c_compiler_gnu
6532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6533$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6534if ${am_cv_prog_cc_c_o+:} false; then :
6535 $as_echo_n "(cached) " >&6
6536else
6537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6538/* end confdefs.h. */
6539
6540int
6541main ()
6542{
6543
6544 ;
6545 return 0;
6546}
6547_ACEOF
6548 # Make sure it works both with $CC and with simple cc.
6549 # Following AC_PROG_CC_C_O, we do the test twice because some
6550 # compilers refuse to overwrite an existing .o file with -o,
6551 # though they will create one.
6552 am_cv_prog_cc_c_o=yes
6553 for am_i in 1 2; do
6554 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6555 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6556 ac_status=$?
6557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6558 (exit $ac_status); } \
6559 && test -f conftest2.$ac_objext; then
6560 : OK
6561 else
6562 am_cv_prog_cc_c_o=no
6563 break
6564 fi
6565 done
6566 rm -f core conftest*
6567 unset am_i
6568fi
6569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6570$as_echo "$am_cv_prog_cc_c_o" >&6; }
6571if test "$am_cv_prog_cc_c_o" != yes; then
6572 # Losing compiler, so override with the script.
6573 # FIXME: It is wrong to rewrite CC.
6574 # But if we don't then we get into trouble of one sort or another.
6575 # A longer-term fix would be to have automake use am__CC in this case,
6576 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6577 CC="$am_aux_dir/compile $CC"
6578fi
6579ac_ext=c
6580ac_cpp='$CPP $CPPFLAGS'
6581ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6582ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6583ac_compiler_gnu=$ac_cv_c_compiler_gnu
6584
6585
cristy73bd4a52010-10-05 11:24:23 +00006586depcc="$CC" am_compiler_list=
6587
6588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6589$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006590if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006591 $as_echo_n "(cached) " >&6
6592else
6593 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6594 # We make a subdir and do the tests there. Otherwise we can end up
6595 # making bogus files that we don't know about and never remove. For
6596 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006597 # making a dummy file named 'D' -- because '-MD' means "put the output
6598 # in D".
cristy7247bba2012-02-05 16:37:27 +00006599 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006600 mkdir conftest.dir
6601 # Copy depcomp to subdir because otherwise we won't find it if we're
6602 # using a relative directory.
6603 cp "$am_depcomp" conftest.dir
6604 cd conftest.dir
6605 # We will build objects and dependencies in a subdirectory because
6606 # it helps to detect inapplicable dependency modes. For instance
6607 # both Tru64's cc and ICC support -MD to output dependencies as a
6608 # side effect of compilation, but ICC will put the dependencies in
6609 # the current directory while Tru64 will put them in the object
6610 # directory.
6611 mkdir sub
6612
6613 am_cv_CC_dependencies_compiler_type=none
6614 if test "$am_compiler_list" = ""; then
6615 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6616 fi
6617 am__universal=false
6618 case " $depcc " in #(
6619 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6620 esac
6621
6622 for depmode in $am_compiler_list; do
6623 # Setup a source with many dependencies, because some compilers
6624 # like to wrap large dependency lists on column 80 (with \), and
6625 # we should not choose a depcomp mode which is confused by this.
6626 #
6627 # We need to recreate these files for each test, as the compiler may
6628 # overwrite some of them when testing with obscure command lines.
6629 # This happens at least with the AIX C compiler.
6630 : > sub/conftest.c
6631 for i in 1 2 3 4 5 6; do
6632 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00006633 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6634 # Solaris 10 /bin/sh.
6635 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00006636 done
6637 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6638
cristyc0890a62012-07-19 00:18:20 +00006639 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00006640 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00006641 # handle '-M -o', and we need to detect this. Also, some Intel
6642 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00006643 am__obj=sub/conftest.${OBJEXT-o}
6644 am__minus_obj="-o $am__obj"
6645 case $depmode in
6646 gcc)
6647 # This depmode causes a compiler race in universal mode.
6648 test "$am__universal" = false || continue
6649 ;;
6650 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00006651 # After this tag, mechanisms are not by side-effect, so they'll
6652 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00006653 if test "x$enable_dependency_tracking" = xyes; then
6654 continue
6655 else
6656 break
6657 fi
6658 ;;
cristy7247bba2012-02-05 16:37:27 +00006659 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00006660 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00006661 # not run yet. These depmodes are late enough in the game, and
6662 # so weak that their functioning should not be impacted.
6663 am__obj=conftest.${OBJEXT-o}
6664 am__minus_obj=
6665 ;;
6666 none) break ;;
6667 esac
6668 if depmode=$depmode \
6669 source=sub/conftest.c object=$am__obj \
6670 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6671 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6672 >/dev/null 2>conftest.err &&
6673 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6674 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6675 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6676 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6677 # icc doesn't choke on unknown options, it will just issue warnings
6678 # or remarks (even with -Werror). So we grep stderr for any message
6679 # that says an option was ignored or not supported.
6680 # When given -MP, icc 7.0 and 7.1 complain thusly:
6681 # icc: Command line warning: ignoring option '-M'; no argument required
6682 # The diagnosis changed in icc 8.0:
6683 # icc: Command line remark: option '-MP' not supported
6684 if (grep 'ignoring option' conftest.err ||
6685 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6686 am_cv_CC_dependencies_compiler_type=$depmode
6687 break
6688 fi
6689 fi
6690 done
6691
6692 cd ..
6693 rm -rf conftest.dir
6694else
6695 am_cv_CC_dependencies_compiler_type=none
6696fi
6697
6698fi
6699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6700$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6701CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6702
6703 if
6704 test "x$enable_dependency_tracking" != xno \
6705 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6706 am__fastdepCC_TRUE=
6707 am__fastdepCC_FALSE='#'
6708else
6709 am__fastdepCC_TRUE='#'
6710 am__fastdepCC_FALSE=
6711fi
6712
6713
cristy95646052009-11-28 23:05:30 +00006714ac_ext=cpp
6715ac_cpp='$CXXCPP $CPPFLAGS'
6716ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6717ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6718ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6719if test -z "$CXX"; then
6720 if test -n "$CCC"; then
6721 CXX=$CCC
6722 else
6723 if test -n "$ac_tool_prefix"; then
6724 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6725 do
6726 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6727set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6729$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006730if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006731 $as_echo_n "(cached) " >&6
6732else
6733 if test -n "$CXX"; then
6734 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6735else
6736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6737for as_dir in $PATH
6738do
6739 IFS=$as_save_IFS
6740 test -z "$as_dir" && as_dir=.
6741 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006743 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6745 break 2
6746 fi
6747done
6748 done
6749IFS=$as_save_IFS
6750
6751fi
6752fi
6753CXX=$ac_cv_prog_CXX
6754if test -n "$CXX"; then
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6756$as_echo "$CXX" >&6; }
6757else
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6759$as_echo "no" >&6; }
6760fi
6761
6762
6763 test -n "$CXX" && break
6764 done
6765fi
6766if test -z "$CXX"; then
6767 ac_ct_CXX=$CXX
6768 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6769do
6770 # Extract the first word of "$ac_prog", so it can be a program name with args.
6771set dummy $ac_prog; ac_word=$2
6772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6773$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006774if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006775 $as_echo_n "(cached) " >&6
6776else
6777 if test -n "$ac_ct_CXX"; then
6778 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6779else
6780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6781for as_dir in $PATH
6782do
6783 IFS=$as_save_IFS
6784 test -z "$as_dir" && as_dir=.
6785 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006787 ac_cv_prog_ac_ct_CXX="$ac_prog"
6788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6789 break 2
6790 fi
6791done
6792 done
6793IFS=$as_save_IFS
6794
6795fi
6796fi
6797ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6798if test -n "$ac_ct_CXX"; then
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6800$as_echo "$ac_ct_CXX" >&6; }
6801else
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6803$as_echo "no" >&6; }
6804fi
6805
6806
6807 test -n "$ac_ct_CXX" && break
6808done
6809
6810 if test "x$ac_ct_CXX" = x; then
6811 CXX="g++"
6812 else
6813 case $cross_compiling:$ac_tool_warned in
6814yes:)
6815{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6816$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6817ac_tool_warned=yes ;;
6818esac
6819 CXX=$ac_ct_CXX
6820 fi
6821fi
6822
6823 fi
6824fi
6825# Provide some information about the compiler.
6826$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6827set X $ac_compile
6828ac_compiler=$2
6829for ac_option in --version -v -V -qversion; do
6830 { { ac_try="$ac_compiler $ac_option >&5"
6831case "(($ac_try" in
6832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6833 *) ac_try_echo=$ac_try;;
6834esac
6835eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6836$as_echo "$ac_try_echo"; } >&5
6837 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6838 ac_status=$?
6839 if test -s conftest.err; then
6840 sed '10a\
6841... rest of stderr output deleted ...
6842 10q' conftest.err >conftest.er1
6843 cat conftest.er1 >&5
6844 fi
6845 rm -f conftest.er1 conftest.err
6846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6847 test $ac_status = 0; }
6848done
6849
6850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6851$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006852if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00006853 $as_echo_n "(cached) " >&6
6854else
6855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6856/* end confdefs.h. */
6857
6858int
6859main ()
6860{
6861#ifndef __GNUC__
6862 choke me
6863#endif
6864
6865 ;
6866 return 0;
6867}
6868_ACEOF
6869if ac_fn_cxx_try_compile "$LINENO"; then :
6870 ac_compiler_gnu=yes
6871else
6872 ac_compiler_gnu=no
6873fi
6874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6875ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6876
6877fi
6878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6879$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6880if test $ac_compiler_gnu = yes; then
6881 GXX=yes
6882else
6883 GXX=
6884fi
6885ac_test_CXXFLAGS=${CXXFLAGS+set}
6886ac_save_CXXFLAGS=$CXXFLAGS
6887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6888$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006889if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00006890 $as_echo_n "(cached) " >&6
6891else
6892 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6893 ac_cxx_werror_flag=yes
6894 ac_cv_prog_cxx_g=no
6895 CXXFLAGS="-g"
6896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6897/* end confdefs.h. */
6898
6899int
6900main ()
6901{
6902
6903 ;
6904 return 0;
6905}
6906_ACEOF
6907if ac_fn_cxx_try_compile "$LINENO"; then :
6908 ac_cv_prog_cxx_g=yes
6909else
6910 CXXFLAGS=""
6911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6912/* end confdefs.h. */
6913
6914int
6915main ()
6916{
6917
6918 ;
6919 return 0;
6920}
6921_ACEOF
6922if ac_fn_cxx_try_compile "$LINENO"; then :
6923
6924else
6925 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6926 CXXFLAGS="-g"
6927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6928/* end confdefs.h. */
6929
6930int
6931main ()
6932{
6933
6934 ;
6935 return 0;
6936}
6937_ACEOF
6938if ac_fn_cxx_try_compile "$LINENO"; then :
6939 ac_cv_prog_cxx_g=yes
6940fi
6941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6942fi
6943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6944fi
6945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6946 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6947fi
6948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6949$as_echo "$ac_cv_prog_cxx_g" >&6; }
6950if test "$ac_test_CXXFLAGS" = set; then
6951 CXXFLAGS=$ac_save_CXXFLAGS
6952elif test $ac_cv_prog_cxx_g = yes; then
6953 if test "$GXX" = yes; then
6954 CXXFLAGS="-g -O2"
6955 else
6956 CXXFLAGS="-g"
6957 fi
6958else
6959 if test "$GXX" = yes; then
6960 CXXFLAGS="-O2"
6961 else
6962 CXXFLAGS=
6963 fi
6964fi
6965ac_ext=c
6966ac_cpp='$CPP $CPPFLAGS'
6967ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6968ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6969ac_compiler_gnu=$ac_cv_c_compiler_gnu
6970
cristy73bd4a52010-10-05 11:24:23 +00006971depcc="$CXX" am_compiler_list=
6972
6973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6974$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006975if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006976 $as_echo_n "(cached) " >&6
6977else
6978 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6979 # We make a subdir and do the tests there. Otherwise we can end up
6980 # making bogus files that we don't know about and never remove. For
6981 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006982 # making a dummy file named 'D' -- because '-MD' means "put the output
6983 # in D".
cristy7247bba2012-02-05 16:37:27 +00006984 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006985 mkdir conftest.dir
6986 # Copy depcomp to subdir because otherwise we won't find it if we're
6987 # using a relative directory.
6988 cp "$am_depcomp" conftest.dir
6989 cd conftest.dir
6990 # We will build objects and dependencies in a subdirectory because
6991 # it helps to detect inapplicable dependency modes. For instance
6992 # both Tru64's cc and ICC support -MD to output dependencies as a
6993 # side effect of compilation, but ICC will put the dependencies in
6994 # the current directory while Tru64 will put them in the object
6995 # directory.
6996 mkdir sub
6997
6998 am_cv_CXX_dependencies_compiler_type=none
6999 if test "$am_compiler_list" = ""; then
7000 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7001 fi
7002 am__universal=false
7003 case " $depcc " in #(
7004 *\ -arch\ *\ -arch\ *) am__universal=true ;;
7005 esac
7006
7007 for depmode in $am_compiler_list; do
7008 # Setup a source with many dependencies, because some compilers
7009 # like to wrap large dependency lists on column 80 (with \), and
7010 # we should not choose a depcomp mode which is confused by this.
7011 #
7012 # We need to recreate these files for each test, as the compiler may
7013 # overwrite some of them when testing with obscure command lines.
7014 # This happens at least with the AIX C compiler.
7015 : > sub/conftest.c
7016 for i in 1 2 3 4 5 6; do
7017 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00007018 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7019 # Solaris 10 /bin/sh.
7020 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00007021 done
7022 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7023
cristyc0890a62012-07-19 00:18:20 +00007024 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00007025 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00007026 # handle '-M -o', and we need to detect this. Also, some Intel
7027 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00007028 am__obj=sub/conftest.${OBJEXT-o}
7029 am__minus_obj="-o $am__obj"
7030 case $depmode in
7031 gcc)
7032 # This depmode causes a compiler race in universal mode.
7033 test "$am__universal" = false || continue
7034 ;;
7035 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00007036 # After this tag, mechanisms are not by side-effect, so they'll
7037 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00007038 if test "x$enable_dependency_tracking" = xyes; then
7039 continue
7040 else
7041 break
7042 fi
7043 ;;
cristy7247bba2012-02-05 16:37:27 +00007044 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00007045 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00007046 # not run yet. These depmodes are late enough in the game, and
7047 # so weak that their functioning should not be impacted.
7048 am__obj=conftest.${OBJEXT-o}
7049 am__minus_obj=
7050 ;;
7051 none) break ;;
7052 esac
7053 if depmode=$depmode \
7054 source=sub/conftest.c object=$am__obj \
7055 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7056 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7057 >/dev/null 2>conftest.err &&
7058 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7059 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7060 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7061 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7062 # icc doesn't choke on unknown options, it will just issue warnings
7063 # or remarks (even with -Werror). So we grep stderr for any message
7064 # that says an option was ignored or not supported.
7065 # When given -MP, icc 7.0 and 7.1 complain thusly:
7066 # icc: Command line warning: ignoring option '-M'; no argument required
7067 # The diagnosis changed in icc 8.0:
7068 # icc: Command line remark: option '-MP' not supported
7069 if (grep 'ignoring option' conftest.err ||
7070 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7071 am_cv_CXX_dependencies_compiler_type=$depmode
7072 break
7073 fi
7074 fi
7075 done
7076
7077 cd ..
7078 rm -rf conftest.dir
7079else
7080 am_cv_CXX_dependencies_compiler_type=none
7081fi
7082
7083fi
7084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7085$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
7086CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7087
7088 if
7089 test "x$enable_dependency_tracking" != xno \
7090 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7091 am__fastdepCXX_TRUE=
7092 am__fastdepCXX_FALSE='#'
7093else
7094 am__fastdepCXX_TRUE='#'
7095 am__fastdepCXX_FALSE=
7096fi
7097
7098
cristy8b350f62009-11-15 23:12:43 +00007099 case $ac_cv_prog_cc_stdc in #(
7100 no) :
7101 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
7102 *) :
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00007104$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007105if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007106 $as_echo_n "(cached) " >&6
7107else
7108 ac_cv_prog_cc_c99=no
7109ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00007110cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007111/* end confdefs.h. */
7112#include <stdarg.h>
7113#include <stdbool.h>
7114#include <stdlib.h>
7115#include <wchar.h>
7116#include <stdio.h>
7117
7118// Check varargs macros. These examples are taken from C99 6.10.3.5.
7119#define debug(...) fprintf (stderr, __VA_ARGS__)
7120#define showlist(...) puts (#__VA_ARGS__)
7121#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7122static void
7123test_varargs_macros (void)
7124{
7125 int x = 1234;
7126 int y = 5678;
7127 debug ("Flag");
7128 debug ("X = %d\n", x);
7129 showlist (The first, second, and third items.);
7130 report (x>y, "x is %d but y is %d", x, y);
7131}
7132
7133// Check long long types.
7134#define BIG64 18446744073709551615ull
7135#define BIG32 4294967295ul
7136#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7137#if !BIG_OK
7138 your preprocessor is broken;
7139#endif
7140#if BIG_OK
7141#else
7142 your preprocessor is broken;
7143#endif
7144static long long int bignum = -9223372036854775807LL;
7145static unsigned long long int ubignum = BIG64;
7146
7147struct incomplete_array
7148{
7149 int datasize;
7150 double data[];
7151};
7152
7153struct named_init {
7154 int number;
7155 const wchar_t *name;
7156 double average;
7157};
7158
7159typedef const char *ccp;
7160
7161static inline int
7162test_restrict (ccp restrict text)
7163{
7164 // See if C++-style comments work.
7165 // Iterate through items via the restricted pointer.
7166 // Also check for declarations in for loops.
7167 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7168 continue;
7169 return 0;
7170}
7171
7172// Check varargs and va_copy.
7173static void
7174test_varargs (const char *format, ...)
7175{
7176 va_list args;
7177 va_start (args, format);
7178 va_list args_copy;
7179 va_copy (args_copy, args);
7180
7181 const char *str;
7182 int number;
7183 float fnumber;
7184
7185 while (*format)
7186 {
7187 switch (*format++)
7188 {
7189 case 's': // string
7190 str = va_arg (args_copy, const char *);
7191 break;
7192 case 'd': // int
7193 number = va_arg (args_copy, int);
7194 break;
7195 case 'f': // float
7196 fnumber = va_arg (args_copy, double);
7197 break;
7198 default:
7199 break;
7200 }
7201 }
7202 va_end (args_copy);
7203 va_end (args);
7204}
7205
7206int
7207main ()
7208{
7209
7210 // Check bool.
7211 _Bool success = false;
7212
7213 // Check restrict.
7214 if (test_restrict ("String literal") == 0)
7215 success = true;
7216 char *restrict newvar = "Another string";
7217
7218 // Check varargs.
7219 test_varargs ("s, d' f .", "string", 65, 34.234);
7220 test_varargs_macros ();
7221
7222 // Check flexible array members.
7223 struct incomplete_array *ia =
7224 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7225 ia->datasize = 10;
7226 for (int i = 0; i < ia->datasize; ++i)
7227 ia->data[i] = i * 1.234;
7228
7229 // Check named initializers.
7230 struct named_init ni = {
7231 .number = 34,
7232 .name = L"Test wide string",
7233 .average = 543.34343,
7234 };
7235
7236 ni.number = 58;
7237
7238 int dynamic_array[ni.number];
7239 dynamic_array[ni.number - 1] = 543;
7240
7241 // work around unused variable warnings
7242 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7243 || dynamic_array[ni.number - 1] != 543);
7244
7245 ;
7246 return 0;
7247}
7248_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007249for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy3ed852e2009-09-05 21:47:34 +00007250do
7251 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007252 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007253 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007254fi
cristy3ed852e2009-09-05 21:47:34 +00007255rm -f core conftest.err conftest.$ac_objext
7256 test "x$ac_cv_prog_cc_c99" != "xno" && break
7257done
7258rm -f conftest.$ac_ext
7259CC=$ac_save_CC
7260
7261fi
7262# AC_CACHE_VAL
7263case "x$ac_cv_prog_cc_c99" in
7264 x)
cristy8b350f62009-11-15 23:12:43 +00007265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007266$as_echo "none needed" >&6; } ;;
7267 xno)
cristy8b350f62009-11-15 23:12:43 +00007268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007269$as_echo "unsupported" >&6; } ;;
7270 *)
7271 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00007272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00007273$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7274esac
cristy8b350f62009-11-15 23:12:43 +00007275if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007276 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7277else
cristy8b350f62009-11-15 23:12:43 +00007278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007279$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007280if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007281 $as_echo_n "(cached) " >&6
7282else
7283 ac_cv_prog_cc_c89=no
7284ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00007285cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007286/* end confdefs.h. */
7287#include <stdarg.h>
7288#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00007289struct stat;
cristy3ed852e2009-09-05 21:47:34 +00007290/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7291struct buf { int x; };
7292FILE * (*rcsopen) (struct buf *, struct stat *, int);
7293static char *e (p, i)
7294 char **p;
7295 int i;
7296{
7297 return p[i];
7298}
7299static char *f (char * (*g) (char **, int), char **p, ...)
7300{
7301 char *s;
7302 va_list v;
7303 va_start (v,p);
7304 s = g (p, va_arg (v,int));
7305 va_end (v);
7306 return s;
7307}
7308
7309/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7310 function prototypes and stuff, but not '\xHH' hex character constants.
7311 These don't provoke an error unfortunately, instead are silently treated
7312 as 'x'. The following induces an error, until -std is added to get
7313 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7314 array size at least. It's necessary to write '\x00'==0 to get something
7315 that's true only with -std. */
7316int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7317
7318/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7319 inside strings and character constants. */
7320#define FOO(x) 'x'
7321int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7322
7323int test (int i, double x);
7324struct s1 {int (*f) (int a);};
7325struct s2 {int (*f) (double a);};
7326int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7327int argc;
7328char **argv;
7329int
7330main ()
7331{
7332return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7333 ;
7334 return 0;
7335}
7336_ACEOF
7337for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7338 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7339do
7340 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007341 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007342 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007343fi
cristy3ed852e2009-09-05 21:47:34 +00007344rm -f core conftest.err conftest.$ac_objext
7345 test "x$ac_cv_prog_cc_c89" != "xno" && break
7346done
7347rm -f conftest.$ac_ext
7348CC=$ac_save_CC
7349
7350fi
7351# AC_CACHE_VAL
7352case "x$ac_cv_prog_cc_c89" in
7353 x)
cristy8b350f62009-11-15 23:12:43 +00007354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007355$as_echo "none needed" >&6; } ;;
7356 xno)
cristy8b350f62009-11-15 23:12:43 +00007357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007358$as_echo "unsupported" >&6; } ;;
7359 *)
7360 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00007361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007362$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7363esac
cristy8b350f62009-11-15 23:12:43 +00007364if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007365 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7366else
7367 ac_cv_prog_cc_stdc=no
7368fi
7369
cristy3ed852e2009-09-05 21:47:34 +00007370fi
cristy3ed852e2009-09-05 21:47:34 +00007371 ;;
7372esac
cristy8b350f62009-11-15 23:12:43 +00007373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00007374$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007375 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007376 $as_echo_n "(cached) " >&6
7377fi
7378
cristy8b350f62009-11-15 23:12:43 +00007379 case $ac_cv_prog_cc_stdc in #(
7380 no) :
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7382$as_echo "unsupported" >&6; } ;; #(
7383 '') :
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7385$as_echo "none needed" >&6; } ;; #(
7386 *) :
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00007388$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7389esac
7390
cristy3ed852e2009-09-05 21:47:34 +00007391ac_ext=c
7392ac_cpp='$CPP $CPPFLAGS'
7393ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7394ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7395ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00007396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00007397$as_echo_n "checking how to run the C preprocessor... " >&6; }
7398# On Suns, sometimes $CPP names a directory.
7399if test -n "$CPP" && test -d "$CPP"; then
7400 CPP=
7401fi
7402if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00007403 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007404 $as_echo_n "(cached) " >&6
7405else
7406 # Double quotes because CPP needs to be expanded
7407 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7408 do
7409 ac_preproc_ok=false
7410for ac_c_preproc_warn_flag in '' yes
7411do
7412 # Use a header file that comes with gcc, so configuring glibc
7413 # with a fresh cross-compiler works.
7414 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7415 # <limits.h> exists even on freestanding compilers.
7416 # On the NeXT, cc -E runs the code through the compiler's parser,
7417 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007419/* end confdefs.h. */
7420#ifdef __STDC__
7421# include <limits.h>
7422#else
7423# include <assert.h>
7424#endif
7425 Syntax error
7426_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007427if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007428
cristy8b350f62009-11-15 23:12:43 +00007429else
cristy3ed852e2009-09-05 21:47:34 +00007430 # Broken: fails on valid input.
7431continue
7432fi
cristyda16f162011-02-19 23:52:17 +00007433rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007434
7435 # OK, works on sane cases. Now check whether nonexistent headers
7436 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007438/* end confdefs.h. */
7439#include <ac_nonexistent.h>
7440_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007441if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007442 # Broken: success on invalid input.
7443continue
7444else
cristy3ed852e2009-09-05 21:47:34 +00007445 # Passes both tests.
7446ac_preproc_ok=:
7447break
7448fi
cristyda16f162011-02-19 23:52:17 +00007449rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007450
7451done
7452# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007453rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007454if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007455 break
7456fi
7457
7458 done
7459 ac_cv_prog_CPP=$CPP
7460
7461fi
7462 CPP=$ac_cv_prog_CPP
7463else
7464 ac_cv_prog_CPP=$CPP
7465fi
cristy8b350f62009-11-15 23:12:43 +00007466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007467$as_echo "$CPP" >&6; }
7468ac_preproc_ok=false
7469for ac_c_preproc_warn_flag in '' yes
7470do
7471 # Use a header file that comes with gcc, so configuring glibc
7472 # with a fresh cross-compiler works.
7473 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7474 # <limits.h> exists even on freestanding compilers.
7475 # On the NeXT, cc -E runs the code through the compiler's parser,
7476 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007478/* end confdefs.h. */
7479#ifdef __STDC__
7480# include <limits.h>
7481#else
7482# include <assert.h>
7483#endif
7484 Syntax error
7485_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007486if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007487
cristy8b350f62009-11-15 23:12:43 +00007488else
cristy3ed852e2009-09-05 21:47:34 +00007489 # Broken: fails on valid input.
7490continue
7491fi
cristyda16f162011-02-19 23:52:17 +00007492rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007493
7494 # OK, works on sane cases. Now check whether nonexistent headers
7495 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007497/* end confdefs.h. */
7498#include <ac_nonexistent.h>
7499_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007500if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007501 # Broken: success on invalid input.
7502continue
7503else
cristy3ed852e2009-09-05 21:47:34 +00007504 # Passes both tests.
7505ac_preproc_ok=:
7506break
7507fi
cristyda16f162011-02-19 23:52:17 +00007508rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007509
7510done
7511# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007512rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007513if $ac_preproc_ok; then :
7514
cristy3ed852e2009-09-05 21:47:34 +00007515else
cristy8b350f62009-11-15 23:12:43 +00007516 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007517$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00007518as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7519See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007520fi
7521
7522ac_ext=c
7523ac_cpp='$CPP $CPPFLAGS'
7524ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7525ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7526ac_compiler_gnu=$ac_cv_c_compiler_gnu
7527
cristy73bd4a52010-10-05 11:24:23 +00007528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7529$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007530if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007531 $as_echo_n "(cached) " >&6
7532else
7533 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7534 for ac_i in 1 2 3 4 5 6 7; do
7535 ac_script="$ac_script$as_nl$ac_script"
7536 done
7537 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7538 { ac_script=; unset ac_script;}
7539 if test -z "$SED"; then
7540 ac_path_SED_found=false
7541 # Loop through the user's path and test for each of PROGNAME-LIST
7542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7543for as_dir in $PATH
7544do
7545 IFS=$as_save_IFS
7546 test -z "$as_dir" && as_dir=.
7547 for ac_prog in sed gsed; do
7548 for ac_exec_ext in '' $ac_executable_extensions; do
7549 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007550 as_fn_executable_p "$ac_path_SED" || continue
cristy73bd4a52010-10-05 11:24:23 +00007551# Check for GNU ac_path_SED and select it if it is found.
7552 # Check for GNU $ac_path_SED
7553case `"$ac_path_SED" --version 2>&1` in
7554*GNU*)
7555 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7556*)
7557 ac_count=0
7558 $as_echo_n 0123456789 >"conftest.in"
7559 while :
7560 do
7561 cat "conftest.in" "conftest.in" >"conftest.tmp"
7562 mv "conftest.tmp" "conftest.in"
7563 cp "conftest.in" "conftest.nl"
7564 $as_echo '' >> "conftest.nl"
7565 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7566 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7567 as_fn_arith $ac_count + 1 && ac_count=$as_val
7568 if test $ac_count -gt ${ac_path_SED_max-0}; then
7569 # Best one so far, save it but keep looking for a better one
7570 ac_cv_path_SED="$ac_path_SED"
7571 ac_path_SED_max=$ac_count
7572 fi
7573 # 10*(2^10) chars as input seems more than enough
7574 test $ac_count -gt 10 && break
7575 done
7576 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7577esac
7578
7579 $ac_path_SED_found && break 3
7580 done
7581 done
7582 done
7583IFS=$as_save_IFS
7584 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007585 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007586 fi
7587else
7588 ac_cv_path_SED=$SED
7589fi
7590
7591fi
7592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7593$as_echo "$ac_cv_path_SED" >&6; }
7594 SED="$ac_cv_path_SED"
7595 rm -f conftest.sed
7596
7597test -z "$SED" && SED=sed
7598Xsed="$SED -e 1s/^X//"
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7611$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007612if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007613 $as_echo_n "(cached) " >&6
7614else
7615 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7616 then ac_cv_path_FGREP="$GREP -F"
7617 else
7618 if test -z "$FGREP"; then
7619 ac_path_FGREP_found=false
7620 # Loop through the user's path and test for each of PROGNAME-LIST
7621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7622for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7623do
7624 IFS=$as_save_IFS
7625 test -z "$as_dir" && as_dir=.
7626 for ac_prog in fgrep; do
7627 for ac_exec_ext in '' $ac_executable_extensions; do
7628 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007629 as_fn_executable_p "$ac_path_FGREP" || continue
cristy73bd4a52010-10-05 11:24:23 +00007630# Check for GNU ac_path_FGREP and select it if it is found.
7631 # Check for GNU $ac_path_FGREP
7632case `"$ac_path_FGREP" --version 2>&1` in
7633*GNU*)
7634 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7635*)
7636 ac_count=0
7637 $as_echo_n 0123456789 >"conftest.in"
7638 while :
7639 do
7640 cat "conftest.in" "conftest.in" >"conftest.tmp"
7641 mv "conftest.tmp" "conftest.in"
7642 cp "conftest.in" "conftest.nl"
7643 $as_echo 'FGREP' >> "conftest.nl"
7644 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7645 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7646 as_fn_arith $ac_count + 1 && ac_count=$as_val
7647 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7648 # Best one so far, save it but keep looking for a better one
7649 ac_cv_path_FGREP="$ac_path_FGREP"
7650 ac_path_FGREP_max=$ac_count
7651 fi
7652 # 10*(2^10) chars as input seems more than enough
7653 test $ac_count -gt 10 && break
7654 done
7655 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7656esac
7657
7658 $ac_path_FGREP_found && break 3
7659 done
7660 done
7661 done
7662IFS=$as_save_IFS
7663 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007664 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007665 fi
7666else
7667 ac_cv_path_FGREP=$FGREP
7668fi
7669
7670 fi
7671fi
7672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7673$as_echo "$ac_cv_path_FGREP" >&6; }
7674 FGREP="$ac_cv_path_FGREP"
7675
7676
7677test -z "$GREP" && GREP=grep
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
cristy0c60a692010-11-04 01:09:47 +00007695ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7696ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7697ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7698
7699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7700$as_echo_n "checking how to print strings... " >&6; }
7701# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00007702if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00007703 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7704 ECHO='print -r --'
7705elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7706 ECHO='printf %s\n'
7707else
7708 # Use this function as a fallback that always works.
7709 func_fallback_echo ()
7710 {
7711 eval 'cat <<_LTECHO_EOF
7712$1
7713_LTECHO_EOF'
7714 }
7715 ECHO='func_fallback_echo'
7716fi
7717
7718# func_echo_all arg...
7719# Invoke $ECHO with all args, space-separated.
7720func_echo_all ()
7721{
7722 $ECHO ""
7723}
7724
7725case "$ECHO" in
7726 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7727$as_echo "printf" >&6; } ;;
7728 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7729$as_echo "print -r" >&6; } ;;
7730 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7731$as_echo "cat" >&6; } ;;
7732esac
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
cristy73bd4a52010-10-05 11:24:23 +00007747
7748
7749# Check whether --with-gnu-ld was given.
7750if test "${with_gnu_ld+set}" = set; then :
7751 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7752else
7753 with_gnu_ld=no
7754fi
7755
7756ac_prog=ld
7757if test "$GCC" = yes; then
7758 # Check if gcc -print-prog-name=ld gives a path.
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7760$as_echo_n "checking for ld used by $CC... " >&6; }
7761 case $host in
7762 *-*-mingw*)
7763 # gcc leaves a trailing carriage return which upsets mingw
7764 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7765 *)
7766 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7767 esac
7768 case $ac_prog in
7769 # Accept absolute paths.
7770 [\\/]* | ?:[\\/]*)
7771 re_direlt='/[^/][^/]*/\.\./'
7772 # Canonicalize the pathname of ld
7773 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7774 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7775 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7776 done
7777 test -z "$LD" && LD="$ac_prog"
7778 ;;
7779 "")
7780 # If it fails, then pretend we aren't using GCC.
7781 ac_prog=ld
7782 ;;
7783 *)
7784 # If it is relative, then search for the first ld in PATH.
7785 with_gnu_ld=unknown
7786 ;;
7787 esac
7788elif test "$with_gnu_ld" = yes; then
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7790$as_echo_n "checking for GNU ld... " >&6; }
7791else
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7793$as_echo_n "checking for non-GNU ld... " >&6; }
7794fi
cristyda16f162011-02-19 23:52:17 +00007795if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007796 $as_echo_n "(cached) " >&6
7797else
7798 if test -z "$LD"; then
7799 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7800 for ac_dir in $PATH; do
7801 IFS="$lt_save_ifs"
7802 test -z "$ac_dir" && ac_dir=.
7803 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7804 lt_cv_path_LD="$ac_dir/$ac_prog"
7805 # Check to see if the program is GNU ld. I'd rather use --version,
7806 # but apparently some variants of GNU ld only accept -v.
7807 # Break only if it was the GNU/non-GNU ld that we prefer.
7808 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7809 *GNU* | *'with BFD'*)
7810 test "$with_gnu_ld" != no && break
7811 ;;
7812 *)
7813 test "$with_gnu_ld" != yes && break
7814 ;;
7815 esac
7816 fi
7817 done
7818 IFS="$lt_save_ifs"
7819else
7820 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7821fi
7822fi
7823
7824LD="$lt_cv_path_LD"
7825if test -n "$LD"; then
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7827$as_echo "$LD" >&6; }
7828else
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7830$as_echo "no" >&6; }
7831fi
cristy98dddb52010-11-04 00:30:15 +00007832test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7834$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007835if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007836 $as_echo_n "(cached) " >&6
7837else
7838 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7839case `$LD -v 2>&1 </dev/null` in
7840*GNU* | *'with BFD'*)
7841 lt_cv_prog_gnu_ld=yes
7842 ;;
7843*)
7844 lt_cv_prog_gnu_ld=no
7845 ;;
7846esac
7847fi
7848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7849$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7850with_gnu_ld=$lt_cv_prog_gnu_ld
7851
7852
7853
7854
7855
7856
7857
7858
7859
cristy3ed852e2009-09-05 21:47:34 +00007860
cristy837d6dc2010-02-27 01:16:57 +00007861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7862$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007863if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00007864 $as_echo_n "(cached) " >&6
7865else
7866 ac_cv_prog_cc_c99=no
7867ac_save_CC=$CC
7868cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7869/* end confdefs.h. */
7870#include <stdarg.h>
7871#include <stdbool.h>
7872#include <stdlib.h>
7873#include <wchar.h>
7874#include <stdio.h>
7875
7876// Check varargs macros. These examples are taken from C99 6.10.3.5.
7877#define debug(...) fprintf (stderr, __VA_ARGS__)
7878#define showlist(...) puts (#__VA_ARGS__)
7879#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7880static void
7881test_varargs_macros (void)
7882{
7883 int x = 1234;
7884 int y = 5678;
7885 debug ("Flag");
7886 debug ("X = %d\n", x);
7887 showlist (The first, second, and third items.);
7888 report (x>y, "x is %d but y is %d", x, y);
7889}
7890
7891// Check long long types.
7892#define BIG64 18446744073709551615ull
7893#define BIG32 4294967295ul
7894#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7895#if !BIG_OK
7896 your preprocessor is broken;
7897#endif
7898#if BIG_OK
7899#else
7900 your preprocessor is broken;
7901#endif
7902static long long int bignum = -9223372036854775807LL;
7903static unsigned long long int ubignum = BIG64;
7904
7905struct incomplete_array
7906{
7907 int datasize;
7908 double data[];
7909};
7910
7911struct named_init {
7912 int number;
7913 const wchar_t *name;
7914 double average;
7915};
7916
7917typedef const char *ccp;
7918
7919static inline int
7920test_restrict (ccp restrict text)
7921{
7922 // See if C++-style comments work.
7923 // Iterate through items via the restricted pointer.
7924 // Also check for declarations in for loops.
7925 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7926 continue;
7927 return 0;
7928}
7929
7930// Check varargs and va_copy.
7931static void
7932test_varargs (const char *format, ...)
7933{
7934 va_list args;
7935 va_start (args, format);
7936 va_list args_copy;
7937 va_copy (args_copy, args);
7938
7939 const char *str;
7940 int number;
7941 float fnumber;
7942
7943 while (*format)
7944 {
7945 switch (*format++)
7946 {
7947 case 's': // string
7948 str = va_arg (args_copy, const char *);
7949 break;
7950 case 'd': // int
7951 number = va_arg (args_copy, int);
7952 break;
7953 case 'f': // float
7954 fnumber = va_arg (args_copy, double);
7955 break;
7956 default:
7957 break;
7958 }
7959 }
7960 va_end (args_copy);
7961 va_end (args);
7962}
7963
7964int
7965main ()
7966{
7967
7968 // Check bool.
7969 _Bool success = false;
7970
7971 // Check restrict.
7972 if (test_restrict ("String literal") == 0)
7973 success = true;
7974 char *restrict newvar = "Another string";
7975
7976 // Check varargs.
7977 test_varargs ("s, d' f .", "string", 65, 34.234);
7978 test_varargs_macros ();
7979
7980 // Check flexible array members.
7981 struct incomplete_array *ia =
7982 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7983 ia->datasize = 10;
7984 for (int i = 0; i < ia->datasize; ++i)
7985 ia->data[i] = i * 1.234;
7986
7987 // Check named initializers.
7988 struct named_init ni = {
7989 .number = 34,
7990 .name = L"Test wide string",
7991 .average = 543.34343,
7992 };
7993
7994 ni.number = 58;
7995
7996 int dynamic_array[ni.number];
7997 dynamic_array[ni.number - 1] = 543;
7998
7999 // work around unused variable warnings
8000 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
8001 || dynamic_array[ni.number - 1] != 543);
8002
8003 ;
8004 return 0;
8005}
8006_ACEOF
cristy14fefe52012-05-21 00:59:18 +00008007for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy837d6dc2010-02-27 01:16:57 +00008008do
8009 CC="$ac_save_CC $ac_arg"
8010 if ac_fn_c_try_compile "$LINENO"; then :
8011 ac_cv_prog_cc_c99=$ac_arg
8012fi
8013rm -f core conftest.err conftest.$ac_objext
8014 test "x$ac_cv_prog_cc_c99" != "xno" && break
8015done
8016rm -f conftest.$ac_ext
8017CC=$ac_save_CC
8018
8019fi
8020# AC_CACHE_VAL
8021case "x$ac_cv_prog_cc_c99" in
8022 x)
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
8024$as_echo "none needed" >&6; } ;;
8025 xno)
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
8027$as_echo "unsupported" >&6; } ;;
8028 *)
8029 CC="$CC $ac_cv_prog_cc_c99"
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
8031$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
8032esac
8033if test "x$ac_cv_prog_cc_c99" != xno; then :
8034
8035fi
8036
8037
cristy73bd4a52010-10-05 11:24:23 +00008038
cristy17491be2014-06-24 01:10:53 +00008039ac_ext=c
8040ac_cpp='$CPP $CPPFLAGS'
8041ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8042ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8043ac_compiler_gnu=$ac_cv_c_compiler_gnu
8044
cristy73bd4a52010-10-05 11:24:23 +00008045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
8046$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008047if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008048 $as_echo_n "(cached) " >&6
8049else
8050 ac_cv_cflags_warn_all="no, unknown"
cristy17491be2014-06-24 01:10:53 +00008051ac_save_CFLAGS="$CFLAGS"
8052for 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 +00008053do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
8054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8055/* end confdefs.h. */
8056
8057int
8058main ()
8059{
cristy24fc1fe2010-10-23 21:13:01 +00008060
cristy73bd4a52010-10-05 11:24:23 +00008061 ;
8062 return 0;
8063}
8064_ACEOF
8065if ac_fn_c_try_compile "$LINENO"; then :
8066 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
8067fi
8068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8069done
cristy17491be2014-06-24 01:10:53 +00008070CFLAGS="$ac_save_CFLAGS"
8071
8072fi
8073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
8074$as_echo "$ac_cv_cflags_warn_all" >&6; }
8075
8076
8077case ".$ac_cv_cflags_warn_all" in
8078 .ok|.ok,*) ;;
8079 .|.no|.no,*) ;;
8080 *) if ${CFLAGS+:} false; then :
8081 case " $CFLAGS " in
8082 *" $ac_cv_cflags_warn_all "*)
8083 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
8084 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
8085 ac_status=$?
8086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8087 test $ac_status = 0; }
8088 ;;
8089 *)
8090 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
8091 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
8092 ac_status=$?
8093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8094 test $ac_status = 0; }
8095 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
8096 ;;
8097 esac
8098else
8099 CFLAGS="$ac_cv_cflags_warn_all"
8100fi
8101 ;;
8102esac
8103
8104ac_ext=c
cristy73bd4a52010-10-05 11:24:23 +00008105ac_cpp='$CPP $CPPFLAGS'
8106ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8107ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8108ac_compiler_gnu=$ac_cv_c_compiler_gnu
8109
8110
cristya0b81c32010-01-22 02:54:33 +00008111
8112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8113$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8114set x ${MAKE-make}
8115ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00008116if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00008117 $as_echo_n "(cached) " >&6
8118else
8119 cat >conftest.make <<\_ACEOF
8120SHELL = /bin/sh
8121all:
8122 @echo '@@@%%%=$(MAKE)=@@@%%%'
8123_ACEOF
cristy98dddb52010-11-04 00:30:15 +00008124# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00008125case `${MAKE-make} -f conftest.make 2>/dev/null` in
8126 *@@@%%%=?*=@@@%%%*)
8127 eval ac_cv_prog_make_${ac_make}_set=yes;;
8128 *)
8129 eval ac_cv_prog_make_${ac_make}_set=no;;
8130esac
8131rm -f conftest.make
8132fi
8133if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8135$as_echo "yes" >&6; }
8136 SET_MAKE=
8137else
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8139$as_echo "no" >&6; }
8140 SET_MAKE="MAKE=${MAKE-make}"
8141fi
8142
cristy8b350f62009-11-15 23:12:43 +00008143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00008144$as_echo_n "checking whether ln -s works... " >&6; }
8145LN_S=$as_ln_s
8146if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00008147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00008148$as_echo "yes" >&6; }
8149else
cristy8b350f62009-11-15 23:12:43 +00008150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00008151$as_echo "no, using $LN_S" >&6; }
8152fi
8153
cristy8d0ff762013-03-10 20:33:28 +00008154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8155$as_echo_n "checking for a sed that does not truncate output... " >&6; }
8156if ${ac_cv_path_SED+:} false; then :
8157 $as_echo_n "(cached) " >&6
8158else
8159 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8160 for ac_i in 1 2 3 4 5 6 7; do
8161 ac_script="$ac_script$as_nl$ac_script"
8162 done
8163 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8164 { ac_script=; unset ac_script;}
8165 if test -z "$SED"; then
8166 ac_path_SED_found=false
8167 # Loop through the user's path and test for each of PROGNAME-LIST
8168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8169for as_dir in $PATH
8170do
8171 IFS=$as_save_IFS
8172 test -z "$as_dir" && as_dir=.
8173 for ac_prog in sed gsed; do
8174 for ac_exec_ext in '' $ac_executable_extensions; do
8175 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
8176 as_fn_executable_p "$ac_path_SED" || continue
8177# Check for GNU ac_path_SED and select it if it is found.
8178 # Check for GNU $ac_path_SED
8179case `"$ac_path_SED" --version 2>&1` in
8180*GNU*)
8181 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8182*)
8183 ac_count=0
8184 $as_echo_n 0123456789 >"conftest.in"
8185 while :
8186 do
8187 cat "conftest.in" "conftest.in" >"conftest.tmp"
8188 mv "conftest.tmp" "conftest.in"
8189 cp "conftest.in" "conftest.nl"
8190 $as_echo '' >> "conftest.nl"
8191 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8192 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8193 as_fn_arith $ac_count + 1 && ac_count=$as_val
8194 if test $ac_count -gt ${ac_path_SED_max-0}; then
8195 # Best one so far, save it but keep looking for a better one
8196 ac_cv_path_SED="$ac_path_SED"
8197 ac_path_SED_max=$ac_count
8198 fi
8199 # 10*(2^10) chars as input seems more than enough
8200 test $ac_count -gt 10 && break
8201 done
8202 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8203esac
8204
8205 $ac_path_SED_found && break 3
8206 done
8207 done
8208 done
8209IFS=$as_save_IFS
8210 if test -z "$ac_cv_path_SED"; then
8211 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8212 fi
8213else
8214 ac_cv_path_SED=$SED
8215fi
8216
8217fi
8218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8219$as_echo "$ac_cv_path_SED" >&6; }
8220 SED="$ac_cv_path_SED"
8221 rm -f conftest.sed
8222
cristybc556452012-08-17 19:44:03 +00008223for ac_prog in gawk mawk nawk awk
8224do
8225 # Extract the first word of "$ac_prog", so it can be a program name with args.
8226set dummy $ac_prog; ac_word=$2
8227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8228$as_echo_n "checking for $ac_word... " >&6; }
8229if ${ac_cv_prog_AWK+:} false; then :
8230 $as_echo_n "(cached) " >&6
8231else
8232 if test -n "$AWK"; then
8233 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8234else
8235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8236for as_dir in $PATH
8237do
8238 IFS=$as_save_IFS
8239 test -z "$as_dir" && as_dir=.
8240 for ac_exec_ext in '' $ac_executable_extensions; do
8241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8242 ac_cv_prog_AWK="$ac_prog"
8243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8244 break 2
8245 fi
8246done
8247 done
8248IFS=$as_save_IFS
8249
8250fi
8251fi
8252AWK=$ac_cv_prog_AWK
8253if test -n "$AWK"; then
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8255$as_echo "$AWK" >&6; }
8256else
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8258$as_echo "no" >&6; }
8259fi
8260
8261
8262 test -n "$AWK" && break
8263done
8264
cristy73bd4a52010-10-05 11:24:23 +00008265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
8266$as_echo_n "checking if malloc debugging is wanted... " >&6; }
8267
8268# Check whether --with-dmalloc was given.
8269if test "${with_dmalloc+set}" = set; then :
8270 withval=$with_dmalloc; if test "$withval" = yes; then
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8272$as_echo "yes" >&6; }
8273
8274$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
8275
8276 LIBS="$LIBS -ldmalloc"
8277 LDFLAGS="$LDFLAGS -g"
8278else
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8280$as_echo "no" >&6; }
8281fi
8282else
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8284$as_echo "no" >&6; }
8285fi
8286
8287
8288
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
8290$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008291if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008292 $as_echo_n "(cached) " >&6
8293else
8294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8295/* end confdefs.h. */
8296#include <stdlib.h>
cristy73380532012-02-18 20:26:28 +00008297 static void foo(void) __attribute__ ((__unused__));
cristy73bd4a52010-10-05 11:24:23 +00008298 static void
8299 foo(void) {
8300 exit(1);
8301 }
8302
8303int
8304main ()
8305{
8306
8307 ;
8308 return 0;
8309}
8310_ACEOF
8311if ac_fn_c_try_compile "$LINENO"; then :
8312 ax_cv___attribute__=yes
8313else
8314 ax_cv___attribute__=no
8315
8316fi
8317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8318
8319fi
8320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
8321$as_echo "$ax_cv___attribute__" >&6; }
8322 if test "$ax_cv___attribute__" = "yes"; then
8323
8324$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
8325
8326 fi
8327
8328
8329
cristya0459972013-11-03 18:09:35 +00008330
8331
cristy17491be2014-06-24 01:10:53 +00008332
cristya0459972013-11-03 18:09:35 +00008333# Check whether --with-gcc-arch was given.
8334if test "${with_gcc_arch+set}" = set; then :
8335 withval=$with_gcc_arch; ax_gcc_arch=$withval
8336else
cristy17491be2014-06-24 01:10:53 +00008337 ax_gcc_arch=yes
cristya0459972013-11-03 18:09:35 +00008338fi
8339
8340
8341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8342$as_echo_n "checking for gcc architecture flag... " >&6; }
8343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
8344$as_echo "" >&6; }
8345if ${ax_cv_gcc_archflag+:} false; then :
8346 $as_echo_n "(cached) " >&6
8347else
8348
8349ax_cv_gcc_archflag="unknown"
8350
8351if test "$GCC" = yes; then
8352
8353if test "x$ax_gcc_arch" = xyes; then
8354ax_gcc_arch=""
8355if test "$cross_compiling" = no; then
8356case $host_cpu in
cristy17491be2014-06-24 01:10:53 +00008357 i[3456]86*|x86_64*|amd64*) # use cpuid codes
cristya0459972013-11-03 18:09:35 +00008358
8359ac_ext=c
8360ac_cpp='$CPP $CPPFLAGS'
8361ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8362ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8363ac_compiler_gnu=$ac_cv_c_compiler_gnu
8364
8365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
8366$as_echo_n "checking for x86 cpuid 0 output... " >&6; }
8367if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
8368 $as_echo_n "(cached) " >&6
8369else
8370 if test "$cross_compiling" = yes; then :
8371 ax_cv_gcc_x86_cpuid_0=unknown
8372else
8373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8374/* end confdefs.h. */
8375#include <stdio.h>
8376int
8377main ()
8378{
8379
8380 int op = 0, eax, ebx, ecx, edx;
8381 FILE *f;
8382 __asm__("cpuid"
8383 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8384 : "a" (op));
8385 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8386 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8387 fclose(f);
8388 return 0;
8389
8390 ;
8391 return 0;
8392}
8393_ACEOF
8394if ac_fn_c_try_run "$LINENO"; then :
8395 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
8396else
8397 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
8398fi
8399rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8400 conftest.$ac_objext conftest.beam conftest.$ac_ext
8401fi
8402
8403fi
8404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
8405$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
8406ac_ext=c
8407ac_cpp='$CPP $CPPFLAGS'
8408ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8409ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8410ac_compiler_gnu=$ac_cv_c_compiler_gnu
8411
8412
8413
8414ac_ext=c
8415ac_cpp='$CPP $CPPFLAGS'
8416ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8417ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8418ac_compiler_gnu=$ac_cv_c_compiler_gnu
8419
8420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
8421$as_echo_n "checking for x86 cpuid 1 output... " >&6; }
8422if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
8423 $as_echo_n "(cached) " >&6
8424else
8425 if test "$cross_compiling" = yes; then :
8426 ax_cv_gcc_x86_cpuid_1=unknown
8427else
8428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8429/* end confdefs.h. */
8430#include <stdio.h>
8431int
8432main ()
8433{
8434
8435 int op = 1, eax, ebx, ecx, edx;
8436 FILE *f;
8437 __asm__("cpuid"
8438 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8439 : "a" (op));
8440 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8441 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8442 fclose(f);
8443 return 0;
8444
8445 ;
8446 return 0;
8447}
8448_ACEOF
8449if ac_fn_c_try_run "$LINENO"; then :
8450 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
8451else
8452 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
8453fi
8454rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8455 conftest.$ac_objext conftest.beam conftest.$ac_ext
8456fi
8457
8458fi
8459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
8460$as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
8461ac_ext=c
8462ac_cpp='$CPP $CPPFLAGS'
8463ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8464ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8465ac_compiler_gnu=$ac_cv_c_compiler_gnu
8466
8467
8468 case $ax_cv_gcc_x86_cpuid_0 in
8469 *:756e6547:*:*) # Intel
8470 case $ax_cv_gcc_x86_cpuid_1 in
8471 *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
8472 *5??:*:*:*) ax_gcc_arch=pentium ;;
cristya0459972013-11-03 18:09:35 +00008473 *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
8474 *1?6[aef]?:*:*:*|*2?6[5cef]?:*:*:*) ax_gcc_arch="corei7 core2 pentium-m pentium3 pentiumpro" ;;
8475 *1?6c?:*:*:*|*[23]?66?:*:*:*) ax_gcc_arch="atom core2 pentium-m pentium3 pentiumpro" ;;
8476 *2?6[ad]?:*:*:*) ax_gcc_arch="corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
cristy17491be2014-06-24 01:10:53 +00008477 *[1-9a-f]?6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
8478 *6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8479 *6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8480 *6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8481 *6[9de]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
8482 *6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8483 *6f?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
8484 *6??:*:*:*) ax_gcc_arch=pentiumpro ;;
8485 *f3[347]:*:*:*|*f41347:*:*:*|*f6?:*:*:*)
cristya0459972013-11-03 18:09:35 +00008486 case $host_cpu in
8487 x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;;
8488 *) ax_gcc_arch="prescott pentium4 pentiumpro" ;;
8489 esac ;;
cristy17491be2014-06-24 01:10:53 +00008490 *f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";;
cristya0459972013-11-03 18:09:35 +00008491 esac ;;
8492 *:68747541:*:*) # AMD
8493 case $ax_cv_gcc_x86_cpuid_1 in
8494 *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
8495 *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
8496 *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
8497 *60?:*:*:*) ax_gcc_arch=k7 ;;
8498 *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
8499 *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
8500 *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;;
8501 *6[68a]?:*:*:*)
8502
8503ac_ext=c
8504ac_cpp='$CPP $CPPFLAGS'
8505ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8506ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8507ac_compiler_gnu=$ac_cv_c_compiler_gnu
8508
8509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000006 output" >&5
8510$as_echo_n "checking for x86 cpuid 0x80000006 output... " >&6; }
8511if ${ax_cv_gcc_x86_cpuid_0x80000006+:} false; then :
8512 $as_echo_n "(cached) " >&6
8513else
8514 if test "$cross_compiling" = yes; then :
8515 ax_cv_gcc_x86_cpuid_0x80000006=unknown
8516else
8517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8518/* end confdefs.h. */
8519#include <stdio.h>
8520int
8521main ()
8522{
8523
8524 int op = 0x80000006, eax, ebx, ecx, edx;
8525 FILE *f;
8526 __asm__("cpuid"
8527 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8528 : "a" (op));
8529 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8530 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8531 fclose(f);
8532 return 0;
8533
8534 ;
8535 return 0;
8536}
8537_ACEOF
8538if ac_fn_c_try_run "$LINENO"; then :
8539 ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid
8540else
8541 ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid
8542fi
8543rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8544 conftest.$ac_objext conftest.beam conftest.$ac_ext
8545fi
8546
8547fi
8548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5
8549$as_echo "$ax_cv_gcc_x86_cpuid_0x80000006" >&6; }
8550ac_ext=c
8551ac_cpp='$CPP $CPPFLAGS'
8552ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8553ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8554ac_compiler_gnu=$ac_cv_c_compiler_gnu
8555
8556 # L2 cache size
8557 case $ax_cv_gcc_x86_cpuid_0x80000006 in
8558 *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256
8559 ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
8560 *) ax_gcc_arch="athlon-4 athlon k7" ;;
8561 esac ;;
cristy17491be2014-06-24 01:10:53 +00008562 *5??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
8563 *6??f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
8564 *[1-9a-f]??f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
8565 *f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
8566 *f5?:*:*:*) ax_gcc_arch="opteron k8" ;;
8567 *f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;;
8568 *f??:*:*:*) ax_gcc_arch="k8" ;;
cristya0459972013-11-03 18:09:35 +00008569 esac ;;
8570 *:746e6543:*:*) # IDT
8571 case $ax_cv_gcc_x86_cpuid_1 in
8572 *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
8573 *58?:*:*:*) ax_gcc_arch=winchip2 ;;
8574 *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
8575 *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
8576 esac ;;
8577 esac
8578 if test x"$ax_gcc_arch" = x; then # fallback
8579 case $host_cpu in
8580 i586*) ax_gcc_arch=pentium ;;
8581 i686*) ax_gcc_arch=pentiumpro ;;
8582 esac
8583 fi
8584 ;;
8585
8586 sparc*)
8587 # Extract the first word of "prtdiag", so it can be a program name with args.
8588set dummy prtdiag; ac_word=$2
8589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8590$as_echo_n "checking for $ac_word... " >&6; }
8591if ${ac_cv_path_PRTDIAG+:} false; then :
8592 $as_echo_n "(cached) " >&6
8593else
8594 case $PRTDIAG in
8595 [\\/]* | ?:[\\/]*)
8596 ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
8597 ;;
8598 *)
8599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8600as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
8601for as_dir in $as_dummy
8602do
8603 IFS=$as_save_IFS
8604 test -z "$as_dir" && as_dir=.
8605 for ac_exec_ext in '' $ac_executable_extensions; do
8606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8607 ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
8608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8609 break 2
8610 fi
8611done
8612 done
8613IFS=$as_save_IFS
8614
8615 test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
8616 ;;
8617esac
8618fi
8619PRTDIAG=$ac_cv_path_PRTDIAG
8620if test -n "$PRTDIAG"; then
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
8622$as_echo "$PRTDIAG" >&6; }
8623else
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8625$as_echo "no" >&6; }
8626fi
8627
8628
8629 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 +00008630 cputype=`echo "$cputype" | tr -d ' -' | $SED 's/SPARCIIi/SPARCII/' |tr $as_cr_LETTERS $as_cr_letters`
cristya0459972013-11-03 18:09:35 +00008631 case $cputype in
8632 *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
8633 *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
8634 *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
8635 *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
8636 *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
8637 *cypress*) ax_gcc_arch=cypress ;;
8638 esac ;;
8639
8640 alphaev5) ax_gcc_arch=ev5 ;;
8641 alphaev56) ax_gcc_arch=ev56 ;;
8642 alphapca56) ax_gcc_arch="pca56 ev56" ;;
8643 alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
8644 alphaev6) ax_gcc_arch=ev6 ;;
8645 alphaev67) ax_gcc_arch=ev67 ;;
8646 alphaev68) ax_gcc_arch="ev68 ev67" ;;
8647 alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
8648 alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
8649 alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
8650
8651 powerpc*)
cristy17491be2014-06-24 01:10:53 +00008652 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`
8653 cputype=`echo $cputype | $SED -e 's/ppc//g;s/ *//g'`
cristya0459972013-11-03 18:09:35 +00008654 case $cputype in
8655 *750*) ax_gcc_arch="750 G3" ;;
8656 *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
8657 *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
8658 *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
8659 *970*) ax_gcc_arch="970 G5 power4";;
8660 *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
8661 *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
8662 603ev|8240) ax_gcc_arch="$cputype 603e 603";;
8663 *) ax_gcc_arch=$cputype ;;
8664 esac
8665 ax_gcc_arch="$ax_gcc_arch powerpc"
8666 ;;
8667esac
8668fi # not cross-compiling
8669fi # guess arch
8670
8671if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
8672for arch in $ax_gcc_arch; do
8673 if test "xno" = xyes; then # if we require portable code
8674 flags="-mtune=$arch"
8675 # -mcpu=$arch and m$arch generate nonportable code on every arch except
8676 # x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr.
8677 case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac
8678 else
8679 flags="-march=$arch -mcpu=$arch -m$arch"
8680 fi
8681 for flag in $flags; do
8682 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
8683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
8684$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
8685if eval \${$as_CACHEVAR+:} false; then :
8686 $as_echo_n "(cached) " >&6
8687else
8688
8689 ax_check_save_flags=$CFLAGS
8690 CFLAGS="$CFLAGS $flag"
8691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8692/* end confdefs.h. */
8693
8694int
8695main ()
8696{
8697
8698 ;
8699 return 0;
8700}
8701_ACEOF
8702if ac_fn_c_try_compile "$LINENO"; then :
8703 eval "$as_CACHEVAR=yes"
8704else
8705 eval "$as_CACHEVAR=no"
8706fi
8707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8708 CFLAGS=$ax_check_save_flags
8709fi
8710eval ac_res=\$$as_CACHEVAR
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8712$as_echo "$ac_res" >&6; }
8713if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
8714 ax_cv_gcc_archflag=$flag; break
8715else
8716 :
8717fi
8718
8719 done
8720 test "x$ax_cv_gcc_archflag" = xunknown || break
8721done
8722fi
8723
8724fi # $GCC=yes
8725
8726fi
8727
8728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8729$as_echo_n "checking for gcc architecture flag... " >&6; }
8730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
8731$as_echo "$ax_cv_gcc_archflag" >&6; }
8732if test "x$ax_cv_gcc_archflag" = xunknown; then
8733 :
8734else
8735 CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
8736fi
8737
8738
8739
cristy73bd4a52010-10-05 11:24:23 +00008740if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8741 if test -n "$ac_tool_prefix"; then
8742 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8743set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8745$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008746if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008747 $as_echo_n "(cached) " >&6
8748else
8749 case $PKG_CONFIG in
8750 [\\/]* | ?:[\\/]*)
8751 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8752 ;;
8753 *)
8754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8755for as_dir in $PATH
8756do
8757 IFS=$as_save_IFS
8758 test -z "$as_dir" && as_dir=.
8759 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008761 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8763 break 2
8764 fi
8765done
8766 done
8767IFS=$as_save_IFS
8768
8769 ;;
8770esac
8771fi
8772PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8773if test -n "$PKG_CONFIG"; then
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8775$as_echo "$PKG_CONFIG" >&6; }
8776else
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8778$as_echo "no" >&6; }
8779fi
8780
8781
8782fi
8783if test -z "$ac_cv_path_PKG_CONFIG"; then
8784 ac_pt_PKG_CONFIG=$PKG_CONFIG
8785 # Extract the first word of "pkg-config", so it can be a program name with args.
8786set dummy pkg-config; ac_word=$2
8787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8788$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008789if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008790 $as_echo_n "(cached) " >&6
8791else
8792 case $ac_pt_PKG_CONFIG in
8793 [\\/]* | ?:[\\/]*)
8794 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8795 ;;
8796 *)
8797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8798for as_dir in $PATH
8799do
8800 IFS=$as_save_IFS
8801 test -z "$as_dir" && as_dir=.
8802 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008804 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8806 break 2
8807 fi
8808done
8809 done
8810IFS=$as_save_IFS
8811
8812 ;;
8813esac
8814fi
8815ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8816if test -n "$ac_pt_PKG_CONFIG"; then
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8818$as_echo "$ac_pt_PKG_CONFIG" >&6; }
8819else
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8821$as_echo "no" >&6; }
8822fi
8823
8824 if test "x$ac_pt_PKG_CONFIG" = x; then
8825 PKG_CONFIG=""
8826 else
8827 case $cross_compiling:$ac_tool_warned in
8828yes:)
8829{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8830$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8831ac_tool_warned=yes ;;
8832esac
8833 PKG_CONFIG=$ac_pt_PKG_CONFIG
8834 fi
8835else
8836 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8837fi
8838
8839fi
8840if test -n "$PKG_CONFIG"; then
8841 _pkg_min_version=0.9.0
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8843$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8844 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8846$as_echo "yes" >&6; }
8847 else
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8849$as_echo "no" >&6; }
8850 PKG_CONFIG=""
8851 fi
8852
8853fi
cristy3ed852e2009-09-05 21:47:34 +00008854
cristyd95b7a52013-10-23 13:12:53 +00008855# Test for 64-bit build.
8856# The cast to long int works around a bug in the HP C Compiler
8857# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8858# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8859# This bug is HP SR number 8606223364.
8860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
8861$as_echo_n "checking size of size_t... " >&6; }
8862if ${ac_cv_sizeof_size_t+:} false; then :
8863 $as_echo_n "(cached) " >&6
8864else
8865 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
8866
8867else
8868 if test "$ac_cv_type_size_t" = yes; then
8869 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8870$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8871as_fn_error 77 "cannot compute sizeof (size_t)
8872See \`config.log' for more details" "$LINENO" 5; }
8873 else
8874 ac_cv_sizeof_size_t=0
8875 fi
8876fi
8877
8878fi
8879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
8880$as_echo "$ac_cv_sizeof_size_t" >&6; }
8881
8882
8883
8884cat >>confdefs.h <<_ACEOF
8885#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
8886_ACEOF
8887
8888
8889
8890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
8891$as_echo_n "checking for C compiler vendor... " >&6; }
8892if ${ax_cv_c_compiler_vendor+:} false; then :
8893 $as_echo_n "(cached) " >&6
8894else
8895 # note: don't check for gcc first since some other compilers define __GNUC__
8896 vendors="intel: __ICC,__ECC,__INTEL_COMPILER
8897 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__
8898 pathscale: __PATHCC__,__PATHSCALE__
8899 clang: __clang__
cristy17491be2014-06-24 01:10:53 +00008900 fujitsu: __FUJITSU
cristyd95b7a52013-10-23 13:12:53 +00008901 gnu: __GNUC__
8902 sun: __SUNPRO_C,__SUNPRO_CC
8903 hp: __HP_cc,__HP_aCC
8904 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
8905 borland: __BORLANDC__,__TURBOC__
8906 comeau: __COMO__
8907 cray: _CRAYC
8908 kai: __KCC
8909 lcc: __LCC__
8910 sgi: __sgi,sgi
8911 microsoft: _MSC_VER
8912 metrowerks: __MWERKS__
8913 watcom: __WATCOMC__
8914 portland: __PGI
8915 unknown: UNKNOWN"
8916 for ventest in $vendors; do
8917 case $ventest in
8918 *:) vendor=$ventest; continue ;;
8919 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
8920 esac
8921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8922/* end confdefs.h. */
8923
8924int
8925main ()
8926{
8927
8928 #if !($vencpp)
8929 thisisanerror;
8930 #endif
8931
8932 ;
8933 return 0;
8934}
8935_ACEOF
8936if ac_fn_c_try_compile "$LINENO"; then :
8937 break
8938fi
8939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8940 done
8941 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
8942
8943fi
8944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
8945$as_echo "$ax_cv_c_compiler_vendor" >&6; }
8946
cristyd95b7a52013-10-23 13:12:53 +00008947# The AX_CFLAGS_WARN_ALL macro doesn't currently work for sunpro
8948# compiler.
8949if test "$ax_cv_c_compiler_vendor" != "sun"; then
cristy17491be2014-06-24 01:10:53 +00008950 ac_ext=c
cristyd95b7a52013-10-23 13:12:53 +00008951ac_cpp='$CPP $CPPFLAGS'
8952ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8953ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8954ac_compiler_gnu=$ac_cv_c_compiler_gnu
8955
cristy17491be2014-06-24 01:10:53 +00008956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
8957$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
8958if ${ac_cv_cflags_warn_all+:} false; then :
8959 $as_echo_n "(cached) " >&6
8960else
8961 ac_cv_cflags_warn_all="no, unknown"
8962ac_save_CFLAGS="$CFLAGS"
8963for 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 +00008964do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
8965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8966/* end confdefs.h. */
8967
8968int
8969main ()
8970{
8971
8972 ;
8973 return 0;
8974}
8975_ACEOF
8976if ac_fn_c_try_compile "$LINENO"; then :
8977 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
8978fi
8979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8980done
cristy17491be2014-06-24 01:10:53 +00008981CFLAGS="$ac_save_CFLAGS"
8982
8983fi
8984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
8985$as_echo "$ac_cv_cflags_warn_all" >&6; }
8986
8987
8988case ".$ac_cv_cflags_warn_all" in
8989 .ok|.ok,*) ;;
8990 .|.no|.no,*) ;;
8991 *) if ${CFLAGS+:} false; then :
8992 case " $CFLAGS " in
8993 *" $ac_cv_cflags_warn_all "*)
8994 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
8995 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
8996 ac_status=$?
8997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8998 test $ac_status = 0; }
8999 ;;
9000 *)
9001 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
9002 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
9003 ac_status=$?
9004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9005 test $ac_status = 0; }
9006 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
9007 ;;
9008 esac
9009else
9010 CFLAGS="$ac_cv_cflags_warn_all"
9011fi
9012 ;;
9013esac
9014
9015ac_ext=c
cristyd95b7a52013-10-23 13:12:53 +00009016ac_cpp='$CPP $CPPFLAGS'
9017ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9018ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9019ac_compiler_gnu=$ac_cv_c_compiler_gnu
9020
9021
9022fi
cristyd95b7a52013-10-23 13:12:53 +00009023
9024if test "x$GCC" = "xyes"; then
9025 CFLAGS="$CFLAGS -fexceptions"
9026 touch local.exp
9027else
9028 cat > local.exp <<EOF
9029set CC_FOR_TARGET "$CC"
9030EOF
9031fi
9032
cristy9b86f202012-11-28 21:55:35 +00009033# Check for linker script support
9034
9035 # Check whether --enable-ld-version-script was given.
9036if test "${enable_ld_version_script+set}" = set; then :
9037 enableval=$enable_ld_version_script; have_ld_version_script=$enableval
9038fi
9039
9040 if test -z "$have_ld_version_script"; then
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
9042$as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
9043 save_LDFLAGS="$LDFLAGS"
9044 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
9045 cat > conftest.map <<EOF
9046foo
9047EOF
9048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9049/* end confdefs.h. */
9050
9051int
9052main ()
9053{
9054
9055 ;
9056 return 0;
9057}
9058_ACEOF
9059if ac_fn_c_try_link "$LINENO"; then :
9060 accepts_syntax_errors=yes
9061else
9062 accepts_syntax_errors=no
9063fi
9064rm -f core conftest.err conftest.$ac_objext \
9065 conftest$ac_exeext conftest.$ac_ext
9066 if test "$accepts_syntax_errors" = no; then
9067 cat > conftest.map <<EOF
9068VERS_1 {
9069 global: sym;
9070};
9071
9072VERS_2 {
9073 global: sym;
9074} VERS_1;
9075EOF
9076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9077/* end confdefs.h. */
9078
9079int
9080main ()
9081{
9082
9083 ;
9084 return 0;
9085}
9086_ACEOF
9087if ac_fn_c_try_link "$LINENO"; then :
9088 have_ld_version_script=yes
9089else
9090 have_ld_version_script=no
9091fi
9092rm -f core conftest.err conftest.$ac_objext \
9093 conftest$ac_exeext conftest.$ac_ext
9094 else
9095 have_ld_version_script=no
9096 fi
9097 rm -f conftest.map
9098 LDFLAGS="$save_LDFLAGS"
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
9100$as_echo "$have_ld_version_script" >&6; }
9101 fi
9102 if test "$have_ld_version_script" = "yes"; then
9103 HAVE_LD_VERSION_SCRIPT_TRUE=
9104 HAVE_LD_VERSION_SCRIPT_FALSE='#'
9105else
9106 HAVE_LD_VERSION_SCRIPT_TRUE='#'
9107 HAVE_LD_VERSION_SCRIPT_FALSE=
9108fi
9109
9110
9111
cristy3ed852e2009-09-05 21:47:34 +00009112#
cristy3ed852e2009-09-05 21:47:34 +00009113# Enable run-time checking.
9114#
9115# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00009116if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009117 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
9118else
9119 enable_bounds_checking='no'
9120fi
9121
9122
9123if test "$enable_bounds_checking" = yes; then
9124
cristy8b350f62009-11-15 23:12:43 +00009125$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009126
9127fi
9128
9129#
9130# Tests for Windows
9131#
9132
9133
9134
9135GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00009136native_win32_build='no'
9137cygwin_build='no'
9138case "${host_os}" in
9139 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00009140 cygwin_build='yes'
9141 GDI32_LIBS='-lgdi32'
9142 ;;
9143 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00009144 native_win32_build='yes'
9145 GDI32_LIBS='-lgdi32'
9146 ;;
9147esac
9148if test "${GDI32_LIBS}x" != 'x'; then
9149
cristy8b350f62009-11-15 23:12:43 +00009150$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009151
9152fi
9153
cristy73bd4a52010-10-05 11:24:23 +00009154 if test "${GDI32_LIBS}x" != 'x' ; then
9155 WINGDI32_DELEGATE_TRUE=
9156 WINGDI32_DELEGATE_FALSE='#'
9157else
9158 WINGDI32_DELEGATE_TRUE='#'
9159 WINGDI32_DELEGATE_FALSE=
9160fi
9161
9162 if test "${native_win32_build}" = 'yes' ; then
9163 WIN32_NATIVE_BUILD_TRUE=
9164 WIN32_NATIVE_BUILD_FALSE='#'
9165else
9166 WIN32_NATIVE_BUILD_TRUE='#'
9167 WIN32_NATIVE_BUILD_FALSE=
9168fi
9169
9170 if test "${cygwin_build}" = 'yes' ; then
9171 CYGWIN_BUILD_TRUE=
9172 CYGWIN_BUILD_FALSE='#'
9173else
9174 CYGWIN_BUILD_TRUE='#'
9175 CYGWIN_BUILD_FALSE=
9176fi
9177
9178 if test "x${CC}" = 'xcl.exe' ; then
9179 USING_CL_TRUE=
9180 USING_CL_FALSE='#'
9181else
9182 USING_CL_TRUE='#'
9183 USING_CL_FALSE=
9184fi
9185
cristy3ed852e2009-09-05 21:47:34 +00009186
9187WinPathScript="${srcdirfull}/winpath.sh"
9188
9189
9190#
9191# Compiler flags tweaks
9192#
9193if test "${GCC}" != "yes"; then
9194 case "${host}" in
9195 *-*-hpux* )
9196 # aCC: HP ANSI C++ B3910B A.03.34
9197 CFLAGS="${CFLAGS} -Wp,-H30000"
9198 if test -n "${CXXFLAGS}"; then
9199 CXXFLAGS='-AA'
9200 else
9201 CXXFLAGS="${CXXFLAGS} -AA"
9202 fi
9203 ;;
9204 *-dec-osf5.* )
9205 # Compaq alphaev68-dec-osf5.1 compiler
9206 if test -n "${CXXFLAGS}"; then
9207 CXXFLAGS='-std strict_ansi -noimplicit_include'
9208 else
9209 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
9210 fi
9211 esac
9212fi
9213
9214# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00009215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00009216$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009217if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009218 $as_echo_n "(cached) " >&6
9219else
9220
9221im_cv_ld_lazyload='none'
9222case "${host}" in
9223 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
9224 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
9225 im_cv_ld_lazyload='-Wl,-zlazyload'
9226 fi
9227 ;;
9228esac
9229
9230fi
cristy8b350f62009-11-15 23:12:43 +00009231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00009232$as_echo "$im_cv_ld_lazyload" >&6; }
9233if test "${im_cv_ld_lazyload}" != 'none' ; then
9234 if test -z "${LDFLAGS}" ; then
9235 LDFLAGS="${im_cv_ld_lazyload}"
9236 else
9237 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
9238 fi
9239fi
9240
9241case "$host" in
cristyc37574e2013-02-16 01:04:55 +00009242 *darwin* | *-macos10*)
cristyb3b90d32013-02-16 15:44:08 +00009243 CFLAGS="${CFLAGS} -D_FORTIFY_SOURCE=0"
cristyc37574e2013-02-16 01:04:55 +00009244 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00009245if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009246 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
9247else
9248 build_osxuniversal=no
9249fi
9250
9251
cristyc37574e2013-02-16 01:04:55 +00009252 if test "${build_osxuniversal}" != no ; then
9253 if test "$enable_dependency_tracking" != no ; then
9254 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00009255Please re-run configure with these options:
9256 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00009257 " "$LINENO" 5
cristyc37574e2013-02-16 01:04:55 +00009258 fi
9259 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
9260 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
9261 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
cristy3ed852e2009-09-05 21:47:34 +00009262 fi
9263 ;;
9264esac
9265
cristy0151ae12011-10-28 16:32:29 +00009266#
9267# ARCH specific include directory
9268#
9269
cristy670aa3c2011-11-03 00:54:00 +00009270# Check whether --with-includearch-dir was given.
9271if test "${with_includearch_dir+set}" = set; then :
9272 withval=$with_includearch_dir; includearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00009273else
cristy670aa3c2011-11-03 00:54:00 +00009274 includearch_dir=$INCLUDE_DIR
cristy0151ae12011-10-28 16:32:29 +00009275fi
9276
9277
cristyd286fd72013-02-24 19:25:33 +00009278eval "eval INCLUDEARCH_DIR=$includearch_dir"
cristyac9041a2011-10-28 16:52:32 +00009279
cristy0151ae12011-10-28 16:32:29 +00009280
9281#
9282# ARCH specific configuration directory
9283#
9284
cristy670aa3c2011-11-03 00:54:00 +00009285# Check whether --with-sharearch-dir was given.
9286if test "${with_sharearch_dir+set}" = set; then :
9287 withval=$with_sharearch_dir; sharearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00009288else
cristy408ebcd2011-11-14 01:36:57 +00009289 sharearch_dir="${LIB_DIR}"
cristy0151ae12011-10-28 16:32:29 +00009290fi
9291
9292
cristy670aa3c2011-11-03 00:54:00 +00009293eval "eval SHAREARCH_DIR=$sharearch_dir"
cristyac9041a2011-10-28 16:52:32 +00009294
cristy0151ae12011-10-28 16:32:29 +00009295
cristy2ec87cc2013-02-18 17:46:50 +00009296# Path to the pkgconfig folder
9297
9298# Check whether --with-pkgconfigdir was given.
9299if test "${with_pkgconfigdir+set}" = set; then :
9300 withval=$with_pkgconfigdir; pkgconfigdir="$withval"
9301else
9302 pkgconfigdir='${libdir}/pkgconfig'
9303fi
9304
9305
9306
cristy0151ae12011-10-28 16:32:29 +00009307#
cristy3ed852e2009-09-05 21:47:34 +00009308# Enable support for threads
cristy1ae5c992013-07-30 14:55:07 +00009309#
9310# Find Posix threads library
9311#
cristy3ed852e2009-09-05 21:47:34 +00009312
9313# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00009314if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009315 withval=$with_threads; with_threads=$withval
9316else
9317 with_threads='yes'
9318fi
9319
9320
cristy1ae5c992013-07-30 14:55:07 +00009321THREAD_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00009322have_threads=no
9323if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00009324
9325
cristy73bd4a52010-10-05 11:24:23 +00009326ac_ext=c
9327ac_cpp='$CPP $CPPFLAGS'
9328ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9329ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9330ac_compiler_gnu=$ac_cv_c_compiler_gnu
9331
9332ax_pthread_ok=no
9333
9334# We used to check for pthread.h first, but this fails if pthread.h
9335# requires special compiler flags (e.g. on True64 or Sequent).
9336# It gets checked for in the link test anyway.
9337
9338# First of all, check if the user has set any of the PTHREAD_LIBS,
9339# etcetera environment variables, and if threads linking works using
9340# them:
9341if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9342 save_CFLAGS="$CFLAGS"
9343 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9344 save_LIBS="$LIBS"
9345 LIBS="$PTHREAD_LIBS $LIBS"
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9347$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9349/* end confdefs.h. */
9350
9351/* Override any GCC internal prototype to avoid an error.
9352 Use char because int might match the return type of a GCC
9353 builtin and then its argument prototype would still apply. */
9354#ifdef __cplusplus
9355extern "C"
9356#endif
9357char pthread_join ();
9358int
9359main ()
9360{
9361return pthread_join ();
9362 ;
9363 return 0;
9364}
9365_ACEOF
9366if ac_fn_c_try_link "$LINENO"; then :
9367 ax_pthread_ok=yes
9368fi
9369rm -f core conftest.err conftest.$ac_objext \
9370 conftest$ac_exeext conftest.$ac_ext
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9372$as_echo "$ax_pthread_ok" >&6; }
9373 if test x"$ax_pthread_ok" = xno; then
9374 PTHREAD_LIBS=""
9375 PTHREAD_CFLAGS=""
9376 fi
9377 LIBS="$save_LIBS"
9378 CFLAGS="$save_CFLAGS"
9379fi
9380
9381# We must check for the threads library under a number of different
9382# names; the ordering is very important because some systems
9383# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9384# libraries is broken (non-POSIX).
9385
9386# Create a list of thread flags to try. Items starting with a "-" are
9387# C compiler flags, and other items are library names, except for "none"
9388# which indicates that we try without any flags at all, and "pthread-config"
9389# which is a program returning the flags for the Pth emulation library.
9390
cristy2ec87cc2013-02-18 17:46:50 +00009391ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009392
9393# The ordering *is* (sometimes) important. Some notes on the
9394# individual items follow:
9395
9396# pthreads: AIX (must check this before -lpthread)
9397# none: in case threads are in libc; should be tried before -Kthread and
9398# other compiler flags to prevent continual compiler warnings
9399# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9400# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9401# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9402# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9403# -pthreads: Solaris/gcc
9404# -mthreads: Mingw32/gcc, Lynx/gcc
9405# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9406# doesn't hurt to check since this sometimes defines pthreads too;
9407# also defines -D_REENTRANT)
9408# ... -mt is also the pthreads flag for HP/aCC
9409# pthread: Linux, etcetera
9410# --thread-safe: KAI C++
9411# pthread-config: use pthread-config program (for GNU Pth library)
9412
cristy2ec87cc2013-02-18 17:46:50 +00009413case ${host_os} in
9414 solaris*)
cristy73bd4a52010-10-05 11:24:23 +00009415
9416 # On Solaris (at least, for some versions), libc contains stubbed
9417 # (non-functional) versions of the pthreads routines, so link-based
9418 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9419 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9420 # a function called by this macro, so we could check for that, but
9421 # who knows whether they'll stub that too in a future libc.) So,
9422 # we'll just look for -pthreads and -lpthread first:
9423
9424 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9425 ;;
9426
cristy2ec87cc2013-02-18 17:46:50 +00009427 darwin*)
cristya316db12011-10-24 00:49:45 +00009428 ax_pthread_flags="-pthread $ax_pthread_flags"
9429 ;;
cristy73bd4a52010-10-05 11:24:23 +00009430esac
9431
cristy17491be2014-06-24 01:10:53 +00009432# Clang doesn't consider unrecognized options an error unless we specify
9433# -Werror. We throw in some extra Clang-specific options to ensure that
9434# this doesn't happen for GCC, which also accepts -Werror.
9435
9436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
9437$as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; }
9438save_CFLAGS="$CFLAGS"
9439ax_pthread_extra_flags="-Werror"
9440CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
9441cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9442/* end confdefs.h. */
9443int foo(void);
9444int
9445main ()
9446{
9447foo()
9448 ;
9449 return 0;
9450}
9451_ACEOF
9452if ac_fn_c_try_compile "$LINENO"; then :
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9454$as_echo "yes" >&6; }
9455else
9456 ax_pthread_extra_flags=
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9458$as_echo "no" >&6; }
9459fi
9460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9461CFLAGS="$save_CFLAGS"
9462
cristy73bd4a52010-10-05 11:24:23 +00009463if test x"$ax_pthread_ok" = xno; then
9464for flag in $ax_pthread_flags; do
9465
9466 case $flag in
9467 none)
9468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9469$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9470 ;;
9471
9472 -*)
9473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9474$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9475 PTHREAD_CFLAGS="$flag"
9476 ;;
9477
cristya316db12011-10-24 00:49:45 +00009478 pthread-config)
9479 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009480set dummy pthread-config; ac_word=$2
9481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9482$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009483if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009484 $as_echo_n "(cached) " >&6
9485else
9486 if test -n "$ax_pthread_config"; then
9487 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9488else
9489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9490for as_dir in $PATH
9491do
9492 IFS=$as_save_IFS
9493 test -z "$as_dir" && as_dir=.
9494 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009496 ac_cv_prog_ax_pthread_config="yes"
9497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9498 break 2
9499 fi
9500done
9501 done
9502IFS=$as_save_IFS
9503
9504 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9505fi
9506fi
9507ax_pthread_config=$ac_cv_prog_ax_pthread_config
9508if test -n "$ax_pthread_config"; then
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9510$as_echo "$ax_pthread_config" >&6; }
9511else
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9513$as_echo "no" >&6; }
9514fi
9515
9516
cristya316db12011-10-24 00:49:45 +00009517 if test x"$ax_pthread_config" = xno; then continue; fi
9518 PTHREAD_CFLAGS="`pthread-config --cflags`"
9519 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9520 ;;
cristy73bd4a52010-10-05 11:24:23 +00009521
9522 *)
9523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9524$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9525 PTHREAD_LIBS="-l$flag"
9526 ;;
9527 esac
9528
9529 save_LIBS="$LIBS"
9530 save_CFLAGS="$CFLAGS"
9531 LIBS="$PTHREAD_LIBS $LIBS"
cristy17491be2014-06-24 01:10:53 +00009532 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
cristy73bd4a52010-10-05 11:24:23 +00009533
9534 # Check for various functions. We must include pthread.h,
9535 # since some functions may be macros. (On the Sequent, we
9536 # need a special flag -Kthread to make this header compile.)
9537 # We check for pthread_join because it is in -lpthread on IRIX
9538 # while pthread_create is in libc. We check for pthread_attr_init
9539 # due to DEC craziness with -lpthreads. We check for
9540 # pthread_cleanup_push because it is one of the few pthread
9541 # functions on Solaris that doesn't have a non-functional libc stub.
9542 # We try pthread_create on general principles.
9543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9544/* end confdefs.h. */
9545#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009546 static void routine(void *a) { a = 0; }
9547 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009548int
9549main ()
9550{
9551pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009552 pthread_create(&th, 0, start_routine, 0);
9553 pthread_join(th, 0);
9554 pthread_attr_init(&attr);
9555 pthread_cleanup_push(routine, 0);
9556 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009557 ;
9558 return 0;
9559}
9560_ACEOF
9561if ac_fn_c_try_link "$LINENO"; then :
9562 ax_pthread_ok=yes
9563fi
9564rm -f core conftest.err conftest.$ac_objext \
9565 conftest$ac_exeext conftest.$ac_ext
9566
9567 LIBS="$save_LIBS"
9568 CFLAGS="$save_CFLAGS"
9569
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9571$as_echo "$ax_pthread_ok" >&6; }
9572 if test "x$ax_pthread_ok" = xyes; then
9573 break;
9574 fi
9575
9576 PTHREAD_LIBS=""
9577 PTHREAD_CFLAGS=""
9578done
9579fi
9580
9581# Various other checks:
9582if test "x$ax_pthread_ok" = xyes; then
9583 save_LIBS="$LIBS"
9584 LIBS="$PTHREAD_LIBS $LIBS"
9585 save_CFLAGS="$CFLAGS"
9586 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9587
9588 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009590$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009591 attr_name=unknown
9592 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009594/* end confdefs.h. */
9595#include <pthread.h>
9596int
9597main ()
9598{
cristya316db12011-10-24 00:49:45 +00009599int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009600 ;
9601 return 0;
9602}
9603_ACEOF
9604if ac_fn_c_try_link "$LINENO"; then :
9605 attr_name=$attr; break
9606fi
9607rm -f core conftest.err conftest.$ac_objext \
9608 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009609 done
cristy73bd4a52010-10-05 11:24:23 +00009610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9611$as_echo "$attr_name" >&6; }
9612 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9613
9614cat >>confdefs.h <<_ACEOF
9615#define PTHREAD_CREATE_JOINABLE $attr_name
9616_ACEOF
9617
9618 fi
9619
9620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9621$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9622 flag=no
cristy2ec87cc2013-02-18 17:46:50 +00009623 case ${host_os} in
9624 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
9625 osf* | hpux*) flag="-D_REENTRANT";;
9626 solaris*)
9627 if test "$GCC" = "yes"; then
9628 flag="-D_REENTRANT"
9629 else
cristy17491be2014-06-24 01:10:53 +00009630 # TODO: What about Clang on Solaris?
cristy2ec87cc2013-02-18 17:46:50 +00009631 flag="-mt -D_REENTRANT"
9632 fi
9633 ;;
cristy73bd4a52010-10-05 11:24:23 +00009634 esac
cristy17491be2014-06-24 01:10:53 +00009635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
9636$as_echo "$flag" >&6; }
cristy73bd4a52010-10-05 11:24:23 +00009637 if test "x$flag" != xno; then
9638 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9639 fi
9640
cristya316db12011-10-24 00:49:45 +00009641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9642$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9643if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9644 $as_echo_n "(cached) " >&6
9645else
9646
9647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9648/* end confdefs.h. */
cristy17491be2014-06-24 01:10:53 +00009649#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009650int
9651main ()
9652{
9653int i = PTHREAD_PRIO_INHERIT;
9654 ;
9655 return 0;
9656}
9657_ACEOF
9658if ac_fn_c_try_link "$LINENO"; then :
9659 ax_cv_PTHREAD_PRIO_INHERIT=yes
9660else
9661 ax_cv_PTHREAD_PRIO_INHERIT=no
9662fi
9663rm -f core conftest.err conftest.$ac_objext \
9664 conftest$ac_exeext conftest.$ac_ext
9665
9666fi
9667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9668$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9669 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9670
9671$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9672
9673fi
9674
cristy73bd4a52010-10-05 11:24:23 +00009675 LIBS="$save_LIBS"
9676 CFLAGS="$save_CFLAGS"
9677
cristy23493c42013-04-11 16:04:59 +00009678 # More AIX lossage: compile with *_r variant
9679 if test "x$GCC" != xyes; then
9680 case $host_os in
9681 aix*)
9682 case "x/$CC" in #(
9683 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
9684 #handle absolute path differently from PATH based program lookup
9685 case "x$CC" in #(
9686 x/*) :
9687 if as_fn_executable_p ${CC}_r; then :
9688 PTHREAD_CC="${CC}_r"
9689fi ;; #(
9690 *) :
9691 for ac_prog in ${CC}_r
cristy73bd4a52010-10-05 11:24:23 +00009692do
9693 # Extract the first word of "$ac_prog", so it can be a program name with args.
9694set dummy $ac_prog; ac_word=$2
9695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9696$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009697if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009698 $as_echo_n "(cached) " >&6
9699else
9700 if test -n "$PTHREAD_CC"; then
9701 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9702else
9703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9704for as_dir in $PATH
9705do
9706 IFS=$as_save_IFS
9707 test -z "$as_dir" && as_dir=.
9708 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009710 ac_cv_prog_PTHREAD_CC="$ac_prog"
9711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9712 break 2
9713 fi
9714done
9715 done
9716IFS=$as_save_IFS
9717
9718fi
9719fi
9720PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9721if test -n "$PTHREAD_CC"; then
9722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9723$as_echo "$PTHREAD_CC" >&6; }
9724else
9725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9726$as_echo "no" >&6; }
9727fi
9728
9729
9730 test -n "$PTHREAD_CC" && break
9731done
cristy23493c42013-04-11 16:04:59 +00009732test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9733 ;;
9734esac ;; #(
9735 *) :
9736 ;;
9737esac
9738 ;;
9739 esac
cristya316db12011-10-24 00:49:45 +00009740 fi
cristy73bd4a52010-10-05 11:24:23 +00009741fi
9742
cristy23493c42013-04-11 16:04:59 +00009743test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9744
cristy73bd4a52010-10-05 11:24:23 +00009745
9746
9747
9748
9749# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9750if test x"$ax_pthread_ok" = xyes; then
9751
9752$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9753
9754 :
9755else
9756 ax_pthread_ok=no
9757
9758fi
9759ac_ext=c
9760ac_cpp='$CPP $CPPFLAGS'
9761ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9762ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9763ac_compiler_gnu=$ac_cv_c_compiler_gnu
9764
9765
cristy7acf8fb2010-09-23 19:58:53 +00009766 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00009767 have_threads=yes
9768 DEF_THREAD="$PTHREAD_CFLAGS"
9769 CFLAGS="$CFLAGS $DEF_THREAD"
9770 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
cristy1ae5c992013-07-30 14:55:07 +00009771 THREAD_LIBS="$PTHREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +00009772 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00009773 { $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 +00009774$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
9775 CC="$PTHREAD_CC"
9776 fi
cristy55bf91c2010-09-24 00:29:41 +00009777
9778$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
9779
cristy3ed852e2009-09-05 21:47:34 +00009780 fi
9781fi
cristy1ae5c992013-07-30 14:55:07 +00009782LIBS="$LIBS $THREAD_LIBS"
9783
cristy3ed852e2009-09-05 21:47:34 +00009784
9785# Enable support for OpenMP
9786if test "$have_threads" != 'yes'; then
9787 ac_cv_prog_c_openmp=unsupported
9788fi
9789
9790 OPENMP_CFLAGS=
9791 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00009792if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009793 enableval=$enable_openmp;
9794fi
9795
9796 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00009797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009798$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009799if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009800 $as_echo_n "(cached) " >&6
9801else
cristy8b350f62009-11-15 23:12:43 +00009802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9803/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009804
9805#ifndef _OPENMP
9806 choke me
9807#endif
9808#include <omp.h>
9809int main () { return omp_get_num_threads (); }
9810
9811_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009812if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009813 ac_cv_prog_c_openmp='none needed'
9814else
cristy8b350f62009-11-15 23:12:43 +00009815 ac_cv_prog_c_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +00009816 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
9817 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +00009818 ac_save_CFLAGS=$CFLAGS
9819 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00009820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9821/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009822
9823#ifndef _OPENMP
9824 choke me
9825#endif
9826#include <omp.h>
9827int main () { return omp_get_num_threads (); }
9828
9829_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009830if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009831 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00009832fi
cristy8b350f62009-11-15 23:12:43 +00009833rm -f core conftest.err conftest.$ac_objext \
9834 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009835 CFLAGS=$ac_save_CFLAGS
9836 if test "$ac_cv_prog_c_openmp" != unsupported; then
9837 break
9838 fi
9839 done
9840fi
cristy8b350f62009-11-15 23:12:43 +00009841rm -f core conftest.err conftest.$ac_objext \
9842 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009843fi
cristy8b350f62009-11-15 23:12:43 +00009844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00009845$as_echo "$ac_cv_prog_c_openmp" >&6; }
9846 case $ac_cv_prog_c_openmp in #(
9847 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00009848 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00009849 *)
cristy8b350f62009-11-15 23:12:43 +00009850 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00009851 esac
9852 fi
9853
9854
9855CFLAGS="$OPENMP_CFLAGS $CFLAGS"
9856MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
9857
cristy391f1ce2010-09-09 17:23:28 +00009858if test "$enable_openmp" != no; then
9859 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
9860 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
9861 fi
9862fi
cristy3ed852e2009-09-05 21:47:34 +00009863
cristy736173a2009-09-20 21:18:22 +00009864# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +00009865
9866
cristy73bd4a52010-10-05 11:24:23 +00009867ac_ext=c
9868ac_cpp='$CPP $CPPFLAGS'
9869ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9870ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9871ac_compiler_gnu=$ac_cv_c_compiler_gnu
9872
9873ax_pthread_ok=no
9874
9875# We used to check for pthread.h first, but this fails if pthread.h
9876# requires special compiler flags (e.g. on True64 or Sequent).
9877# It gets checked for in the link test anyway.
9878
9879# First of all, check if the user has set any of the PTHREAD_LIBS,
9880# etcetera environment variables, and if threads linking works using
9881# them:
9882if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9883 save_CFLAGS="$CFLAGS"
9884 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9885 save_LIBS="$LIBS"
9886 LIBS="$PTHREAD_LIBS $LIBS"
9887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9888$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9890/* end confdefs.h. */
9891
9892/* Override any GCC internal prototype to avoid an error.
9893 Use char because int might match the return type of a GCC
9894 builtin and then its argument prototype would still apply. */
9895#ifdef __cplusplus
9896extern "C"
9897#endif
9898char pthread_join ();
9899int
9900main ()
9901{
9902return pthread_join ();
9903 ;
9904 return 0;
9905}
9906_ACEOF
9907if ac_fn_c_try_link "$LINENO"; then :
9908 ax_pthread_ok=yes
9909fi
9910rm -f core conftest.err conftest.$ac_objext \
9911 conftest$ac_exeext conftest.$ac_ext
9912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9913$as_echo "$ax_pthread_ok" >&6; }
9914 if test x"$ax_pthread_ok" = xno; then
9915 PTHREAD_LIBS=""
9916 PTHREAD_CFLAGS=""
9917 fi
9918 LIBS="$save_LIBS"
9919 CFLAGS="$save_CFLAGS"
9920fi
9921
9922# We must check for the threads library under a number of different
9923# names; the ordering is very important because some systems
9924# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9925# libraries is broken (non-POSIX).
9926
9927# Create a list of thread flags to try. Items starting with a "-" are
9928# C compiler flags, and other items are library names, except for "none"
9929# which indicates that we try without any flags at all, and "pthread-config"
9930# which is a program returning the flags for the Pth emulation library.
9931
cristy2ec87cc2013-02-18 17:46:50 +00009932ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009933
9934# The ordering *is* (sometimes) important. Some notes on the
9935# individual items follow:
9936
9937# pthreads: AIX (must check this before -lpthread)
9938# none: in case threads are in libc; should be tried before -Kthread and
9939# other compiler flags to prevent continual compiler warnings
9940# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9941# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9942# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9943# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9944# -pthreads: Solaris/gcc
9945# -mthreads: Mingw32/gcc, Lynx/gcc
9946# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9947# doesn't hurt to check since this sometimes defines pthreads too;
9948# also defines -D_REENTRANT)
9949# ... -mt is also the pthreads flag for HP/aCC
9950# pthread: Linux, etcetera
9951# --thread-safe: KAI C++
9952# pthread-config: use pthread-config program (for GNU Pth library)
9953
cristy2ec87cc2013-02-18 17:46:50 +00009954case ${host_os} in
9955 solaris*)
cristy73bd4a52010-10-05 11:24:23 +00009956
9957 # On Solaris (at least, for some versions), libc contains stubbed
9958 # (non-functional) versions of the pthreads routines, so link-based
9959 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9960 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9961 # a function called by this macro, so we could check for that, but
9962 # who knows whether they'll stub that too in a future libc.) So,
9963 # we'll just look for -pthreads and -lpthread first:
9964
9965 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9966 ;;
9967
cristy2ec87cc2013-02-18 17:46:50 +00009968 darwin*)
cristya316db12011-10-24 00:49:45 +00009969 ax_pthread_flags="-pthread $ax_pthread_flags"
9970 ;;
cristy73bd4a52010-10-05 11:24:23 +00009971esac
9972
cristy17491be2014-06-24 01:10:53 +00009973# Clang doesn't consider unrecognized options an error unless we specify
9974# -Werror. We throw in some extra Clang-specific options to ensure that
9975# this doesn't happen for GCC, which also accepts -Werror.
9976
9977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
9978$as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; }
9979save_CFLAGS="$CFLAGS"
9980ax_pthread_extra_flags="-Werror"
9981CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
9982cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9983/* end confdefs.h. */
9984int foo(void);
9985int
9986main ()
9987{
9988foo()
9989 ;
9990 return 0;
9991}
9992_ACEOF
9993if ac_fn_c_try_compile "$LINENO"; then :
9994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9995$as_echo "yes" >&6; }
9996else
9997 ax_pthread_extra_flags=
9998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9999$as_echo "no" >&6; }
10000fi
10001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10002CFLAGS="$save_CFLAGS"
10003
cristy73bd4a52010-10-05 11:24:23 +000010004if test x"$ax_pthread_ok" = xno; then
10005for flag in $ax_pthread_flags; do
10006
10007 case $flag in
10008 none)
10009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
10010$as_echo_n "checking whether pthreads work without any flags... " >&6; }
10011 ;;
10012
10013 -*)
10014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
10015$as_echo_n "checking whether pthreads work with $flag... " >&6; }
10016 PTHREAD_CFLAGS="$flag"
10017 ;;
10018
cristya316db12011-10-24 00:49:45 +000010019 pthread-config)
10020 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +000010021set dummy pthread-config; ac_word=$2
10022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10023$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010024if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010025 $as_echo_n "(cached) " >&6
10026else
10027 if test -n "$ax_pthread_config"; then
10028 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
10029else
10030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10031for as_dir in $PATH
10032do
10033 IFS=$as_save_IFS
10034 test -z "$as_dir" && as_dir=.
10035 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010037 ac_cv_prog_ax_pthread_config="yes"
10038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10039 break 2
10040 fi
10041done
10042 done
10043IFS=$as_save_IFS
10044
10045 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
10046fi
10047fi
10048ax_pthread_config=$ac_cv_prog_ax_pthread_config
10049if test -n "$ax_pthread_config"; then
10050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
10051$as_echo "$ax_pthread_config" >&6; }
10052else
10053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10054$as_echo "no" >&6; }
10055fi
10056
10057
cristya316db12011-10-24 00:49:45 +000010058 if test x"$ax_pthread_config" = xno; then continue; fi
10059 PTHREAD_CFLAGS="`pthread-config --cflags`"
10060 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
10061 ;;
cristy73bd4a52010-10-05 11:24:23 +000010062
10063 *)
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
10065$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
10066 PTHREAD_LIBS="-l$flag"
10067 ;;
10068 esac
10069
10070 save_LIBS="$LIBS"
10071 save_CFLAGS="$CFLAGS"
10072 LIBS="$PTHREAD_LIBS $LIBS"
cristy17491be2014-06-24 01:10:53 +000010073 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
cristy73bd4a52010-10-05 11:24:23 +000010074
10075 # Check for various functions. We must include pthread.h,
10076 # since some functions may be macros. (On the Sequent, we
10077 # need a special flag -Kthread to make this header compile.)
10078 # We check for pthread_join because it is in -lpthread on IRIX
10079 # while pthread_create is in libc. We check for pthread_attr_init
10080 # due to DEC craziness with -lpthreads. We check for
10081 # pthread_cleanup_push because it is one of the few pthread
10082 # functions on Solaris that doesn't have a non-functional libc stub.
10083 # We try pthread_create on general principles.
10084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10085/* end confdefs.h. */
10086#include <pthread.h>
cristya316db12011-10-24 00:49:45 +000010087 static void routine(void *a) { a = 0; }
10088 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +000010089int
10090main ()
10091{
10092pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +000010093 pthread_create(&th, 0, start_routine, 0);
10094 pthread_join(th, 0);
10095 pthread_attr_init(&attr);
10096 pthread_cleanup_push(routine, 0);
10097 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +000010098 ;
10099 return 0;
10100}
10101_ACEOF
10102if ac_fn_c_try_link "$LINENO"; then :
10103 ax_pthread_ok=yes
10104fi
10105rm -f core conftest.err conftest.$ac_objext \
10106 conftest$ac_exeext conftest.$ac_ext
10107
10108 LIBS="$save_LIBS"
10109 CFLAGS="$save_CFLAGS"
10110
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
10112$as_echo "$ax_pthread_ok" >&6; }
10113 if test "x$ax_pthread_ok" = xyes; then
10114 break;
10115 fi
10116
10117 PTHREAD_LIBS=""
10118 PTHREAD_CFLAGS=""
10119done
10120fi
10121
10122# Various other checks:
10123if test "x$ax_pthread_ok" = xyes; then
10124 save_LIBS="$LIBS"
10125 LIBS="$PTHREAD_LIBS $LIBS"
10126 save_CFLAGS="$CFLAGS"
10127 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
10128
10129 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +000010130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +000010131$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +000010132 attr_name=unknown
10133 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
10134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000010135/* end confdefs.h. */
10136#include <pthread.h>
10137int
10138main ()
10139{
cristya316db12011-10-24 00:49:45 +000010140int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +000010141 ;
10142 return 0;
10143}
10144_ACEOF
10145if ac_fn_c_try_link "$LINENO"; then :
10146 attr_name=$attr; break
10147fi
10148rm -f core conftest.err conftest.$ac_objext \
10149 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +000010150 done
cristy73bd4a52010-10-05 11:24:23 +000010151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
10152$as_echo "$attr_name" >&6; }
10153 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
10154
10155cat >>confdefs.h <<_ACEOF
10156#define PTHREAD_CREATE_JOINABLE $attr_name
10157_ACEOF
10158
10159 fi
10160
10161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
10162$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
10163 flag=no
cristy2ec87cc2013-02-18 17:46:50 +000010164 case ${host_os} in
10165 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
10166 osf* | hpux*) flag="-D_REENTRANT";;
10167 solaris*)
10168 if test "$GCC" = "yes"; then
10169 flag="-D_REENTRANT"
10170 else
cristy17491be2014-06-24 01:10:53 +000010171 # TODO: What about Clang on Solaris?
cristy2ec87cc2013-02-18 17:46:50 +000010172 flag="-mt -D_REENTRANT"
10173 fi
10174 ;;
cristy73bd4a52010-10-05 11:24:23 +000010175 esac
cristy17491be2014-06-24 01:10:53 +000010176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
10177$as_echo "$flag" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000010178 if test "x$flag" != xno; then
10179 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
10180 fi
10181
cristya316db12011-10-24 00:49:45 +000010182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
10183$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
10184if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
10185 $as_echo_n "(cached) " >&6
10186else
10187
10188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10189/* end confdefs.h. */
cristy17491be2014-06-24 01:10:53 +000010190#include <pthread.h>
cristya316db12011-10-24 00:49:45 +000010191int
10192main ()
10193{
10194int i = PTHREAD_PRIO_INHERIT;
10195 ;
10196 return 0;
10197}
10198_ACEOF
10199if ac_fn_c_try_link "$LINENO"; then :
10200 ax_cv_PTHREAD_PRIO_INHERIT=yes
10201else
10202 ax_cv_PTHREAD_PRIO_INHERIT=no
10203fi
10204rm -f core conftest.err conftest.$ac_objext \
10205 conftest$ac_exeext conftest.$ac_ext
10206
10207fi
10208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
10209$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
10210 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
10211
10212$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
10213
10214fi
10215
cristy73bd4a52010-10-05 11:24:23 +000010216 LIBS="$save_LIBS"
10217 CFLAGS="$save_CFLAGS"
10218
cristy23493c42013-04-11 16:04:59 +000010219 # More AIX lossage: compile with *_r variant
10220 if test "x$GCC" != xyes; then
10221 case $host_os in
10222 aix*)
10223 case "x/$CC" in #(
10224 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
10225 #handle absolute path differently from PATH based program lookup
10226 case "x$CC" in #(
10227 x/*) :
10228 if as_fn_executable_p ${CC}_r; then :
10229 PTHREAD_CC="${CC}_r"
10230fi ;; #(
10231 *) :
10232 for ac_prog in ${CC}_r
cristy73bd4a52010-10-05 11:24:23 +000010233do
10234 # Extract the first word of "$ac_prog", so it can be a program name with args.
10235set dummy $ac_prog; ac_word=$2
10236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10237$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010238if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010239 $as_echo_n "(cached) " >&6
10240else
10241 if test -n "$PTHREAD_CC"; then
10242 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
10243else
10244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10245for as_dir in $PATH
10246do
10247 IFS=$as_save_IFS
10248 test -z "$as_dir" && as_dir=.
10249 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010251 ac_cv_prog_PTHREAD_CC="$ac_prog"
10252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10253 break 2
10254 fi
10255done
10256 done
10257IFS=$as_save_IFS
10258
10259fi
10260fi
10261PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
10262if test -n "$PTHREAD_CC"; then
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
10264$as_echo "$PTHREAD_CC" >&6; }
10265else
10266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10267$as_echo "no" >&6; }
10268fi
10269
10270
10271 test -n "$PTHREAD_CC" && break
10272done
cristy23493c42013-04-11 16:04:59 +000010273test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10274 ;;
10275esac ;; #(
10276 *) :
10277 ;;
10278esac
10279 ;;
10280 esac
cristya316db12011-10-24 00:49:45 +000010281 fi
cristy73bd4a52010-10-05 11:24:23 +000010282fi
10283
cristy23493c42013-04-11 16:04:59 +000010284test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10285
cristy73bd4a52010-10-05 11:24:23 +000010286
10287
10288
10289
10290# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
10291if test x"$ax_pthread_ok" = xyes; then
10292
10293$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10294
10295 :
10296else
10297 ax_pthread_ok=no
10298
10299fi
10300ac_ext=c
10301ac_cpp='$CPP $CPPFLAGS'
10302ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10303ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10304ac_compiler_gnu=$ac_cv_c_compiler_gnu
10305
10306
10307
10308# Check whether --enable-opencl was given.
10309if test "${enable_opencl+set}" = set; then :
cristy48794642012-09-02 15:19:08 +000010310 enableval=$enable_opencl; enable_opencl=$enableval
cristy73bd4a52010-10-05 11:24:23 +000010311else
cristy48794642012-09-02 15:19:08 +000010312 enable_opencl='no'
cristy73bd4a52010-10-05 11:24:23 +000010313fi
10314
10315
cristy48794642012-09-02 15:19:08 +000010316if test "$enable_opencl" = 'yes'; then
cristy73bd4a52010-10-05 11:24:23 +000010317 ac_ext=c
10318ac_cpp='$CPP $CPPFLAGS'
10319ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10320ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10321ac_compiler_gnu=$ac_cv_c_compiler_gnu
10322
cristy75314cc2012-09-15 23:08:29 +000010323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
10324$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
10325if ${ax_cv_c_compiler_ms+:} false; then :
10326 $as_echo_n "(cached) " >&6
10327else
10328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10329/* end confdefs.h. */
10330
10331int
10332main ()
10333{
10334#ifndef _MSC_VER
10335 choke me
10336#endif
10337
10338 ;
10339 return 0;
10340}
10341_ACEOF
10342if ac_fn_c_try_compile "$LINENO"; then :
10343 ax_compiler_ms=yes
10344else
10345 ax_compiler_ms=no
10346fi
10347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10348ax_cv_c_compiler_ms=$ax_compiler_ms
10349
10350fi
10351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
10352$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000010353 if test X$ax_compiler_ms = Xno; then :
10354 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
10355fi
10356
10357 ax_save_CPPFLAGS=$CPPFLAGS
cristyfdc7d122013-08-17 20:46:45 +000010358 ax_save_CL_CFLAGS=$CL_CFLAGS
10359
10360 found_opencl_header='no'
cristy73bd4a52010-10-05 11:24:23 +000010361 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
10362 for ac_header in CL/cl.h OpenCL/cl.h
10363do :
10364 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10365ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000010366if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000010367 cat >>confdefs.h <<_ACEOF
10368#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10369_ACEOF
cristyfdc7d122013-08-17 20:46:45 +000010370 found_opencl_header='yes'
10371 break;
10372else
10373 found_opencl_header='no'
cristy73bd4a52010-10-05 11:24:23 +000010374fi
10375
10376done
10377
cristyfdc7d122013-08-17 20:46:45 +000010378
10379 if test X$found_opencl_header = Xno; then :
10380 { ac_cv_header_CL_cl_h=; unset ac_cv_header_CL_cl_h;}
10381 { ac_cv_header_OpenCL_cl_h=; unset ac_cv_header_OpenCL_cl_h;}
10382 CL_CFLAGS="-I$AMDAPPSDKROOT/include"
10383 CPPFLAGS="$ax_save_CPPFLAGS $CL_CFLAGS"
10384 for ac_header in CL/cl.h OpenCL/cl.h
10385do :
10386 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10387ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10388if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10389 cat >>confdefs.h <<_ACEOF
10390#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10391_ACEOF
10392 found_opencl_header='yes'
10393 break;
10394else
10395 found_opencl_header='no'
10396fi
10397
10398done
10399
10400
10401fi
10402
10403 CPPFLAGS="$ax_save_CPPFLAGS"
cristy73bd4a52010-10-05 11:24:23 +000010404
10405 for ac_header in windows.h
10406do :
10407 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000010408if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000010409 cat >>confdefs.h <<_ACEOF
10410#define HAVE_WINDOWS_H 1
10411_ACEOF
10412
10413fi
10414
10415done
10416
10417
10418
10419
10420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
10421$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010422if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010423 $as_echo_n "(cached) " >&6
10424else
10425 ax_cv_check_cl_libcl=no
10426 case $host_cpu in
cristyfdc7d122013-08-17 20:46:45 +000010427 x86_64) ax_check_cl_libdir=lib64
10428 ax_check_cl_amd_libdir=x86_64
10429 ;;
10430 *) ax_check_cl_libdir=lib
10431 ax_check_cl_amd_libdir=x86
10432 ;;
cristy73bd4a52010-10-05 11:24:23 +000010433 esac
10434 ax_save_CPPFLAGS=$CPPFLAGS
10435 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
10436 ax_save_LIBS=$LIBS
10437 LIBS=""
10438 ax_check_libs="-lOpenCL -lCL -lclparser"
10439 for ax_lib in $ax_check_libs; do
10440 if test X$ax_compiler_ms = Xyes; then :
10441 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
10442else
10443 ax_try_lib=$ax_lib
10444fi
10445 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
10446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10447/* end confdefs.h. */
10448
10449 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10450 # include <windows.h>
10451 # endif
10452 # ifdef HAVE_CL_CL_H
10453 # include <CL/cl.h>
10454 # elif defined(HAVE_OPENCL_CL_H)
10455 # include <OpenCL/cl.h>
10456 # else
10457 # error no CL.h
10458 # endif
10459int
10460main ()
10461{
10462clCreateContextFromType(0,0,0,0,0)
10463 ;
10464 return 0;
10465}
10466_ACEOF
10467if ac_fn_c_try_link "$LINENO"; then :
10468 ax_cv_check_cl_libcl=$ax_try_lib; break
10469else
10470 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"
10471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10472/* end confdefs.h. */
10473
10474 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10475 # include <windows.h>
10476 # endif
10477 # ifdef HAVE_CL_CL_H
10478 # include <CL/cl.h>
10479 # elif defined(HAVE_OPENCL_CL_H)
10480 # include <OpenCL/cl.h>
10481 # else
10482 # error no CL.h
10483 # endif
10484int
10485main ()
10486{
10487clCreateContextFromType(0,0,0,0,0)
10488 ;
10489 return 0;
10490}
10491_ACEOF
10492if ac_fn_c_try_link "$LINENO"; then :
10493 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
10494else
cristy78c5a0c2010-12-04 20:00:59 +000010495 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 +000010496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10497/* end confdefs.h. */
10498
10499 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10500 # include <windows.h>
10501 # endif
10502 # ifdef HAVE_CL_CL_H
10503 # include <CL/cl.h>
10504 # elif defined(HAVE_OPENCL_CL_H)
10505 # include <OpenCL/cl.h>
10506 # else
10507 # error no CL.h
10508 # endif
10509int
10510main ()
10511{
10512clCreateContextFromType(0,0,0,0,0)
10513 ;
10514 return 0;
10515}
10516_ACEOF
10517if ac_fn_c_try_link "$LINENO"; then :
10518 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
cristyfdc7d122013-08-17 20:46:45 +000010519else
10520 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"
10521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10522/* end confdefs.h. */
10523
10524 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10525 # include <windows.h>
10526 # endif
10527 # ifdef HAVE_CL_CL_H
10528 # include <CL/cl.h>
10529 # elif defined(HAVE_OPENCL_CL_H)
10530 # include <OpenCL/cl.h>
10531 # else
10532 # error no CL.h
10533 # endif
10534int
10535main ()
10536{
10537clCreateContextFromType(0,0,0,0,0)
10538 ;
10539 return 0;
10540}
10541_ACEOF
10542if ac_fn_c_try_link "$LINENO"; then :
10543 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_amd_flags"; break
10544
10545fi
10546rm -f core conftest.err conftest.$ac_objext \
10547 conftest$ac_exeext conftest.$ac_ext
10548
10549
cristy73bd4a52010-10-05 11:24:23 +000010550fi
10551rm -f core conftest.err conftest.$ac_objext \
10552 conftest$ac_exeext conftest.$ac_ext
10553fi
10554rm -f core conftest.err conftest.$ac_objext \
10555 conftest$ac_exeext conftest.$ac_ext
10556fi
10557rm -f core conftest.err conftest.$ac_objext \
10558 conftest$ac_exeext conftest.$ac_ext
10559 done
10560
cristyc3f8b8e2011-12-22 14:55:16 +000010561 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy78c5a0c2010-12-04 20:00:59 +000010562 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +000010563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10564/* end confdefs.h. */
10565
10566 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10567 # include <windows.h>
10568 # endif
10569 # ifdef HAVE_CL_CL_H
10570 # include <CL/cl.h>
10571 # elif defined(HAVE_OPENCL_CL_H)
10572 # include <OpenCL/cl.h>
10573 # else
10574 # error no CL.h
10575 # endif
10576int
10577main ()
10578{
10579clCreateContextFromType(0,0,0,0,0)
10580 ;
10581 return 0;
10582}
10583_ACEOF
10584if ac_fn_c_try_link "$LINENO"; then :
10585 ax_cv_check_cl_libcl=$LIBS
10586fi
10587rm -f core conftest.err conftest.$ac_objext \
10588 conftest$ac_exeext conftest.$ac_ext
10589fi
10590
10591 LIBS=$ax_save_LIBS
10592 CPPFLAGS=$ax_save_CPPFLAGS
10593fi
10594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
10595$as_echo "$ax_cv_check_cl_libcl" >&6; }
10596
10597 if test "X$ax_cv_check_cl_libcl" = Xno; then :
10598 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
10599else
10600 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
10601$as_echo "#define _OPENCL 1" >>confdefs.h
10602
10603fi
10604 ac_ext=c
10605ac_cpp='$CPP $CPPFLAGS'
10606ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10607ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10608ac_compiler_gnu=$ac_cv_c_compiler_gnu
10609
10610fi
10611
10612
10613
cristy0c832c62014-03-07 22:21:04 +000010614#remove static link on Linux
10615CL_LIBS=`echo $CL_LIBS | $SED -e 's/-lOpenCL //'`
10616
cristy73bd4a52010-10-05 11:24:23 +000010617
cristyc7083c12009-10-14 03:16:55 +000010618CFLAGS="$CL_CFLAGS $CFLAGS"
cristyfdc7d122013-08-17 20:46:45 +000010619CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
cristyc7083c12009-10-14 03:16:55 +000010620LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +000010621
cristy391f1ce2010-09-09 17:23:28 +000010622if test "$enable_opencl" != no; then
cristy6e3607c2011-09-13 13:59:17 +000010623 if test "X$ax_cv_check_cl_libcl" != Xno; then :
cristy391f1ce2010-09-09 17:23:28 +000010624 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
10625 fi
cristyfd9dcd42010-08-08 18:07:02 +000010626fi
cristy2e8b51d2009-10-17 18:26:15 +000010627
cristy3ed852e2009-09-05 21:47:34 +000010628########
10629#
10630# Check for large file support
10631#
10632########
10633# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +000010634if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010635 enableval=$enable_largefile;
10636fi
10637
10638if test "$enable_largefile" != no; then
10639
cristy8b350f62009-11-15 23:12:43 +000010640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010641$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010642if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010643 $as_echo_n "(cached) " >&6
10644else
10645 ac_cv_sys_largefile_CC=no
10646 if test "$GCC" != yes; then
10647 ac_save_CC=$CC
10648 while :; do
10649 # IRIX 6.2 and later do not support large files by default,
10650 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +000010651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010652/* end confdefs.h. */
10653#include <sys/types.h>
10654 /* Check that off_t can represent 2**63 - 1 correctly.
10655 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10656 since some C++ compilers masquerading as C compilers
10657 incorrectly reject 9223372036854775807. */
10658#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10659 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10660 && LARGE_OFF_T % 2147483647 == 1)
10661 ? 1 : -1];
10662int
10663main ()
10664{
10665
10666 ;
10667 return 0;
10668}
10669_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010670 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010671 break
cristy3ed852e2009-09-05 21:47:34 +000010672fi
cristy3ed852e2009-09-05 21:47:34 +000010673rm -f core conftest.err conftest.$ac_objext
10674 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +000010675 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010676 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +000010677fi
cristy3ed852e2009-09-05 21:47:34 +000010678rm -f core conftest.err conftest.$ac_objext
10679 break
10680 done
10681 CC=$ac_save_CC
10682 rm -f conftest.$ac_ext
10683 fi
10684fi
cristy8b350f62009-11-15 23:12:43 +000010685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000010686$as_echo "$ac_cv_sys_largefile_CC" >&6; }
10687 if test "$ac_cv_sys_largefile_CC" != no; then
10688 CC=$CC$ac_cv_sys_largefile_CC
10689 fi
10690
cristy8b350f62009-11-15 23:12:43 +000010691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010692$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010693if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010694 $as_echo_n "(cached) " >&6
10695else
10696 while :; do
cristy8b350f62009-11-15 23:12:43 +000010697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010698/* end confdefs.h. */
10699#include <sys/types.h>
10700 /* Check that off_t can represent 2**63 - 1 correctly.
10701 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10702 since some C++ compilers masquerading as C compilers
10703 incorrectly reject 9223372036854775807. */
10704#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10705 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10706 && LARGE_OFF_T % 2147483647 == 1)
10707 ? 1 : -1];
10708int
10709main ()
10710{
10711
10712 ;
10713 return 0;
10714}
10715_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010716if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010717 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +000010718fi
cristy3ed852e2009-09-05 21:47:34 +000010719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010721/* end confdefs.h. */
10722#define _FILE_OFFSET_BITS 64
10723#include <sys/types.h>
10724 /* Check that off_t can represent 2**63 - 1 correctly.
10725 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10726 since some C++ compilers masquerading as C compilers
10727 incorrectly reject 9223372036854775807. */
10728#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10729 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10730 && LARGE_OFF_T % 2147483647 == 1)
10731 ? 1 : -1];
10732int
10733main ()
10734{
10735
10736 ;
10737 return 0;
10738}
10739_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010740if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010741 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +000010742fi
cristy3ed852e2009-09-05 21:47:34 +000010743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10744 ac_cv_sys_file_offset_bits=unknown
10745 break
10746done
10747fi
cristy8b350f62009-11-15 23:12:43 +000010748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +000010749$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10750case $ac_cv_sys_file_offset_bits in #(
10751 no | unknown) ;;
10752 *)
10753cat >>confdefs.h <<_ACEOF
10754#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10755_ACEOF
10756;;
10757esac
10758rm -rf conftest*
10759 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +000010760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010761$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010762if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010763 $as_echo_n "(cached) " >&6
10764else
10765 while :; do
cristy8b350f62009-11-15 23:12:43 +000010766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010767/* end confdefs.h. */
10768#include <sys/types.h>
10769 /* Check that off_t can represent 2**63 - 1 correctly.
10770 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10771 since some C++ compilers masquerading as C compilers
10772 incorrectly reject 9223372036854775807. */
10773#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10774 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10775 && LARGE_OFF_T % 2147483647 == 1)
10776 ? 1 : -1];
10777int
10778main ()
10779{
10780
10781 ;
10782 return 0;
10783}
10784_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010785if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010786 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +000010787fi
cristy3ed852e2009-09-05 21:47:34 +000010788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010790/* end confdefs.h. */
10791#define _LARGE_FILES 1
10792#include <sys/types.h>
10793 /* Check that off_t can represent 2**63 - 1 correctly.
10794 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10795 since some C++ compilers masquerading as C compilers
10796 incorrectly reject 9223372036854775807. */
10797#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10798 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10799 && LARGE_OFF_T % 2147483647 == 1)
10800 ? 1 : -1];
10801int
10802main ()
10803{
10804
10805 ;
10806 return 0;
10807}
10808_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010809if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010810 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +000010811fi
cristy3ed852e2009-09-05 21:47:34 +000010812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10813 ac_cv_sys_large_files=unknown
10814 break
10815done
10816fi
cristy8b350f62009-11-15 23:12:43 +000010817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010818$as_echo "$ac_cv_sys_large_files" >&6; }
10819case $ac_cv_sys_large_files in #(
10820 no | unknown) ;;
10821 *)
10822cat >>confdefs.h <<_ACEOF
10823#define _LARGE_FILES $ac_cv_sys_large_files
10824_ACEOF
10825;;
10826esac
10827rm -rf conftest*
10828 fi
cristy14fefe52012-05-21 00:59:18 +000010829
10830
cristy3ed852e2009-09-05 21:47:34 +000010831fi
10832
cristy8b350f62009-11-15 23:12:43 +000010833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010834$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010835if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010836 $as_echo_n "(cached) " >&6
10837else
10838 while :; do
cristy8b350f62009-11-15 23:12:43 +000010839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010840/* end confdefs.h. */
10841#include <sys/types.h> /* for off_t */
10842 #include <stdio.h>
10843int
10844main ()
10845{
10846int (*fp) (FILE *, off_t, int) = fseeko;
10847 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10848 ;
10849 return 0;
10850}
10851_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010852if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010853 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +000010854fi
cristy8b350f62009-11-15 23:12:43 +000010855rm -f core conftest.err conftest.$ac_objext \
10856 conftest$ac_exeext conftest.$ac_ext
10857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010858/* end confdefs.h. */
10859#define _LARGEFILE_SOURCE 1
10860#include <sys/types.h> /* for off_t */
10861 #include <stdio.h>
10862int
10863main ()
10864{
10865int (*fp) (FILE *, off_t, int) = fseeko;
10866 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10867 ;
10868 return 0;
10869}
10870_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010871if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010872 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +000010873fi
cristy8b350f62009-11-15 23:12:43 +000010874rm -f core conftest.err conftest.$ac_objext \
10875 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010876 ac_cv_sys_largefile_source=unknown
10877 break
10878done
10879fi
cristy8b350f62009-11-15 23:12:43 +000010880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +000010881$as_echo "$ac_cv_sys_largefile_source" >&6; }
10882case $ac_cv_sys_largefile_source in #(
10883 no | unknown) ;;
10884 *)
10885cat >>confdefs.h <<_ACEOF
10886#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
10887_ACEOF
10888;;
10889esac
10890rm -rf conftest*
10891
10892# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
10893# in glibc 2.1.3, but that breaks too many other things.
10894# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
10895if test $ac_cv_sys_largefile_source != unknown; then
10896
cristy8b350f62009-11-15 23:12:43 +000010897$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010898
10899fi
10900
10901LFS_CPPFLAGS=''
10902if test "$enable_largefile" != no; then
cristyc1e0cc12011-09-21 16:41:16 +000010903 case $ac_cv_sys_file_offset_bits in
10904 no)
10905 # nothing to do here as the host supports LFS fine
10906 ;;
10907 unknown)
cristy8b350f62009-11-15 23:12:43 +000010908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +000010909$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010910 if test "$cross_compiling" = yes; then :
10911 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000010912$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000010913as_fn_error $? "cannot run test program while cross compiling
10914See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000010915else
cristy8b350f62009-11-15 23:12:43 +000010916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10917/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000010918#include <unistd.h>
10919 main () {
10920 exit(!(sizeof(off_t) == 8));
10921 }
cristyda16f162011-02-19 23:52:17 +000010922int
10923main ()
10924{
10925
10926 ;
10927 return 0;
10928}
cristy3ed852e2009-09-05 21:47:34 +000010929_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010930if ac_fn_c_try_run "$LINENO"; then :
10931 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010932
cristyad38abe2012-12-23 23:03:21 +000010933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10934$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000010935else
cristyad38abe2012-12-23 23:03:21 +000010936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10937$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000010938fi
cristy8b350f62009-11-15 23:12:43 +000010939rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10940 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010941fi
10942
cristyc1e0cc12011-09-21 16:41:16 +000010943 ;;
10944 *)
10945 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
10946 ;;
10947 esac
cristy3ed852e2009-09-05 21:47:34 +000010948 if test "$ac_cv_sys_large_files" != 'no'; then
10949 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
10950 fi
10951 if test "$ac_cv_sys_largefile_source" != 'no'; then
10952 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
10953 fi
10954fi
10955
10956
cristy3ed852e2009-09-05 21:47:34 +000010957# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +000010958enable_dlopen=yes
10959
10960
10961
10962case `pwd` in
10963 *\ * | *\ *)
10964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10965$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10966esac
10967
10968
10969
cristy99bd5232011-12-07 14:38:20 +000010970macro_version='2.4.2'
10971macro_revision='1.3337'
cristy73bd4a52010-10-05 11:24:23 +000010972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985ltmain="$ac_aux_dir/ltmain.sh"
10986
cristy0c60a692010-11-04 01:09:47 +000010987# Backslashify metacharacters that are still active within
10988# double-quoted strings.
10989sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10990
10991# Same as above, but do not quote variable references.
10992double_quote_subst='s/\(["`\\]\)/\\\1/g'
10993
10994# Sed substitution to delay expansion of an escaped shell variable in a
10995# double_quote_subst'ed string.
10996delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10997
10998# Sed substitution to delay expansion of an escaped single quote.
10999delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11000
11001# Sed substitution to avoid accidental globbing in evaled expressions
11002no_glob_subst='s/\*/\\\*/g'
11003
cristy73bd4a52010-10-05 11:24:23 +000011004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11005$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011006if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011007 $as_echo_n "(cached) " >&6
11008else
11009 if test -n "$NM"; then
11010 # Let the user override the test.
11011 lt_cv_path_NM="$NM"
11012else
11013 lt_nm_to_check="${ac_tool_prefix}nm"
11014 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11015 lt_nm_to_check="$lt_nm_to_check nm"
11016 fi
11017 for lt_tmp_nm in $lt_nm_to_check; do
11018 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11019 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11020 IFS="$lt_save_ifs"
11021 test -z "$ac_dir" && ac_dir=.
11022 tmp_nm="$ac_dir/$lt_tmp_nm"
11023 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11024 # Check to see if the nm accepts a BSD-compat flag.
11025 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11026 # nm: unknown option "B" ignored
11027 # Tru64's nm complains that /dev/null is an invalid object file
11028 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11029 */dev/null* | *'Invalid file or object type'*)
11030 lt_cv_path_NM="$tmp_nm -B"
11031 break
11032 ;;
11033 *)
11034 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11035 */dev/null*)
11036 lt_cv_path_NM="$tmp_nm -p"
11037 break
11038 ;;
11039 *)
11040 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11041 continue # so that we can try to find one that supports BSD flags
11042 ;;
11043 esac
11044 ;;
11045 esac
11046 fi
11047 done
11048 IFS="$lt_save_ifs"
11049 done
11050 : ${lt_cv_path_NM=no}
11051fi
11052fi
11053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11054$as_echo "$lt_cv_path_NM" >&6; }
11055if test "$lt_cv_path_NM" != "no"; then
11056 NM="$lt_cv_path_NM"
11057else
11058 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +000011059 if test -n "$DUMPBIN"; then :
11060 # Let the user override the test.
11061 else
11062 if test -n "$ac_tool_prefix"; then
11063 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000011064 do
11065 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11066set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11068$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011069if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011070 $as_echo_n "(cached) " >&6
11071else
11072 if test -n "$DUMPBIN"; then
11073 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11074else
11075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11076for as_dir in $PATH
11077do
11078 IFS=$as_save_IFS
11079 test -z "$as_dir" && as_dir=.
11080 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011082 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11084 break 2
11085 fi
11086done
11087 done
11088IFS=$as_save_IFS
11089
11090fi
11091fi
11092DUMPBIN=$ac_cv_prog_DUMPBIN
11093if test -n "$DUMPBIN"; then
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11095$as_echo "$DUMPBIN" >&6; }
11096else
11097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11098$as_echo "no" >&6; }
11099fi
11100
11101
11102 test -n "$DUMPBIN" && break
11103 done
11104fi
11105if test -z "$DUMPBIN"; then
11106 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +000011107 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000011108do
11109 # Extract the first word of "$ac_prog", so it can be a program name with args.
11110set dummy $ac_prog; ac_word=$2
11111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11112$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011113if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011114 $as_echo_n "(cached) " >&6
11115else
11116 if test -n "$ac_ct_DUMPBIN"; then
11117 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11118else
11119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11120for as_dir in $PATH
11121do
11122 IFS=$as_save_IFS
11123 test -z "$as_dir" && as_dir=.
11124 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011126 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11128 break 2
11129 fi
11130done
11131 done
11132IFS=$as_save_IFS
11133
11134fi
11135fi
11136ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11137if test -n "$ac_ct_DUMPBIN"; then
11138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11139$as_echo "$ac_ct_DUMPBIN" >&6; }
11140else
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11142$as_echo "no" >&6; }
11143fi
11144
11145
11146 test -n "$ac_ct_DUMPBIN" && break
11147done
11148
11149 if test "x$ac_ct_DUMPBIN" = x; then
11150 DUMPBIN=":"
11151 else
11152 case $cross_compiling:$ac_tool_warned in
11153yes:)
11154{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11155$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11156ac_tool_warned=yes ;;
11157esac
11158 DUMPBIN=$ac_ct_DUMPBIN
11159 fi
11160fi
11161
cristy0c60a692010-11-04 01:09:47 +000011162 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11163 *COFF*)
11164 DUMPBIN="$DUMPBIN -symbols"
11165 ;;
11166 *)
11167 DUMPBIN=:
11168 ;;
11169 esac
11170 fi
cristy73bd4a52010-10-05 11:24:23 +000011171
11172 if test "$DUMPBIN" != ":"; then
11173 NM="$DUMPBIN"
11174 fi
11175fi
11176test -z "$NM" && NM=nm
11177
11178
11179
11180
11181
11182
11183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11184$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011185if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011186 $as_echo_n "(cached) " >&6
11187else
11188 lt_cv_nm_interface="BSD nm"
11189 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000011190 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000011191 (eval "$ac_compile" 2>conftest.err)
11192 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000011193 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000011194 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11195 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000011196 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000011197 cat conftest.out >&5
11198 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11199 lt_cv_nm_interface="MS dumpbin"
11200 fi
11201 rm -f conftest*
11202fi
11203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11204$as_echo "$lt_cv_nm_interface" >&6; }
11205
11206# find the maximum length of command line arguments
11207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11208$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011209if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011210 $as_echo_n "(cached) " >&6
11211else
11212 i=0
11213 teststring="ABCD"
11214
11215 case $build_os in
11216 msdosdjgpp*)
11217 # On DJGPP, this test can blow up pretty badly due to problems in libc
11218 # (any single argument exceeding 2000 bytes causes a buffer overrun
11219 # during glob expansion). Even if it were fixed, the result of this
11220 # check would be larger than it should be.
11221 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11222 ;;
11223
11224 gnu*)
11225 # Under GNU Hurd, this test is not required because there is
11226 # no limit to the length of command line arguments.
11227 # Libtool will interpret -1 as no limit whatsoever
11228 lt_cv_sys_max_cmd_len=-1;
11229 ;;
11230
11231 cygwin* | mingw* | cegcc*)
11232 # On Win9x/ME, this test blows up -- it succeeds, but takes
11233 # about 5 minutes as the teststring grows exponentially.
11234 # Worse, since 9x/ME are not pre-emptively multitasking,
11235 # you end up with a "frozen" computer, even though with patience
11236 # the test eventually succeeds (with a max line length of 256k).
11237 # Instead, let's just punt: use the minimum linelength reported by
11238 # all of the supported platforms: 8192 (on NT/2K/XP).
11239 lt_cv_sys_max_cmd_len=8192;
11240 ;;
11241
cristy0c60a692010-11-04 01:09:47 +000011242 mint*)
11243 # On MiNT this can take a long time and run out of memory.
11244 lt_cv_sys_max_cmd_len=8192;
11245 ;;
11246
cristy73bd4a52010-10-05 11:24:23 +000011247 amigaos*)
11248 # On AmigaOS with pdksh, this test takes hours, literally.
11249 # So we just punt and use a minimum line length of 8192.
11250 lt_cv_sys_max_cmd_len=8192;
11251 ;;
11252
11253 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11254 # This has been around since 386BSD, at least. Likely further.
11255 if test -x /sbin/sysctl; then
11256 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11257 elif test -x /usr/sbin/sysctl; then
11258 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11259 else
11260 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11261 fi
11262 # And add a safety zone
11263 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11264 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11265 ;;
11266
11267 interix*)
11268 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11269 lt_cv_sys_max_cmd_len=196608
11270 ;;
11271
cristy99bd5232011-12-07 14:38:20 +000011272 os2*)
11273 # The test takes a long time on OS/2.
11274 lt_cv_sys_max_cmd_len=8192
11275 ;;
11276
cristy73bd4a52010-10-05 11:24:23 +000011277 osf*)
11278 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11279 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11280 # nice to cause kernel panics so lets avoid the loop below.
11281 # First set a reasonable default.
11282 lt_cv_sys_max_cmd_len=16384
11283 #
11284 if test -x /sbin/sysconfig; then
11285 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11286 *1*) lt_cv_sys_max_cmd_len=-1 ;;
11287 esac
11288 fi
11289 ;;
11290 sco3.2v5*)
11291 lt_cv_sys_max_cmd_len=102400
11292 ;;
11293 sysv5* | sco5v6* | sysv4.2uw2*)
11294 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11295 if test -n "$kargmax"; then
11296 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
11297 else
11298 lt_cv_sys_max_cmd_len=32768
11299 fi
11300 ;;
11301 *)
11302 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11303 if test -n "$lt_cv_sys_max_cmd_len"; then
11304 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11305 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11306 else
11307 # Make teststring a little bigger before we do anything with it.
11308 # a 1K string should be a reasonable start.
11309 for i in 1 2 3 4 5 6 7 8 ; do
11310 teststring=$teststring$teststring
11311 done
11312 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11313 # If test is not a shell built-in, we'll probably end up computing a
11314 # maximum length that is only half of the actual maximum length, but
11315 # we can't tell.
cristy99bd5232011-12-07 14:38:20 +000011316 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
cristy0c60a692010-11-04 01:09:47 +000011317 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +000011318 test $i != 17 # 1/2 MB should be enough
11319 do
11320 i=`expr $i + 1`
11321 teststring=$teststring$teststring
11322 done
11323 # Only check the string length outside the loop.
11324 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11325 teststring=
11326 # Add a significant safety factor because C++ compilers can tack on
11327 # massive amounts of additional arguments before passing them to the
11328 # linker. It appears as though 1/2 is a usable value.
11329 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11330 fi
11331 ;;
11332 esac
11333
11334fi
11335
11336if test -n $lt_cv_sys_max_cmd_len ; then
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11338$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11339else
11340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11341$as_echo "none" >&6; }
11342fi
11343max_cmd_len=$lt_cv_sys_max_cmd_len
11344
11345
11346
11347
11348
11349
11350: ${CP="cp -f"}
11351: ${MV="mv -f"}
11352: ${RM="rm -f"}
11353
11354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11355$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11356# Try some XSI features
11357xsi_shell=no
11358( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +000011359 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
11360 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +000011361 && eval 'test $(( 1 + 1 )) -eq 2 \
11362 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11363 && xsi_shell=yes
11364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11365$as_echo "$xsi_shell" >&6; }
11366
11367
11368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11369$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11370lt_shell_append=no
11371( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11372 >/dev/null 2>&1 \
11373 && lt_shell_append=yes
11374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11375$as_echo "$lt_shell_append" >&6; }
11376
11377
11378if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11379 lt_unset=unset
11380else
11381 lt_unset=false
11382fi
11383
11384
11385
11386
11387
11388# test EBCDIC or ASCII
11389case `echo X|tr X '\101'` in
11390 A) # ASCII based system
11391 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11392 lt_SP2NL='tr \040 \012'
11393 lt_NL2SP='tr \015\012 \040\040'
11394 ;;
11395 *) # EBCDIC based system
11396 lt_SP2NL='tr \100 \n'
11397 lt_NL2SP='tr \r\n \100\100'
11398 ;;
11399esac
11400
11401
11402
11403
11404
11405
11406
11407
11408
cristyda16f162011-02-19 23:52:17 +000011409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11410$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11411if ${lt_cv_to_host_file_cmd+:} false; then :
11412 $as_echo_n "(cached) " >&6
11413else
11414 case $host in
11415 *-*-mingw* )
11416 case $build in
11417 *-*-mingw* ) # actually msys
11418 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11419 ;;
11420 *-*-cygwin* )
11421 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11422 ;;
11423 * ) # otherwise, assume *nix
11424 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11425 ;;
11426 esac
11427 ;;
11428 *-*-cygwin* )
11429 case $build in
11430 *-*-mingw* ) # actually msys
11431 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11432 ;;
11433 *-*-cygwin* )
11434 lt_cv_to_host_file_cmd=func_convert_file_noop
11435 ;;
11436 * ) # otherwise, assume *nix
11437 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11438 ;;
11439 esac
11440 ;;
11441 * ) # unhandled hosts (and "normal" native builds)
11442 lt_cv_to_host_file_cmd=func_convert_file_noop
11443 ;;
11444esac
11445
11446fi
11447
11448to_host_file_cmd=$lt_cv_to_host_file_cmd
11449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11450$as_echo "$lt_cv_to_host_file_cmd" >&6; }
11451
11452
11453
11454
11455
11456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11457$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11458if ${lt_cv_to_tool_file_cmd+:} false; then :
11459 $as_echo_n "(cached) " >&6
11460else
11461 #assume ordinary cross tools, or native build.
11462lt_cv_to_tool_file_cmd=func_convert_file_noop
11463case $host in
11464 *-*-mingw* )
11465 case $build in
11466 *-*-mingw* ) # actually msys
11467 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11468 ;;
11469 esac
11470 ;;
11471esac
11472
11473fi
11474
11475to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11477$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11478
11479
11480
11481
11482
cristy73bd4a52010-10-05 11:24:23 +000011483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11484$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011485if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011486 $as_echo_n "(cached) " >&6
11487else
11488 lt_cv_ld_reload_flag='-r'
11489fi
11490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11491$as_echo "$lt_cv_ld_reload_flag" >&6; }
11492reload_flag=$lt_cv_ld_reload_flag
11493case $reload_flag in
11494"" | " "*) ;;
11495*) reload_flag=" $reload_flag" ;;
11496esac
11497reload_cmds='$LD$reload_flag -o $output$reload_objs'
11498case $host_os in
cristyda16f162011-02-19 23:52:17 +000011499 cygwin* | mingw* | pw32* | cegcc*)
11500 if test "$GCC" != yes; then
11501 reload_cmds=false
11502 fi
11503 ;;
cristy73bd4a52010-10-05 11:24:23 +000011504 darwin*)
11505 if test "$GCC" = yes; then
11506 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11507 else
11508 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11509 fi
11510 ;;
11511esac
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521if test -n "$ac_tool_prefix"; then
11522 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11523set dummy ${ac_tool_prefix}objdump; ac_word=$2
11524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11525$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011526if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011527 $as_echo_n "(cached) " >&6
11528else
11529 if test -n "$OBJDUMP"; then
11530 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11531else
11532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11533for as_dir in $PATH
11534do
11535 IFS=$as_save_IFS
11536 test -z "$as_dir" && as_dir=.
11537 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011539 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11541 break 2
11542 fi
11543done
11544 done
11545IFS=$as_save_IFS
11546
11547fi
11548fi
11549OBJDUMP=$ac_cv_prog_OBJDUMP
11550if test -n "$OBJDUMP"; then
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11552$as_echo "$OBJDUMP" >&6; }
11553else
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11555$as_echo "no" >&6; }
11556fi
11557
11558
11559fi
11560if test -z "$ac_cv_prog_OBJDUMP"; then
11561 ac_ct_OBJDUMP=$OBJDUMP
11562 # Extract the first word of "objdump", so it can be a program name with args.
11563set dummy objdump; ac_word=$2
11564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11565$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011566if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011567 $as_echo_n "(cached) " >&6
11568else
11569 if test -n "$ac_ct_OBJDUMP"; then
11570 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11571else
11572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11573for as_dir in $PATH
11574do
11575 IFS=$as_save_IFS
11576 test -z "$as_dir" && as_dir=.
11577 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011579 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11581 break 2
11582 fi
11583done
11584 done
11585IFS=$as_save_IFS
11586
11587fi
11588fi
11589ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11590if test -n "$ac_ct_OBJDUMP"; then
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11592$as_echo "$ac_ct_OBJDUMP" >&6; }
11593else
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11595$as_echo "no" >&6; }
11596fi
11597
11598 if test "x$ac_ct_OBJDUMP" = x; then
11599 OBJDUMP="false"
11600 else
11601 case $cross_compiling:$ac_tool_warned in
11602yes:)
11603{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11604$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11605ac_tool_warned=yes ;;
11606esac
11607 OBJDUMP=$ac_ct_OBJDUMP
11608 fi
11609else
11610 OBJDUMP="$ac_cv_prog_OBJDUMP"
11611fi
11612
11613test -z "$OBJDUMP" && OBJDUMP=objdump
11614
11615
11616
11617
11618
11619
11620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11621$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011622if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011623 $as_echo_n "(cached) " >&6
11624else
11625 lt_cv_file_magic_cmd='$MAGIC_CMD'
11626lt_cv_file_magic_test_file=
11627lt_cv_deplibs_check_method='unknown'
11628# Need to set the preceding variable on all platforms that support
11629# interlibrary dependencies.
11630# 'none' -- dependencies not supported.
11631# `unknown' -- same as none, but documents that we really don't know.
11632# 'pass_all' -- all dependencies passed with no checks.
11633# 'test_compile' -- check by making test program.
11634# 'file_magic [[regex]]' -- check by looking for files in library path
11635# which responds to the $file_magic_cmd with a given extended regex.
11636# If you have `file' or equivalent on your system and you're not sure
11637# whether `pass_all' will *always* work, you probably want this one.
11638
11639case $host_os in
11640aix[4-9]*)
11641 lt_cv_deplibs_check_method=pass_all
11642 ;;
11643
11644beos*)
11645 lt_cv_deplibs_check_method=pass_all
11646 ;;
11647
11648bsdi[45]*)
11649 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11650 lt_cv_file_magic_cmd='/usr/bin/file -L'
11651 lt_cv_file_magic_test_file=/shlib/libc.so
11652 ;;
11653
11654cygwin*)
11655 # func_win32_libid is a shell function defined in ltmain.sh
11656 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11657 lt_cv_file_magic_cmd='func_win32_libid'
11658 ;;
11659
11660mingw* | pw32*)
11661 # Base MSYS/MinGW do not provide the 'file' command needed by
11662 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11663 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000011664 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11665 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000011666 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11667 lt_cv_file_magic_cmd='func_win32_libid'
11668 else
cristy0c60a692010-11-04 01:09:47 +000011669 # Keep this pattern in sync with the one in func_win32_libid.
11670 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 +000011671 lt_cv_file_magic_cmd='$OBJDUMP -f'
11672 fi
11673 ;;
11674
cristy0c60a692010-11-04 01:09:47 +000011675cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000011676 # use the weaker test based on 'objdump'. See mingw*.
11677 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11678 lt_cv_file_magic_cmd='$OBJDUMP -f'
11679 ;;
11680
11681darwin* | rhapsody*)
11682 lt_cv_deplibs_check_method=pass_all
11683 ;;
11684
11685freebsd* | dragonfly*)
11686 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11687 case $host_cpu in
11688 i*86 )
11689 # Not sure whether the presence of OpenBSD here was a mistake.
11690 # Let's accept both of them until this is cleared up.
11691 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11692 lt_cv_file_magic_cmd=/usr/bin/file
11693 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11694 ;;
11695 esac
11696 else
11697 lt_cv_deplibs_check_method=pass_all
11698 fi
11699 ;;
11700
11701gnu*)
11702 lt_cv_deplibs_check_method=pass_all
11703 ;;
11704
cristy0c60a692010-11-04 01:09:47 +000011705haiku*)
11706 lt_cv_deplibs_check_method=pass_all
11707 ;;
11708
cristy73bd4a52010-10-05 11:24:23 +000011709hpux10.20* | hpux11*)
11710 lt_cv_file_magic_cmd=/usr/bin/file
11711 case $host_cpu in
11712 ia64*)
11713 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11714 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11715 ;;
11716 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000011717 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 +000011718 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11719 ;;
11720 *)
cristy0c60a692010-11-04 01:09:47 +000011721 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 +000011722 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11723 ;;
11724 esac
11725 ;;
11726
11727interix[3-9]*)
11728 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11729 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11730 ;;
11731
11732irix5* | irix6* | nonstopux*)
11733 case $LD in
11734 *-32|*"-32 ") libmagic=32-bit;;
11735 *-n32|*"-n32 ") libmagic=N32;;
11736 *-64|*"-64 ") libmagic=64-bit;;
11737 *) libmagic=never-match;;
11738 esac
11739 lt_cv_deplibs_check_method=pass_all
11740 ;;
11741
cristy99bd5232011-12-07 14:38:20 +000011742# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000011743linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000011744 lt_cv_deplibs_check_method=pass_all
11745 ;;
11746
11747netbsd*)
11748 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11749 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11750 else
11751 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11752 fi
11753 ;;
11754
11755newos6*)
11756 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11757 lt_cv_file_magic_cmd=/usr/bin/file
11758 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11759 ;;
11760
11761*nto* | *qnx*)
11762 lt_cv_deplibs_check_method=pass_all
11763 ;;
11764
11765openbsd*)
11766 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11767 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11768 else
11769 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11770 fi
11771 ;;
11772
11773osf3* | osf4* | osf5*)
11774 lt_cv_deplibs_check_method=pass_all
11775 ;;
11776
11777rdos*)
11778 lt_cv_deplibs_check_method=pass_all
11779 ;;
11780
11781solaris*)
11782 lt_cv_deplibs_check_method=pass_all
11783 ;;
11784
11785sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11786 lt_cv_deplibs_check_method=pass_all
11787 ;;
11788
11789sysv4 | sysv4.3*)
11790 case $host_vendor in
11791 motorola)
11792 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]'
11793 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11794 ;;
11795 ncr)
11796 lt_cv_deplibs_check_method=pass_all
11797 ;;
11798 sequent)
11799 lt_cv_file_magic_cmd='/bin/file'
11800 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11801 ;;
11802 sni)
11803 lt_cv_file_magic_cmd='/bin/file'
11804 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11805 lt_cv_file_magic_test_file=/lib/libc.so
11806 ;;
11807 siemens)
11808 lt_cv_deplibs_check_method=pass_all
11809 ;;
11810 pc)
11811 lt_cv_deplibs_check_method=pass_all
11812 ;;
11813 esac
11814 ;;
11815
11816tpf*)
11817 lt_cv_deplibs_check_method=pass_all
11818 ;;
11819esac
11820
11821fi
11822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11823$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000011824
11825file_magic_glob=
11826want_nocaseglob=no
11827if test "$build" = "$host"; then
11828 case $host_os in
11829 mingw* | pw32*)
11830 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11831 want_nocaseglob=yes
11832 else
11833 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11834 fi
11835 ;;
11836 esac
11837fi
11838
cristy73bd4a52010-10-05 11:24:23 +000011839file_magic_cmd=$lt_cv_file_magic_cmd
11840deplibs_check_method=$lt_cv_deplibs_check_method
11841test -z "$deplibs_check_method" && deplibs_check_method=unknown
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
cristyda16f162011-02-19 23:52:17 +000011854
11855
11856
11857
11858
11859
11860
11861
11862
11863
cristy73bd4a52010-10-05 11:24:23 +000011864if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000011865 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11866set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011867{ $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_DLLTOOL+:} false; then :
11870 $as_echo_n "(cached) " >&6
11871else
11872 if test -n "$DLLTOOL"; then
11873 ac_cv_prog_DLLTOOL="$DLLTOOL" # 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
cristyda16f162011-02-19 23:52:17 +000011882 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
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
11892DLLTOOL=$ac_cv_prog_DLLTOOL
11893if test -n "$DLLTOOL"; then
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11895$as_echo "$DLLTOOL" >&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_DLLTOOL"; then
11904 ac_ct_DLLTOOL=$DLLTOOL
11905 # Extract the first word of "dlltool", so it can be a program name with args.
11906set dummy dlltool; 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; }
11909if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11910 $as_echo_n "(cached) " >&6
11911else
11912 if test -n "$ac_ct_DLLTOOL"; then
11913 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # 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
cristyda16f162011-02-19 23:52:17 +000011922 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
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_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11933if test -n "$ac_ct_DLLTOOL"; then
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11935$as_echo "$ac_ct_DLLTOOL" >&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_DLLTOOL" = x; then
11942 DLLTOOL="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 DLLTOOL=$ac_ct_DLLTOOL
11951 fi
11952else
11953 DLLTOOL="$ac_cv_prog_DLLTOOL"
11954fi
11955
11956test -z "$DLLTOOL" && DLLTOOL=dlltool
11957
11958
11959
11960
11961
11962
11963
11964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
11965$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
11966if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
11967 $as_echo_n "(cached) " >&6
11968else
11969 lt_cv_sharedlib_from_linklib_cmd='unknown'
11970
11971case $host_os in
11972cygwin* | mingw* | pw32* | cegcc*)
11973 # two different shell functions defined in ltmain.sh
11974 # decide which to use based on capabilities of $DLLTOOL
11975 case `$DLLTOOL --help 2>&1` in
11976 *--identify-strict*)
11977 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
11978 ;;
11979 *)
11980 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
11981 ;;
11982 esac
11983 ;;
11984*)
11985 # fallback: assume linklib IS sharedlib
11986 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
11987 ;;
11988esac
11989
11990fi
11991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
11992$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
11993sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
11994test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
11995
11996
11997
11998
11999
12000
12001
12002if test -n "$ac_tool_prefix"; then
12003 for ac_prog in ar
12004 do
12005 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12006set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12008$as_echo_n "checking for $ac_word... " >&6; }
12009if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012010 $as_echo_n "(cached) " >&6
12011else
12012 if test -n "$AR"; then
12013 ac_cv_prog_AR="$AR" # Let the user override the test.
12014else
12015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12016for as_dir in $PATH
12017do
12018 IFS=$as_save_IFS
12019 test -z "$as_dir" && as_dir=.
12020 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012022 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000012023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12024 break 2
12025 fi
12026done
12027 done
12028IFS=$as_save_IFS
12029
12030fi
12031fi
12032AR=$ac_cv_prog_AR
12033if test -n "$AR"; then
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12035$as_echo "$AR" >&6; }
12036else
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12038$as_echo "no" >&6; }
12039fi
12040
12041
cristyda16f162011-02-19 23:52:17 +000012042 test -n "$AR" && break
12043 done
cristy73bd4a52010-10-05 11:24:23 +000012044fi
cristyda16f162011-02-19 23:52:17 +000012045if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000012046 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000012047 for ac_prog in ar
12048do
12049 # Extract the first word of "$ac_prog", so it can be a program name with args.
12050set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000012051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12052$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012053if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012054 $as_echo_n "(cached) " >&6
12055else
12056 if test -n "$ac_ct_AR"; then
12057 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12058else
12059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12060for as_dir in $PATH
12061do
12062 IFS=$as_save_IFS
12063 test -z "$as_dir" && as_dir=.
12064 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012066 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000012067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12068 break 2
12069 fi
12070done
12071 done
12072IFS=$as_save_IFS
12073
12074fi
12075fi
12076ac_ct_AR=$ac_cv_prog_ac_ct_AR
12077if test -n "$ac_ct_AR"; then
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12079$as_echo "$ac_ct_AR" >&6; }
12080else
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12082$as_echo "no" >&6; }
12083fi
12084
cristyda16f162011-02-19 23:52:17 +000012085
12086 test -n "$ac_ct_AR" && break
12087done
12088
cristy73bd4a52010-10-05 11:24:23 +000012089 if test "x$ac_ct_AR" = x; then
12090 AR="false"
12091 else
12092 case $cross_compiling:$ac_tool_warned in
12093yes:)
12094{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12095$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12096ac_tool_warned=yes ;;
12097esac
12098 AR=$ac_ct_AR
12099 fi
cristy73bd4a52010-10-05 11:24:23 +000012100fi
12101
cristyda16f162011-02-19 23:52:17 +000012102: ${AR=ar}
12103: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000012104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
cristyda16f162011-02-19 23:52:17 +000012115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12116$as_echo_n "checking for archiver @FILE support... " >&6; }
12117if ${lt_cv_ar_at_file+:} false; then :
12118 $as_echo_n "(cached) " >&6
12119else
12120 lt_cv_ar_at_file=no
12121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12122/* end confdefs.h. */
12123
12124int
12125main ()
12126{
12127
12128 ;
12129 return 0;
12130}
12131_ACEOF
12132if ac_fn_c_try_compile "$LINENO"; then :
12133 echo conftest.$ac_objext > conftest.lst
12134 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12135 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12136 (eval $lt_ar_try) 2>&5
12137 ac_status=$?
12138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12139 test $ac_status = 0; }
12140 if test "$ac_status" -eq 0; then
12141 # Ensure the archiver fails upon bogus file names.
12142 rm -f conftest.$ac_objext libconftest.a
12143 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12144 (eval $lt_ar_try) 2>&5
12145 ac_status=$?
12146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12147 test $ac_status = 0; }
12148 if test "$ac_status" -ne 0; then
12149 lt_cv_ar_at_file=@
12150 fi
12151 fi
12152 rm -f conftest.* libconftest.a
12153
12154fi
12155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12156
12157fi
12158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12159$as_echo "$lt_cv_ar_at_file" >&6; }
12160
12161if test "x$lt_cv_ar_at_file" = xno; then
12162 archiver_list_spec=
12163else
12164 archiver_list_spec=$lt_cv_ar_at_file
12165fi
12166
12167
12168
12169
12170
12171
12172
cristy73bd4a52010-10-05 11:24:23 +000012173if test -n "$ac_tool_prefix"; then
12174 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12175set dummy ${ac_tool_prefix}strip; ac_word=$2
12176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12177$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012178if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012179 $as_echo_n "(cached) " >&6
12180else
12181 if test -n "$STRIP"; then
12182 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12183else
12184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12185for as_dir in $PATH
12186do
12187 IFS=$as_save_IFS
12188 test -z "$as_dir" && as_dir=.
12189 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012191 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12193 break 2
12194 fi
12195done
12196 done
12197IFS=$as_save_IFS
12198
12199fi
12200fi
12201STRIP=$ac_cv_prog_STRIP
12202if test -n "$STRIP"; then
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12204$as_echo "$STRIP" >&6; }
12205else
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12207$as_echo "no" >&6; }
12208fi
12209
12210
12211fi
12212if test -z "$ac_cv_prog_STRIP"; then
12213 ac_ct_STRIP=$STRIP
12214 # Extract the first word of "strip", so it can be a program name with args.
12215set dummy strip; ac_word=$2
12216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12217$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012218if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012219 $as_echo_n "(cached) " >&6
12220else
12221 if test -n "$ac_ct_STRIP"; then
12222 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12223else
12224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12225for as_dir in $PATH
12226do
12227 IFS=$as_save_IFS
12228 test -z "$as_dir" && as_dir=.
12229 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012231 ac_cv_prog_ac_ct_STRIP="strip"
12232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12233 break 2
12234 fi
12235done
12236 done
12237IFS=$as_save_IFS
12238
12239fi
12240fi
12241ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12242if test -n "$ac_ct_STRIP"; then
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12244$as_echo "$ac_ct_STRIP" >&6; }
12245else
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12247$as_echo "no" >&6; }
12248fi
12249
12250 if test "x$ac_ct_STRIP" = x; then
12251 STRIP=":"
12252 else
12253 case $cross_compiling:$ac_tool_warned in
12254yes:)
12255{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12256$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12257ac_tool_warned=yes ;;
12258esac
12259 STRIP=$ac_ct_STRIP
12260 fi
12261else
12262 STRIP="$ac_cv_prog_STRIP"
12263fi
12264
12265test -z "$STRIP" && STRIP=:
12266
12267
12268
12269
12270
12271
12272if test -n "$ac_tool_prefix"; then
12273 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12274set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12276$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012277if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012278 $as_echo_n "(cached) " >&6
12279else
12280 if test -n "$RANLIB"; then
12281 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12282else
12283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12284for as_dir in $PATH
12285do
12286 IFS=$as_save_IFS
12287 test -z "$as_dir" && as_dir=.
12288 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012289 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012290 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12292 break 2
12293 fi
12294done
12295 done
12296IFS=$as_save_IFS
12297
12298fi
12299fi
12300RANLIB=$ac_cv_prog_RANLIB
12301if test -n "$RANLIB"; then
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12303$as_echo "$RANLIB" >&6; }
12304else
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12306$as_echo "no" >&6; }
12307fi
12308
12309
12310fi
12311if test -z "$ac_cv_prog_RANLIB"; then
12312 ac_ct_RANLIB=$RANLIB
12313 # Extract the first word of "ranlib", so it can be a program name with args.
12314set dummy ranlib; ac_word=$2
12315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12316$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012317if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012318 $as_echo_n "(cached) " >&6
12319else
12320 if test -n "$ac_ct_RANLIB"; then
12321 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12322else
12323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12324for as_dir in $PATH
12325do
12326 IFS=$as_save_IFS
12327 test -z "$as_dir" && as_dir=.
12328 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012330 ac_cv_prog_ac_ct_RANLIB="ranlib"
12331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12332 break 2
12333 fi
12334done
12335 done
12336IFS=$as_save_IFS
12337
12338fi
12339fi
12340ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12341if test -n "$ac_ct_RANLIB"; then
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12343$as_echo "$ac_ct_RANLIB" >&6; }
12344else
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12346$as_echo "no" >&6; }
12347fi
12348
12349 if test "x$ac_ct_RANLIB" = x; then
12350 RANLIB=":"
12351 else
12352 case $cross_compiling:$ac_tool_warned in
12353yes:)
12354{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12355$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12356ac_tool_warned=yes ;;
12357esac
12358 RANLIB=$ac_ct_RANLIB
12359 fi
12360else
12361 RANLIB="$ac_cv_prog_RANLIB"
12362fi
12363
12364test -z "$RANLIB" && RANLIB=:
12365
12366
12367
12368
12369
12370
12371# Determine commands to create old-style static archives.
12372old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12373old_postinstall_cmds='chmod 644 $oldlib'
12374old_postuninstall_cmds=
12375
12376if test -n "$RANLIB"; then
12377 case $host_os in
12378 openbsd*)
cristy99bd5232011-12-07 14:38:20 +000012379 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012380 ;;
12381 *)
cristy99bd5232011-12-07 14:38:20 +000012382 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012383 ;;
12384 esac
cristy99bd5232011-12-07 14:38:20 +000012385 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012386fi
12387
cristy0c60a692010-11-04 01:09:47 +000012388case $host_os in
12389 darwin*)
12390 lock_old_archive_extraction=yes ;;
12391 *)
12392 lock_old_archive_extraction=no ;;
12393esac
12394
12395
12396
12397
12398
12399
cristy73bd4a52010-10-05 11:24:23 +000012400
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433# If no C compiler was specified, use CC.
12434LTCC=${LTCC-"$CC"}
12435
12436# If no C compiler flags were specified, use CFLAGS.
12437LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12438
12439# Allow CC to be a program name with arguments.
12440compiler=$CC
12441
12442
12443# Check for command to grab the raw symbol name followed by C symbol from nm.
12444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12445$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012446if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012447 $as_echo_n "(cached) " >&6
12448else
12449
12450# These are sane defaults that work on at least a few old systems.
12451# [They come from Ultrix. What could be older than Ultrix?!! ;)]
12452
12453# Character class describing NM global symbol codes.
12454symcode='[BCDEGRST]'
12455
12456# Regexp to match symbols that can be accessed directly from C.
12457sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12458
12459# Define system-specific variables.
12460case $host_os in
12461aix*)
12462 symcode='[BCDT]'
12463 ;;
12464cygwin* | mingw* | pw32* | cegcc*)
12465 symcode='[ABCDGISTW]'
12466 ;;
12467hpux*)
12468 if test "$host_cpu" = ia64; then
12469 symcode='[ABCDEGRST]'
12470 fi
12471 ;;
12472irix* | nonstopux*)
12473 symcode='[BCDEGRST]'
12474 ;;
12475osf*)
12476 symcode='[BCDEGQRST]'
12477 ;;
12478solaris*)
12479 symcode='[BDRT]'
12480 ;;
12481sco3.2v5*)
12482 symcode='[DT]'
12483 ;;
12484sysv4.2uw2*)
12485 symcode='[DT]'
12486 ;;
12487sysv5* | sco5v6* | unixware* | OpenUNIX*)
12488 symcode='[ABDT]'
12489 ;;
12490sysv4)
12491 symcode='[DFNSTU]'
12492 ;;
12493esac
12494
12495# If we're using GNU nm, then use its standard symbol codes.
12496case `$NM -V 2>&1` in
12497*GNU* | *'with BFD'*)
12498 symcode='[ABCDGIRSTW]' ;;
12499esac
12500
12501# Transform an extracted symbol line into a proper C declaration.
12502# Some systems (esp. on ia64) link data and code symbols differently,
12503# so use this general approach.
12504lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12505
12506# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000012507lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
12508lt_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 +000012509
12510# Handle CRLF in mingw tool chain
12511opt_cr=
12512case $build_os in
12513mingw*)
12514 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12515 ;;
12516esac
12517
12518# Try without a prefix underscore, then with it.
12519for ac_symprfx in "" "_"; do
12520
12521 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12522 symxfrm="\\1 $ac_symprfx\\2 \\2"
12523
12524 # Write the raw and C identifiers.
12525 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12526 # Fake it for dumpbin and say T for any non-static function
12527 # and D for any global variable.
12528 # Also find C++ and __fastcall symbols from MSVC++,
12529 # which start with @ or ?.
12530 lt_cv_sys_global_symbol_pipe="$AWK '"\
12531" {last_section=section; section=\$ 3};"\
cristy99bd5232011-12-07 14:38:20 +000012532" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
cristy73bd4a52010-10-05 11:24:23 +000012533" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12534" \$ 0!~/External *\|/{next};"\
12535" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12536" {if(hide[section]) next};"\
12537" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12538" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12539" s[1]~/^[@?]/{print s[1], s[1]; next};"\
12540" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12541" ' prfx=^$ac_symprfx"
12542 else
12543 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12544 fi
cristyda16f162011-02-19 23:52:17 +000012545 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000012546
12547 # Check to see that the pipe works correctly.
12548 pipe_works=no
12549
12550 rm -f conftest*
12551 cat > conftest.$ac_ext <<_LT_EOF
12552#ifdef __cplusplus
12553extern "C" {
12554#endif
12555char nm_test_var;
12556void nm_test_func(void);
12557void nm_test_func(void){}
12558#ifdef __cplusplus
12559}
12560#endif
12561int main(){nm_test_var='a';nm_test_func();return(0);}
12562_LT_EOF
12563
12564 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12565 (eval $ac_compile) 2>&5
12566 ac_status=$?
12567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12568 test $ac_status = 0; }; then
12569 # Now try to grab the symbols.
12570 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000012571 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12572 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000012573 ac_status=$?
12574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12575 test $ac_status = 0; } && test -s "$nlist"; then
12576 # Try sorting and uniquifying the output.
12577 if sort "$nlist" | uniq > "$nlist"T; then
12578 mv -f "$nlist"T "$nlist"
12579 else
12580 rm -f "$nlist"T
12581 fi
12582
12583 # Make sure that we snagged all the symbols we need.
12584 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12585 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12586 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000012587/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
12588#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12589/* DATA imports from DLLs on WIN32 con't be const, because runtime
12590 relocations are performed -- see ld's documentation on pseudo-relocs. */
12591# define LT_DLSYM_CONST
12592#elif defined(__osf__)
12593/* This system does not cope well with relocations in const data. */
12594# define LT_DLSYM_CONST
12595#else
12596# define LT_DLSYM_CONST const
12597#endif
12598
cristy73bd4a52010-10-05 11:24:23 +000012599#ifdef __cplusplus
12600extern "C" {
12601#endif
12602
12603_LT_EOF
12604 # Now generate the symbol file.
12605 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12606
12607 cat <<_LT_EOF >> conftest.$ac_ext
12608
12609/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000012610LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000012611 const char *name;
12612 void *address;
12613}
12614lt__PROGRAM__LTX_preloaded_symbols[] =
12615{
12616 { "@PROGRAM@", (void *) 0 },
12617_LT_EOF
12618 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12619 cat <<\_LT_EOF >> conftest.$ac_ext
12620 {0, (void *) 0}
12621};
12622
12623/* This works around a problem in FreeBSD linker */
12624#ifdef FREEBSD_WORKAROUND
12625static const void *lt_preloaded_setup() {
12626 return lt__PROGRAM__LTX_preloaded_symbols;
12627}
12628#endif
12629
12630#ifdef __cplusplus
12631}
12632#endif
12633_LT_EOF
12634 # Now try linking the two files.
12635 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000012636 lt_globsym_save_LIBS=$LIBS
12637 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012638 LIBS="conftstm.$ac_objext"
12639 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12640 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12641 (eval $ac_link) 2>&5
12642 ac_status=$?
12643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12644 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12645 pipe_works=yes
12646 fi
cristyda16f162011-02-19 23:52:17 +000012647 LIBS=$lt_globsym_save_LIBS
12648 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012649 else
12650 echo "cannot find nm_test_func in $nlist" >&5
12651 fi
12652 else
12653 echo "cannot find nm_test_var in $nlist" >&5
12654 fi
12655 else
12656 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12657 fi
12658 else
12659 echo "$progname: failed program was:" >&5
12660 cat conftest.$ac_ext >&5
12661 fi
12662 rm -rf conftest* conftst*
12663
12664 # Do not use the global_symbol_pipe unless it works.
12665 if test "$pipe_works" = yes; then
12666 break
12667 else
12668 lt_cv_sys_global_symbol_pipe=
12669 fi
12670done
12671
12672fi
12673
12674if test -z "$lt_cv_sys_global_symbol_pipe"; then
12675 lt_cv_sys_global_symbol_to_cdecl=
12676fi
12677if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12679$as_echo "failed" >&6; }
12680else
12681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12682$as_echo "ok" >&6; }
12683fi
12684
cristyda16f162011-02-19 23:52:17 +000012685# Response file support.
12686if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12687 nm_file_list_spec='@'
12688elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12689 nm_file_list_spec='@'
12690fi
cristy73bd4a52010-10-05 11:24:23 +000012691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
cristyda16f162011-02-19 23:52:17 +000012712
12713
12714
12715
12716
12717
12718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12719$as_echo_n "checking for sysroot... " >&6; }
12720
12721# Check whether --with-sysroot was given.
12722if test "${with_sysroot+set}" = set; then :
12723 withval=$with_sysroot;
12724else
12725 with_sysroot=no
12726fi
12727
12728
12729lt_sysroot=
12730case ${with_sysroot} in #(
12731 yes)
12732 if test "$GCC" = yes; then
12733 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12734 fi
12735 ;; #(
12736 /*)
12737 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12738 ;; #(
12739 no|'')
12740 ;; #(
12741 *)
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12743$as_echo "${with_sysroot}" >&6; }
12744 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12745 ;;
12746esac
12747
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12749$as_echo "${lt_sysroot:-no}" >&6; }
12750
12751
12752
12753
12754
cristy73bd4a52010-10-05 11:24:23 +000012755# Check whether --enable-libtool-lock was given.
12756if test "${enable_libtool_lock+set}" = set; then :
12757 enableval=$enable_libtool_lock;
12758fi
12759
12760test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12761
12762# Some flags need to be propagated to the compiler or linker for good
12763# libtool support.
12764case $host in
12765ia64-*-hpux*)
12766 # Find out which ABI we are using.
12767 echo 'int i;' > conftest.$ac_ext
12768 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12769 (eval $ac_compile) 2>&5
12770 ac_status=$?
12771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12772 test $ac_status = 0; }; then
12773 case `/usr/bin/file conftest.$ac_objext` in
12774 *ELF-32*)
12775 HPUX_IA64_MODE="32"
12776 ;;
12777 *ELF-64*)
12778 HPUX_IA64_MODE="64"
12779 ;;
12780 esac
12781 fi
12782 rm -rf conftest*
12783 ;;
12784*-*-irix6*)
12785 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000012786 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000012787 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12788 (eval $ac_compile) 2>&5
12789 ac_status=$?
12790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12791 test $ac_status = 0; }; then
12792 if test "$lt_cv_prog_gnu_ld" = yes; then
12793 case `/usr/bin/file conftest.$ac_objext` in
12794 *32-bit*)
12795 LD="${LD-ld} -melf32bsmip"
12796 ;;
12797 *N32*)
12798 LD="${LD-ld} -melf32bmipn32"
12799 ;;
12800 *64-bit*)
12801 LD="${LD-ld} -melf64bmip"
12802 ;;
12803 esac
12804 else
12805 case `/usr/bin/file conftest.$ac_objext` in
12806 *32-bit*)
12807 LD="${LD-ld} -32"
12808 ;;
12809 *N32*)
12810 LD="${LD-ld} -n32"
12811 ;;
12812 *64-bit*)
12813 LD="${LD-ld} -64"
12814 ;;
12815 esac
12816 fi
12817 fi
12818 rm -rf conftest*
12819 ;;
12820
cristyd95b7a52013-10-23 13:12:53 +000012821x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
cristy73bd4a52010-10-05 11:24:23 +000012822s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12823 # Find out which ABI we are using.
12824 echo 'int i;' > conftest.$ac_ext
12825 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12826 (eval $ac_compile) 2>&5
12827 ac_status=$?
12828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12829 test $ac_status = 0; }; then
12830 case `/usr/bin/file conftest.o` in
12831 *32-bit*)
12832 case $host in
12833 x86_64-*kfreebsd*-gnu)
12834 LD="${LD-ld} -m elf_i386_fbsd"
12835 ;;
12836 x86_64-*linux*)
12837 LD="${LD-ld} -m elf_i386"
12838 ;;
cristya5bda012013-11-03 18:05:38 +000012839 powerpc64le-*linux*)
cristyd95b7a52013-10-23 13:12:53 +000012840 LD="${LD-ld} -m elf32lppclinux"
12841 ;;
cristya5bda012013-11-03 18:05:38 +000012842 powerpc64-*linux*)
cristy73bd4a52010-10-05 11:24:23 +000012843 LD="${LD-ld} -m elf32ppclinux"
12844 ;;
12845 s390x-*linux*)
12846 LD="${LD-ld} -m elf_s390"
12847 ;;
12848 sparc64-*linux*)
12849 LD="${LD-ld} -m elf32_sparc"
12850 ;;
12851 esac
12852 ;;
12853 *64-bit*)
12854 case $host in
12855 x86_64-*kfreebsd*-gnu)
12856 LD="${LD-ld} -m elf_x86_64_fbsd"
12857 ;;
12858 x86_64-*linux*)
12859 LD="${LD-ld} -m elf_x86_64"
12860 ;;
cristyd95b7a52013-10-23 13:12:53 +000012861 powerpcle-*linux*)
12862 LD="${LD-ld} -m elf64lppc"
12863 ;;
12864 powerpc-*linux*)
cristy73bd4a52010-10-05 11:24:23 +000012865 LD="${LD-ld} -m elf64ppc"
12866 ;;
12867 s390*-*linux*|s390*-*tpf*)
12868 LD="${LD-ld} -m elf64_s390"
12869 ;;
12870 sparc*-*linux*)
12871 LD="${LD-ld} -m elf64_sparc"
12872 ;;
12873 esac
12874 ;;
12875 esac
12876 fi
12877 rm -rf conftest*
12878 ;;
12879
12880*-*-sco3.2v5*)
12881 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12882 SAVE_CFLAGS="$CFLAGS"
12883 CFLAGS="$CFLAGS -belf"
12884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12885$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012886if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012887 $as_echo_n "(cached) " >&6
12888else
12889 ac_ext=c
12890ac_cpp='$CPP $CPPFLAGS'
12891ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12892ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12893ac_compiler_gnu=$ac_cv_c_compiler_gnu
12894
12895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12896/* end confdefs.h. */
12897
12898int
12899main ()
12900{
12901
12902 ;
12903 return 0;
12904}
12905_ACEOF
12906if ac_fn_c_try_link "$LINENO"; then :
12907 lt_cv_cc_needs_belf=yes
12908else
12909 lt_cv_cc_needs_belf=no
12910fi
12911rm -f core conftest.err conftest.$ac_objext \
12912 conftest$ac_exeext conftest.$ac_ext
12913 ac_ext=c
12914ac_cpp='$CPP $CPPFLAGS'
12915ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12916ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12917ac_compiler_gnu=$ac_cv_c_compiler_gnu
12918
12919fi
12920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12921$as_echo "$lt_cv_cc_needs_belf" >&6; }
12922 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12923 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12924 CFLAGS="$SAVE_CFLAGS"
12925 fi
12926 ;;
cristy99bd5232011-12-07 14:38:20 +000012927*-*solaris*)
cristy73bd4a52010-10-05 11:24:23 +000012928 # Find out which ABI we are using.
12929 echo 'int i;' > conftest.$ac_ext
12930 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12931 (eval $ac_compile) 2>&5
12932 ac_status=$?
12933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12934 test $ac_status = 0; }; then
12935 case `/usr/bin/file conftest.o` in
12936 *64-bit*)
12937 case $lt_cv_prog_gnu_ld in
cristy99bd5232011-12-07 14:38:20 +000012938 yes*)
12939 case $host in
12940 i?86-*-solaris*)
12941 LD="${LD-ld} -m elf_x86_64"
12942 ;;
12943 sparc*-*-solaris*)
12944 LD="${LD-ld} -m elf64_sparc"
12945 ;;
12946 esac
12947 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
12948 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
12949 LD="${LD-ld}_sol2"
12950 fi
12951 ;;
cristy73bd4a52010-10-05 11:24:23 +000012952 *)
12953 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12954 LD="${LD-ld} -64"
12955 fi
12956 ;;
12957 esac
12958 ;;
12959 esac
12960 fi
12961 rm -rf conftest*
12962 ;;
12963esac
12964
12965need_locks="$enable_libtool_lock"
12966
cristyda16f162011-02-19 23:52:17 +000012967if test -n "$ac_tool_prefix"; then
12968 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
12969set dummy ${ac_tool_prefix}mt; ac_word=$2
12970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12971$as_echo_n "checking for $ac_word... " >&6; }
12972if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
12973 $as_echo_n "(cached) " >&6
12974else
12975 if test -n "$MANIFEST_TOOL"; then
12976 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
12977else
12978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12979for as_dir in $PATH
12980do
12981 IFS=$as_save_IFS
12982 test -z "$as_dir" && as_dir=.
12983 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012985 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
12986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12987 break 2
12988 fi
12989done
12990 done
12991IFS=$as_save_IFS
12992
12993fi
12994fi
12995MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
12996if test -n "$MANIFEST_TOOL"; then
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
12998$as_echo "$MANIFEST_TOOL" >&6; }
12999else
13000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13001$as_echo "no" >&6; }
13002fi
13003
13004
13005fi
13006if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13007 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13008 # Extract the first word of "mt", so it can be a program name with args.
13009set dummy mt; ac_word=$2
13010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13011$as_echo_n "checking for $ac_word... " >&6; }
13012if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13013 $as_echo_n "(cached) " >&6
13014else
13015 if test -n "$ac_ct_MANIFEST_TOOL"; then
13016 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13017else
13018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13019for as_dir in $PATH
13020do
13021 IFS=$as_save_IFS
13022 test -z "$as_dir" && as_dir=.
13023 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000013025 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13027 break 2
13028 fi
13029done
13030 done
13031IFS=$as_save_IFS
13032
13033fi
13034fi
13035ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13036if test -n "$ac_ct_MANIFEST_TOOL"; then
13037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13038$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13039else
13040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13041$as_echo "no" >&6; }
13042fi
13043
13044 if test "x$ac_ct_MANIFEST_TOOL" = x; then
13045 MANIFEST_TOOL=":"
13046 else
13047 case $cross_compiling:$ac_tool_warned in
13048yes:)
13049{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13050$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13051ac_tool_warned=yes ;;
13052esac
13053 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13054 fi
13055else
13056 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13057fi
13058
13059test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13061$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13062if ${lt_cv_path_mainfest_tool+:} false; then :
13063 $as_echo_n "(cached) " >&6
13064else
13065 lt_cv_path_mainfest_tool=no
13066 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13067 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13068 cat conftest.err >&5
13069 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13070 lt_cv_path_mainfest_tool=yes
13071 fi
13072 rm -f conftest*
13073fi
13074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13075$as_echo "$lt_cv_path_mainfest_tool" >&6; }
13076if test "x$lt_cv_path_mainfest_tool" != xyes; then
13077 MANIFEST_TOOL=:
13078fi
13079
13080
13081
13082
13083
cristy73bd4a52010-10-05 11:24:23 +000013084
13085 case $host_os in
13086 rhapsody* | darwin*)
13087 if test -n "$ac_tool_prefix"; then
13088 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13089set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13091$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013092if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013093 $as_echo_n "(cached) " >&6
13094else
13095 if test -n "$DSYMUTIL"; then
13096 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13097else
13098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13099for as_dir in $PATH
13100do
13101 IFS=$as_save_IFS
13102 test -z "$as_dir" && as_dir=.
13103 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013105 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13107 break 2
13108 fi
13109done
13110 done
13111IFS=$as_save_IFS
13112
13113fi
13114fi
13115DSYMUTIL=$ac_cv_prog_DSYMUTIL
13116if test -n "$DSYMUTIL"; then
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13118$as_echo "$DSYMUTIL" >&6; }
13119else
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13121$as_echo "no" >&6; }
13122fi
13123
13124
13125fi
13126if test -z "$ac_cv_prog_DSYMUTIL"; then
13127 ac_ct_DSYMUTIL=$DSYMUTIL
13128 # Extract the first word of "dsymutil", so it can be a program name with args.
13129set dummy dsymutil; ac_word=$2
13130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13131$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013132if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013133 $as_echo_n "(cached) " >&6
13134else
13135 if test -n "$ac_ct_DSYMUTIL"; then
13136 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13137else
13138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13139for as_dir in $PATH
13140do
13141 IFS=$as_save_IFS
13142 test -z "$as_dir" && as_dir=.
13143 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013145 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13147 break 2
13148 fi
13149done
13150 done
13151IFS=$as_save_IFS
13152
13153fi
13154fi
13155ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13156if test -n "$ac_ct_DSYMUTIL"; then
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13158$as_echo "$ac_ct_DSYMUTIL" >&6; }
13159else
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13161$as_echo "no" >&6; }
13162fi
13163
13164 if test "x$ac_ct_DSYMUTIL" = x; then
13165 DSYMUTIL=":"
13166 else
13167 case $cross_compiling:$ac_tool_warned in
13168yes:)
13169{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13170$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13171ac_tool_warned=yes ;;
13172esac
13173 DSYMUTIL=$ac_ct_DSYMUTIL
13174 fi
13175else
13176 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13177fi
13178
13179 if test -n "$ac_tool_prefix"; then
13180 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13181set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13183$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013184if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013185 $as_echo_n "(cached) " >&6
13186else
13187 if test -n "$NMEDIT"; then
13188 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13189else
13190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13191for as_dir in $PATH
13192do
13193 IFS=$as_save_IFS
13194 test -z "$as_dir" && as_dir=.
13195 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013197 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13199 break 2
13200 fi
13201done
13202 done
13203IFS=$as_save_IFS
13204
13205fi
13206fi
13207NMEDIT=$ac_cv_prog_NMEDIT
13208if test -n "$NMEDIT"; then
13209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13210$as_echo "$NMEDIT" >&6; }
13211else
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13213$as_echo "no" >&6; }
13214fi
13215
13216
13217fi
13218if test -z "$ac_cv_prog_NMEDIT"; then
13219 ac_ct_NMEDIT=$NMEDIT
13220 # Extract the first word of "nmedit", so it can be a program name with args.
13221set dummy nmedit; ac_word=$2
13222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13223$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013224if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013225 $as_echo_n "(cached) " >&6
13226else
13227 if test -n "$ac_ct_NMEDIT"; then
13228 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13229else
13230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13231for as_dir in $PATH
13232do
13233 IFS=$as_save_IFS
13234 test -z "$as_dir" && as_dir=.
13235 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013237 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13239 break 2
13240 fi
13241done
13242 done
13243IFS=$as_save_IFS
13244
13245fi
13246fi
13247ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13248if test -n "$ac_ct_NMEDIT"; then
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13250$as_echo "$ac_ct_NMEDIT" >&6; }
13251else
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13253$as_echo "no" >&6; }
13254fi
13255
13256 if test "x$ac_ct_NMEDIT" = x; then
13257 NMEDIT=":"
13258 else
13259 case $cross_compiling:$ac_tool_warned in
13260yes:)
13261{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13262$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13263ac_tool_warned=yes ;;
13264esac
13265 NMEDIT=$ac_ct_NMEDIT
13266 fi
13267else
13268 NMEDIT="$ac_cv_prog_NMEDIT"
13269fi
13270
13271 if test -n "$ac_tool_prefix"; then
13272 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13273set dummy ${ac_tool_prefix}lipo; ac_word=$2
13274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13275$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013276if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013277 $as_echo_n "(cached) " >&6
13278else
13279 if test -n "$LIPO"; then
13280 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13281else
13282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13283for as_dir in $PATH
13284do
13285 IFS=$as_save_IFS
13286 test -z "$as_dir" && as_dir=.
13287 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013289 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13291 break 2
13292 fi
13293done
13294 done
13295IFS=$as_save_IFS
13296
13297fi
13298fi
13299LIPO=$ac_cv_prog_LIPO
13300if test -n "$LIPO"; then
13301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13302$as_echo "$LIPO" >&6; }
13303else
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13305$as_echo "no" >&6; }
13306fi
13307
13308
13309fi
13310if test -z "$ac_cv_prog_LIPO"; then
13311 ac_ct_LIPO=$LIPO
13312 # Extract the first word of "lipo", so it can be a program name with args.
13313set dummy lipo; ac_word=$2
13314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13315$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013316if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013317 $as_echo_n "(cached) " >&6
13318else
13319 if test -n "$ac_ct_LIPO"; then
13320 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13321else
13322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13323for as_dir in $PATH
13324do
13325 IFS=$as_save_IFS
13326 test -z "$as_dir" && as_dir=.
13327 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013329 ac_cv_prog_ac_ct_LIPO="lipo"
13330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13331 break 2
13332 fi
13333done
13334 done
13335IFS=$as_save_IFS
13336
13337fi
13338fi
13339ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13340if test -n "$ac_ct_LIPO"; then
13341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13342$as_echo "$ac_ct_LIPO" >&6; }
13343else
13344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13345$as_echo "no" >&6; }
13346fi
13347
13348 if test "x$ac_ct_LIPO" = x; then
13349 LIPO=":"
13350 else
13351 case $cross_compiling:$ac_tool_warned in
13352yes:)
13353{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13354$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13355ac_tool_warned=yes ;;
13356esac
13357 LIPO=$ac_ct_LIPO
13358 fi
13359else
13360 LIPO="$ac_cv_prog_LIPO"
13361fi
13362
13363 if test -n "$ac_tool_prefix"; then
13364 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13365set dummy ${ac_tool_prefix}otool; ac_word=$2
13366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13367$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013368if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013369 $as_echo_n "(cached) " >&6
13370else
13371 if test -n "$OTOOL"; then
13372 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13373else
13374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13375for as_dir in $PATH
13376do
13377 IFS=$as_save_IFS
13378 test -z "$as_dir" && as_dir=.
13379 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013381 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13383 break 2
13384 fi
13385done
13386 done
13387IFS=$as_save_IFS
13388
13389fi
13390fi
13391OTOOL=$ac_cv_prog_OTOOL
13392if test -n "$OTOOL"; then
13393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13394$as_echo "$OTOOL" >&6; }
13395else
13396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13397$as_echo "no" >&6; }
13398fi
13399
13400
13401fi
13402if test -z "$ac_cv_prog_OTOOL"; then
13403 ac_ct_OTOOL=$OTOOL
13404 # Extract the first word of "otool", so it can be a program name with args.
13405set dummy otool; ac_word=$2
13406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13407$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013408if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013409 $as_echo_n "(cached) " >&6
13410else
13411 if test -n "$ac_ct_OTOOL"; then
13412 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13413else
13414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13415for as_dir in $PATH
13416do
13417 IFS=$as_save_IFS
13418 test -z "$as_dir" && as_dir=.
13419 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013421 ac_cv_prog_ac_ct_OTOOL="otool"
13422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13423 break 2
13424 fi
13425done
13426 done
13427IFS=$as_save_IFS
13428
13429fi
13430fi
13431ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13432if test -n "$ac_ct_OTOOL"; then
13433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13434$as_echo "$ac_ct_OTOOL" >&6; }
13435else
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13437$as_echo "no" >&6; }
13438fi
13439
13440 if test "x$ac_ct_OTOOL" = x; then
13441 OTOOL=":"
13442 else
13443 case $cross_compiling:$ac_tool_warned in
13444yes:)
13445{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13446$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13447ac_tool_warned=yes ;;
13448esac
13449 OTOOL=$ac_ct_OTOOL
13450 fi
13451else
13452 OTOOL="$ac_cv_prog_OTOOL"
13453fi
13454
13455 if test -n "$ac_tool_prefix"; then
13456 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13457set dummy ${ac_tool_prefix}otool64; ac_word=$2
13458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13459$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013460if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013461 $as_echo_n "(cached) " >&6
13462else
13463 if test -n "$OTOOL64"; then
13464 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13465else
13466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13467for as_dir in $PATH
13468do
13469 IFS=$as_save_IFS
13470 test -z "$as_dir" && as_dir=.
13471 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013473 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13475 break 2
13476 fi
13477done
13478 done
13479IFS=$as_save_IFS
13480
13481fi
13482fi
13483OTOOL64=$ac_cv_prog_OTOOL64
13484if test -n "$OTOOL64"; then
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13486$as_echo "$OTOOL64" >&6; }
13487else
13488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13489$as_echo "no" >&6; }
13490fi
13491
13492
13493fi
13494if test -z "$ac_cv_prog_OTOOL64"; then
13495 ac_ct_OTOOL64=$OTOOL64
13496 # Extract the first word of "otool64", so it can be a program name with args.
13497set dummy otool64; ac_word=$2
13498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13499$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013500if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013501 $as_echo_n "(cached) " >&6
13502else
13503 if test -n "$ac_ct_OTOOL64"; then
13504 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13505else
13506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13507for as_dir in $PATH
13508do
13509 IFS=$as_save_IFS
13510 test -z "$as_dir" && as_dir=.
13511 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013513 ac_cv_prog_ac_ct_OTOOL64="otool64"
13514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13515 break 2
13516 fi
13517done
13518 done
13519IFS=$as_save_IFS
13520
13521fi
13522fi
13523ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13524if test -n "$ac_ct_OTOOL64"; then
13525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13526$as_echo "$ac_ct_OTOOL64" >&6; }
13527else
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13529$as_echo "no" >&6; }
13530fi
13531
13532 if test "x$ac_ct_OTOOL64" = x; then
13533 OTOOL64=":"
13534 else
13535 case $cross_compiling:$ac_tool_warned in
13536yes:)
13537{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13538$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13539ac_tool_warned=yes ;;
13540esac
13541 OTOOL64=$ac_ct_OTOOL64
13542 fi
13543else
13544 OTOOL64="$ac_cv_prog_OTOOL64"
13545fi
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13574$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013575if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013576 $as_echo_n "(cached) " >&6
13577else
13578 lt_cv_apple_cc_single_mod=no
13579 if test -z "${LT_MULTI_MODULE}"; then
13580 # By default we will add the -single_module flag. You can override
13581 # by either setting the environment variable LT_MULTI_MODULE
13582 # non-empty at configure time, or by adding -multi_module to the
13583 # link flags.
13584 rm -rf libconftest.dylib*
13585 echo "int foo(void){return 1;}" > conftest.c
13586 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13587-dynamiclib -Wl,-single_module conftest.c" >&5
13588 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13589 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13590 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013591 # If there is a non-empty error log, and "single_module"
13592 # appears in it, assume the flag caused a linker warning
13593 if test -s conftest.err && $GREP single_module conftest.err; then
13594 cat conftest.err >&5
13595 # Otherwise, if the output was created with a 0 exit code from
13596 # the compiler, it worked.
13597 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
cristy73bd4a52010-10-05 11:24:23 +000013598 lt_cv_apple_cc_single_mod=yes
13599 else
13600 cat conftest.err >&5
13601 fi
13602 rm -rf libconftest.dylib*
13603 rm -f conftest.*
13604 fi
13605fi
13606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13607$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013608
cristy73bd4a52010-10-05 11:24:23 +000013609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13610$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013611if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013612 $as_echo_n "(cached) " >&6
13613else
13614 lt_cv_ld_exported_symbols_list=no
13615 save_LDFLAGS=$LDFLAGS
13616 echo "_main" > conftest.sym
13617 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13619/* end confdefs.h. */
13620
13621int
13622main ()
13623{
13624
13625 ;
13626 return 0;
13627}
13628_ACEOF
13629if ac_fn_c_try_link "$LINENO"; then :
13630 lt_cv_ld_exported_symbols_list=yes
13631else
13632 lt_cv_ld_exported_symbols_list=no
13633fi
13634rm -f core conftest.err conftest.$ac_objext \
13635 conftest$ac_exeext conftest.$ac_ext
13636 LDFLAGS="$save_LDFLAGS"
13637
13638fi
13639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13640$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013641
cristy0c60a692010-11-04 01:09:47 +000013642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13643$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013644if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000013645 $as_echo_n "(cached) " >&6
13646else
13647 lt_cv_ld_force_load=no
13648 cat > conftest.c << _LT_EOF
13649int forced_loaded() { return 2;}
13650_LT_EOF
13651 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13652 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13653 echo "$AR cru libconftest.a conftest.o" >&5
13654 $AR cru libconftest.a conftest.o 2>&5
13655 echo "$RANLIB libconftest.a" >&5
13656 $RANLIB libconftest.a 2>&5
13657 cat > conftest.c << _LT_EOF
13658int main() { return 0;}
13659_LT_EOF
13660 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13661 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13662 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013663 if test -s conftest.err && $GREP force_load conftest.err; then
13664 cat conftest.err >&5
13665 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
cristy0c60a692010-11-04 01:09:47 +000013666 lt_cv_ld_force_load=yes
13667 else
13668 cat conftest.err >&5
13669 fi
13670 rm -f conftest.err libconftest.a conftest conftest.c
13671 rm -rf conftest.dSYM
13672
13673fi
13674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13675$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000013676 case $host_os in
13677 rhapsody* | darwin1.[012])
13678 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13679 darwin1.*)
13680 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13681 darwin*) # darwin 5.x on
13682 # if running on 10.5 or later, the deployment target defaults
13683 # to the OS version, if on x86, and 10.4, the deployment
13684 # target defaults to 10.4. Don't you love it?
13685 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13686 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13687 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13688 10.[012]*)
13689 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13690 10.*)
13691 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13692 esac
13693 ;;
13694 esac
13695 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13696 _lt_dar_single_mod='$single_module'
13697 fi
13698 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13699 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13700 else
13701 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13702 fi
cristy0c60a692010-11-04 01:09:47 +000013703 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000013704 _lt_dsymutil='~$DSYMUTIL $lib || :'
13705 else
13706 _lt_dsymutil=
13707 fi
13708 ;;
13709 esac
13710
13711for ac_header in dlfcn.h
13712do :
13713 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13714"
cristyda16f162011-02-19 23:52:17 +000013715if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000013716 cat >>confdefs.h <<_ACEOF
13717#define HAVE_DLFCN_H 1
13718_ACEOF
13719
13720fi
13721
13722done
13723
13724
13725
cristy73bd4a52010-10-05 11:24:23 +000013726
cristyda16f162011-02-19 23:52:17 +000013727func_stripname_cnf ()
13728{
13729 case ${2} in
13730 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13731 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13732 esac
13733} # func_stripname_cnf
13734
13735
13736
cristy73bd4a52010-10-05 11:24:23 +000013737
13738
13739# Set options
13740enable_win32_dll=yes
13741
13742case $host in
cristy0c60a692010-11-04 01:09:47 +000013743*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000013744 if test -n "$ac_tool_prefix"; then
13745 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
13746set dummy ${ac_tool_prefix}as; ac_word=$2
13747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13748$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013749if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013750 $as_echo_n "(cached) " >&6
13751else
13752 if test -n "$AS"; then
13753 ac_cv_prog_AS="$AS" # Let the user override the test.
13754else
13755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13756for as_dir in $PATH
13757do
13758 IFS=$as_save_IFS
13759 test -z "$as_dir" && as_dir=.
13760 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013762 ac_cv_prog_AS="${ac_tool_prefix}as"
13763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13764 break 2
13765 fi
13766done
13767 done
13768IFS=$as_save_IFS
13769
13770fi
13771fi
13772AS=$ac_cv_prog_AS
13773if test -n "$AS"; then
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
13775$as_echo "$AS" >&6; }
13776else
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13778$as_echo "no" >&6; }
13779fi
13780
13781
13782fi
13783if test -z "$ac_cv_prog_AS"; then
13784 ac_ct_AS=$AS
13785 # Extract the first word of "as", so it can be a program name with args.
13786set dummy as; ac_word=$2
13787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13788$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013789if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013790 $as_echo_n "(cached) " >&6
13791else
13792 if test -n "$ac_ct_AS"; then
13793 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
13794else
13795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13796for as_dir in $PATH
13797do
13798 IFS=$as_save_IFS
13799 test -z "$as_dir" && as_dir=.
13800 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013802 ac_cv_prog_ac_ct_AS="as"
13803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13804 break 2
13805 fi
13806done
13807 done
13808IFS=$as_save_IFS
13809
13810fi
13811fi
13812ac_ct_AS=$ac_cv_prog_ac_ct_AS
13813if test -n "$ac_ct_AS"; then
13814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
13815$as_echo "$ac_ct_AS" >&6; }
13816else
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13818$as_echo "no" >&6; }
13819fi
13820
13821 if test "x$ac_ct_AS" = x; then
13822 AS="false"
13823 else
13824 case $cross_compiling:$ac_tool_warned in
13825yes:)
13826{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13827$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13828ac_tool_warned=yes ;;
13829esac
13830 AS=$ac_ct_AS
13831 fi
13832else
13833 AS="$ac_cv_prog_AS"
13834fi
13835
13836 if test -n "$ac_tool_prefix"; then
13837 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13838set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13840$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013841if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013842 $as_echo_n "(cached) " >&6
13843else
13844 if test -n "$DLLTOOL"; then
13845 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13846else
13847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13848for as_dir in $PATH
13849do
13850 IFS=$as_save_IFS
13851 test -z "$as_dir" && as_dir=.
13852 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013854 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13856 break 2
13857 fi
13858done
13859 done
13860IFS=$as_save_IFS
13861
13862fi
13863fi
13864DLLTOOL=$ac_cv_prog_DLLTOOL
13865if test -n "$DLLTOOL"; then
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
13867$as_echo "$DLLTOOL" >&6; }
13868else
13869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13870$as_echo "no" >&6; }
13871fi
13872
13873
13874fi
13875if test -z "$ac_cv_prog_DLLTOOL"; then
13876 ac_ct_DLLTOOL=$DLLTOOL
13877 # Extract the first word of "dlltool", so it can be a program name with args.
13878set dummy dlltool; ac_word=$2
13879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13880$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013881if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013882 $as_echo_n "(cached) " >&6
13883else
13884 if test -n "$ac_ct_DLLTOOL"; then
13885 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13886else
13887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13888for as_dir in $PATH
13889do
13890 IFS=$as_save_IFS
13891 test -z "$as_dir" && as_dir=.
13892 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013894 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13896 break 2
13897 fi
13898done
13899 done
13900IFS=$as_save_IFS
13901
13902fi
13903fi
13904ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13905if test -n "$ac_ct_DLLTOOL"; then
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
13907$as_echo "$ac_ct_DLLTOOL" >&6; }
13908else
13909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13910$as_echo "no" >&6; }
13911fi
13912
13913 if test "x$ac_ct_DLLTOOL" = x; then
13914 DLLTOOL="false"
13915 else
13916 case $cross_compiling:$ac_tool_warned in
13917yes:)
13918{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13919$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13920ac_tool_warned=yes ;;
13921esac
13922 DLLTOOL=$ac_ct_DLLTOOL
13923 fi
13924else
13925 DLLTOOL="$ac_cv_prog_DLLTOOL"
13926fi
13927
13928 if test -n "$ac_tool_prefix"; then
13929 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13930set dummy ${ac_tool_prefix}objdump; ac_word=$2
13931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13932$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013933if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013934 $as_echo_n "(cached) " >&6
13935else
13936 if test -n "$OBJDUMP"; then
13937 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13938else
13939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13940for as_dir in $PATH
13941do
13942 IFS=$as_save_IFS
13943 test -z "$as_dir" && as_dir=.
13944 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013946 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13948 break 2
13949 fi
13950done
13951 done
13952IFS=$as_save_IFS
13953
13954fi
13955fi
13956OBJDUMP=$ac_cv_prog_OBJDUMP
13957if test -n "$OBJDUMP"; then
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13959$as_echo "$OBJDUMP" >&6; }
13960else
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13962$as_echo "no" >&6; }
13963fi
13964
13965
13966fi
13967if test -z "$ac_cv_prog_OBJDUMP"; then
13968 ac_ct_OBJDUMP=$OBJDUMP
13969 # Extract the first word of "objdump", so it can be a program name with args.
13970set dummy objdump; ac_word=$2
13971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13972$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013973if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013974 $as_echo_n "(cached) " >&6
13975else
13976 if test -n "$ac_ct_OBJDUMP"; then
13977 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13978else
13979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13980for as_dir in $PATH
13981do
13982 IFS=$as_save_IFS
13983 test -z "$as_dir" && as_dir=.
13984 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013986 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13988 break 2
13989 fi
13990done
13991 done
13992IFS=$as_save_IFS
13993
13994fi
13995fi
13996ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13997if test -n "$ac_ct_OBJDUMP"; then
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13999$as_echo "$ac_ct_OBJDUMP" >&6; }
14000else
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14002$as_echo "no" >&6; }
14003fi
14004
14005 if test "x$ac_ct_OBJDUMP" = x; then
14006 OBJDUMP="false"
14007 else
14008 case $cross_compiling:$ac_tool_warned in
14009yes:)
14010{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14011$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14012ac_tool_warned=yes ;;
14013esac
14014 OBJDUMP=$ac_ct_OBJDUMP
14015 fi
14016else
14017 OBJDUMP="$ac_cv_prog_OBJDUMP"
14018fi
14019
14020 ;;
14021esac
14022
14023test -z "$AS" && AS=as
14024
14025
14026
14027
14028
14029test -z "$DLLTOOL" && DLLTOOL=dlltool
14030
14031
14032
14033
14034
14035test -z "$OBJDUMP" && OBJDUMP=objdump
14036
14037
14038
14039
14040
14041
14042
14043
14044
14045 # Check whether --enable-shared was given.
14046if test "${enable_shared+set}" = set; then :
14047 enableval=$enable_shared; p=${PACKAGE-default}
14048 case $enableval in
14049 yes) enable_shared=yes ;;
14050 no) enable_shared=no ;;
14051 *)
14052 enable_shared=no
14053 # Look at the argument we got. We use all the common list separators.
14054 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14055 for pkg in $enableval; do
14056 IFS="$lt_save_ifs"
14057 if test "X$pkg" = "X$p"; then
14058 enable_shared=yes
14059 fi
14060 done
14061 IFS="$lt_save_ifs"
14062 ;;
14063 esac
14064else
14065 enable_shared=yes
14066fi
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076 # Check whether --enable-static was given.
14077if test "${enable_static+set}" = set; then :
14078 enableval=$enable_static; p=${PACKAGE-default}
14079 case $enableval in
14080 yes) enable_static=yes ;;
14081 no) enable_static=no ;;
14082 *)
14083 enable_static=no
14084 # Look at the argument we got. We use all the common list separators.
14085 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14086 for pkg in $enableval; do
14087 IFS="$lt_save_ifs"
14088 if test "X$pkg" = "X$p"; then
14089 enable_static=yes
14090 fi
14091 done
14092 IFS="$lt_save_ifs"
14093 ;;
14094 esac
14095else
14096 enable_static=yes
14097fi
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108# Check whether --with-pic was given.
14109if test "${with_pic+set}" = set; then :
cristy99bd5232011-12-07 14:38:20 +000014110 withval=$with_pic; lt_p=${PACKAGE-default}
14111 case $withval in
14112 yes|no) pic_mode=$withval ;;
14113 *)
14114 pic_mode=default
14115 # Look at the argument we got. We use all the common list separators.
14116 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14117 for lt_pkg in $withval; do
14118 IFS="$lt_save_ifs"
14119 if test "X$lt_pkg" = "X$lt_p"; then
14120 pic_mode=yes
14121 fi
14122 done
14123 IFS="$lt_save_ifs"
14124 ;;
14125 esac
cristy73bd4a52010-10-05 11:24:23 +000014126else
14127 pic_mode=default
14128fi
14129
14130
14131test -z "$pic_mode" && pic_mode=default
14132
14133
14134
14135
14136
14137
14138
14139 # Check whether --enable-fast-install was given.
14140if test "${enable_fast_install+set}" = set; then :
14141 enableval=$enable_fast_install; p=${PACKAGE-default}
14142 case $enableval in
14143 yes) enable_fast_install=yes ;;
14144 no) enable_fast_install=no ;;
14145 *)
14146 enable_fast_install=no
14147 # Look at the argument we got. We use all the common list separators.
14148 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14149 for pkg in $enableval; do
14150 IFS="$lt_save_ifs"
14151 if test "X$pkg" = "X$p"; then
14152 enable_fast_install=yes
14153 fi
14154 done
14155 IFS="$lt_save_ifs"
14156 ;;
14157 esac
14158else
14159 enable_fast_install=yes
14160fi
14161
14162
14163
14164
14165
14166
14167
14168
14169
14170
14171
14172# This can be used to rebuild libtool when needed
14173LIBTOOL_DEPS="$ltmain"
14174
14175# Always use our own libtool.
14176LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199
14200
14201
cristy0c60a692010-11-04 01:09:47 +000014202
cristy99bd5232011-12-07 14:38:20 +000014203
14204
14205
14206
cristy73bd4a52010-10-05 11:24:23 +000014207test -z "$LN_S" && LN_S="ln -s"
14208
14209
14210
14211
14212
14213
14214
14215
14216
14217
14218
14219
14220
14221
14222if test -n "${ZSH_VERSION+set}" ; then
14223 setopt NO_GLOB_SUBST
14224fi
14225
14226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14227$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014228if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014229 $as_echo_n "(cached) " >&6
14230else
14231 rm -f .libs 2>/dev/null
14232mkdir .libs 2>/dev/null
14233if test -d .libs; then
14234 lt_cv_objdir=.libs
14235else
14236 # MS-DOS does not allow filenames that begin with a dot.
14237 lt_cv_objdir=_libs
14238fi
14239rmdir .libs 2>/dev/null
14240fi
14241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14242$as_echo "$lt_cv_objdir" >&6; }
14243objdir=$lt_cv_objdir
14244
14245
14246
14247
14248
14249cat >>confdefs.h <<_ACEOF
14250#define LT_OBJDIR "$lt_cv_objdir/"
14251_ACEOF
14252
14253
14254
14255
cristy73bd4a52010-10-05 11:24:23 +000014256case $host_os in
14257aix3*)
14258 # AIX sometimes has problems with the GCC collect2 program. For some
14259 # reason, if we set the COLLECT_NAMES environment variable, the problems
14260 # vanish in a puff of smoke.
14261 if test "X${COLLECT_NAMES+set}" != Xset; then
14262 COLLECT_NAMES=
14263 export COLLECT_NAMES
14264 fi
14265 ;;
14266esac
14267
cristy73bd4a52010-10-05 11:24:23 +000014268# Global variables:
14269ofile=libtool
14270can_build_shared=yes
14271
14272# All known linkers require a `.a' archive for static linking (except MSVC,
14273# which needs '.lib').
14274libext=a
14275
14276with_gnu_ld="$lt_cv_prog_gnu_ld"
14277
14278old_CC="$CC"
14279old_CFLAGS="$CFLAGS"
14280
14281# Set sane defaults for various variables
14282test -z "$CC" && CC=cc
14283test -z "$LTCC" && LTCC=$CC
14284test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14285test -z "$LD" && LD=ld
14286test -z "$ac_objext" && ac_objext=o
14287
14288for cc_temp in $compiler""; do
14289 case $cc_temp in
14290 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14291 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14292 \-*) ;;
14293 *) break;;
14294 esac
14295done
cristy0c60a692010-11-04 01:09:47 +000014296cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000014297
14298
14299# Only perform the check for file, if the check method requires it
14300test -z "$MAGIC_CMD" && MAGIC_CMD=file
14301case $deplibs_check_method in
14302file_magic*)
14303 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14305$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014306if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014307 $as_echo_n "(cached) " >&6
14308else
14309 case $MAGIC_CMD in
14310[\\/*] | ?:[\\/]*)
14311 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14312 ;;
14313*)
14314 lt_save_MAGIC_CMD="$MAGIC_CMD"
14315 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14316 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14317 for ac_dir in $ac_dummy; do
14318 IFS="$lt_save_ifs"
14319 test -z "$ac_dir" && ac_dir=.
14320 if test -f $ac_dir/${ac_tool_prefix}file; then
14321 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14322 if test -n "$file_magic_test_file"; then
14323 case $deplibs_check_method in
14324 "file_magic "*)
14325 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14326 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14327 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14328 $EGREP "$file_magic_regex" > /dev/null; then
14329 :
14330 else
14331 cat <<_LT_EOF 1>&2
14332
14333*** Warning: the command libtool uses to detect shared libraries,
14334*** $file_magic_cmd, produces output that libtool cannot recognize.
14335*** The result is that libtool may fail to recognize shared libraries
14336*** as such. This will affect the creation of libtool libraries that
14337*** depend on shared libraries, but programs linked with such libtool
14338*** libraries will work regardless of this problem. Nevertheless, you
14339*** may want to report the problem to your system manager and/or to
14340*** bug-libtool@gnu.org
14341
14342_LT_EOF
14343 fi ;;
14344 esac
14345 fi
14346 break
14347 fi
14348 done
14349 IFS="$lt_save_ifs"
14350 MAGIC_CMD="$lt_save_MAGIC_CMD"
14351 ;;
14352esac
14353fi
14354
14355MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14356if test -n "$MAGIC_CMD"; then
14357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14358$as_echo "$MAGIC_CMD" >&6; }
14359else
14360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14361$as_echo "no" >&6; }
14362fi
14363
14364
14365
14366
14367
14368if test -z "$lt_cv_path_MAGIC_CMD"; then
14369 if test -n "$ac_tool_prefix"; then
14370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14371$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014372if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014373 $as_echo_n "(cached) " >&6
14374else
14375 case $MAGIC_CMD in
14376[\\/*] | ?:[\\/]*)
14377 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14378 ;;
14379*)
14380 lt_save_MAGIC_CMD="$MAGIC_CMD"
14381 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14382 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14383 for ac_dir in $ac_dummy; do
14384 IFS="$lt_save_ifs"
14385 test -z "$ac_dir" && ac_dir=.
14386 if test -f $ac_dir/file; then
14387 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14388 if test -n "$file_magic_test_file"; then
14389 case $deplibs_check_method in
14390 "file_magic "*)
14391 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14392 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14393 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14394 $EGREP "$file_magic_regex" > /dev/null; then
14395 :
14396 else
14397 cat <<_LT_EOF 1>&2
14398
14399*** Warning: the command libtool uses to detect shared libraries,
14400*** $file_magic_cmd, produces output that libtool cannot recognize.
14401*** The result is that libtool may fail to recognize shared libraries
14402*** as such. This will affect the creation of libtool libraries that
14403*** depend on shared libraries, but programs linked with such libtool
14404*** libraries will work regardless of this problem. Nevertheless, you
14405*** may want to report the problem to your system manager and/or to
14406*** bug-libtool@gnu.org
14407
14408_LT_EOF
14409 fi ;;
14410 esac
14411 fi
14412 break
14413 fi
14414 done
14415 IFS="$lt_save_ifs"
14416 MAGIC_CMD="$lt_save_MAGIC_CMD"
14417 ;;
14418esac
14419fi
14420
14421MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14422if test -n "$MAGIC_CMD"; then
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14424$as_echo "$MAGIC_CMD" >&6; }
14425else
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14427$as_echo "no" >&6; }
14428fi
14429
14430
14431 else
14432 MAGIC_CMD=:
14433 fi
14434fi
14435
14436 fi
14437 ;;
14438esac
14439
14440# Use C for the default configuration in the libtool script
14441
14442lt_save_CC="$CC"
14443ac_ext=c
14444ac_cpp='$CPP $CPPFLAGS'
14445ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14446ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14447ac_compiler_gnu=$ac_cv_c_compiler_gnu
14448
14449
14450# Source file extension for C test sources.
14451ac_ext=c
14452
14453# Object file extension for compiled C test sources.
14454objext=o
14455objext=$objext
14456
14457# Code to be used in simple compile tests
14458lt_simple_compile_test_code="int some_variable = 0;"
14459
14460# Code to be used in simple link tests
14461lt_simple_link_test_code='int main(){return(0);}'
14462
14463
14464
14465
14466
14467
14468
14469# If no C compiler was specified, use CC.
14470LTCC=${LTCC-"$CC"}
14471
14472# If no C compiler flags were specified, use CFLAGS.
14473LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14474
14475# Allow CC to be a program name with arguments.
14476compiler=$CC
14477
14478# Save the default compiler, since it gets overwritten when the other
14479# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14480compiler_DEFAULT=$CC
14481
14482# save warnings/boilerplate of simple test code
14483ac_outfile=conftest.$ac_objext
14484echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14485eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14486_lt_compiler_boilerplate=`cat conftest.err`
14487$RM conftest*
14488
14489ac_outfile=conftest.$ac_objext
14490echo "$lt_simple_link_test_code" >conftest.$ac_ext
14491eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14492_lt_linker_boilerplate=`cat conftest.err`
14493$RM -r conftest*
14494
14495
14496## CAVEAT EMPTOR:
14497## There is no encapsulation within the following macros, do not change
14498## the running order or otherwise move them around unless you know exactly
14499## what you are doing...
14500if test -n "$compiler"; then
14501
14502lt_prog_compiler_no_builtin_flag=
14503
14504if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000014505 case $cc_basename in
14506 nvcc*)
14507 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14508 *)
14509 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14510 esac
cristy73bd4a52010-10-05 11:24:23 +000014511
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14513$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014514if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014515 $as_echo_n "(cached) " >&6
14516else
14517 lt_cv_prog_compiler_rtti_exceptions=no
14518 ac_outfile=conftest.$ac_objext
14519 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14520 lt_compiler_flag="-fno-rtti -fno-exceptions"
14521 # Insert the option either (1) after the last *FLAGS variable, or
14522 # (2) before a word containing "conftest.", or (3) at the end.
14523 # Note that $ac_compile itself does not contain backslashes and begins
14524 # with a dollar sign (not a hyphen), so the echo should work correctly.
14525 # The option is referenced via a variable to avoid confusing sed.
14526 lt_compile=`echo "$ac_compile" | $SED \
14527 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14528 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14529 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014530 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014531 (eval "$lt_compile" 2>conftest.err)
14532 ac_status=$?
14533 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014535 if (exit $ac_status) && test -s "$ac_outfile"; then
14536 # The compiler can only warn and ignore the option if not recognized
14537 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014538 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014539 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14540 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14541 lt_cv_prog_compiler_rtti_exceptions=yes
14542 fi
14543 fi
14544 $RM conftest*
14545
14546fi
14547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14548$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14549
14550if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14551 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14552else
14553 :
14554fi
14555
14556fi
14557
14558
14559
14560
14561
14562
14563 lt_prog_compiler_wl=
14564lt_prog_compiler_pic=
14565lt_prog_compiler_static=
14566
cristy73bd4a52010-10-05 11:24:23 +000014567
14568 if test "$GCC" = yes; then
14569 lt_prog_compiler_wl='-Wl,'
14570 lt_prog_compiler_static='-static'
14571
14572 case $host_os in
14573 aix*)
14574 # All AIX code is PIC.
14575 if test "$host_cpu" = ia64; then
14576 # AIX 5 now supports IA64 processor
14577 lt_prog_compiler_static='-Bstatic'
14578 fi
14579 ;;
14580
14581 amigaos*)
14582 case $host_cpu in
14583 powerpc)
14584 # see comment about AmigaOS4 .so support
14585 lt_prog_compiler_pic='-fPIC'
14586 ;;
14587 m68k)
14588 # FIXME: we need at least 68020 code to build shared libraries, but
14589 # adding the `-m68020' flag to GCC prevents building anything better,
14590 # like `-m68040'.
14591 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14592 ;;
14593 esac
14594 ;;
14595
14596 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14597 # PIC is the default for these OSes.
14598 ;;
14599
14600 mingw* | cygwin* | pw32* | os2* | cegcc*)
14601 # This hack is so that the source file can tell whether it is being
14602 # built for inclusion in a dll (and should export symbols for example).
14603 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14604 # (--disable-auto-import) libraries
14605 lt_prog_compiler_pic='-DDLL_EXPORT'
14606 ;;
14607
14608 darwin* | rhapsody*)
14609 # PIC is the default on this platform
14610 # Common symbols not allowed in MH_DYLIB files
14611 lt_prog_compiler_pic='-fno-common'
14612 ;;
14613
cristy0c60a692010-11-04 01:09:47 +000014614 haiku*)
14615 # PIC is the default for Haiku.
14616 # The "-static" flag exists, but is broken.
14617 lt_prog_compiler_static=
14618 ;;
14619
cristy73bd4a52010-10-05 11:24:23 +000014620 hpux*)
14621 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14622 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14623 # sets the default TLS model and affects inlining.
14624 case $host_cpu in
14625 hppa*64*)
14626 # +Z the default
14627 ;;
14628 *)
14629 lt_prog_compiler_pic='-fPIC'
14630 ;;
14631 esac
14632 ;;
14633
14634 interix[3-9]*)
14635 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14636 # Instead, we relocate shared libraries at runtime.
14637 ;;
14638
14639 msdosdjgpp*)
14640 # Just because we use GCC doesn't mean we suddenly get shared libraries
14641 # on systems that don't support them.
14642 lt_prog_compiler_can_build_shared=no
14643 enable_shared=no
14644 ;;
14645
14646 *nto* | *qnx*)
14647 # QNX uses GNU C++, but need to define -shared option too, otherwise
14648 # it will coredump.
14649 lt_prog_compiler_pic='-fPIC -shared'
14650 ;;
14651
14652 sysv4*MP*)
14653 if test -d /usr/nec; then
14654 lt_prog_compiler_pic=-Kconform_pic
14655 fi
14656 ;;
14657
14658 *)
14659 lt_prog_compiler_pic='-fPIC'
14660 ;;
14661 esac
cristy0c60a692010-11-04 01:09:47 +000014662
14663 case $cc_basename in
14664 nvcc*) # Cuda Compiler Driver 2.2
14665 lt_prog_compiler_wl='-Xlinker '
cristy99bd5232011-12-07 14:38:20 +000014666 if test -n "$lt_prog_compiler_pic"; then
14667 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14668 fi
cristy0c60a692010-11-04 01:09:47 +000014669 ;;
14670 esac
cristy73bd4a52010-10-05 11:24:23 +000014671 else
14672 # PORTME Check for flag to pass linker flags through the system compiler.
14673 case $host_os in
14674 aix*)
14675 lt_prog_compiler_wl='-Wl,'
14676 if test "$host_cpu" = ia64; then
14677 # AIX 5 now supports IA64 processor
14678 lt_prog_compiler_static='-Bstatic'
14679 else
14680 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14681 fi
14682 ;;
14683
14684 mingw* | cygwin* | pw32* | os2* | cegcc*)
14685 # This hack is so that the source file can tell whether it is being
14686 # built for inclusion in a dll (and should export symbols for example).
14687 lt_prog_compiler_pic='-DDLL_EXPORT'
14688 ;;
14689
14690 hpux9* | hpux10* | hpux11*)
14691 lt_prog_compiler_wl='-Wl,'
14692 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14693 # not for PA HP-UX.
14694 case $host_cpu in
14695 hppa*64*|ia64*)
14696 # +Z the default
14697 ;;
14698 *)
14699 lt_prog_compiler_pic='+Z'
14700 ;;
14701 esac
14702 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14703 lt_prog_compiler_static='${wl}-a ${wl}archive'
14704 ;;
14705
14706 irix5* | irix6* | nonstopux*)
14707 lt_prog_compiler_wl='-Wl,'
14708 # PIC (with -KPIC) is the default.
14709 lt_prog_compiler_static='-non_shared'
14710 ;;
14711
cristy0c60a692010-11-04 01:09:47 +000014712 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014713 case $cc_basename in
14714 # old Intel for x86_64 which still supported -KPIC.
14715 ecc*)
14716 lt_prog_compiler_wl='-Wl,'
14717 lt_prog_compiler_pic='-KPIC'
14718 lt_prog_compiler_static='-static'
14719 ;;
14720 # icc used to be incompatible with GCC.
14721 # ICC 10 doesn't accept -KPIC any more.
14722 icc* | ifort*)
14723 lt_prog_compiler_wl='-Wl,'
14724 lt_prog_compiler_pic='-fPIC'
14725 lt_prog_compiler_static='-static'
14726 ;;
14727 # Lahey Fortran 8.1.
14728 lf95*)
14729 lt_prog_compiler_wl='-Wl,'
14730 lt_prog_compiler_pic='--shared'
14731 lt_prog_compiler_static='--static'
14732 ;;
cristyda16f162011-02-19 23:52:17 +000014733 nagfor*)
14734 # NAG Fortran compiler
14735 lt_prog_compiler_wl='-Wl,-Wl,,'
14736 lt_prog_compiler_pic='-PIC'
14737 lt_prog_compiler_static='-Bstatic'
14738 ;;
cristy0c60a692010-11-04 01:09:47 +000014739 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000014740 # Portland Group compilers (*not* the Pentium gcc compiler,
14741 # which looks to be a dead project)
14742 lt_prog_compiler_wl='-Wl,'
14743 lt_prog_compiler_pic='-fpic'
14744 lt_prog_compiler_static='-Bstatic'
14745 ;;
14746 ccc*)
14747 lt_prog_compiler_wl='-Wl,'
14748 # All Alpha code is PIC.
14749 lt_prog_compiler_static='-non_shared'
14750 ;;
cristy0c60a692010-11-04 01:09:47 +000014751 xl* | bgxl* | bgf* | mpixl*)
14752 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000014753 lt_prog_compiler_wl='-Wl,'
14754 lt_prog_compiler_pic='-qpic'
14755 lt_prog_compiler_static='-qstaticlink'
14756 ;;
14757 *)
14758 case `$CC -V 2>&1 | sed 5q` in
cristy99bd5232011-12-07 14:38:20 +000014759 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
cristy0c60a692010-11-04 01:09:47 +000014760 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14761 lt_prog_compiler_pic='-KPIC'
14762 lt_prog_compiler_static='-Bstatic'
14763 lt_prog_compiler_wl=''
14764 ;;
cristy99bd5232011-12-07 14:38:20 +000014765 *Sun\ F* | *Sun*Fortran*)
14766 lt_prog_compiler_pic='-KPIC'
14767 lt_prog_compiler_static='-Bstatic'
14768 lt_prog_compiler_wl='-Qoption ld '
14769 ;;
cristy73bd4a52010-10-05 11:24:23 +000014770 *Sun\ C*)
14771 # Sun C 5.9
14772 lt_prog_compiler_pic='-KPIC'
14773 lt_prog_compiler_static='-Bstatic'
14774 lt_prog_compiler_wl='-Wl,'
14775 ;;
cristy99bd5232011-12-07 14:38:20 +000014776 *Intel*\ [CF]*Compiler*)
14777 lt_prog_compiler_wl='-Wl,'
14778 lt_prog_compiler_pic='-fPIC'
14779 lt_prog_compiler_static='-static'
14780 ;;
14781 *Portland\ Group*)
14782 lt_prog_compiler_wl='-Wl,'
14783 lt_prog_compiler_pic='-fpic'
14784 lt_prog_compiler_static='-Bstatic'
14785 ;;
cristy73bd4a52010-10-05 11:24:23 +000014786 esac
14787 ;;
14788 esac
14789 ;;
14790
14791 newsos6)
14792 lt_prog_compiler_pic='-KPIC'
14793 lt_prog_compiler_static='-Bstatic'
14794 ;;
14795
14796 *nto* | *qnx*)
14797 # QNX uses GNU C++, but need to define -shared option too, otherwise
14798 # it will coredump.
14799 lt_prog_compiler_pic='-fPIC -shared'
14800 ;;
14801
14802 osf3* | osf4* | osf5*)
14803 lt_prog_compiler_wl='-Wl,'
14804 # All OSF/1 code is PIC.
14805 lt_prog_compiler_static='-non_shared'
14806 ;;
14807
14808 rdos*)
14809 lt_prog_compiler_static='-non_shared'
14810 ;;
14811
14812 solaris*)
14813 lt_prog_compiler_pic='-KPIC'
14814 lt_prog_compiler_static='-Bstatic'
14815 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014816 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000014817 lt_prog_compiler_wl='-Qoption ld ';;
14818 *)
14819 lt_prog_compiler_wl='-Wl,';;
14820 esac
14821 ;;
14822
14823 sunos4*)
14824 lt_prog_compiler_wl='-Qoption ld '
14825 lt_prog_compiler_pic='-PIC'
14826 lt_prog_compiler_static='-Bstatic'
14827 ;;
14828
14829 sysv4 | sysv4.2uw2* | sysv4.3*)
14830 lt_prog_compiler_wl='-Wl,'
14831 lt_prog_compiler_pic='-KPIC'
14832 lt_prog_compiler_static='-Bstatic'
14833 ;;
14834
14835 sysv4*MP*)
14836 if test -d /usr/nec ;then
14837 lt_prog_compiler_pic='-Kconform_pic'
14838 lt_prog_compiler_static='-Bstatic'
14839 fi
14840 ;;
14841
14842 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14843 lt_prog_compiler_wl='-Wl,'
14844 lt_prog_compiler_pic='-KPIC'
14845 lt_prog_compiler_static='-Bstatic'
14846 ;;
14847
14848 unicos*)
14849 lt_prog_compiler_wl='-Wl,'
14850 lt_prog_compiler_can_build_shared=no
14851 ;;
14852
14853 uts4*)
14854 lt_prog_compiler_pic='-pic'
14855 lt_prog_compiler_static='-Bstatic'
14856 ;;
14857
14858 *)
14859 lt_prog_compiler_can_build_shared=no
14860 ;;
14861 esac
14862 fi
14863
14864case $host_os in
14865 # For platforms which do not support PIC, -DPIC is meaningless:
14866 *djgpp*)
14867 lt_prog_compiler_pic=
14868 ;;
14869 *)
14870 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14871 ;;
14872esac
cristy73bd4a52010-10-05 11:24:23 +000014873
cristyda16f162011-02-19 23:52:17 +000014874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14875$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14876if ${lt_cv_prog_compiler_pic+:} false; then :
14877 $as_echo_n "(cached) " >&6
14878else
14879 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14880fi
14881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14882$as_echo "$lt_cv_prog_compiler_pic" >&6; }
14883lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000014884
14885#
14886# Check to make sure the PIC flag actually works.
14887#
14888if test -n "$lt_prog_compiler_pic"; then
14889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14890$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014891if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014892 $as_echo_n "(cached) " >&6
14893else
14894 lt_cv_prog_compiler_pic_works=no
14895 ac_outfile=conftest.$ac_objext
14896 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14897 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14898 # Insert the option either (1) after the last *FLAGS variable, or
14899 # (2) before a word containing "conftest.", or (3) at the end.
14900 # Note that $ac_compile itself does not contain backslashes and begins
14901 # with a dollar sign (not a hyphen), so the echo should work correctly.
14902 # The option is referenced via a variable to avoid confusing sed.
14903 lt_compile=`echo "$ac_compile" | $SED \
14904 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14905 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14906 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014907 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014908 (eval "$lt_compile" 2>conftest.err)
14909 ac_status=$?
14910 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014912 if (exit $ac_status) && test -s "$ac_outfile"; then
14913 # The compiler can only warn and ignore the option if not recognized
14914 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014915 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014916 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14917 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14918 lt_cv_prog_compiler_pic_works=yes
14919 fi
14920 fi
14921 $RM conftest*
14922
14923fi
14924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14925$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14926
14927if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14928 case $lt_prog_compiler_pic in
14929 "" | " "*) ;;
14930 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14931 esac
14932else
14933 lt_prog_compiler_pic=
14934 lt_prog_compiler_can_build_shared=no
14935fi
14936
14937fi
14938
14939
14940
14941
14942
14943
cristyda16f162011-02-19 23:52:17 +000014944
14945
14946
14947
14948
cristy73bd4a52010-10-05 11:24:23 +000014949#
14950# Check to make sure the static flag actually works.
14951#
14952wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14954$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014955if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014956 $as_echo_n "(cached) " >&6
14957else
14958 lt_cv_prog_compiler_static_works=no
14959 save_LDFLAGS="$LDFLAGS"
14960 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14961 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14962 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14963 # The linker can only warn and ignore the option if not recognized
14964 # So say no if there are warnings
14965 if test -s conftest.err; then
14966 # Append any errors to the config.log.
14967 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000014968 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014969 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14970 if diff conftest.exp conftest.er2 >/dev/null; then
14971 lt_cv_prog_compiler_static_works=yes
14972 fi
14973 else
14974 lt_cv_prog_compiler_static_works=yes
14975 fi
14976 fi
14977 $RM -r conftest*
14978 LDFLAGS="$save_LDFLAGS"
14979
14980fi
14981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14982$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14983
14984if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14985 :
14986else
14987 lt_prog_compiler_static=
14988fi
14989
14990
14991
14992
14993
14994
14995
14996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14997$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014998if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014999 $as_echo_n "(cached) " >&6
15000else
15001 lt_cv_prog_compiler_c_o=no
15002 $RM -r conftest 2>/dev/null
15003 mkdir conftest
15004 cd conftest
15005 mkdir out
15006 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15007
15008 lt_compiler_flag="-o out/conftest2.$ac_objext"
15009 # Insert the option either (1) after the last *FLAGS variable, or
15010 # (2) before a word containing "conftest.", or (3) at the end.
15011 # Note that $ac_compile itself does not contain backslashes and begins
15012 # with a dollar sign (not a hyphen), so the echo should work correctly.
15013 lt_compile=`echo "$ac_compile" | $SED \
15014 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15015 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15016 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000015017 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000015018 (eval "$lt_compile" 2>out/conftest.err)
15019 ac_status=$?
15020 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000015021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000015022 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15023 then
15024 # The compiler can only warn and ignore the option if not recognized
15025 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000015026 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000015027 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15028 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15029 lt_cv_prog_compiler_c_o=yes
15030 fi
15031 fi
15032 chmod u+w . 2>&5
15033 $RM conftest*
15034 # SGI C++ compiler will create directory out/ii_files/ for
15035 # template instantiation
15036 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15037 $RM out/* && rmdir out
15038 cd ..
15039 $RM -r conftest
15040 $RM conftest*
15041
15042fi
15043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15044$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15045
15046
15047
15048
15049
15050
15051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15052$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015053if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015054 $as_echo_n "(cached) " >&6
15055else
15056 lt_cv_prog_compiler_c_o=no
15057 $RM -r conftest 2>/dev/null
15058 mkdir conftest
15059 cd conftest
15060 mkdir out
15061 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15062
15063 lt_compiler_flag="-o out/conftest2.$ac_objext"
15064 # Insert the option either (1) after the last *FLAGS variable, or
15065 # (2) before a word containing "conftest.", or (3) at the end.
15066 # Note that $ac_compile itself does not contain backslashes and begins
15067 # with a dollar sign (not a hyphen), so the echo should work correctly.
15068 lt_compile=`echo "$ac_compile" | $SED \
15069 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15070 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15071 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000015072 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000015073 (eval "$lt_compile" 2>out/conftest.err)
15074 ac_status=$?
15075 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000015076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000015077 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15078 then
15079 # The compiler can only warn and ignore the option if not recognized
15080 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000015081 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000015082 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15083 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15084 lt_cv_prog_compiler_c_o=yes
15085 fi
15086 fi
15087 chmod u+w . 2>&5
15088 $RM conftest*
15089 # SGI C++ compiler will create directory out/ii_files/ for
15090 # template instantiation
15091 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15092 $RM out/* && rmdir out
15093 cd ..
15094 $RM -r conftest
15095 $RM conftest*
15096
15097fi
15098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15099$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15100
15101
15102
15103
15104hard_links="nottested"
15105if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15106 # do not overwrite the value of need_locks provided by the user
15107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15108$as_echo_n "checking if we can lock with hard links... " >&6; }
15109 hard_links=yes
15110 $RM conftest*
15111 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15112 touch conftest.a
15113 ln conftest.a conftest.b 2>&5 || hard_links=no
15114 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15116$as_echo "$hard_links" >&6; }
15117 if test "$hard_links" = no; then
15118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15119$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15120 need_locks=warn
15121 fi
15122else
15123 need_locks=no
15124fi
15125
15126
15127
15128
15129
15130
15131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15132$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15133
15134 runpath_var=
15135 allow_undefined_flag=
15136 always_export_symbols=no
15137 archive_cmds=
15138 archive_expsym_cmds=
15139 compiler_needs_object=no
15140 enable_shared_with_static_runtimes=no
15141 export_dynamic_flag_spec=
15142 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15143 hardcode_automatic=no
15144 hardcode_direct=no
15145 hardcode_direct_absolute=no
15146 hardcode_libdir_flag_spec=
cristy73bd4a52010-10-05 11:24:23 +000015147 hardcode_libdir_separator=
15148 hardcode_minus_L=no
15149 hardcode_shlibpath_var=unsupported
15150 inherit_rpath=no
15151 link_all_deplibs=unknown
15152 module_cmds=
15153 module_expsym_cmds=
15154 old_archive_from_new_cmds=
15155 old_archive_from_expsyms_cmds=
15156 thread_safe_flag_spec=
15157 whole_archive_flag_spec=
15158 # include_expsyms should be a list of space-separated symbols to be *always*
15159 # included in the symbol list
15160 include_expsyms=
15161 # exclude_expsyms can be an extended regexp of symbols to exclude
15162 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15163 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15164 # as well as any symbol that contains `d'.
15165 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15166 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15167 # platforms (ab)use it in PIC code, but their linkers get confused if
15168 # the symbol is explicitly referenced. Since portable code cannot
15169 # rely on this symbol name, it's probably fine to never include it in
15170 # preloaded symbol tables.
15171 # Exclude shared library initialization/finalization symbols.
15172 extract_expsyms_cmds=
15173
15174 case $host_os in
15175 cygwin* | mingw* | pw32* | cegcc*)
15176 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15177 # When not using gcc, we currently assume that we are using
15178 # Microsoft Visual C++.
15179 if test "$GCC" != yes; then
15180 with_gnu_ld=no
15181 fi
15182 ;;
15183 interix*)
15184 # we just hope/assume this is gcc and not c89 (= MSVC++)
15185 with_gnu_ld=yes
15186 ;;
15187 openbsd*)
15188 with_gnu_ld=no
15189 ;;
15190 esac
15191
15192 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000015193
15194 # On some targets, GNU ld is compatible enough with the native linker
15195 # that we're better off using the native interface for both.
15196 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000015197 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000015198 case $host_os in
15199 aix*)
15200 # The AIX port of GNU ld has always aspired to compatibility
15201 # with the native linker. However, as the warning in the GNU ld
15202 # block says, versions before 2.19.5* couldn't really create working
15203 # shared libraries, regardless of the interface used.
15204 case `$LD -v 2>&1` in
15205 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15206 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15207 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15208 *)
15209 lt_use_gnu_ld_interface=yes
15210 ;;
15211 esac
15212 ;;
15213 *)
15214 lt_use_gnu_ld_interface=yes
15215 ;;
15216 esac
15217 fi
15218
15219 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000015220 # If archive_cmds runs LD, not CC, wlarc should be empty
15221 wlarc='${wl}'
15222
15223 # Set some defaults for GNU ld with shared library support. These
15224 # are reset later if shared libraries are not supported. Putting them
15225 # here allows them to be overridden if necessary.
15226 runpath_var=LD_RUN_PATH
15227 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15228 export_dynamic_flag_spec='${wl}--export-dynamic'
15229 # ancient GNU ld didn't support --whole-archive et. al.
15230 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15231 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15232 else
15233 whole_archive_flag_spec=
15234 fi
15235 supports_anon_versioning=no
15236 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000015237 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000015238 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15239 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15240 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15241 *\ 2.11.*) ;; # other 2.11 versions
15242 *) supports_anon_versioning=yes ;;
15243 esac
15244
15245 # See if GNU ld supports shared libraries.
15246 case $host_os in
15247 aix[3-9]*)
15248 # On AIX/PPC, the GNU linker is very broken
15249 if test "$host_cpu" != ia64; then
15250 ld_shlibs=no
15251 cat <<_LT_EOF 1>&2
15252
cristy0c60a692010-11-04 01:09:47 +000015253*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000015254*** to be unable to reliably create shared libraries on AIX.
15255*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000015256*** really care for shared libraries, you may want to install binutils
15257*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15258*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000015259
15260_LT_EOF
15261 fi
15262 ;;
15263
15264 amigaos*)
15265 case $host_cpu in
15266 powerpc)
15267 # see comment about AmigaOS4 .so support
15268 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15269 archive_expsym_cmds=''
15270 ;;
15271 m68k)
15272 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)'
15273 hardcode_libdir_flag_spec='-L$libdir'
15274 hardcode_minus_L=yes
15275 ;;
15276 esac
15277 ;;
15278
15279 beos*)
15280 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15281 allow_undefined_flag=unsupported
15282 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15283 # support --undefined. This deserves some investigation. FIXME
15284 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15285 else
15286 ld_shlibs=no
15287 fi
15288 ;;
15289
15290 cygwin* | mingw* | pw32* | cegcc*)
15291 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15292 # as there is no search path for DLLs.
15293 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000015294 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000015295 allow_undefined_flag=unsupported
15296 always_export_symbols=no
15297 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000015298 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'
15299 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 +000015300
15301 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15302 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15303 # If the export-symbols file already is a .def file (1st line
15304 # is EXPORTS), use it as is; otherwise, prepend...
15305 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15306 cp $export_symbols $output_objdir/$soname.def;
15307 else
15308 echo EXPORTS > $output_objdir/$soname.def;
15309 cat $export_symbols >> $output_objdir/$soname.def;
15310 fi~
15311 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15312 else
15313 ld_shlibs=no
15314 fi
15315 ;;
15316
cristy0c60a692010-11-04 01:09:47 +000015317 haiku*)
15318 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15319 link_all_deplibs=yes
15320 ;;
15321
cristy73bd4a52010-10-05 11:24:23 +000015322 interix[3-9]*)
15323 hardcode_direct=no
15324 hardcode_shlibpath_var=no
15325 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15326 export_dynamic_flag_spec='${wl}-E'
15327 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15328 # Instead, shared libraries are loaded at an image base (0x10000000 by
15329 # default) and relocated if they conflict, which is a slow very memory
15330 # consuming and fragmenting process. To avoid this, we pick a random,
15331 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15332 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15333 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15334 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'
15335 ;;
15336
cristy0c60a692010-11-04 01:09:47 +000015337 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000015338 tmp_diet=no
15339 if test "$host_os" = linux-dietlibc; then
15340 case $cc_basename in
15341 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15342 esac
15343 fi
15344 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15345 && test "$tmp_diet" = no
15346 then
cristyda16f162011-02-19 23:52:17 +000015347 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000015348 tmp_sharedflag='-shared'
15349 case $cc_basename,$host_cpu in
15350 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000015351 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 +000015352 tmp_addflag=' $pic_flag'
15353 ;;
cristy0c60a692010-11-04 01:09:47 +000015354 pgf77* | pgf90* | pgf95* | pgfortran*)
15355 # Portland Group f77 and f90 compilers
15356 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 +000015357 tmp_addflag=' $pic_flag -Mnomain' ;;
15358 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15359 tmp_addflag=' -i_dynamic' ;;
15360 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15361 tmp_addflag=' -i_dynamic -nofor_main' ;;
15362 ifc* | ifort*) # Intel Fortran compiler
15363 tmp_addflag=' -nofor_main' ;;
15364 lf95*) # Lahey Fortran 8.1
15365 whole_archive_flag_spec=
15366 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000015367 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000015368 tmp_sharedflag='-qmkshrobj'
15369 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000015370 nvcc*) # Cuda Compiler Driver 2.2
15371 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'
15372 compiler_needs_object=yes
15373 ;;
cristy73bd4a52010-10-05 11:24:23 +000015374 esac
15375 case `$CC -V 2>&1 | sed 5q` in
15376 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000015377 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 +000015378 compiler_needs_object=yes
15379 tmp_sharedflag='-G' ;;
15380 *Sun\ F*) # Sun Fortran 8.3
15381 tmp_sharedflag='-G' ;;
15382 esac
15383 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15384
15385 if test "x$supports_anon_versioning" = xyes; then
15386 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15387 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15388 echo "local: *; };" >> $output_objdir/$libname.ver~
15389 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15390 fi
15391
15392 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000015393 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000015394 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15395 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
cristy99bd5232011-12-07 14:38:20 +000015396 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cristy0c60a692010-11-04 01:09:47 +000015397 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015398 if test "x$supports_anon_versioning" = xyes; then
15399 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15400 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15401 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000015402 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015403 fi
15404 ;;
15405 esac
15406 else
15407 ld_shlibs=no
15408 fi
15409 ;;
15410
15411 netbsd*)
15412 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15413 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15414 wlarc=
15415 else
cristyda16f162011-02-19 23:52:17 +000015416 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15417 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 +000015418 fi
15419 ;;
15420
15421 solaris*)
15422 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15423 ld_shlibs=no
15424 cat <<_LT_EOF 1>&2
15425
15426*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15427*** create shared libraries on Solaris systems. Therefore, libtool
15428*** is disabling shared libraries support. We urge you to upgrade GNU
15429*** binutils to release 2.9.1 or newer. Another option is to modify
15430*** your PATH or compiler configuration so that the native linker is
15431*** used, and then restart.
15432
15433_LT_EOF
15434 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000015435 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15436 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 +000015437 else
15438 ld_shlibs=no
15439 fi
15440 ;;
15441
15442 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15443 case `$LD -v 2>&1` in
15444 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15445 ld_shlibs=no
15446 cat <<_LT_EOF 1>&2
15447
15448*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15449*** reliably create shared libraries on SCO systems. Therefore, libtool
15450*** is disabling shared libraries support. We urge you to upgrade GNU
15451*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15452*** your PATH or compiler configuration so that the native linker is
15453*** used, and then restart.
15454
15455_LT_EOF
15456 ;;
15457 *)
15458 # For security reasons, it is highly recommended that you always
15459 # use absolute paths for naming shared libraries, and exclude the
15460 # DT_RUNPATH tag from executables and libraries. But doing so
15461 # requires that you compile everything twice, which is a pain.
15462 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15463 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15464 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15465 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15466 else
15467 ld_shlibs=no
15468 fi
15469 ;;
15470 esac
15471 ;;
15472
15473 sunos4*)
15474 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15475 wlarc=
15476 hardcode_direct=yes
15477 hardcode_shlibpath_var=no
15478 ;;
15479
15480 *)
15481 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000015482 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15483 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 +000015484 else
15485 ld_shlibs=no
15486 fi
15487 ;;
15488 esac
15489
15490 if test "$ld_shlibs" = no; then
15491 runpath_var=
15492 hardcode_libdir_flag_spec=
15493 export_dynamic_flag_spec=
15494 whole_archive_flag_spec=
15495 fi
15496 else
15497 # PORTME fill in a description of your system's linker (not GNU ld)
15498 case $host_os in
15499 aix3*)
15500 allow_undefined_flag=unsupported
15501 always_export_symbols=yes
15502 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'
15503 # Note: this linker hardcodes the directories in LIBPATH if there
15504 # are no directories specified by -L.
15505 hardcode_minus_L=yes
15506 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15507 # Neither direct hardcoding nor static linking is supported with a
15508 # broken collect2.
15509 hardcode_direct=unsupported
15510 fi
15511 ;;
15512
15513 aix[4-9]*)
15514 if test "$host_cpu" = ia64; then
15515 # On IA64, the linker does run time linking by default, so we don't
15516 # have to do anything special.
15517 aix_use_runtimelinking=no
15518 exp_sym_flag='-Bexport'
15519 no_entry_flag=""
15520 else
15521 # If we're using GNU nm, then we don't want the "-C" option.
15522 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000015523 # Also, AIX nm treats weak defined symbols like other global
15524 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000015525 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000015526 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 +000015527 else
15528 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'
15529 fi
15530 aix_use_runtimelinking=no
15531
15532 # Test if we are trying to use run time linking or normal
15533 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15534 # need to do runtime linking.
15535 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15536 for ld_flag in $LDFLAGS; do
15537 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15538 aix_use_runtimelinking=yes
15539 break
15540 fi
15541 done
15542 ;;
15543 esac
15544
15545 exp_sym_flag='-bexport'
15546 no_entry_flag='-bnoentry'
15547 fi
15548
15549 # When large executables or shared objects are built, AIX ld can
15550 # have problems creating the table of contents. If linking a library
15551 # or program results in "error TOC overflow" add -mminimal-toc to
15552 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15553 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15554
15555 archive_cmds=''
15556 hardcode_direct=yes
15557 hardcode_direct_absolute=yes
15558 hardcode_libdir_separator=':'
15559 link_all_deplibs=yes
15560 file_list_spec='${wl}-f,'
15561
15562 if test "$GCC" = yes; then
15563 case $host_os in aix4.[012]|aix4.[012].*)
15564 # We only want to do this on AIX 4.2 and lower, the check
15565 # below for broken collect2 doesn't work under 4.3+
15566 collect2name=`${CC} -print-prog-name=collect2`
15567 if test -f "$collect2name" &&
15568 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15569 then
15570 # We have reworked collect2
15571 :
15572 else
15573 # We have old collect2
15574 hardcode_direct=unsupported
15575 # It fails to find uninstalled libraries when the uninstalled
15576 # path is not listed in the libpath. Setting hardcode_minus_L
15577 # to unsupported forces relinking
15578 hardcode_minus_L=yes
15579 hardcode_libdir_flag_spec='-L$libdir'
15580 hardcode_libdir_separator=
15581 fi
15582 ;;
15583 esac
15584 shared_flag='-shared'
15585 if test "$aix_use_runtimelinking" = yes; then
15586 shared_flag="$shared_flag "'${wl}-G'
15587 fi
15588 else
15589 # not using gcc
15590 if test "$host_cpu" = ia64; then
15591 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15592 # chokes on -Wl,-G. The following line is correct:
15593 shared_flag='-G'
15594 else
15595 if test "$aix_use_runtimelinking" = yes; then
15596 shared_flag='${wl}-G'
15597 else
15598 shared_flag='${wl}-bM:SRE'
15599 fi
15600 fi
15601 fi
15602
15603 export_dynamic_flag_spec='${wl}-bexpall'
15604 # It seems that -bexpall does not export symbols beginning with
15605 # underscore (_), so it is better to generate a list of symbols to export.
15606 always_export_symbols=yes
15607 if test "$aix_use_runtimelinking" = yes; then
15608 # Warning - without using the other runtime loading flags (-brtl),
15609 # -berok will link without error, but may produce a broken library.
15610 allow_undefined_flag='-berok'
15611 # Determine the default libpath from the value encoded in an
15612 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015613 if test "${lt_cv_aix_libpath+set}" = set; then
15614 aix_libpath=$lt_cv_aix_libpath
15615else
15616 if ${lt_cv_aix_libpath_+:} false; then :
15617 $as_echo_n "(cached) " >&6
15618else
15619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015620/* end confdefs.h. */
15621
15622int
15623main ()
15624{
15625
15626 ;
15627 return 0;
15628}
15629_ACEOF
15630if ac_fn_c_try_link "$LINENO"; then :
15631
cristyda16f162011-02-19 23:52:17 +000015632 lt_aix_libpath_sed='
15633 /Import File Strings/,/^$/ {
15634 /^0/ {
15635 s/^0 *\([^ ]*\) *$/\1/
15636 p
15637 }
15638 }'
15639 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15640 # Check for a 64-bit object if we didn't find anything.
15641 if test -z "$lt_cv_aix_libpath_"; then
15642 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15643 fi
cristy73bd4a52010-10-05 11:24:23 +000015644fi
15645rm -f core conftest.err conftest.$ac_objext \
15646 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015647 if test -z "$lt_cv_aix_libpath_"; then
15648 lt_cv_aix_libpath_="/usr/lib:/lib"
15649 fi
15650
15651fi
15652
15653 aix_libpath=$lt_cv_aix_libpath_
15654fi
cristy73bd4a52010-10-05 11:24:23 +000015655
15656 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000015657 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 +000015658 else
15659 if test "$host_cpu" = ia64; then
15660 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15661 allow_undefined_flag="-z nodefs"
15662 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"
15663 else
15664 # Determine the default libpath from the value encoded in an
15665 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015666 if test "${lt_cv_aix_libpath+set}" = set; then
15667 aix_libpath=$lt_cv_aix_libpath
15668else
15669 if ${lt_cv_aix_libpath_+:} false; then :
15670 $as_echo_n "(cached) " >&6
15671else
15672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015673/* end confdefs.h. */
15674
15675int
15676main ()
15677{
15678
15679 ;
15680 return 0;
15681}
15682_ACEOF
15683if ac_fn_c_try_link "$LINENO"; then :
15684
cristyda16f162011-02-19 23:52:17 +000015685 lt_aix_libpath_sed='
15686 /Import File Strings/,/^$/ {
15687 /^0/ {
15688 s/^0 *\([^ ]*\) *$/\1/
15689 p
15690 }
15691 }'
15692 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15693 # Check for a 64-bit object if we didn't find anything.
15694 if test -z "$lt_cv_aix_libpath_"; then
15695 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15696 fi
cristy73bd4a52010-10-05 11:24:23 +000015697fi
15698rm -f core conftest.err conftest.$ac_objext \
15699 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015700 if test -z "$lt_cv_aix_libpath_"; then
15701 lt_cv_aix_libpath_="/usr/lib:/lib"
15702 fi
15703
15704fi
15705
15706 aix_libpath=$lt_cv_aix_libpath_
15707fi
cristy73bd4a52010-10-05 11:24:23 +000015708
15709 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15710 # Warning - without using the other run time loading flags,
15711 # -berok will link without error, but may produce a broken library.
15712 no_undefined_flag=' ${wl}-bernotok'
15713 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000015714 if test "$with_gnu_ld" = yes; then
15715 # We only use this code for GNU lds that support --whole-archive.
15716 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15717 else
15718 # Exported symbols can be pulled into shared objects from archives
15719 whole_archive_flag_spec='$convenience'
15720 fi
cristy73bd4a52010-10-05 11:24:23 +000015721 archive_cmds_need_lc=yes
15722 # This is similar to how AIX traditionally builds its shared libraries.
15723 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'
15724 fi
15725 fi
15726 ;;
15727
15728 amigaos*)
15729 case $host_cpu in
15730 powerpc)
15731 # see comment about AmigaOS4 .so support
15732 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15733 archive_expsym_cmds=''
15734 ;;
15735 m68k)
15736 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)'
15737 hardcode_libdir_flag_spec='-L$libdir'
15738 hardcode_minus_L=yes
15739 ;;
15740 esac
15741 ;;
15742
15743 bsdi[45]*)
15744 export_dynamic_flag_spec=-rdynamic
15745 ;;
15746
15747 cygwin* | mingw* | pw32* | cegcc*)
15748 # When not using gcc, we currently assume that we are using
15749 # Microsoft Visual C++.
15750 # hardcode_libdir_flag_spec is actually meaningless, as there is
15751 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000015752 case $cc_basename in
15753 cl*)
15754 # Native MSVC
15755 hardcode_libdir_flag_spec=' '
15756 allow_undefined_flag=unsupported
15757 always_export_symbols=yes
15758 file_list_spec='@'
15759 # Tell ltmain to make .lib files, not .a files.
15760 libext=lib
15761 # Tell ltmain to make .dll files, not .so files.
15762 shrext_cmds=".dll"
15763 # FIXME: Setting linknames here is a bad hack.
15764 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15765 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15766 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15767 else
15768 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15769 fi~
15770 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15771 linknames='
15772 # The linker will not automatically build a static lib if we build a DLL.
15773 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15774 enable_shared_with_static_runtimes=yes
cristy99bd5232011-12-07 14:38:20 +000015775 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
cristyda16f162011-02-19 23:52:17 +000015776 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15777 # Don't use ranlib
15778 old_postinstall_cmds='chmod 644 $oldlib'
15779 postlink_cmds='lt_outputfile="@OUTPUT@"~
15780 lt_tool_outputfile="@TOOL_OUTPUT@"~
15781 case $lt_outputfile in
15782 *.exe|*.EXE) ;;
15783 *)
15784 lt_outputfile="$lt_outputfile.exe"
15785 lt_tool_outputfile="$lt_tool_outputfile.exe"
15786 ;;
15787 esac~
15788 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15789 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15790 $RM "$lt_outputfile.manifest";
15791 fi'
15792 ;;
15793 *)
15794 # Assume MSVC wrapper
15795 hardcode_libdir_flag_spec=' '
15796 allow_undefined_flag=unsupported
15797 # Tell ltmain to make .lib files, not .a files.
15798 libext=lib
15799 # Tell ltmain to make .dll files, not .so files.
15800 shrext_cmds=".dll"
15801 # FIXME: Setting linknames here is a bad hack.
15802 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15803 # The linker will automatically build a .lib file if we build a DLL.
15804 old_archive_from_new_cmds='true'
15805 # FIXME: Should let the user specify the lib program.
15806 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15807 enable_shared_with_static_runtimes=yes
15808 ;;
15809 esac
cristy73bd4a52010-10-05 11:24:23 +000015810 ;;
15811
15812 darwin* | rhapsody*)
15813
15814
15815 archive_cmds_need_lc=no
15816 hardcode_direct=no
15817 hardcode_automatic=yes
15818 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000015819 if test "$lt_cv_ld_force_load" = "yes"; then
15820 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 +000015821
cristy0c60a692010-11-04 01:09:47 +000015822 else
15823 whole_archive_flag_spec=''
15824 fi
cristy73bd4a52010-10-05 11:24:23 +000015825 link_all_deplibs=yes
15826 allow_undefined_flag="$_lt_dar_allow_undefined"
15827 case $cc_basename in
15828 ifort*) _lt_dar_can_shared=yes ;;
15829 *) _lt_dar_can_shared=$GCC ;;
15830 esac
15831 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000015832 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000015833 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15834 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15835 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}"
15836 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}"
15837
15838 else
15839 ld_shlibs=no
15840 fi
15841
15842 ;;
15843
15844 dgux*)
15845 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15846 hardcode_libdir_flag_spec='-L$libdir'
15847 hardcode_shlibpath_var=no
15848 ;;
15849
cristy73bd4a52010-10-05 11:24:23 +000015850 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15851 # support. Future versions do this automatically, but an explicit c++rt0.o
15852 # does not break anything, and helps significantly (at the cost of a little
15853 # extra space).
15854 freebsd2.2*)
15855 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15856 hardcode_libdir_flag_spec='-R$libdir'
15857 hardcode_direct=yes
15858 hardcode_shlibpath_var=no
15859 ;;
15860
15861 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
cristy99bd5232011-12-07 14:38:20 +000015862 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000015863 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15864 hardcode_direct=yes
15865 hardcode_minus_L=yes
15866 hardcode_shlibpath_var=no
15867 ;;
15868
15869 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15870 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000015871 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015872 hardcode_libdir_flag_spec='-R$libdir'
15873 hardcode_direct=yes
15874 hardcode_shlibpath_var=no
15875 ;;
15876
15877 hpux9*)
15878 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015879 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 +000015880 else
15881 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'
15882 fi
15883 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15884 hardcode_libdir_separator=:
15885 hardcode_direct=yes
15886
15887 # hardcode_minus_L: Not really in the search PATH,
15888 # but as the default location of the library.
15889 hardcode_minus_L=yes
15890 export_dynamic_flag_spec='${wl}-E'
15891 ;;
15892
15893 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000015894 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000015895 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 +000015896 else
15897 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15898 fi
15899 if test "$with_gnu_ld" = no; then
15900 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cristy73bd4a52010-10-05 11:24:23 +000015901 hardcode_libdir_separator=:
15902 hardcode_direct=yes
15903 hardcode_direct_absolute=yes
15904 export_dynamic_flag_spec='${wl}-E'
15905 # hardcode_minus_L: Not really in the search PATH,
15906 # but as the default location of the library.
15907 hardcode_minus_L=yes
15908 fi
15909 ;;
15910
15911 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000015912 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000015913 case $host_cpu in
15914 hppa*64*)
15915 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15916 ;;
15917 ia64*)
cristyda16f162011-02-19 23:52:17 +000015918 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015919 ;;
15920 *)
cristyda16f162011-02-19 23:52:17 +000015921 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 +000015922 ;;
15923 esac
15924 else
15925 case $host_cpu in
15926 hppa*64*)
15927 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15928 ;;
15929 ia64*)
15930 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15931 ;;
15932 *)
cristy0c60a692010-11-04 01:09:47 +000015933
15934 # Older versions of the 11.00 compiler do not understand -b yet
15935 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15937$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015938if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015939 $as_echo_n "(cached) " >&6
15940else
15941 lt_cv_prog_compiler__b=no
15942 save_LDFLAGS="$LDFLAGS"
15943 LDFLAGS="$LDFLAGS -b"
15944 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15945 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15946 # The linker can only warn and ignore the option if not recognized
15947 # So say no if there are warnings
15948 if test -s conftest.err; then
15949 # Append any errors to the config.log.
15950 cat conftest.err 1>&5
15951 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15952 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15953 if diff conftest.exp conftest.er2 >/dev/null; then
15954 lt_cv_prog_compiler__b=yes
15955 fi
15956 else
15957 lt_cv_prog_compiler__b=yes
15958 fi
15959 fi
15960 $RM -r conftest*
15961 LDFLAGS="$save_LDFLAGS"
15962
15963fi
15964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15965$as_echo "$lt_cv_prog_compiler__b" >&6; }
15966
15967if test x"$lt_cv_prog_compiler__b" = xyes; then
15968 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15969else
15970 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15971fi
15972
cristy73bd4a52010-10-05 11:24:23 +000015973 ;;
15974 esac
15975 fi
15976 if test "$with_gnu_ld" = no; then
15977 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15978 hardcode_libdir_separator=:
15979
15980 case $host_cpu in
15981 hppa*64*|ia64*)
15982 hardcode_direct=no
15983 hardcode_shlibpath_var=no
15984 ;;
15985 *)
15986 hardcode_direct=yes
15987 hardcode_direct_absolute=yes
15988 export_dynamic_flag_spec='${wl}-E'
15989
15990 # hardcode_minus_L: Not really in the search PATH,
15991 # but as the default location of the library.
15992 hardcode_minus_L=yes
15993 ;;
15994 esac
15995 fi
15996 ;;
15997
15998 irix5* | irix6* | nonstopux*)
15999 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000016000 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 +000016001 # Try to use the -exported_symbol ld option, if it does not
16002 # work, assume that -exports_file does not work either and
16003 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000016004 # This should be the same for all languages, so no per-tag cache variable.
16005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
16006$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
16007if ${lt_cv_irix_exported_symbol+:} false; then :
16008 $as_echo_n "(cached) " >&6
16009else
16010 save_LDFLAGS="$LDFLAGS"
16011 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016013/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000016014int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000016015_ACEOF
16016if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000016017 lt_cv_irix_exported_symbol=yes
16018else
16019 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000016020fi
16021rm -f core conftest.err conftest.$ac_objext \
16022 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000016023 LDFLAGS="$save_LDFLAGS"
16024fi
16025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
16026$as_echo "$lt_cv_irix_exported_symbol" >&6; }
16027 if test "$lt_cv_irix_exported_symbol" = yes; then
16028 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'
16029 fi
cristy73bd4a52010-10-05 11:24:23 +000016030 else
cristy0c60a692010-11-04 01:09:47 +000016031 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'
16032 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 +000016033 fi
16034 archive_cmds_need_lc='no'
16035 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16036 hardcode_libdir_separator=:
16037 inherit_rpath=yes
16038 link_all_deplibs=yes
16039 ;;
16040
16041 netbsd*)
16042 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16043 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16044 else
16045 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16046 fi
16047 hardcode_libdir_flag_spec='-R$libdir'
16048 hardcode_direct=yes
16049 hardcode_shlibpath_var=no
16050 ;;
16051
16052 newsos6)
16053 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16054 hardcode_direct=yes
16055 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16056 hardcode_libdir_separator=:
16057 hardcode_shlibpath_var=no
16058 ;;
16059
16060 *nto* | *qnx*)
16061 ;;
16062
16063 openbsd*)
16064 if test -f /usr/libexec/ld.so; then
16065 hardcode_direct=yes
16066 hardcode_shlibpath_var=no
16067 hardcode_direct_absolute=yes
16068 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16069 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16070 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16071 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16072 export_dynamic_flag_spec='${wl}-E'
16073 else
16074 case $host_os in
16075 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16076 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16077 hardcode_libdir_flag_spec='-R$libdir'
16078 ;;
16079 *)
16080 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16081 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16082 ;;
16083 esac
16084 fi
16085 else
16086 ld_shlibs=no
16087 fi
16088 ;;
16089
16090 os2*)
16091 hardcode_libdir_flag_spec='-L$libdir'
16092 hardcode_minus_L=yes
16093 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000016094 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 +000016095 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16096 ;;
16097
16098 osf3*)
16099 if test "$GCC" = yes; then
16100 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000016101 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 +000016102 else
16103 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000016104 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 +000016105 fi
16106 archive_cmds_need_lc='no'
16107 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16108 hardcode_libdir_separator=:
16109 ;;
16110
16111 osf4* | osf5*) # as osf3* with the addition of -msym flag
16112 if test "$GCC" = yes; then
16113 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000016114 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 +000016115 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16116 else
16117 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000016118 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 +000016119 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 +000016120 $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 +000016121
16122 # Both c and cxx compiler support -rpath directly
16123 hardcode_libdir_flag_spec='-rpath $libdir'
16124 fi
16125 archive_cmds_need_lc='no'
16126 hardcode_libdir_separator=:
16127 ;;
16128
16129 solaris*)
16130 no_undefined_flag=' -z defs'
16131 if test "$GCC" = yes; then
16132 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000016133 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 +000016134 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 +000016135 $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 +000016136 else
16137 case `$CC -V 2>&1` in
16138 *"Compilers 5.0"*)
16139 wlarc=''
16140 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16141 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16142 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16143 ;;
16144 *)
16145 wlarc='${wl}'
16146 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16147 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16148 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16149 ;;
16150 esac
16151 fi
16152 hardcode_libdir_flag_spec='-R$libdir'
16153 hardcode_shlibpath_var=no
16154 case $host_os in
16155 solaris2.[0-5] | solaris2.[0-5].*) ;;
16156 *)
16157 # The compiler driver will combine and reorder linker options,
16158 # but understands `-z linker_flag'. GCC discards it without `$wl',
16159 # but is careful enough not to reorder.
16160 # Supported since Solaris 2.6 (maybe 2.5.1?)
16161 if test "$GCC" = yes; then
16162 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16163 else
16164 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16165 fi
16166 ;;
16167 esac
16168 link_all_deplibs=yes
16169 ;;
16170
16171 sunos4*)
16172 if test "x$host_vendor" = xsequent; then
16173 # Use $CC to link under sequent, because it throws in some extra .o
16174 # files that make .init and .fini sections work.
16175 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16176 else
16177 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16178 fi
16179 hardcode_libdir_flag_spec='-L$libdir'
16180 hardcode_direct=yes
16181 hardcode_minus_L=yes
16182 hardcode_shlibpath_var=no
16183 ;;
16184
16185 sysv4)
16186 case $host_vendor in
16187 sni)
16188 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16189 hardcode_direct=yes # is this really true???
16190 ;;
16191 siemens)
16192 ## LD is ld it makes a PLAMLIB
16193 ## CC just makes a GrossModule.
16194 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16195 reload_cmds='$CC -r -o $output$reload_objs'
16196 hardcode_direct=no
16197 ;;
16198 motorola)
16199 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16200 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16201 ;;
16202 esac
16203 runpath_var='LD_RUN_PATH'
16204 hardcode_shlibpath_var=no
16205 ;;
16206
16207 sysv4.3*)
16208 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16209 hardcode_shlibpath_var=no
16210 export_dynamic_flag_spec='-Bexport'
16211 ;;
16212
16213 sysv4*MP*)
16214 if test -d /usr/nec; then
16215 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16216 hardcode_shlibpath_var=no
16217 runpath_var=LD_RUN_PATH
16218 hardcode_runpath_var=yes
16219 ld_shlibs=yes
16220 fi
16221 ;;
16222
16223 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16224 no_undefined_flag='${wl}-z,text'
16225 archive_cmds_need_lc=no
16226 hardcode_shlibpath_var=no
16227 runpath_var='LD_RUN_PATH'
16228
16229 if test "$GCC" = yes; then
16230 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16231 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16232 else
16233 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16234 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16235 fi
16236 ;;
16237
16238 sysv5* | sco3.2v5* | sco5v6*)
16239 # Note: We can NOT use -z defs as we might desire, because we do not
16240 # link with -lc, and that would cause any symbols used from libc to
16241 # always be unresolved, which means just about no library would
16242 # ever link correctly. If we're not using GNU ld we use -z text
16243 # though, which does catch some bad symbols but isn't as heavy-handed
16244 # as -z defs.
16245 no_undefined_flag='${wl}-z,text'
16246 allow_undefined_flag='${wl}-z,nodefs'
16247 archive_cmds_need_lc=no
16248 hardcode_shlibpath_var=no
16249 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16250 hardcode_libdir_separator=':'
16251 link_all_deplibs=yes
16252 export_dynamic_flag_spec='${wl}-Bexport'
16253 runpath_var='LD_RUN_PATH'
16254
16255 if test "$GCC" = yes; then
16256 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16257 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16258 else
16259 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16260 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16261 fi
16262 ;;
16263
16264 uts4*)
16265 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16266 hardcode_libdir_flag_spec='-L$libdir'
16267 hardcode_shlibpath_var=no
16268 ;;
16269
16270 *)
16271 ld_shlibs=no
16272 ;;
16273 esac
16274
16275 if test x$host_vendor = xsni; then
16276 case $host in
16277 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16278 export_dynamic_flag_spec='${wl}-Blargedynsym'
16279 ;;
16280 esac
16281 fi
16282 fi
16283
16284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16285$as_echo "$ld_shlibs" >&6; }
16286test "$ld_shlibs" = no && can_build_shared=no
16287
16288with_gnu_ld=$with_gnu_ld
16289
16290
16291
16292
16293
16294
16295
16296
16297
16298
16299
16300
16301
16302
16303
16304#
16305# Do we need to explicitly link libc?
16306#
16307case "x$archive_cmds_need_lc" in
16308x|xyes)
16309 # Assume -lc should be added
16310 archive_cmds_need_lc=yes
16311
16312 if test "$enable_shared" = yes && test "$GCC" = yes; then
16313 case $archive_cmds in
16314 *'~'*)
16315 # FIXME: we may have to deal with multi-command sequences.
16316 ;;
16317 '$CC '*)
16318 # Test whether the compiler implicitly links with -lc since on some
16319 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16320 # to ld, don't add -lc before -lgcc.
16321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16322$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016323if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016324 $as_echo_n "(cached) " >&6
16325else
16326 $RM conftest*
16327 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016328
cristy0c60a692010-11-04 01:09:47 +000016329 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000016330 (eval $ac_compile) 2>&5
16331 ac_status=$?
16332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16333 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000016334 soname=conftest
16335 lib=conftest
16336 libobjs=conftest.$ac_objext
16337 deplibs=
16338 wl=$lt_prog_compiler_wl
16339 pic_flag=$lt_prog_compiler_pic
16340 compiler_flags=-v
16341 linker_flags=-v
16342 verstring=
16343 output_objdir=.
16344 libname=conftest
16345 lt_save_allow_undefined_flag=$allow_undefined_flag
16346 allow_undefined_flag=
16347 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 +000016348 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16349 ac_status=$?
16350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16351 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000016352 then
16353 lt_cv_archive_cmds_need_lc=no
16354 else
16355 lt_cv_archive_cmds_need_lc=yes
16356 fi
16357 allow_undefined_flag=$lt_save_allow_undefined_flag
16358 else
16359 cat conftest.err 1>&5
16360 fi
16361 $RM conftest*
16362
16363fi
16364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16365$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16366 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000016367 ;;
16368 esac
16369 fi
16370 ;;
16371esac
16372
16373
16374
16375
16376
16377
16378
16379
16380
16381
16382
16383
16384
16385
16386
16387
16388
16389
16390
16391
16392
16393
16394
16395
16396
16397
16398
16399
16400
16401
16402
16403
16404
16405
16406
16407
16408
16409
16410
16411
16412
16413
16414
16415
16416
16417
16418
16419
16420
16421
16422
16423
16424
16425
16426
16427
16428
16429
16430
16431
16432
16433
16434
16435
16436
16437
16438
16439
16440
16441
16442
16443
16444
16445
16446
16447
16448
16449
16450
16451
16452
16453
16454
16455
16456
16457
16458
16459
16460
16461
16462
16463
16464
16465
16466
16467
16468
16469
16470
16471
16472
16473
16474
16475
16476
16477
16478
16479
16480
16481
16482
16483
16484
16485
16486
16487
16488
16489
16490
16491
16492
16493
16494
16495
16496
16497
16498
16499
16500
16501
16502
16503
16504
16505
16506
16507
16508
16509
16510
16511
16512
16513
16514
16515
16516
16517
16518
16519
16520
16521
16522
16523
cristy73bd4a52010-10-05 11:24:23 +000016524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16525$as_echo_n "checking dynamic linker characteristics... " >&6; }
16526
16527if test "$GCC" = yes; then
16528 case $host_os in
16529 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16530 *) lt_awk_arg="/^libraries:/" ;;
16531 esac
cristy0c60a692010-11-04 01:09:47 +000016532 case $host_os in
16533 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16534 *) lt_sed_strip_eq="s,=/,/,g" ;;
16535 esac
16536 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16537 case $lt_search_path_spec in
16538 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000016539 # if the path contains ";" then we assume it to be the separator
16540 # otherwise default to the standard path separator (i.e. ":") - it is
16541 # assumed that no part of a normal pathname contains ";" but that should
16542 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000016543 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16544 ;;
16545 *)
16546 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16547 ;;
16548 esac
cristy73bd4a52010-10-05 11:24:23 +000016549 # Ok, now we have the path, separated by spaces, we can step through it
16550 # and add multilib dir if necessary.
16551 lt_tmp_lt_search_path_spec=
16552 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16553 for lt_sys_path in $lt_search_path_spec; do
16554 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16555 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16556 else
16557 test -d "$lt_sys_path" && \
16558 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16559 fi
16560 done
cristy0c60a692010-11-04 01:09:47 +000016561 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000016562BEGIN {RS=" "; FS="/|\n";} {
16563 lt_foo="";
16564 lt_count=0;
16565 for (lt_i = NF; lt_i > 0; lt_i--) {
16566 if ($lt_i != "" && $lt_i != ".") {
16567 if ($lt_i == "..") {
16568 lt_count++;
16569 } else {
16570 if (lt_count == 0) {
16571 lt_foo="/" $lt_i lt_foo;
16572 } else {
16573 lt_count--;
16574 }
16575 }
16576 }
16577 }
16578 if (lt_foo != "") { lt_freq[lt_foo]++; }
16579 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16580}'`
cristy0c60a692010-11-04 01:09:47 +000016581 # AWK program above erroneously prepends '/' to C:/dos/paths
16582 # for these hosts.
16583 case $host_os in
16584 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16585 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16586 esac
16587 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000016588else
16589 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16590fi
16591library_names_spec=
16592libname_spec='lib$name'
16593soname_spec=
16594shrext_cmds=".so"
16595postinstall_cmds=
16596postuninstall_cmds=
16597finish_cmds=
16598finish_eval=
16599shlibpath_var=
16600shlibpath_overrides_runpath=unknown
16601version_type=none
16602dynamic_linker="$host_os ld.so"
16603sys_lib_dlsearch_path_spec="/lib /usr/lib"
16604need_lib_prefix=unknown
16605hardcode_into_libs=no
16606
16607# when you set need_version to no, make sure it does not cause -set_version
16608# flags to be left without arguments
16609need_version=unknown
16610
16611case $host_os in
16612aix3*)
cristy99bd5232011-12-07 14:38:20 +000016613 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016614 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16615 shlibpath_var=LIBPATH
16616
16617 # AIX 3 has no versioning support, so we append a major version to the name.
16618 soname_spec='${libname}${release}${shared_ext}$major'
16619 ;;
16620
16621aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000016622 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016623 need_lib_prefix=no
16624 need_version=no
16625 hardcode_into_libs=yes
16626 if test "$host_cpu" = ia64; then
16627 # AIX 5 supports IA64
16628 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16629 shlibpath_var=LD_LIBRARY_PATH
16630 else
16631 # With GCC up to 2.95.x, collect2 would create an import file
16632 # for dependence libraries. The import file would start with
16633 # the line `#! .'. This would cause the generated library to
16634 # depend on `.', always an invalid library. This was fixed in
16635 # development snapshots of GCC prior to 3.0.
16636 case $host_os in
16637 aix4 | aix4.[01] | aix4.[01].*)
16638 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16639 echo ' yes '
16640 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16641 :
16642 else
16643 can_build_shared=no
16644 fi
16645 ;;
16646 esac
16647 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16648 # soname into executable. Probably we can add versioning support to
16649 # collect2, so additional links can be useful in future.
16650 if test "$aix_use_runtimelinking" = yes; then
16651 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16652 # instead of lib<name>.a to let people know that these are not
16653 # typical AIX shared libraries.
16654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16655 else
16656 # We preserve .a as extension for shared libraries through AIX4.2
16657 # and later when we are not doing run time linking.
16658 library_names_spec='${libname}${release}.a $libname.a'
16659 soname_spec='${libname}${release}${shared_ext}$major'
16660 fi
16661 shlibpath_var=LIBPATH
16662 fi
16663 ;;
16664
16665amigaos*)
16666 case $host_cpu in
16667 powerpc)
16668 # Since July 2007 AmigaOS4 officially supports .so libraries.
16669 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16671 ;;
16672 m68k)
16673 library_names_spec='$libname.ixlibrary $libname.a'
16674 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000016675 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 +000016676 ;;
16677 esac
16678 ;;
16679
16680beos*)
16681 library_names_spec='${libname}${shared_ext}'
16682 dynamic_linker="$host_os ld.so"
16683 shlibpath_var=LIBRARY_PATH
16684 ;;
16685
16686bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000016687 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016688 need_version=no
16689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16690 soname_spec='${libname}${release}${shared_ext}$major'
16691 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16692 shlibpath_var=LD_LIBRARY_PATH
16693 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16694 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16695 # the default ld.so.conf also contains /usr/contrib/lib and
16696 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16697 # libtool to hard-code these into programs
16698 ;;
16699
16700cygwin* | mingw* | pw32* | cegcc*)
16701 version_type=windows
16702 shrext_cmds=".dll"
16703 need_version=no
16704 need_lib_prefix=no
16705
cristyda16f162011-02-19 23:52:17 +000016706 case $GCC,$cc_basename in
16707 yes,*)
16708 # gcc
cristy73bd4a52010-10-05 11:24:23 +000016709 library_names_spec='$libname.dll.a'
16710 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16711 postinstall_cmds='base_file=`basename \${file}`~
16712 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16713 dldir=$destdir/`dirname \$dlpath`~
16714 test -d \$dldir || mkdir -p \$dldir~
16715 $install_prog $dir/$dlname \$dldir/$dlname~
16716 chmod a+x \$dldir/$dlname~
16717 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16718 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16719 fi'
16720 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16721 dlpath=$dir/\$dldll~
16722 $RM \$dlpath'
16723 shlibpath_overrides_runpath=yes
16724
16725 case $host_os in
16726 cygwin*)
16727 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16728 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000016729
16730 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000016731 ;;
16732 mingw* | cegcc*)
16733 # MinGW DLLs use traditional 'lib' prefix
16734 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000016735 ;;
16736 pw32*)
16737 # pw32 DLLs use 'pw' prefix rather than 'lib'
16738 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16739 ;;
16740 esac
cristyda16f162011-02-19 23:52:17 +000016741 dynamic_linker='Win32 ld.exe'
16742 ;;
16743
16744 *,cl*)
16745 # Native MSVC
16746 libname_spec='$name'
16747 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16748 library_names_spec='${libname}.dll.lib'
16749
16750 case $build_os in
16751 mingw*)
16752 sys_lib_search_path_spec=
16753 lt_save_ifs=$IFS
16754 IFS=';'
16755 for lt_path in $LIB
16756 do
16757 IFS=$lt_save_ifs
16758 # Let DOS variable expansion print the short 8.3 style file name.
16759 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16760 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16761 done
16762 IFS=$lt_save_ifs
16763 # Convert to MSYS style.
16764 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16765 ;;
16766 cygwin*)
16767 # Convert to unix form, then to dos form, then back to unix form
16768 # but this time dos style (no spaces!) so that the unix form looks
16769 # like /cygdrive/c/PROGRA~1:/cygdr...
16770 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16771 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16772 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16773 ;;
16774 *)
16775 sys_lib_search_path_spec="$LIB"
16776 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16777 # It is most probably a Windows format PATH.
16778 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16779 else
16780 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16781 fi
16782 # FIXME: find the short name or the path components, as spaces are
16783 # common. (e.g. "Program Files" -> "PROGRA~1")
16784 ;;
16785 esac
16786
16787 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16788 postinstall_cmds='base_file=`basename \${file}`~
16789 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16790 dldir=$destdir/`dirname \$dlpath`~
16791 test -d \$dldir || mkdir -p \$dldir~
16792 $install_prog $dir/$dlname \$dldir/$dlname'
16793 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16794 dlpath=$dir/\$dldll~
16795 $RM \$dlpath'
16796 shlibpath_overrides_runpath=yes
16797 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000016798 ;;
16799
16800 *)
cristyda16f162011-02-19 23:52:17 +000016801 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000016802 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000016803 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000016804 ;;
16805 esac
cristy73bd4a52010-10-05 11:24:23 +000016806 # FIXME: first we should search . and the directory the executable is in
16807 shlibpath_var=PATH
16808 ;;
16809
16810darwin* | rhapsody*)
16811 dynamic_linker="$host_os dyld"
16812 version_type=darwin
16813 need_lib_prefix=no
16814 need_version=no
16815 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16816 soname_spec='${libname}${release}${major}$shared_ext'
16817 shlibpath_overrides_runpath=yes
16818 shlibpath_var=DYLD_LIBRARY_PATH
16819 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16820
16821 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16822 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16823 ;;
16824
16825dgux*)
cristy99bd5232011-12-07 14:38:20 +000016826 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016827 need_lib_prefix=no
16828 need_version=no
16829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16830 soname_spec='${libname}${release}${shared_ext}$major'
16831 shlibpath_var=LD_LIBRARY_PATH
16832 ;;
16833
cristy73bd4a52010-10-05 11:24:23 +000016834freebsd* | dragonfly*)
16835 # DragonFly does not have aout. When/if they implement a new
16836 # versioning mechanism, adjust this.
16837 if test -x /usr/bin/objformat; then
16838 objformat=`/usr/bin/objformat`
16839 else
16840 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016841 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000016842 *) objformat=elf ;;
16843 esac
16844 fi
16845 version_type=freebsd-$objformat
16846 case $version_type in
16847 freebsd-elf*)
16848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16849 need_version=no
16850 need_lib_prefix=no
16851 ;;
16852 freebsd-*)
16853 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16854 need_version=yes
16855 ;;
16856 esac
16857 shlibpath_var=LD_LIBRARY_PATH
16858 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016859 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000016860 shlibpath_overrides_runpath=yes
16861 ;;
16862 freebsd3.[01]* | freebsdelf3.[01]*)
16863 shlibpath_overrides_runpath=yes
16864 hardcode_into_libs=yes
16865 ;;
16866 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16867 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16868 shlibpath_overrides_runpath=no
16869 hardcode_into_libs=yes
16870 ;;
16871 *) # from 4.6 on, and DragonFly
16872 shlibpath_overrides_runpath=yes
16873 hardcode_into_libs=yes
16874 ;;
16875 esac
16876 ;;
16877
16878gnu*)
cristy99bd5232011-12-07 14:38:20 +000016879 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016880 need_lib_prefix=no
16881 need_version=no
16882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16883 soname_spec='${libname}${release}${shared_ext}$major'
16884 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000016885 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000016886 hardcode_into_libs=yes
16887 ;;
16888
cristy0c60a692010-11-04 01:09:47 +000016889haiku*)
cristy99bd5232011-12-07 14:38:20 +000016890 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000016891 need_lib_prefix=no
16892 need_version=no
16893 dynamic_linker="$host_os runtime_loader"
16894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16895 soname_spec='${libname}${release}${shared_ext}$major'
16896 shlibpath_var=LIBRARY_PATH
16897 shlibpath_overrides_runpath=yes
16898 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16899 hardcode_into_libs=yes
16900 ;;
16901
cristy73bd4a52010-10-05 11:24:23 +000016902hpux9* | hpux10* | hpux11*)
16903 # Give a soname corresponding to the major version so that dld.sl refuses to
16904 # link against other versions.
16905 version_type=sunos
16906 need_lib_prefix=no
16907 need_version=no
16908 case $host_cpu in
16909 ia64*)
16910 shrext_cmds='.so'
16911 hardcode_into_libs=yes
16912 dynamic_linker="$host_os dld.so"
16913 shlibpath_var=LD_LIBRARY_PATH
16914 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16916 soname_spec='${libname}${release}${shared_ext}$major'
16917 if test "X$HPUX_IA64_MODE" = X32; then
16918 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16919 else
16920 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16921 fi
16922 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16923 ;;
16924 hppa*64*)
16925 shrext_cmds='.sl'
16926 hardcode_into_libs=yes
16927 dynamic_linker="$host_os dld.sl"
16928 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16929 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16931 soname_spec='${libname}${release}${shared_ext}$major'
16932 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16933 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16934 ;;
16935 *)
16936 shrext_cmds='.sl'
16937 dynamic_linker="$host_os dld.sl"
16938 shlibpath_var=SHLIB_PATH
16939 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16941 soname_spec='${libname}${release}${shared_ext}$major'
16942 ;;
16943 esac
cristy0c60a692010-11-04 01:09:47 +000016944 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000016945 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000016946 # or fails outright, so override atomically:
16947 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000016948 ;;
16949
16950interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000016951 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016952 need_lib_prefix=no
16953 need_version=no
16954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16955 soname_spec='${libname}${release}${shared_ext}$major'
16956 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16957 shlibpath_var=LD_LIBRARY_PATH
16958 shlibpath_overrides_runpath=no
16959 hardcode_into_libs=yes
16960 ;;
16961
16962irix5* | irix6* | nonstopux*)
16963 case $host_os in
16964 nonstopux*) version_type=nonstopux ;;
16965 *)
16966 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000016967 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016968 else
16969 version_type=irix
16970 fi ;;
16971 esac
16972 need_lib_prefix=no
16973 need_version=no
16974 soname_spec='${libname}${release}${shared_ext}$major'
16975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16976 case $host_os in
16977 irix5* | nonstopux*)
16978 libsuff= shlibsuff=
16979 ;;
16980 *)
16981 case $LD in # libtool.m4 will add one of these switches to LD
16982 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16983 libsuff= shlibsuff= libmagic=32-bit;;
16984 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16985 libsuff=32 shlibsuff=N32 libmagic=N32;;
16986 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16987 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16988 *) libsuff= shlibsuff= libmagic=never-match;;
16989 esac
16990 ;;
16991 esac
16992 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16993 shlibpath_overrides_runpath=no
16994 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16995 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16996 hardcode_into_libs=yes
16997 ;;
16998
16999# No shared lib support for Linux oldld, aout, or coff.
17000linux*oldld* | linux*aout* | linux*coff*)
17001 dynamic_linker=no
17002 ;;
17003
cristy99bd5232011-12-07 14:38:20 +000017004# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000017005linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000017006 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017007 need_lib_prefix=no
17008 need_version=no
17009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17010 soname_spec='${libname}${release}${shared_ext}$major'
17011 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17012 shlibpath_var=LD_LIBRARY_PATH
17013 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000017014
cristy73bd4a52010-10-05 11:24:23 +000017015 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000017016 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000017017 $as_echo_n "(cached) " >&6
17018else
17019 lt_cv_shlibpath_overrides_runpath=no
17020 save_LDFLAGS=$LDFLAGS
17021 save_libdir=$libdir
17022 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17023 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017025/* end confdefs.h. */
17026
17027int
17028main ()
17029{
17030
17031 ;
17032 return 0;
17033}
17034_ACEOF
17035if ac_fn_c_try_link "$LINENO"; then :
17036 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000017037 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000017038fi
17039fi
17040rm -f core conftest.err conftest.$ac_objext \
17041 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017042 LDFLAGS=$save_LDFLAGS
17043 libdir=$save_libdir
17044
17045fi
17046
17047 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000017048
17049 # This implies no fast_install, which is unacceptable.
17050 # Some rework will be needed to allow for fast_install
17051 # before this can be enabled.
17052 hardcode_into_libs=yes
17053
17054 # Add ABI-specific directories to the system library path.
17055 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
17056
17057 # Append ld.so.conf contents to the search path
17058 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000017059 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 +000017060 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000017061
cristy73bd4a52010-10-05 11:24:23 +000017062 fi
17063
17064 # We used to test for /lib/ld.so.1 and disable shared libraries on
17065 # powerpc, because MkLinux only supported shared libraries with the
17066 # GNU dynamic linker. Since this was broken with cross compilers,
17067 # most powerpc-linux boxes support dynamic linking these days and
17068 # people can always --disable-shared, the test was removed, and we
17069 # assume the GNU/Linux dynamic linker is in use.
17070 dynamic_linker='GNU/Linux ld.so'
17071 ;;
17072
17073netbsd*)
17074 version_type=sunos
17075 need_lib_prefix=no
17076 need_version=no
17077 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17079 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17080 dynamic_linker='NetBSD (a.out) ld.so'
17081 else
17082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17083 soname_spec='${libname}${release}${shared_ext}$major'
17084 dynamic_linker='NetBSD ld.elf_so'
17085 fi
17086 shlibpath_var=LD_LIBRARY_PATH
17087 shlibpath_overrides_runpath=yes
17088 hardcode_into_libs=yes
17089 ;;
17090
17091newsos6)
cristy99bd5232011-12-07 14:38:20 +000017092 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17094 shlibpath_var=LD_LIBRARY_PATH
17095 shlibpath_overrides_runpath=yes
17096 ;;
17097
17098*nto* | *qnx*)
17099 version_type=qnx
17100 need_lib_prefix=no
17101 need_version=no
17102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17103 soname_spec='${libname}${release}${shared_ext}$major'
17104 shlibpath_var=LD_LIBRARY_PATH
17105 shlibpath_overrides_runpath=no
17106 hardcode_into_libs=yes
17107 dynamic_linker='ldqnx.so'
17108 ;;
17109
17110openbsd*)
17111 version_type=sunos
17112 sys_lib_dlsearch_path_spec="/usr/lib"
17113 need_lib_prefix=no
17114 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17115 case $host_os in
17116 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17117 *) need_version=no ;;
17118 esac
17119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17120 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17121 shlibpath_var=LD_LIBRARY_PATH
17122 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17123 case $host_os in
17124 openbsd2.[89] | openbsd2.[89].*)
17125 shlibpath_overrides_runpath=no
17126 ;;
17127 *)
17128 shlibpath_overrides_runpath=yes
17129 ;;
17130 esac
17131 else
17132 shlibpath_overrides_runpath=yes
17133 fi
17134 ;;
17135
17136os2*)
17137 libname_spec='$name'
17138 shrext_cmds=".dll"
17139 need_lib_prefix=no
17140 library_names_spec='$libname${shared_ext} $libname.a'
17141 dynamic_linker='OS/2 ld.exe'
17142 shlibpath_var=LIBPATH
17143 ;;
17144
17145osf3* | osf4* | osf5*)
17146 version_type=osf
17147 need_lib_prefix=no
17148 need_version=no
17149 soname_spec='${libname}${release}${shared_ext}$major'
17150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17151 shlibpath_var=LD_LIBRARY_PATH
17152 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17153 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17154 ;;
17155
17156rdos*)
17157 dynamic_linker=no
17158 ;;
17159
17160solaris*)
cristy99bd5232011-12-07 14:38:20 +000017161 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017162 need_lib_prefix=no
17163 need_version=no
17164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17165 soname_spec='${libname}${release}${shared_ext}$major'
17166 shlibpath_var=LD_LIBRARY_PATH
17167 shlibpath_overrides_runpath=yes
17168 hardcode_into_libs=yes
17169 # ldd complains unless libraries are executable
17170 postinstall_cmds='chmod +x $lib'
17171 ;;
17172
17173sunos4*)
17174 version_type=sunos
17175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17176 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17177 shlibpath_var=LD_LIBRARY_PATH
17178 shlibpath_overrides_runpath=yes
17179 if test "$with_gnu_ld" = yes; then
17180 need_lib_prefix=no
17181 fi
17182 need_version=yes
17183 ;;
17184
17185sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000017186 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17188 soname_spec='${libname}${release}${shared_ext}$major'
17189 shlibpath_var=LD_LIBRARY_PATH
17190 case $host_vendor in
17191 sni)
17192 shlibpath_overrides_runpath=no
17193 need_lib_prefix=no
17194 runpath_var=LD_RUN_PATH
17195 ;;
17196 siemens)
17197 need_lib_prefix=no
17198 ;;
17199 motorola)
17200 need_lib_prefix=no
17201 need_version=no
17202 shlibpath_overrides_runpath=no
17203 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17204 ;;
17205 esac
17206 ;;
17207
17208sysv4*MP*)
17209 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000017210 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017211 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17212 soname_spec='$libname${shared_ext}.$major'
17213 shlibpath_var=LD_LIBRARY_PATH
17214 fi
17215 ;;
17216
17217sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17218 version_type=freebsd-elf
17219 need_lib_prefix=no
17220 need_version=no
17221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17222 soname_spec='${libname}${release}${shared_ext}$major'
17223 shlibpath_var=LD_LIBRARY_PATH
17224 shlibpath_overrides_runpath=yes
17225 hardcode_into_libs=yes
17226 if test "$with_gnu_ld" = yes; then
17227 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17228 else
17229 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17230 case $host_os in
17231 sco3.2v5*)
17232 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17233 ;;
17234 esac
17235 fi
17236 sys_lib_dlsearch_path_spec='/usr/lib'
17237 ;;
17238
17239tpf*)
17240 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000017241 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017242 need_lib_prefix=no
17243 need_version=no
17244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17245 shlibpath_var=LD_LIBRARY_PATH
17246 shlibpath_overrides_runpath=no
17247 hardcode_into_libs=yes
17248 ;;
17249
17250uts4*)
cristy99bd5232011-12-07 14:38:20 +000017251 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17253 soname_spec='${libname}${release}${shared_ext}$major'
17254 shlibpath_var=LD_LIBRARY_PATH
17255 ;;
17256
17257*)
17258 dynamic_linker=no
17259 ;;
17260esac
17261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17262$as_echo "$dynamic_linker" >&6; }
17263test "$dynamic_linker" = no && can_build_shared=no
17264
17265variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17266if test "$GCC" = yes; then
17267 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17268fi
17269
17270if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17271 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17272fi
17273if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17274 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17275fi
17276
17277
17278
17279
17280
17281
17282
17283
17284
17285
17286
17287
17288
17289
17290
17291
17292
17293
17294
17295
17296
17297
17298
17299
17300
17301
17302
17303
17304
17305
17306
17307
17308
17309
17310
17311
17312
17313
17314
17315
17316
17317
17318
17319
17320
17321
17322
17323
17324
17325
17326
17327
17328
17329
17330
17331
17332
17333
17334
17335
17336
17337
17338
17339
17340
17341
17342
17343
17344
17345
17346
17347
17348
17349
17350
17351
17352
17353
17354
17355
17356
17357
17358
17359
17360
17361
17362
cristy0c60a692010-11-04 01:09:47 +000017363
17364
17365
17366
17367
cristy73bd4a52010-10-05 11:24:23 +000017368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17369$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17370hardcode_action=
17371if test -n "$hardcode_libdir_flag_spec" ||
17372 test -n "$runpath_var" ||
17373 test "X$hardcode_automatic" = "Xyes" ; then
17374
17375 # We can hardcode non-existent directories.
17376 if test "$hardcode_direct" != no &&
17377 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17378 # have to relink, otherwise we might link with an installed library
17379 # when we should be linking with a yet-to-be-installed one
17380 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17381 test "$hardcode_minus_L" != no; then
17382 # Linking always hardcodes the temporary library directory.
17383 hardcode_action=relink
17384 else
17385 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17386 hardcode_action=immediate
17387 fi
17388else
17389 # We cannot hardcode anything, or else we can only hardcode existing
17390 # directories.
17391 hardcode_action=unsupported
17392fi
17393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17394$as_echo "$hardcode_action" >&6; }
17395
17396if test "$hardcode_action" = relink ||
17397 test "$inherit_rpath" = yes; then
17398 # Fast installation is not supported
17399 enable_fast_install=no
17400elif test "$shlibpath_overrides_runpath" = yes ||
17401 test "$enable_shared" = no; then
17402 # Fast installation is not necessary
17403 enable_fast_install=needless
17404fi
17405
17406
17407
17408
17409
17410
17411 if test "x$enable_dlopen" != xyes; then
17412 enable_dlopen=unknown
17413 enable_dlopen_self=unknown
17414 enable_dlopen_self_static=unknown
17415else
17416 lt_cv_dlopen=no
17417 lt_cv_dlopen_libs=
17418
17419 case $host_os in
17420 beos*)
17421 lt_cv_dlopen="load_add_on"
17422 lt_cv_dlopen_libs=
17423 lt_cv_dlopen_self=yes
17424 ;;
17425
17426 mingw* | pw32* | cegcc*)
17427 lt_cv_dlopen="LoadLibrary"
17428 lt_cv_dlopen_libs=
17429 ;;
17430
17431 cygwin*)
17432 lt_cv_dlopen="dlopen"
17433 lt_cv_dlopen_libs=
17434 ;;
17435
17436 darwin*)
17437 # if libdl is installed we need to link against it
17438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17439$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017440if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017441 $as_echo_n "(cached) " >&6
17442else
17443 ac_check_lib_save_LIBS=$LIBS
17444LIBS="-ldl $LIBS"
17445cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17446/* end confdefs.h. */
17447
17448/* Override any GCC internal prototype to avoid an error.
17449 Use char because int might match the return type of a GCC
17450 builtin and then its argument prototype would still apply. */
17451#ifdef __cplusplus
17452extern "C"
17453#endif
17454char dlopen ();
17455int
17456main ()
17457{
17458return dlopen ();
17459 ;
17460 return 0;
17461}
17462_ACEOF
17463if ac_fn_c_try_link "$LINENO"; then :
17464 ac_cv_lib_dl_dlopen=yes
17465else
17466 ac_cv_lib_dl_dlopen=no
17467fi
17468rm -f core conftest.err conftest.$ac_objext \
17469 conftest$ac_exeext conftest.$ac_ext
17470LIBS=$ac_check_lib_save_LIBS
17471fi
17472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17473$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017474if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017475 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17476else
17477
17478 lt_cv_dlopen="dyld"
17479 lt_cv_dlopen_libs=
17480 lt_cv_dlopen_self=yes
17481
17482fi
17483
17484 ;;
17485
17486 *)
17487 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000017488if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017489 lt_cv_dlopen="shl_load"
17490else
17491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17492$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017493if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017494 $as_echo_n "(cached) " >&6
17495else
17496 ac_check_lib_save_LIBS=$LIBS
17497LIBS="-ldld $LIBS"
17498cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17499/* end confdefs.h. */
17500
17501/* Override any GCC internal prototype to avoid an error.
17502 Use char because int might match the return type of a GCC
17503 builtin and then its argument prototype would still apply. */
17504#ifdef __cplusplus
17505extern "C"
17506#endif
17507char shl_load ();
17508int
17509main ()
17510{
17511return shl_load ();
17512 ;
17513 return 0;
17514}
17515_ACEOF
17516if ac_fn_c_try_link "$LINENO"; then :
17517 ac_cv_lib_dld_shl_load=yes
17518else
17519 ac_cv_lib_dld_shl_load=no
17520fi
17521rm -f core conftest.err conftest.$ac_objext \
17522 conftest$ac_exeext conftest.$ac_ext
17523LIBS=$ac_check_lib_save_LIBS
17524fi
17525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17526$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000017527if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017528 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17529else
17530 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000017531if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017532 lt_cv_dlopen="dlopen"
17533else
17534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17535$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017536if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017537 $as_echo_n "(cached) " >&6
17538else
17539 ac_check_lib_save_LIBS=$LIBS
17540LIBS="-ldl $LIBS"
17541cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17542/* end confdefs.h. */
17543
17544/* Override any GCC internal prototype to avoid an error.
17545 Use char because int might match the return type of a GCC
17546 builtin and then its argument prototype would still apply. */
17547#ifdef __cplusplus
17548extern "C"
17549#endif
17550char dlopen ();
17551int
17552main ()
17553{
17554return dlopen ();
17555 ;
17556 return 0;
17557}
17558_ACEOF
17559if ac_fn_c_try_link "$LINENO"; then :
17560 ac_cv_lib_dl_dlopen=yes
17561else
17562 ac_cv_lib_dl_dlopen=no
17563fi
17564rm -f core conftest.err conftest.$ac_objext \
17565 conftest$ac_exeext conftest.$ac_ext
17566LIBS=$ac_check_lib_save_LIBS
17567fi
17568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17569$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017570if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017571 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17572else
17573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17574$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017575if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017576 $as_echo_n "(cached) " >&6
17577else
17578 ac_check_lib_save_LIBS=$LIBS
17579LIBS="-lsvld $LIBS"
17580cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17581/* end confdefs.h. */
17582
17583/* Override any GCC internal prototype to avoid an error.
17584 Use char because int might match the return type of a GCC
17585 builtin and then its argument prototype would still apply. */
17586#ifdef __cplusplus
17587extern "C"
17588#endif
17589char dlopen ();
17590int
17591main ()
17592{
17593return dlopen ();
17594 ;
17595 return 0;
17596}
17597_ACEOF
17598if ac_fn_c_try_link "$LINENO"; then :
17599 ac_cv_lib_svld_dlopen=yes
17600else
17601 ac_cv_lib_svld_dlopen=no
17602fi
17603rm -f core conftest.err conftest.$ac_objext \
17604 conftest$ac_exeext conftest.$ac_ext
17605LIBS=$ac_check_lib_save_LIBS
17606fi
17607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17608$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017609if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017610 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17611else
17612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17613$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017614if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017615 $as_echo_n "(cached) " >&6
17616else
17617 ac_check_lib_save_LIBS=$LIBS
17618LIBS="-ldld $LIBS"
17619cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17620/* end confdefs.h. */
17621
17622/* Override any GCC internal prototype to avoid an error.
17623 Use char because int might match the return type of a GCC
17624 builtin and then its argument prototype would still apply. */
17625#ifdef __cplusplus
17626extern "C"
17627#endif
17628char dld_link ();
17629int
17630main ()
17631{
17632return dld_link ();
17633 ;
17634 return 0;
17635}
17636_ACEOF
17637if ac_fn_c_try_link "$LINENO"; then :
17638 ac_cv_lib_dld_dld_link=yes
17639else
17640 ac_cv_lib_dld_dld_link=no
17641fi
17642rm -f core conftest.err conftest.$ac_objext \
17643 conftest$ac_exeext conftest.$ac_ext
17644LIBS=$ac_check_lib_save_LIBS
17645fi
17646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17647$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000017648if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017649 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17650fi
17651
17652
17653fi
17654
17655
17656fi
17657
17658
17659fi
17660
17661
17662fi
17663
17664
17665fi
17666
17667 ;;
17668 esac
17669
17670 if test "x$lt_cv_dlopen" != xno; then
17671 enable_dlopen=yes
17672 else
17673 enable_dlopen=no
17674 fi
17675
17676 case $lt_cv_dlopen in
17677 dlopen)
17678 save_CPPFLAGS="$CPPFLAGS"
17679 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17680
17681 save_LDFLAGS="$LDFLAGS"
17682 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17683
17684 save_LIBS="$LIBS"
17685 LIBS="$lt_cv_dlopen_libs $LIBS"
17686
17687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17688$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017689if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017690 $as_echo_n "(cached) " >&6
17691else
17692 if test "$cross_compiling" = yes; then :
17693 lt_cv_dlopen_self=cross
17694else
17695 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17696 lt_status=$lt_dlunknown
17697 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017698#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017699#include "confdefs.h"
17700
17701#if HAVE_DLFCN_H
17702#include <dlfcn.h>
17703#endif
17704
17705#include <stdio.h>
17706
17707#ifdef RTLD_GLOBAL
17708# define LT_DLGLOBAL RTLD_GLOBAL
17709#else
17710# ifdef DL_GLOBAL
17711# define LT_DLGLOBAL DL_GLOBAL
17712# else
17713# define LT_DLGLOBAL 0
17714# endif
17715#endif
17716
17717/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17718 find out it does not work in some platform. */
17719#ifndef LT_DLLAZY_OR_NOW
17720# ifdef RTLD_LAZY
17721# define LT_DLLAZY_OR_NOW RTLD_LAZY
17722# else
17723# ifdef DL_LAZY
17724# define LT_DLLAZY_OR_NOW DL_LAZY
17725# else
17726# ifdef RTLD_NOW
17727# define LT_DLLAZY_OR_NOW RTLD_NOW
17728# else
17729# ifdef DL_NOW
17730# define LT_DLLAZY_OR_NOW DL_NOW
17731# else
17732# define LT_DLLAZY_OR_NOW 0
17733# endif
17734# endif
17735# endif
17736# endif
17737#endif
17738
cristy0c60a692010-11-04 01:09:47 +000017739/* When -fvisbility=hidden is used, assume the code has been annotated
17740 correspondingly for the symbols needed. */
17741#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017742int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017743#endif
17744
cristyda16f162011-02-19 23:52:17 +000017745int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017746int main ()
17747{
17748 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17749 int status = $lt_dlunknown;
17750
17751 if (self)
17752 {
17753 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017754 else
17755 {
17756 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17757 else puts (dlerror ());
17758 }
cristy73bd4a52010-10-05 11:24:23 +000017759 /* dlclose (self); */
17760 }
17761 else
17762 puts (dlerror ());
17763
17764 return status;
17765}
17766_LT_EOF
17767 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17768 (eval $ac_link) 2>&5
17769 ac_status=$?
17770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17771 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17772 (./conftest; exit; ) >&5 2>/dev/null
17773 lt_status=$?
17774 case x$lt_status in
17775 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17776 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17777 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17778 esac
17779 else :
17780 # compilation failed
17781 lt_cv_dlopen_self=no
17782 fi
17783fi
17784rm -fr conftest*
17785
17786
17787fi
17788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17789$as_echo "$lt_cv_dlopen_self" >&6; }
17790
17791 if test "x$lt_cv_dlopen_self" = xyes; then
17792 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17794$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017795if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017796 $as_echo_n "(cached) " >&6
17797else
17798 if test "$cross_compiling" = yes; then :
17799 lt_cv_dlopen_self_static=cross
17800else
17801 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17802 lt_status=$lt_dlunknown
17803 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017804#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017805#include "confdefs.h"
17806
17807#if HAVE_DLFCN_H
17808#include <dlfcn.h>
17809#endif
17810
17811#include <stdio.h>
17812
17813#ifdef RTLD_GLOBAL
17814# define LT_DLGLOBAL RTLD_GLOBAL
17815#else
17816# ifdef DL_GLOBAL
17817# define LT_DLGLOBAL DL_GLOBAL
17818# else
17819# define LT_DLGLOBAL 0
17820# endif
17821#endif
17822
17823/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17824 find out it does not work in some platform. */
17825#ifndef LT_DLLAZY_OR_NOW
17826# ifdef RTLD_LAZY
17827# define LT_DLLAZY_OR_NOW RTLD_LAZY
17828# else
17829# ifdef DL_LAZY
17830# define LT_DLLAZY_OR_NOW DL_LAZY
17831# else
17832# ifdef RTLD_NOW
17833# define LT_DLLAZY_OR_NOW RTLD_NOW
17834# else
17835# ifdef DL_NOW
17836# define LT_DLLAZY_OR_NOW DL_NOW
17837# else
17838# define LT_DLLAZY_OR_NOW 0
17839# endif
17840# endif
17841# endif
17842# endif
17843#endif
17844
cristy0c60a692010-11-04 01:09:47 +000017845/* When -fvisbility=hidden is used, assume the code has been annotated
17846 correspondingly for the symbols needed. */
17847#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017848int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017849#endif
17850
cristyda16f162011-02-19 23:52:17 +000017851int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017852int main ()
17853{
17854 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17855 int status = $lt_dlunknown;
17856
17857 if (self)
17858 {
17859 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017860 else
17861 {
17862 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17863 else puts (dlerror ());
17864 }
cristy73bd4a52010-10-05 11:24:23 +000017865 /* dlclose (self); */
17866 }
17867 else
17868 puts (dlerror ());
17869
17870 return status;
17871}
17872_LT_EOF
17873 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17874 (eval $ac_link) 2>&5
17875 ac_status=$?
17876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17877 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17878 (./conftest; exit; ) >&5 2>/dev/null
17879 lt_status=$?
17880 case x$lt_status in
17881 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17882 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17883 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17884 esac
17885 else :
17886 # compilation failed
17887 lt_cv_dlopen_self_static=no
17888 fi
17889fi
17890rm -fr conftest*
17891
17892
17893fi
17894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17895$as_echo "$lt_cv_dlopen_self_static" >&6; }
17896 fi
17897
17898 CPPFLAGS="$save_CPPFLAGS"
17899 LDFLAGS="$save_LDFLAGS"
17900 LIBS="$save_LIBS"
17901 ;;
17902 esac
17903
17904 case $lt_cv_dlopen_self in
17905 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17906 *) enable_dlopen_self=unknown ;;
17907 esac
17908
17909 case $lt_cv_dlopen_self_static in
17910 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17911 *) enable_dlopen_self_static=unknown ;;
17912 esac
17913fi
17914
17915
17916
17917
17918
17919
17920
17921
17922
17923
17924
17925
17926
17927
17928
17929
17930
17931striplib=
17932old_striplib=
17933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17934$as_echo_n "checking whether stripping libraries is possible... " >&6; }
17935if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17936 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17937 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17939$as_echo "yes" >&6; }
17940else
17941# FIXME - insert some real tests, host_os isn't really good enough
17942 case $host_os in
17943 darwin*)
17944 if test -n "$STRIP" ; then
17945 striplib="$STRIP -x"
17946 old_striplib="$STRIP -S"
17947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17948$as_echo "yes" >&6; }
17949 else
17950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17951$as_echo "no" >&6; }
17952 fi
17953 ;;
17954 *)
17955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17956$as_echo "no" >&6; }
17957 ;;
17958 esac
17959fi
17960
17961
17962
17963
17964
17965
17966
17967
17968
17969
17970
17971
17972 # Report which library types will actually be built
17973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17974$as_echo_n "checking if libtool supports shared libraries... " >&6; }
17975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17976$as_echo "$can_build_shared" >&6; }
17977
17978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17979$as_echo_n "checking whether to build shared libraries... " >&6; }
17980 test "$can_build_shared" = "no" && enable_shared=no
17981
17982 # On AIX, shared libraries and static libraries use the same namespace, and
17983 # are all built from PIC.
17984 case $host_os in
17985 aix3*)
17986 test "$enable_shared" = yes && enable_static=no
17987 if test -n "$RANLIB"; then
17988 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17989 postinstall_cmds='$RANLIB $lib'
17990 fi
17991 ;;
17992
17993 aix[4-9]*)
17994 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17995 test "$enable_shared" = yes && enable_static=no
17996 fi
17997 ;;
17998 esac
17999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18000$as_echo "$enable_shared" >&6; }
18001
18002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18003$as_echo_n "checking whether to build static libraries... " >&6; }
18004 # Make sure either enable_shared or enable_static is yes.
18005 test "$enable_shared" = yes || enable_static=yes
18006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18007$as_echo "$enable_static" >&6; }
18008
18009
18010
18011
18012fi
18013ac_ext=c
18014ac_cpp='$CPP $CPPFLAGS'
18015ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18016ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18017ac_compiler_gnu=$ac_cv_c_compiler_gnu
18018
18019CC="$lt_save_CC"
18020
cristy0c60a692010-11-04 01:09:47 +000018021 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18022 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18023 (test "X$CXX" != "Xg++"))) ; then
18024 ac_ext=cpp
18025ac_cpp='$CXXCPP $CPPFLAGS'
18026ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18027ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18028ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18030$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18031if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000018032 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000018033 $as_echo_n "(cached) " >&6
18034else
18035 # Double quotes because CXXCPP needs to be expanded
18036 for CXXCPP in "$CXX -E" "/lib/cpp"
18037 do
18038 ac_preproc_ok=false
18039for ac_cxx_preproc_warn_flag in '' yes
18040do
18041 # Use a header file that comes with gcc, so configuring glibc
18042 # with a fresh cross-compiler works.
18043 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18044 # <limits.h> exists even on freestanding compilers.
18045 # On the NeXT, cc -E runs the code through the compiler's parser,
18046 # not just through cpp. "Syntax error" is here to catch this case.
18047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18048/* end confdefs.h. */
18049#ifdef __STDC__
18050# include <limits.h>
18051#else
18052# include <assert.h>
18053#endif
18054 Syntax error
18055_ACEOF
18056if ac_fn_cxx_try_cpp "$LINENO"; then :
18057
18058else
18059 # Broken: fails on valid input.
18060continue
18061fi
cristyda16f162011-02-19 23:52:17 +000018062rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018063
18064 # OK, works on sane cases. Now check whether nonexistent headers
18065 # can be detected and how.
18066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18067/* end confdefs.h. */
18068#include <ac_nonexistent.h>
18069_ACEOF
18070if ac_fn_cxx_try_cpp "$LINENO"; then :
18071 # Broken: success on invalid input.
18072continue
18073else
18074 # Passes both tests.
18075ac_preproc_ok=:
18076break
18077fi
cristyda16f162011-02-19 23:52:17 +000018078rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018079
18080done
18081# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000018082rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018083if $ac_preproc_ok; then :
18084 break
18085fi
18086
18087 done
18088 ac_cv_prog_CXXCPP=$CXXCPP
18089
18090fi
18091 CXXCPP=$ac_cv_prog_CXXCPP
18092else
18093 ac_cv_prog_CXXCPP=$CXXCPP
18094fi
18095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18096$as_echo "$CXXCPP" >&6; }
18097ac_preproc_ok=false
18098for ac_cxx_preproc_warn_flag in '' yes
18099do
18100 # Use a header file that comes with gcc, so configuring glibc
18101 # with a fresh cross-compiler works.
18102 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18103 # <limits.h> exists even on freestanding compilers.
18104 # On the NeXT, cc -E runs the code through the compiler's parser,
18105 # not just through cpp. "Syntax error" is here to catch this case.
18106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18107/* end confdefs.h. */
18108#ifdef __STDC__
18109# include <limits.h>
18110#else
18111# include <assert.h>
18112#endif
18113 Syntax error
18114_ACEOF
18115if ac_fn_cxx_try_cpp "$LINENO"; then :
18116
18117else
18118 # Broken: fails on valid input.
18119continue
18120fi
cristyda16f162011-02-19 23:52:17 +000018121rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018122
18123 # OK, works on sane cases. Now check whether nonexistent headers
18124 # can be detected and how.
18125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18126/* end confdefs.h. */
18127#include <ac_nonexistent.h>
18128_ACEOF
18129if ac_fn_cxx_try_cpp "$LINENO"; then :
18130 # Broken: success on invalid input.
18131continue
18132else
18133 # Passes both tests.
18134ac_preproc_ok=:
18135break
18136fi
cristyda16f162011-02-19 23:52:17 +000018137rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018138
18139done
18140# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000018141rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018142if $ac_preproc_ok; then :
18143
18144else
18145 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18146$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18147as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
18148See \`config.log' for more details" "$LINENO" 5; }
18149fi
18150
18151ac_ext=c
18152ac_cpp='$CPP $CPPFLAGS'
18153ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18154ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18155ac_compiler_gnu=$ac_cv_c_compiler_gnu
18156
18157else
18158 _lt_caught_CXX_error=yes
18159fi
cristy73bd4a52010-10-05 11:24:23 +000018160
18161ac_ext=cpp
18162ac_cpp='$CXXCPP $CPPFLAGS'
18163ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18164ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18165ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18166
18167archive_cmds_need_lc_CXX=no
18168allow_undefined_flag_CXX=
18169always_export_symbols_CXX=no
18170archive_expsym_cmds_CXX=
18171compiler_needs_object_CXX=no
18172export_dynamic_flag_spec_CXX=
18173hardcode_direct_CXX=no
18174hardcode_direct_absolute_CXX=no
18175hardcode_libdir_flag_spec_CXX=
cristy73bd4a52010-10-05 11:24:23 +000018176hardcode_libdir_separator_CXX=
18177hardcode_minus_L_CXX=no
18178hardcode_shlibpath_var_CXX=unsupported
18179hardcode_automatic_CXX=no
18180inherit_rpath_CXX=no
18181module_cmds_CXX=
18182module_expsym_cmds_CXX=
18183link_all_deplibs_CXX=unknown
18184old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000018185reload_flag_CXX=$reload_flag
18186reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000018187no_undefined_flag_CXX=
18188whole_archive_flag_spec_CXX=
18189enable_shared_with_static_runtimes_CXX=no
18190
18191# Source file extension for C++ test sources.
18192ac_ext=cpp
18193
18194# Object file extension for compiled C++ test sources.
18195objext=o
18196objext_CXX=$objext
18197
18198# No sense in running all these tests if we already determined that
18199# the CXX compiler isn't working. Some variables (like enable_shared)
18200# are currently assumed to apply to all compilers on this platform,
18201# and will be corrupted by setting them based on a non-working compiler.
18202if test "$_lt_caught_CXX_error" != yes; then
18203 # Code to be used in simple compile tests
18204 lt_simple_compile_test_code="int some_variable = 0;"
18205
18206 # Code to be used in simple link tests
18207 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18208
18209 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18210
18211
18212
18213
18214
18215
18216# If no C compiler was specified, use CC.
18217LTCC=${LTCC-"$CC"}
18218
18219# If no C compiler flags were specified, use CFLAGS.
18220LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18221
18222# Allow CC to be a program name with arguments.
18223compiler=$CC
18224
18225
18226 # save warnings/boilerplate of simple test code
18227 ac_outfile=conftest.$ac_objext
18228echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18229eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18230_lt_compiler_boilerplate=`cat conftest.err`
18231$RM conftest*
18232
18233 ac_outfile=conftest.$ac_objext
18234echo "$lt_simple_link_test_code" >conftest.$ac_ext
18235eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18236_lt_linker_boilerplate=`cat conftest.err`
18237$RM -r conftest*
18238
18239
18240 # Allow CC to be a program name with arguments.
18241 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000018242 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018243 lt_save_LD=$LD
18244 lt_save_GCC=$GCC
18245 GCC=$GXX
18246 lt_save_with_gnu_ld=$with_gnu_ld
18247 lt_save_path_LD=$lt_cv_path_LD
18248 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18249 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18250 else
18251 $as_unset lt_cv_prog_gnu_ld
18252 fi
18253 if test -n "${lt_cv_path_LDCXX+set}"; then
18254 lt_cv_path_LD=$lt_cv_path_LDCXX
18255 else
18256 $as_unset lt_cv_path_LD
18257 fi
18258 test -z "${LDCXX+set}" || LD=$LDCXX
18259 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000018260 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018261 compiler=$CC
18262 compiler_CXX=$CC
18263 for cc_temp in $compiler""; do
18264 case $cc_temp in
18265 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18266 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18267 \-*) ;;
18268 *) break;;
18269 esac
18270done
cristy0c60a692010-11-04 01:09:47 +000018271cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000018272
18273
18274 if test -n "$compiler"; then
18275 # We don't want -fno-exception when compiling C++ code, so set the
18276 # no_builtin_flag separately
18277 if test "$GXX" = yes; then
18278 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18279 else
18280 lt_prog_compiler_no_builtin_flag_CXX=
18281 fi
18282
18283 if test "$GXX" = yes; then
18284 # Set up default GNU C++ configuration
18285
18286
18287
18288# Check whether --with-gnu-ld was given.
18289if test "${with_gnu_ld+set}" = set; then :
18290 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18291else
18292 with_gnu_ld=no
18293fi
18294
18295ac_prog=ld
18296if test "$GCC" = yes; then
18297 # Check if gcc -print-prog-name=ld gives a path.
18298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18299$as_echo_n "checking for ld used by $CC... " >&6; }
18300 case $host in
18301 *-*-mingw*)
18302 # gcc leaves a trailing carriage return which upsets mingw
18303 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18304 *)
18305 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18306 esac
18307 case $ac_prog in
18308 # Accept absolute paths.
18309 [\\/]* | ?:[\\/]*)
18310 re_direlt='/[^/][^/]*/\.\./'
18311 # Canonicalize the pathname of ld
18312 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18313 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18314 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18315 done
18316 test -z "$LD" && LD="$ac_prog"
18317 ;;
18318 "")
18319 # If it fails, then pretend we aren't using GCC.
18320 ac_prog=ld
18321 ;;
18322 *)
18323 # If it is relative, then search for the first ld in PATH.
18324 with_gnu_ld=unknown
18325 ;;
18326 esac
18327elif test "$with_gnu_ld" = yes; then
18328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18329$as_echo_n "checking for GNU ld... " >&6; }
18330else
18331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18332$as_echo_n "checking for non-GNU ld... " >&6; }
18333fi
cristyda16f162011-02-19 23:52:17 +000018334if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018335 $as_echo_n "(cached) " >&6
18336else
18337 if test -z "$LD"; then
18338 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18339 for ac_dir in $PATH; do
18340 IFS="$lt_save_ifs"
18341 test -z "$ac_dir" && ac_dir=.
18342 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18343 lt_cv_path_LD="$ac_dir/$ac_prog"
18344 # Check to see if the program is GNU ld. I'd rather use --version,
18345 # but apparently some variants of GNU ld only accept -v.
18346 # Break only if it was the GNU/non-GNU ld that we prefer.
18347 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18348 *GNU* | *'with BFD'*)
18349 test "$with_gnu_ld" != no && break
18350 ;;
18351 *)
18352 test "$with_gnu_ld" != yes && break
18353 ;;
18354 esac
18355 fi
18356 done
18357 IFS="$lt_save_ifs"
18358else
18359 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18360fi
18361fi
18362
18363LD="$lt_cv_path_LD"
18364if test -n "$LD"; then
18365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18366$as_echo "$LD" >&6; }
18367else
18368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18369$as_echo "no" >&6; }
18370fi
cristy98dddb52010-11-04 00:30:15 +000018371test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000018372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18373$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018374if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018375 $as_echo_n "(cached) " >&6
18376else
18377 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18378case `$LD -v 2>&1 </dev/null` in
18379*GNU* | *'with BFD'*)
18380 lt_cv_prog_gnu_ld=yes
18381 ;;
18382*)
18383 lt_cv_prog_gnu_ld=no
18384 ;;
18385esac
18386fi
18387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18388$as_echo "$lt_cv_prog_gnu_ld" >&6; }
18389with_gnu_ld=$lt_cv_prog_gnu_ld
18390
18391
18392
18393
18394
18395
18396
18397 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18398 # archiving commands below assume that GNU ld is being used.
18399 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000018400 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18401 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 +000018402
18403 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18404 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18405
18406 # If archive_cmds runs LD, not CC, wlarc should be empty
18407 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18408 # investigate it a little bit more. (MM)
18409 wlarc='${wl}'
18410
18411 # ancient GNU ld didn't support --whole-archive et. al.
18412 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18413 $GREP 'no-whole-archive' > /dev/null; then
18414 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18415 else
18416 whole_archive_flag_spec_CXX=
18417 fi
18418 else
18419 with_gnu_ld=no
18420 wlarc=
18421
18422 # A generic and very simple default shared library creation
18423 # command for GNU C++ for the case where it uses the native
18424 # linker, instead of GNU ld. If possible, this setting should
18425 # overridden to take advantage of the native linker features on
18426 # the platform it is being used on.
18427 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18428 fi
18429
18430 # Commands to make compiler produce verbose output that lists
18431 # what "hidden" libraries, object files and flags are used when
18432 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018433 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018434
18435 else
18436 GXX=no
18437 with_gnu_ld=no
18438 wlarc=
18439 fi
18440
18441 # PORTME: fill in a description of your system's C++ link characteristics
18442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18443$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18444 ld_shlibs_CXX=yes
18445 case $host_os in
18446 aix3*)
18447 # FIXME: insert proper C++ library support
18448 ld_shlibs_CXX=no
18449 ;;
18450 aix[4-9]*)
18451 if test "$host_cpu" = ia64; then
18452 # On IA64, the linker does run time linking by default, so we don't
18453 # have to do anything special.
18454 aix_use_runtimelinking=no
18455 exp_sym_flag='-Bexport'
18456 no_entry_flag=""
18457 else
18458 aix_use_runtimelinking=no
18459
18460 # Test if we are trying to use run time linking or normal
18461 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18462 # need to do runtime linking.
18463 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18464 for ld_flag in $LDFLAGS; do
18465 case $ld_flag in
18466 *-brtl*)
18467 aix_use_runtimelinking=yes
18468 break
18469 ;;
18470 esac
18471 done
18472 ;;
18473 esac
18474
18475 exp_sym_flag='-bexport'
18476 no_entry_flag='-bnoentry'
18477 fi
18478
18479 # When large executables or shared objects are built, AIX ld can
18480 # have problems creating the table of contents. If linking a library
18481 # or program results in "error TOC overflow" add -mminimal-toc to
18482 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18483 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18484
18485 archive_cmds_CXX=''
18486 hardcode_direct_CXX=yes
18487 hardcode_direct_absolute_CXX=yes
18488 hardcode_libdir_separator_CXX=':'
18489 link_all_deplibs_CXX=yes
18490 file_list_spec_CXX='${wl}-f,'
18491
18492 if test "$GXX" = yes; then
18493 case $host_os in aix4.[012]|aix4.[012].*)
18494 # We only want to do this on AIX 4.2 and lower, the check
18495 # below for broken collect2 doesn't work under 4.3+
18496 collect2name=`${CC} -print-prog-name=collect2`
18497 if test -f "$collect2name" &&
18498 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18499 then
18500 # We have reworked collect2
18501 :
18502 else
18503 # We have old collect2
18504 hardcode_direct_CXX=unsupported
18505 # It fails to find uninstalled libraries when the uninstalled
18506 # path is not listed in the libpath. Setting hardcode_minus_L
18507 # to unsupported forces relinking
18508 hardcode_minus_L_CXX=yes
18509 hardcode_libdir_flag_spec_CXX='-L$libdir'
18510 hardcode_libdir_separator_CXX=
18511 fi
18512 esac
18513 shared_flag='-shared'
18514 if test "$aix_use_runtimelinking" = yes; then
18515 shared_flag="$shared_flag "'${wl}-G'
18516 fi
18517 else
18518 # not using gcc
18519 if test "$host_cpu" = ia64; then
18520 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18521 # chokes on -Wl,-G. The following line is correct:
18522 shared_flag='-G'
18523 else
18524 if test "$aix_use_runtimelinking" = yes; then
18525 shared_flag='${wl}-G'
18526 else
18527 shared_flag='${wl}-bM:SRE'
18528 fi
18529 fi
18530 fi
18531
18532 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18533 # It seems that -bexpall does not export symbols beginning with
18534 # underscore (_), so it is better to generate a list of symbols to
18535 # export.
18536 always_export_symbols_CXX=yes
18537 if test "$aix_use_runtimelinking" = yes; then
18538 # Warning - without using the other runtime loading flags (-brtl),
18539 # -berok will link without error, but may produce a broken library.
18540 allow_undefined_flag_CXX='-berok'
18541 # Determine the default libpath from the value encoded in an empty
18542 # executable.
cristyda16f162011-02-19 23:52:17 +000018543 if test "${lt_cv_aix_libpath+set}" = set; then
18544 aix_libpath=$lt_cv_aix_libpath
18545else
18546 if ${lt_cv_aix_libpath__CXX+:} false; then :
18547 $as_echo_n "(cached) " >&6
18548else
18549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018550/* end confdefs.h. */
18551
18552int
18553main ()
18554{
18555
18556 ;
18557 return 0;
18558}
18559_ACEOF
18560if ac_fn_cxx_try_link "$LINENO"; then :
18561
cristyda16f162011-02-19 23:52:17 +000018562 lt_aix_libpath_sed='
18563 /Import File Strings/,/^$/ {
18564 /^0/ {
18565 s/^0 *\([^ ]*\) *$/\1/
18566 p
18567 }
18568 }'
18569 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18570 # Check for a 64-bit object if we didn't find anything.
18571 if test -z "$lt_cv_aix_libpath__CXX"; then
18572 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18573 fi
cristy73bd4a52010-10-05 11:24:23 +000018574fi
18575rm -f core conftest.err conftest.$ac_objext \
18576 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018577 if test -z "$lt_cv_aix_libpath__CXX"; then
18578 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18579 fi
18580
18581fi
18582
18583 aix_libpath=$lt_cv_aix_libpath__CXX
18584fi
cristy73bd4a52010-10-05 11:24:23 +000018585
18586 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18587
cristy0c60a692010-11-04 01:09:47 +000018588 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 +000018589 else
18590 if test "$host_cpu" = ia64; then
18591 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18592 allow_undefined_flag_CXX="-z nodefs"
18593 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"
18594 else
18595 # Determine the default libpath from the value encoded in an
18596 # empty executable.
cristyda16f162011-02-19 23:52:17 +000018597 if test "${lt_cv_aix_libpath+set}" = set; then
18598 aix_libpath=$lt_cv_aix_libpath
18599else
18600 if ${lt_cv_aix_libpath__CXX+:} false; then :
18601 $as_echo_n "(cached) " >&6
18602else
18603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018604/* end confdefs.h. */
18605
18606int
18607main ()
18608{
18609
18610 ;
18611 return 0;
18612}
18613_ACEOF
18614if ac_fn_cxx_try_link "$LINENO"; then :
18615
cristyda16f162011-02-19 23:52:17 +000018616 lt_aix_libpath_sed='
18617 /Import File Strings/,/^$/ {
18618 /^0/ {
18619 s/^0 *\([^ ]*\) *$/\1/
18620 p
18621 }
18622 }'
18623 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18624 # Check for a 64-bit object if we didn't find anything.
18625 if test -z "$lt_cv_aix_libpath__CXX"; then
18626 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18627 fi
cristy73bd4a52010-10-05 11:24:23 +000018628fi
18629rm -f core conftest.err conftest.$ac_objext \
18630 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018631 if test -z "$lt_cv_aix_libpath__CXX"; then
18632 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18633 fi
18634
18635fi
18636
18637 aix_libpath=$lt_cv_aix_libpath__CXX
18638fi
cristy73bd4a52010-10-05 11:24:23 +000018639
18640 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18641 # Warning - without using the other run time loading flags,
18642 # -berok will link without error, but may produce a broken library.
18643 no_undefined_flag_CXX=' ${wl}-bernotok'
18644 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000018645 if test "$with_gnu_ld" = yes; then
18646 # We only use this code for GNU lds that support --whole-archive.
18647 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18648 else
18649 # Exported symbols can be pulled into shared objects from archives
18650 whole_archive_flag_spec_CXX='$convenience'
18651 fi
cristy73bd4a52010-10-05 11:24:23 +000018652 archive_cmds_need_lc_CXX=yes
18653 # This is similar to how AIX traditionally builds its shared
18654 # libraries.
18655 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'
18656 fi
18657 fi
18658 ;;
18659
18660 beos*)
18661 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18662 allow_undefined_flag_CXX=unsupported
18663 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18664 # support --undefined. This deserves some investigation. FIXME
18665 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18666 else
18667 ld_shlibs_CXX=no
18668 fi
18669 ;;
18670
18671 chorus*)
18672 case $cc_basename in
18673 *)
18674 # FIXME: insert proper C++ library support
18675 ld_shlibs_CXX=no
18676 ;;
18677 esac
18678 ;;
18679
18680 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000018681 case $GXX,$cc_basename in
18682 ,cl* | no,cl*)
18683 # Native MSVC
18684 # hardcode_libdir_flag_spec is actually meaningless, as there is
18685 # no search path for DLLs.
18686 hardcode_libdir_flag_spec_CXX=' '
18687 allow_undefined_flag_CXX=unsupported
18688 always_export_symbols_CXX=yes
18689 file_list_spec_CXX='@'
18690 # Tell ltmain to make .lib files, not .a files.
18691 libext=lib
18692 # Tell ltmain to make .dll files, not .so files.
18693 shrext_cmds=".dll"
18694 # FIXME: Setting linknames here is a bad hack.
18695 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
18696 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18697 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
18698 else
18699 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
18700 fi~
18701 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
18702 linknames='
18703 # The linker will not automatically build a static lib if we build a DLL.
18704 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
18705 enable_shared_with_static_runtimes_CXX=yes
18706 # Don't use ranlib
18707 old_postinstall_cmds_CXX='chmod 644 $oldlib'
18708 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
18709 lt_tool_outputfile="@TOOL_OUTPUT@"~
18710 case $lt_outputfile in
18711 *.exe|*.EXE) ;;
18712 *)
18713 lt_outputfile="$lt_outputfile.exe"
18714 lt_tool_outputfile="$lt_tool_outputfile.exe"
18715 ;;
18716 esac~
18717 func_to_tool_file "$lt_outputfile"~
18718 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
18719 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
18720 $RM "$lt_outputfile.manifest";
18721 fi'
18722 ;;
18723 *)
18724 # g++
18725 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18726 # as there is no search path for DLLs.
18727 hardcode_libdir_flag_spec_CXX='-L$libdir'
18728 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18729 allow_undefined_flag_CXX=unsupported
18730 always_export_symbols_CXX=no
18731 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000018732
cristyda16f162011-02-19 23:52:17 +000018733 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18734 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'
18735 # If the export-symbols file already is a .def file (1st line
18736 # is EXPORTS), use it as is; otherwise, prepend...
18737 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18738 cp $export_symbols $output_objdir/$soname.def;
18739 else
18740 echo EXPORTS > $output_objdir/$soname.def;
18741 cat $export_symbols >> $output_objdir/$soname.def;
18742 fi~
18743 $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'
18744 else
18745 ld_shlibs_CXX=no
18746 fi
18747 ;;
18748 esac
18749 ;;
cristy73bd4a52010-10-05 11:24:23 +000018750 darwin* | rhapsody*)
18751
18752
18753 archive_cmds_need_lc_CXX=no
18754 hardcode_direct_CXX=no
18755 hardcode_automatic_CXX=yes
18756 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000018757 if test "$lt_cv_ld_force_load" = "yes"; then
18758 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 +000018759
cristy0c60a692010-11-04 01:09:47 +000018760 else
18761 whole_archive_flag_spec_CXX=''
18762 fi
cristy73bd4a52010-10-05 11:24:23 +000018763 link_all_deplibs_CXX=yes
18764 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18765 case $cc_basename in
18766 ifort*) _lt_dar_can_shared=yes ;;
18767 *) _lt_dar_can_shared=$GCC ;;
18768 esac
18769 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000018770 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018771 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}"
18772 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18773 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}"
18774 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}"
18775 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18776 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}"
18777 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}"
18778 fi
18779
18780 else
18781 ld_shlibs_CXX=no
18782 fi
18783
18784 ;;
18785
18786 dgux*)
18787 case $cc_basename in
18788 ec++*)
18789 # FIXME: insert proper C++ library support
18790 ld_shlibs_CXX=no
18791 ;;
18792 ghcx*)
18793 # Green Hills C++ Compiler
18794 # FIXME: insert proper C++ library support
18795 ld_shlibs_CXX=no
18796 ;;
18797 *)
18798 # FIXME: insert proper C++ library support
18799 ld_shlibs_CXX=no
18800 ;;
18801 esac
18802 ;;
18803
cristy99bd5232011-12-07 14:38:20 +000018804 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000018805 # C++ shared libraries reported to be fairly broken before
18806 # switch to ELF
18807 ld_shlibs_CXX=no
18808 ;;
18809
18810 freebsd-elf*)
18811 archive_cmds_need_lc_CXX=no
18812 ;;
18813
18814 freebsd* | dragonfly*)
18815 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18816 # conventions
18817 ld_shlibs_CXX=yes
18818 ;;
18819
18820 gnu*)
18821 ;;
18822
cristy0c60a692010-11-04 01:09:47 +000018823 haiku*)
18824 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18825 link_all_deplibs_CXX=yes
18826 ;;
18827
cristy73bd4a52010-10-05 11:24:23 +000018828 hpux9*)
18829 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18830 hardcode_libdir_separator_CXX=:
18831 export_dynamic_flag_spec_CXX='${wl}-E'
18832 hardcode_direct_CXX=yes
18833 hardcode_minus_L_CXX=yes # Not in the search PATH,
18834 # but as the default
18835 # location of the library.
18836
18837 case $cc_basename in
18838 CC*)
18839 # FIXME: insert proper C++ library support
18840 ld_shlibs_CXX=no
18841 ;;
18842 aCC*)
18843 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'
18844 # Commands to make compiler produce verbose output that lists
18845 # what "hidden" libraries, object files and flags are used when
18846 # linking a shared library.
18847 #
18848 # There doesn't appear to be a way to prevent this compiler from
18849 # explicitly linking system object files so we need to strip them
18850 # from the output so that they don't get included in the library
18851 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018852 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 +000018853 ;;
18854 *)
18855 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000018856 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 +000018857 else
18858 # FIXME: insert proper C++ library support
18859 ld_shlibs_CXX=no
18860 fi
18861 ;;
18862 esac
18863 ;;
18864
18865 hpux10*|hpux11*)
18866 if test $with_gnu_ld = no; then
18867 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18868 hardcode_libdir_separator_CXX=:
18869
18870 case $host_cpu in
18871 hppa*64*|ia64*)
18872 ;;
18873 *)
18874 export_dynamic_flag_spec_CXX='${wl}-E'
18875 ;;
18876 esac
18877 fi
18878 case $host_cpu in
18879 hppa*64*|ia64*)
18880 hardcode_direct_CXX=no
18881 hardcode_shlibpath_var_CXX=no
18882 ;;
18883 *)
18884 hardcode_direct_CXX=yes
18885 hardcode_direct_absolute_CXX=yes
18886 hardcode_minus_L_CXX=yes # Not in the search PATH,
18887 # but as the default
18888 # location of the library.
18889 ;;
18890 esac
18891
18892 case $cc_basename in
18893 CC*)
18894 # FIXME: insert proper C++ library support
18895 ld_shlibs_CXX=no
18896 ;;
18897 aCC*)
18898 case $host_cpu in
18899 hppa*64*)
18900 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18901 ;;
18902 ia64*)
18903 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18904 ;;
18905 *)
18906 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18907 ;;
18908 esac
18909 # Commands to make compiler produce verbose output that lists
18910 # what "hidden" libraries, object files and flags are used when
18911 # linking a shared library.
18912 #
18913 # There doesn't appear to be a way to prevent this compiler from
18914 # explicitly linking system object files so we need to strip them
18915 # from the output so that they don't get included in the library
18916 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018917 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 +000018918 ;;
18919 *)
18920 if test "$GXX" = yes; then
18921 if test $with_gnu_ld = no; then
18922 case $host_cpu in
18923 hppa*64*)
18924 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18925 ;;
18926 ia64*)
cristyda16f162011-02-19 23:52:17 +000018927 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 +000018928 ;;
18929 *)
cristyda16f162011-02-19 23:52:17 +000018930 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 +000018931 ;;
18932 esac
18933 fi
18934 else
18935 # FIXME: insert proper C++ library support
18936 ld_shlibs_CXX=no
18937 fi
18938 ;;
18939 esac
18940 ;;
18941
18942 interix[3-9]*)
18943 hardcode_direct_CXX=no
18944 hardcode_shlibpath_var_CXX=no
18945 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18946 export_dynamic_flag_spec_CXX='${wl}-E'
18947 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18948 # Instead, shared libraries are loaded at an image base (0x10000000 by
18949 # default) and relocated if they conflict, which is a slow very memory
18950 # consuming and fragmenting process. To avoid this, we pick a random,
18951 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18952 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18953 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'
18954 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'
18955 ;;
18956 irix5* | irix6*)
18957 case $cc_basename in
18958 CC*)
18959 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000018960 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 +000018961
18962 # Archives containing C++ object files must be created using
18963 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18964 # necessary to make sure instantiated templates are included
18965 # in the archive.
18966 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18967 ;;
18968 *)
18969 if test "$GXX" = yes; then
18970 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000018971 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 +000018972 else
cristyda16f162011-02-19 23:52:17 +000018973 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 +000018974 fi
18975 fi
18976 link_all_deplibs_CXX=yes
18977 ;;
18978 esac
18979 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18980 hardcode_libdir_separator_CXX=:
18981 inherit_rpath_CXX=yes
18982 ;;
18983
cristy0c60a692010-11-04 01:09:47 +000018984 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000018985 case $cc_basename in
18986 KCC*)
18987 # Kuck and Associates, Inc. (KAI) C++ Compiler
18988
18989 # KCC will only create a shared library if the output file
18990 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18991 # to its proper name (with version) after linking.
18992 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'
18993 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'
18994 # Commands to make compiler produce verbose output that lists
18995 # what "hidden" libraries, object files and flags are used when
18996 # linking a shared library.
18997 #
18998 # There doesn't appear to be a way to prevent this compiler from
18999 # explicitly linking system object files so we need to strip them
19000 # from the output so that they don't get included in the library
19001 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000019002 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 +000019003
19004 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19005 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19006
19007 # Archives containing C++ object files must be created using
19008 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19009 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19010 ;;
19011 icpc* | ecpc* )
19012 # Intel C++
19013 with_gnu_ld=yes
19014 # version 8.0 and above of icpc choke on multiply defined symbols
19015 # if we add $predep_objects and $postdep_objects, however 7.1 and
19016 # earlier do not add the objects themselves.
19017 case `$CC -V 2>&1` in
19018 *"Version 7."*)
19019 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19020 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'
19021 ;;
19022 *) # Version 8.0 or newer
19023 tmp_idyn=
19024 case $host_cpu in
19025 ia64*) tmp_idyn=' -i_dynamic';;
19026 esac
19027 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19028 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'
19029 ;;
19030 esac
19031 archive_cmds_need_lc_CXX=no
19032 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19033 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19034 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19035 ;;
19036 pgCC* | pgcpp*)
19037 # Portland Group C++ compiler
19038 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000019039 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000019040 prelink_cmds_CXX='tpldir=Template.dir~
19041 rm -rf $tpldir~
19042 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000019043 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000019044 old_archive_cmds_CXX='tpldir=Template.dir~
19045 rm -rf $tpldir~
19046 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000019047 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000019048 $RANLIB $oldlib'
19049 archive_cmds_CXX='tpldir=Template.dir~
19050 rm -rf $tpldir~
19051 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000019052 $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 +000019053 archive_expsym_cmds_CXX='tpldir=Template.dir~
19054 rm -rf $tpldir~
19055 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000019056 $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 +000019057 ;;
cristy0c60a692010-11-04 01:09:47 +000019058 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000019059 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19060 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'
19061 ;;
19062 esac
19063
19064 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19065 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000019066 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 +000019067 ;;
19068 cxx*)
19069 # Compaq C++
19070 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19071 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'
19072
19073 runpath_var=LD_RUN_PATH
19074 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19075 hardcode_libdir_separator_CXX=:
19076
19077 # Commands to make compiler produce verbose output that lists
19078 # what "hidden" libraries, object files and flags are used when
19079 # linking a shared library.
19080 #
19081 # There doesn't appear to be a way to prevent this compiler from
19082 # explicitly linking system object files so we need to strip them
19083 # from the output so that they don't get included in the library
19084 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000019085 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 +000019086 ;;
cristy0c60a692010-11-04 01:09:47 +000019087 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000019088 # IBM XL 8.0 on PPC, with GNU ld
19089 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19090 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19091 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19092 if test "x$supports_anon_versioning" = xyes; then
19093 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19094 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19095 echo "local: *; };" >> $output_objdir/$libname.ver~
19096 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19097 fi
19098 ;;
19099 *)
19100 case `$CC -V 2>&1 | sed 5q` in
19101 *Sun\ C*)
19102 # Sun C++ 5.9
19103 no_undefined_flag_CXX=' -zdefs'
19104 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19105 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'
19106 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000019107 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 +000019108 compiler_needs_object_CXX=yes
19109
19110 # Not sure whether something based on
19111 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19112 # would be better.
cristy0c60a692010-11-04 01:09:47 +000019113 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000019114
19115 # Archives containing C++ object files must be created using
19116 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19117 # necessary to make sure instantiated templates are included
19118 # in the archive.
19119 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19120 ;;
19121 esac
19122 ;;
19123 esac
19124 ;;
19125
19126 lynxos*)
19127 # FIXME: insert proper C++ library support
19128 ld_shlibs_CXX=no
19129 ;;
19130
19131 m88k*)
19132 # FIXME: insert proper C++ library support
19133 ld_shlibs_CXX=no
19134 ;;
19135
19136 mvs*)
19137 case $cc_basename in
19138 cxx*)
19139 # FIXME: insert proper C++ library support
19140 ld_shlibs_CXX=no
19141 ;;
19142 *)
19143 # FIXME: insert proper C++ library support
19144 ld_shlibs_CXX=no
19145 ;;
19146 esac
19147 ;;
19148
19149 netbsd*)
19150 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19151 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19152 wlarc=
19153 hardcode_libdir_flag_spec_CXX='-R$libdir'
19154 hardcode_direct_CXX=yes
19155 hardcode_shlibpath_var_CXX=no
19156 fi
19157 # Workaround some broken pre-1.5 toolchains
19158 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19159 ;;
19160
19161 *nto* | *qnx*)
19162 ld_shlibs_CXX=yes
19163 ;;
19164
19165 openbsd2*)
19166 # C++ shared libraries are fairly broken
19167 ld_shlibs_CXX=no
19168 ;;
19169
19170 openbsd*)
19171 if test -f /usr/libexec/ld.so; then
19172 hardcode_direct_CXX=yes
19173 hardcode_shlibpath_var_CXX=no
19174 hardcode_direct_absolute_CXX=yes
19175 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19176 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19177 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19178 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19179 export_dynamic_flag_spec_CXX='${wl}-E'
19180 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19181 fi
cristy0c60a692010-11-04 01:09:47 +000019182 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000019183 else
19184 ld_shlibs_CXX=no
19185 fi
19186 ;;
19187
19188 osf3* | osf4* | osf5*)
19189 case $cc_basename in
19190 KCC*)
19191 # Kuck and Associates, Inc. (KAI) C++ Compiler
19192
19193 # KCC will only create a shared library if the output file
19194 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19195 # to its proper name (with version) after linking.
19196 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'
19197
19198 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19199 hardcode_libdir_separator_CXX=:
19200
19201 # Archives containing C++ object files must be created using
19202 # the KAI C++ compiler.
19203 case $host in
19204 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19205 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19206 esac
19207 ;;
19208 RCC*)
19209 # Rational C++ 2.4.1
19210 # FIXME: insert proper C++ library support
19211 ld_shlibs_CXX=no
19212 ;;
19213 cxx*)
19214 case $host in
19215 osf3*)
19216 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000019217 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 +000019218 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19219 ;;
19220 *)
19221 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000019222 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 +000019223 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19224 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000019225 $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 +000019226 $RM $lib.exp'
19227 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19228 ;;
19229 esac
19230
19231 hardcode_libdir_separator_CXX=:
19232
19233 # Commands to make compiler produce verbose output that lists
19234 # what "hidden" libraries, object files and flags are used when
19235 # linking a shared library.
19236 #
19237 # There doesn't appear to be a way to prevent this compiler from
19238 # explicitly linking system object files so we need to strip them
19239 # from the output so that they don't get included in the library
19240 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000019241 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 +000019242 ;;
19243 *)
19244 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19245 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19246 case $host in
19247 osf3*)
cristy0c60a692010-11-04 01:09:47 +000019248 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 +000019249 ;;
19250 *)
cristyda16f162011-02-19 23:52:17 +000019251 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 +000019252 ;;
19253 esac
19254
19255 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19256 hardcode_libdir_separator_CXX=:
19257
19258 # Commands to make compiler produce verbose output that lists
19259 # what "hidden" libraries, object files and flags are used when
19260 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000019261 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000019262
19263 else
19264 # FIXME: insert proper C++ library support
19265 ld_shlibs_CXX=no
19266 fi
19267 ;;
19268 esac
19269 ;;
19270
19271 psos*)
19272 # FIXME: insert proper C++ library support
19273 ld_shlibs_CXX=no
19274 ;;
19275
19276 sunos4*)
19277 case $cc_basename in
19278 CC*)
19279 # Sun C++ 4.x
19280 # FIXME: insert proper C++ library support
19281 ld_shlibs_CXX=no
19282 ;;
19283 lcc*)
19284 # Lucid
19285 # FIXME: insert proper C++ library support
19286 ld_shlibs_CXX=no
19287 ;;
19288 *)
19289 # FIXME: insert proper C++ library support
19290 ld_shlibs_CXX=no
19291 ;;
19292 esac
19293 ;;
19294
19295 solaris*)
19296 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019297 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019298 # Sun C++ 4.2, 5.x and Centerline C++
19299 archive_cmds_need_lc_CXX=yes
19300 no_undefined_flag_CXX=' -zdefs'
19301 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19302 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19303 $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'
19304
19305 hardcode_libdir_flag_spec_CXX='-R$libdir'
19306 hardcode_shlibpath_var_CXX=no
19307 case $host_os in
19308 solaris2.[0-5] | solaris2.[0-5].*) ;;
19309 *)
19310 # The compiler driver will combine and reorder linker options,
19311 # but understands `-z linker_flag'.
19312 # Supported since Solaris 2.6 (maybe 2.5.1?)
19313 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19314 ;;
19315 esac
19316 link_all_deplibs_CXX=yes
19317
cristy0c60a692010-11-04 01:09:47 +000019318 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000019319
19320 # Archives containing C++ object files must be created using
19321 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19322 # necessary to make sure instantiated templates are included
19323 # in the archive.
19324 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19325 ;;
19326 gcx*)
19327 # Green Hills C++ Compiler
19328 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19329
19330 # The C++ compiler must be used to create the archive.
19331 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19332 ;;
19333 *)
19334 # GNU C++ compiler with Solaris linker
19335 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19336 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19337 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000019338 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 +000019339 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 +000019340 $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 +000019341
19342 # Commands to make compiler produce verbose output that lists
19343 # what "hidden" libraries, object files and flags are used when
19344 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000019345 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000019346 else
19347 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19348 # platform.
19349 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19350 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19351 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19352
19353 # Commands to make compiler produce verbose output that lists
19354 # what "hidden" libraries, object files and flags are used when
19355 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000019356 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000019357 fi
19358
19359 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19360 case $host_os in
19361 solaris2.[0-5] | solaris2.[0-5].*) ;;
19362 *)
19363 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19364 ;;
19365 esac
19366 fi
19367 ;;
19368 esac
19369 ;;
19370
19371 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19372 no_undefined_flag_CXX='${wl}-z,text'
19373 archive_cmds_need_lc_CXX=no
19374 hardcode_shlibpath_var_CXX=no
19375 runpath_var='LD_RUN_PATH'
19376
19377 case $cc_basename in
19378 CC*)
19379 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19380 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19381 ;;
19382 *)
19383 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19384 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19385 ;;
19386 esac
19387 ;;
19388
19389 sysv5* | sco3.2v5* | sco5v6*)
19390 # Note: We can NOT use -z defs as we might desire, because we do not
19391 # link with -lc, and that would cause any symbols used from libc to
19392 # always be unresolved, which means just about no library would
19393 # ever link correctly. If we're not using GNU ld we use -z text
19394 # though, which does catch some bad symbols but isn't as heavy-handed
19395 # as -z defs.
19396 no_undefined_flag_CXX='${wl}-z,text'
19397 allow_undefined_flag_CXX='${wl}-z,nodefs'
19398 archive_cmds_need_lc_CXX=no
19399 hardcode_shlibpath_var_CXX=no
19400 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19401 hardcode_libdir_separator_CXX=':'
19402 link_all_deplibs_CXX=yes
19403 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19404 runpath_var='LD_RUN_PATH'
19405
19406 case $cc_basename in
19407 CC*)
19408 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19409 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 +000019410 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19411 '"$old_archive_cmds_CXX"
19412 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19413 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000019414 ;;
19415 *)
19416 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19417 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19418 ;;
19419 esac
19420 ;;
19421
19422 tandem*)
19423 case $cc_basename in
19424 NCC*)
19425 # NonStop-UX NCC 3.20
19426 # FIXME: insert proper C++ library support
19427 ld_shlibs_CXX=no
19428 ;;
19429 *)
19430 # FIXME: insert proper C++ library support
19431 ld_shlibs_CXX=no
19432 ;;
19433 esac
19434 ;;
19435
19436 vxworks*)
19437 # FIXME: insert proper C++ library support
19438 ld_shlibs_CXX=no
19439 ;;
19440
19441 *)
19442 # FIXME: insert proper C++ library support
19443 ld_shlibs_CXX=no
19444 ;;
19445 esac
19446
19447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19448$as_echo "$ld_shlibs_CXX" >&6; }
19449 test "$ld_shlibs_CXX" = no && can_build_shared=no
19450
19451 GCC_CXX="$GXX"
19452 LD_CXX="$LD"
19453
19454 ## CAVEAT EMPTOR:
19455 ## There is no encapsulation within the following macros, do not change
19456 ## the running order or otherwise move them around unless you know exactly
19457 ## what you are doing...
19458 # Dependencies to place before and after the object being linked:
19459predep_objects_CXX=
19460postdep_objects_CXX=
19461predeps_CXX=
19462postdeps_CXX=
19463compiler_lib_search_path_CXX=
19464
19465cat > conftest.$ac_ext <<_LT_EOF
19466class Foo
19467{
19468public:
19469 Foo (void) { a = 0; }
19470private:
19471 int a;
19472};
19473_LT_EOF
19474
cristyda16f162011-02-19 23:52:17 +000019475
19476_lt_libdeps_save_CFLAGS=$CFLAGS
19477case "$CC $CFLAGS " in #(
19478*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
19479*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
cristy99bd5232011-12-07 14:38:20 +000019480*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
cristyda16f162011-02-19 23:52:17 +000019481esac
19482
cristy73bd4a52010-10-05 11:24:23 +000019483if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19484 (eval $ac_compile) 2>&5
19485 ac_status=$?
19486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19487 test $ac_status = 0; }; then
19488 # Parse the compiler output and extract the necessary
19489 # objects, libraries and library flags.
19490
19491 # Sentinel used to keep track of whether or not we are before
19492 # the conftest object file.
19493 pre_test_object_deps_done=no
19494
19495 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000019496 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000019497
19498 -L* | -R* | -l*)
19499 # Some compilers place space between "-{L,R}" and the path.
19500 # Remove the space.
19501 if test $p = "-L" ||
19502 test $p = "-R"; then
19503 prev=$p
19504 continue
cristy73bd4a52010-10-05 11:24:23 +000019505 fi
19506
cristyda16f162011-02-19 23:52:17 +000019507 # Expand the sysroot to ease extracting the directories later.
19508 if test -z "$prev"; then
19509 case $p in
19510 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
19511 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
19512 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
19513 esac
19514 fi
19515 case $p in
19516 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
19517 esac
cristy73bd4a52010-10-05 11:24:23 +000019518 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000019519 case ${prev} in
19520 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000019521 # Internal compiler library paths should come after those
19522 # provided the user. The postdeps already come after the
19523 # user supplied libs so there is no need to process them.
19524 if test -z "$compiler_lib_search_path_CXX"; then
19525 compiler_lib_search_path_CXX="${prev}${p}"
19526 else
19527 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19528 fi
19529 ;;
19530 # The "-l" case would never come before the object being
19531 # linked, so don't bother handling this case.
19532 esac
19533 else
19534 if test -z "$postdeps_CXX"; then
19535 postdeps_CXX="${prev}${p}"
19536 else
19537 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19538 fi
19539 fi
cristyda16f162011-02-19 23:52:17 +000019540 prev=
cristy73bd4a52010-10-05 11:24:23 +000019541 ;;
19542
cristyda16f162011-02-19 23:52:17 +000019543 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000019544 *.$objext)
19545 # This assumes that the test object file only shows up
19546 # once in the compiler output.
19547 if test "$p" = "conftest.$objext"; then
19548 pre_test_object_deps_done=yes
19549 continue
19550 fi
19551
19552 if test "$pre_test_object_deps_done" = no; then
19553 if test -z "$predep_objects_CXX"; then
19554 predep_objects_CXX="$p"
19555 else
19556 predep_objects_CXX="$predep_objects_CXX $p"
19557 fi
19558 else
19559 if test -z "$postdep_objects_CXX"; then
19560 postdep_objects_CXX="$p"
19561 else
19562 postdep_objects_CXX="$postdep_objects_CXX $p"
19563 fi
19564 fi
19565 ;;
19566
19567 *) ;; # Ignore the rest.
19568
19569 esac
19570 done
19571
19572 # Clean up.
19573 rm -f a.out a.exe
19574else
19575 echo "libtool.m4: error: problem compiling CXX test program"
19576fi
19577
19578$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000019579CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000019580
19581# PORTME: override above test on systems where it is broken
19582case $host_os in
19583interix[3-9]*)
19584 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19585 # hack all around it, let's just trust "g++" to DTRT.
19586 predep_objects_CXX=
19587 postdep_objects_CXX=
19588 postdeps_CXX=
19589 ;;
19590
19591linux*)
19592 case `$CC -V 2>&1 | sed 5q` in
19593 *Sun\ C*)
19594 # Sun C++ 5.9
19595
19596 # The more standards-conforming stlport4 library is
19597 # incompatible with the Cstd library. Avoid specifying
19598 # it if it's in CXXFLAGS. Ignore libCrun as
19599 # -library=stlport4 depends on it.
19600 case " $CXX $CXXFLAGS " in
19601 *" -library=stlport4 "*)
19602 solaris_use_stlport4=yes
19603 ;;
19604 esac
19605
19606 if test "$solaris_use_stlport4" != yes; then
19607 postdeps_CXX='-library=Cstd -library=Crun'
19608 fi
19609 ;;
19610 esac
19611 ;;
19612
19613solaris*)
19614 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019615 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019616 # The more standards-conforming stlport4 library is
19617 # incompatible with the Cstd library. Avoid specifying
19618 # it if it's in CXXFLAGS. Ignore libCrun as
19619 # -library=stlport4 depends on it.
19620 case " $CXX $CXXFLAGS " in
19621 *" -library=stlport4 "*)
19622 solaris_use_stlport4=yes
19623 ;;
19624 esac
19625
19626 # Adding this requires a known-good setup of shared libraries for
19627 # Sun compiler versions before 5.6, else PIC objects from an old
19628 # archive will be linked into the output, leading to subtle bugs.
19629 if test "$solaris_use_stlport4" != yes; then
19630 postdeps_CXX='-library=Cstd -library=Crun'
19631 fi
19632 ;;
19633 esac
19634 ;;
19635esac
19636
19637
19638case " $postdeps_CXX " in
19639*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19640esac
19641 compiler_lib_search_dirs_CXX=
19642if test -n "${compiler_lib_search_path_CXX}"; then
19643 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19644fi
19645
19646
19647
19648
19649
19650
19651
19652
19653
19654
19655
19656
19657
19658
19659
19660
19661
19662
19663
19664
19665
19666
19667
19668
19669
19670
19671
19672
19673
19674
19675
19676 lt_prog_compiler_wl_CXX=
19677lt_prog_compiler_pic_CXX=
19678lt_prog_compiler_static_CXX=
19679
cristy73bd4a52010-10-05 11:24:23 +000019680
19681 # C++ specific cases for pic, static, wl, etc.
19682 if test "$GXX" = yes; then
19683 lt_prog_compiler_wl_CXX='-Wl,'
19684 lt_prog_compiler_static_CXX='-static'
19685
19686 case $host_os in
19687 aix*)
19688 # All AIX code is PIC.
19689 if test "$host_cpu" = ia64; then
19690 # AIX 5 now supports IA64 processor
19691 lt_prog_compiler_static_CXX='-Bstatic'
19692 fi
19693 ;;
19694
19695 amigaos*)
19696 case $host_cpu in
19697 powerpc)
19698 # see comment about AmigaOS4 .so support
19699 lt_prog_compiler_pic_CXX='-fPIC'
19700 ;;
19701 m68k)
19702 # FIXME: we need at least 68020 code to build shared libraries, but
19703 # adding the `-m68020' flag to GCC prevents building anything better,
19704 # like `-m68040'.
19705 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19706 ;;
19707 esac
19708 ;;
19709
19710 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19711 # PIC is the default for these OSes.
19712 ;;
19713 mingw* | cygwin* | os2* | pw32* | cegcc*)
19714 # This hack is so that the source file can tell whether it is being
19715 # built for inclusion in a dll (and should export symbols for example).
19716 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19717 # (--disable-auto-import) libraries
19718 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19719 ;;
19720 darwin* | rhapsody*)
19721 # PIC is the default on this platform
19722 # Common symbols not allowed in MH_DYLIB files
19723 lt_prog_compiler_pic_CXX='-fno-common'
19724 ;;
19725 *djgpp*)
19726 # DJGPP does not support shared libraries at all
19727 lt_prog_compiler_pic_CXX=
19728 ;;
cristy0c60a692010-11-04 01:09:47 +000019729 haiku*)
19730 # PIC is the default for Haiku.
19731 # The "-static" flag exists, but is broken.
19732 lt_prog_compiler_static_CXX=
19733 ;;
cristy73bd4a52010-10-05 11:24:23 +000019734 interix[3-9]*)
19735 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19736 # Instead, we relocate shared libraries at runtime.
19737 ;;
19738 sysv4*MP*)
19739 if test -d /usr/nec; then
19740 lt_prog_compiler_pic_CXX=-Kconform_pic
19741 fi
19742 ;;
19743 hpux*)
19744 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19745 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19746 # sets the default TLS model and affects inlining.
19747 case $host_cpu in
19748 hppa*64*)
19749 ;;
19750 *)
19751 lt_prog_compiler_pic_CXX='-fPIC'
19752 ;;
19753 esac
19754 ;;
19755 *qnx* | *nto*)
19756 # QNX uses GNU C++, but need to define -shared option too, otherwise
19757 # it will coredump.
19758 lt_prog_compiler_pic_CXX='-fPIC -shared'
19759 ;;
19760 *)
19761 lt_prog_compiler_pic_CXX='-fPIC'
19762 ;;
19763 esac
19764 else
19765 case $host_os in
19766 aix[4-9]*)
19767 # All AIX code is PIC.
19768 if test "$host_cpu" = ia64; then
19769 # AIX 5 now supports IA64 processor
19770 lt_prog_compiler_static_CXX='-Bstatic'
19771 else
19772 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19773 fi
19774 ;;
19775 chorus*)
19776 case $cc_basename in
19777 cxch68*)
19778 # Green Hills C++ Compiler
19779 # _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"
19780 ;;
19781 esac
19782 ;;
cristyda16f162011-02-19 23:52:17 +000019783 mingw* | cygwin* | os2* | pw32* | cegcc*)
19784 # This hack is so that the source file can tell whether it is being
19785 # built for inclusion in a dll (and should export symbols for example).
19786 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19787 ;;
cristy73bd4a52010-10-05 11:24:23 +000019788 dgux*)
19789 case $cc_basename in
19790 ec++*)
19791 lt_prog_compiler_pic_CXX='-KPIC'
19792 ;;
19793 ghcx*)
19794 # Green Hills C++ Compiler
19795 lt_prog_compiler_pic_CXX='-pic'
19796 ;;
19797 *)
19798 ;;
19799 esac
19800 ;;
19801 freebsd* | dragonfly*)
19802 # FreeBSD uses GNU C++
19803 ;;
19804 hpux9* | hpux10* | hpux11*)
19805 case $cc_basename in
19806 CC*)
19807 lt_prog_compiler_wl_CXX='-Wl,'
19808 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19809 if test "$host_cpu" != ia64; then
19810 lt_prog_compiler_pic_CXX='+Z'
19811 fi
19812 ;;
19813 aCC*)
19814 lt_prog_compiler_wl_CXX='-Wl,'
19815 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19816 case $host_cpu in
19817 hppa*64*|ia64*)
19818 # +Z the default
19819 ;;
19820 *)
19821 lt_prog_compiler_pic_CXX='+Z'
19822 ;;
19823 esac
19824 ;;
19825 *)
19826 ;;
19827 esac
19828 ;;
19829 interix*)
19830 # This is c89, which is MS Visual C++ (no shared libs)
19831 # Anyone wants to do a port?
19832 ;;
19833 irix5* | irix6* | nonstopux*)
19834 case $cc_basename in
19835 CC*)
19836 lt_prog_compiler_wl_CXX='-Wl,'
19837 lt_prog_compiler_static_CXX='-non_shared'
19838 # CC pic flag -KPIC is the default.
19839 ;;
19840 *)
19841 ;;
19842 esac
19843 ;;
cristy0c60a692010-11-04 01:09:47 +000019844 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000019845 case $cc_basename in
19846 KCC*)
19847 # KAI C++ Compiler
19848 lt_prog_compiler_wl_CXX='--backend -Wl,'
19849 lt_prog_compiler_pic_CXX='-fPIC'
19850 ;;
19851 ecpc* )
19852 # old Intel C++ for x86_64 which still supported -KPIC.
19853 lt_prog_compiler_wl_CXX='-Wl,'
19854 lt_prog_compiler_pic_CXX='-KPIC'
19855 lt_prog_compiler_static_CXX='-static'
19856 ;;
19857 icpc* )
19858 # Intel C++, used to be incompatible with GCC.
19859 # ICC 10 doesn't accept -KPIC any more.
19860 lt_prog_compiler_wl_CXX='-Wl,'
19861 lt_prog_compiler_pic_CXX='-fPIC'
19862 lt_prog_compiler_static_CXX='-static'
19863 ;;
19864 pgCC* | pgcpp*)
19865 # Portland Group C++ compiler
19866 lt_prog_compiler_wl_CXX='-Wl,'
19867 lt_prog_compiler_pic_CXX='-fpic'
19868 lt_prog_compiler_static_CXX='-Bstatic'
19869 ;;
19870 cxx*)
19871 # Compaq C++
19872 # Make sure the PIC flag is empty. It appears that all Alpha
19873 # Linux and Compaq Tru64 Unix objects are PIC.
19874 lt_prog_compiler_pic_CXX=
19875 lt_prog_compiler_static_CXX='-non_shared'
19876 ;;
cristy0c60a692010-11-04 01:09:47 +000019877 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19878 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000019879 lt_prog_compiler_wl_CXX='-Wl,'
19880 lt_prog_compiler_pic_CXX='-qpic'
19881 lt_prog_compiler_static_CXX='-qstaticlink'
19882 ;;
19883 *)
19884 case `$CC -V 2>&1 | sed 5q` in
19885 *Sun\ C*)
19886 # Sun C++ 5.9
19887 lt_prog_compiler_pic_CXX='-KPIC'
19888 lt_prog_compiler_static_CXX='-Bstatic'
19889 lt_prog_compiler_wl_CXX='-Qoption ld '
19890 ;;
19891 esac
19892 ;;
19893 esac
19894 ;;
19895 lynxos*)
19896 ;;
19897 m88k*)
19898 ;;
19899 mvs*)
19900 case $cc_basename in
19901 cxx*)
19902 lt_prog_compiler_pic_CXX='-W c,exportall'
19903 ;;
19904 *)
19905 ;;
19906 esac
19907 ;;
19908 netbsd*)
19909 ;;
19910 *qnx* | *nto*)
19911 # QNX uses GNU C++, but need to define -shared option too, otherwise
19912 # it will coredump.
19913 lt_prog_compiler_pic_CXX='-fPIC -shared'
19914 ;;
19915 osf3* | osf4* | osf5*)
19916 case $cc_basename in
19917 KCC*)
19918 lt_prog_compiler_wl_CXX='--backend -Wl,'
19919 ;;
19920 RCC*)
19921 # Rational C++ 2.4.1
19922 lt_prog_compiler_pic_CXX='-pic'
19923 ;;
19924 cxx*)
19925 # Digital/Compaq C++
19926 lt_prog_compiler_wl_CXX='-Wl,'
19927 # Make sure the PIC flag is empty. It appears that all Alpha
19928 # Linux and Compaq Tru64 Unix objects are PIC.
19929 lt_prog_compiler_pic_CXX=
19930 lt_prog_compiler_static_CXX='-non_shared'
19931 ;;
19932 *)
19933 ;;
19934 esac
19935 ;;
19936 psos*)
19937 ;;
19938 solaris*)
19939 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019940 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019941 # Sun C++ 4.2, 5.x and Centerline C++
19942 lt_prog_compiler_pic_CXX='-KPIC'
19943 lt_prog_compiler_static_CXX='-Bstatic'
19944 lt_prog_compiler_wl_CXX='-Qoption ld '
19945 ;;
19946 gcx*)
19947 # Green Hills C++ Compiler
19948 lt_prog_compiler_pic_CXX='-PIC'
19949 ;;
19950 *)
19951 ;;
19952 esac
19953 ;;
19954 sunos4*)
19955 case $cc_basename in
19956 CC*)
19957 # Sun C++ 4.x
19958 lt_prog_compiler_pic_CXX='-pic'
19959 lt_prog_compiler_static_CXX='-Bstatic'
19960 ;;
19961 lcc*)
19962 # Lucid
19963 lt_prog_compiler_pic_CXX='-pic'
19964 ;;
19965 *)
19966 ;;
19967 esac
19968 ;;
19969 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19970 case $cc_basename in
19971 CC*)
19972 lt_prog_compiler_wl_CXX='-Wl,'
19973 lt_prog_compiler_pic_CXX='-KPIC'
19974 lt_prog_compiler_static_CXX='-Bstatic'
19975 ;;
19976 esac
19977 ;;
19978 tandem*)
19979 case $cc_basename in
19980 NCC*)
19981 # NonStop-UX NCC 3.20
19982 lt_prog_compiler_pic_CXX='-KPIC'
19983 ;;
19984 *)
19985 ;;
19986 esac
19987 ;;
19988 vxworks*)
19989 ;;
19990 *)
19991 lt_prog_compiler_can_build_shared_CXX=no
19992 ;;
19993 esac
19994 fi
19995
19996case $host_os in
19997 # For platforms which do not support PIC, -DPIC is meaningless:
19998 *djgpp*)
19999 lt_prog_compiler_pic_CXX=
20000 ;;
20001 *)
20002 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20003 ;;
20004esac
cristy73bd4a52010-10-05 11:24:23 +000020005
cristyda16f162011-02-19 23:52:17 +000020006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20007$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20008if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
20009 $as_echo_n "(cached) " >&6
20010else
20011 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
20012fi
20013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
20014$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
20015lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000020016
20017#
20018# Check to make sure the PIC flag actually works.
20019#
20020if test -n "$lt_prog_compiler_pic_CXX"; then
20021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20022$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020023if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020024 $as_echo_n "(cached) " >&6
20025else
20026 lt_cv_prog_compiler_pic_works_CXX=no
20027 ac_outfile=conftest.$ac_objext
20028 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20029 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20030 # Insert the option either (1) after the last *FLAGS variable, or
20031 # (2) before a word containing "conftest.", or (3) at the end.
20032 # Note that $ac_compile itself does not contain backslashes and begins
20033 # with a dollar sign (not a hyphen), so the echo should work correctly.
20034 # The option is referenced via a variable to avoid confusing sed.
20035 lt_compile=`echo "$ac_compile" | $SED \
20036 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20037 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20038 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000020039 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000020040 (eval "$lt_compile" 2>conftest.err)
20041 ac_status=$?
20042 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000020043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000020044 if (exit $ac_status) && test -s "$ac_outfile"; then
20045 # The compiler can only warn and ignore the option if not recognized
20046 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000020047 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000020048 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20049 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20050 lt_cv_prog_compiler_pic_works_CXX=yes
20051 fi
20052 fi
20053 $RM conftest*
20054
20055fi
20056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20057$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20058
20059if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20060 case $lt_prog_compiler_pic_CXX in
20061 "" | " "*) ;;
20062 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20063 esac
20064else
20065 lt_prog_compiler_pic_CXX=
20066 lt_prog_compiler_can_build_shared_CXX=no
20067fi
20068
20069fi
20070
20071
20072
cristyda16f162011-02-19 23:52:17 +000020073
20074
cristy73bd4a52010-10-05 11:24:23 +000020075#
20076# Check to make sure the static flag actually works.
20077#
20078wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20080$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020081if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020082 $as_echo_n "(cached) " >&6
20083else
20084 lt_cv_prog_compiler_static_works_CXX=no
20085 save_LDFLAGS="$LDFLAGS"
20086 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20087 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20088 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20089 # The linker can only warn and ignore the option if not recognized
20090 # So say no if there are warnings
20091 if test -s conftest.err; then
20092 # Append any errors to the config.log.
20093 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000020094 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000020095 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20096 if diff conftest.exp conftest.er2 >/dev/null; then
20097 lt_cv_prog_compiler_static_works_CXX=yes
20098 fi
20099 else
20100 lt_cv_prog_compiler_static_works_CXX=yes
20101 fi
20102 fi
20103 $RM -r conftest*
20104 LDFLAGS="$save_LDFLAGS"
20105
20106fi
20107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20108$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20109
20110if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20111 :
20112else
20113 lt_prog_compiler_static_CXX=
20114fi
20115
20116
20117
20118
20119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20120$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020121if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020122 $as_echo_n "(cached) " >&6
20123else
20124 lt_cv_prog_compiler_c_o_CXX=no
20125 $RM -r conftest 2>/dev/null
20126 mkdir conftest
20127 cd conftest
20128 mkdir out
20129 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20130
20131 lt_compiler_flag="-o out/conftest2.$ac_objext"
20132 # Insert the option either (1) after the last *FLAGS variable, or
20133 # (2) before a word containing "conftest.", or (3) at the end.
20134 # Note that $ac_compile itself does not contain backslashes and begins
20135 # with a dollar sign (not a hyphen), so the echo should work correctly.
20136 lt_compile=`echo "$ac_compile" | $SED \
20137 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20138 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20139 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000020140 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000020141 (eval "$lt_compile" 2>out/conftest.err)
20142 ac_status=$?
20143 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000020144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000020145 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20146 then
20147 # The compiler can only warn and ignore the option if not recognized
20148 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000020149 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000020150 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20151 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20152 lt_cv_prog_compiler_c_o_CXX=yes
20153 fi
20154 fi
20155 chmod u+w . 2>&5
20156 $RM conftest*
20157 # SGI C++ compiler will create directory out/ii_files/ for
20158 # template instantiation
20159 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20160 $RM out/* && rmdir out
20161 cd ..
20162 $RM -r conftest
20163 $RM conftest*
20164
20165fi
20166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20167$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20168
20169
20170
20171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20172$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020173if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020174 $as_echo_n "(cached) " >&6
20175else
20176 lt_cv_prog_compiler_c_o_CXX=no
20177 $RM -r conftest 2>/dev/null
20178 mkdir conftest
20179 cd conftest
20180 mkdir out
20181 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20182
20183 lt_compiler_flag="-o out/conftest2.$ac_objext"
20184 # Insert the option either (1) after the last *FLAGS variable, or
20185 # (2) before a word containing "conftest.", or (3) at the end.
20186 # Note that $ac_compile itself does not contain backslashes and begins
20187 # with a dollar sign (not a hyphen), so the echo should work correctly.
20188 lt_compile=`echo "$ac_compile" | $SED \
20189 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20190 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20191 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000020192 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000020193 (eval "$lt_compile" 2>out/conftest.err)
20194 ac_status=$?
20195 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000020196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000020197 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20198 then
20199 # The compiler can only warn and ignore the option if not recognized
20200 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000020201 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000020202 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20203 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20204 lt_cv_prog_compiler_c_o_CXX=yes
20205 fi
20206 fi
20207 chmod u+w . 2>&5
20208 $RM conftest*
20209 # SGI C++ compiler will create directory out/ii_files/ for
20210 # template instantiation
20211 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20212 $RM out/* && rmdir out
20213 cd ..
20214 $RM -r conftest
20215 $RM conftest*
20216
20217fi
20218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20219$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20220
20221
20222
20223
20224hard_links="nottested"
20225if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20226 # do not overwrite the value of need_locks provided by the user
20227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20228$as_echo_n "checking if we can lock with hard links... " >&6; }
20229 hard_links=yes
20230 $RM conftest*
20231 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20232 touch conftest.a
20233 ln conftest.a conftest.b 2>&5 || hard_links=no
20234 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20236$as_echo "$hard_links" >&6; }
20237 if test "$hard_links" = no; then
20238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20239$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20240 need_locks=warn
20241 fi
20242else
20243 need_locks=no
20244fi
20245
20246
20247
20248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20249$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20250
20251 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000020252 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000020253 case $host_os in
20254 aix[4-9]*)
20255 # If we're using GNU nm, then we don't want the "-C" option.
20256 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000020257 # Also, AIX nm treats weak defined symbols like other global defined
20258 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000020259 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000020260 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 +000020261 else
20262 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'
20263 fi
20264 ;;
20265 pw32*)
20266 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000020267 ;;
cristy73bd4a52010-10-05 11:24:23 +000020268 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000020269 case $cc_basename in
cristy99bd5232011-12-07 14:38:20 +000020270 cl*)
20271 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
20272 ;;
cristyda16f162011-02-19 23:52:17 +000020273 *)
20274 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'
20275 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
20276 ;;
20277 esac
20278 ;;
cristy73bd4a52010-10-05 11:24:23 +000020279 *)
20280 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000020281 ;;
cristy73bd4a52010-10-05 11:24:23 +000020282 esac
cristy73bd4a52010-10-05 11:24:23 +000020283
20284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20285$as_echo "$ld_shlibs_CXX" >&6; }
20286test "$ld_shlibs_CXX" = no && can_build_shared=no
20287
20288with_gnu_ld_CXX=$with_gnu_ld
20289
20290
20291
20292
20293
20294
20295#
20296# Do we need to explicitly link libc?
20297#
20298case "x$archive_cmds_need_lc_CXX" in
20299x|xyes)
20300 # Assume -lc should be added
20301 archive_cmds_need_lc_CXX=yes
20302
20303 if test "$enable_shared" = yes && test "$GCC" = yes; then
20304 case $archive_cmds_CXX in
20305 *'~'*)
20306 # FIXME: we may have to deal with multi-command sequences.
20307 ;;
20308 '$CC '*)
20309 # Test whether the compiler implicitly links with -lc since on some
20310 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20311 # to ld, don't add -lc before -lgcc.
20312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20313$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020314if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000020315 $as_echo_n "(cached) " >&6
20316else
20317 $RM conftest*
20318 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000020319
cristy0c60a692010-11-04 01:09:47 +000020320 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000020321 (eval $ac_compile) 2>&5
20322 ac_status=$?
20323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20324 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000020325 soname=conftest
20326 lib=conftest
20327 libobjs=conftest.$ac_objext
20328 deplibs=
20329 wl=$lt_prog_compiler_wl_CXX
20330 pic_flag=$lt_prog_compiler_pic_CXX
20331 compiler_flags=-v
20332 linker_flags=-v
20333 verstring=
20334 output_objdir=.
20335 libname=conftest
20336 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20337 allow_undefined_flag_CXX=
20338 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 +000020339 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20340 ac_status=$?
20341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20342 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000020343 then
20344 lt_cv_archive_cmds_need_lc_CXX=no
20345 else
20346 lt_cv_archive_cmds_need_lc_CXX=yes
20347 fi
20348 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20349 else
20350 cat conftest.err 1>&5
20351 fi
20352 $RM conftest*
20353
20354fi
20355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20356$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20357 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000020358 ;;
20359 esac
20360 fi
20361 ;;
20362esac
20363
20364
20365
20366
20367
20368
20369
20370
20371
20372
20373
20374
20375
20376
20377
20378
20379
20380
20381
20382
20383
20384
20385
20386
20387
20388
20389
20390
20391
20392
20393
20394
20395
20396
20397
20398
20399
20400
20401
20402
20403
20404
20405
20406
20407
20408
20409
20410
20411
20412
20413
20414
20415
20416
20417
20418
20419
20420
20421
20422
20423
20424
cristy73bd4a52010-10-05 11:24:23 +000020425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20426$as_echo_n "checking dynamic linker characteristics... " >&6; }
20427
20428library_names_spec=
20429libname_spec='lib$name'
20430soname_spec=
20431shrext_cmds=".so"
20432postinstall_cmds=
20433postuninstall_cmds=
20434finish_cmds=
20435finish_eval=
20436shlibpath_var=
20437shlibpath_overrides_runpath=unknown
20438version_type=none
20439dynamic_linker="$host_os ld.so"
20440sys_lib_dlsearch_path_spec="/lib /usr/lib"
20441need_lib_prefix=unknown
20442hardcode_into_libs=no
20443
20444# when you set need_version to no, make sure it does not cause -set_version
20445# flags to be left without arguments
20446need_version=unknown
20447
20448case $host_os in
20449aix3*)
cristy99bd5232011-12-07 14:38:20 +000020450 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020451 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20452 shlibpath_var=LIBPATH
20453
20454 # AIX 3 has no versioning support, so we append a major version to the name.
20455 soname_spec='${libname}${release}${shared_ext}$major'
20456 ;;
20457
20458aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000020459 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020460 need_lib_prefix=no
20461 need_version=no
20462 hardcode_into_libs=yes
20463 if test "$host_cpu" = ia64; then
20464 # AIX 5 supports IA64
20465 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20466 shlibpath_var=LD_LIBRARY_PATH
20467 else
20468 # With GCC up to 2.95.x, collect2 would create an import file
20469 # for dependence libraries. The import file would start with
20470 # the line `#! .'. This would cause the generated library to
20471 # depend on `.', always an invalid library. This was fixed in
20472 # development snapshots of GCC prior to 3.0.
20473 case $host_os in
20474 aix4 | aix4.[01] | aix4.[01].*)
20475 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20476 echo ' yes '
20477 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20478 :
20479 else
20480 can_build_shared=no
20481 fi
20482 ;;
20483 esac
20484 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20485 # soname into executable. Probably we can add versioning support to
20486 # collect2, so additional links can be useful in future.
20487 if test "$aix_use_runtimelinking" = yes; then
20488 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20489 # instead of lib<name>.a to let people know that these are not
20490 # typical AIX shared libraries.
20491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20492 else
20493 # We preserve .a as extension for shared libraries through AIX4.2
20494 # and later when we are not doing run time linking.
20495 library_names_spec='${libname}${release}.a $libname.a'
20496 soname_spec='${libname}${release}${shared_ext}$major'
20497 fi
20498 shlibpath_var=LIBPATH
20499 fi
20500 ;;
20501
20502amigaos*)
20503 case $host_cpu in
20504 powerpc)
20505 # Since July 2007 AmigaOS4 officially supports .so libraries.
20506 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20508 ;;
20509 m68k)
20510 library_names_spec='$libname.ixlibrary $libname.a'
20511 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000020512 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 +000020513 ;;
20514 esac
20515 ;;
20516
20517beos*)
20518 library_names_spec='${libname}${shared_ext}'
20519 dynamic_linker="$host_os ld.so"
20520 shlibpath_var=LIBRARY_PATH
20521 ;;
20522
20523bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000020524 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020525 need_version=no
20526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20527 soname_spec='${libname}${release}${shared_ext}$major'
20528 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20529 shlibpath_var=LD_LIBRARY_PATH
20530 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20531 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20532 # the default ld.so.conf also contains /usr/contrib/lib and
20533 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20534 # libtool to hard-code these into programs
20535 ;;
20536
20537cygwin* | mingw* | pw32* | cegcc*)
20538 version_type=windows
20539 shrext_cmds=".dll"
20540 need_version=no
20541 need_lib_prefix=no
20542
cristyda16f162011-02-19 23:52:17 +000020543 case $GCC,$cc_basename in
20544 yes,*)
20545 # gcc
cristy73bd4a52010-10-05 11:24:23 +000020546 library_names_spec='$libname.dll.a'
20547 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20548 postinstall_cmds='base_file=`basename \${file}`~
20549 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20550 dldir=$destdir/`dirname \$dlpath`~
20551 test -d \$dldir || mkdir -p \$dldir~
20552 $install_prog $dir/$dlname \$dldir/$dlname~
20553 chmod a+x \$dldir/$dlname~
20554 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20555 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20556 fi'
20557 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20558 dlpath=$dir/\$dldll~
20559 $RM \$dlpath'
20560 shlibpath_overrides_runpath=yes
20561
20562 case $host_os in
20563 cygwin*)
20564 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20565 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000020566
cristy73bd4a52010-10-05 11:24:23 +000020567 ;;
20568 mingw* | cegcc*)
20569 # MinGW DLLs use traditional 'lib' prefix
20570 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000020571 ;;
20572 pw32*)
20573 # pw32 DLLs use 'pw' prefix rather than 'lib'
20574 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20575 ;;
20576 esac
cristyda16f162011-02-19 23:52:17 +000020577 dynamic_linker='Win32 ld.exe'
20578 ;;
20579
20580 *,cl*)
20581 # Native MSVC
20582 libname_spec='$name'
20583 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20584 library_names_spec='${libname}.dll.lib'
20585
20586 case $build_os in
20587 mingw*)
20588 sys_lib_search_path_spec=
20589 lt_save_ifs=$IFS
20590 IFS=';'
20591 for lt_path in $LIB
20592 do
20593 IFS=$lt_save_ifs
20594 # Let DOS variable expansion print the short 8.3 style file name.
20595 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
20596 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
20597 done
20598 IFS=$lt_save_ifs
20599 # Convert to MSYS style.
20600 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
20601 ;;
20602 cygwin*)
20603 # Convert to unix form, then to dos form, then back to unix form
20604 # but this time dos style (no spaces!) so that the unix form looks
20605 # like /cygdrive/c/PROGRA~1:/cygdr...
20606 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
20607 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
20608 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20609 ;;
20610 *)
20611 sys_lib_search_path_spec="$LIB"
20612 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
20613 # It is most probably a Windows format PATH.
20614 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20615 else
20616 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20617 fi
20618 # FIXME: find the short name or the path components, as spaces are
20619 # common. (e.g. "Program Files" -> "PROGRA~1")
20620 ;;
20621 esac
20622
20623 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20624 postinstall_cmds='base_file=`basename \${file}`~
20625 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20626 dldir=$destdir/`dirname \$dlpath`~
20627 test -d \$dldir || mkdir -p \$dldir~
20628 $install_prog $dir/$dlname \$dldir/$dlname'
20629 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20630 dlpath=$dir/\$dldll~
20631 $RM \$dlpath'
20632 shlibpath_overrides_runpath=yes
20633 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000020634 ;;
20635
20636 *)
cristyda16f162011-02-19 23:52:17 +000020637 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000020638 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000020639 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000020640 ;;
20641 esac
cristy73bd4a52010-10-05 11:24:23 +000020642 # FIXME: first we should search . and the directory the executable is in
20643 shlibpath_var=PATH
20644 ;;
20645
20646darwin* | rhapsody*)
20647 dynamic_linker="$host_os dyld"
20648 version_type=darwin
20649 need_lib_prefix=no
20650 need_version=no
20651 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20652 soname_spec='${libname}${release}${major}$shared_ext'
20653 shlibpath_overrides_runpath=yes
20654 shlibpath_var=DYLD_LIBRARY_PATH
20655 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20656
20657 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20658 ;;
20659
20660dgux*)
cristy99bd5232011-12-07 14:38:20 +000020661 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020662 need_lib_prefix=no
20663 need_version=no
20664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20665 soname_spec='${libname}${release}${shared_ext}$major'
20666 shlibpath_var=LD_LIBRARY_PATH
20667 ;;
20668
cristy73bd4a52010-10-05 11:24:23 +000020669freebsd* | dragonfly*)
20670 # DragonFly does not have aout. When/if they implement a new
20671 # versioning mechanism, adjust this.
20672 if test -x /usr/bin/objformat; then
20673 objformat=`/usr/bin/objformat`
20674 else
20675 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020676 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000020677 *) objformat=elf ;;
20678 esac
20679 fi
20680 version_type=freebsd-$objformat
20681 case $version_type in
20682 freebsd-elf*)
20683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20684 need_version=no
20685 need_lib_prefix=no
20686 ;;
20687 freebsd-*)
20688 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20689 need_version=yes
20690 ;;
20691 esac
20692 shlibpath_var=LD_LIBRARY_PATH
20693 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020694 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000020695 shlibpath_overrides_runpath=yes
20696 ;;
20697 freebsd3.[01]* | freebsdelf3.[01]*)
20698 shlibpath_overrides_runpath=yes
20699 hardcode_into_libs=yes
20700 ;;
20701 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20702 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20703 shlibpath_overrides_runpath=no
20704 hardcode_into_libs=yes
20705 ;;
20706 *) # from 4.6 on, and DragonFly
20707 shlibpath_overrides_runpath=yes
20708 hardcode_into_libs=yes
20709 ;;
20710 esac
20711 ;;
20712
20713gnu*)
cristy99bd5232011-12-07 14:38:20 +000020714 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020715 need_lib_prefix=no
20716 need_version=no
20717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20718 soname_spec='${libname}${release}${shared_ext}$major'
20719 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000020720 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000020721 hardcode_into_libs=yes
20722 ;;
20723
cristy0c60a692010-11-04 01:09:47 +000020724haiku*)
cristy99bd5232011-12-07 14:38:20 +000020725 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000020726 need_lib_prefix=no
20727 need_version=no
20728 dynamic_linker="$host_os runtime_loader"
20729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20730 soname_spec='${libname}${release}${shared_ext}$major'
20731 shlibpath_var=LIBRARY_PATH
20732 shlibpath_overrides_runpath=yes
20733 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
20734 hardcode_into_libs=yes
20735 ;;
20736
cristy73bd4a52010-10-05 11:24:23 +000020737hpux9* | hpux10* | hpux11*)
20738 # Give a soname corresponding to the major version so that dld.sl refuses to
20739 # link against other versions.
20740 version_type=sunos
20741 need_lib_prefix=no
20742 need_version=no
20743 case $host_cpu in
20744 ia64*)
20745 shrext_cmds='.so'
20746 hardcode_into_libs=yes
20747 dynamic_linker="$host_os dld.so"
20748 shlibpath_var=LD_LIBRARY_PATH
20749 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20751 soname_spec='${libname}${release}${shared_ext}$major'
20752 if test "X$HPUX_IA64_MODE" = X32; then
20753 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20754 else
20755 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20756 fi
20757 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20758 ;;
20759 hppa*64*)
20760 shrext_cmds='.sl'
20761 hardcode_into_libs=yes
20762 dynamic_linker="$host_os dld.sl"
20763 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20764 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20766 soname_spec='${libname}${release}${shared_ext}$major'
20767 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20768 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20769 ;;
20770 *)
20771 shrext_cmds='.sl'
20772 dynamic_linker="$host_os dld.sl"
20773 shlibpath_var=SHLIB_PATH
20774 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20776 soname_spec='${libname}${release}${shared_ext}$major'
20777 ;;
20778 esac
cristy0c60a692010-11-04 01:09:47 +000020779 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000020780 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000020781 # or fails outright, so override atomically:
20782 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000020783 ;;
20784
20785interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000020786 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020787 need_lib_prefix=no
20788 need_version=no
20789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20790 soname_spec='${libname}${release}${shared_ext}$major'
20791 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20792 shlibpath_var=LD_LIBRARY_PATH
20793 shlibpath_overrides_runpath=no
20794 hardcode_into_libs=yes
20795 ;;
20796
20797irix5* | irix6* | nonstopux*)
20798 case $host_os in
20799 nonstopux*) version_type=nonstopux ;;
20800 *)
20801 if test "$lt_cv_prog_gnu_ld" = yes; then
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 else
20804 version_type=irix
20805 fi ;;
20806 esac
20807 need_lib_prefix=no
20808 need_version=no
20809 soname_spec='${libname}${release}${shared_ext}$major'
20810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20811 case $host_os in
20812 irix5* | nonstopux*)
20813 libsuff= shlibsuff=
20814 ;;
20815 *)
20816 case $LD in # libtool.m4 will add one of these switches to LD
20817 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20818 libsuff= shlibsuff= libmagic=32-bit;;
20819 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20820 libsuff=32 shlibsuff=N32 libmagic=N32;;
20821 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20822 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20823 *) libsuff= shlibsuff= libmagic=never-match;;
20824 esac
20825 ;;
20826 esac
20827 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20828 shlibpath_overrides_runpath=no
20829 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20830 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20831 hardcode_into_libs=yes
20832 ;;
20833
20834# No shared lib support for Linux oldld, aout, or coff.
20835linux*oldld* | linux*aout* | linux*coff*)
20836 dynamic_linker=no
20837 ;;
20838
cristy99bd5232011-12-07 14:38:20 +000020839# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000020840linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000020841 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020842 need_lib_prefix=no
20843 need_version=no
20844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20845 soname_spec='${libname}${release}${shared_ext}$major'
20846 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20847 shlibpath_var=LD_LIBRARY_PATH
20848 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000020849
cristy73bd4a52010-10-05 11:24:23 +000020850 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000020851 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000020852 $as_echo_n "(cached) " >&6
20853else
20854 lt_cv_shlibpath_overrides_runpath=no
20855 save_LDFLAGS=$LDFLAGS
20856 save_libdir=$libdir
20857 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20858 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000020860/* end confdefs.h. */
20861
20862int
20863main ()
20864{
20865
20866 ;
20867 return 0;
20868}
20869_ACEOF
20870if ac_fn_cxx_try_link "$LINENO"; then :
20871 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000020872 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000020873fi
20874fi
20875rm -f core conftest.err conftest.$ac_objext \
20876 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000020877 LDFLAGS=$save_LDFLAGS
20878 libdir=$save_libdir
20879
20880fi
20881
20882 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000020883
20884 # This implies no fast_install, which is unacceptable.
20885 # Some rework will be needed to allow for fast_install
20886 # before this can be enabled.
20887 hardcode_into_libs=yes
20888
20889 # Add ABI-specific directories to the system library path.
20890 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
20891
20892 # Append ld.so.conf contents to the search path
20893 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000020894 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 +000020895 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000020896
cristy73bd4a52010-10-05 11:24:23 +000020897 fi
20898
20899 # We used to test for /lib/ld.so.1 and disable shared libraries on
20900 # powerpc, because MkLinux only supported shared libraries with the
20901 # GNU dynamic linker. Since this was broken with cross compilers,
20902 # most powerpc-linux boxes support dynamic linking these days and
20903 # people can always --disable-shared, the test was removed, and we
20904 # assume the GNU/Linux dynamic linker is in use.
20905 dynamic_linker='GNU/Linux ld.so'
20906 ;;
20907
20908netbsd*)
20909 version_type=sunos
20910 need_lib_prefix=no
20911 need_version=no
20912 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20914 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20915 dynamic_linker='NetBSD (a.out) ld.so'
20916 else
20917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20918 soname_spec='${libname}${release}${shared_ext}$major'
20919 dynamic_linker='NetBSD ld.elf_so'
20920 fi
20921 shlibpath_var=LD_LIBRARY_PATH
20922 shlibpath_overrides_runpath=yes
20923 hardcode_into_libs=yes
20924 ;;
20925
20926newsos6)
cristy99bd5232011-12-07 14:38:20 +000020927 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20929 shlibpath_var=LD_LIBRARY_PATH
20930 shlibpath_overrides_runpath=yes
20931 ;;
20932
20933*nto* | *qnx*)
20934 version_type=qnx
20935 need_lib_prefix=no
20936 need_version=no
20937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20938 soname_spec='${libname}${release}${shared_ext}$major'
20939 shlibpath_var=LD_LIBRARY_PATH
20940 shlibpath_overrides_runpath=no
20941 hardcode_into_libs=yes
20942 dynamic_linker='ldqnx.so'
20943 ;;
20944
20945openbsd*)
20946 version_type=sunos
20947 sys_lib_dlsearch_path_spec="/usr/lib"
20948 need_lib_prefix=no
20949 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20950 case $host_os in
20951 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20952 *) need_version=no ;;
20953 esac
20954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20955 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20956 shlibpath_var=LD_LIBRARY_PATH
20957 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20958 case $host_os in
20959 openbsd2.[89] | openbsd2.[89].*)
20960 shlibpath_overrides_runpath=no
20961 ;;
20962 *)
20963 shlibpath_overrides_runpath=yes
20964 ;;
20965 esac
20966 else
20967 shlibpath_overrides_runpath=yes
20968 fi
20969 ;;
20970
20971os2*)
20972 libname_spec='$name'
20973 shrext_cmds=".dll"
20974 need_lib_prefix=no
20975 library_names_spec='$libname${shared_ext} $libname.a'
20976 dynamic_linker='OS/2 ld.exe'
20977 shlibpath_var=LIBPATH
20978 ;;
20979
20980osf3* | osf4* | osf5*)
20981 version_type=osf
20982 need_lib_prefix=no
20983 need_version=no
20984 soname_spec='${libname}${release}${shared_ext}$major'
20985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20986 shlibpath_var=LD_LIBRARY_PATH
20987 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20988 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20989 ;;
20990
20991rdos*)
20992 dynamic_linker=no
20993 ;;
20994
20995solaris*)
cristy99bd5232011-12-07 14:38:20 +000020996 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020997 need_lib_prefix=no
20998 need_version=no
20999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21000 soname_spec='${libname}${release}${shared_ext}$major'
21001 shlibpath_var=LD_LIBRARY_PATH
21002 shlibpath_overrides_runpath=yes
21003 hardcode_into_libs=yes
21004 # ldd complains unless libraries are executable
21005 postinstall_cmds='chmod +x $lib'
21006 ;;
21007
21008sunos4*)
21009 version_type=sunos
21010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21011 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21012 shlibpath_var=LD_LIBRARY_PATH
21013 shlibpath_overrides_runpath=yes
21014 if test "$with_gnu_ld" = yes; then
21015 need_lib_prefix=no
21016 fi
21017 need_version=yes
21018 ;;
21019
21020sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000021021 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21023 soname_spec='${libname}${release}${shared_ext}$major'
21024 shlibpath_var=LD_LIBRARY_PATH
21025 case $host_vendor in
21026 sni)
21027 shlibpath_overrides_runpath=no
21028 need_lib_prefix=no
21029 runpath_var=LD_RUN_PATH
21030 ;;
21031 siemens)
21032 need_lib_prefix=no
21033 ;;
21034 motorola)
21035 need_lib_prefix=no
21036 need_version=no
21037 shlibpath_overrides_runpath=no
21038 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21039 ;;
21040 esac
21041 ;;
21042
21043sysv4*MP*)
21044 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000021045 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021046 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21047 soname_spec='$libname${shared_ext}.$major'
21048 shlibpath_var=LD_LIBRARY_PATH
21049 fi
21050 ;;
21051
21052sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21053 version_type=freebsd-elf
21054 need_lib_prefix=no
21055 need_version=no
21056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21057 soname_spec='${libname}${release}${shared_ext}$major'
21058 shlibpath_var=LD_LIBRARY_PATH
21059 shlibpath_overrides_runpath=yes
21060 hardcode_into_libs=yes
21061 if test "$with_gnu_ld" = yes; then
21062 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21063 else
21064 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21065 case $host_os in
21066 sco3.2v5*)
21067 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21068 ;;
21069 esac
21070 fi
21071 sys_lib_dlsearch_path_spec='/usr/lib'
21072 ;;
21073
21074tpf*)
21075 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000021076 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021077 need_lib_prefix=no
21078 need_version=no
21079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21080 shlibpath_var=LD_LIBRARY_PATH
21081 shlibpath_overrides_runpath=no
21082 hardcode_into_libs=yes
21083 ;;
21084
21085uts4*)
cristy99bd5232011-12-07 14:38:20 +000021086 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21088 soname_spec='${libname}${release}${shared_ext}$major'
21089 shlibpath_var=LD_LIBRARY_PATH
21090 ;;
21091
21092*)
21093 dynamic_linker=no
21094 ;;
21095esac
21096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21097$as_echo "$dynamic_linker" >&6; }
21098test "$dynamic_linker" = no && can_build_shared=no
21099
21100variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21101if test "$GCC" = yes; then
21102 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21103fi
21104
21105if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21106 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21107fi
21108if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21109 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21110fi
21111
21112
21113
21114
21115
21116
21117
21118
21119
21120
21121
21122
21123
21124
21125
21126
21127
21128
21129
21130
21131
21132
21133
21134
21135
21136
21137
21138
21139
21140
21141
21142
21143
21144
21145
21146
cristy0c60a692010-11-04 01:09:47 +000021147
21148
cristy73bd4a52010-10-05 11:24:23 +000021149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21150$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21151hardcode_action_CXX=
21152if test -n "$hardcode_libdir_flag_spec_CXX" ||
21153 test -n "$runpath_var_CXX" ||
21154 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21155
21156 # We can hardcode non-existent directories.
21157 if test "$hardcode_direct_CXX" != no &&
21158 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21159 # have to relink, otherwise we might link with an installed library
21160 # when we should be linking with a yet-to-be-installed one
21161 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21162 test "$hardcode_minus_L_CXX" != no; then
21163 # Linking always hardcodes the temporary library directory.
21164 hardcode_action_CXX=relink
21165 else
21166 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21167 hardcode_action_CXX=immediate
21168 fi
21169else
21170 # We cannot hardcode anything, or else we can only hardcode existing
21171 # directories.
21172 hardcode_action_CXX=unsupported
21173fi
21174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21175$as_echo "$hardcode_action_CXX" >&6; }
21176
21177if test "$hardcode_action_CXX" = relink ||
21178 test "$inherit_rpath_CXX" = yes; then
21179 # Fast installation is not supported
21180 enable_fast_install=no
21181elif test "$shlibpath_overrides_runpath" = yes ||
21182 test "$enable_shared" = no; then
21183 # Fast installation is not necessary
21184 enable_fast_install=needless
21185fi
21186
21187
21188
21189
21190
21191
21192
21193 fi # test -n "$compiler"
21194
21195 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000021196 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000021197 LDCXX=$LD
21198 LD=$lt_save_LD
21199 GCC=$lt_save_GCC
21200 with_gnu_ld=$lt_save_with_gnu_ld
21201 lt_cv_path_LDCXX=$lt_cv_path_LD
21202 lt_cv_path_LD=$lt_save_path_LD
21203 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21204 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21205fi # test "$_lt_caught_CXX_error" != yes
21206
21207ac_ext=c
21208ac_cpp='$CPP $CPPFLAGS'
21209ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21210ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21211ac_compiler_gnu=$ac_cv_c_compiler_gnu
21212
21213
21214
21215
21216
21217
21218
21219
21220
21221
21222
21223
21224
cristy99bd5232011-12-07 14:38:20 +000021225
21226
cristy73bd4a52010-10-05 11:24:23 +000021227 ac_config_commands="$ac_config_commands libtool"
21228
21229
21230
21231
21232# Only expand once:
21233
21234
21235
cristy3ed852e2009-09-05 21:47:34 +000021236
21237
cristy3ed852e2009-09-05 21:47:34 +000021238# Check to see if building shared libraries
21239libtool_build_shared_libs='no'
21240if test "$enable_shared" = 'yes'; then
21241 libtool_build_shared_libs='yes'
21242fi
21243
21244# Check to see if building static libraries
21245libtool_build_static_libs='no'
21246if test "$enable_static" = 'yes'; then
21247 libtool_build_static_libs='yes'
21248fi
21249
cristy73bd4a52010-10-05 11:24:23 +000021250 if test "${libtool_build_shared_libs}" = 'yes'; then
21251 WITH_SHARED_LIBS_TRUE=
21252 WITH_SHARED_LIBS_FALSE='#'
21253else
21254 WITH_SHARED_LIBS_TRUE='#'
21255 WITH_SHARED_LIBS_FALSE=
21256fi
21257
cristy3ed852e2009-09-05 21:47:34 +000021258#
21259# Enable support for building loadable modules
21260#
cristyaf4cbf32012-10-16 23:47:41 +000021261build_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000021262
21263# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000021264if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021265 withval=$with_modules; with_modules=$withval
21266else
cristy5a1cefd2010-01-06 20:42:35 +000021267 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000021268fi
21269
21270
21271# Only allow building loadable modules if we are building shared libraries
21272if test "$with_modules" != 'no' ; then
21273 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000021274 { $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 +000021275$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
cristyc6722092012-10-14 00:19:31 +000021276 build_modules='no'
21277 else
21278 build_modules='yes'
21279 fi
cristy3ed852e2009-09-05 21:47:34 +000021280fi
cristyc6722092012-10-14 00:19:31 +000021281if test "$build_modules" != 'no' ; then
cristy3ed852e2009-09-05 21:47:34 +000021282
cristy8b350f62009-11-15 23:12:43 +000021283$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021284
cristyfa161182012-12-19 15:45:28 +000021285 MAGICK_FEATURES="$MAGICK_FEATURES Modules"
cristy3ed852e2009-09-05 21:47:34 +000021286fi
cristyc6722092012-10-14 00:19:31 +000021287 if test "$build_modules" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +000021288 WITH_MODULES_TRUE=
21289 WITH_MODULES_FALSE='#'
21290else
21291 WITH_MODULES_TRUE='#'
21292 WITH_MODULES_FALSE=
21293fi
21294
cristy3ed852e2009-09-05 21:47:34 +000021295
cristy3ed852e2009-09-05 21:47:34 +000021296# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000021297# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000021298# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000021299if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021300 enableval=$enable_delegate_build; enable_delegate_build=$enableval
21301else
21302 enable_delegate_build='no'
21303fi
21304
21305
21306# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000021307if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021308 enableval=$enable_deprecated; enable_deprecated=$enableval
21309else
21310 enable_deprecated='no'
21311fi
21312
21313
21314if test "$enable_deprecated" = 'yes'; then
21315
cristy8b350f62009-11-15 23:12:43 +000021316$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021317
21318else
21319 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
21320fi
21321
21322# Build a version of ImageMagick which operates uninstalled.
21323# Used to build distributions located via MAGICK_HOME / executable path
21324# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000021325if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021326 enableval=$enable_installed; enable_installed=$enableval
21327else
21328 enable_installed='yes'
21329fi
21330
21331
21332if test "$enable_installed" = 'yes'; then
21333
cristy8b350f62009-11-15 23:12:43 +000021334$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021335
21336else
21337 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
21338fi
21339
21340# Permit enciphering and deciphering image pixels.
21341# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000021342if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021343 enableval=$enable_cipher; enable_cipher=$enableval
21344else
21345 enable_cipher='yes'
21346fi
21347
21348
21349if test "$enable_cipher" = 'yes'; then
21350
cristy8b350f62009-11-15 23:12:43 +000021351$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021352
21353fi
21354
cristy6e3607c2011-09-13 13:59:17 +000021355# Build a zero-configuration version of ImageMagick.
21356# Check whether --enable-zero-configuration was given.
21357if test "${enable_zero_configuration+set}" = set; then :
21358 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
cristy3ed852e2009-09-05 21:47:34 +000021359else
cristy6e3607c2011-09-13 13:59:17 +000021360 enable_zero_configuration='no'
cristy3ed852e2009-09-05 21:47:34 +000021361fi
21362
21363
cristy6e3607c2011-09-13 13:59:17 +000021364if test "$enable_zero_configuration" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021365
cristy6e3607c2011-09-13 13:59:17 +000021366$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021367
cristy81af5702011-09-13 14:20:58 +000021368 MAGICK_FEATURES="Zero-Configuration $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021369fi
21370
21371# Build a high dynamic range version of ImageMagick.
21372# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000021373if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021374 enableval=$enable_hdri; enable_hdri=$enableval
21375else
cristy191c0b72012-08-12 16:29:52 +000021376 enable_hdri='yes'
cristy3ed852e2009-09-05 21:47:34 +000021377fi
21378
21379
21380MAGICK_HDRI=""
21381if test "$enable_hdri" = 'yes'; then
21382 MAGICK_HDRI="HDRI"
cristye52f12f2012-12-31 15:32:36 +000021383 magick_hdri_enable='1';
cristyfd9dcd42010-08-08 18:07:02 +000021384 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristye52f12f2012-12-31 15:32:36 +000021385else
21386 magick_hdri_enable='0'
cristy3ed852e2009-09-05 21:47:34 +000021387fi
21388
cristye52f12f2012-12-31 15:32:36 +000021389cat >>confdefs.h <<_ACEOF
21390#define HDRI_ENABLE_OBSOLETE_IN_H $magick_hdri_enable
21391_ACEOF
21392
21393MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
21394CFLAGS="$CFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
cristy72062382012-12-31 16:49:52 +000021395CPPFLAGS="$CPPFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
cristye52f12f2012-12-31 15:32:36 +000021396
cristy3ed852e2009-09-05 21:47:34 +000021397# Build a version of ImageMagick with assert statements.
21398# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000021399if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021400 enableval=$enable_assert; enable_assert=$enableval
21401else
21402 enable_assert='yes'
21403fi
21404
21405
21406if test "$enable_assert" = 'no'; then
21407
cristy8b350f62009-11-15 23:12:43 +000021408$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021409
21410fi
21411
cristya448bd22011-10-14 12:38:13 +000021412# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
cristy73bd4a52010-10-05 11:24:23 +000021413
21414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
21415$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
21416 # Check whether --enable-maintainer-mode was given.
21417if test "${enable_maintainer_mode+set}" = set; then :
21418 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
21419else
21420 USE_MAINTAINER_MODE=no
21421fi
21422
21423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
21424$as_echo "$USE_MAINTAINER_MODE" >&6; }
21425 if test $USE_MAINTAINER_MODE = yes; then
21426 MAINTAINER_MODE_TRUE=
21427 MAINTAINER_MODE_FALSE='#'
21428else
21429 MAINTAINER_MODE_TRUE='#'
21430 MAINTAINER_MODE_FALSE=
21431fi
21432
21433 MAINT=$MAINTAINER_MODE_TRUE
21434
21435
cristy3ed852e2009-09-05 21:47:34 +000021436
cristy944e51f2013-04-16 18:45:02 +000021437# Enable hugepages support
21438# Check whether --enable-hugepages was given.
21439if test "${enable_hugepages+set}" = set; then :
21440 enableval=$enable_hugepages; enable_hugepages=$enableval
21441else
21442 enable_hugepages='no'
21443fi
21444
21445
cristy3ed852e2009-09-05 21:47:34 +000021446# Enable ccmalloc memory debugging support
21447# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000021448if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021449 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
21450else
21451 enable_ccmalloc='no'
21452fi
21453
21454
21455# Enable Electric Fence memory debugging support
21456# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000021457if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021458 enableval=$enable_efence; enable_efence=$enableval
21459else
21460 enable_efence='no'
21461fi
21462
21463
21464# Enable prof-based profiling support
21465# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000021466if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021467 enableval=$enable_prof; enable_prof=$enableval
21468else
21469 enable_prof='no'
21470fi
21471
21472
21473# Enable gprof-based profiling support
21474# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000021475if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021476 enableval=$enable_gprof; enable_gprof=$enableval
21477else
21478 enable_gprof='no'
21479fi
21480
21481
21482# Enable gcov-based profiling support
21483# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000021484if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021485 enableval=$enable_gcov; enable_gcov=$enableval
21486else
21487 enable_gcov='no'
21488fi
21489
21490
21491enable_profiling='no'
21492if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21493 enable_profiling='yes'
21494 if test "$libtool_build_shared_libs" = 'yes'; then
21495 echo "Warning: Can not profile code using shared libraries"
21496 fi
21497fi
21498
21499# Magick API method prefix
21500
21501# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000021502if test "${with_method_prefix+set}" = set; then :
cristyfc3d0222012-02-07 15:05:57 +000021503 withval=$with_method_prefix; with_method_prefix=$withval
cristy3ed852e2009-09-05 21:47:34 +000021504else
cristyfc3d0222012-02-07 15:05:57 +000021505 with_method_prefix='no'
cristy3ed852e2009-09-05 21:47:34 +000021506fi
21507
21508
cristyfc3d0222012-02-07 15:05:57 +000021509if test "$with_method_prefix" != 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000021510
21511cat >>confdefs.h <<_ACEOF
21512#define NAMESPACE_PREFIX $with_method_prefix
21513_ACEOF
21514
cristyfc3d0222012-02-07 15:05:57 +000021515 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-method-prefix "
cristy3ed852e2009-09-05 21:47:34 +000021516fi
21517
cristy71d8c202012-03-20 17:05:01 +000021518# Enable legacy support (default no)
21519# Check whether --enable-legacy-support was given.
21520if test "${enable_legacy_support+set}" = set; then :
21521 enableval=$enable_legacy_support; with_legacy_support=$enableval
21522else
21523 with_legacy_support='no'
21524fi
21525
21526 if test "$with_legacy_support" != 'no'; then
21527 LEGACY_SUPPORT_TRUE=
21528 LEGACY_SUPPORT_FALSE='#'
21529else
21530 LEGACY_SUPPORT_TRUE='#'
21531 LEGACY_SUPPORT_FALSE=
21532fi
21533
21534
cristy3ed852e2009-09-05 21:47:34 +000021535# Number of bits in a Quantum
21536
21537# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000021538if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021539 withval=$with_quantum_depth; with_quantum_depth=$withval
21540else
21541 with_quantum_depth=16
21542fi
21543
21544
21545if test "$with_quantum_depth" != '8'; then
21546 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21547fi
21548
21549case "${with_quantum_depth}" in
21550 8 ) ;;
21551 16 ) ;;
21552 32 ) ;;
21553 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000021554 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021555esac
21556QUANTUM_DEPTH="$with_quantum_depth"
21557
21558cat >>confdefs.h <<_ACEOF
cristye52f12f2012-12-31 15:32:36 +000021559#define QUANTUM_DEPTH_OBSOLETE_IN_H $QUANTUM_DEPTH
cristy3ed852e2009-09-05 21:47:34 +000021560_ACEOF
21561
cristya371edf2013-02-06 13:42:17 +000021562MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristye52f12f2012-12-31 15:32:36 +000021563CFLAGS="$CFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristy72062382012-12-31 16:49:52 +000021564CPPFLAGS="$CPPFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristy3ed852e2009-09-05 21:47:34 +000021565
cristy01ff9f32012-12-01 18:15:29 +000021566# define a lib suffix for abi purpose
cristy7a26abd2012-12-03 00:18:59 +000021567MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}"
cristye386d192012-12-01 21:05:20 +000021568if test "$enable_hdri" = 'yes'; then
cristy7a26abd2012-12-03 00:18:59 +000021569 MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}${MAGICK_HDRI}"
cristye386d192012-12-01 21:05:20 +000021570fi
cristy01ff9f32012-12-01 18:15:29 +000021571
21572
cristy3ed852e2009-09-05 21:47:34 +000021573# Set pixel cache threshold
21574
21575# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000021576if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021577 withval=$with_cache; with_cache=$withval
21578else
21579 with_cache=''
21580fi
21581
21582
21583if test "$with_cache" != ''; then
21584
21585cat >>confdefs.h <<_ACEOF
21586#define PixelCacheThreshold $with_cache
21587_ACEOF
21588
21589 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21590fi
21591
21592# Disable/Enable support for full delegate paths
21593
21594# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000021595if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021596 withval=$with_frozenpaths; with_frozenpaths=$withval
21597else
21598 with_frozenpaths='no'
21599fi
21600
21601
21602# Enable build/install of Magick++
21603
21604# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000021605if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021606 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21607else
21608 with_magick_plus_plus='yes'
21609fi
21610
21611
cristy3a75f062012-09-08 23:29:40 +000021612# Encode the this name into the shared library.
21613
21614# Check whether --with-package-release-name was given.
21615if test "${with_package_release_name+set}" = set; then :
21616 withval=$with_package_release_name; MAGICK_LT_RELEASE_OPTS="-release $withval"
21617fi
21618
21619
21620
cristy3ed852e2009-09-05 21:47:34 +000021621# Disable build/install of PerlMagick.
21622
21623# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000021624if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021625 withval=$with_perl; with_perl=$withval
21626else
cristyb5f4e2f2010-04-25 00:49:11 +000021627 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000021628fi
21629
21630
21631# Options to pass when configuring PerlMagick
21632
21633# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000021634if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000021635 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000021636fi
21637
21638
cristy3ed852e2009-09-05 21:47:34 +000021639
cristy3b0097d2014-11-04 15:34:47 +000021640# Enable jemalloc, object-caching memory allocation library.
21641
21642# Check whether --with-jemalloc was given.
21643if test "${with_jemalloc+set}" = set; then :
21644 withval=$with_jemalloc; with_jemalloc=$withval
21645else
21646 with_jemalloc='no'
21647fi
21648
21649if test "$with_jemalloc" != 'yes' ; then
21650 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jemalloc=$with_jemalloc "
21651fi
21652
cristy3ed852e2009-09-05 21:47:34 +000021653# Enable umem, object-caching memory allocation library.
21654
21655# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000021656if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021657 withval=$with_umem; with_umem=$withval
21658else
21659 with_umem='no'
21660fi
21661
21662if test "$with_umem" != 'yes' ; then
21663 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
21664fi
21665
21666#
21667# Specify path to shared libstdc++ if not in normal location
21668#
21669
21670# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000021671if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021672 withval=$with_libstdc; with_libstdc=$withval
21673else
21674 with_libstdc=''
21675fi
21676
21677
21678if test "$with_libstdc" != ''; then
21679 if test -d "$with_libstdc"; then
21680 LIBSTDCLDFLAGS="-L$with_libstdc"
21681 fi
21682fi
21683
21684
21685# Does gcc required -traditional?
21686if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000021687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021688$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021689if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021690 $as_echo_n "(cached) " >&6
21691else
21692 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000021693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021694/* end confdefs.h. */
21695#include <sgtty.h>
21696Autoconf TIOCGETP
21697_ACEOF
21698if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021699 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021700 ac_cv_prog_gcc_traditional=yes
21701else
21702 ac_cv_prog_gcc_traditional=no
21703fi
21704rm -f conftest*
21705
21706
21707 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000021708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021709/* end confdefs.h. */
21710#include <termio.h>
21711Autoconf TCGETA
21712_ACEOF
21713if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021714 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021715 ac_cv_prog_gcc_traditional=yes
21716fi
21717rm -f conftest*
21718
21719 fi
21720fi
cristy8b350f62009-11-15 23:12:43 +000021721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021722$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
21723 if test $ac_cv_prog_gcc_traditional = yes; then
21724 CC="$CC -traditional"
21725 fi
21726fi
21727
21728
21729########
21730#
21731# Set defines required to build DLLs and modules using MinGW
21732#
21733########
21734# These options are set for multi-thread DLL module build
21735# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
21736# module: _DLL
21737# executable/Magick++: _DLL _MAGICKMOD_
21738MODULE_EXTRA_CPPFLAGS=''
21739LIBRARY_EXTRA_CPPFLAGS=''
21740if test "${native_win32_build}" = 'yes'; then
21741 if test "${libtool_build_shared_libs}" = 'yes'; then
21742 CPPFLAGS="$CPPFLAGS -D_DLL"
21743 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
21744 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
21745 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
cristyc6722092012-10-14 00:19:31 +000021746 if test "$build_modules" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021747 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
21748 else
21749 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21750 fi
21751 else
21752 CPPFLAGS="$CPPFLAGS -D_LIB"
21753 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
21754 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
21755 fi
21756 if test "$with_threads" = 'yes'; then
21757 CPPFLAGS="$CPPFLAGS -D_MT"
21758 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
21759 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
21760 fi
21761fi
21762
21763
21764
21765# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000021766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000021767$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021768if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021769 $as_echo_n "(cached) " >&6
21770else
cristy8b350f62009-11-15 23:12:43 +000021771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021772/* end confdefs.h. */
21773#include <stdlib.h>
21774#include <stdarg.h>
21775#include <string.h>
21776#include <float.h>
21777
21778int
21779main ()
21780{
21781
21782 ;
21783 return 0;
21784}
21785_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021786if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021787 ac_cv_header_stdc=yes
21788else
cristy8b350f62009-11-15 23:12:43 +000021789 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021790fi
cristy3ed852e2009-09-05 21:47:34 +000021791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21792
21793if test $ac_cv_header_stdc = yes; then
21794 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021796/* end confdefs.h. */
21797#include <string.h>
21798
21799_ACEOF
21800if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021801 $EGREP "memchr" >/dev/null 2>&1; then :
21802
cristy3ed852e2009-09-05 21:47:34 +000021803else
21804 ac_cv_header_stdc=no
21805fi
21806rm -f conftest*
21807
21808fi
21809
21810if test $ac_cv_header_stdc = yes; then
21811 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021813/* end confdefs.h. */
21814#include <stdlib.h>
21815
21816_ACEOF
21817if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021818 $EGREP "free" >/dev/null 2>&1; then :
21819
cristy3ed852e2009-09-05 21:47:34 +000021820else
21821 ac_cv_header_stdc=no
21822fi
21823rm -f conftest*
21824
21825fi
21826
21827if test $ac_cv_header_stdc = yes; then
21828 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000021829 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021830 :
21831else
cristy8b350f62009-11-15 23:12:43 +000021832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021833/* end confdefs.h. */
21834#include <ctype.h>
21835#include <stdlib.h>
21836#if ((' ' & 0x0FF) == 0x020)
21837# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21838# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21839#else
21840# define ISLOWER(c) \
21841 (('a' <= (c) && (c) <= 'i') \
21842 || ('j' <= (c) && (c) <= 'r') \
21843 || ('s' <= (c) && (c) <= 'z'))
21844# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21845#endif
21846
21847#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21848int
21849main ()
21850{
21851 int i;
21852 for (i = 0; i < 256; i++)
21853 if (XOR (islower (i), ISLOWER (i))
21854 || toupper (i) != TOUPPER (i))
21855 return 2;
21856 return 0;
21857}
21858_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021859if ac_fn_c_try_run "$LINENO"; then :
21860
cristy3ed852e2009-09-05 21:47:34 +000021861else
cristy8b350f62009-11-15 23:12:43 +000021862 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021863fi
cristy8b350f62009-11-15 23:12:43 +000021864rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21865 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021866fi
21867
cristy3ed852e2009-09-05 21:47:34 +000021868fi
21869fi
cristy8b350f62009-11-15 23:12:43 +000021870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000021871$as_echo "$ac_cv_header_stdc" >&6; }
21872if test $ac_cv_header_stdc = yes; then
21873
cristy8b350f62009-11-15 23:12:43 +000021874$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021875
21876fi
21877
21878if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000021879 { $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 +000021880 header files. Compilation cannot proceed. Please install the ANSI C
21881 headers and rerun this script." >&5
21882$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
21883 header files. Compilation cannot proceed. Please install the ANSI C
21884 headers and rerun this script." >&2;};
21885fi
cristya0b81c32010-01-22 02:54:33 +000021886
21887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
21888$as_echo_n "checking whether to enable assertions... " >&6; }
21889 # Check whether --enable-assert was given.
21890if test "${enable_assert+set}" = set; then :
21891 enableval=$enable_assert; ac_enable_assert=$enableval
21892 if test "x$enableval" = xno; then :
21893
21894$as_echo "#define NDEBUG 1" >>confdefs.h
21895
21896elif test "x$enableval" != xyes; then :
21897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
21898$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
21899 ac_enable_assert=yes
21900fi
21901else
21902 ac_enable_assert=yes
21903fi
21904
21905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
21906$as_echo "$ac_enable_assert" >&6; }
21907
cristy3ed852e2009-09-05 21:47:34 +000021908ac_header_dirent=no
21909for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21910 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000021911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000021912$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021913if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021914 $as_echo_n "(cached) " >&6
21915else
cristy8b350f62009-11-15 23:12:43 +000021916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021917/* end confdefs.h. */
21918#include <sys/types.h>
21919#include <$ac_hdr>
21920
21921int
21922main ()
21923{
21924if ((DIR *) 0)
21925return 0;
21926 ;
21927 return 0;
21928}
21929_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021930if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021931 eval "$as_ac_Header=yes"
21932else
cristy8b350f62009-11-15 23:12:43 +000021933 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000021934fi
cristy3ed852e2009-09-05 21:47:34 +000021935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21936fi
cristy8b350f62009-11-15 23:12:43 +000021937eval ac_res=\$$as_ac_Header
21938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000021939$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000021940if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021941 cat >>confdefs.h <<_ACEOF
21942#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21943_ACEOF
21944
21945ac_header_dirent=$ac_hdr; break
21946fi
21947
21948done
21949# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21950if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000021951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021952$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021953if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021954 $as_echo_n "(cached) " >&6
21955else
21956 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021957cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021958/* end confdefs.h. */
21959
21960/* Override any GCC internal prototype to avoid an error.
21961 Use char because int might match the return type of a GCC
21962 builtin and then its argument prototype would still apply. */
21963#ifdef __cplusplus
21964extern "C"
21965#endif
21966char opendir ();
21967int
21968main ()
21969{
21970return opendir ();
21971 ;
21972 return 0;
21973}
21974_ACEOF
21975for ac_lib in '' dir; do
21976 if test -z "$ac_lib"; then
21977 ac_res="none required"
21978 else
21979 ac_res=-l$ac_lib
21980 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21981 fi
cristy8b350f62009-11-15 23:12:43 +000021982 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021983 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021984fi
cristy8b350f62009-11-15 23:12:43 +000021985rm -f core conftest.err conftest.$ac_objext \
21986 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021987 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021988 break
21989fi
21990done
cristyda16f162011-02-19 23:52:17 +000021991if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021992
cristy3ed852e2009-09-05 21:47:34 +000021993else
21994 ac_cv_search_opendir=no
21995fi
21996rm conftest.$ac_ext
21997LIBS=$ac_func_search_save_LIBS
21998fi
cristy8b350f62009-11-15 23:12:43 +000021999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022000$as_echo "$ac_cv_search_opendir" >&6; }
22001ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000022002if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000022003 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22004
22005fi
22006
22007else
cristy8b350f62009-11-15 23:12:43 +000022008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022009$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022010if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022011 $as_echo_n "(cached) " >&6
22012else
22013 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000022014cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022015/* end confdefs.h. */
22016
22017/* Override any GCC internal prototype to avoid an error.
22018 Use char because int might match the return type of a GCC
22019 builtin and then its argument prototype would still apply. */
22020#ifdef __cplusplus
22021extern "C"
22022#endif
22023char opendir ();
22024int
22025main ()
22026{
22027return opendir ();
22028 ;
22029 return 0;
22030}
22031_ACEOF
22032for ac_lib in '' x; do
22033 if test -z "$ac_lib"; then
22034 ac_res="none required"
22035 else
22036 ac_res=-l$ac_lib
22037 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22038 fi
cristy8b350f62009-11-15 23:12:43 +000022039 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022040 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000022041fi
cristy8b350f62009-11-15 23:12:43 +000022042rm -f core conftest.err conftest.$ac_objext \
22043 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000022044 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022045 break
22046fi
22047done
cristyda16f162011-02-19 23:52:17 +000022048if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000022049
cristy3ed852e2009-09-05 21:47:34 +000022050else
22051 ac_cv_search_opendir=no
22052fi
22053rm conftest.$ac_ext
22054LIBS=$ac_func_search_save_LIBS
22055fi
cristy8b350f62009-11-15 23:12:43 +000022056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022057$as_echo "$ac_cv_search_opendir" >&6; }
22058ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000022059if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000022060 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22061
22062fi
22063
22064fi
22065
22066
22067# Check additional headers
cristy03f187e2013-01-24 00:22:19 +000022068for ac_header in arm/limits.h arpa/inet.h complex.h errno.h fcntl.h limits.h linux/unistd.h locale.h machine/param.h mach-o/dyld.h netinet/in.h OS.h process.h sun_prefetch.h stdarg.h sys/ipc.h sys/mman.h sys/resource.h sys/socket.h sys/syslimits.h sys/time.h sys/timeb.h sys/times.h sys/wait.h wchar.h xlocale.h
cristy8b350f62009-11-15 23:12:43 +000022069do :
22070 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22071ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000022072if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022073 cat >>confdefs.h <<_ACEOF
22074#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22075_ACEOF
22076
22077fi
22078
22079done
22080
22081
22082########
22083#
22084# Checks for typedefs, structures, and compiler characteristics.
22085#
22086########
22087
cristy8b350f62009-11-15 23:12:43 +000022088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000022089$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022090if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022091 $as_echo_n "(cached) " >&6
22092else
cristy8b350f62009-11-15 23:12:43 +000022093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022094/* end confdefs.h. */
22095
cristy14fefe52012-05-21 00:59:18 +000022096 #include <stdbool.h>
22097 #ifndef bool
22098 "error: bool is not defined"
22099 #endif
22100 #ifndef false
22101 "error: false is not defined"
22102 #endif
22103 #if false
22104 "error: false is not 0"
22105 #endif
22106 #ifndef true
22107 "error: true is not defined"
22108 #endif
22109 #if true != 1
22110 "error: true is not 1"
22111 #endif
22112 #ifndef __bool_true_false_are_defined
22113 "error: __bool_true_false_are_defined is not defined"
22114 #endif
cristy3ed852e2009-09-05 21:47:34 +000022115
cristy14fefe52012-05-21 00:59:18 +000022116 struct s { _Bool s: 1; _Bool t; } s;
cristy3ed852e2009-09-05 21:47:34 +000022117
cristy14fefe52012-05-21 00:59:18 +000022118 char a[true == 1 ? 1 : -1];
22119 char b[false == 0 ? 1 : -1];
22120 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
22121 char d[(bool) 0.5 == true ? 1 : -1];
22122 /* See body of main program for 'e'. */
22123 char f[(_Bool) 0.0 == false ? 1 : -1];
22124 char g[true];
22125 char h[sizeof (_Bool)];
22126 char i[sizeof s.t];
22127 enum { j = false, k = true, l = false * true, m = true * 256 };
22128 /* The following fails for
22129 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
22130 _Bool n[m];
22131 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
22132 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
22133 /* Catch a bug in an HP-UX C compiler. See
22134 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
22135 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
22136 */
22137 _Bool q = true;
22138 _Bool *pq = &q;
cristy3ed852e2009-09-05 21:47:34 +000022139
22140int
22141main ()
22142{
22143
cristy14fefe52012-05-21 00:59:18 +000022144 bool e = &s;
22145 *pq |= q;
22146 *pq |= ! q;
22147 /* Refer to every declared value, to avoid compiler optimizations. */
22148 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
22149 + !m + !n + !o + !p + !q + !pq);
cristy3ed852e2009-09-05 21:47:34 +000022150
22151 ;
22152 return 0;
22153}
22154_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022155if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022156 ac_cv_header_stdbool_h=yes
22157else
cristy8b350f62009-11-15 23:12:43 +000022158 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000022159fi
cristy3ed852e2009-09-05 21:47:34 +000022160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22161fi
cristy8b350f62009-11-15 23:12:43 +000022162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000022163$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy14fefe52012-05-21 00:59:18 +000022164 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000022165if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000022166
22167cat >>confdefs.h <<_ACEOF
22168#define HAVE__BOOL 1
22169_ACEOF
22170
22171
22172fi
22173
cristy14fefe52012-05-21 00:59:18 +000022174
cristy3ed852e2009-09-05 21:47:34 +000022175if test $ac_cv_header_stdbool_h = yes; then
22176
cristy8b350f62009-11-15 23:12:43 +000022177$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022178
22179fi
22180
cristy8b350f62009-11-15 23:12:43 +000022181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022182$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022183if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022184 $as_echo_n "(cached) " >&6
22185else
cristy8b350f62009-11-15 23:12:43 +000022186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022187/* end confdefs.h. */
22188
22189int
22190main ()
22191{
22192
22193volatile int x;
22194int * volatile y = (int *) 0;
22195return !x && !y;
22196 ;
22197 return 0;
22198}
22199_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022200if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022201 ac_cv_c_volatile=yes
22202else
cristy8b350f62009-11-15 23:12:43 +000022203 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000022204fi
cristy3ed852e2009-09-05 21:47:34 +000022205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22206fi
cristy8b350f62009-11-15 23:12:43 +000022207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022208$as_echo "$ac_cv_c_volatile" >&6; }
22209if test $ac_cv_c_volatile = no; then
22210
cristy8b350f62009-11-15 23:12:43 +000022211$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022212
22213fi
22214
cristy8b350f62009-11-15 23:12:43 +000022215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000022216$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022217if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022218 $as_echo_n "(cached) " >&6
22219else
cristy8b350f62009-11-15 23:12:43 +000022220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022221/* end confdefs.h. */
22222#define x(y) #y
22223
22224char *s = x(teststring);
22225_ACEOF
22226if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022227 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022228 ac_cv_c_stringize=no
22229else
22230 ac_cv_c_stringize=yes
22231fi
22232rm -f conftest*
22233
22234fi
cristy8b350f62009-11-15 23:12:43 +000022235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000022236$as_echo "$ac_cv_c_stringize" >&6; }
22237if test $ac_cv_c_stringize = yes; then
22238
cristy8b350f62009-11-15 23:12:43 +000022239$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022240
22241fi
22242
cristy8b350f62009-11-15 23:12:43 +000022243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022244$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022245if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022246 $as_echo_n "(cached) " >&6
22247else
cristy8b350f62009-11-15 23:12:43 +000022248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022249/* end confdefs.h. */
22250#include <sys/types.h>
22251#include <sys/stat.h>
22252
22253#if defined S_ISBLK && defined S_IFDIR
22254extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22255#endif
22256
22257#if defined S_ISBLK && defined S_IFCHR
22258extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22259#endif
22260
22261#if defined S_ISLNK && defined S_IFREG
22262extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22263#endif
22264
22265#if defined S_ISSOCK && defined S_IFREG
22266extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22267#endif
22268
22269_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022270if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022271 ac_cv_header_stat_broken=no
22272else
cristy8b350f62009-11-15 23:12:43 +000022273 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000022274fi
cristy3ed852e2009-09-05 21:47:34 +000022275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22276fi
cristy8b350f62009-11-15 23:12:43 +000022277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022278$as_echo "$ac_cv_header_stat_broken" >&6; }
22279if test $ac_cv_header_stat_broken = yes; then
22280
cristy8b350f62009-11-15 23:12:43 +000022281$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022282
22283fi
22284
cristy8b350f62009-11-15 23:12:43 +000022285{ $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 +000022286$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022287if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022288 $as_echo_n "(cached) " >&6
22289else
cristy8b350f62009-11-15 23:12:43 +000022290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022291/* end confdefs.h. */
22292#include <sys/types.h>
22293#include <sys/time.h>
22294#include <time.h>
22295
22296int
22297main ()
22298{
22299if ((struct tm *) 0)
22300return 0;
22301 ;
22302 return 0;
22303}
22304_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022305if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022306 ac_cv_header_time=yes
22307else
cristy8b350f62009-11-15 23:12:43 +000022308 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000022309fi
cristy3ed852e2009-09-05 21:47:34 +000022310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22311fi
cristy8b350f62009-11-15 23:12:43 +000022312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000022313$as_echo "$ac_cv_header_time" >&6; }
22314if test $ac_cv_header_time = yes; then
22315
cristy8b350f62009-11-15 23:12:43 +000022316$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022317
22318fi
22319
cristy8b350f62009-11-15 23:12:43 +000022320{ $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 +000022321$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022322if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022323 $as_echo_n "(cached) " >&6
22324else
cristy8b350f62009-11-15 23:12:43 +000022325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022326/* end confdefs.h. */
22327#include <sys/types.h>
22328#include <time.h>
22329
22330int
22331main ()
22332{
22333struct tm tm;
22334 int *p = &tm.tm_sec;
22335 return !p;
22336 ;
22337 return 0;
22338}
22339_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022340if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022341 ac_cv_struct_tm=time.h
22342else
cristy8b350f62009-11-15 23:12:43 +000022343 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000022344fi
cristy3ed852e2009-09-05 21:47:34 +000022345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22346fi
cristy8b350f62009-11-15 23:12:43 +000022347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000022348$as_echo "$ac_cv_struct_tm" >&6; }
22349if test $ac_cv_struct_tm = sys/time.h; then
22350
cristy8b350f62009-11-15 23:12:43 +000022351$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022352
22353fi
22354
cristy92703d82010-04-26 00:18:18 +000022355ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
22356#include <$ac_cv_struct_tm>
22357
22358"
cristyda16f162011-02-19 23:52:17 +000022359if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022360
22361cat >>confdefs.h <<_ACEOF
22362#define HAVE_STRUCT_TM_TM_ZONE 1
22363_ACEOF
22364
22365
22366fi
22367
22368if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22369
22370$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
22371
22372else
22373 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
22374"
cristyda16f162011-02-19 23:52:17 +000022375if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022376 ac_have_decl=1
22377else
22378 ac_have_decl=0
22379fi
22380
22381cat >>confdefs.h <<_ACEOF
22382#define HAVE_DECL_TZNAME $ac_have_decl
22383_ACEOF
22384
22385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
22386$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022387if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000022388 $as_echo_n "(cached) " >&6
22389else
22390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22391/* end confdefs.h. */
22392#include <time.h>
22393#if !HAVE_DECL_TZNAME
22394extern char *tzname[];
22395#endif
22396
22397int
22398main ()
22399{
22400return tzname[0][0];
22401 ;
22402 return 0;
22403}
22404_ACEOF
22405if ac_fn_c_try_link "$LINENO"; then :
22406 ac_cv_var_tzname=yes
22407else
22408 ac_cv_var_tzname=no
22409fi
22410rm -f core conftest.err conftest.$ac_objext \
22411 conftest$ac_exeext conftest.$ac_ext
22412fi
22413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
22414$as_echo "$ac_cv_var_tzname" >&6; }
22415 if test $ac_cv_var_tzname = yes; then
22416
22417$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
22418
22419 fi
22420fi
22421
cristy8b350f62009-11-15 23:12:43 +000022422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000022423$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022424if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022425 $as_echo_n "(cached) " >&6
22426else
22427 echo '#! /bin/cat
22428exit 69
22429' >conftest
22430chmod u+x conftest
22431(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
22432if test $? -ne 69; then
22433 ac_cv_sys_interpreter=yes
22434else
22435 ac_cv_sys_interpreter=no
22436fi
22437rm -f conftest
22438fi
cristy8b350f62009-11-15 23:12:43 +000022439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000022440$as_echo "$ac_cv_sys_interpreter" >&6; }
22441interpval=$ac_cv_sys_interpreter
22442
22443
cristye80f9cb2013-01-09 01:09:31 +000022444#
22445# Checks for language qualifiers and semantics.
22446#
22447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
22448$as_echo_n "checking whether char is unsigned... " >&6; }
22449if ${ac_cv_c_char_unsigned+:} false; then :
22450 $as_echo_n "(cached) " >&6
22451else
22452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22453/* end confdefs.h. */
22454$ac_includes_default
22455int
22456main ()
22457{
22458static int test_array [1 - 2 * !(((char) -1) < 0)];
22459test_array [0] = 0;
22460return test_array [0];
22461
22462 ;
22463 return 0;
22464}
22465_ACEOF
22466if ac_fn_c_try_compile "$LINENO"; then :
22467 ac_cv_c_char_unsigned=no
22468else
22469 ac_cv_c_char_unsigned=yes
22470fi
22471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22472fi
22473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
22474$as_echo "$ac_cv_c_char_unsigned" >&6; }
22475if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
22476 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
22477
22478fi
22479
22480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
22481$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
22482if ${ac_cv_c_const+:} false; then :
22483 $as_echo_n "(cached) " >&6
22484else
22485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22486/* end confdefs.h. */
22487
22488int
22489main ()
22490{
22491
22492#ifndef __cplusplus
22493 /* Ultrix mips cc rejects this sort of thing. */
22494 typedef int charset[2];
22495 const charset cs = { 0, 0 };
22496 /* SunOS 4.1.1 cc rejects this. */
22497 char const *const *pcpcc;
22498 char **ppc;
22499 /* NEC SVR4.0.2 mips cc rejects this. */
22500 struct point {int x, y;};
22501 static struct point const zero = {0,0};
22502 /* AIX XL C 1.02.0.0 rejects this.
22503 It does not let you subtract one const X* pointer from another in
22504 an arm of an if-expression whose if-part is not a constant
22505 expression */
22506 const char *g = "string";
22507 pcpcc = &g + (g ? g-g : 0);
22508 /* HPUX 7.0 cc rejects these. */
22509 ++pcpcc;
22510 ppc = (char**) pcpcc;
22511 pcpcc = (char const *const *) ppc;
22512 { /* SCO 3.2v4 cc rejects this sort of thing. */
22513 char tx;
22514 char *t = &tx;
22515 char const *s = 0 ? (char *) 0 : (char const *) 0;
22516
22517 *t++ = 0;
22518 if (s) return 0;
22519 }
22520 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22521 int x[] = {25, 17};
22522 const int *foo = &x[0];
22523 ++foo;
22524 }
22525 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22526 typedef const int *iptr;
22527 iptr p = 0;
22528 ++p;
22529 }
22530 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
22531 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22532 struct s { int j; const int *ap[3]; } bx;
22533 struct s *b = &bx; b->j = 5;
22534 }
22535 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22536 const int foo = 10;
22537 if (!foo) return 0;
22538 }
22539 return !cs[0] && !zero.x;
22540#endif
22541
22542 ;
22543 return 0;
22544}
22545_ACEOF
22546if ac_fn_c_try_compile "$LINENO"; then :
22547 ac_cv_c_const=yes
22548else
22549 ac_cv_c_const=no
22550fi
22551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22552fi
22553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
22554$as_echo "$ac_cv_c_const" >&6; }
22555if test $ac_cv_c_const = no; then
22556
22557$as_echo "#define const /**/" >>confdefs.h
22558
22559fi
22560
cristy8b350f62009-11-15 23:12:43 +000022561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022562$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022563if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022564 $as_echo_n "(cached) " >&6
22565else
22566 ac_cv_c_inline=no
22567for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000022568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022569/* end confdefs.h. */
22570#ifndef __cplusplus
22571typedef int foo_t;
22572static $ac_kw foo_t static_foo () {return 0; }
22573$ac_kw foo_t foo () {return 0; }
22574#endif
22575
22576_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022577if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022578 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022579fi
cristy3ed852e2009-09-05 21:47:34 +000022580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22581 test "$ac_cv_c_inline" != no && break
22582done
22583
22584fi
cristy8b350f62009-11-15 23:12:43 +000022585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022586$as_echo "$ac_cv_c_inline" >&6; }
22587
cristy3ed852e2009-09-05 21:47:34 +000022588case $ac_cv_c_inline in
22589 inline | yes) ;;
22590 *)
22591 case $ac_cv_c_inline in
22592 no) ac_val=;;
22593 *) ac_val=$ac_cv_c_inline;;
22594 esac
22595 cat >>confdefs.h <<_ACEOF
22596#ifndef __cplusplus
22597#define inline $ac_val
22598#endif
22599_ACEOF
22600 ;;
22601esac
22602
cristy8b350f62009-11-15 23:12:43 +000022603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000022604$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022605if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022606 $as_echo_n "(cached) " >&6
22607else
22608 ac_cv_c_restrict=no
22609 # The order here caters to the fact that C++ does not require restrict.
22610 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000022611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022612/* end confdefs.h. */
22613typedef int * int_ptr;
22614 int foo (int_ptr $ac_kw ip) {
22615 return ip[0];
22616 }
22617int
22618main ()
22619{
22620int s[1];
22621 int * $ac_kw t = s;
22622 t[0] = 0;
22623 return foo(t)
22624 ;
22625 return 0;
22626}
22627_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022628if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022629 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022630fi
cristy3ed852e2009-09-05 21:47:34 +000022631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22632 test "$ac_cv_c_restrict" != no && break
22633 done
22634
22635fi
cristy8b350f62009-11-15 23:12:43 +000022636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000022637$as_echo "$ac_cv_c_restrict" >&6; }
22638
cristy3ed852e2009-09-05 21:47:34 +000022639 case $ac_cv_c_restrict in
22640 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000022641 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022642 ;;
22643 *) cat >>confdefs.h <<_ACEOF
22644#define restrict $ac_cv_c_restrict
22645_ACEOF
22646 ;;
22647 esac
22648
cristye80f9cb2013-01-09 01:09:31 +000022649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
22650$as_echo_n "checking for working volatile... " >&6; }
22651if ${ac_cv_c_volatile+:} false; then :
22652 $as_echo_n "(cached) " >&6
22653else
22654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22655/* end confdefs.h. */
22656
22657int
22658main ()
22659{
22660
22661volatile int x;
22662int * volatile y = (int *) 0;
22663return !x && !y;
22664 ;
22665 return 0;
22666}
22667_ACEOF
22668if ac_fn_c_try_compile "$LINENO"; then :
22669 ac_cv_c_volatile=yes
22670else
22671 ac_cv_c_volatile=no
22672fi
22673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22674fi
22675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
22676$as_echo "$ac_cv_c_volatile" >&6; }
22677if test $ac_cv_c_volatile = no; then
22678
22679$as_echo "#define volatile /**/" >>confdefs.h
22680
22681fi
22682
cristy3ed852e2009-09-05 21:47:34 +000022683
22684# If words are stored with the most significant byte first (like
22685# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000022686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022687$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022688if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022689 $as_echo_n "(cached) " >&6
22690else
22691 ac_cv_c_bigendian=unknown
22692 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000022693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022694/* end confdefs.h. */
22695#ifndef __APPLE_CC__
22696 not a universal capable compiler
22697 #endif
22698 typedef int dummy;
22699
22700_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022701if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022702
22703 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000022704 # there are at least two -arch flags with different values.
22705 ac_arch=
22706 ac_prev=
22707 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22708 if test -n "$ac_prev"; then
22709 case $ac_word in
22710 i?86 | x86_64 | ppc | ppc64)
22711 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22712 ac_arch=$ac_word
22713 else
22714 ac_cv_c_bigendian=universal
22715 break
22716 fi
22717 ;;
22718 esac
22719 ac_prev=
22720 elif test "x$ac_word" = "x-arch"; then
22721 ac_prev=arch
22722 fi
22723 done
cristy3ed852e2009-09-05 21:47:34 +000022724fi
cristy3ed852e2009-09-05 21:47:34 +000022725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22726 if test $ac_cv_c_bigendian = unknown; then
22727 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000022728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022729/* end confdefs.h. */
22730#include <sys/types.h>
22731 #include <sys/param.h>
22732
22733int
22734main ()
22735{
22736#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22737 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22738 && LITTLE_ENDIAN)
22739 bogus endian macros
22740 #endif
22741
22742 ;
22743 return 0;
22744}
22745_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022746if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022747 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022749/* end confdefs.h. */
22750#include <sys/types.h>
22751 #include <sys/param.h>
22752
22753int
22754main ()
22755{
22756#if BYTE_ORDER != BIG_ENDIAN
22757 not big endian
22758 #endif
22759
22760 ;
22761 return 0;
22762}
22763_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022764if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022765 ac_cv_c_bigendian=yes
22766else
cristy8b350f62009-11-15 23:12:43 +000022767 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022768fi
cristy3ed852e2009-09-05 21:47:34 +000022769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022770fi
cristy3ed852e2009-09-05 21:47:34 +000022771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22772 fi
22773 if test $ac_cv_c_bigendian = unknown; then
22774 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000022775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022776/* end confdefs.h. */
22777#include <limits.h>
22778
22779int
22780main ()
22781{
22782#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22783 bogus endian macros
22784 #endif
22785
22786 ;
22787 return 0;
22788}
22789_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022790if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022791 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022793/* end confdefs.h. */
22794#include <limits.h>
22795
22796int
22797main ()
22798{
22799#ifndef _BIG_ENDIAN
22800 not big endian
22801 #endif
22802
22803 ;
22804 return 0;
22805}
22806_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022807if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022808 ac_cv_c_bigendian=yes
22809else
cristy8b350f62009-11-15 23:12:43 +000022810 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022811fi
cristy3ed852e2009-09-05 21:47:34 +000022812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022813fi
cristy3ed852e2009-09-05 21:47:34 +000022814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22815 fi
22816 if test $ac_cv_c_bigendian = unknown; then
22817 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000022818 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022819 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000022820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022821/* end confdefs.h. */
22822short int ascii_mm[] =
22823 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22824 short int ascii_ii[] =
22825 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22826 int use_ascii (int i) {
22827 return ascii_mm[i] + ascii_ii[i];
22828 }
22829 short int ebcdic_ii[] =
22830 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22831 short int ebcdic_mm[] =
22832 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22833 int use_ebcdic (int i) {
22834 return ebcdic_mm[i] + ebcdic_ii[i];
22835 }
22836 extern int foo;
22837
22838int
22839main ()
22840{
22841return use_ascii (foo) == use_ebcdic (foo);
22842 ;
22843 return 0;
22844}
22845_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022846if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022847 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22848 ac_cv_c_bigendian=yes
22849 fi
22850 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22851 if test "$ac_cv_c_bigendian" = unknown; then
22852 ac_cv_c_bigendian=no
22853 else
22854 # finding both strings is unlikely to happen, but who knows?
22855 ac_cv_c_bigendian=unknown
22856 fi
22857 fi
cristy3ed852e2009-09-05 21:47:34 +000022858fi
cristy3ed852e2009-09-05 21:47:34 +000022859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22860else
cristy8b350f62009-11-15 23:12:43 +000022861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022862/* end confdefs.h. */
22863$ac_includes_default
22864int
22865main ()
22866{
22867
22868 /* Are we little or big endian? From Harbison&Steele. */
22869 union
22870 {
22871 long int l;
22872 char c[sizeof (long int)];
22873 } u;
22874 u.l = 1;
22875 return u.c[sizeof (long int) - 1] == 1;
22876
22877 ;
22878 return 0;
22879}
22880_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022881if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022882 ac_cv_c_bigendian=no
22883else
cristy8b350f62009-11-15 23:12:43 +000022884 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000022885fi
cristy8b350f62009-11-15 23:12:43 +000022886rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22887 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022888fi
22889
cristy3ed852e2009-09-05 21:47:34 +000022890 fi
22891fi
cristy8b350f62009-11-15 23:12:43 +000022892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022893$as_echo "$ac_cv_c_bigendian" >&6; }
22894 case $ac_cv_c_bigendian in #(
22895 yes)
cristy8b350f62009-11-15 23:12:43 +000022896 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022897;; #(
22898 no)
22899 ;; #(
22900 universal)
22901
cristy8b350f62009-11-15 23:12:43 +000022902$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022903
22904 ;; #(
22905 *)
cristy98dddb52010-11-04 00:30:15 +000022906 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000022907 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000022908 esac
22909
22910
cristy501c8042011-05-26 17:46:28 +000022911# Define to a suitable type, if standard headers do not define it.
22912ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
22913case $ac_cv_c_int8_t in #(
22914 no|yes) ;; #(
22915 *)
cristy3ed852e2009-09-05 21:47:34 +000022916
22917cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022918#define int8_t $ac_cv_c_int8_t
22919_ACEOF
22920;;
22921esac
22922
22923ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
22924case $ac_cv_c_int16_t in #(
22925 no|yes) ;; #(
22926 *)
22927
22928cat >>confdefs.h <<_ACEOF
22929#define int16_t $ac_cv_c_int16_t
22930_ACEOF
22931;;
22932esac
22933
22934ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
22935case $ac_cv_c_int32_t in #(
22936 no|yes) ;; #(
22937 *)
22938
22939cat >>confdefs.h <<_ACEOF
22940#define int32_t $ac_cv_c_int32_t
22941_ACEOF
22942;;
22943esac
22944
22945ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
22946case $ac_cv_c_int64_t in #(
22947 no|yes) ;; #(
22948 *)
22949
22950cat >>confdefs.h <<_ACEOF
22951#define int64_t $ac_cv_c_int64_t
22952_ACEOF
22953;;
22954esac
22955
22956
cristy045228a2013-06-23 11:00:16 +000022957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
22958$as_echo_n "checking for unsigned long long int... " >&6; }
22959if ${ac_cv_type_unsigned_long_long_int+:} false; then :
cristy501c8042011-05-26 17:46:28 +000022960 $as_echo_n "(cached) " >&6
22961else
cristy045228a2013-06-23 11:00:16 +000022962 ac_cv_type_unsigned_long_long_int=yes
22963 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
22964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000022965/* end confdefs.h. */
22966
22967 /* For now, do not test the preprocessor; as of 2007 there are too many
cristy5ed9c6e2013-07-14 21:20:31 +000022968 implementations with broken preprocessors. Perhaps this can
22969 be revisited in 2012. In the meantime, code should not expect
22970 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000022971 /* Test literals. */
22972 long long int ll = 9223372036854775807ll;
22973 long long int nll = -9223372036854775807LL;
22974 unsigned long long int ull = 18446744073709551615ULL;
22975 /* Test constant expressions. */
22976 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristy5ed9c6e2013-07-14 21:20:31 +000022977 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000022978 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristy5ed9c6e2013-07-14 21:20:31 +000022979 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000022980 int i = 63;
22981int
22982main ()
22983{
22984/* Test availability of runtime routines for shift and division. */
22985 long long int llmax = 9223372036854775807ll;
22986 unsigned long long int ullmax = 18446744073709551615ull;
22987 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristy5ed9c6e2013-07-14 21:20:31 +000022988 | (llmax / ll) | (llmax % ll)
22989 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22990 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000022991 ;
22992 return 0;
22993}
22994
22995_ACEOF
22996if ac_fn_c_try_link "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000022997
22998else
22999 ac_cv_type_unsigned_long_long_int=no
23000fi
23001rm -f core conftest.err conftest.$ac_objext \
23002 conftest$ac_exeext conftest.$ac_ext
23003 fi
23004fi
23005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23006$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23007 if test $ac_cv_type_unsigned_long_long_int = yes; then
23008
23009$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23010
23011 fi
23012
23013
23014
23015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
23016$as_echo_n "checking for long long int... " >&6; }
23017if ${ac_cv_type_long_long_int+:} false; then :
23018 $as_echo_n "(cached) " >&6
23019else
cristy501c8042011-05-26 17:46:28 +000023020 ac_cv_type_long_long_int=yes
cristy045228a2013-06-23 11:00:16 +000023021 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
cristy5ed9c6e2013-07-14 21:20:31 +000023022 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
23023 if test $ac_cv_type_long_long_int = yes; then
23024 if test "$cross_compiling" = yes; then :
cristy045228a2013-06-23 11:00:16 +000023025 :
cristy501c8042011-05-26 17:46:28 +000023026else
23027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23028/* end confdefs.h. */
23029#include <limits.h>
cristy5ed9c6e2013-07-14 21:20:31 +000023030 #ifndef LLONG_MAX
23031 # define HALF \
23032 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
23033 # define LLONG_MAX (HALF - 1 + HALF)
23034 #endif
cristy501c8042011-05-26 17:46:28 +000023035int
23036main ()
23037{
23038long long int n = 1;
cristy5ed9c6e2013-07-14 21:20:31 +000023039 int i;
23040 for (i = 0; ; i++)
23041 {
23042 long long int m = n << i;
23043 if (m >> i != n)
23044 return 1;
23045 if (LLONG_MAX / 2 < m)
23046 break;
23047 }
23048 return 0;
cristy501c8042011-05-26 17:46:28 +000023049 ;
23050 return 0;
23051}
23052_ACEOF
23053if ac_fn_c_try_run "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000023054
cristy501c8042011-05-26 17:46:28 +000023055else
23056 ac_cv_type_long_long_int=no
23057fi
23058rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23059 conftest.$ac_objext conftest.beam conftest.$ac_ext
23060fi
23061
cristy5ed9c6e2013-07-14 21:20:31 +000023062 fi
cristy045228a2013-06-23 11:00:16 +000023063 fi
cristy501c8042011-05-26 17:46:28 +000023064fi
23065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
23066$as_echo "$ac_cv_type_long_long_int" >&6; }
23067 if test $ac_cv_type_long_long_int = yes; then
23068
23069$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
23070
23071 fi
23072
23073
23074
23075 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
23076if test "x$ac_cv_type_intmax_t" = xyes; then :
23077
23078$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
23079
23080else
23081 test $ac_cv_type_long_long_int = yes \
23082 && ac_type='long long int' \
23083 || ac_type='long int'
23084
23085cat >>confdefs.h <<_ACEOF
23086#define intmax_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000023087_ACEOF
23088
23089fi
23090
23091
cristy501c8042011-05-26 17:46:28 +000023092
23093 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
23094if test "x$ac_cv_type_intptr_t" = xyes; then :
23095
23096$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023097
cristy3ed852e2009-09-05 21:47:34 +000023098else
cristy501c8042011-05-26 17:46:28 +000023099 for ac_type in 'int' 'long int' 'long long int'; do
23100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23101/* end confdefs.h. */
23102$ac_includes_default
23103int
23104main ()
23105{
23106static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000023107test_array [0] = 0;
23108return test_array [0];
cristy501c8042011-05-26 17:46:28 +000023109
23110 ;
23111 return 0;
23112}
23113_ACEOF
23114if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023115
23116cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000023117#define intptr_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000023118_ACEOF
23119
cristy501c8042011-05-26 17:46:28 +000023120 ac_type=
23121fi
23122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23123 test -z "$ac_type" && break
23124 done
cristy3ed852e2009-09-05 21:47:34 +000023125fi
23126
23127
cristy3ed852e2009-09-05 21:47:34 +000023128
cristy501c8042011-05-26 17:46:28 +000023129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
23130$as_echo_n "checking for long double... " >&6; }
23131if ${ac_cv_type_long_double+:} false; then :
23132 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +000023133else
cristy501c8042011-05-26 17:46:28 +000023134 if test "$GCC" = yes; then
23135 ac_cv_type_long_double=yes
23136 else
23137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23138/* end confdefs.h. */
23139/* The Stardent Vistra knows sizeof (long double), but does
23140 not support it. */
23141 long double foo = 0.0L;
23142int
23143main ()
23144{
23145static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
23146 sizeof (double) <= sizeof (long double))];
cristy14fefe52012-05-21 00:59:18 +000023147test_array [0] = 0;
23148return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000023149
cristy501c8042011-05-26 17:46:28 +000023150 ;
23151 return 0;
23152}
cristy3ed852e2009-09-05 21:47:34 +000023153_ACEOF
cristy501c8042011-05-26 17:46:28 +000023154if ac_fn_c_try_compile "$LINENO"; then :
23155 ac_cv_type_long_double=yes
cristy3ed852e2009-09-05 21:47:34 +000023156else
cristy501c8042011-05-26 17:46:28 +000023157 ac_cv_type_long_double=no
cristy3ed852e2009-09-05 21:47:34 +000023158fi
cristy501c8042011-05-26 17:46:28 +000023159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23160 fi
cristy3ed852e2009-09-05 21:47:34 +000023161fi
cristy501c8042011-05-26 17:46:28 +000023162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
23163$as_echo "$ac_cv_type_long_double" >&6; }
23164 if test $ac_cv_type_long_double = yes; then
cristy3ed852e2009-09-05 21:47:34 +000023165
cristy501c8042011-05-26 17:46:28 +000023166$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023167
cristy501c8042011-05-26 17:46:28 +000023168 fi
23169
cristy3ed852e2009-09-05 21:47:34 +000023170
cristy8b350f62009-11-15 23:12:43 +000023171 { $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 +000023172$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023173if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023174 $as_echo_n "(cached) " >&6
23175else
cristy8b350f62009-11-15 23:12:43 +000023176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023177/* end confdefs.h. */
23178#include <float.h>
23179 long double const a[] =
23180 {
23181 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
23182 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
23183 };
23184 long double
23185 f (long double x)
23186 {
23187 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
23188 + (x ? f (x) : 'c'));
23189 }
23190
23191int
23192main ()
23193{
23194static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
23195 + (DBL_MANT_DIG < LDBL_MANT_DIG)
23196 - (LDBL_MAX_EXP < DBL_MAX_EXP)
23197 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
23198 && (int) LDBL_EPSILON == 0
23199 )];
cristy14fefe52012-05-21 00:59:18 +000023200test_array [0] = 0;
23201return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000023202
23203 ;
23204 return 0;
23205}
23206_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023207if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023208 ac_cv_type_long_double_wider=yes
23209else
cristy8b350f62009-11-15 23:12:43 +000023210 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000023211fi
cristy3ed852e2009-09-05 21:47:34 +000023212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23213fi
cristy8b350f62009-11-15 23:12:43 +000023214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000023215$as_echo "$ac_cv_type_long_double_wider" >&6; }
23216 if test $ac_cv_type_long_double_wider = yes; then
23217
cristy8b350f62009-11-15 23:12:43 +000023218$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023219
23220 fi
23221
23222
cristy045228a2013-06-23 11:00:16 +000023223
cristy501c8042011-05-26 17:46:28 +000023224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
23225$as_echo_n "checking for long long int... " >&6; }
23226if ${ac_cv_type_long_long_int+:} false; then :
23227 $as_echo_n "(cached) " >&6
23228else
cristy501c8042011-05-26 17:46:28 +000023229 ac_cv_type_long_long_int=yes
cristy045228a2013-06-23 11:00:16 +000023230 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
cristy5ed9c6e2013-07-14 21:20:31 +000023231 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
23232 if test $ac_cv_type_long_long_int = yes; then
23233 if test "$cross_compiling" = yes; then :
cristy045228a2013-06-23 11:00:16 +000023234 :
cristy501c8042011-05-26 17:46:28 +000023235else
23236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23237/* end confdefs.h. */
23238#include <limits.h>
cristy5ed9c6e2013-07-14 21:20:31 +000023239 #ifndef LLONG_MAX
23240 # define HALF \
23241 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
23242 # define LLONG_MAX (HALF - 1 + HALF)
23243 #endif
cristy501c8042011-05-26 17:46:28 +000023244int
23245main ()
23246{
23247long long int n = 1;
cristy5ed9c6e2013-07-14 21:20:31 +000023248 int i;
23249 for (i = 0; ; i++)
23250 {
23251 long long int m = n << i;
23252 if (m >> i != n)
23253 return 1;
23254 if (LLONG_MAX / 2 < m)
23255 break;
23256 }
23257 return 0;
cristy501c8042011-05-26 17:46:28 +000023258 ;
23259 return 0;
23260}
23261_ACEOF
23262if ac_fn_c_try_run "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000023263
cristy501c8042011-05-26 17:46:28 +000023264else
23265 ac_cv_type_long_long_int=no
23266fi
23267rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23268 conftest.$ac_objext conftest.beam conftest.$ac_ext
23269fi
23270
cristy5ed9c6e2013-07-14 21:20:31 +000023271 fi
cristy045228a2013-06-23 11:00:16 +000023272 fi
cristy501c8042011-05-26 17:46:28 +000023273fi
23274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
23275$as_echo "$ac_cv_type_long_long_int" >&6; }
23276 if test $ac_cv_type_long_long_int = yes; then
23277
23278$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
23279
23280 fi
23281
23282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
23283$as_echo_n "checking for mbstate_t... " >&6; }
23284if ${ac_cv_type_mbstate_t+:} false; then :
23285 $as_echo_n "(cached) " >&6
23286else
23287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23288/* end confdefs.h. */
23289$ac_includes_default
23290# include <wchar.h>
23291int
23292main ()
23293{
23294mbstate_t x; return sizeof x;
23295 ;
23296 return 0;
23297}
23298_ACEOF
23299if ac_fn_c_try_compile "$LINENO"; then :
23300 ac_cv_type_mbstate_t=yes
23301else
23302 ac_cv_type_mbstate_t=no
23303fi
23304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23305fi
23306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
23307$as_echo "$ac_cv_type_mbstate_t" >&6; }
23308 if test $ac_cv_type_mbstate_t = yes; then
23309
23310$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
23311
23312 else
23313
23314$as_echo "#define mbstate_t int" >>confdefs.h
23315
23316 fi
23317ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
23318if test "x$ac_cv_type_mode_t" = xyes; then :
23319
23320else
23321
23322cat >>confdefs.h <<_ACEOF
23323#define mode_t int
23324_ACEOF
23325
23326fi
23327
23328ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
23329if test "x$ac_cv_type_off_t" = xyes; then :
23330
23331else
23332
23333cat >>confdefs.h <<_ACEOF
23334#define off_t long int
23335_ACEOF
23336
23337fi
23338
23339ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
23340if test "x$ac_cv_type_pid_t" = xyes; then :
23341
23342else
23343
23344cat >>confdefs.h <<_ACEOF
23345#define pid_t int
23346_ACEOF
23347
23348fi
23349
23350ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
23351if test "x$ac_cv_type_size_t" = xyes; then :
23352
23353else
23354
23355cat >>confdefs.h <<_ACEOF
23356#define size_t unsigned int
23357_ACEOF
23358
23359fi
23360
23361ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23362if test "x$ac_cv_type_ssize_t" = xyes; then :
23363
23364else
23365
23366cat >>confdefs.h <<_ACEOF
23367#define ssize_t int
23368_ACEOF
23369
23370fi
23371
23372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
23373$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
23374if ${ac_cv_type_uid_t+:} false; then :
23375 $as_echo_n "(cached) " >&6
23376else
23377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23378/* end confdefs.h. */
23379#include <sys/types.h>
23380
23381_ACEOF
23382if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23383 $EGREP "uid_t" >/dev/null 2>&1; then :
23384 ac_cv_type_uid_t=yes
23385else
23386 ac_cv_type_uid_t=no
23387fi
23388rm -f conftest*
23389
23390fi
23391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
23392$as_echo "$ac_cv_type_uid_t" >&6; }
23393if test $ac_cv_type_uid_t = no; then
23394
23395$as_echo "#define uid_t int" >>confdefs.h
23396
23397
23398$as_echo "#define gid_t int" >>confdefs.h
23399
23400fi
23401
23402ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
23403case $ac_cv_c_uint8_t in #(
23404 no|yes) ;; #(
23405 *)
23406
23407$as_echo "#define _UINT8_T 1" >>confdefs.h
23408
23409
23410cat >>confdefs.h <<_ACEOF
23411#define uint8_t $ac_cv_c_uint8_t
23412_ACEOF
23413;;
23414 esac
23415
23416ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
23417case $ac_cv_c_uint16_t in #(
23418 no|yes) ;; #(
23419 *)
23420
23421
23422cat >>confdefs.h <<_ACEOF
23423#define uint16_t $ac_cv_c_uint16_t
23424_ACEOF
23425;;
23426 esac
23427
23428ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
23429case $ac_cv_c_uint32_t in #(
23430 no|yes) ;; #(
23431 *)
23432
23433$as_echo "#define _UINT32_T 1" >>confdefs.h
23434
23435
23436cat >>confdefs.h <<_ACEOF
23437#define uint32_t $ac_cv_c_uint32_t
23438_ACEOF
23439;;
23440 esac
23441
23442ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
23443case $ac_cv_c_uint64_t in #(
23444 no|yes) ;; #(
23445 *)
23446
23447$as_echo "#define _UINT64_T 1" >>confdefs.h
23448
23449
23450cat >>confdefs.h <<_ACEOF
23451#define uint64_t $ac_cv_c_uint64_t
23452_ACEOF
23453;;
23454 esac
23455
23456
cristy501c8042011-05-26 17:46:28 +000023457
23458 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
23459if test "x$ac_cv_type_uintmax_t" = xyes; then :
23460
23461$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
23462
23463else
23464 test $ac_cv_type_unsigned_long_long_int = yes \
23465 && ac_type='unsigned long long int' \
23466 || ac_type='unsigned long int'
23467
23468cat >>confdefs.h <<_ACEOF
23469#define uintmax_t $ac_type
23470_ACEOF
23471
23472fi
23473
23474
23475
23476 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23477if test "x$ac_cv_type_uintptr_t" = xyes; then :
23478
23479$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
23480
23481else
23482 for ac_type in 'unsigned int' 'unsigned long int' \
23483 'unsigned long long int'; do
23484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23485/* end confdefs.h. */
23486$ac_includes_default
23487int
23488main ()
23489{
23490static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000023491test_array [0] = 0;
23492return test_array [0];
cristy501c8042011-05-26 17:46:28 +000023493
23494 ;
23495 return 0;
23496}
23497_ACEOF
23498if ac_fn_c_try_compile "$LINENO"; then :
23499
23500cat >>confdefs.h <<_ACEOF
23501#define uintptr_t $ac_type
23502_ACEOF
23503
23504 ac_type=
23505fi
23506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23507 test -z "$ac_type" && break
23508 done
23509fi
23510
23511
23512
23513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23514$as_echo_n "checking for unsigned long long int... " >&6; }
23515if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23516 $as_echo_n "(cached) " >&6
23517else
cristy045228a2013-06-23 11:00:16 +000023518 ac_cv_type_unsigned_long_long_int=yes
23519 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
23520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000023521/* end confdefs.h. */
23522
23523 /* For now, do not test the preprocessor; as of 2007 there are too many
cristy5ed9c6e2013-07-14 21:20:31 +000023524 implementations with broken preprocessors. Perhaps this can
23525 be revisited in 2012. In the meantime, code should not expect
23526 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000023527 /* Test literals. */
23528 long long int ll = 9223372036854775807ll;
23529 long long int nll = -9223372036854775807LL;
23530 unsigned long long int ull = 18446744073709551615ULL;
23531 /* Test constant expressions. */
23532 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristy5ed9c6e2013-07-14 21:20:31 +000023533 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023534 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristy5ed9c6e2013-07-14 21:20:31 +000023535 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023536 int i = 63;
23537int
23538main ()
23539{
23540/* Test availability of runtime routines for shift and division. */
23541 long long int llmax = 9223372036854775807ll;
23542 unsigned long long int ullmax = 18446744073709551615ull;
23543 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristy5ed9c6e2013-07-14 21:20:31 +000023544 | (llmax / ll) | (llmax % ll)
23545 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23546 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000023547 ;
23548 return 0;
23549}
23550
23551_ACEOF
23552if ac_fn_c_try_link "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000023553
cristy501c8042011-05-26 17:46:28 +000023554else
23555 ac_cv_type_unsigned_long_long_int=no
23556fi
23557rm -f core conftest.err conftest.$ac_objext \
23558 conftest$ac_exeext conftest.$ac_ext
cristy045228a2013-06-23 11:00:16 +000023559 fi
cristy501c8042011-05-26 17:46:28 +000023560fi
23561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23562$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23563 if test $ac_cv_type_unsigned_long_long_int = yes; then
23564
23565$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23566
23567 fi
23568
23569
cristyfec31822013-05-23 12:32:12 +000023570# Float_t and double_t are intended to be the the most efficient type.
23571ac_fn_c_check_type "$LINENO" "float_t" "ac_cv_type_float_t" "#include <math.h>
23572"
23573if test "x$ac_cv_type_float_t" = xyes; then :
23574
23575cat >>confdefs.h <<_ACEOF
23576#define HAVE_FLOAT_T 1
23577_ACEOF
23578
23579
23580fi
23581
23582ac_fn_c_check_type "$LINENO" "double_t" "ac_cv_type_double_t" "#include <math.h>
23583"
23584if test "x$ac_cv_type_double_t" = xyes; then :
23585
23586cat >>confdefs.h <<_ACEOF
23587#define HAVE_DOUBLE_T 1
23588_ACEOF
23589
23590
23591fi
23592
23593# The cast to long int works around a bug in the HP C Compiler
23594# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23595# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23596# This bug is HP SR number 8606223364.
23597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float_t" >&5
23598$as_echo_n "checking size of float_t... " >&6; }
23599if ${ac_cv_sizeof_float_t+:} false; then :
23600 $as_echo_n "(cached) " >&6
23601else
23602 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float_t))" "ac_cv_sizeof_float_t" "#include <math.h>
23603"; then :
23604
23605else
23606 if test "$ac_cv_type_float_t" = yes; then
23607 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23608$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23609as_fn_error 77 "cannot compute sizeof (float_t)
23610See \`config.log' for more details" "$LINENO" 5; }
23611 else
23612 ac_cv_sizeof_float_t=0
23613 fi
23614fi
23615
23616fi
23617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float_t" >&5
23618$as_echo "$ac_cv_sizeof_float_t" >&6; }
23619
23620
23621
23622cat >>confdefs.h <<_ACEOF
23623#define SIZEOF_FLOAT_T $ac_cv_sizeof_float_t
23624_ACEOF
23625
23626
23627# The cast to long int works around a bug in the HP C Compiler
23628# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23629# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23630# This bug is HP SR number 8606223364.
23631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double_t" >&5
23632$as_echo_n "checking size of double_t... " >&6; }
23633if ${ac_cv_sizeof_double_t+:} false; then :
23634 $as_echo_n "(cached) " >&6
23635else
23636 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double_t))" "ac_cv_sizeof_double_t" "#include <math.h>
23637"; then :
23638
23639else
23640 if test "$ac_cv_type_double_t" = yes; then
23641 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23642$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23643as_fn_error 77 "cannot compute sizeof (double_t)
23644See \`config.log' for more details" "$LINENO" 5; }
23645 else
23646 ac_cv_sizeof_double_t=0
23647 fi
23648fi
23649
23650fi
23651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double_t" >&5
23652$as_echo "$ac_cv_sizeof_double_t" >&6; }
23653
23654
23655
23656cat >>confdefs.h <<_ACEOF
23657#define SIZEOF_DOUBLE_T $ac_cv_sizeof_double_t
23658_ACEOF
23659
23660
23661
cristy9b86f202012-11-28 21:55:35 +000023662# Get size of float, double and long double for comparaison.
23663# The cast to long int works around a bug in the HP C Compiler
23664# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23665# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23666# This bug is HP SR number 8606223364.
23667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
23668$as_echo_n "checking size of float... " >&6; }
23669if ${ac_cv_sizeof_float+:} false; then :
23670 $as_echo_n "(cached) " >&6
23671else
23672 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
23673
23674else
23675 if test "$ac_cv_type_float" = yes; then
23676 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23677$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23678as_fn_error 77 "cannot compute sizeof (float)
23679See \`config.log' for more details" "$LINENO" 5; }
23680 else
23681 ac_cv_sizeof_float=0
23682 fi
23683fi
23684
23685fi
23686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
23687$as_echo "$ac_cv_sizeof_float" >&6; }
23688
23689
23690
23691cat >>confdefs.h <<_ACEOF
23692#define SIZEOF_FLOAT $ac_cv_sizeof_float
23693_ACEOF
23694
23695
23696# The cast to long int works around a bug in the HP C Compiler
23697# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23698# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23699# This bug is HP SR number 8606223364.
23700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
23701$as_echo_n "checking size of double... " >&6; }
23702if ${ac_cv_sizeof_double+:} false; then :
23703 $as_echo_n "(cached) " >&6
23704else
23705 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
23706
23707else
23708 if test "$ac_cv_type_double" = yes; then
23709 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23710$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23711as_fn_error 77 "cannot compute sizeof (double)
23712See \`config.log' for more details" "$LINENO" 5; }
23713 else
23714 ac_cv_sizeof_double=0
23715 fi
23716fi
23717
23718fi
23719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
23720$as_echo "$ac_cv_sizeof_double" >&6; }
23721
23722
23723
23724cat >>confdefs.h <<_ACEOF
23725#define SIZEOF_DOUBLE $ac_cv_sizeof_double
23726_ACEOF
23727
23728
cristy9e2b6242014-03-25 11:49:41 +000023729# The cast to long int works around a bug in the HP C Compiler
cristyfec31822013-05-23 12:32:12 +000023730# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23731# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23732# This bug is HP SR number 8606223364.
23733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
23734$as_echo_n "checking size of long double... " >&6; }
23735if ${ac_cv_sizeof_long_double+:} false; then :
23736 $as_echo_n "(cached) " >&6
23737else
23738 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
23739
23740else
23741 if test "$ac_cv_type_long_double" = yes; then
23742 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23743$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23744as_fn_error 77 "cannot compute sizeof (long double)
23745See \`config.log' for more details" "$LINENO" 5; }
23746 else
23747 ac_cv_sizeof_long_double=0
23748 fi
23749fi
23750
23751fi
23752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
23753$as_echo "$ac_cv_sizeof_long_double" >&6; }
23754
23755
23756
23757cat >>confdefs.h <<_ACEOF
23758#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
23759_ACEOF
23760
23761
cristyf0cf9a22012-10-24 12:05:01 +000023762
cristy3ed852e2009-09-05 21:47:34 +000023763# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
23764# The cast to long int works around a bug in the HP C Compiler
23765# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23766# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23767# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023769$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023770if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023771 $as_echo_n "(cached) " >&6
23772else
cristy8b350f62009-11-15 23:12:43 +000023773 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 +000023774
cristy3ed852e2009-09-05 21:47:34 +000023775else
cristy8b350f62009-11-15 23:12:43 +000023776 if test "$ac_cv_type_signed_short" = yes; then
23777 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023778$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023779as_fn_error 77 "cannot compute sizeof (signed short)
23780See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023781 else
23782 ac_cv_sizeof_signed_short=0
23783 fi
23784fi
cristy8b350f62009-11-15 23:12:43 +000023785
cristy3ed852e2009-09-05 21:47:34 +000023786fi
cristy8b350f62009-11-15 23:12:43 +000023787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023788$as_echo "$ac_cv_sizeof_signed_short" >&6; }
23789
23790
23791
23792cat >>confdefs.h <<_ACEOF
23793#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
23794_ACEOF
23795
23796
23797
23798# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
23799# The cast to long int works around a bug in the HP C Compiler
23800# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23801# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23802# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023804$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023805if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023806 $as_echo_n "(cached) " >&6
23807else
cristy8b350f62009-11-15 23:12:43 +000023808 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 +000023809
cristy3ed852e2009-09-05 21:47:34 +000023810else
cristy8b350f62009-11-15 23:12:43 +000023811 if test "$ac_cv_type_unsigned_short" = yes; then
23812 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023813$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023814as_fn_error 77 "cannot compute sizeof (unsigned short)
23815See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023816 else
23817 ac_cv_sizeof_unsigned_short=0
23818 fi
23819fi
cristy8b350f62009-11-15 23:12:43 +000023820
cristy3ed852e2009-09-05 21:47:34 +000023821fi
cristy8b350f62009-11-15 23:12:43 +000023822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023823$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
23824
23825
23826
23827cat >>confdefs.h <<_ACEOF
23828#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
23829_ACEOF
23830
23831
23832
23833# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
23834# The cast to long int works around a bug in the HP C Compiler
23835# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23836# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23837# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023839$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023840if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023841 $as_echo_n "(cached) " >&6
23842else
cristy8b350f62009-11-15 23:12:43 +000023843 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 +000023844
cristy3ed852e2009-09-05 21:47:34 +000023845else
cristy8b350f62009-11-15 23:12:43 +000023846 if test "$ac_cv_type_signed_int" = yes; then
23847 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023848$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023849as_fn_error 77 "cannot compute sizeof (signed int)
23850See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023851 else
23852 ac_cv_sizeof_signed_int=0
23853 fi
23854fi
cristy8b350f62009-11-15 23:12:43 +000023855
cristy3ed852e2009-09-05 21:47:34 +000023856fi
cristy8b350f62009-11-15 23:12:43 +000023857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023858$as_echo "$ac_cv_sizeof_signed_int" >&6; }
23859
23860
23861
23862cat >>confdefs.h <<_ACEOF
23863#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
23864_ACEOF
23865
23866
23867
23868# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
23869# The cast to long int works around a bug in the HP C Compiler
23870# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23871# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23872# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023874$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023875if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023876 $as_echo_n "(cached) " >&6
23877else
cristy8b350f62009-11-15 23:12:43 +000023878 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 +000023879
cristy3ed852e2009-09-05 21:47:34 +000023880else
cristy8b350f62009-11-15 23:12:43 +000023881 if test "$ac_cv_type_unsigned_int" = yes; then
23882 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023883$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023884as_fn_error 77 "cannot compute sizeof (unsigned int)
23885See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023886 else
23887 ac_cv_sizeof_unsigned_int=0
23888 fi
23889fi
cristy8b350f62009-11-15 23:12:43 +000023890
cristy3ed852e2009-09-05 21:47:34 +000023891fi
cristy8b350f62009-11-15 23:12:43 +000023892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023893$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
23894
23895
23896
23897cat >>confdefs.h <<_ACEOF
23898#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
23899_ACEOF
23900
23901
23902
23903# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
23904# The cast to long int works around a bug in the HP C Compiler
23905# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23906# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23907# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023909$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023910if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023911 $as_echo_n "(cached) " >&6
23912else
cristy8b350f62009-11-15 23:12:43 +000023913 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 +000023914
cristy3ed852e2009-09-05 21:47:34 +000023915else
cristy8b350f62009-11-15 23:12:43 +000023916 if test "$ac_cv_type_signed_long" = yes; then
23917 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023918$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023919as_fn_error 77 "cannot compute sizeof (signed long)
23920See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023921 else
23922 ac_cv_sizeof_signed_long=0
23923 fi
23924fi
cristy8b350f62009-11-15 23:12:43 +000023925
cristy3ed852e2009-09-05 21:47:34 +000023926fi
cristy8b350f62009-11-15 23:12:43 +000023927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023928$as_echo "$ac_cv_sizeof_signed_long" >&6; }
23929
23930
23931
23932cat >>confdefs.h <<_ACEOF
23933#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
23934_ACEOF
23935
23936
23937
23938# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
23939# The cast to long int works around a bug in the HP C Compiler
23940# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23941# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23942# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023944$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023945if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023946 $as_echo_n "(cached) " >&6
23947else
cristy8b350f62009-11-15 23:12:43 +000023948 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 +000023949
cristy3ed852e2009-09-05 21:47:34 +000023950else
cristy8b350f62009-11-15 23:12:43 +000023951 if test "$ac_cv_type_unsigned_long" = yes; then
23952 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023953$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023954as_fn_error 77 "cannot compute sizeof (unsigned long)
23955See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023956 else
23957 ac_cv_sizeof_unsigned_long=0
23958 fi
23959fi
cristy8b350f62009-11-15 23:12:43 +000023960
cristy3ed852e2009-09-05 21:47:34 +000023961fi
cristy8b350f62009-11-15 23:12:43 +000023962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023963$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
23964
23965
23966
23967cat >>confdefs.h <<_ACEOF
23968#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
23969_ACEOF
23970
23971
23972
23973# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
23974# 'signed long long' is not supported then the value defined is zero.
23975# The cast to long int works around a bug in the HP C Compiler
23976# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23977# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23978# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023980$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023981if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023982 $as_echo_n "(cached) " >&6
23983else
cristy8b350f62009-11-15 23:12:43 +000023984 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 +000023985
cristy3ed852e2009-09-05 21:47:34 +000023986else
cristy8b350f62009-11-15 23:12:43 +000023987 if test "$ac_cv_type_signed_long_long" = yes; then
23988 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023989$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023990as_fn_error 77 "cannot compute sizeof (signed long long)
23991See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023992 else
23993 ac_cv_sizeof_signed_long_long=0
23994 fi
23995fi
cristy8b350f62009-11-15 23:12:43 +000023996
cristy3ed852e2009-09-05 21:47:34 +000023997fi
cristy8b350f62009-11-15 23:12:43 +000023998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023999$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
24000
24001
24002
24003cat >>confdefs.h <<_ACEOF
24004#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
24005_ACEOF
24006
24007
24008
24009# Obtain size of a 'unsigned long long' and define as
24010# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
24011# supported then the value defined is zero.
24012# The cast to long int works around a bug in the HP C Compiler
24013# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24014# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24015# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024017$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024018if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024019 $as_echo_n "(cached) " >&6
24020else
cristy8b350f62009-11-15 23:12:43 +000024021 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 +000024022
cristy3ed852e2009-09-05 21:47:34 +000024023else
cristy8b350f62009-11-15 23:12:43 +000024024 if test "$ac_cv_type_unsigned_long_long" = yes; then
24025 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024026$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024027as_fn_error 77 "cannot compute sizeof (unsigned long long)
24028See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024029 else
24030 ac_cv_sizeof_unsigned_long_long=0
24031 fi
24032fi
cristy8b350f62009-11-15 23:12:43 +000024033
cristy3ed852e2009-09-05 21:47:34 +000024034fi
cristy8b350f62009-11-15 23:12:43 +000024035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024036$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
24037
24038
24039
24040cat >>confdefs.h <<_ACEOF
24041#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
24042_ACEOF
24043
24044
24045
cristyfec31822013-05-23 12:32:12 +000024046# Obtain size of off_t and define as SIZEOF_OFF_T
24047# The cast to long int works around a bug in the HP C Compiler
24048# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24049# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24050# This bug is HP SR number 8606223364.
24051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
24052$as_echo_n "checking size of off_t... " >&6; }
24053if ${ac_cv_sizeof_off_t+:} false; then :
24054 $as_echo_n "(cached) " >&6
24055else
24056 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
24057
24058else
24059 if test "$ac_cv_type_off_t" = yes; then
24060 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24061$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24062as_fn_error 77 "cannot compute sizeof (off_t)
24063See \`config.log' for more details" "$LINENO" 5; }
24064 else
24065 ac_cv_sizeof_off_t=0
24066 fi
24067fi
24068
24069fi
24070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
24071$as_echo "$ac_cv_sizeof_off_t" >&6; }
24072
24073
24074
24075cat >>confdefs.h <<_ACEOF
24076#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
24077_ACEOF
24078
24079
24080
24081# Obtain size of size_t and define as SIZEOF_SIZE_T
24082# The cast to long int works around a bug in the HP C Compiler
24083# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24084# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24085# This bug is HP SR number 8606223364.
24086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
24087$as_echo_n "checking size of size_t... " >&6; }
24088if ${ac_cv_sizeof_size_t+:} false; then :
24089 $as_echo_n "(cached) " >&6
24090else
24091 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
24092
24093else
24094 if test "$ac_cv_type_size_t" = yes; then
24095 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24096$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24097as_fn_error 77 "cannot compute sizeof (size_t)
24098See \`config.log' for more details" "$LINENO" 5; }
24099 else
24100 ac_cv_sizeof_size_t=0
24101 fi
24102fi
24103
24104fi
24105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
24106$as_echo "$ac_cv_sizeof_size_t" >&6; }
24107
24108
24109
24110cat >>confdefs.h <<_ACEOF
24111#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
24112_ACEOF
24113
24114
24115
24116# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
24117# The cast to long int works around a bug in the HP C Compiler
24118# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24119# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24120# This bug is HP SR number 8606223364.
24121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
24122$as_echo_n "checking size of ssize_t... " >&6; }
24123if ${ac_cv_sizeof_ssize_t+:} false; then :
24124 $as_echo_n "(cached) " >&6
24125else
24126 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
24127
24128else
24129 if test "$ac_cv_type_ssize_t" = yes; then
24130 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24131$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24132as_fn_error 77 "cannot compute sizeof (ssize_t)
24133See \`config.log' for more details" "$LINENO" 5; }
24134 else
24135 ac_cv_sizeof_ssize_t=0
24136 fi
24137fi
24138
24139fi
24140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
24141$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
24142
24143
24144
24145cat >>confdefs.h <<_ACEOF
24146#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
24147_ACEOF
24148
24149
24150
cristy3ed852e2009-09-05 21:47:34 +000024151# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
24152# The cast to long int works around a bug in the HP C Compiler
24153# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24154# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24155# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000024157$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024158if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024159 $as_echo_n "(cached) " >&6
24160else
cristy8b350f62009-11-15 23:12:43 +000024161 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 +000024162
cristy3ed852e2009-09-05 21:47:34 +000024163else
cristy8b350f62009-11-15 23:12:43 +000024164 if test "$ac_cv_type_unsigned_intp" = yes; then
24165 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024166$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024167as_fn_error 77 "cannot compute sizeof (unsigned int*)
24168See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024169 else
24170 ac_cv_sizeof_unsigned_intp=0
24171 fi
24172fi
cristy8b350f62009-11-15 23:12:43 +000024173
cristy3ed852e2009-09-05 21:47:34 +000024174fi
cristy8b350f62009-11-15 23:12:43 +000024175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024176$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
24177
24178
24179
24180cat >>confdefs.h <<_ACEOF
24181#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
24182_ACEOF
24183
24184
24185
24186#
24187# Compute sized types for current CPU and compiler options.
24188#
24189
cristy8b350f62009-11-15 23:12:43 +000024190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024191$as_echo_n "checking for signed 8-bit type... " >&6; }
24192INT8_T='signed char'
cristyad38abe2012-12-23 23:03:21 +000024193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
24194$as_echo "$INT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024195
24196
cristy8b350f62009-11-15 23:12:43 +000024197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024198$as_echo_n "checking for unsigned 8-bit type... " >&6; }
24199UINT8_T='unsigned char'
cristyad38abe2012-12-23 23:03:21 +000024200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
24201$as_echo "$UINT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024202
24203
cristy8b350f62009-11-15 23:12:43 +000024204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024205$as_echo_n "checking for signed 16-bit type... " >&6; }
24206INT16_T='signed short'
cristyad38abe2012-12-23 23:03:21 +000024207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
24208$as_echo "$INT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024209
24210
cristy8b350f62009-11-15 23:12:43 +000024211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024212$as_echo_n "checking for unsigned 16-bit type... " >&6; }
24213UINT16_T='unsigned short'
cristyad38abe2012-12-23 23:03:21 +000024214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
24215$as_echo "$UINT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024216
24217
cristy8b350f62009-11-15 23:12:43 +000024218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024219$as_echo_n "checking for signed 32-bit type... " >&6; }
24220INT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024221INT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024222if test $ac_cv_sizeof_signed_int -eq 4; then
24223 INT32_T='signed int'
cristy6d5e20f2011-04-25 13:48:54 +000024224 INT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000024225elif test $ac_cv_sizeof_signed_long -eq 4; then
24226 INT32_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000024227 INT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024228fi
cristyad38abe2012-12-23 23:03:21 +000024229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
24230$as_echo "$INT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024231
24232
cristy6d5e20f2011-04-25 13:48:54 +000024233
cristy8b350f62009-11-15 23:12:43 +000024234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024235$as_echo_n "checking for unsigned 32-bit type... " >&6; }
24236UINT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024237UINT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024238if test $ac_cv_sizeof_unsigned_int -eq 4; then
24239 UINT32_T='unsigned int'
cristy6d5e20f2011-04-25 13:48:54 +000024240 UINT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000024241elif test $ac_cv_sizeof_unsigned_long -eq 4; then
24242 UINT32_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024243 UINT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024244fi
cristyad38abe2012-12-23 23:03:21 +000024245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
24246$as_echo "$UINT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024247
24248
cristy6d5e20f2011-04-25 13:48:54 +000024249
cristy8b350f62009-11-15 23:12:43 +000024250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024251$as_echo_n "checking for signed 64-bit type... " >&6; }
24252INT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024253INT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024254if test $ac_cv_sizeof_signed_long -eq 8; then
24255 INT64_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000024256 INT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024257elif test $ac_cv_sizeof_signed_long_long -eq 8; then
24258 INT64_T='signed long long'
cristy6d5e20f2011-04-25 13:48:54 +000024259 INT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024260fi
cristy3a99dcf2011-12-17 01:29:40 +000024261case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000024262 mingw* )
24263 INT64_F='"I64"'
24264 ;;
24265esac
cristyad38abe2012-12-23 23:03:21 +000024266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
24267$as_echo "$INT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024268
24269
cristy6d5e20f2011-04-25 13:48:54 +000024270
cristy8b350f62009-11-15 23:12:43 +000024271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024272$as_echo_n "checking for unsigned 64-bit type... " >&6; }
24273UINT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024274UINT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024275if test $ac_cv_sizeof_unsigned_long -eq 8; then
24276 UINT64_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024277 UINT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024278elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
24279 UINT64_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000024280 UINT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024281fi
cristy3a99dcf2011-12-17 01:29:40 +000024282case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000024283 mingw* )
24284 UINT64_F='"I64"'
24285 ;;
24286esac
cristyad38abe2012-12-23 23:03:21 +000024287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
24288$as_echo "$UINT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024289
24290
cristy6d5e20f2011-04-25 13:48:54 +000024291
cristy8b350f62009-11-15 23:12:43 +000024292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024293$as_echo_n "checking for unsigned maximum type... " >&6; }
24294UINTMAX_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024295UINTMAX_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024296if test "$UINT64_T" != 'none'; then
24297 UINTMAX_T=$UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +000024298 UINTMAX_F=$UINT64_F
cristy3ed852e2009-09-05 21:47:34 +000024299elif test "$UINT32_T" != 'none'; then
24300 UINTMAX_T=$UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +000024301 UINTMAX_F=$UINT32_F
cristy3ed852e2009-09-05 21:47:34 +000024302fi
cristyad38abe2012-12-23 23:03:21 +000024303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
24304$as_echo "$UINTMAX_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024305
24306
cristy6d5e20f2011-04-25 13:48:54 +000024307
cristy8b350f62009-11-15 23:12:43 +000024308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024309$as_echo_n "checking for pointer difference type... " >&6; }
24310UINTPTR_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024311UINTPTR_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024312if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
24313 UINTPTR_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024314 UINTPTR_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024315elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
24316 UINTPTR_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000024317 UINTPTR_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024318fi
cristyad38abe2012-12-23 23:03:21 +000024319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
24320$as_echo "$UINTPTR_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024321
24322
cristy6d5e20f2011-04-25 13:48:54 +000024323
cristy8b350f62009-11-15 23:12:43 +000024324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000024325$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024326cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024327/* end confdefs.h. */
24328
24329int
24330main ()
24331{
24332{ const char *func = __func__; return(func != 0 ? 0 : 1); }
24333 ;
24334 return 0;
24335}
24336_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024337if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000024338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24339$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024340else
cristyad38abe2012-12-23 23:03:21 +000024341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24342$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000024344$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024346/* end confdefs.h. */
24347
24348int
24349main ()
24350{
24351{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
24352 ;
24353 return 0;
24354}
24355_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024356if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000024357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24358$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024359
cristy8b350f62009-11-15 23:12:43 +000024360$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024361
24362else
cristyad38abe2012-12-23 23:03:21 +000024363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24364$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024365
cristy8b350f62009-11-15 23:12:43 +000024366$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024367
24368fi
cristy3ed852e2009-09-05 21:47:34 +000024369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24370fi
cristy3ed852e2009-09-05 21:47:34 +000024371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24372
24373########
24374#
24375# Check for functions
24376#
24377########
cristy8b350f62009-11-15 23:12:43 +000024378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024379$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024380if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024381 $as_echo_n "(cached) " >&6
24382else
cristy8b350f62009-11-15 23:12:43 +000024383 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024384 ac_cv_func_closedir_void=yes
24385else
cristy8b350f62009-11-15 23:12:43 +000024386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024387/* end confdefs.h. */
24388$ac_includes_default
24389#include <$ac_header_dirent>
24390#ifndef __cplusplus
24391int closedir ();
24392#endif
24393
24394int
24395main ()
24396{
24397return closedir (opendir (".")) != 0;
24398 ;
24399 return 0;
24400}
24401_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024402if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024403 ac_cv_func_closedir_void=no
24404else
cristy8b350f62009-11-15 23:12:43 +000024405 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000024406fi
cristy8b350f62009-11-15 23:12:43 +000024407rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24408 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024409fi
24410
cristy3ed852e2009-09-05 21:47:34 +000024411fi
cristy8b350f62009-11-15 23:12:43 +000024412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024413$as_echo "$ac_cv_func_closedir_void" >&6; }
24414if test $ac_cv_func_closedir_void = yes; then
24415
cristy8b350f62009-11-15 23:12:43 +000024416$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024417
24418fi
24419
cristycd4c5312009-11-22 01:19:08 +000024420
24421
24422
24423 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000024424do :
24425 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000024426ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
24427"
cristy98dddb52010-11-04 00:30:15 +000024428if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024429 cat >>confdefs.h <<_ACEOF
24430#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24431_ACEOF
24432
24433fi
24434
24435done
24436
cristycd4c5312009-11-22 01:19:08 +000024437
24438
24439
24440
24441
24442
24443
cristy3ed852e2009-09-05 21:47:34 +000024444for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000024445do :
24446 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024447if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024448 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024449#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000024450_ACEOF
24451
24452fi
24453done
24454
cristy8b350f62009-11-15 23:12:43 +000024455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000024456$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024457if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024458 $as_echo_n "(cached) " >&6
24459else
cristy8b350f62009-11-15 23:12:43 +000024460 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024461 ac_cv_func_mmap_fixed_mapped=no
24462else
cristy8b350f62009-11-15 23:12:43 +000024463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024464/* end confdefs.h. */
24465$ac_includes_default
24466/* malloc might have been renamed as rpl_malloc. */
24467#undef malloc
24468
24469/* Thanks to Mike Haertel and Jim Avera for this test.
24470 Here is a matrix of mmap possibilities:
24471 mmap private not fixed
24472 mmap private fixed at somewhere currently unmapped
24473 mmap private fixed at somewhere already mapped
24474 mmap shared not fixed
24475 mmap shared fixed at somewhere currently unmapped
24476 mmap shared fixed at somewhere already mapped
24477 For private mappings, we should verify that changes cannot be read()
24478 back from the file, nor mmap's back from the file at a different
24479 address. (There have been systems where private was not correctly
24480 implemented like the infamous i386 svr4.0, and systems where the
24481 VM page cache was not coherent with the file system buffer cache
24482 like early versions of FreeBSD and possibly contemporary NetBSD.)
24483 For shared mappings, we should conversely verify that changes get
24484 propagated back to all the places they're supposed to be.
24485
24486 Grep wants private fixed already mapped.
24487 The main things grep needs to know about mmap are:
24488 * does it exist and is it safe to write into the mmap'd area
24489 * how to use it (BSD variants) */
24490
24491#include <fcntl.h>
24492#include <sys/mman.h>
24493
24494#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24495char *malloc ();
24496#endif
24497
24498/* This mess was copied from the GNU getpagesize.h. */
24499#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000024500# ifdef _SC_PAGESIZE
24501# define getpagesize() sysconf(_SC_PAGESIZE)
24502# else /* no _SC_PAGESIZE */
24503# ifdef HAVE_SYS_PARAM_H
24504# include <sys/param.h>
24505# ifdef EXEC_PAGESIZE
24506# define getpagesize() EXEC_PAGESIZE
24507# else /* no EXEC_PAGESIZE */
24508# ifdef NBPG
24509# define getpagesize() NBPG * CLSIZE
24510# ifndef CLSIZE
24511# define CLSIZE 1
24512# endif /* no CLSIZE */
24513# else /* no NBPG */
24514# ifdef NBPC
24515# define getpagesize() NBPC
24516# else /* no NBPC */
24517# ifdef PAGESIZE
24518# define getpagesize() PAGESIZE
24519# endif /* PAGESIZE */
24520# endif /* no NBPC */
24521# endif /* no NBPG */
24522# endif /* no EXEC_PAGESIZE */
24523# else /* no HAVE_SYS_PARAM_H */
24524# define getpagesize() 8192 /* punt totally */
24525# endif /* no HAVE_SYS_PARAM_H */
24526# endif /* no _SC_PAGESIZE */
24527
24528#endif /* no HAVE_GETPAGESIZE */
24529
24530int
24531main ()
24532{
24533 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000024534 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000024535 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000024536 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000024537
24538 pagesize = getpagesize ();
24539
24540 /* First, make a file with some known garbage in it. */
24541 data = (char *) malloc (pagesize);
24542 if (!data)
24543 return 1;
24544 for (i = 0; i < pagesize; ++i)
24545 *(data + i) = rand ();
24546 umask (0);
24547 fd = creat ("conftest.mmap", 0600);
24548 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024549 return 2;
cristy3ed852e2009-09-05 21:47:34 +000024550 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024551 return 3;
cristy3ed852e2009-09-05 21:47:34 +000024552 close (fd);
24553
cristycd4c5312009-11-22 01:19:08 +000024554 /* Next, check that the tail of a page is zero-filled. File must have
24555 non-zero length, otherwise we risk SIGBUS for entire page. */
24556 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24557 if (fd2 < 0)
24558 return 4;
cristyc54f5d42009-11-27 21:36:31 +000024559 cdata2 = "";
24560 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000024561 return 5;
cristyc54f5d42009-11-27 21:36:31 +000024562 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000024563 if (data2 == MAP_FAILED)
24564 return 6;
24565 for (i = 0; i < pagesize; ++i)
24566 if (*(data2 + i))
24567 return 7;
24568 close (fd2);
24569 if (munmap (data2, pagesize))
24570 return 8;
24571
cristy3ed852e2009-09-05 21:47:34 +000024572 /* Next, try to mmap the file at a fixed address which already has
24573 something else allocated at it. If we can, also make sure that
24574 we see the same garbage. */
24575 fd = open ("conftest.mmap", O_RDWR);
24576 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024577 return 9;
cristy3ed852e2009-09-05 21:47:34 +000024578 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24579 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000024580 return 10;
cristy3ed852e2009-09-05 21:47:34 +000024581 for (i = 0; i < pagesize; ++i)
24582 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000024583 return 11;
cristy3ed852e2009-09-05 21:47:34 +000024584
24585 /* Finally, make sure that changes to the mapped area do not
24586 percolate back to the file as seen by read(). (This is a bug on
24587 some variants of i386 svr4.0.) */
24588 for (i = 0; i < pagesize; ++i)
24589 *(data2 + i) = *(data2 + i) + 1;
24590 data3 = (char *) malloc (pagesize);
24591 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000024592 return 12;
cristy3ed852e2009-09-05 21:47:34 +000024593 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024594 return 13;
cristy3ed852e2009-09-05 21:47:34 +000024595 for (i = 0; i < pagesize; ++i)
24596 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000024597 return 14;
cristy3ed852e2009-09-05 21:47:34 +000024598 close (fd);
24599 return 0;
24600}
24601_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024602if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024603 ac_cv_func_mmap_fixed_mapped=yes
24604else
cristy8b350f62009-11-15 23:12:43 +000024605 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000024606fi
cristy8b350f62009-11-15 23:12:43 +000024607rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24608 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024609fi
24610
cristy3ed852e2009-09-05 21:47:34 +000024611fi
cristy8b350f62009-11-15 23:12:43 +000024612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000024613$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24614if test $ac_cv_func_mmap_fixed_mapped = yes; then
24615
cristy8b350f62009-11-15 23:12:43 +000024616$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024617
24618fi
cristycd4c5312009-11-22 01:19:08 +000024619rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000024620
cristy3ed852e2009-09-05 21:47:34 +000024621for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000024622do :
24623 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000024624if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024625 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024626#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000024627_ACEOF
24628
24629fi
24630
24631done
24632
cristy3ed852e2009-09-05 21:47:34 +000024633for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000024634do :
24635 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24636ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024637if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024638 cat >>confdefs.h <<_ACEOF
24639#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24640_ACEOF
24641
24642fi
24643done
24644
24645if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024647$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024648if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024649 $as_echo_n "(cached) " >&6
24650else
cristy8b350f62009-11-15 23:12:43 +000024651 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024652 ac_cv_func_fork_works=cross
24653else
cristy8b350f62009-11-15 23:12:43 +000024654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024655/* end confdefs.h. */
24656$ac_includes_default
24657int
24658main ()
24659{
24660
24661 /* By Ruediger Kuhlmann. */
24662 return fork () < 0;
24663
24664 ;
24665 return 0;
24666}
24667_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024668if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024669 ac_cv_func_fork_works=yes
24670else
cristy8b350f62009-11-15 23:12:43 +000024671 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024672fi
cristy8b350f62009-11-15 23:12:43 +000024673rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24674 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024675fi
24676
cristy3ed852e2009-09-05 21:47:34 +000024677fi
cristy8b350f62009-11-15 23:12:43 +000024678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024679$as_echo "$ac_cv_func_fork_works" >&6; }
24680
24681else
24682 ac_cv_func_fork_works=$ac_cv_func_fork
24683fi
24684if test "x$ac_cv_func_fork_works" = xcross; then
24685 case $host in
24686 *-*-amigaos* | *-*-msdosdjgpp*)
24687 # Override, as these systems have only a dummy fork() stub
24688 ac_cv_func_fork_works=no
24689 ;;
24690 *)
24691 ac_cv_func_fork_works=yes
24692 ;;
24693 esac
cristy8b350f62009-11-15 23:12:43 +000024694 { $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 +000024695$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24696fi
24697ac_cv_func_vfork_works=$ac_cv_func_vfork
24698if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024700$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024701if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024702 $as_echo_n "(cached) " >&6
24703else
cristy8b350f62009-11-15 23:12:43 +000024704 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024705 ac_cv_func_vfork_works=cross
24706else
cristy8b350f62009-11-15 23:12:43 +000024707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024708/* end confdefs.h. */
24709/* Thanks to Paul Eggert for this test. */
24710$ac_includes_default
24711#include <sys/wait.h>
24712#ifdef HAVE_VFORK_H
24713# include <vfork.h>
24714#endif
24715/* On some sparc systems, changes by the child to local and incoming
24716 argument registers are propagated back to the parent. The compiler
24717 is told about this with #include <vfork.h>, but some compilers
24718 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24719 static variable whose address is put into a register that is
24720 clobbered by the vfork. */
24721static void
24722#ifdef __cplusplus
24723sparc_address_test (int arg)
24724# else
24725sparc_address_test (arg) int arg;
24726#endif
24727{
24728 static pid_t child;
24729 if (!child) {
24730 child = vfork ();
24731 if (child < 0) {
24732 perror ("vfork");
24733 _exit(2);
24734 }
24735 if (!child) {
24736 arg = getpid();
24737 write(-1, "", 0);
24738 _exit (arg);
24739 }
24740 }
24741}
24742
24743int
24744main ()
24745{
24746 pid_t parent = getpid ();
24747 pid_t child;
24748
24749 sparc_address_test (0);
24750
24751 child = vfork ();
24752
24753 if (child == 0) {
24754 /* Here is another test for sparc vfork register problems. This
24755 test uses lots of local variables, at least as many local
24756 variables as main has allocated so far including compiler
24757 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24758 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24759 reuse the register of parent for one of the local variables,
24760 since it will think that parent can't possibly be used any more
24761 in this routine. Assigning to the local variable will thus
24762 munge parent in the parent process. */
24763 pid_t
24764 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24765 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24766 /* Convince the compiler that p..p7 are live; otherwise, it might
24767 use the same hardware register for all 8 local variables. */
24768 if (p != p1 || p != p2 || p != p3 || p != p4
24769 || p != p5 || p != p6 || p != p7)
24770 _exit(1);
24771
24772 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24773 from child file descriptors. If the child closes a descriptor
24774 before it execs or exits, this munges the parent's descriptor
24775 as well. Test for this by closing stdout in the child. */
24776 _exit(close(fileno(stdout)) != 0);
24777 } else {
24778 int status;
24779 struct stat st;
24780
24781 while (wait(&status) != child)
24782 ;
24783 return (
24784 /* Was there some problem with vforking? */
24785 child < 0
24786
24787 /* Did the child fail? (This shouldn't happen.) */
24788 || status
24789
24790 /* Did the vfork/compiler bug occur? */
24791 || parent != getpid()
24792
24793 /* Did the file descriptor bug occur? */
24794 || fstat(fileno(stdout), &st) != 0
24795 );
24796 }
24797}
24798_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024799if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024800 ac_cv_func_vfork_works=yes
24801else
cristy8b350f62009-11-15 23:12:43 +000024802 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024803fi
cristy8b350f62009-11-15 23:12:43 +000024804rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24805 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024806fi
24807
cristy3ed852e2009-09-05 21:47:34 +000024808fi
cristy8b350f62009-11-15 23:12:43 +000024809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024810$as_echo "$ac_cv_func_vfork_works" >&6; }
24811
24812fi;
24813if test "x$ac_cv_func_fork_works" = xcross; then
24814 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000024815 { $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 +000024816$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24817fi
24818
24819if test "x$ac_cv_func_vfork_works" = xyes; then
24820
cristy8b350f62009-11-15 23:12:43 +000024821$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024822
24823else
24824
cristy8b350f62009-11-15 23:12:43 +000024825$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024826
24827fi
24828if test "x$ac_cv_func_fork_works" = xyes; then
24829
cristy8b350f62009-11-15 23:12:43 +000024830$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024831
24832fi
24833
cristy8b350f62009-11-15 23:12:43 +000024834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024835$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024836if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024837 $as_echo_n "(cached) " >&6
24838else
cristy8b350f62009-11-15 23:12:43 +000024839 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024840 ac_cv_func_memcmp_working=no
24841else
cristy8b350f62009-11-15 23:12:43 +000024842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024843/* end confdefs.h. */
24844$ac_includes_default
24845int
24846main ()
24847{
24848
24849 /* Some versions of memcmp are not 8-bit clean. */
24850 char c0 = '\100', c1 = '\200', c2 = '\201';
24851 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24852 return 1;
24853
24854 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
24855 or more and with at least one buffer not starting on a 4-byte boundary.
24856 William Lewis provided this test program. */
24857 {
24858 char foo[21];
24859 char bar[21];
24860 int i;
24861 for (i = 0; i < 4; i++)
24862 {
24863 char *a = foo + i;
24864 char *b = bar + i;
24865 strcpy (a, "--------01111111");
24866 strcpy (b, "--------10000000");
24867 if (memcmp (a, b, 16) >= 0)
24868 return 1;
24869 }
24870 return 0;
24871 }
24872
24873 ;
24874 return 0;
24875}
24876_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024877if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024878 ac_cv_func_memcmp_working=yes
24879else
cristy8b350f62009-11-15 23:12:43 +000024880 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000024881fi
cristy8b350f62009-11-15 23:12:43 +000024882rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24883 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024884fi
24885
cristy3ed852e2009-09-05 21:47:34 +000024886fi
cristy8b350f62009-11-15 23:12:43 +000024887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000024888$as_echo "$ac_cv_func_memcmp_working" >&6; }
24889test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
24890 *" memcmp.$ac_objext "* ) ;;
24891 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
24892 ;;
24893esac
24894
24895
cristy3ed852e2009-09-05 21:47:34 +000024896for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000024897do :
24898 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24899ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000024900if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024901 cat >>confdefs.h <<_ACEOF
24902#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24903_ACEOF
24904
24905fi
24906
24907done
24908
cristy8b350f62009-11-15 23:12:43 +000024909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000024910$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024911if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024912 $as_echo_n "(cached) " >&6
24913else
24914 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
24915 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
24916 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000024917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024918/* end confdefs.h. */
24919$ac_includes_default
24920#ifdef HAVE_SYS_SELECT_H
24921# include <sys/select.h>
24922#endif
24923#ifdef HAVE_SYS_SOCKET_H
24924# include <sys/socket.h>
24925#endif
24926
24927int
24928main ()
24929{
24930extern int select ($ac_arg1,
24931 $ac_arg234, $ac_arg234, $ac_arg234,
24932 $ac_arg5);
24933 ;
24934 return 0;
24935}
24936_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024937if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024938 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000024939fi
cristy3ed852e2009-09-05 21:47:34 +000024940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24941 done
24942 done
24943done
24944# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000024945: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000024946
24947fi
cristy8b350f62009-11-15 23:12:43 +000024948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000024949$as_echo "$ac_cv_func_select_args" >&6; }
24950ac_save_IFS=$IFS; IFS=','
24951set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
24952IFS=$ac_save_IFS
24953shift
24954
24955cat >>confdefs.h <<_ACEOF
24956#define SELECT_TYPE_ARG1 $1
24957_ACEOF
24958
24959
24960cat >>confdefs.h <<_ACEOF
24961#define SELECT_TYPE_ARG234 ($2)
24962_ACEOF
24963
24964
24965cat >>confdefs.h <<_ACEOF
24966#define SELECT_TYPE_ARG5 ($3)
24967_ACEOF
24968
24969rm -f conftest*
24970
cristyda16f162011-02-19 23:52:17 +000024971if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024972 $as_echo_n "(cached) " >&6
24973else
24974 ac_cv_func_setvbuf_reversed=no
24975fi
24976
24977
cristy8b350f62009-11-15 23:12:43 +000024978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000024979$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024980if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024981 $as_echo_n "(cached) " >&6
24982else
cristy8b350f62009-11-15 23:12:43 +000024983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024984/* end confdefs.h. */
24985#include <sys/types.h>
24986#include <signal.h>
24987
24988int
24989main ()
24990{
24991return *(signal (0, 0)) (0) == 1;
24992 ;
24993 return 0;
24994}
24995_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024996if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024997 ac_cv_type_signal=int
24998else
cristy8b350f62009-11-15 23:12:43 +000024999 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000025000fi
cristy3ed852e2009-09-05 21:47:34 +000025001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25002fi
cristy8b350f62009-11-15 23:12:43 +000025003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000025004$as_echo "$ac_cv_type_signal" >&6; }
25005
25006cat >>confdefs.h <<_ACEOF
25007#define RETSIGTYPE $ac_cv_type_signal
25008_ACEOF
25009
25010
cristy8b350f62009-11-15 23:12:43 +000025011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000025012$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025013if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025014 $as_echo_n "(cached) " >&6
25015else
cristy8b350f62009-11-15 23:12:43 +000025016 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025017 ac_cv_func_strtod=no
25018else
cristy8b350f62009-11-15 23:12:43 +000025019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025020/* end confdefs.h. */
25021
25022$ac_includes_default
25023#ifndef strtod
25024double strtod ();
25025#endif
25026int
25027main()
25028{
25029 {
25030 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
25031 char *string = " +69";
25032 char *term;
25033 double value;
25034 value = strtod (string, &term);
25035 if (value != 69 || term != (string + 4))
25036 return 1;
25037 }
25038
25039 {
25040 /* Under Solaris 2.4, strtod returns the wrong value for the
25041 terminating character under some conditions. */
25042 char *string = "NaN";
25043 char *term;
25044 strtod (string, &term);
25045 if (term != string && *(term - 1) == 0)
25046 return 1;
25047 }
25048 return 0;
25049}
25050
25051_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025052if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025053 ac_cv_func_strtod=yes
25054else
cristy8b350f62009-11-15 23:12:43 +000025055 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000025056fi
cristy8b350f62009-11-15 23:12:43 +000025057rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25058 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025059fi
25060
cristy3ed852e2009-09-05 21:47:34 +000025061fi
cristy8b350f62009-11-15 23:12:43 +000025062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000025063$as_echo "$ac_cv_func_strtod" >&6; }
25064if test $ac_cv_func_strtod = no; then
25065 case " $LIBOBJS " in
25066 *" strtod.$ac_objext "* ) ;;
25067 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
25068 ;;
25069esac
25070
cristy8b350f62009-11-15 23:12:43 +000025071ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000025072if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025073
cristy3ed852e2009-09-05 21:47:34 +000025074fi
25075
cristy3ed852e2009-09-05 21:47:34 +000025076if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000025077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000025078$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025079if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025080 $as_echo_n "(cached) " >&6
25081else
25082 ac_check_lib_save_LIBS=$LIBS
25083LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025084cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025085/* end confdefs.h. */
25086
25087/* Override any GCC internal prototype to avoid an error.
25088 Use char because int might match the return type of a GCC
25089 builtin and then its argument prototype would still apply. */
25090#ifdef __cplusplus
25091extern "C"
25092#endif
25093char pow ();
25094int
25095main ()
25096{
25097return pow ();
25098 ;
25099 return 0;
25100}
25101_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025102if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025103 ac_cv_lib_m_pow=yes
25104else
cristy8b350f62009-11-15 23:12:43 +000025105 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000025106fi
cristy8b350f62009-11-15 23:12:43 +000025107rm -f core conftest.err conftest.$ac_objext \
25108 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025109LIBS=$ac_check_lib_save_LIBS
25110fi
cristy8b350f62009-11-15 23:12:43 +000025111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000025112$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000025113if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025114 POW_LIB=-lm
25115else
cristy8b350f62009-11-15 23:12:43 +000025116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000025117$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
25118fi
25119
25120fi
25121
25122fi
25123
cristy7d4a1d62011-10-13 15:54:12 +000025124ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
25125if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
25126 ac_have_decl=1
25127else
25128 ac_have_decl=0
25129fi
25130
25131cat >>confdefs.h <<_ACEOF
25132#define HAVE_DECL_STRERROR_R $ac_have_decl
25133_ACEOF
25134
25135for ac_func in strerror_r
25136do :
25137 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
25138if test "x$ac_cv_func_strerror_r" = xyes; then :
25139 cat >>confdefs.h <<_ACEOF
25140#define HAVE_STRERROR_R 1
25141_ACEOF
25142
25143fi
25144done
25145
25146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
25147$as_echo_n "checking whether strerror_r returns char *... " >&6; }
25148if ${ac_cv_func_strerror_r_char_p+:} false; then :
25149 $as_echo_n "(cached) " >&6
25150else
25151
25152 ac_cv_func_strerror_r_char_p=no
25153 if test $ac_cv_have_decl_strerror_r = yes; then
25154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25155/* end confdefs.h. */
25156$ac_includes_default
25157int
25158main ()
25159{
25160
25161 char buf[100];
25162 char x = *strerror_r (0, buf, sizeof buf);
25163 char *p = strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000025164 return !p || x;
cristy7d4a1d62011-10-13 15:54:12 +000025165
25166 ;
25167 return 0;
25168}
25169_ACEOF
25170if ac_fn_c_try_compile "$LINENO"; then :
25171 ac_cv_func_strerror_r_char_p=yes
25172fi
25173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25174 else
25175 # strerror_r is not declared. Choose between
25176 # systems that have relatively inaccessible declarations for the
25177 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
25178 # former has a strerror_r that returns char*, while the latter
25179 # has a strerror_r that returns `int'.
25180 # This test should segfault on the DEC system.
25181 if test "$cross_compiling" = yes; then :
25182 :
25183else
25184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25185/* end confdefs.h. */
25186$ac_includes_default
25187 extern char *strerror_r ();
25188int
25189main ()
25190{
25191char buf[100];
25192 char x = *strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000025193 return ! isalpha (x);
cristy7d4a1d62011-10-13 15:54:12 +000025194 ;
25195 return 0;
25196}
25197_ACEOF
25198if ac_fn_c_try_run "$LINENO"; then :
25199 ac_cv_func_strerror_r_char_p=yes
25200fi
25201rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25202 conftest.$ac_objext conftest.beam conftest.$ac_ext
25203fi
25204
25205 fi
25206
25207fi
25208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
25209$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
25210if test $ac_cv_func_strerror_r_char_p = yes; then
25211
25212$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
25213
25214fi
25215
cristy3ed852e2009-09-05 21:47:34 +000025216for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000025217do :
25218 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000025219if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025220 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025221#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000025222_ACEOF
25223
cristy8b350f62009-11-15 23:12:43 +000025224ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000025225if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025226
cristy8b350f62009-11-15 23:12:43 +000025227$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025228
25229fi
25230
25231fi
25232done
25233
25234
25235
cristy161b9262010-03-20 19:34:32 +000025236#
25237# Find math library
25238#
25239MATH_LIBS=''
25240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
25241$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025242if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000025243 $as_echo_n "(cached) " >&6
25244else
25245 ac_check_lib_save_LIBS=$LIBS
25246LIBS="-lm $LIBS"
25247cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25248/* end confdefs.h. */
25249
25250/* Override any GCC internal prototype to avoid an error.
25251 Use char because int might match the return type of a GCC
25252 builtin and then its argument prototype would still apply. */
25253#ifdef __cplusplus
25254extern "C"
25255#endif
25256char sqrt ();
25257int
25258main ()
25259{
25260return sqrt ();
25261 ;
25262 return 0;
25263}
25264_ACEOF
25265if ac_fn_c_try_link "$LINENO"; then :
25266 ac_cv_lib_m_sqrt=yes
25267else
25268 ac_cv_lib_m_sqrt=no
25269fi
25270rm -f core conftest.err conftest.$ac_objext \
25271 conftest$ac_exeext conftest.$ac_ext
25272LIBS=$ac_check_lib_save_LIBS
25273fi
25274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
25275$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000025276if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000025277 MATH_LIBS="-lm"
25278fi
25279
25280LIBS="$MATH_LIBS $LIBS"
25281
25282
cristy85572162013-01-04 19:19:32 +000025283#
25284# Find socket library
25285#
cristy8a5d7f42013-01-06 15:24:33 +000025286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
25287$as_echo_n "checking for library containing gethostbyname... " >&6; }
25288if ${ac_cv_search_gethostbyname+:} false; then :
25289 $as_echo_n "(cached) " >&6
25290else
25291 ac_func_search_save_LIBS=$LIBS
25292cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25293/* end confdefs.h. */
25294
25295/* Override any GCC internal prototype to avoid an error.
25296 Use char because int might match the return type of a GCC
25297 builtin and then its argument prototype would still apply. */
25298#ifdef __cplusplus
25299extern "C"
25300#endif
25301char gethostbyname ();
25302int
25303main ()
25304{
25305return gethostbyname ();
25306 ;
25307 return 0;
25308}
25309_ACEOF
25310for ac_lib in '' resolv nsl; do
25311 if test -z "$ac_lib"; then
25312 ac_res="none required"
25313 else
25314 ac_res=-l$ac_lib
25315 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25316 fi
25317 if ac_fn_c_try_link "$LINENO"; then :
25318 ac_cv_search_gethostbyname=$ac_res
25319fi
25320rm -f core conftest.err conftest.$ac_objext \
25321 conftest$ac_exeext
25322 if ${ac_cv_search_gethostbyname+:} false; then :
25323 break
25324fi
25325done
25326if ${ac_cv_search_gethostbyname+:} false; then :
25327
25328else
25329 ac_cv_search_gethostbyname=no
25330fi
25331rm conftest.$ac_ext
25332LIBS=$ac_func_search_save_LIBS
25333fi
25334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
25335$as_echo "$ac_cv_search_gethostbyname" >&6; }
25336ac_res=$ac_cv_search_gethostbyname
25337if test "$ac_res" != no; then :
25338 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25339
25340fi
25341
cristy85572162013-01-04 19:19:32 +000025342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
25343$as_echo_n "checking for library containing socket... " >&6; }
25344if ${ac_cv_search_socket+:} false; then :
25345 $as_echo_n "(cached) " >&6
25346else
25347 ac_func_search_save_LIBS=$LIBS
25348cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25349/* end confdefs.h. */
25350
25351/* Override any GCC internal prototype to avoid an error.
25352 Use char because int might match the return type of a GCC
25353 builtin and then its argument prototype would still apply. */
25354#ifdef __cplusplus
25355extern "C"
25356#endif
25357char socket ();
25358int
25359main ()
25360{
25361return socket ();
25362 ;
25363 return 0;
25364}
25365_ACEOF
25366for ac_lib in '' socket; do
25367 if test -z "$ac_lib"; then
25368 ac_res="none required"
25369 else
25370 ac_res=-l$ac_lib
25371 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25372 fi
25373 if ac_fn_c_try_link "$LINENO"; then :
25374 ac_cv_search_socket=$ac_res
25375fi
25376rm -f core conftest.err conftest.$ac_objext \
25377 conftest$ac_exeext
25378 if ${ac_cv_search_socket+:} false; then :
25379 break
25380fi
25381done
25382if ${ac_cv_search_socket+:} false; then :
25383
25384else
25385 ac_cv_search_socket=no
25386fi
25387rm conftest.$ac_ext
25388LIBS=$ac_func_search_save_LIBS
25389fi
25390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
25391$as_echo "$ac_cv_search_socket" >&6; }
25392ac_res=$ac_cv_search_socket
25393if test "$ac_res" != no; then :
25394 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25395
cristy85572162013-01-04 19:19:32 +000025396
cristy8a5d7f42013-01-06 15:24:33 +000025397$as_echo "#define HAVE_SOCKET 1" >>confdefs.h
cristy85572162013-01-04 19:19:32 +000025398
cristy03f187e2013-01-24 00:22:19 +000025399 MAGICK_FEATURES="DPC $MAGICK_FEATURES"
cristy85572162013-01-04 19:19:32 +000025400
25401fi
25402
25403
25404for ac_func in acosh _aligned_malloc asinh atanh atoll atexit cabs carg cimag creal clock ctime_r directio _exit execvp fchmod floor fork ftime ftruncate getc_unlocked getcwd getpid getexecname getdtablesize getpagesize getrlimit getrusage gettimeofday gmtime_r isnan j0 j1 lltostr localtime_r lstat memmove memset mkstemp munmap nanosleep newlocale _NSGetExecutablePath pclose _pclose poll popen _popen posix_fadvise posix_fallocate posix_madvise posix_memalign posix_spawnp pow pread pwrite qsort_r raise rand_r readlink readdir_r realpath select seekdir setlocale socket sqrt setvbuf stat strchr strrchr strcspn strdup strpbrk strspn strstr strtod strtod_l strtol strtoul symlink sysconf sigemptyset sigaction spawnvp strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times ulltostr uselocale usleep utime vfprintf vfprintf_l vsprintf vsnprintf vsnprintf_l waitpid _wfopen _wstat
cristy8b350f62009-11-15 23:12:43 +000025405do :
25406 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25407ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025408if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025409 cat >>confdefs.h <<_ACEOF
25410#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25411_ACEOF
25412
25413fi
25414done
25415
25416
cristye43a45e2009-09-28 14:49:00 +000025417#
25418# Check for clock_gettime().
25419#
cristy8b350f62009-11-15 23:12:43 +000025420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025421$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025422if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025423 $as_echo_n "(cached) " >&6
25424else
25425 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000025426cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025427/* end confdefs.h. */
25428
25429/* Override any GCC internal prototype to avoid an error.
25430 Use char because int might match the return type of a GCC
25431 builtin and then its argument prototype would still apply. */
25432#ifdef __cplusplus
25433extern "C"
25434#endif
25435char clock_gettime ();
25436int
25437main ()
25438{
25439return clock_gettime ();
25440 ;
25441 return 0;
25442}
25443_ACEOF
25444for ac_lib in '' rt; do
25445 if test -z "$ac_lib"; then
25446 ac_res="none required"
25447 else
25448 ac_res=-l$ac_lib
25449 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25450 fi
cristy8b350f62009-11-15 23:12:43 +000025451 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025452 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000025453fi
cristy8b350f62009-11-15 23:12:43 +000025454rm -f core conftest.err conftest.$ac_objext \
25455 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000025456 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025457 break
25458fi
25459done
cristyda16f162011-02-19 23:52:17 +000025460if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000025461
cristye43a45e2009-09-28 14:49:00 +000025462else
25463 ac_cv_search_clock_gettime=no
25464fi
25465rm conftest.$ac_ext
25466LIBS=$ac_func_search_save_LIBS
25467fi
cristy8b350f62009-11-15 23:12:43 +000025468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025469$as_echo "$ac_cv_search_clock_gettime" >&6; }
25470ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000025471if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000025472 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25473
25474
cristy8b350f62009-11-15 23:12:43 +000025475$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025476
cristy8b350f62009-11-15 23:12:43 +000025477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000025478$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025480/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000025481
25482 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000025483int
25484main ()
25485{
25486clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000025487 ;
25488 return 0;
25489}
25490_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025491if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025492
cristyad38abe2012-12-23 23:03:21 +000025493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25494$as_echo "yes" >&6; }
cristye43a45e2009-09-28 14:49:00 +000025495
cristy8b350f62009-11-15 23:12:43 +000025496$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025497
25498
25499else
cristyad38abe2012-12-23 23:03:21 +000025500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25501$as_echo "no" >&6; }
cristye43a45e2009-09-28 14:49:00 +000025502
25503fi
cristye43a45e2009-09-28 14:49:00 +000025504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25505
25506else
25507
cristy8b350f62009-11-15 23:12:43 +000025508 for ac_func in gettimeofday ftime
25509do :
25510 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25511ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025512if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000025513 cat >>confdefs.h <<_ACEOF
25514#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25515_ACEOF
25516 break
25517fi
25518done
25519
25520
25521
25522fi
25523
25524
cristy3ed852e2009-09-05 21:47:34 +000025525########
25526#
25527# Check for function prototypes
25528#
25529########
25530
cristy8b350f62009-11-15 23:12:43 +000025531ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000025532#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025533"
cristyda16f162011-02-19 23:52:17 +000025534if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025535 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025536else
cristy8b350f62009-11-15 23:12:43 +000025537 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025538fi
25539
cristy3ed852e2009-09-05 21:47:34 +000025540cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025541#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025542_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025543ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000025544#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025545"
cristyda16f162011-02-19 23:52:17 +000025546if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025547 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025548else
cristy8b350f62009-11-15 23:12:43 +000025549 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025550fi
25551
cristy3ed852e2009-09-05 21:47:34 +000025552cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025553#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025554_ACEOF
25555
25556
cristy8b350f62009-11-15 23:12:43 +000025557ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000025558#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000025559"
cristyda16f162011-02-19 23:52:17 +000025560if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025561 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025562else
cristy8b350f62009-11-15 23:12:43 +000025563 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025564fi
25565
cristy3ed852e2009-09-05 21:47:34 +000025566cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025567#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025568_ACEOF
25569
25570
cristy8b350f62009-11-15 23:12:43 +000025571ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000025572#include <stdio.h>
25573#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000025574"
cristyda16f162011-02-19 23:52:17 +000025575if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025576 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025577else
cristy8b350f62009-11-15 23:12:43 +000025578 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025579fi
25580
cristy3ed852e2009-09-05 21:47:34 +000025581cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025582#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025583_ACEOF
25584
25585
cristy3ed852e2009-09-05 21:47:34 +000025586########
25587#
25588# C++ Support Tests (For Magick++)
25589#
25590########
25591have_magick_plus_plus='no'
25592if test "$with_magick_plus_plus" = 'yes'; then
25593 OLIBS="$LIBS"
25594 LIBS=''
25595 ac_ext=cpp
25596ac_cpp='$CXXCPP $CPPFLAGS'
25597ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25598ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25599ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25600
25601
25602 # Full set of headers used...
25603 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
25604 # functional iomanip iosfwd iostream iterator list string strstream utility
25605 ac_ext=cpp
25606ac_cpp='$CXXCPP $CPPFLAGS'
25607ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25608ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25609ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25610
25611 ac_ext=cpp
25612ac_cpp='$CXXCPP $CPPFLAGS'
25613ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25614ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25615ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25616if test -z "$CXX"; then
25617 if test -n "$CCC"; then
25618 CXX=$CCC
25619 else
25620 if test -n "$ac_tool_prefix"; then
25621 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25622 do
25623 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
25624set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025626$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025627if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025628 $as_echo_n "(cached) " >&6
25629else
25630 if test -n "$CXX"; then
25631 ac_cv_prog_CXX="$CXX" # Let the user override the test.
25632else
25633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25634for as_dir in $PATH
25635do
25636 IFS=$as_save_IFS
25637 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025638 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025640 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025642 break 2
25643 fi
25644done
cristy8b350f62009-11-15 23:12:43 +000025645 done
cristy3ed852e2009-09-05 21:47:34 +000025646IFS=$as_save_IFS
25647
25648fi
25649fi
25650CXX=$ac_cv_prog_CXX
25651if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025653$as_echo "$CXX" >&6; }
25654else
cristy8b350f62009-11-15 23:12:43 +000025655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025656$as_echo "no" >&6; }
25657fi
25658
25659
25660 test -n "$CXX" && break
25661 done
25662fi
25663if test -z "$CXX"; then
25664 ac_ct_CXX=$CXX
25665 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25666do
25667 # Extract the first word of "$ac_prog", so it can be a program name with args.
25668set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025670$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025671if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025672 $as_echo_n "(cached) " >&6
25673else
25674 if test -n "$ac_ct_CXX"; then
25675 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
25676else
25677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25678for as_dir in $PATH
25679do
25680 IFS=$as_save_IFS
25681 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025682 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025684 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025686 break 2
25687 fi
25688done
cristy8b350f62009-11-15 23:12:43 +000025689 done
cristy3ed852e2009-09-05 21:47:34 +000025690IFS=$as_save_IFS
25691
25692fi
25693fi
25694ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
25695if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025697$as_echo "$ac_ct_CXX" >&6; }
25698else
cristy8b350f62009-11-15 23:12:43 +000025699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025700$as_echo "no" >&6; }
25701fi
25702
25703
25704 test -n "$ac_ct_CXX" && break
25705done
25706
25707 if test "x$ac_ct_CXX" = x; then
25708 CXX="g++"
25709 else
25710 case $cross_compiling:$ac_tool_warned in
25711yes:)
cristy8b350f62009-11-15 23:12:43 +000025712{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025713$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25714ac_tool_warned=yes ;;
25715esac
25716 CXX=$ac_ct_CXX
25717 fi
25718fi
25719
25720 fi
25721fi
25722# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000025723$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000025724set X $ac_compile
25725ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000025726for ac_option in --version -v -V -qversion; do
25727 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000025728case "(($ac_try" in
25729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25730 *) ac_try_echo=$ac_try;;
25731esac
cristy8b350f62009-11-15 23:12:43 +000025732eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
25733$as_echo "$ac_try_echo"; } >&5
25734 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000025735 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025736 if test -s conftest.err; then
25737 sed '10a\
25738... rest of stderr output deleted ...
25739 10q' conftest.err >conftest.er1
25740 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000025741 fi
cristycd4c5312009-11-22 01:19:08 +000025742 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000025743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25744 test $ac_status = 0; }
25745done
cristy3ed852e2009-09-05 21:47:34 +000025746
cristy8b350f62009-11-15 23:12:43 +000025747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000025748$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025749if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025750 $as_echo_n "(cached) " >&6
25751else
cristy8b350f62009-11-15 23:12:43 +000025752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025753/* end confdefs.h. */
25754
25755int
25756main ()
25757{
25758#ifndef __GNUC__
25759 choke me
25760#endif
25761
25762 ;
25763 return 0;
25764}
25765_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025766if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025767 ac_compiler_gnu=yes
25768else
cristy8b350f62009-11-15 23:12:43 +000025769 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000025770fi
cristy3ed852e2009-09-05 21:47:34 +000025771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25772ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
25773
25774fi
cristy8b350f62009-11-15 23:12:43 +000025775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000025776$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
25777if test $ac_compiler_gnu = yes; then
25778 GXX=yes
25779else
25780 GXX=
25781fi
25782ac_test_CXXFLAGS=${CXXFLAGS+set}
25783ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000025784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025785$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025786if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025787 $as_echo_n "(cached) " >&6
25788else
25789 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
25790 ac_cxx_werror_flag=yes
25791 ac_cv_prog_cxx_g=no
25792 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025794/* end confdefs.h. */
25795
25796int
25797main ()
25798{
25799
25800 ;
25801 return 0;
25802}
25803_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025804if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025805 ac_cv_prog_cxx_g=yes
25806else
cristy8b350f62009-11-15 23:12:43 +000025807 CXXFLAGS=""
25808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025809/* end confdefs.h. */
25810
25811int
25812main ()
25813{
25814
25815 ;
25816 return 0;
25817}
25818_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025819if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025820
cristy8b350f62009-11-15 23:12:43 +000025821else
25822 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000025823 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025825/* end confdefs.h. */
25826
25827int
25828main ()
25829{
25830
25831 ;
25832 return 0;
25833}
25834_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025835if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025836 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000025837fi
cristy3ed852e2009-09-05 21:47:34 +000025838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25839fi
cristy3ed852e2009-09-05 21:47:34 +000025840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25841fi
cristy3ed852e2009-09-05 21:47:34 +000025842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25843 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
25844fi
cristy8b350f62009-11-15 23:12:43 +000025845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025846$as_echo "$ac_cv_prog_cxx_g" >&6; }
25847if test "$ac_test_CXXFLAGS" = set; then
25848 CXXFLAGS=$ac_save_CXXFLAGS
25849elif test $ac_cv_prog_cxx_g = yes; then
25850 if test "$GXX" = yes; then
25851 CXXFLAGS="-g -O2"
25852 else
25853 CXXFLAGS="-g"
25854 fi
25855else
25856 if test "$GXX" = yes; then
25857 CXXFLAGS="-O2"
25858 else
25859 CXXFLAGS=
25860 fi
25861fi
25862ac_ext=cpp
25863ac_cpp='$CXXCPP $CPPFLAGS'
25864ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25865ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25866ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25867
cristy73bd4a52010-10-05 11:24:23 +000025868depcc="$CXX" am_compiler_list=
25869
25870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
25871$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025872if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025873 $as_echo_n "(cached) " >&6
25874else
25875 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
25876 # We make a subdir and do the tests there. Otherwise we can end up
25877 # making bogus files that we don't know about and never remove. For
25878 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +000025879 # making a dummy file named 'D' -- because '-MD' means "put the output
25880 # in D".
cristy7247bba2012-02-05 16:37:27 +000025881 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +000025882 mkdir conftest.dir
25883 # Copy depcomp to subdir because otherwise we won't find it if we're
25884 # using a relative directory.
25885 cp "$am_depcomp" conftest.dir
25886 cd conftest.dir
25887 # We will build objects and dependencies in a subdirectory because
25888 # it helps to detect inapplicable dependency modes. For instance
25889 # both Tru64's cc and ICC support -MD to output dependencies as a
25890 # side effect of compilation, but ICC will put the dependencies in
25891 # the current directory while Tru64 will put them in the object
25892 # directory.
25893 mkdir sub
25894
25895 am_cv_CXX_dependencies_compiler_type=none
25896 if test "$am_compiler_list" = ""; then
25897 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
25898 fi
25899 am__universal=false
25900 case " $depcc " in #(
25901 *\ -arch\ *\ -arch\ *) am__universal=true ;;
25902 esac
25903
25904 for depmode in $am_compiler_list; do
25905 # Setup a source with many dependencies, because some compilers
25906 # like to wrap large dependency lists on column 80 (with \), and
25907 # we should not choose a depcomp mode which is confused by this.
25908 #
25909 # We need to recreate these files for each test, as the compiler may
25910 # overwrite some of them when testing with obscure command lines.
25911 # This happens at least with the AIX C compiler.
25912 : > sub/conftest.c
25913 for i in 1 2 3 4 5 6; do
25914 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +000025915 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
25916 # Solaris 10 /bin/sh.
25917 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +000025918 done
25919 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
25920
cristyc0890a62012-07-19 00:18:20 +000025921 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +000025922 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +000025923 # handle '-M -o', and we need to detect this. Also, some Intel
25924 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +000025925 am__obj=sub/conftest.${OBJEXT-o}
25926 am__minus_obj="-o $am__obj"
25927 case $depmode in
25928 gcc)
25929 # This depmode causes a compiler race in universal mode.
25930 test "$am__universal" = false || continue
25931 ;;
25932 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +000025933 # After this tag, mechanisms are not by side-effect, so they'll
25934 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +000025935 if test "x$enable_dependency_tracking" = xyes; then
25936 continue
25937 else
25938 break
25939 fi
25940 ;;
cristy7247bba2012-02-05 16:37:27 +000025941 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +000025942 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +000025943 # not run yet. These depmodes are late enough in the game, and
25944 # so weak that their functioning should not be impacted.
25945 am__obj=conftest.${OBJEXT-o}
25946 am__minus_obj=
25947 ;;
25948 none) break ;;
25949 esac
25950 if depmode=$depmode \
25951 source=sub/conftest.c object=$am__obj \
25952 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
25953 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
25954 >/dev/null 2>conftest.err &&
25955 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
25956 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
25957 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
25958 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
25959 # icc doesn't choke on unknown options, it will just issue warnings
25960 # or remarks (even with -Werror). So we grep stderr for any message
25961 # that says an option was ignored or not supported.
25962 # When given -MP, icc 7.0 and 7.1 complain thusly:
25963 # icc: Command line warning: ignoring option '-M'; no argument required
25964 # The diagnosis changed in icc 8.0:
25965 # icc: Command line remark: option '-MP' not supported
25966 if (grep 'ignoring option' conftest.err ||
25967 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
25968 am_cv_CXX_dependencies_compiler_type=$depmode
25969 break
25970 fi
25971 fi
25972 done
25973
25974 cd ..
25975 rm -rf conftest.dir
25976else
25977 am_cv_CXX_dependencies_compiler_type=none
25978fi
25979
25980fi
25981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
25982$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
25983CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
25984
25985 if
25986 test "x$enable_dependency_tracking" != xno \
25987 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
25988 am__fastdepCXX_TRUE=
25989 am__fastdepCXX_FALSE='#'
25990else
25991 am__fastdepCXX_TRUE='#'
25992 am__fastdepCXX_FALSE=
25993fi
25994
25995
25996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
25997$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025998if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025999 $as_echo_n "(cached) " >&6
26000else
26001
26002 ac_ext=cpp
26003ac_cpp='$CXXCPP $CPPFLAGS'
26004ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26005ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26006ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26007
26008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26009/* end confdefs.h. */
26010
26011int f(int x){return 1;}
26012int f(char x){return 1;}
26013int f(bool x){return 1;}
26014
26015int
26016main ()
26017{
26018bool b = true; return f(b);
26019 ;
26020 return 0;
26021}
26022_ACEOF
26023if ac_fn_cxx_try_compile "$LINENO"; then :
26024 ax_cv_cxx_bool=yes
26025else
26026 ax_cv_cxx_bool=no
26027fi
26028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26029 ac_ext=cpp
26030ac_cpp='$CXXCPP $CPPFLAGS'
26031ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26032ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26033ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26034
26035
26036fi
26037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
26038$as_echo "$ax_cv_cxx_bool" >&6; }
26039if test "$ax_cv_cxx_bool" = yes; then
26040
26041$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
26042
26043fi
26044
26045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
26046$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026047if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026048 $as_echo_n "(cached) " >&6
26049else
cristy17491be2014-06-24 01:10:53 +000026050 ac_ext=cpp
cristy73bd4a52010-10-05 11:24:23 +000026051ac_cpp='$CXXCPP $CPPFLAGS'
26052ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26053ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26054ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26055
26056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26057/* end confdefs.h. */
26058namespace Outer { namespace Inner { int i = 0; }}
cristy17491be2014-06-24 01:10:53 +000026059 using namespace Outer::Inner; int foo(void) { return i;}
cristy73bd4a52010-10-05 11:24:23 +000026060_ACEOF
26061if ac_fn_cxx_try_compile "$LINENO"; then :
26062 ax_cv_cxx_namespaces=yes
26063else
26064 ax_cv_cxx_namespaces=no
26065fi
26066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26067 ac_ext=cpp
26068ac_cpp='$CXXCPP $CPPFLAGS'
26069ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26070ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26071ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26072
26073
26074fi
26075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
26076$as_echo "$ax_cv_cxx_namespaces" >&6; }
26077if test "$ax_cv_cxx_namespaces" = yes; then
26078
26079$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
26080
26081fi
26082
26083
26084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
26085$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026086if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026087 $as_echo_n "(cached) " >&6
26088else
26089
26090 ac_ext=cpp
26091ac_cpp='$CXXCPP $CPPFLAGS'
26092ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26093ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26094ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26095
26096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26097/* end confdefs.h. */
26098#include <iostream>
26099 std::istream& is = std::cin;
26100int
26101main ()
26102{
26103
26104 ;
26105 return 0;
26106}
26107_ACEOF
26108if ac_fn_cxx_try_compile "$LINENO"; then :
26109 ax_cv_cxx_have_std_namespace=yes
26110else
26111 ax_cv_cxx_have_std_namespace=no
26112fi
26113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26114 ac_ext=cpp
26115ac_cpp='$CXXCPP $CPPFLAGS'
26116ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26117ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26118ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26119
26120
26121fi
26122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
26123$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
26124 if test "$ax_cv_cxx_have_std_namespace" = yes; then
26125
26126$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
26127
26128 fi
26129
26130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
26131$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026132if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026133 $as_echo_n "(cached) " >&6
26134else
26135
26136
26137 ac_ext=cpp
26138ac_cpp='$CXXCPP $CPPFLAGS'
26139ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26140ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26141ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26142
26143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26144/* end confdefs.h. */
26145#include <iostream>
26146#include <map>
26147#include <iomanip>
26148#include <cmath>
26149#ifdef HAVE_NAMESPACES
26150using namespace std;
26151#endif
26152int
26153main ()
26154{
26155return 0;
26156 ;
26157 return 0;
26158}
26159_ACEOF
26160if ac_fn_cxx_try_compile "$LINENO"; then :
26161 ac_cv_cxx_have_std_libs=yes
26162else
26163 ac_cv_cxx_have_std_libs=no
26164fi
26165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26166 ac_ext=cpp
26167ac_cpp='$CXXCPP $CPPFLAGS'
26168ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26169ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26170ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26171
26172
26173fi
26174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
26175$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
26176if test "$ac_cv_cxx_have_std_libs" = yes; then
26177
26178$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
26179
26180fi
26181
cristy3ed852e2009-09-05 21:47:34 +000026182
26183 OPENMP_CXXFLAGS=
26184 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000026185if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026186 enableval=$enable_openmp;
26187fi
26188
26189 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000026190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
26191$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026192if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026193 $as_echo_n "(cached) " >&6
26194else
cristy8b350f62009-11-15 23:12:43 +000026195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26196/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000026197
26198#ifndef _OPENMP
26199 choke me
26200#endif
26201#include <omp.h>
26202int main () { return omp_get_num_threads (); }
26203
26204_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026205if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026206 ac_cv_prog_cxx_openmp='none needed'
26207else
cristy8b350f62009-11-15 23:12:43 +000026208 ac_cv_prog_cxx_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +000026209 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
26210 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +000026211 ac_save_CXXFLAGS=$CXXFLAGS
26212 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000026213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26214/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000026215
26216#ifndef _OPENMP
26217 choke me
26218#endif
26219#include <omp.h>
26220int main () { return omp_get_num_threads (); }
26221
26222_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026223if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026224 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000026225fi
cristy8b350f62009-11-15 23:12:43 +000026226rm -f core conftest.err conftest.$ac_objext \
26227 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026228 CXXFLAGS=$ac_save_CXXFLAGS
26229 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
26230 break
26231 fi
26232 done
26233fi
cristy8b350f62009-11-15 23:12:43 +000026234rm -f core conftest.err conftest.$ac_objext \
26235 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026236fi
cristy8b350f62009-11-15 23:12:43 +000026237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026238$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
26239 case $ac_cv_prog_cxx_openmp in #(
26240 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000026241 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000026242 *)
cristy8b350f62009-11-15 23:12:43 +000026243 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000026244 esac
26245 fi
26246
26247
26248 ac_ext=c
26249ac_cpp='$CPP $CPPFLAGS'
26250ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26251ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26252ac_compiler_gnu=$ac_cv_c_compiler_gnu
26253
26254
cristy8b350f62009-11-15 23:12:43 +000026255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000026256$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
26257 if \
cristy964cb7f2010-04-25 23:18:00 +000026258 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026259 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000026260 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026261 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000026262 have_magick_plus_plus='yes'
26263 else
26264 have_magick_plus_plus='no (failed tests)'
26265 fi
cristyad38abe2012-12-23 23:03:21 +000026266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
26267$as_echo "$have_magick_plus_plus" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026268 LIBS="$OLIBS"
26269fi
cristy73bd4a52010-10-05 11:24:23 +000026270 if test "$have_magick_plus_plus" = 'yes'; then
26271 WITH_MAGICK_PLUS_PLUS_TRUE=
26272 WITH_MAGICK_PLUS_PLUS_FALSE='#'
26273else
26274 WITH_MAGICK_PLUS_PLUS_TRUE='#'
26275 WITH_MAGICK_PLUS_PLUS_FALSE=
26276fi
26277
cristy3ed852e2009-09-05 21:47:34 +000026278
26279# Only check for delegate libraries in subdirectories if requested.
26280if test "$enable_delegate_build" != 'no'; then
26281 # Check for delegate sub-directories and add -I & -L options as required.
26282 # This presumes that delegates are installed as detailed in the ImageMagick
26283 # README. If delegates are installed in a standard location where the
26284 # compiler will automatically find them then these options should not be
26285 # required.
26286
26287 #
26288 # Most delegates have includes in the same directory as the library, but not all...
26289 #
26290 # Includes
cristy31269aa2014-04-06 13:07:35 +000026291 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper/include jbig/libjbig jpeg lcms/include lzma magick openjp2/include png tiff/libtiff ttf/include wand webp/src wmf/include xml/include zlib; do
cristy3ed852e2009-09-05 21:47:34 +000026292 if test -d "$builddir/$dir"; then
26293 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
26294 else
26295 if test -d "$srcdirfull/$dir"; then
26296 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
26297 fi
26298 fi
26299 done
26300
26301 # Libraries
cristy31269aa2014-04-06 13:07:35 +000026302 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper jbig/libjbig jpeg lcms/src lzma magick openjp2 png tiff/libtiff ttf/objs wand webp wmf/src xml zlib; do
cristy3ed852e2009-09-05 21:47:34 +000026303 if test -d "$builddir/$dir/.libs"; then
26304 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
26305 else
26306 if test -d "$srcdirfull/$dir/.libs"; then
26307 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
26308 fi
26309 fi
26310 if test -d "$builddir/$dir"; then
26311 LDFLAGS="$LDFLAGS -L$builddir/$dir"
26312 else
26313 if test -d "$srcdirfull/$dir"; then
26314 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
26315 fi
26316 fi
26317 done
26318fi
26319
26320# Assume that delegate headers reside under same directory as ImageMagick
26321# installation prefix.
cristybdabdd62013-03-04 17:43:36 +000026322MAGICK_CPPFLAGS="-I$INCLUDE_DIR/${PACKAGE_NAME}-$MAGICK_MAJOR_VERSION $MAGICK_CPPFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000026323
26324#
26325# Find the X11 RGB database
26326#
cristy8b350f62009-11-15 23:12:43 +000026327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000026328$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026329if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026330 $as_echo_n "(cached) " >&6
26331else
26332 # Look for the header file in a standard set of common directories.
26333# Check X11 before X11Rn because it is often a symlink to the current release.
26334 for ac_dir in \
26335 /lib/usr/lib/X11 \
26336 /usr/X11/lib \
26337 /usr/X11R4/lib \
26338 /usr/X11R5/lib \
26339 /usr/X11R6/lib \
26340 /usr/X11R7/lib \
26341 /usr/X386/lib \
26342 /usr/XFree86/lib/X11 \
26343 /usr/athena/lib \
26344 /usr/lib \
26345 /usr/lib/X11 \
26346 /usr/lib/X11R4 \
26347 /usr/lib/X11R5 \
26348 /usr/lib/X11R6 \
26349 /usr/lib/X11R7 \
26350 /usr/local/X11/lib \
26351 /usr/local/X11R4/lib \
26352 /usr/local/X11R5/lib \
26353 /usr/local/X11R6/lib \
26354 /usr/local/lib \
26355 /usr/local/lib/X11 \
26356 /usr/local/lib/X11R4 \
26357 /usr/local/lib/X11R5 \
26358 /usr/local/lib/X11R6 \
26359 /usr/local/lib/X11R7 \
26360 /usr/local/x11r5/lib \
26361 /usr/lpp/Xamples/lib \
26362 /usr/openwin/lib \
26363 /usr/openwin/share/lib \
26364 /usr/unsupported/lib \
26365 /usr/x386/lib \
26366 ; do
26367 if test -f "$ac_dir/X11/rgb.txt"; then
26368 im_cv_x_configure="$ac_dir/X11/"
26369 break
26370 elif test -f "$ac_dir/rgb.txt"; then
26371 im_cv_x_configure="$ac_dir/"
26372 break
26373 fi
26374
26375 done
26376fi
cristy8b350f62009-11-15 23:12:43 +000026377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000026378$as_echo "$im_cv_x_configure" >&6; }
26379X11_CONFIGURE_PATH="$im_cv_x_configure"
26380case "${build_os}" in
26381 mingw* )
26382 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
26383 ;;
26384esac
26385
26386cat >>confdefs.h <<_ACEOF
26387#define X11_CONFIGURE_PATH "$X11ConfigurePath"
26388_ACEOF
26389
26390
26391#
26392# Find OpenMP library
26393#
26394GOMP_LIBS=''
26395if test "$enable_openmp" != 'no'; then
26396 if test "${GCC}" = "yes"; then
cristy18307f12011-12-30 01:20:16 +000026397 # Open64 (passes for GCC but uses different OpenMP implementation)
26398 if test "x$GOMP_LIBS" = x ; then
26399 if $CC --version 2>&1 | grep Open64 > /dev/null ; then
26400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp_get_num_procs in -lopenmp" >&5
26401$as_echo_n "checking for omp_get_num_procs in -lopenmp... " >&6; }
26402if ${ac_cv_lib_openmp_omp_get_num_procs+:} false; then :
26403 $as_echo_n "(cached) " >&6
26404else
26405 ac_check_lib_save_LIBS=$LIBS
26406LIBS="-lopenmp $LIBS"
26407cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26408/* end confdefs.h. */
26409
26410/* Override any GCC internal prototype to avoid an error.
26411 Use char because int might match the return type of a GCC
26412 builtin and then its argument prototype would still apply. */
26413#ifdef __cplusplus
26414extern "C"
26415#endif
26416char omp_get_num_procs ();
26417int
26418main ()
26419{
26420return omp_get_num_procs ();
26421 ;
26422 return 0;
26423}
26424_ACEOF
26425if ac_fn_c_try_link "$LINENO"; then :
26426 ac_cv_lib_openmp_omp_get_num_procs=yes
26427else
26428 ac_cv_lib_openmp_omp_get_num_procs=no
26429fi
26430rm -f core conftest.err conftest.$ac_objext \
26431 conftest$ac_exeext conftest.$ac_ext
26432LIBS=$ac_check_lib_save_LIBS
26433fi
26434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openmp_omp_get_num_procs" >&5
26435$as_echo "$ac_cv_lib_openmp_omp_get_num_procs" >&6; }
26436if test "x$ac_cv_lib_openmp_omp_get_num_procs" = xyes; then :
26437 GOMP_LIBS="-lopenmp"
26438fi
26439
26440 fi
26441 fi
26442 # GCC
26443 if test "x$GOMP_LIBS" = x ; then
26444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026445$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026446if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026447 $as_echo_n "(cached) " >&6
26448else
26449 ac_check_lib_save_LIBS=$LIBS
26450LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026451cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026452/* end confdefs.h. */
26453
26454/* Override any GCC internal prototype to avoid an error.
26455 Use char because int might match the return type of a GCC
26456 builtin and then its argument prototype would still apply. */
26457#ifdef __cplusplus
26458extern "C"
26459#endif
26460char GOMP_parallel_start ();
26461int
26462main ()
26463{
26464return GOMP_parallel_start ();
26465 ;
26466 return 0;
26467}
26468_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026469if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026470 ac_cv_lib_gomp_GOMP_parallel_start=yes
26471else
cristy8b350f62009-11-15 23:12:43 +000026472 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000026473fi
cristy8b350f62009-11-15 23:12:43 +000026474rm -f core conftest.err conftest.$ac_objext \
26475 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026476LIBS=$ac_check_lib_save_LIBS
26477fi
cristy8b350f62009-11-15 23:12:43 +000026478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000026479$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000026480if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026481 GOMP_LIBS="-lgomp"
26482fi
cristy18307f12011-12-30 01:20:16 +000026483
26484 fi
cristy3ed852e2009-09-05 21:47:34 +000026485 else
cristy18307f12011-12-30 01:20:16 +000026486 # Sun CC
26487 if test "x$GOMP_LIBS" = x ; then
26488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000026489$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026490if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026491 $as_echo_n "(cached) " >&6
26492else
26493 ac_check_lib_save_LIBS=$LIBS
26494LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026495cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026496/* end confdefs.h. */
26497
26498/* Override any GCC internal prototype to avoid an error.
26499 Use char because int might match the return type of a GCC
26500 builtin and then its argument prototype would still apply. */
26501#ifdef __cplusplus
26502extern "C"
26503#endif
26504char sunw_mp_register_warn ();
26505int
26506main ()
26507{
26508return sunw_mp_register_warn ();
26509 ;
26510 return 0;
26511}
26512_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026513if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026514 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
26515else
cristy8b350f62009-11-15 23:12:43 +000026516 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000026517fi
cristy8b350f62009-11-15 23:12:43 +000026518rm -f core conftest.err conftest.$ac_objext \
26519 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026520LIBS=$ac_check_lib_save_LIBS
26521fi
cristy8b350f62009-11-15 23:12:43 +000026522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000026523$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000026524if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026525 GOMP_LIBS="-lmtsk"
26526fi
cristy18307f12011-12-30 01:20:16 +000026527
26528 fi
26529 # AIX xlc
26530 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026532$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026533if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026534 $as_echo_n "(cached) " >&6
26535else
26536 ac_check_lib_save_LIBS=$LIBS
26537LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026538cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026539/* end confdefs.h. */
26540
26541/* Override any GCC internal prototype to avoid an error.
26542 Use char because int might match the return type of a GCC
26543 builtin and then its argument prototype would still apply. */
26544#ifdef __cplusplus
26545extern "C"
26546#endif
26547char _xlsmpFlush ();
26548int
26549main ()
26550{
26551return _xlsmpFlush ();
26552 ;
26553 return 0;
26554}
26555_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026556if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026557 ac_cv_lib_xlsmp__xlsmpFlush=yes
26558else
cristy8b350f62009-11-15 23:12:43 +000026559 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000026560fi
cristy8b350f62009-11-15 23:12:43 +000026561rm -f core conftest.err conftest.$ac_objext \
26562 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026563LIBS=$ac_check_lib_save_LIBS
26564fi
cristy8b350f62009-11-15 23:12:43 +000026565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000026566$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000026567if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026568 GOMP_LIBS="-lxlsmp"
26569fi
cristy18307f12011-12-30 01:20:16 +000026570
26571 fi
26572 # SGI IRIX 6.5 MIPSpro C/C++
26573 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026575$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026576if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026577 $as_echo_n "(cached) " >&6
26578else
26579 ac_check_lib_save_LIBS=$LIBS
26580LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026581cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026582/* end confdefs.h. */
26583
26584/* Override any GCC internal prototype to avoid an error.
26585 Use char because int might match the return type of a GCC
26586 builtin and then its argument prototype would still apply. */
26587#ifdef __cplusplus
26588extern "C"
26589#endif
26590char mp_destroy ();
26591int
26592main ()
26593{
26594return mp_destroy ();
26595 ;
26596 return 0;
26597}
26598_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026599if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026600 ac_cv_lib_mp_mp_destroy=yes
26601else
cristy8b350f62009-11-15 23:12:43 +000026602 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000026603fi
cristy8b350f62009-11-15 23:12:43 +000026604rm -f core conftest.err conftest.$ac_objext \
26605 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026606LIBS=$ac_check_lib_save_LIBS
26607fi
cristy8b350f62009-11-15 23:12:43 +000026608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000026609$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000026610if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026611 GOMP_LIBS="-lmp"
26612fi
cristy18307f12011-12-30 01:20:16 +000026613
26614 fi
cristy3ed852e2009-09-05 21:47:34 +000026615 fi
26616 LIBS="$GOMP_LIBS $LIBS"
26617fi
26618
26619
cristy12ac8192014-11-04 13:59:13 +000026620#
cristy3b0097d2014-11-04 15:34:47 +000026621# Check for jemalloc.
cristy12ac8192014-11-04 13:59:13 +000026622#
cristy3b0097d2014-11-04 15:34:47 +000026623have_jemalloc='no'
26624JEMALLOC_LIBS=''
26625if test "$with_jemalloc" != 'no'; then
26626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JEMALLOC support " >&5
26627$as_echo_n "checking for JEMALLOC support ... " >&6; }
26628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26629$as_echo "" >&6; }
26630 failed=0
26631 passed=0
26632 ac_fn_c_check_header_mongrel "$LINENO" "jemalloc/jemalloc.h" "ac_cv_header_jemalloc_jemalloc_h" "$ac_includes_default"
26633if test "x$ac_cv_header_jemalloc_jemalloc_h" = xyes; then :
cristy22007ae2014-11-04 15:59:22 +000026634 passed=`expr $passed + 1`
26635else
26636 failed=`expr $failed + 1`
cristy12ac8192014-11-04 13:59:13 +000026637fi
26638
26639
cristy3b0097d2014-11-04 15:34:47 +000026640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc_stats_print in -ljemalloc" >&5
26641$as_echo_n "checking for malloc_stats_print in -ljemalloc... " >&6; }
26642if ${ac_cv_lib_jemalloc_malloc_stats_print+:} false; then :
cristy12ac8192014-11-04 13:59:13 +000026643 $as_echo_n "(cached) " >&6
26644else
26645 ac_check_lib_save_LIBS=$LIBS
26646LIBS="-ljemalloc $LIBS"
26647cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26648/* end confdefs.h. */
26649
26650/* Override any GCC internal prototype to avoid an error.
26651 Use char because int might match the return type of a GCC
26652 builtin and then its argument prototype would still apply. */
26653#ifdef __cplusplus
26654extern "C"
26655#endif
cristy3b0097d2014-11-04 15:34:47 +000026656char malloc_stats_print ();
cristy12ac8192014-11-04 13:59:13 +000026657int
26658main ()
26659{
cristy3b0097d2014-11-04 15:34:47 +000026660return malloc_stats_print ();
cristy12ac8192014-11-04 13:59:13 +000026661 ;
26662 return 0;
26663}
26664_ACEOF
26665if ac_fn_c_try_link "$LINENO"; then :
cristy3b0097d2014-11-04 15:34:47 +000026666 ac_cv_lib_jemalloc_malloc_stats_print=yes
cristy12ac8192014-11-04 13:59:13 +000026667else
cristy3b0097d2014-11-04 15:34:47 +000026668 ac_cv_lib_jemalloc_malloc_stats_print=no
cristy12ac8192014-11-04 13:59:13 +000026669fi
26670rm -f core conftest.err conftest.$ac_objext \
26671 conftest$ac_exeext conftest.$ac_ext
26672LIBS=$ac_check_lib_save_LIBS
26673fi
cristy3b0097d2014-11-04 15:34:47 +000026674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jemalloc_malloc_stats_print" >&5
26675$as_echo "$ac_cv_lib_jemalloc_malloc_stats_print" >&6; }
26676if test "x$ac_cv_lib_jemalloc_malloc_stats_print" = xyes; then :
cristy22007ae2014-11-04 15:59:22 +000026677 passed=`expr $passed + 1`
26678else
26679 failed=`expr $failed + 1`
cristy12ac8192014-11-04 13:59:13 +000026680fi
26681
cristy3b0097d2014-11-04 15:34:47 +000026682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jemalloc memory allocation library is complete" >&5
26683$as_echo_n "checking if jemalloc memory allocation library is complete... " >&6; }
26684 if test $passed -gt 0; then
26685 if test $failed -gt 0; then
26686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26687$as_echo "no -- some components failed test" >&6; }
26688 have_jemalloc='no (failed tests)'
26689 else
26690 JEMALLOC_LIBS='-ljemalloc'
26691 LIBS="$JEMALLOC_LIBS $LIBS"
cristy12ac8192014-11-04 13:59:13 +000026692
cristy3b0097d2014-11-04 15:34:47 +000026693$as_echo "#define HasJEMALLOC 1" >>confdefs.h
cristy12ac8192014-11-04 13:59:13 +000026694
cristy3b0097d2014-11-04 15:34:47 +000026695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26696$as_echo "yes" >&6; }
26697 have_jemalloc='yes'
26698 fi
cristy12ac8192014-11-04 13:59:13 +000026699 else
cristy3b0097d2014-11-04 15:34:47 +000026700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26701$as_echo "no" >&6; }
cristy12ac8192014-11-04 13:59:13 +000026702 fi
26703fi
cristy3b0097d2014-11-04 15:34:47 +000026704 if test "$have_jemalloc" = 'yes'; then
26705 HasJEMALLOC_TRUE=
26706 HasJEMALLOC_FALSE='#'
26707else
26708 HasJEMALLOC_TRUE='#'
26709 HasJEMALLOC_FALSE=
cristy12ac8192014-11-04 13:59:13 +000026710fi
26711
cristy3b0097d2014-11-04 15:34:47 +000026712
26713
cristy3ed852e2009-09-05 21:47:34 +000026714#
26715# Check for umem.
26716#
26717have_umem='no'
26718UMEM_LIBS=''
26719if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000026721$as_echo_n "checking for UMEM support ... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000026722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26723$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026724 failed=0
26725 passed=0
cristy8b350f62009-11-15 23:12:43 +000026726 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026727if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026728 passed=`expr $passed + 1`
26729else
26730 failed=`expr $failed + 1`
26731fi
26732
26733
cristy8b350f62009-11-15 23:12:43 +000026734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026735$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026736if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026737 $as_echo_n "(cached) " >&6
26738else
26739 ac_check_lib_save_LIBS=$LIBS
26740LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026741cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026742/* end confdefs.h. */
26743
26744/* Override any GCC internal prototype to avoid an error.
26745 Use char because int might match the return type of a GCC
26746 builtin and then its argument prototype would still apply. */
26747#ifdef __cplusplus
26748extern "C"
26749#endif
26750char umem_alloc ();
26751int
26752main ()
26753{
26754return umem_alloc ();
26755 ;
26756 return 0;
26757}
26758_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026759if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026760 ac_cv_lib_umem_umem_alloc=yes
26761else
cristy8b350f62009-11-15 23:12:43 +000026762 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000026763fi
cristy8b350f62009-11-15 23:12:43 +000026764rm -f core conftest.err conftest.$ac_objext \
26765 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026766LIBS=$ac_check_lib_save_LIBS
26767fi
cristy8b350f62009-11-15 23:12:43 +000026768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026769$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026770if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026771 passed=`expr $passed + 1`
26772else
26773 failed=`expr $failed + 1`
26774fi
26775
cristy8b350f62009-11-15 23:12:43 +000026776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026777$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026778if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026779 $as_echo_n "(cached) " >&6
26780else
26781 ac_check_lib_save_LIBS=$LIBS
26782LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026783cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026784/* end confdefs.h. */
26785
26786/* Override any GCC internal prototype to avoid an error.
26787 Use char because int might match the return type of a GCC
26788 builtin and then its argument prototype would still apply. */
26789#ifdef __cplusplus
26790extern "C"
26791#endif
26792char umem_free ();
26793int
26794main ()
26795{
26796return umem_free ();
26797 ;
26798 return 0;
26799}
26800_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026801if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026802 ac_cv_lib_umem_umem_free=yes
26803else
cristy8b350f62009-11-15 23:12:43 +000026804 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000026805fi
cristy8b350f62009-11-15 23:12:43 +000026806rm -f core conftest.err conftest.$ac_objext \
26807 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026808LIBS=$ac_check_lib_save_LIBS
26809fi
cristy8b350f62009-11-15 23:12:43 +000026810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000026811$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000026812if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026813 passed=`expr $passed + 1`
26814else
26815 failed=`expr $failed + 1`
26816fi
26817
cristy8b350f62009-11-15 23:12:43 +000026818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026819$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
26820 if test $passed -gt 0; then
26821 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000026822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26823$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026824 have_umem='no (failed tests)'
26825 else
26826 UMEM_LIBS='-lumem'
26827 LIBS="$UMEM_LIBS $LIBS"
26828
cristy8b350f62009-11-15 23:12:43 +000026829$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026830
cristyad38abe2012-12-23 23:03:21 +000026831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26832$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026833 have_umem='yes'
26834 fi
26835 else
cristyad38abe2012-12-23 23:03:21 +000026836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26837$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026838 fi
26839fi
cristy73bd4a52010-10-05 11:24:23 +000026840 if test "$have_umem" = 'yes'; then
26841 HasUMEM_TRUE=
26842 HasUMEM_FALSE='#'
26843else
26844 HasUMEM_TRUE='#'
26845 HasUMEM_FALSE=
26846fi
26847
cristy3ed852e2009-09-05 21:47:34 +000026848
26849
26850#
26851# Add support for ccmalloc memory debugging library if requested
26852#
26853have_ccmalloc='no'
26854CCMALLOC_LIBS=''
26855if test "$enable_ccmalloc" = 'yes'; then
26856 # Extract the first word of "ccmalloc", so it can be a program name with args.
26857set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000026858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000026859$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026860if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026861 $as_echo_n "(cached) " >&6
26862else
26863 case $CCMALLOCDelegate in
26864 [\\/]* | ?:[\\/]*)
26865 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
26866 ;;
26867 *)
26868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26869for as_dir in $PATH
26870do
26871 IFS=$as_save_IFS
26872 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000026873 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000026874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000026875 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000026876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026877 break 2
26878 fi
26879done
cristy8b350f62009-11-15 23:12:43 +000026880 done
cristy3ed852e2009-09-05 21:47:34 +000026881IFS=$as_save_IFS
26882
26883 ;;
26884esac
26885fi
26886CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
26887if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000026888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026889$as_echo "$CCMALLOCDelegate" >&6; }
26890else
cristy8b350f62009-11-15 23:12:43 +000026891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026892$as_echo "no" >&6; }
26893fi
26894
26895
26896 if test -n "$CCMALLOCDelegate"; then
26897 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
26898 OLIBS="$LIBS"
26899 # Assume that gcc is used with ccmalloc.
26900 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000026901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026902$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026903if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026904 $as_echo_n "(cached) " >&6
26905else
26906 ac_check_lib_save_LIBS=$LIBS
26907LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026908cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026909/* end confdefs.h. */
26910
26911/* Override any GCC internal prototype to avoid an error.
26912 Use char because int might match the return type of a GCC
26913 builtin and then its argument prototype would still apply. */
26914#ifdef __cplusplus
26915extern "C"
26916#endif
26917char ccmalloc_malloc ();
26918int
26919main ()
26920{
26921return ccmalloc_malloc ();
26922 ;
26923 return 0;
26924}
26925_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026926if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026927 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
26928else
cristy8b350f62009-11-15 23:12:43 +000026929 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000026930fi
cristy8b350f62009-11-15 23:12:43 +000026931rm -f core conftest.err conftest.$ac_objext \
26932 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026933LIBS=$ac_check_lib_save_LIBS
26934fi
cristy8b350f62009-11-15 23:12:43 +000026935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026936$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026937if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026938 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
26939fi
26940
26941 if test -n "$CCMALLOC_LIBS"; then
26942 LIBS="$OLIBS"
26943 LIBS="$LIBS $CCMALLOC_LIBS"
26944 have_ccmalloc='yes'
26945 else
26946 LIBS="$OLIBS"
26947 fi
26948 fi
26949fi
26950
26951#
cristy944e51f2013-04-16 18:45:02 +000026952# Add support for 'huge pages' if requested
26953#
26954if test "x$enable_hugepages" != "xno"; then :
26955
26956
26957$as_echo "#define HAVE_HUGEPAGES 1" >>confdefs.h
26958
26959
26960fi
26961
26962#
cristy3ed852e2009-09-05 21:47:34 +000026963# Add support for efence memory debugging library if requested
26964#
26965if test "$enable_efence" = 'yes'; then
26966 EFENCE_LIBS='-lefence'
26967 LIBS="$EFENCE_LIBS $LIBS"
26968fi
26969
cristy3ed852e2009-09-05 21:47:34 +000026970
26971#
26972# Check for BZLIB
26973#
26974
26975
26976# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000026977if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026978 withval=$with_bzlib; with_bzlib=$withval
26979else
26980 with_bzlib='yes'
26981fi
26982
26983
26984if test "$with_bzlib" != 'yes'; then
26985 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
26986fi
26987
26988have_bzlib='no'
26989if test "$with_bzlib" != 'no'; then
26990 BZLIB_LIBS=''
cristyad38abe2012-12-23 23:03:21 +000026991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26992$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000026994$as_echo_n "checking for BZLIB... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000026995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26996$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026997 failed=0
26998 passed=0
26999 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000027000 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027001if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027002 passed=`expr $passed + 1`
27003else
27004 failed=`expr $failed + 1`
27005fi
27006
27007
cristy8b350f62009-11-15 23:12:43 +000027008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027009$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027010if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027011 $as_echo_n "(cached) " >&6
27012else
27013 ac_check_lib_save_LIBS=$LIBS
27014LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027015cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027016/* end confdefs.h. */
27017
27018/* Override any GCC internal prototype to avoid an error.
27019 Use char because int might match the return type of a GCC
27020 builtin and then its argument prototype would still apply. */
27021#ifdef __cplusplus
27022extern "C"
27023#endif
27024char BZ2_bzDecompress ();
27025int
27026main ()
27027{
27028return BZ2_bzDecompress ();
27029 ;
27030 return 0;
27031}
27032_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027033if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027034 ac_cv_lib_bz2_BZ2_bzDecompress=yes
27035else
cristy8b350f62009-11-15 23:12:43 +000027036 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000027037fi
cristy8b350f62009-11-15 23:12:43 +000027038rm -f core conftest.err conftest.$ac_objext \
27039 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027040LIBS=$ac_check_lib_save_LIBS
27041fi
cristy8b350f62009-11-15 23:12:43 +000027042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027043$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027044if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027045 found_libbz=`expr $found_libbz + 1`
27046fi
27047
27048 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027050$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027051if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027052 $as_echo_n "(cached) " >&6
27053else
27054 ac_check_lib_save_LIBS=$LIBS
27055LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027056cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027057/* end confdefs.h. */
27058
27059/* Override any GCC internal prototype to avoid an error.
27060 Use char because int might match the return type of a GCC
27061 builtin and then its argument prototype would still apply. */
27062#ifdef __cplusplus
27063extern "C"
27064#endif
27065char _imp__BZ2_decompress ();
27066int
27067main ()
27068{
27069return _imp__BZ2_decompress ();
27070 ;
27071 return 0;
27072}
27073_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027074if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027075 ac_cv_lib_bz2__imp__BZ2_decompress=yes
27076else
cristy8b350f62009-11-15 23:12:43 +000027077 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000027078fi
cristy8b350f62009-11-15 23:12:43 +000027079rm -f core conftest.err conftest.$ac_objext \
27080 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027081LIBS=$ac_check_lib_save_LIBS
27082fi
cristy8b350f62009-11-15 23:12:43 +000027083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027084$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027085if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027086 found_libbz=`expr $found_libbz + 1`
27087fi
27088
27089 fi
27090 if test $found_libbz -gt 0; then
27091 passed=`expr $passed + 1`
27092 else
27093 failed=`expr $failed + 1`
27094 fi
cristy8b350f62009-11-15 23:12:43 +000027095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027096$as_echo_n "checking if BZLIB package is complete... " >&6; }
27097 if test $passed -gt 0; then
27098 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000027099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27100$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027101 have_bzlib='no (failed tests)'
27102 else
27103 BZLIB_LIBS='-lbz2'
27104 LIBS="$BZLIB_LIBS $LIBS"
27105
cristy8b350f62009-11-15 23:12:43 +000027106$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027107
cristyad38abe2012-12-23 23:03:21 +000027108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27109$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027110 have_bzlib='yes'
27111 fi
27112 else
cristyad38abe2012-12-23 23:03:21 +000027113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27114$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027115 fi
27116fi
cristy73bd4a52010-10-05 11:24:23 +000027117 if test "$have_bzlib" = 'yes'; then
27118 BZLIB_DELEGATE_TRUE=
27119 BZLIB_DELEGATE_FALSE='#'
27120else
27121 BZLIB_DELEGATE_TRUE='#'
27122 BZLIB_DELEGATE_FALSE=
27123fi
27124
cristy3ed852e2009-09-05 21:47:34 +000027125
27126
27127#
27128# Find the X11 include and library directories.
27129#
27130IPC_LIBS=''
27131X11_LIBS=''
27132XEXT_LIBS=''
27133XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000027134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000027135$as_echo_n "checking for X... " >&6; }
27136
27137
27138# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000027139if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000027140 withval=$with_x;
27141fi
27142
27143# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
27144if test "x$with_x" = xno; then
27145 # The user explicitly disabled X.
27146 have_x=disabled
27147else
27148 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000027149 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000027150 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000027151 $as_echo_n "(cached) " >&6
27152else
27153 # One or both of the vars are not set, and there is no cached value.
27154ac_x_includes=no ac_x_libraries=no
27155rm -f -r conftest.dir
27156if mkdir conftest.dir; then
27157 cd conftest.dir
27158 cat >Imakefile <<'_ACEOF'
27159incroot:
27160 @echo incroot='${INCROOT}'
27161usrlibdir:
27162 @echo usrlibdir='${USRLIBDIR}'
27163libdir:
27164 @echo libdir='${LIBDIR}'
27165_ACEOF
27166 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000027167 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000027168 for ac_var in incroot usrlibdir libdir; do
27169 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
27170 done
27171 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
27172 for ac_extension in a so sl dylib la dll; do
27173 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
27174 test -f "$ac_im_libdir/libX11.$ac_extension"; then
27175 ac_im_usrlibdir=$ac_im_libdir; break
27176 fi
27177 done
27178 # Screen out bogus values from the imake configuration. They are
27179 # bogus both because they are the default anyway, and because
27180 # using them would break gcc on systems where it needs fixed includes.
27181 case $ac_im_incroot in
27182 /usr/include) ac_x_includes= ;;
27183 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
27184 esac
27185 case $ac_im_usrlibdir in
27186 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
27187 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
27188 esac
27189 fi
27190 cd ..
27191 rm -f -r conftest.dir
27192fi
27193
27194# Standard set of common directories for X headers.
27195# Check X11 before X11Rn because it is often a symlink to the current release.
27196ac_x_header_dirs='
27197/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000027198/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027199/usr/X11R6/include
27200/usr/X11R5/include
27201/usr/X11R4/include
27202
27203/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000027204/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027205/usr/include/X11R6
27206/usr/include/X11R5
27207/usr/include/X11R4
27208
27209/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000027210/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027211/usr/local/X11R6/include
27212/usr/local/X11R5/include
27213/usr/local/X11R4/include
27214
27215/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000027216/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027217/usr/local/include/X11R6
27218/usr/local/include/X11R5
27219/usr/local/include/X11R4
27220
27221/usr/X386/include
27222/usr/x386/include
27223/usr/XFree86/include/X11
27224
27225/usr/include
27226/usr/local/include
27227/usr/unsupported/include
27228/usr/athena/include
27229/usr/local/x11r5/include
27230/usr/lpp/Xamples/include
27231
27232/usr/openwin/include
27233/usr/openwin/share/include'
27234
27235if test "$ac_x_includes" = no; then
27236 # Guess where to find include files, by looking for Xlib.h.
27237 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000027238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027239/* end confdefs.h. */
27240#include <X11/Xlib.h>
27241_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027242if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027243 # We can compile using X headers with no special include directory.
27244ac_x_includes=
27245else
cristyc7083c12009-10-14 03:16:55 +000027246 for ac_dir in $ac_x_header_dirs; do
27247 if test -r "$ac_dir/X11/Xlib.h"; then
27248 ac_x_includes=$ac_dir
27249 break
27250 fi
27251done
27252fi
cristyda16f162011-02-19 23:52:17 +000027253rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027254fi # $ac_x_includes = no
27255
27256if test "$ac_x_libraries" = no; then
27257 # Check for the libraries.
27258 # See if we find them without any special options.
27259 # Don't add to $LIBS permanently.
27260 ac_save_LIBS=$LIBS
27261 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027263/* end confdefs.h. */
27264#include <X11/Xlib.h>
27265int
27266main ()
27267{
27268XrmInitialize ()
27269 ;
27270 return 0;
27271}
27272_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027273if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027274 LIBS=$ac_save_LIBS
27275# We can link X programs with no special library path.
27276ac_x_libraries=
27277else
cristy8b350f62009-11-15 23:12:43 +000027278 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000027279for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
27280do
27281 # Don't even attempt the hair of trying to link an X program!
27282 for ac_extension in a so sl dylib la dll; do
27283 if test -r "$ac_dir/libX11.$ac_extension"; then
27284 ac_x_libraries=$ac_dir
27285 break 2
27286 fi
27287 done
27288done
27289fi
cristy8b350f62009-11-15 23:12:43 +000027290rm -f core conftest.err conftest.$ac_objext \
27291 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027292fi # $ac_x_libraries = no
27293
27294case $ac_x_includes,$ac_x_libraries in #(
27295 no,* | *,no | *\'*)
27296 # Didn't find X, or a directory has "'" in its name.
27297 ac_cv_have_x="have_x=no";; #(
27298 *)
27299 # Record where we found X for the cache.
27300 ac_cv_have_x="have_x=yes\
27301 ac_x_includes='$ac_x_includes'\
27302 ac_x_libraries='$ac_x_libraries'"
27303esac
27304fi
27305;; #(
27306 *) have_x=yes;;
27307 esac
27308 eval "$ac_cv_have_x"
27309fi # $with_x != no
27310
27311if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000027312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000027313$as_echo "$have_x" >&6; }
27314 no_x=yes
27315else
27316 # If each of the values was on the command line, it overrides each guess.
27317 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
27318 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
27319 # Update the cache value to reflect the command line values.
27320 ac_cv_have_x="have_x=yes\
27321 ac_x_includes='$x_includes'\
27322 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000027323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000027324$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
27325fi
27326
cristy3ed852e2009-09-05 21:47:34 +000027327if test "$no_x" = yes; then
27328 # Not all programs may use this symbol, but it does not hurt to define it.
27329
cristy8b350f62009-11-15 23:12:43 +000027330$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027331
27332 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
27333else
27334 if test -n "$x_includes"; then
27335 X_CFLAGS="$X_CFLAGS -I$x_includes"
27336 fi
27337
27338 # It would also be nice to do this for all -L options, not just this one.
27339 if test -n "$x_libraries"; then
27340 X_LIBS="$X_LIBS -L$x_libraries"
27341 # For Solaris; some versions of Sun CC require a space after -R and
27342 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000027343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000027344$as_echo_n "checking whether -R must be followed by a space... " >&6; }
27345 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
27346 ac_xsave_c_werror_flag=$ac_c_werror_flag
27347 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000027348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027349/* end confdefs.h. */
27350
27351int
27352main ()
27353{
27354
27355 ;
27356 return 0;
27357}
27358_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027359if ac_fn_c_try_link "$LINENO"; then :
27360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027361$as_echo "no" >&6; }
27362 X_LIBS="$X_LIBS -R$x_libraries"
27363else
cristy8b350f62009-11-15 23:12:43 +000027364 LIBS="$ac_xsave_LIBS -R $x_libraries"
27365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027366/* end confdefs.h. */
27367
27368int
27369main ()
27370{
27371
27372 ;
27373 return 0;
27374}
27375_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027376if ac_fn_c_try_link "$LINENO"; then :
27377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027378$as_echo "yes" >&6; }
27379 X_LIBS="$X_LIBS -R $x_libraries"
27380else
cristy8b350f62009-11-15 23:12:43 +000027381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000027382$as_echo "neither works" >&6; }
27383fi
cristy8b350f62009-11-15 23:12:43 +000027384rm -f core conftest.err conftest.$ac_objext \
27385 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027386fi
cristy8b350f62009-11-15 23:12:43 +000027387rm -f core conftest.err conftest.$ac_objext \
27388 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027389 ac_c_werror_flag=$ac_xsave_c_werror_flag
27390 LIBS=$ac_xsave_LIBS
27391 fi
27392
27393 # Check for system-dependent libraries X programs must link with.
27394 # Do this before checking for the system-independent R6 libraries
27395 # (-lICE), since we may need -lsocket or whatever for X linking.
27396
27397 if test "$ISC" = yes; then
27398 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
27399 else
27400 # Martyn Johnson says this is needed for Ultrix, if the X
27401 # libraries were built with DECnet support. And Karl Berry says
27402 # the Alpha needs dnet_stub (dnet does not exist).
27403 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000027404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027405/* end confdefs.h. */
27406
27407/* Override any GCC internal prototype to avoid an error.
27408 Use char because int might match the return type of a GCC
27409 builtin and then its argument prototype would still apply. */
27410#ifdef __cplusplus
27411extern "C"
27412#endif
27413char XOpenDisplay ();
27414int
27415main ()
27416{
27417return XOpenDisplay ();
27418 ;
27419 return 0;
27420}
27421_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027422if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027423
cristy8b350f62009-11-15 23:12:43 +000027424else
27425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000027426$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027427if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027428 $as_echo_n "(cached) " >&6
27429else
27430 ac_check_lib_save_LIBS=$LIBS
27431LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027432cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027433/* end confdefs.h. */
27434
27435/* Override any GCC internal prototype to avoid an error.
27436 Use char because int might match the return type of a GCC
27437 builtin and then its argument prototype would still apply. */
27438#ifdef __cplusplus
27439extern "C"
27440#endif
27441char dnet_ntoa ();
27442int
27443main ()
27444{
27445return dnet_ntoa ();
27446 ;
27447 return 0;
27448}
27449_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027450if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027451 ac_cv_lib_dnet_dnet_ntoa=yes
27452else
cristy8b350f62009-11-15 23:12:43 +000027453 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027454fi
cristy8b350f62009-11-15 23:12:43 +000027455rm -f core conftest.err conftest.$ac_objext \
27456 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027457LIBS=$ac_check_lib_save_LIBS
27458fi
cristy8b350f62009-11-15 23:12:43 +000027459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027460$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027461if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027462 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
27463fi
27464
27465 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000027466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000027467$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027468if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027469 $as_echo_n "(cached) " >&6
27470else
27471 ac_check_lib_save_LIBS=$LIBS
27472LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027473cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027474/* end confdefs.h. */
27475
27476/* Override any GCC internal prototype to avoid an error.
27477 Use char because int might match the return type of a GCC
27478 builtin and then its argument prototype would still apply. */
27479#ifdef __cplusplus
27480extern "C"
27481#endif
27482char dnet_ntoa ();
27483int
27484main ()
27485{
27486return dnet_ntoa ();
27487 ;
27488 return 0;
27489}
27490_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027491if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027492 ac_cv_lib_dnet_stub_dnet_ntoa=yes
27493else
cristy8b350f62009-11-15 23:12:43 +000027494 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027495fi
cristy8b350f62009-11-15 23:12:43 +000027496rm -f core conftest.err conftest.$ac_objext \
27497 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027498LIBS=$ac_check_lib_save_LIBS
27499fi
cristy8b350f62009-11-15 23:12:43 +000027500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027501$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027502if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027503 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
27504fi
27505
27506 fi
27507fi
cristy8b350f62009-11-15 23:12:43 +000027508rm -f core conftest.err conftest.$ac_objext \
27509 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027510 LIBS="$ac_xsave_LIBS"
27511
27512 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27513 # to get the SysV transport functions.
27514 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27515 # needs -lnsl.
27516 # The nsl library prevents programs from opening the X display
27517 # on Irix 5.2, according to T.E. Dickey.
27518 # The functions gethostbyname, getservbyname, and inet_addr are
27519 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000027520 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000027521if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027522
cristy3ed852e2009-09-05 21:47:34 +000027523fi
27524
cristy3ed852e2009-09-05 21:47:34 +000027525 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027527$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027528if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027529 $as_echo_n "(cached) " >&6
27530else
27531 ac_check_lib_save_LIBS=$LIBS
27532LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027533cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027534/* end confdefs.h. */
27535
27536/* Override any GCC internal prototype to avoid an error.
27537 Use char because int might match the return type of a GCC
27538 builtin and then its argument prototype would still apply. */
27539#ifdef __cplusplus
27540extern "C"
27541#endif
27542char gethostbyname ();
27543int
27544main ()
27545{
27546return gethostbyname ();
27547 ;
27548 return 0;
27549}
27550_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027551if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027552 ac_cv_lib_nsl_gethostbyname=yes
27553else
cristy8b350f62009-11-15 23:12:43 +000027554 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027555fi
cristy8b350f62009-11-15 23:12:43 +000027556rm -f core conftest.err conftest.$ac_objext \
27557 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027558LIBS=$ac_check_lib_save_LIBS
27559fi
cristy8b350f62009-11-15 23:12:43 +000027560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027561$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027562if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027563 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
27564fi
27565
27566 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000027568$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027569if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027570 $as_echo_n "(cached) " >&6
27571else
27572 ac_check_lib_save_LIBS=$LIBS
27573LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027574cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027575/* end confdefs.h. */
27576
27577/* Override any GCC internal prototype to avoid an error.
27578 Use char because int might match the return type of a GCC
27579 builtin and then its argument prototype would still apply. */
27580#ifdef __cplusplus
27581extern "C"
27582#endif
27583char gethostbyname ();
27584int
27585main ()
27586{
27587return gethostbyname ();
27588 ;
27589 return 0;
27590}
27591_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027592if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027593 ac_cv_lib_bsd_gethostbyname=yes
27594else
cristy8b350f62009-11-15 23:12:43 +000027595 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027596fi
cristy8b350f62009-11-15 23:12:43 +000027597rm -f core conftest.err conftest.$ac_objext \
27598 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027599LIBS=$ac_check_lib_save_LIBS
27600fi
cristy8b350f62009-11-15 23:12:43 +000027601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027602$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027603if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027604 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27605fi
27606
27607 fi
27608 fi
27609
27610 # lieder@skyler.mavd.honeywell.com says without -lsocket,
27611 # socket/setsockopt and other routines are undefined under SCO ODT
27612 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
27613 # on later versions), says Simon Leinen: it contains gethostby*
27614 # variants that don't use the name server (or something). -lsocket
27615 # must be given before -lnsl if both are needed. We assume that
27616 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000027617 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000027618if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027619
cristy3ed852e2009-09-05 21:47:34 +000027620fi
27621
cristy3ed852e2009-09-05 21:47:34 +000027622 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000027623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000027624$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027625if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027626 $as_echo_n "(cached) " >&6
27627else
27628 ac_check_lib_save_LIBS=$LIBS
27629LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027630cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027631/* end confdefs.h. */
27632
27633/* Override any GCC internal prototype to avoid an error.
27634 Use char because int might match the return type of a GCC
27635 builtin and then its argument prototype would still apply. */
27636#ifdef __cplusplus
27637extern "C"
27638#endif
27639char connect ();
27640int
27641main ()
27642{
27643return connect ();
27644 ;
27645 return 0;
27646}
27647_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027648if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027649 ac_cv_lib_socket_connect=yes
27650else
cristy8b350f62009-11-15 23:12:43 +000027651 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000027652fi
cristy8b350f62009-11-15 23:12:43 +000027653rm -f core conftest.err conftest.$ac_objext \
27654 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027655LIBS=$ac_check_lib_save_LIBS
27656fi
cristy8b350f62009-11-15 23:12:43 +000027657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000027658$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000027659if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027660 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27661fi
27662
27663 fi
27664
27665 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000027666 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000027667if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027668
cristy3ed852e2009-09-05 21:47:34 +000027669fi
27670
cristy3ed852e2009-09-05 21:47:34 +000027671 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000027672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000027673$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027674if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027675 $as_echo_n "(cached) " >&6
27676else
27677 ac_check_lib_save_LIBS=$LIBS
27678LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027679cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027680/* end confdefs.h. */
27681
27682/* Override any GCC internal prototype to avoid an error.
27683 Use char because int might match the return type of a GCC
27684 builtin and then its argument prototype would still apply. */
27685#ifdef __cplusplus
27686extern "C"
27687#endif
27688char remove ();
27689int
27690main ()
27691{
27692return remove ();
27693 ;
27694 return 0;
27695}
27696_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027697if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027698 ac_cv_lib_posix_remove=yes
27699else
cristy8b350f62009-11-15 23:12:43 +000027700 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000027701fi
cristy8b350f62009-11-15 23:12:43 +000027702rm -f core conftest.err conftest.$ac_objext \
27703 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027704LIBS=$ac_check_lib_save_LIBS
27705fi
cristy8b350f62009-11-15 23:12:43 +000027706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000027707$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000027708if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027709 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27710fi
27711
27712 fi
27713
27714 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000027715 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000027716if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027717
cristy3ed852e2009-09-05 21:47:34 +000027718fi
27719
cristy3ed852e2009-09-05 21:47:34 +000027720 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000027721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027722$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027723if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027724 $as_echo_n "(cached) " >&6
27725else
27726 ac_check_lib_save_LIBS=$LIBS
27727LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027728cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027729/* end confdefs.h. */
27730
27731/* Override any GCC internal prototype to avoid an error.
27732 Use char because int might match the return type of a GCC
27733 builtin and then its argument prototype would still apply. */
27734#ifdef __cplusplus
27735extern "C"
27736#endif
27737char shmat ();
27738int
27739main ()
27740{
27741return shmat ();
27742 ;
27743 return 0;
27744}
27745_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027746if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027747 ac_cv_lib_ipc_shmat=yes
27748else
cristy8b350f62009-11-15 23:12:43 +000027749 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000027750fi
cristy8b350f62009-11-15 23:12:43 +000027751rm -f core conftest.err conftest.$ac_objext \
27752 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027753LIBS=$ac_check_lib_save_LIBS
27754fi
cristy8b350f62009-11-15 23:12:43 +000027755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000027756$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000027757if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027758 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27759fi
27760
27761 fi
27762 fi
27763
27764 # Check for libraries that X11R6 Xt/Xaw programs need.
27765 ac_save_LDFLAGS=$LDFLAGS
27766 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27767 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27768 # check for ICE first), but we must link in the order -lSM -lICE or
27769 # we get undefined symbols. So assume we have SM if we have ICE.
27770 # These have to be linked with before -lX11, unlike the other
27771 # libraries we check for below, so use a different variable.
27772 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000027773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000027774$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027775if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027776 $as_echo_n "(cached) " >&6
27777else
27778 ac_check_lib_save_LIBS=$LIBS
27779LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027780cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027781/* end confdefs.h. */
27782
27783/* Override any GCC internal prototype to avoid an error.
27784 Use char because int might match the return type of a GCC
27785 builtin and then its argument prototype would still apply. */
27786#ifdef __cplusplus
27787extern "C"
27788#endif
27789char IceConnectionNumber ();
27790int
27791main ()
27792{
27793return IceConnectionNumber ();
27794 ;
27795 return 0;
27796}
27797_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027798if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027799 ac_cv_lib_ICE_IceConnectionNumber=yes
27800else
cristy8b350f62009-11-15 23:12:43 +000027801 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000027802fi
cristy8b350f62009-11-15 23:12:43 +000027803rm -f core conftest.err conftest.$ac_objext \
27804 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027805LIBS=$ac_check_lib_save_LIBS
27806fi
cristy8b350f62009-11-15 23:12:43 +000027807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000027808$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000027809if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027810 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27811fi
27812
27813 LDFLAGS=$ac_save_LDFLAGS
27814
27815fi
27816
27817if test "$no_x" != 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000027818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27819$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000027821$as_echo_n "checking for X11... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27823$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027824 LDFLAGS="$LDFLAGS $X_LIBS"
27825 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
27826 LIBS="$X11_LIBS $LIBS"
27827 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
27828
27829
cristy8b350f62009-11-15 23:12:43 +000027830$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027831
27832 #
27833 # Check for X11 shared memory extension
27834 #
27835 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000027836 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000027837if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027838 have_shmctl='yes'
27839fi
27840
27841 if test "$have_shmctl" != 'yes'; then
27842 PERSIST_LIBS=$LIBS
27843 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000027844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027845/* end confdefs.h. */
27846
27847/* Override any GCC internal prototype to avoid an error.
27848 Use char because int might match the return type of a GCC
27849 builtin and then its argument prototype would still apply. */
27850#ifdef __cplusplus
27851extern "C"
27852#endif
27853char shmctl ();
27854int
27855main ()
27856{
27857return shmctl ();
27858 ;
27859 return 0;
27860}
27861_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027862if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027863 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000027864fi
cristy8b350f62009-11-15 23:12:43 +000027865rm -f core conftest.err conftest.$ac_objext \
27866 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027867 LIBS=$PERSIST_LIBS
27868 fi
27869
27870 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027872$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027873if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027874 $as_echo_n "(cached) " >&6
27875else
27876 ac_check_lib_save_LIBS=$LIBS
27877LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027878cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027879/* end confdefs.h. */
27880
27881/* Override any GCC internal prototype to avoid an error.
27882 Use char because int might match the return type of a GCC
27883 builtin and then its argument prototype would still apply. */
27884#ifdef __cplusplus
27885extern "C"
27886#endif
27887char XShmAttach ();
27888int
27889main ()
27890{
27891return XShmAttach ();
27892 ;
27893 return 0;
27894}
27895_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027896if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027897 ac_cv_lib_Xext_XShmAttach=yes
27898else
cristy8b350f62009-11-15 23:12:43 +000027899 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000027900fi
cristy8b350f62009-11-15 23:12:43 +000027901rm -f core conftest.err conftest.$ac_objext \
27902 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027903LIBS=$ac_check_lib_save_LIBS
27904fi
cristy8b350f62009-11-15 23:12:43 +000027905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000027906$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000027907if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027908 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027909$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027910
27911fi
27912
27913 fi
27914
27915 #
27916 # Check for X11 shape extension
27917 #
cristy8b350f62009-11-15 23:12:43 +000027918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027919$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027920if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027921 $as_echo_n "(cached) " >&6
27922else
27923 ac_check_lib_save_LIBS=$LIBS
27924LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027925cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027926/* end confdefs.h. */
27927
27928/* Override any GCC internal prototype to avoid an error.
27929 Use char because int might match the return type of a GCC
27930 builtin and then its argument prototype would still apply. */
27931#ifdef __cplusplus
27932extern "C"
27933#endif
27934char XShapeCombineMask ();
27935int
27936main ()
27937{
27938return XShapeCombineMask ();
27939 ;
27940 return 0;
27941}
27942_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027943if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027944 ac_cv_lib_Xext_XShapeCombineMask=yes
27945else
cristy8b350f62009-11-15 23:12:43 +000027946 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000027947fi
cristy8b350f62009-11-15 23:12:43 +000027948rm -f core conftest.err conftest.$ac_objext \
27949 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027950LIBS=$ac_check_lib_save_LIBS
27951fi
cristy8b350f62009-11-15 23:12:43 +000027952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000027953$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000027954if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027955 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027956$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027957
27958fi
27959
cristy8b350f62009-11-15 23:12:43 +000027960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000027961$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027962if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027963 $as_echo_n "(cached) " >&6
27964else
27965 ac_check_lib_save_LIBS=$LIBS
27966LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027967cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027968/* end confdefs.h. */
27969
27970/* Override any GCC internal prototype to avoid an error.
27971 Use char because int might match the return type of a GCC
27972 builtin and then its argument prototype would still apply. */
27973#ifdef __cplusplus
27974extern "C"
27975#endif
27976char XtSetEventDispatcher ();
27977int
27978main ()
27979{
27980return XtSetEventDispatcher ();
27981 ;
27982 return 0;
27983}
27984_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027985if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027986 ac_cv_lib_Xt_XtSetEventDispatcher=yes
27987else
cristy8b350f62009-11-15 23:12:43 +000027988 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000027989fi
cristy8b350f62009-11-15 23:12:43 +000027990rm -f core conftest.err conftest.$ac_objext \
27991 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027992LIBS=$ac_check_lib_save_LIBS
27993fi
cristy8b350f62009-11-15 23:12:43 +000027994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000027995$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000027996if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027997 XT_LIBS='-lXt'
27998fi
27999
28000 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
28001fi
28002if test "$no_x" != 'yes'; then
28003 have_x='yes'
28004else
28005 have_x='no'
28006fi
cristy73bd4a52010-10-05 11:24:23 +000028007 if test "$have_x" = 'yes'; then
28008 X11_DELEGATE_TRUE=
28009 X11_DELEGATE_FALSE='#'
28010else
28011 X11_DELEGATE_TRUE='#'
28012 X11_DELEGATE_FALSE=
28013fi
28014
cristy3ed852e2009-09-05 21:47:34 +000028015
28016
28017
28018
28019#
28020# Check for ZLIB
28021#
28022
28023# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000028024if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028025 withval=$with_zlib; with_zlib=$withval
28026else
28027 with_zlib='yes'
28028fi
28029
28030
28031if test "$with_zlib" != 'yes'; then
28032 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
28033fi
28034
28035have_zlib='no'
28036ZLIB_LIBS=''
28037if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28039$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000028041$as_echo_n "checking for ZLIB... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28043$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028044 ZLIB_LIBS=''
28045 failed=0
28046 passed=0
cristy8b350f62009-11-15 23:12:43 +000028047 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028048if test "x$ac_cv_header_zconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028049 passed=`expr $passed + 1`
28050else
28051 failed=`expr $failed + 1`
28052fi
28053
28054
cristy8b350f62009-11-15 23:12:43 +000028055 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028056if test "x$ac_cv_header_zlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028057 passed=`expr $passed + 1`
28058else
28059 failed=`expr $failed + 1`
28060fi
28061
28062
cristy8b350f62009-11-15 23:12:43 +000028063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028064$as_echo_n "checking for compress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028065if ${ac_cv_lib_z_compress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028066 $as_echo_n "(cached) " >&6
28067else
28068 ac_check_lib_save_LIBS=$LIBS
28069LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028070cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028071/* end confdefs.h. */
28072
28073/* Override any GCC internal prototype to avoid an error.
28074 Use char because int might match the return type of a GCC
28075 builtin and then its argument prototype would still apply. */
28076#ifdef __cplusplus
28077extern "C"
28078#endif
28079char compress ();
28080int
28081main ()
28082{
28083return compress ();
28084 ;
28085 return 0;
28086}
28087_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028088if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028089 ac_cv_lib_z_compress=yes
28090else
cristy8b350f62009-11-15 23:12:43 +000028091 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000028092fi
cristy8b350f62009-11-15 23:12:43 +000028093rm -f core conftest.err conftest.$ac_objext \
28094 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028095LIBS=$ac_check_lib_save_LIBS
28096fi
cristy8b350f62009-11-15 23:12:43 +000028097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000028098$as_echo "$ac_cv_lib_z_compress" >&6; }
cristyda16f162011-02-19 23:52:17 +000028099if test "x$ac_cv_lib_z_compress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028100 passed=`expr $passed + 1`
28101else
28102 failed=`expr $failed + 1`
28103fi
28104
cristy8b350f62009-11-15 23:12:43 +000028105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028106$as_echo_n "checking for uncompress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028107if ${ac_cv_lib_z_uncompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028108 $as_echo_n "(cached) " >&6
28109else
28110 ac_check_lib_save_LIBS=$LIBS
28111LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028112cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028113/* end confdefs.h. */
28114
28115/* Override any GCC internal prototype to avoid an error.
28116 Use char because int might match the return type of a GCC
28117 builtin and then its argument prototype would still apply. */
28118#ifdef __cplusplus
28119extern "C"
28120#endif
28121char uncompress ();
28122int
28123main ()
28124{
28125return uncompress ();
28126 ;
28127 return 0;
28128}
28129_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028130if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028131 ac_cv_lib_z_uncompress=yes
28132else
cristy8b350f62009-11-15 23:12:43 +000028133 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000028134fi
cristy8b350f62009-11-15 23:12:43 +000028135rm -f core conftest.err conftest.$ac_objext \
28136 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028137LIBS=$ac_check_lib_save_LIBS
28138fi
cristy8b350f62009-11-15 23:12:43 +000028139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000028140$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000028141if test "x$ac_cv_lib_z_uncompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028142 passed=`expr $passed + 1`
28143else
28144 failed=`expr $failed + 1`
28145fi
28146
cristy8b350f62009-11-15 23:12:43 +000028147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028148$as_echo_n "checking for deflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028149if ${ac_cv_lib_z_deflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028150 $as_echo_n "(cached) " >&6
28151else
28152 ac_check_lib_save_LIBS=$LIBS
28153LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028154cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028155/* end confdefs.h. */
28156
28157/* Override any GCC internal prototype to avoid an error.
28158 Use char because int might match the return type of a GCC
28159 builtin and then its argument prototype would still apply. */
28160#ifdef __cplusplus
28161extern "C"
28162#endif
28163char deflate ();
28164int
28165main ()
28166{
28167return deflate ();
28168 ;
28169 return 0;
28170}
28171_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028172if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028173 ac_cv_lib_z_deflate=yes
28174else
cristy8b350f62009-11-15 23:12:43 +000028175 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000028176fi
cristy8b350f62009-11-15 23:12:43 +000028177rm -f core conftest.err conftest.$ac_objext \
28178 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028179LIBS=$ac_check_lib_save_LIBS
28180fi
cristy8b350f62009-11-15 23:12:43 +000028181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028182$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000028183if test "x$ac_cv_lib_z_deflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028184 passed=`expr $passed + 1`
28185else
28186 failed=`expr $failed + 1`
28187fi
28188
cristy8b350f62009-11-15 23:12:43 +000028189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028190$as_echo_n "checking for inflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028191if ${ac_cv_lib_z_inflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028192 $as_echo_n "(cached) " >&6
28193else
28194 ac_check_lib_save_LIBS=$LIBS
28195LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028196cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028197/* end confdefs.h. */
28198
28199/* Override any GCC internal prototype to avoid an error.
28200 Use char because int might match the return type of a GCC
28201 builtin and then its argument prototype would still apply. */
28202#ifdef __cplusplus
28203extern "C"
28204#endif
28205char inflate ();
28206int
28207main ()
28208{
28209return inflate ();
28210 ;
28211 return 0;
28212}
28213_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028214if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028215 ac_cv_lib_z_inflate=yes
28216else
cristy8b350f62009-11-15 23:12:43 +000028217 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000028218fi
cristy8b350f62009-11-15 23:12:43 +000028219rm -f core conftest.err conftest.$ac_objext \
28220 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028221LIBS=$ac_check_lib_save_LIBS
28222fi
cristy8b350f62009-11-15 23:12:43 +000028223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028224$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000028225if test "x$ac_cv_lib_z_inflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028226 passed=`expr $passed + 1`
28227else
28228 failed=`expr $failed + 1`
28229fi
28230
cristy8b350f62009-11-15 23:12:43 +000028231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028232$as_echo_n "checking for gzseek in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028233if ${ac_cv_lib_z_gzseek+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028234 $as_echo_n "(cached) " >&6
28235else
28236 ac_check_lib_save_LIBS=$LIBS
28237LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028238cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028239/* end confdefs.h. */
28240
28241/* Override any GCC internal prototype to avoid an error.
28242 Use char because int might match the return type of a GCC
28243 builtin and then its argument prototype would still apply. */
28244#ifdef __cplusplus
28245extern "C"
28246#endif
28247char gzseek ();
28248int
28249main ()
28250{
28251return gzseek ();
28252 ;
28253 return 0;
28254}
28255_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028256if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028257 ac_cv_lib_z_gzseek=yes
28258else
cristy8b350f62009-11-15 23:12:43 +000028259 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000028260fi
cristy8b350f62009-11-15 23:12:43 +000028261rm -f core conftest.err conftest.$ac_objext \
28262 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028263LIBS=$ac_check_lib_save_LIBS
28264fi
cristy8b350f62009-11-15 23:12:43 +000028265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000028266$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristyda16f162011-02-19 23:52:17 +000028267if test "x$ac_cv_lib_z_gzseek" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028268 passed=`expr $passed + 1`
28269else
28270 failed=`expr $failed + 1`
28271fi
28272
cristy8b350f62009-11-15 23:12:43 +000028273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028274$as_echo_n "checking for gztell in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028275if ${ac_cv_lib_z_gztell+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028276 $as_echo_n "(cached) " >&6
28277else
28278 ac_check_lib_save_LIBS=$LIBS
28279LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028280cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028281/* end confdefs.h. */
28282
28283/* Override any GCC internal prototype to avoid an error.
28284 Use char because int might match the return type of a GCC
28285 builtin and then its argument prototype would still apply. */
28286#ifdef __cplusplus
28287extern "C"
28288#endif
28289char gztell ();
28290int
28291main ()
28292{
28293return gztell ();
28294 ;
28295 return 0;
28296}
28297_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028298if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028299 ac_cv_lib_z_gztell=yes
28300else
cristy8b350f62009-11-15 23:12:43 +000028301 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000028302fi
cristy8b350f62009-11-15 23:12:43 +000028303rm -f core conftest.err conftest.$ac_objext \
28304 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028305LIBS=$ac_check_lib_save_LIBS
28306fi
cristy8b350f62009-11-15 23:12:43 +000028307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000028308$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristyda16f162011-02-19 23:52:17 +000028309if test "x$ac_cv_lib_z_gztell" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028310 passed=`expr $passed + 1`
28311else
28312 failed=`expr $failed + 1`
28313fi
28314
cristy8b350f62009-11-15 23:12:43 +000028315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028316$as_echo_n "checking if ZLIB package is complete... " >&6; }
28317 if test $passed -gt 0; then
28318 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28320$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028321 have_zlib='no (failed tests)'
28322 else
28323 ZLIB_LIBS='-lz'
28324 LIBS="$ZLIB_LIBS $LIBS"
28325
cristy8b350f62009-11-15 23:12:43 +000028326$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028327
cristyad38abe2012-12-23 23:03:21 +000028328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28329$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028330 have_zlib='yes'
28331 fi
28332 else
cristyad38abe2012-12-23 23:03:21 +000028333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28334$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028335 fi
28336fi
cristy73bd4a52010-10-05 11:24:23 +000028337 if test "$have_zlib" = 'yes'; then
28338 ZLIB_DELEGATE_TRUE=
28339 ZLIB_DELEGATE_FALSE='#'
28340else
28341 ZLIB_DELEGATE_TRUE='#'
28342 ZLIB_DELEGATE_FALSE=
28343fi
28344
cristy3ed852e2009-09-05 21:47:34 +000028345
28346
cristy5eef09f2012-10-16 12:08:28 +000028347# whether modules are built or not.
28348with_ltdl='yes'
28349have_ltdl='no'
28350LTDL_LIBS=''
28351if test "$build_modules" != 'no' ; then
cristyad38abe2012-12-23 23:03:21 +000028352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28353$as_echo "-------------------------------------------------------------" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000028354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libltdl" >&5
28355$as_echo_n "checking for libltdl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28357$as_echo "" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000028358 failed=0
28359 passed=0
28360 ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
28361if test "x$ac_cv_header_ltdl_h" = xyes; then :
28362 passed=`expr $passed + 1`
28363else
28364 failed=`expr $failed + 1`
28365fi
28366
28367
28368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
28369$as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
28370if ${ac_cv_lib_ltdl_lt_dlinit+:} false; then :
28371 $as_echo_n "(cached) " >&6
28372else
28373 ac_check_lib_save_LIBS=$LIBS
28374LIBS="-lltdl $LIBS"
28375cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28376/* end confdefs.h. */
28377
28378/* Override any GCC internal prototype to avoid an error.
28379 Use char because int might match the return type of a GCC
28380 builtin and then its argument prototype would still apply. */
28381#ifdef __cplusplus
28382extern "C"
28383#endif
28384char lt_dlinit ();
28385int
28386main ()
28387{
28388return lt_dlinit ();
28389 ;
28390 return 0;
28391}
28392_ACEOF
28393if ac_fn_c_try_link "$LINENO"; then :
28394 ac_cv_lib_ltdl_lt_dlinit=yes
28395else
28396 ac_cv_lib_ltdl_lt_dlinit=no
28397fi
28398rm -f core conftest.err conftest.$ac_objext \
28399 conftest$ac_exeext conftest.$ac_ext
28400LIBS=$ac_check_lib_save_LIBS
28401fi
28402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
28403$as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
28404if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes; then :
28405 passed=`expr $passed + 1`
28406else
28407 failed=`expr $failed + 1`
28408fi
28409
28410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libltdl package is complete" >&5
28411$as_echo_n "checking if libltdl package is complete... " >&6; }
28412 if test $passed -gt 0 ; then
28413 if test $failed -gt 0 ; then
28414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28415$as_echo "no -- some components failed test" >&6; }
28416 have_ltdl='no (failed tests)'
28417 else
28418 LTDL_LIBS='-lltdl'
28419 LIBS="$LTDL_LIBS $LIBS"
28420
28421$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
28422
28423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28424$as_echo "yes" >&6; }
28425 have_ltdl='yes'
28426 fi
28427 else
28428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28429$as_echo "no" >&6; }
28430 fi
cristyaf4cbf32012-10-16 23:47:41 +000028431 if test "$have_ltdl" != 'yes' ; then
28432 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28433$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28434as_fn_error 1 "libltdl is required for modules build
28435See \`config.log' for more details" "$LINENO" 5; }
28436 fi
cristy5eef09f2012-10-16 12:08:28 +000028437fi
28438 if test "$have_ltdl" != 'no'; then
28439 WITH_LTDL_TRUE=
28440 WITH_LTDL_FALSE='#'
28441else
28442 WITH_LTDL_TRUE='#'
28443 WITH_LTDL_FALSE=
28444fi
28445
28446
cristy3ed852e2009-09-05 21:47:34 +000028447#
28448# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
28449#
28450LIB_DL=''
28451if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000028453$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028454if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028455 $as_echo_n "(cached) " >&6
28456else
28457 ac_check_lib_save_LIBS=$LIBS
28458LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028459cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028460/* end confdefs.h. */
28461
28462/* Override any GCC internal prototype to avoid an error.
28463 Use char because int might match the return type of a GCC
28464 builtin and then its argument prototype would still apply. */
28465#ifdef __cplusplus
28466extern "C"
28467#endif
28468char dlopen ();
28469int
28470main ()
28471{
28472return dlopen ();
28473 ;
28474 return 0;
28475}
28476_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028477if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028478 ac_cv_lib_dl_dlopen=yes
28479else
cristy8b350f62009-11-15 23:12:43 +000028480 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000028481fi
cristy8b350f62009-11-15 23:12:43 +000028482rm -f core conftest.err conftest.$ac_objext \
28483 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028484LIBS=$ac_check_lib_save_LIBS
28485fi
cristy8b350f62009-11-15 23:12:43 +000028486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028487$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000028488if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028489 LIB_DL='-ldl'
28490fi
28491
28492 LIBS="$LIB_DL $LIBS"
28493fi
28494
28495
28496
28497#
cristy5a3dc992014-12-05 19:50:04 +000028498# Set Apple font directory.
28499#
28500
28501# Check whether --with-apple-font-dir was given.
28502if test "${with_apple_font_dir+set}" = set; then :
28503 withval=$with_apple_font_dir; with_apple_font_dir=$withval
28504else
28505 with_apple_font_dir='default'
28506fi
28507
28508
28509if test "$with_apple_font_dir" != 'default'; then
28510 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-apple-font-dir=$with_apple_font_dir "
28511fi
28512
28513
28514#
cristy3ed852e2009-09-05 21:47:34 +000028515# Check for Autotrace delegate library.
28516#
28517
28518# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000028519if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028520 withval=$with_autotrace; with_autotrace=$withval
28521else
28522 with_autotrace='no'
28523fi
28524
28525
28526if test "$with_autotrace" != 'yes'; then
28527 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
28528fi
28529
28530have_autotrace='no'
28531AUTOTRACE_CFLAGS=""
28532AUTOTRACE_LIBS=""
28533AUTOTRACE_PKG=""
28534if test "x$with_autotrace" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000028535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28536$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028537
28538pkg_failed=no
28539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
28540$as_echo_n "checking for AUTOTRACE... " >&6; }
28541
28542if test -n "$AUTOTRACE_CFLAGS"; then
28543 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
28544 elif test -n "$PKG_CONFIG"; then
28545 if test -n "$PKG_CONFIG" && \
28546 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28547 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28548 ac_status=$?
28549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28550 test $ac_status = 0; }; then
28551 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
28552else
28553 pkg_failed=yes
28554fi
28555 else
28556 pkg_failed=untried
28557fi
28558if test -n "$AUTOTRACE_LIBS"; then
28559 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
28560 elif test -n "$PKG_CONFIG"; then
28561 if test -n "$PKG_CONFIG" && \
28562 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28563 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28564 ac_status=$?
28565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28566 test $ac_status = 0; }; then
28567 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
28568else
28569 pkg_failed=yes
28570fi
28571 else
28572 pkg_failed=untried
28573fi
28574
28575
28576
28577if test $pkg_failed = yes; then
28578
28579if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28580 _pkg_short_errors_supported=yes
28581else
28582 _pkg_short_errors_supported=no
28583fi
28584 if test $_pkg_short_errors_supported = yes; then
28585 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
28586 else
28587 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
28588 fi
28589 # Put the nasty error message in config.log where it belongs
28590 echo "$AUTOTRACE_PKG_ERRORS" >&5
28591
28592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28593$as_echo "no" >&6; }
28594 have_autotrace=no
28595elif test $pkg_failed = untried; then
28596 have_autotrace=no
28597else
28598 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
28599 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
28600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28601$as_echo "yes" >&6; }
28602 have_autotrace=yes
28603fi
cristyad38abe2012-12-23 23:03:21 +000028604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28605$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028606fi
28607
28608if test "$have_autotrace" = 'yes'; then
28609 failed=0
28610
cristy8b350f62009-11-15 23:12:43 +000028611$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028612
cristyc6722092012-10-14 00:19:31 +000028613 if test "$build_modules" = 'no'; then
cristyfa161182012-12-19 15:45:28 +000028614 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000028615 fi
28616fi
28617
cristy73bd4a52010-10-05 11:24:23 +000028618 if test "$have_autotrace" = 'yes'; then
28619 AUTOTRACE_DELEGATE_TRUE=
28620 AUTOTRACE_DELEGATE_FALSE='#'
28621else
28622 AUTOTRACE_DELEGATE_TRUE='#'
28623 AUTOTRACE_DELEGATE_FALSE=
28624fi
28625
cristy3ed852e2009-09-05 21:47:34 +000028626
28627
28628
28629
28630#
28631# Check for Display Postscript delegate library.
28632#
28633
28634# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000028635if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028636 withval=$with_dps; with_dps=$withval
28637else
28638 with_dps='yes'
28639fi
28640
28641
28642if test "$with_dps" != 'yes'; then
28643 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
28644fi
28645
28646have_dps='no'
28647DPS_LIBS=''
28648if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28650$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000028652$as_echo_n "checking for DPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28654$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028655 failed=0
28656 passed=0
28657 PERSIST_CPPFLAGS="$CPPFLAGS"
28658 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000028659 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 +000028660if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028661 passed=`expr $passed + 1`
28662else
28663 failed=`expr $failed + 1`
28664fi
28665
28666
28667 # DPS issues:
28668 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
28669 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
28670 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
28671 # ImageMagick itself doesn't use -lXt.
28672 have_libdps='no'
28673 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000028674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028675$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028676if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028677 $as_echo_n "(cached) " >&6
28678else
28679 ac_check_lib_save_LIBS=$LIBS
28680LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028681cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028682/* end confdefs.h. */
28683
28684/* Override any GCC internal prototype to avoid an error.
28685 Use char because int might match the return type of a GCC
28686 builtin and then its argument prototype would still apply. */
28687#ifdef __cplusplus
28688extern "C"
28689#endif
28690char DPSInitialize ();
28691int
28692main ()
28693{
28694return DPSInitialize ();
28695 ;
28696 return 0;
28697}
28698_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028699if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028700 ac_cv_lib_dps_DPSInitialize=yes
28701else
cristy8b350f62009-11-15 23:12:43 +000028702 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028703fi
cristy8b350f62009-11-15 23:12:43 +000028704rm -f core conftest.err conftest.$ac_objext \
28705 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028706LIBS=$ac_check_lib_save_LIBS
28707fi
cristy8b350f62009-11-15 23:12:43 +000028708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028709$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028710if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028711 have_libdps='yes'
28712else
28713 have_libdps='no'
28714fi
28715
28716 if test "$have_libdps" != 'yes'; then
28717 # Unset cache variable so we can try again.
28718 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000028719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028720$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028721if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028722 $as_echo_n "(cached) " >&6
28723else
28724 ac_check_lib_save_LIBS=$LIBS
28725LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028726cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028727/* end confdefs.h. */
28728
28729/* Override any GCC internal prototype to avoid an error.
28730 Use char because int might match the return type of a GCC
28731 builtin and then its argument prototype would still apply. */
28732#ifdef __cplusplus
28733extern "C"
28734#endif
28735char DPSInitialize ();
28736int
28737main ()
28738{
28739return DPSInitialize ();
28740 ;
28741 return 0;
28742}
28743_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028744if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028745 ac_cv_lib_dps_DPSInitialize=yes
28746else
cristy8b350f62009-11-15 23:12:43 +000028747 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028748fi
cristy8b350f62009-11-15 23:12:43 +000028749rm -f core conftest.err conftest.$ac_objext \
28750 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028751LIBS=$ac_check_lib_save_LIBS
28752fi
cristy8b350f62009-11-15 23:12:43 +000028753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028754$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028755if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028756 have_libdps='yes'
28757else
28758 have_libdps='no'
28759fi
28760
28761 if test "$have_libdps" = 'yes'; then
28762 LIBDPS_XT='-lXt'
28763 fi
28764 fi
28765 if test "$have_libdps" = 'yes'; then
28766 passed=`expr $passed + 1`
28767 else
28768 failed=`expr $failed + 1`
28769 fi
cristy8b350f62009-11-15 23:12:43 +000028770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000028771$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028772if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028773 $as_echo_n "(cached) " >&6
28774else
28775 ac_check_lib_save_LIBS=$LIBS
28776LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028777cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028778/* end confdefs.h. */
28779
28780/* Override any GCC internal prototype to avoid an error.
28781 Use char because int might match the return type of a GCC
28782 builtin and then its argument prototype would still apply. */
28783#ifdef __cplusplus
28784extern "C"
28785#endif
28786char XDPSPixelsPerPoint ();
28787int
28788main ()
28789{
28790return XDPSPixelsPerPoint ();
28791 ;
28792 return 0;
28793}
28794_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028795if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028796 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
28797else
cristy8b350f62009-11-15 23:12:43 +000028798 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000028799fi
cristy8b350f62009-11-15 23:12:43 +000028800rm -f core conftest.err conftest.$ac_objext \
28801 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028802LIBS=$ac_check_lib_save_LIBS
28803fi
cristy8b350f62009-11-15 23:12:43 +000028804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000028805$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000028806if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028807 passed=`expr $passed + 1`
28808else
28809 failed=`expr $failed + 1`
28810fi
28811
cristy8b350f62009-11-15 23:12:43 +000028812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028813$as_echo_n "checking if DPS package is complete... " >&6; }
28814 if test $passed -gt 0; then
28815 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28817$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028818 have_dps='no (failed tests)'
28819 CPPFLAGS="$PERSIST_CPPFLAGS"
28820 else
28821 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
28822 LIBS="$DPS_LIBS $LIBS"
28823
cristy8b350f62009-11-15 23:12:43 +000028824$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028825
cristyad38abe2012-12-23 23:03:21 +000028826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28827$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028828 have_dps='yes'
28829 fi
28830 else
cristyad38abe2012-12-23 23:03:21 +000028831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28832$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028833 CPPFLAGS=$PERSIST_CPPFLAGS
28834 fi
28835fi
cristy73bd4a52010-10-05 11:24:23 +000028836 if test "$have_dps" = 'yes'; then
28837 DPS_DELEGATE_TRUE=
28838 DPS_DELEGATE_FALSE='#'
28839else
28840 DPS_DELEGATE_TRUE='#'
28841 DPS_DELEGATE_FALSE=
28842fi
28843
cristy3ed852e2009-09-05 21:47:34 +000028844
28845
28846
28847#
cristy430a7312010-01-21 20:44:04 +000028848# Set DejaVu font directory.
28849#
28850
28851# Check whether --with-dejavu-font-dir was given.
28852if test "${with_dejavu_font_dir+set}" = set; then :
28853 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
28854else
28855 with_dejavu_font_dir='default'
28856fi
28857
28858
28859if test "$with_dejavu_font_dir" != 'default'; then
28860 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
28861fi
28862
28863
28864#
cristy3ed852e2009-09-05 21:47:34 +000028865# Check for FFTW delegate library.
28866#
28867
28868# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000028869if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028870 withval=$with_fftw; with_fftw=$withval
28871else
28872 with_fftw='yes'
28873fi
28874
28875
28876if test "$with_fftw" != 'yes'; then
28877 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
28878fi
28879
cristy81beccd2011-10-03 18:17:24 +000028880have_fftw='no'
28881FFTW_LIBS=''
28882if test "$with_fftw" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28884$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
28886$as_echo_n "checking for FFTW... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28888$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028889 failed=0
28890 passed=0
28891 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
28892if test "x$ac_cv_header_fftw3_h" = xyes; then :
28893 passed=`expr $passed + 1`
28894else
28895 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028896fi
28897
cristy81beccd2011-10-03 18:17:24 +000028898
28899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
28900$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
28901if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
28902 $as_echo_n "(cached) " >&6
28903else
28904 ac_check_lib_save_LIBS=$LIBS
28905LIBS="-lfftw3 $LIBS"
28906cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28907/* end confdefs.h. */
28908
28909/* Override any GCC internal prototype to avoid an error.
28910 Use char because int might match the return type of a GCC
28911 builtin and then its argument prototype would still apply. */
28912#ifdef __cplusplus
28913extern "C"
28914#endif
28915char fftw_execute ();
28916int
28917main ()
28918{
28919return fftw_execute ();
28920 ;
28921 return 0;
28922}
28923_ACEOF
28924if ac_fn_c_try_link "$LINENO"; then :
28925 ac_cv_lib_fftw3_fftw_execute=yes
28926else
28927 ac_cv_lib_fftw3_fftw_execute=no
28928fi
28929rm -f core conftest.err conftest.$ac_objext \
28930 conftest$ac_exeext conftest.$ac_ext
28931LIBS=$ac_check_lib_save_LIBS
28932fi
28933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
28934$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
28935if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
28936 passed=`expr $passed + 1`
28937else
28938 failed=`expr $failed + 1`
28939fi
28940
28941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
28942$as_echo_n "checking if FFTW package is complete... " >&6; }
28943 if test $passed -gt 0; then
28944 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28946$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028947 have_fftw='no (failed tests)'
28948 else
28949 FFTW_LIBS='-lfftw3'
28950 LIBS="$FFTW_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000028951
cristy8b350f62009-11-15 23:12:43 +000028952$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028953
cristyad38abe2012-12-23 23:03:21 +000028954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28955$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028956 have_fftw='yes'
28957 fi
28958 else
cristyad38abe2012-12-23 23:03:21 +000028959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28960$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028961 fi
28962fi
cristy73bd4a52010-10-05 11:24:23 +000028963 if test "$have_fftw" = 'yes'; then
28964 FFTW_DELEGATE_TRUE=
28965 FFTW_DELEGATE_FALSE='#'
28966else
28967 FFTW_DELEGATE_TRUE='#'
28968 FFTW_DELEGATE_FALSE=
28969fi
28970
cristy3ed852e2009-09-05 21:47:34 +000028971
28972
28973
28974#
28975# Check for FlashPIX delegate library.
28976#
28977
28978# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000028979if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028980 withval=$with_fpx; with_fpx=$withval
28981else
28982 with_fpx='yes'
28983fi
28984
28985
28986if test "$with_fpx" != 'yes'; then
28987 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
28988fi
28989
28990have_fpx='no'
28991FPX_LIBS=''
28992if test "$with_fpx" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28994$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000028996$as_echo_n "checking for FlashPIX... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28998$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028999 failed=0
29000 passed=0
29001 ac_ext=cpp
29002ac_cpp='$CXXCPP $CPPFLAGS'
29003ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29004ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29005ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29006
29007
cristy8b350f62009-11-15 23:12:43 +000029008ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029009if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029010 passed=`expr $passed + 1`
29011else
29012 failed=`expr $failed + 1`
29013fi
29014
29015
cristy8b350f62009-11-15 23:12:43 +000029016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000029017$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029018if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029019 $as_echo_n "(cached) " >&6
29020else
29021 ac_check_lib_save_LIBS=$LIBS
29022LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029023cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029024/* end confdefs.h. */
29025
29026/* Override any GCC internal prototype to avoid an error.
29027 Use char because int might match the return type of a GCC
29028 builtin and then its argument prototype would still apply. */
29029#ifdef __cplusplus
29030extern "C"
29031#endif
29032char FPX_OpenImageByFilename ();
29033int
29034main ()
29035{
29036return FPX_OpenImageByFilename ();
29037 ;
29038 return 0;
29039}
29040_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029041if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029042 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
29043else
cristy8b350f62009-11-15 23:12:43 +000029044 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000029045fi
cristy8b350f62009-11-15 23:12:43 +000029046rm -f core conftest.err conftest.$ac_objext \
29047 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029048LIBS=$ac_check_lib_save_LIBS
29049fi
cristy8b350f62009-11-15 23:12:43 +000029050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000029051$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000029052if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029053 passed=`expr $passed + 1`
29054else
29055 failed=`expr $failed + 1`
29056fi
29057
29058 ac_ext=c
29059ac_cpp='$CPP $CPPFLAGS'
29060ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29061ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29062ac_compiler_gnu=$ac_cv_c_compiler_gnu
29063
cristy8b350f62009-11-15 23:12:43 +000029064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029065$as_echo_n "checking if FlashPIX package is complete... " >&6; }
29066 if test $passed -gt 0; then
29067 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29069$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029070 have_fpx='no (failed tests)'
29071 else
29072 FPX_LIBS='-lfpx'
29073
cristy8b350f62009-11-15 23:12:43 +000029074$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029075
cristyad38abe2012-12-23 23:03:21 +000029076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29077$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029078 have_fpx='yes'
29079 PERLMAINCC="$CXX"
29080 fi
29081 else
cristyad38abe2012-12-23 23:03:21 +000029082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29083$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029084 fi
29085fi
cristy73bd4a52010-10-05 11:24:23 +000029086 if test "$have_fpx" = 'yes'; then
29087 FPX_DELEGATE_TRUE=
29088 FPX_DELEGATE_FALSE='#'
29089else
29090 FPX_DELEGATE_TRUE='#'
29091 FPX_DELEGATE_FALSE=
29092fi
29093
cristy3ed852e2009-09-05 21:47:34 +000029094
cristy853d9902014-08-21 18:50:43 +000029095
29096
29097#
29098# Check for DJVU delegate library.
29099#
29100
29101# Check whether --with-djvu was given.
29102if test "${with_djvu+set}" = set; then :
29103 withval=$with_djvu; with_djvu=$withval
29104else
29105 with_djvu='yes'
29106fi
29107
29108
29109if test "$with_djvu" != 'yes'; then
29110 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
29111fi
29112
29113have_djvu='no'
29114DJVU_LIBS=''
29115if test "$with_djvu" != 'no'; then
29116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29117$as_echo "-------------------------------------------------------------" >&6; }
29118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
29119$as_echo_n "checking for DJVU... " >&6; }
29120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29121$as_echo "" >&6; }
29122 failed=0
29123 passed=0
29124 ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default"
29125if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
29126 passed=`expr $passed + 1`
29127else
29128 failed=`expr $failed + 1`
29129fi
29130
29131
29132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
29133$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
29134if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
29135 $as_echo_n "(cached) " >&6
29136else
29137 ac_check_lib_save_LIBS=$LIBS
29138LIBS="-ldjvulibre $LIBS"
29139cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29140/* end confdefs.h. */
29141
29142/* Override any GCC internal prototype to avoid an error.
29143 Use char because int might match the return type of a GCC
29144 builtin and then its argument prototype would still apply. */
29145#ifdef __cplusplus
29146extern "C"
29147#endif
29148char ddjvu_context_create ();
29149int
29150main ()
29151{
29152return ddjvu_context_create ();
29153 ;
29154 return 0;
29155}
29156_ACEOF
29157if ac_fn_c_try_link "$LINENO"; then :
29158 ac_cv_lib_djvulibre_ddjvu_context_create=yes
29159else
29160 ac_cv_lib_djvulibre_ddjvu_context_create=no
29161fi
29162rm -f core conftest.err conftest.$ac_objext \
29163 conftest$ac_exeext conftest.$ac_ext
29164LIBS=$ac_check_lib_save_LIBS
29165fi
29166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
29167$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
29168if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
29169 passed=`expr $passed + 1`
29170else
29171 failed=`expr $failed + 1`
29172fi
29173
29174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
29175$as_echo_n "checking if DJVU package is complete... " >&6; }
29176 if test $passed -gt 0; then
29177 if test $failed -gt 0; then
29178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29179$as_echo "no -- some components failed test" >&6; }
29180 have_djvu='no (failed tests)'
29181 else
29182 DJVU_LIBS='-ldjvulibre'
29183 LIBS="$DJVU_LIBS $LIBS"
29184
29185$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
29186
29187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29188$as_echo "yes" >&6; }
29189 have_djvu='yes'
29190 fi
29191 else
29192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29193$as_echo "no" >&6; }
29194 fi
29195fi
29196 if test "$have_djvu" = 'yes'; then
29197 DJVU_DELEGATE_TRUE=
29198 DJVU_DELEGATE_FALSE='#'
29199else
29200 DJVU_DELEGATE_TRUE='#'
29201 DJVU_DELEGATE_FALSE=
29202fi
29203
29204
cristy3ed852e2009-09-05 21:47:34 +000029205
29206
29207#
29208# Check for fontconfig delegate library.
29209#
29210
29211# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000029212if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029213 withval=$with_fontconfig; with_fontconfig=$withval
29214else
cristyfc3d0222012-02-07 15:05:57 +000029215 with_fontconfig='yes'
cristy3ed852e2009-09-05 21:47:34 +000029216fi
29217
29218
29219if test "$with_fontconfig" != 'yes'; then
29220 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
29221fi
29222
29223have_fontconfig='no'
29224FONTCONFIG_CFLAGS=""
29225FONTCONFIG_LIBS=""
29226FONTCONFIG_PKG=""
29227if test "x$with_fontconfig" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29229$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029230
29231pkg_failed=no
29232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
29233$as_echo_n "checking for FONTCONFIG... " >&6; }
29234
29235if test -n "$FONTCONFIG_CFLAGS"; then
29236 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
29237 elif test -n "$PKG_CONFIG"; then
29238 if test -n "$PKG_CONFIG" && \
29239 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29240 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29241 ac_status=$?
29242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29243 test $ac_status = 0; }; then
29244 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
29245else
29246 pkg_failed=yes
29247fi
29248 else
29249 pkg_failed=untried
29250fi
29251if test -n "$FONTCONFIG_LIBS"; then
29252 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
29253 elif test -n "$PKG_CONFIG"; then
29254 if test -n "$PKG_CONFIG" && \
29255 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29256 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29257 ac_status=$?
29258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29259 test $ac_status = 0; }; then
29260 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
29261else
29262 pkg_failed=yes
29263fi
29264 else
29265 pkg_failed=untried
29266fi
29267
29268
29269
29270if test $pkg_failed = yes; then
29271
29272if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29273 _pkg_short_errors_supported=yes
29274else
29275 _pkg_short_errors_supported=no
29276fi
29277 if test $_pkg_short_errors_supported = yes; then
29278 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
29279 else
29280 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
29281 fi
29282 # Put the nasty error message in config.log where it belongs
29283 echo "$FONTCONFIG_PKG_ERRORS" >&5
29284
29285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29286$as_echo "no" >&6; }
29287 have_fontconfig=no
29288elif test $pkg_failed = untried; then
29289 have_fontconfig=no
29290else
29291 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
29292 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
29293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29294$as_echo "yes" >&6; }
29295 have_fontconfig=yes
29296fi
cristyad38abe2012-12-23 23:03:21 +000029297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29298$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029299fi
29300
29301if test "$have_fontconfig" = 'yes'; then
29302
cristy8b350f62009-11-15 23:12:43 +000029303$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029304
cristyc6722092012-10-14 00:19:31 +000029305 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000029306 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000029307 fi
cristy3ed852e2009-09-05 21:47:34 +000029308fi
29309
cristy73bd4a52010-10-05 11:24:23 +000029310 if test "$have_fontconfig" = 'yes'; then
29311 FONTCONFIG_DELEGATE_TRUE=
29312 FONTCONFIG_DELEGATE_FALSE='#'
29313else
29314 FONTCONFIG_DELEGATE_TRUE='#'
29315 FONTCONFIG_DELEGATE_FALSE=
29316fi
29317
cristy3ed852e2009-09-05 21:47:34 +000029318
29319
29320
29321
29322#
cristy03f187e2013-01-24 00:22:19 +000029323# Check for the Freetype delegate library.
cristy3ed852e2009-09-05 21:47:34 +000029324#
29325
29326# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000029327if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029328 withval=$with_freetype; with_freetype=$withval
29329else
29330 with_freetype='yes'
29331fi
29332
29333
cristy3ed852e2009-09-05 21:47:34 +000029334if test "$with_freetype" != 'yes'; then
29335 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
29336fi
29337
cristy81beccd2011-10-03 18:17:24 +000029338have_freetype='no'
cristy03f187e2013-01-24 00:22:19 +000029339FREETYPE_CFLAGS=""
29340FREETYPE_LIBS=""
29341FREETYPE_PKG=""
29342if test "x$with_freetype" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29344$as_echo "-------------------------------------------------------------" >&6; }
cristy03f187e2013-01-24 00:22:19 +000029345
29346pkg_failed=no
29347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
29348$as_echo_n "checking for FREETYPE... " >&6; }
29349
29350if test -n "$FREETYPE_CFLAGS"; then
29351 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
29352 elif test -n "$PKG_CONFIG"; then
29353 if test -n "$PKG_CONFIG" && \
29354 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
29355 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
29356 ac_status=$?
29357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29358 test $ac_status = 0; }; then
29359 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
29360else
29361 pkg_failed=yes
29362fi
29363 else
29364 pkg_failed=untried
29365fi
29366if test -n "$FREETYPE_LIBS"; then
29367 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
29368 elif test -n "$PKG_CONFIG"; then
29369 if test -n "$PKG_CONFIG" && \
29370 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
29371 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
29372 ac_status=$?
29373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29374 test $ac_status = 0; }; then
29375 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
29376else
29377 pkg_failed=yes
29378fi
29379 else
29380 pkg_failed=untried
29381fi
29382
29383
29384
29385if test $pkg_failed = yes; then
29386
29387if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29388 _pkg_short_errors_supported=yes
29389else
29390 _pkg_short_errors_supported=no
29391fi
29392 if test $_pkg_short_errors_supported = yes; then
29393 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1`
29394 else
29395 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1`
29396 fi
29397 # Put the nasty error message in config.log where it belongs
29398 echo "$FREETYPE_PKG_ERRORS" >&5
29399
29400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29401$as_echo "no" >&6; }
29402 have_freetype=no
29403elif test $pkg_failed = untried; then
29404 have_freetype=no
29405else
29406 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
29407 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
29408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29409$as_echo "yes" >&6; }
29410 have_freetype=yes
29411fi
cristyad38abe2012-12-23 23:03:21 +000029412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29413$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029414fi
29415
cristy03f187e2013-01-24 00:22:19 +000029416if test "$have_freetype" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029417
cristy8b350f62009-11-15 23:12:43 +000029418$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029419
cristy03f187e2013-01-24 00:22:19 +000029420 CFLAGS="$FREETYPE_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000029421fi
cristy03f187e2013-01-24 00:22:19 +000029422
cristy73bd4a52010-10-05 11:24:23 +000029423 if test "$have_freetype" = 'yes'; then
29424 FREETYPE_DELEGATE_TRUE=
29425 FREETYPE_DELEGATE_FALSE='#'
29426else
29427 FREETYPE_DELEGATE_TRUE='#'
29428 FREETYPE_DELEGATE_FALSE=
29429fi
29430
cristy3ed852e2009-09-05 21:47:34 +000029431
29432
29433
cristy03f187e2013-01-24 00:22:19 +000029434
cristy3ed852e2009-09-05 21:47:34 +000029435#
29436# Check for Ghostscript library or framework.
29437#
29438# Test for iapi.h & test for gsapi_new_instance in -lgs
29439# or -framework Ghostscript
29440
29441
29442# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000029443if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029444 withval=$with_gslib; with_gslib=$withval
29445else
29446 with_gslib='no'
29447fi
29448
29449
cristyb7931f12009-09-25 10:22:21 +000029450gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000029451if test "$with_gslib" != 'yes'; then
29452 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
29453fi
29454
29455have_gslib='no'
29456GS_LIBS=''
29457if test "$with_gslib" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29459$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000029461$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29463$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000029464 framework=0
cristy3ed852e2009-09-05 21:47:34 +000029465 failed=0
29466 passed=0
cristy8b350f62009-11-15 23:12:43 +000029467 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 +000029468if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029469 passed=`expr $passed + 1`
29470else
29471 failed=`expr $failed + 1`
29472fi
29473
29474
cristy8b350f62009-11-15 23:12:43 +000029475 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 +000029476if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029477 passed=`expr $passed + 1`
29478else
29479 failed=`expr $failed + 1`
29480fi
29481
29482
cristy73bd4a52010-10-05 11:24:23 +000029483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
29484$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029485if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000029486 $as_echo_n "(cached) " >&6
29487else
29488 ac_check_framework_save_LIBS=$LIBS
29489LIBS="-framework Ghostscript $LIBS"
29490cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29491/* end confdefs.h. */
29492
29493/* Override any GCC internal prototype to avoid an error.
29494 Use char because int might match the return type of a GCC
29495 builtin and then its argument prototype would still apply. */
29496#ifdef __cplusplus
29497extern "C"
29498#endif
29499char gsapi_new_instance ();
29500int
29501main ()
29502{
29503return gsapi_new_instance ();
29504 ;
29505 return 0;
29506}
29507_ACEOF
29508if ac_fn_c_try_link "$LINENO"; then :
29509 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
29510else
29511 ac_cv_framework_Ghostscript_gsapi_new_instance=no
29512fi
29513rm -f core conftest.err conftest.$ac_objext \
29514 conftest$ac_exeext conftest.$ac_ext
29515LIBS=$ac_check_framework_save_LIBS
29516fi
29517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
29518$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
29519if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
29520 framework=`expr $framework + 1`
29521else
29522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029523$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029524if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029525 $as_echo_n "(cached) " >&6
29526else
29527 ac_check_lib_save_LIBS=$LIBS
29528LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029529cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029530/* end confdefs.h. */
29531
29532/* Override any GCC internal prototype to avoid an error.
29533 Use char because int might match the return type of a GCC
29534 builtin and then its argument prototype would still apply. */
29535#ifdef __cplusplus
29536extern "C"
29537#endif
29538char gsapi_new_instance ();
29539int
29540main ()
29541{
29542return gsapi_new_instance ();
29543 ;
29544 return 0;
29545}
29546_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029547if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029548 ac_cv_lib_gs_gsapi_new_instance=yes
29549else
cristy8b350f62009-11-15 23:12:43 +000029550 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000029551fi
cristy8b350f62009-11-15 23:12:43 +000029552rm -f core conftest.err conftest.$ac_objext \
29553 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029554LIBS=$ac_check_lib_save_LIBS
29555fi
cristy8b350f62009-11-15 23:12:43 +000029556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000029557$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000029558if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029559 passed=`expr $passed + 1`
29560else
29561 failed=`expr $failed + 1`
29562fi
cristy73bd4a52010-10-05 11:24:23 +000029563
29564fi
cristy8b350f62009-11-15 23:12:43 +000029565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029566$as_echo_n "checking if Ghostscript package is complete... " >&6; }
29567 if test $passed -gt 0; then
29568 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29570$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029571 have_gslib='no (failed tests)'
29572 else
29573 if test $framework -gt 0; then
29574 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000029575 gslib_framework='yes'
cristyad38abe2012-12-23 23:03:21 +000029576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
29577$as_echo "yes, using framework." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029578 else
cristyad38abe2012-12-23 23:03:21 +000029579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
29580$as_echo "yes, using library." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029581 GS_LIBS='-lgs'
29582 fi
29583 LIBS="$GS_LIBS $LIBS"
29584
cristy8b350f62009-11-15 23:12:43 +000029585$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029586
29587 have_gslib='yes'
29588 fi
29589 else
cristyad38abe2012-12-23 23:03:21 +000029590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29591$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029592 fi
29593fi
cristy73bd4a52010-10-05 11:24:23 +000029594 if test "$have_gslib" = 'yes'; then
29595 GS_DELEGATE_TRUE=
29596 GS_DELEGATE_FALSE='#'
29597else
29598 GS_DELEGATE_TRUE='#'
29599 GS_DELEGATE_FALSE=
29600fi
29601
cristy3ed852e2009-09-05 21:47:34 +000029602
29603
29604# Set default font search path
29605
29606# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000029607if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029608 withval=$with_fontpath; with_fontpath=$withval
29609else
29610 with_fontpath=''
29611fi
29612
29613
29614if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
29615 with_fontpath=''
29616else
29617
29618cat >>confdefs.h <<_ACEOF
29619#define MAGICK_FONT_PATH "$with_fontpath"
29620_ACEOF
29621
29622fi
29623if test "$with_fontpath=" != ''; then
29624 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
29625fi
29626
29627# Set Ghostscript font directory
29628
29629# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029630if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029631 withval=$with_gs_font_dir; with_gs_font_dir=$withval
29632else
29633 with_gs_font_dir='default'
29634fi
29635
29636
29637if test "$with_gs_font_dir" != 'default'; then
29638 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
29639fi
29640
29641
29642#
29643# Check for GVC delegate library.
29644#
29645
29646# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000029647if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029648 withval=$with_gvc; with_gvc=$withval
29649else
cristy1b70dc82012-07-01 23:15:05 +000029650 with_gvc='no'
cristy3ed852e2009-09-05 21:47:34 +000029651fi
29652
29653
29654if test "$with_gvc" != 'yes'; then
29655 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
29656fi
29657
29658GVC_PKG=""
29659if test "x$with_gvc" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29661$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029662
29663pkg_failed=no
29664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
29665$as_echo_n "checking for GVC... " >&6; }
29666
29667if test -n "$GVC_CFLAGS"; then
29668 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
29669 elif test -n "$PKG_CONFIG"; then
29670 if test -n "$PKG_CONFIG" && \
29671 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29672 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29673 ac_status=$?
29674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29675 test $ac_status = 0; }; then
29676 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
29677else
29678 pkg_failed=yes
29679fi
29680 else
29681 pkg_failed=untried
29682fi
29683if test -n "$GVC_LIBS"; then
29684 pkg_cv_GVC_LIBS="$GVC_LIBS"
29685 elif test -n "$PKG_CONFIG"; then
29686 if test -n "$PKG_CONFIG" && \
29687 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29688 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29689 ac_status=$?
29690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29691 test $ac_status = 0; }; then
29692 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
29693else
29694 pkg_failed=yes
29695fi
29696 else
29697 pkg_failed=untried
29698fi
29699
29700
29701
29702if test $pkg_failed = yes; then
29703
29704if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29705 _pkg_short_errors_supported=yes
29706else
29707 _pkg_short_errors_supported=no
29708fi
29709 if test $_pkg_short_errors_supported = yes; then
29710 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
29711 else
29712 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
29713 fi
29714 # Put the nasty error message in config.log where it belongs
29715 echo "$GVC_PKG_ERRORS" >&5
29716
29717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29718$as_echo "no" >&6; }
29719 have_gvc=no
29720elif test $pkg_failed = untried; then
29721 have_gvc=no
29722else
29723 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
29724 GVC_LIBS=$pkg_cv_GVC_LIBS
29725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29726$as_echo "yes" >&6; }
29727 have_gvc=yes
29728fi
cristyad38abe2012-12-23 23:03:21 +000029729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29730$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029731fi
29732
29733if test "$have_gvc" = 'yes'; then
29734
cristy8b350f62009-11-15 23:12:43 +000029735$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029736
cristyc6722092012-10-14 00:19:31 +000029737 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000029738 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
29739 fi
29740fi
29741
cristy73bd4a52010-10-05 11:24:23 +000029742 if test "$have_gvc" = 'yes'; then
29743 GVC_DELEGATE_TRUE=
29744 GVC_DELEGATE_FALSE='#'
29745else
29746 GVC_DELEGATE_TRUE='#'
29747 GVC_DELEGATE_FALSE=
29748fi
29749
cristy3ed852e2009-09-05 21:47:34 +000029750
29751
29752
29753
29754#
29755# Check for JBIG delegate library.
29756#
29757
29758
29759# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000029760if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029761 withval=$with_jbig; with_jbig=$withval
29762else
29763 with_jbig='yes'
29764fi
29765
29766
29767have_jbig='no'
29768JBIG_LIBS=''
29769if test "$with_jbig" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29771$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029773$as_echo_n "checking for JBIG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29775$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029776 failed=0
29777 passed=0
cristy8b350f62009-11-15 23:12:43 +000029778 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029779if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029780 passed=`expr $passed + 1`
29781else
29782 failed=`expr $failed + 1`
29783fi
29784
29785
cristy8b350f62009-11-15 23:12:43 +000029786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000029787$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029788if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029789 $as_echo_n "(cached) " >&6
29790else
29791 ac_check_lib_save_LIBS=$LIBS
29792LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029793cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029794/* end confdefs.h. */
29795
29796/* Override any GCC internal prototype to avoid an error.
29797 Use char because int might match the return type of a GCC
29798 builtin and then its argument prototype would still apply. */
29799#ifdef __cplusplus
29800extern "C"
29801#endif
29802char jbg_dec_init ();
29803int
29804main ()
29805{
29806return jbg_dec_init ();
29807 ;
29808 return 0;
29809}
29810_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029811if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029812 ac_cv_lib_jbig_jbg_dec_init=yes
29813else
cristy8b350f62009-11-15 23:12:43 +000029814 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000029815fi
cristy8b350f62009-11-15 23:12:43 +000029816rm -f core conftest.err conftest.$ac_objext \
29817 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029818LIBS=$ac_check_lib_save_LIBS
29819fi
cristy8b350f62009-11-15 23:12:43 +000029820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000029821$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000029822if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029823 passed=`expr $passed + 1`
29824else
29825 failed=`expr $failed + 1`
29826fi
29827
cristy8b350f62009-11-15 23:12:43 +000029828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029829$as_echo_n "checking if JBIG package is complete... " >&6; }
29830 if test $passed -gt 0; then
29831 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29833$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029834 have_jbig='no (failed tests)'
29835 else
29836 JBIG_LIBS='-ljbig'
29837 LIBS="$JBIG_LIBS $LIBS"
29838
cristy8b350f62009-11-15 23:12:43 +000029839$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029840
cristyad38abe2012-12-23 23:03:21 +000029841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29842$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029843 have_jbig='yes'
29844 fi
29845 else
cristyad38abe2012-12-23 23:03:21 +000029846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29847$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029848 fi
29849fi
cristy73bd4a52010-10-05 11:24:23 +000029850 if test "$have_jbig" = 'yes'; then
29851 JBIG_DELEGATE_TRUE=
29852 JBIG_DELEGATE_FALSE='#'
29853else
29854 JBIG_DELEGATE_TRUE='#'
29855 JBIG_DELEGATE_FALSE=
29856fi
29857
cristy3ed852e2009-09-05 21:47:34 +000029858
29859
29860
29861#
29862# Check for JPEG delegate library.
29863#
29864
29865# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000029866if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029867 withval=$with_jpeg; with_jpeg=$withval
29868else
29869 with_jpeg='yes'
29870fi
29871
29872
29873if test "$with_jpeg" != 'yes'; then
29874 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
29875fi
29876
29877have_jpeg='no'
29878JPEG_LIBS=''
29879if test "$with_jpeg" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29881$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029883$as_echo_n "checking for JPEG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29885$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029886 failed=0
29887 passed=0
cristy8b350f62009-11-15 23:12:43 +000029888 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029889if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029890 passed=`expr $passed + 1`
29891else
29892 failed=`expr $failed + 1`
29893fi
29894
29895
cristy8b350f62009-11-15 23:12:43 +000029896 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029897if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029898 passed=`expr $passed + 1`
29899else
29900 failed=`expr $failed + 1`
29901fi
29902
29903
cristy8b350f62009-11-15 23:12:43 +000029904 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029905if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029906 passed=`expr $passed + 1`
29907else
29908 failed=`expr $failed + 1`
29909fi
29910
29911
cristy8b350f62009-11-15 23:12:43 +000029912 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029913if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029914 passed=`expr $passed + 1`
29915else
29916 failed=`expr $failed + 1`
29917fi
29918
29919
cristy8b350f62009-11-15 23:12:43 +000029920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000029921$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029922if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029923 $as_echo_n "(cached) " >&6
29924else
29925 ac_check_lib_save_LIBS=$LIBS
29926LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029927cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029928/* end confdefs.h. */
29929
29930/* Override any GCC internal prototype to avoid an error.
29931 Use char because int might match the return type of a GCC
29932 builtin and then its argument prototype would still apply. */
29933#ifdef __cplusplus
29934extern "C"
29935#endif
29936char jpeg_read_header ();
29937int
29938main ()
29939{
29940return jpeg_read_header ();
29941 ;
29942 return 0;
29943}
29944_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029945if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029946 ac_cv_lib_jpeg_jpeg_read_header=yes
29947else
cristy8b350f62009-11-15 23:12:43 +000029948 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000029949fi
cristy8b350f62009-11-15 23:12:43 +000029950rm -f core conftest.err conftest.$ac_objext \
29951 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029952LIBS=$ac_check_lib_save_LIBS
29953fi
cristy8b350f62009-11-15 23:12:43 +000029954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000029955$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000029956if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029957 passed=`expr $passed + 1`
29958else
29959 failed=`expr $failed + 1`
29960fi
29961
29962
29963# Test for compatible JPEG library
29964if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000029965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000029966$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029967if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029968 $as_echo_n "(cached) " >&6
29969else
cristy8b350f62009-11-15 23:12:43 +000029970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029971/* end confdefs.h. */
29972#include <stdio.h>
29973#include <stdlib.h>
29974#include <jpeglib.h>
29975
29976int
29977main ()
29978{
29979
29980#if JPEG_LIB_VERSION < 62
29981#error IJG JPEG library must be version 6b or newer!
29982#endif
29983return 0;
29984
29985 ;
29986 return 0;
29987}
29988_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029989if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029990 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
29991else
cristy8b350f62009-11-15 23:12:43 +000029992 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029993fi
cristy3ed852e2009-09-05 21:47:34 +000029994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29995fi
cristy8b350f62009-11-15 23:12:43 +000029996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000029997$as_echo "$ac_cv_jpeg_version_ok" >&6; }
29998fi
cristy8b350f62009-11-15 23:12:43 +000029999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030000$as_echo_n "checking if JPEG package is complete... " >&6; }
30001 if test $passed -gt 0; then
30002 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000030003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30004$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030005 have_jpeg='no (failed tests)'
30006 else
30007 JPEG_LIBS='-ljpeg'
30008 LIBS="$JPEG_LIBS $LIBS"
30009
cristy8b350f62009-11-15 23:12:43 +000030010$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030011
cristyad38abe2012-12-23 23:03:21 +000030012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30013$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030014 have_jpeg='yes'
30015 fi
30016 else
cristyad38abe2012-12-23 23:03:21 +000030017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30018$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030019 fi
30020fi
cristy73bd4a52010-10-05 11:24:23 +000030021 if test "$have_jpeg" = 'yes'; then
30022 JPEG_DELEGATE_TRUE=
30023 JPEG_DELEGATE_FALSE='#'
30024else
30025 JPEG_DELEGATE_TRUE='#'
30026 JPEG_DELEGATE_FALSE=
30027fi
30028
cristy3ed852e2009-09-05 21:47:34 +000030029
30030
30031
30032#
cristy3ed852e2009-09-05 21:47:34 +000030033# Check for LCMS delegate library.
30034#
cristy71203402010-06-18 13:12:03 +000030035# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000030036
30037# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000030038if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030039 withval=$with_lcms; with_lcms=$withval
30040else
30041 with_lcms='yes'
30042fi
30043
cristy71203402010-06-18 13:12:03 +000030044if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000030045 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
30046fi
30047
cristy71203402010-06-18 13:12:03 +000030048# Disable LCMS2.
30049
30050# Check whether --with-lcms2 was given.
30051if test "${with_lcms2+set}" = set; then :
30052 withval=$with_lcms2; with_lcms2=$withval
30053else
30054 with_lcms2='yes'
30055fi
30056
30057if test "$with_lcms2" != 'yes' ; then
30058 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
30059fi
30060
30061have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000030062LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000030063if test "$with_lcms2" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000030064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30065$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000030066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
30067$as_echo_n "checking for LCMS v2... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30069$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030070 failed=0
30071 passed=0
30072 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000030073
30074 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000030075 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030076if test "x$ac_cv_header_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030077 have_lcms_header='yes'
30078fi
30079
30080
30081 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000030082
30083$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
30084
cristy71203402010-06-18 13:12:03 +000030085 passed=`expr $passed + 1`
30086 fi
30087
30088 # Check for <lcms2/lcms2.h)
30089 if test "$have_lcms_header" != 'yes'; then
30090 ac_fn_c_check_header_mongrel "$LINENO" "lcms2/lcms2.h" "ac_cv_header_lcms2_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030091if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030092 have_lcms_header='yes'
30093fi
30094
30095
cristy71203402010-06-18 13:12:03 +000030096 if test "$have_lcms_header" = 'yes'; then
30097 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000030098
cristy71203402010-06-18 13:12:03 +000030099$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000030100
cristy71203402010-06-18 13:12:03 +000030101 fi
cristyd09bcf92010-03-25 03:04:45 +000030102 fi
cristy71203402010-06-18 13:12:03 +000030103
30104 # Failed to find lcms header?
30105 if test "$have_lcms_header" != 'yes'; then
30106 failed=`expr $failed + 1`
30107 fi
30108
30109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
30110$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030111if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
cristyd09bcf92010-03-25 03:04:45 +000030112 $as_echo_n "(cached) " >&6
30113else
30114 ac_check_lib_save_LIBS=$LIBS
30115LIBS="-llcms2 $LIBS"
30116cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30117/* end confdefs.h. */
30118
30119/* Override any GCC internal prototype to avoid an error.
30120 Use char because int might match the return type of a GCC
30121 builtin and then its argument prototype would still apply. */
30122#ifdef __cplusplus
30123extern "C"
30124#endif
cristy71203402010-06-18 13:12:03 +000030125char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000030126int
30127main ()
30128{
cristy71203402010-06-18 13:12:03 +000030129return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000030130 ;
30131 return 0;
30132}
30133_ACEOF
30134if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000030135 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000030136else
cristy71203402010-06-18 13:12:03 +000030137 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000030138fi
30139rm -f core conftest.err conftest.$ac_objext \
30140 conftest$ac_exeext conftest.$ac_ext
30141LIBS=$ac_check_lib_save_LIBS
30142fi
cristy71203402010-06-18 13:12:03 +000030143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
30144$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000030145if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030146 passed=`expr $passed + 1`
30147else
30148 failed=`expr $failed + 1`
30149fi
30150
cristy71203402010-06-18 13:12:03 +000030151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
30152$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000030153 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030154 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000030155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30156$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000030157 have_lcms2='no (failed tests)'
30158 else
30159 LCMS_LIBS='-llcms2'
30160 LIBS="$LCMS_LIBS $LIBS"
cristyad38abe2012-12-23 23:03:21 +000030161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30162$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000030163 have_lcms2='yes'
30164 fi
cristyd09bcf92010-03-25 03:04:45 +000030165 else
cristyad38abe2012-12-23 23:03:21 +000030166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30167$as_echo "no" >&6; }
cristyd09bcf92010-03-25 03:04:45 +000030168 fi
30169fi
30170
cristy71203402010-06-18 13:12:03 +000030171#
30172# Check for LCMS v1 (1.11 or later)
30173#
30174if test $have_lcms2 = 'yes'; then
30175 with_lcms='no'
30176fi
30177
30178have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000030179if test "$with_lcms" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000030180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30181$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000030182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
30183$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30185$as_echo "" >&6; }
cristyd09bcf92010-03-25 03:04:45 +000030186 failed=0
30187 passed=0
30188 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000030189
30190 # Check for <lcms.h>
30191 if test "$have_lcms_header" != 'yes'; then
30192 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030193if test "x$ac_cv_header_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030194 have_lcms_header='yes'
30195fi
30196
30197
cristy71203402010-06-18 13:12:03 +000030198 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000030199 passed=`expr $passed + 1`
30200
cristy8b350f62009-11-15 23:12:43 +000030201$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030202
cristy71203402010-06-18 13:12:03 +000030203 fi
30204 fi
30205
30206 # Check for <lcms/lcms.h>
30207 if test "$have_lcms_header" != 'yes'; then
30208 ac_fn_c_check_header_mongrel "$LINENO" "lcms/lcms.h" "ac_cv_header_lcms_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030209if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030210 have_lcms_header='yes'
30211fi
30212
30213
cristy71203402010-06-18 13:12:03 +000030214 if test "$have_lcms_header" = 'yes'; then
30215 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030216
cristy8b350f62009-11-15 23:12:43 +000030217$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030218
cristy71203402010-06-18 13:12:03 +000030219 fi
cristy3ed852e2009-09-05 21:47:34 +000030220 fi
cristy71203402010-06-18 13:12:03 +000030221
30222 # Failed to find lcms header?
30223 if test "$have_lcms_header" != 'yes'; then
30224 failed=`expr $failed + 1`
30225 fi
30226
30227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
30228$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030229if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030230 $as_echo_n "(cached) " >&6
30231else
30232 ac_check_lib_save_LIBS=$LIBS
30233LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030234cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030235/* end confdefs.h. */
30236
30237/* Override any GCC internal prototype to avoid an error.
30238 Use char because int might match the return type of a GCC
30239 builtin and then its argument prototype would still apply. */
30240#ifdef __cplusplus
30241extern "C"
30242#endif
cristy71203402010-06-18 13:12:03 +000030243char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030244int
30245main ()
30246{
cristy71203402010-06-18 13:12:03 +000030247return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030248 ;
30249 return 0;
30250}
30251_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030252if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000030253 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000030254else
cristy71203402010-06-18 13:12:03 +000030255 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000030256fi
cristy8b350f62009-11-15 23:12:43 +000030257rm -f core conftest.err conftest.$ac_objext \
30258 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030259LIBS=$ac_check_lib_save_LIBS
30260fi
cristy71203402010-06-18 13:12:03 +000030261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
30262$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000030263if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030264 passed=`expr $passed + 1`
30265else
30266 failed=`expr $failed + 1`
30267fi
30268
cristy8b350f62009-11-15 23:12:43 +000030269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030270$as_echo_n "checking if LCMS package is complete... " >&6; }
30271 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030272 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000030273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30274$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000030275 have_lcms='no (failed tests)'
30276 else
30277 LCMS_LIBS='-llcms'
30278 LIBS="$LCMS_LIBS $LIBS"
cristyad38abe2012-12-23 23:03:21 +000030279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30280$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000030281 have_lcms='yes'
30282 fi
cristy3ed852e2009-09-05 21:47:34 +000030283 else
cristyad38abe2012-12-23 23:03:21 +000030284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30285$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030286 fi
30287fi
cristy71203402010-06-18 13:12:03 +000030288
cristy73bd4a52010-10-05 11:24:23 +000030289 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30290 LCMS_DELEGATE_TRUE=
30291 LCMS_DELEGATE_FALSE='#'
30292else
30293 LCMS_DELEGATE_TRUE='#'
30294 LCMS_DELEGATE_FALSE=
30295fi
30296
cristy71203402010-06-18 13:12:03 +000030297if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30298
30299$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
30300
30301fi
30302
cristy3ed852e2009-09-05 21:47:34 +000030303
30304
30305
30306#
cristy99db3872014-01-01 15:11:34 +000030307# Check for the OpenJP2 delegate library.
30308#
30309
30310# Check whether --with-openjp2 was given.
30311if test "${with_openjp2+set}" = set; then :
30312 withval=$with_openjp2; with_openjp2=$withval
30313else
30314 with_openjp2='yes'
30315fi
30316
30317
30318if test "$with_openjp2" != 'yes'; then
30319 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openjp2=$with_openjp2 "
30320fi
30321
30322have_openjp2='no'
30323LIBOPENJP2_CFLAGS=""
30324LIBOPENJP2_LIBS=""
30325LIBOPENJP2_PKG=""
30326if test "x$with_openjp2" = "xyes"; then
30327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30328$as_echo "-------------------------------------------------------------" >&6; }
30329
30330pkg_failed=no
30331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBOPENJP2" >&5
30332$as_echo_n "checking for LIBOPENJP2... " >&6; }
30333
30334if test -n "$LIBOPENJP2_CFLAGS"; then
30335 pkg_cv_LIBOPENJP2_CFLAGS="$LIBOPENJP2_CFLAGS"
30336 elif test -n "$PKG_CONFIG"; then
30337 if test -n "$PKG_CONFIG" && \
cristybc964932014-05-08 21:45:03 +000030338 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopenjp2 >= 2.1.0\""; } >&5
30339 ($PKG_CONFIG --exists --print-errors "libopenjp2 >= 2.1.0") 2>&5
cristy99db3872014-01-01 15:11:34 +000030340 ac_status=$?
30341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30342 test $ac_status = 0; }; then
cristybc964932014-05-08 21:45:03 +000030343 pkg_cv_LIBOPENJP2_CFLAGS=`$PKG_CONFIG --cflags "libopenjp2 >= 2.1.0" 2>/dev/null`
cristy99db3872014-01-01 15:11:34 +000030344else
30345 pkg_failed=yes
30346fi
30347 else
30348 pkg_failed=untried
30349fi
30350if test -n "$LIBOPENJP2_LIBS"; then
30351 pkg_cv_LIBOPENJP2_LIBS="$LIBOPENJP2_LIBS"
30352 elif test -n "$PKG_CONFIG"; then
30353 if test -n "$PKG_CONFIG" && \
cristybc964932014-05-08 21:45:03 +000030354 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopenjp2 >= 2.1.0\""; } >&5
30355 ($PKG_CONFIG --exists --print-errors "libopenjp2 >= 2.1.0") 2>&5
cristy99db3872014-01-01 15:11:34 +000030356 ac_status=$?
30357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30358 test $ac_status = 0; }; then
cristybc964932014-05-08 21:45:03 +000030359 pkg_cv_LIBOPENJP2_LIBS=`$PKG_CONFIG --libs "libopenjp2 >= 2.1.0" 2>/dev/null`
cristy99db3872014-01-01 15:11:34 +000030360else
30361 pkg_failed=yes
30362fi
30363 else
30364 pkg_failed=untried
30365fi
30366
30367
30368
30369if test $pkg_failed = yes; then
30370
30371if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30372 _pkg_short_errors_supported=yes
30373else
30374 _pkg_short_errors_supported=no
30375fi
30376 if test $_pkg_short_errors_supported = yes; then
cristybc964932014-05-08 21:45:03 +000030377 LIBOPENJP2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libopenjp2 >= 2.1.0" 2>&1`
cristy99db3872014-01-01 15:11:34 +000030378 else
cristybc964932014-05-08 21:45:03 +000030379 LIBOPENJP2_PKG_ERRORS=`$PKG_CONFIG --print-errors "libopenjp2 >= 2.1.0" 2>&1`
cristy99db3872014-01-01 15:11:34 +000030380 fi
30381 # Put the nasty error message in config.log where it belongs
30382 echo "$LIBOPENJP2_PKG_ERRORS" >&5
30383
30384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30385$as_echo "no" >&6; }
30386 have_openjp2=no
30387elif test $pkg_failed = untried; then
30388 have_openjp2=no
30389else
30390 LIBOPENJP2_CFLAGS=$pkg_cv_LIBOPENJP2_CFLAGS
30391 LIBOPENJP2_LIBS=$pkg_cv_LIBOPENJP2_LIBS
30392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30393$as_echo "yes" >&6; }
30394 have_openjp2=yes
30395fi
30396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30397$as_echo "" >&6; }
30398fi
30399
30400if test "$have_openjp2" = 'yes'; then
30401
30402$as_echo "#define LIBOPENJP2_DELEGATE 1" >>confdefs.h
30403
30404 if test "$build_modules" = 'no'; then
30405 CFLAGS="$LIBOPENJP2_CFLAGS $CFLAGS"
30406 fi
30407fi
30408
30409 if test "$have_openjp2" = 'yes'; then
30410 LIBOPENJP2_DELEGATE_TRUE=
30411 LIBOPENJP2_DELEGATE_FALSE='#'
30412else
30413 LIBOPENJP2_DELEGATE_TRUE='#'
30414 LIBOPENJP2_DELEGATE_FALSE=
30415fi
30416
30417
30418
30419
30420
30421
30422#
cristy3ed852e2009-09-05 21:47:34 +000030423# Check for the LQR (Liquid Rescale) delegate library.
30424#
30425
30426# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000030427if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030428 withval=$with_lqr; with_lqr=$withval
30429else
30430 with_lqr='yes'
30431fi
30432
30433
30434if test "$with_lqr" != 'yes'; then
30435 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
30436fi
30437
30438have_lqr='no'
30439LQR_CFLAGS=""
30440LQR_LIBS=""
30441LQR_PKG=""
30442if test "x$with_lqr" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30444$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030445
30446pkg_failed=no
30447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
30448$as_echo_n "checking for LQR... " >&6; }
30449
30450if test -n "$LQR_CFLAGS"; then
30451 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
30452 elif test -n "$PKG_CONFIG"; then
30453 if test -n "$PKG_CONFIG" && \
30454 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30455 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30456 ac_status=$?
30457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30458 test $ac_status = 0; }; then
30459 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
30460else
30461 pkg_failed=yes
30462fi
30463 else
30464 pkg_failed=untried
30465fi
30466if test -n "$LQR_LIBS"; then
30467 pkg_cv_LQR_LIBS="$LQR_LIBS"
30468 elif test -n "$PKG_CONFIG"; then
30469 if test -n "$PKG_CONFIG" && \
30470 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30471 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30472 ac_status=$?
30473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30474 test $ac_status = 0; }; then
30475 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
30476else
30477 pkg_failed=yes
30478fi
30479 else
30480 pkg_failed=untried
30481fi
30482
30483
30484
30485if test $pkg_failed = yes; then
30486
30487if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30488 _pkg_short_errors_supported=yes
30489else
30490 _pkg_short_errors_supported=no
30491fi
30492 if test $_pkg_short_errors_supported = yes; then
30493 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
30494 else
30495 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
30496 fi
30497 # Put the nasty error message in config.log where it belongs
30498 echo "$LQR_PKG_ERRORS" >&5
30499
30500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30501$as_echo "no" >&6; }
30502 have_lqr=no
30503elif test $pkg_failed = untried; then
30504 have_lqr=no
30505else
30506 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
30507 LQR_LIBS=$pkg_cv_LQR_LIBS
30508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30509$as_echo "yes" >&6; }
30510 have_lqr=yes
30511fi
cristyad38abe2012-12-23 23:03:21 +000030512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30513$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030514fi
30515
30516if test "$have_lqr" = 'yes'; then
30517
cristy8b350f62009-11-15 23:12:43 +000030518$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030519
30520 CFLAGS="$LQR_CFLAGS $CFLAGS"
30521fi
30522
cristy73bd4a52010-10-05 11:24:23 +000030523 if test "$have_lqr" = 'yes'; then
30524 LQR_DELEGATE_TRUE=
30525 LQR_DELEGATE_FALSE='#'
30526else
30527 LQR_DELEGATE_TRUE='#'
30528 LQR_DELEGATE_FALSE=
30529fi
30530
cristy3ed852e2009-09-05 21:47:34 +000030531
30532
30533
30534
cristy81beccd2011-10-03 18:17:24 +000030535# Disable LZMA (lzma library)
cristyfbb0ef02010-12-19 02:32:11 +000030536
30537# Check whether --with-lzma was given.
30538if test "${with_lzma+set}" = set; then :
30539 withval=$with_lzma; with_lzma=$withval
30540else
30541 with_lzma='yes'
30542fi
30543
cristy81beccd2011-10-03 18:17:24 +000030544if test "$with_lzma" != 'yes' ; then
cristyfbb0ef02010-12-19 02:32:11 +000030545 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
30546fi
30547
cristyb94e5002011-11-14 13:20:10 +000030548LZMA_PKG=""
30549if test "x$with_lzma" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30551$as_echo "-------------------------------------------------------------" >&6; }
cristyb94e5002011-11-14 13:20:10 +000030552
30553pkg_failed=no
30554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
cristyfbb0ef02010-12-19 02:32:11 +000030555$as_echo_n "checking for LZMA... " >&6; }
cristyb94e5002011-11-14 13:20:10 +000030556
30557if test -n "$LZMA_CFLAGS"; then
30558 pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
30559 elif test -n "$PKG_CONFIG"; then
30560 if test -n "$PKG_CONFIG" && \
30561 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30562 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30563 ac_status=$?
30564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30565 test $ac_status = 0; }; then
30566 pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null`
30567else
30568 pkg_failed=yes
30569fi
30570 else
30571 pkg_failed=untried
30572fi
30573if test -n "$LZMA_LIBS"; then
30574 pkg_cv_LZMA_LIBS="$LZMA_LIBS"
30575 elif test -n "$PKG_CONFIG"; then
30576 if test -n "$PKG_CONFIG" && \
30577 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30578 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30579 ac_status=$?
30580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30581 test $ac_status = 0; }; then
30582 pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null`
30583else
30584 pkg_failed=yes
30585fi
30586 else
30587 pkg_failed=untried
30588fi
30589
30590
30591
30592if test $pkg_failed = yes; then
30593
30594if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30595 _pkg_short_errors_supported=yes
30596else
30597 _pkg_short_errors_supported=no
30598fi
30599 if test $_pkg_short_errors_supported = yes; then
30600 LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "liblzma >= 2.9.0" 2>&1`
30601 else
30602 LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors "liblzma >= 2.9.0" 2>&1`
30603 fi
30604 # Put the nasty error message in config.log where it belongs
30605 echo "$LZMA_PKG_ERRORS" >&5
30606
30607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30608$as_echo "no" >&6; }
30609 have_lzma=no
30610elif test $pkg_failed = untried; then
30611 have_lzma=no
30612else
30613 LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
30614 LZMA_LIBS=$pkg_cv_LZMA_LIBS
30615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30616$as_echo "yes" >&6; }
30617 have_lzma=yes
30618fi
cristyad38abe2012-12-23 23:03:21 +000030619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30620$as_echo "" >&6; }
cristyfbb0ef02010-12-19 02:32:11 +000030621fi
30622
cristyb94e5002011-11-14 13:20:10 +000030623if test "$have_lzma" = 'yes'; then
cristyfbb0ef02010-12-19 02:32:11 +000030624
30625$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
30626
cristyc6722092012-10-14 00:19:31 +000030627 if test "$build_modules" = 'no'; then
cristyb94e5002011-11-14 13:20:10 +000030628 CPPFLAGS="$LZMA_CFLAGS $CPPFLAGS"
cristyfbb0ef02010-12-19 02:32:11 +000030629 fi
cristyfbb0ef02010-12-19 02:32:11 +000030630fi
cristyb94e5002011-11-14 13:20:10 +000030631
cristyfbb0ef02010-12-19 02:32:11 +000030632 if test "$have_lzma" = 'yes'; then
30633 LZMA_DELEGATE_TRUE=
30634 LZMA_DELEGATE_FALSE='#'
30635else
30636 LZMA_DELEGATE_TRUE='#'
30637 LZMA_DELEGATE_FALSE=
30638fi
30639
30640
30641
30642
cristyb94e5002011-11-14 13:20:10 +000030643
cristy3ed852e2009-09-05 21:47:34 +000030644#
30645# Check for the OpenEXR delegate library.
30646#
30647
30648# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000030649if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030650 withval=$with_openexr; with_openexr=$withval
30651else
30652 with_openexr='yes'
30653fi
30654
30655
30656if test "$with_openexr" != 'yes'; then
30657 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
30658fi
30659
30660have_openexr='no'
30661OPENEXR_CFLAGS=""
30662OPENEXR_LIBS=""
30663OPENEXR_PKG=""
30664if test "x$with_openexr" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30666$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030667
30668pkg_failed=no
30669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
30670$as_echo_n "checking for OPENEXR... " >&6; }
30671
30672if test -n "$OPENEXR_CFLAGS"; then
30673 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
30674 elif test -n "$PKG_CONFIG"; then
30675 if test -n "$PKG_CONFIG" && \
30676 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30677 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30678 ac_status=$?
30679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30680 test $ac_status = 0; }; then
30681 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
30682else
30683 pkg_failed=yes
30684fi
30685 else
30686 pkg_failed=untried
30687fi
30688if test -n "$OPENEXR_LIBS"; then
30689 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
30690 elif test -n "$PKG_CONFIG"; then
30691 if test -n "$PKG_CONFIG" && \
30692 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30693 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30694 ac_status=$?
30695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30696 test $ac_status = 0; }; then
30697 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
30698else
30699 pkg_failed=yes
30700fi
30701 else
30702 pkg_failed=untried
30703fi
30704
30705
30706
30707if test $pkg_failed = yes; then
30708
30709if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30710 _pkg_short_errors_supported=yes
30711else
30712 _pkg_short_errors_supported=no
30713fi
30714 if test $_pkg_short_errors_supported = yes; then
30715 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
30716 else
30717 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
30718 fi
30719 # Put the nasty error message in config.log where it belongs
30720 echo "$OPENEXR_PKG_ERRORS" >&5
30721
30722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30723$as_echo "no" >&6; }
30724 have_openexr=no
30725elif test $pkg_failed = untried; then
30726 have_openexr=no
30727else
30728 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
30729 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
30730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30731$as_echo "yes" >&6; }
30732 have_openexr=yes
30733fi
cristyad38abe2012-12-23 23:03:21 +000030734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30735$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030736fi
30737
30738if test "$have_openexr" = 'yes'; then
30739
cristy8b350f62009-11-15 23:12:43 +000030740$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030741
cristyc6722092012-10-14 00:19:31 +000030742 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000030743 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
30744 fi
30745fi
30746
cristy73bd4a52010-10-05 11:24:23 +000030747 if test "$have_openexr" = 'yes'; then
30748 OPENEXR_DELEGATE_TRUE=
30749 OPENEXR_DELEGATE_FALSE='#'
30750else
30751 OPENEXR_DELEGATE_TRUE='#'
30752 OPENEXR_DELEGATE_FALSE=
30753fi
30754
cristy3ed852e2009-09-05 21:47:34 +000030755
30756
30757
30758
30759#
cristy41cbe8a2011-10-27 01:35:18 +000030760# Check for PANGO delegate library.
30761#
30762
30763# Check whether --with-pango was given.
30764if test "${with_pango+set}" = set; then :
30765 withval=$with_pango; with_pango=$withval
30766else
cristyfc3d0222012-02-07 15:05:57 +000030767 with_pango='yes'
cristy41cbe8a2011-10-27 01:35:18 +000030768fi
30769
30770
30771if test "$with_pango" != 'yes'; then
30772 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
30773fi
30774
30775have_pango='no'
cristya054b762012-03-26 23:16:00 +000030776have_pangocairo='no'
cristy41cbe8a2011-10-27 01:35:18 +000030777PANGO_CFLAGS=""
30778PANGO_LIBS=""
30779PANGO_PKG=""
30780if test "x$with_pango" = "xyes"; then
30781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30782$as_echo "-------------------------------------------------------------" >&6; }
30783
30784pkg_failed=no
30785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30786$as_echo_n "checking for PANGO... " >&6; }
30787
30788if test -n "$PANGO_CFLAGS"; then
30789 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30790 elif test -n "$PKG_CONFIG"; then
30791 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030792 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30793 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030794 ac_status=$?
30795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30796 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030797 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030798else
30799 pkg_failed=yes
30800fi
30801 else
30802 pkg_failed=untried
30803fi
30804if test -n "$PANGO_LIBS"; then
30805 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30806 elif test -n "$PKG_CONFIG"; then
30807 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030808 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30809 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030810 ac_status=$?
30811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30812 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030813 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030814else
30815 pkg_failed=yes
30816fi
30817 else
30818 pkg_failed=untried
30819fi
30820
30821
30822
30823if test $pkg_failed = yes; then
30824
30825if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30826 _pkg_short_errors_supported=yes
30827else
30828 _pkg_short_errors_supported=no
30829fi
30830 if test $_pkg_short_errors_supported = yes; then
cristya054b762012-03-26 23:16:00 +000030831 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030832 else
cristya054b762012-03-26 23:16:00 +000030833 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030834 fi
30835 # Put the nasty error message in config.log where it belongs
30836 echo "$PANGO_PKG_ERRORS" >&5
30837
30838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30839$as_echo "no" >&6; }
cristya054b762012-03-26 23:16:00 +000030840 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000030841elif test $pkg_failed = untried; then
cristya054b762012-03-26 23:16:00 +000030842 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000030843else
30844 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30845 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30847$as_echo "yes" >&6; }
cristya054b762012-03-26 23:16:00 +000030848 have_pangocairo=yes
cristy41cbe8a2011-10-27 01:35:18 +000030849fi
30850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30851$as_echo "" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000030852
30853pkg_failed=no
30854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30855$as_echo_n "checking for PANGO... " >&6; }
30856
30857if test -n "$PANGO_CFLAGS"; then
30858 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30859 elif test -n "$PKG_CONFIG"; then
30860 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030861 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30862 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030863 ac_status=$?
30864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30865 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030866 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030867else
30868 pkg_failed=yes
30869fi
30870 else
30871 pkg_failed=untried
30872fi
30873if test -n "$PANGO_LIBS"; then
30874 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30875 elif test -n "$PKG_CONFIG"; then
30876 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030877 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30878 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030879 ac_status=$?
30880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30881 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030882 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030883else
30884 pkg_failed=yes
30885fi
30886 else
30887 pkg_failed=untried
30888fi
30889
30890
30891
30892if test $pkg_failed = yes; then
30893
30894if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30895 _pkg_short_errors_supported=yes
30896else
30897 _pkg_short_errors_supported=no
30898fi
30899 if test $_pkg_short_errors_supported = yes; then
cristy2542fc62011-12-06 17:50:25 +000030900 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030901 else
cristy2542fc62011-12-06 17:50:25 +000030902 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030903 fi
30904 # Put the nasty error message in config.log where it belongs
30905 echo "$PANGO_PKG_ERRORS" >&5
30906
30907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30908$as_echo "no" >&6; }
30909 have_pango=no
30910elif test $pkg_failed = untried; then
30911 have_pango=no
30912else
30913 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30914 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30916$as_echo "yes" >&6; }
30917 have_pango=yes
30918fi
30919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30920$as_echo "" >&6; }
cristy41cbe8a2011-10-27 01:35:18 +000030921fi
30922
30923if test "$have_pango" = 'yes'; then
30924
30925$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h
30926
cristyc6722092012-10-14 00:19:31 +000030927 if test "$build_modules" = 'no'; then
cristy41cbe8a2011-10-27 01:35:18 +000030928 CPPFLAGS="$PANGO_CFLAGS $CPPFLAGS"
30929 fi
30930fi
30931
cristya054b762012-03-26 23:16:00 +000030932if test "$have_pangocairo" = 'yes'; then
cristy41cbe8a2011-10-27 01:35:18 +000030933
cristya054b762012-03-26 23:16:00 +000030934$as_echo "#define PANGOCAIRO_DELEGATE 1" >>confdefs.h
cristy41cbe8a2011-10-27 01:35:18 +000030935
cristyc6722092012-10-14 00:19:31 +000030936 if test "$build_modules" = 'no'; then
cristya054b762012-03-26 23:16:00 +000030937 CPPFLAGS="$PANGOCAIRO_CFLAGS $CPPFLAGS"
cristy41cbe8a2011-10-27 01:35:18 +000030938 fi
30939fi
30940
30941 if test "$have_pango" = 'yes'; then
30942 PANGO_DELEGATE_TRUE=
30943 PANGO_DELEGATE_FALSE='#'
30944else
30945 PANGO_DELEGATE_TRUE='#'
30946 PANGO_DELEGATE_FALSE=
30947fi
30948
cristya054b762012-03-26 23:16:00 +000030949 if test "$have_pangocairo" = 'yes'; then
30950 PANGOCAIRO_DELEGATE_TRUE=
30951 PANGOCAIRO_DELEGATE_FALSE='#'
cristy41cbe8a2011-10-27 01:35:18 +000030952else
cristya054b762012-03-26 23:16:00 +000030953 PANGOCAIRO_DELEGATE_TRUE='#'
30954 PANGOCAIRO_DELEGATE_FALSE=
cristy41cbe8a2011-10-27 01:35:18 +000030955fi
30956
30957
30958
30959
30960
30961#
cristy3ed852e2009-09-05 21:47:34 +000030962# Check for PNG delegate library.
30963#
30964
30965# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000030966if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030967 withval=$with_png; with_png=$withval
30968else
30969 with_png='yes'
30970fi
30971
30972
30973if test "$with_png" != 'yes'; then
30974 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
30975fi
30976
cristy81beccd2011-10-03 18:17:24 +000030977have_png='no'
30978PNG_LIBS=''
30979
30980if test "$with_png" != 'no' -a "$have_zlib" != 'no' ; then
cristyad38abe2012-12-23 23:03:21 +000030981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30982$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5
30984$as_echo_n "checking for PNG support ... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30986$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030987 failed=0
30988 passed=0
30989 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
30990if test "x$ac_cv_header_png_h" = xyes; then :
30991 passed=`expr $passed + 1`
30992else
30993 failed=`expr $failed + 1`
cristy64877302011-08-23 19:10:31 +000030994fi
30995
cristy81beccd2011-10-03 18:17:24 +000030996
30997
30998 if test $passed -gt 0; then
glennrp3fc1c212013-01-10 01:52:32 +000030999 for var in 7 6 5 4 2 '' ; do
cristy0615f0e2011-10-12 11:36:46 +000031000 if test "$have_png" = 'no' ; then
31001 if test "x${var}" = 'x' ; then
cristy81beccd2011-10-03 18:17:24 +000031002 pnglib='png'
31003 else
31004 pnglib="png1${var}"
31005 fi
31006
31007# Test for compatible LIBPNG library
31008 failed=0
31009 passed=0
cristy0615f0e2011-10-12 11:36:46 +000031010 if test "$with_png" = 'yes' -o "$with_png" = "libpng1${var}" ; then
cristy81beccd2011-10-03 18:17:24 +000031011 if test "${pnglib}" != 'png' ; then
31012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5
31013$as_echo_n "checking for LIBPNG1${var} support ... " >&6; }
31014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31015/* end confdefs.h. */
31016#include <stdio.h>
31017#include <stdlib.h>
31018#include <png.h>
31019
31020int
31021main ()
31022{
31023
31024#if PNG_LIBPNG_VER_MINOR != ${var}
31025#error LIBPNG library must be version 1${var}!
31026Kaboom, Kaboom
31027#endif
31028return 0;
31029
31030 ;
31031 return 0;
31032}
31033_ACEOF
31034if ac_fn_c_try_compile "$LINENO"; then :
31035 ac_cv_libpng_ok='yes'
31036else
31037 ac_cv_libpng_ok='no'
31038fi
31039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31040 if test "$ac_cv_libpng_ok" = 'yes' ; then
31041 passed=`expr $passed + 1`
cristyad38abe2012-12-23 23:03:21 +000031042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31043$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031044 else
31045 failed=`expr $failed + 1`
cristyad38abe2012-12-23 23:03:21 +000031046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31047$as_echo "no" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031048 fi
31049 else
31050 passed=`expr $passed + 1`
cristyad38abe2012-12-23 23:03:21 +000031051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31052$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031053 fi
31054 fi
31055
31056 if test $passed -gt 0 -a $failed -le 0; then
cristy03f187e2013-01-24 00:22:19 +000031057 if test "1${var}" = '17' ; then
31058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng17" >&5
31059$as_echo_n "checking for png_get_io_ptr in -lpng17... " >&6; }
31060if ${ac_cv_lib_png17_png_get_io_ptr+:} false; then :
31061 $as_echo_n "(cached) " >&6
31062else
31063 ac_check_lib_save_LIBS=$LIBS
31064LIBS="-lpng17 $LIBS"
31065cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31066/* end confdefs.h. */
31067
31068/* Override any GCC internal prototype to avoid an error.
31069 Use char because int might match the return type of a GCC
31070 builtin and then its argument prototype would still apply. */
31071#ifdef __cplusplus
31072extern "C"
31073#endif
31074char png_get_io_ptr ();
31075int
31076main ()
31077{
31078return png_get_io_ptr ();
31079 ;
31080 return 0;
31081}
31082_ACEOF
31083if ac_fn_c_try_link "$LINENO"; then :
31084 ac_cv_lib_png17_png_get_io_ptr=yes
31085else
31086 ac_cv_lib_png17_png_get_io_ptr=no
31087fi
31088rm -f core conftest.err conftest.$ac_objext \
31089 conftest$ac_exeext conftest.$ac_ext
31090LIBS=$ac_check_lib_save_LIBS
31091fi
31092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png17_png_get_io_ptr" >&5
31093$as_echo "$ac_cv_lib_png17_png_get_io_ptr" >&6; }
31094if test "x$ac_cv_lib_png17_png_get_io_ptr" = xyes; then :
31095 passed=`expr $passed + 1`
31096else
31097 failed=`expr $failed + 1`
31098fi
31099
31100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng17" >&5
31101$as_echo_n "checking for png_longjmp in -lpng17... " >&6; }
31102if ${ac_cv_lib_png17_png_longjmp+:} false; then :
31103 $as_echo_n "(cached) " >&6
31104else
31105 ac_check_lib_save_LIBS=$LIBS
31106LIBS="-lpng17 $LIBS"
31107cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31108/* end confdefs.h. */
31109
31110/* Override any GCC internal prototype to avoid an error.
31111 Use char because int might match the return type of a GCC
31112 builtin and then its argument prototype would still apply. */
31113#ifdef __cplusplus
31114extern "C"
31115#endif
31116char png_longjmp ();
31117int
31118main ()
31119{
31120return png_longjmp ();
31121 ;
31122 return 0;
31123}
31124_ACEOF
31125if ac_fn_c_try_link "$LINENO"; then :
31126 ac_cv_lib_png17_png_longjmp=yes
31127else
31128 ac_cv_lib_png17_png_longjmp=no
31129fi
31130rm -f core conftest.err conftest.$ac_objext \
31131 conftest$ac_exeext conftest.$ac_ext
31132LIBS=$ac_check_lib_save_LIBS
31133fi
31134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png17_png_longjmp" >&5
31135$as_echo "$ac_cv_lib_png17_png_longjmp" >&6; }
31136if test "x$ac_cv_lib_png17_png_longjmp" = xyes; then :
31137 passed=`expr $passed + 1`
31138else
31139 failed=`expr $failed + 1`
31140fi
31141
31142 fi
31143 if test "1${var}" = '16' ; then
31144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng16" >&5
31145$as_echo_n "checking for png_get_io_ptr in -lpng16... " >&6; }
31146if ${ac_cv_lib_png16_png_get_io_ptr+:} false; then :
31147 $as_echo_n "(cached) " >&6
31148else
31149 ac_check_lib_save_LIBS=$LIBS
31150LIBS="-lpng16 $LIBS"
31151cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31152/* end confdefs.h. */
31153
31154/* Override any GCC internal prototype to avoid an error.
31155 Use char because int might match the return type of a GCC
31156 builtin and then its argument prototype would still apply. */
31157#ifdef __cplusplus
31158extern "C"
31159#endif
31160char png_get_io_ptr ();
31161int
31162main ()
31163{
31164return png_get_io_ptr ();
31165 ;
31166 return 0;
31167}
31168_ACEOF
31169if ac_fn_c_try_link "$LINENO"; then :
31170 ac_cv_lib_png16_png_get_io_ptr=yes
31171else
31172 ac_cv_lib_png16_png_get_io_ptr=no
31173fi
31174rm -f core conftest.err conftest.$ac_objext \
31175 conftest$ac_exeext conftest.$ac_ext
31176LIBS=$ac_check_lib_save_LIBS
31177fi
31178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png16_png_get_io_ptr" >&5
31179$as_echo "$ac_cv_lib_png16_png_get_io_ptr" >&6; }
31180if test "x$ac_cv_lib_png16_png_get_io_ptr" = xyes; then :
31181 passed=`expr $passed + 1`
31182else
31183 failed=`expr $failed + 1`
31184fi
31185
31186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng16" >&5
31187$as_echo_n "checking for png_longjmp in -lpng16... " >&6; }
31188if ${ac_cv_lib_png16_png_longjmp+:} false; then :
31189 $as_echo_n "(cached) " >&6
31190else
31191 ac_check_lib_save_LIBS=$LIBS
31192LIBS="-lpng16 $LIBS"
31193cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31194/* end confdefs.h. */
31195
31196/* Override any GCC internal prototype to avoid an error.
31197 Use char because int might match the return type of a GCC
31198 builtin and then its argument prototype would still apply. */
31199#ifdef __cplusplus
31200extern "C"
31201#endif
31202char png_longjmp ();
31203int
31204main ()
31205{
31206return png_longjmp ();
31207 ;
31208 return 0;
31209}
31210_ACEOF
31211if ac_fn_c_try_link "$LINENO"; then :
31212 ac_cv_lib_png16_png_longjmp=yes
31213else
31214 ac_cv_lib_png16_png_longjmp=no
31215fi
31216rm -f core conftest.err conftest.$ac_objext \
31217 conftest$ac_exeext conftest.$ac_ext
31218LIBS=$ac_check_lib_save_LIBS
31219fi
31220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png16_png_longjmp" >&5
31221$as_echo "$ac_cv_lib_png16_png_longjmp" >&6; }
31222if test "x$ac_cv_lib_png16_png_longjmp" = xyes; then :
31223 passed=`expr $passed + 1`
31224else
31225 failed=`expr $failed + 1`
31226fi
31227
31228 fi
cristy81beccd2011-10-03 18:17:24 +000031229 if test "1${var}" = '15' ; then
31230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5
31231$as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; }
31232if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then :
31233 $as_echo_n "(cached) " >&6
31234else
31235 ac_check_lib_save_LIBS=$LIBS
31236LIBS="-lpng15 $LIBS"
31237cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31238/* end confdefs.h. */
31239
31240/* Override any GCC internal prototype to avoid an error.
31241 Use char because int might match the return type of a GCC
31242 builtin and then its argument prototype would still apply. */
31243#ifdef __cplusplus
31244extern "C"
31245#endif
31246char png_get_io_ptr ();
31247int
31248main ()
31249{
31250return png_get_io_ptr ();
31251 ;
31252 return 0;
31253}
31254_ACEOF
31255if ac_fn_c_try_link "$LINENO"; then :
31256 ac_cv_lib_png15_png_get_io_ptr=yes
31257else
31258 ac_cv_lib_png15_png_get_io_ptr=no
31259fi
31260rm -f core conftest.err conftest.$ac_objext \
31261 conftest$ac_exeext conftest.$ac_ext
31262LIBS=$ac_check_lib_save_LIBS
31263fi
31264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5
31265$as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; }
31266if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then :
31267 passed=`expr $passed + 1`
31268else
31269 failed=`expr $failed + 1`
31270fi
31271
31272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5
31273$as_echo_n "checking for png_longjmp in -lpng15... " >&6; }
31274if ${ac_cv_lib_png15_png_longjmp+:} false; then :
31275 $as_echo_n "(cached) " >&6
31276else
31277 ac_check_lib_save_LIBS=$LIBS
31278LIBS="-lpng15 $LIBS"
31279cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31280/* end confdefs.h. */
31281
31282/* Override any GCC internal prototype to avoid an error.
31283 Use char because int might match the return type of a GCC
31284 builtin and then its argument prototype would still apply. */
31285#ifdef __cplusplus
31286extern "C"
31287#endif
31288char png_longjmp ();
31289int
31290main ()
31291{
31292return png_longjmp ();
31293 ;
31294 return 0;
31295}
31296_ACEOF
31297if ac_fn_c_try_link "$LINENO"; then :
31298 ac_cv_lib_png15_png_longjmp=yes
31299else
31300 ac_cv_lib_png15_png_longjmp=no
31301fi
31302rm -f core conftest.err conftest.$ac_objext \
31303 conftest$ac_exeext conftest.$ac_ext
31304LIBS=$ac_check_lib_save_LIBS
31305fi
31306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5
31307$as_echo "$ac_cv_lib_png15_png_longjmp" >&6; }
31308if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then :
31309 passed=`expr $passed + 1`
31310else
31311 failed=`expr $failed + 1`
31312fi
31313
31314 fi
31315 if test "1${var}" = '14' ; then
31316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5
31317$as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; }
31318if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then :
31319 $as_echo_n "(cached) " >&6
31320else
31321 ac_check_lib_save_LIBS=$LIBS
31322LIBS="-lpng14 $LIBS"
31323cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31324/* end confdefs.h. */
31325
31326/* Override any GCC internal prototype to avoid an error.
31327 Use char because int might match the return type of a GCC
31328 builtin and then its argument prototype would still apply. */
31329#ifdef __cplusplus
31330extern "C"
31331#endif
31332char png_get_io_ptr ();
31333int
31334main ()
31335{
31336return png_get_io_ptr ();
31337 ;
31338 return 0;
31339}
31340_ACEOF
31341if ac_fn_c_try_link "$LINENO"; then :
31342 ac_cv_lib_png14_png_get_io_ptr=yes
31343else
31344 ac_cv_lib_png14_png_get_io_ptr=no
31345fi
31346rm -f core conftest.err conftest.$ac_objext \
31347 conftest$ac_exeext conftest.$ac_ext
31348LIBS=$ac_check_lib_save_LIBS
31349fi
31350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5
31351$as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; }
31352if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then :
31353 passed=`expr $passed + 1`
31354else
31355 failed=`expr $failed + 1`
31356fi
31357
31358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5
31359$as_echo_n "checking for png_get_io_state in -lpng14... " >&6; }
31360if ${ac_cv_lib_png14_png_get_io_state+:} false; then :
31361 $as_echo_n "(cached) " >&6
31362else
31363 ac_check_lib_save_LIBS=$LIBS
31364LIBS="-lpng14 $LIBS"
31365cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31366/* end confdefs.h. */
31367
31368/* Override any GCC internal prototype to avoid an error.
31369 Use char because int might match the return type of a GCC
31370 builtin and then its argument prototype would still apply. */
31371#ifdef __cplusplus
31372extern "C"
31373#endif
31374char png_get_io_state ();
31375int
31376main ()
31377{
31378return png_get_io_state ();
31379 ;
31380 return 0;
31381}
31382_ACEOF
31383if ac_fn_c_try_link "$LINENO"; then :
31384 ac_cv_lib_png14_png_get_io_state=yes
31385else
31386 ac_cv_lib_png14_png_get_io_state=no
31387fi
31388rm -f core conftest.err conftest.$ac_objext \
31389 conftest$ac_exeext conftest.$ac_ext
31390LIBS=$ac_check_lib_save_LIBS
31391fi
31392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5
31393$as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; }
31394if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then :
31395 passed=`expr $passed + 1`
31396else
31397 failed=`expr $failed + 1`
31398fi
31399
31400 fi
31401 if test "1${var}" = '12' ; then
31402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5
31403$as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; }
31404if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then :
31405 $as_echo_n "(cached) " >&6
31406else
31407 ac_check_lib_save_LIBS=$LIBS
31408LIBS="-lpng12 $LIBS"
31409cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31410/* end confdefs.h. */
31411
31412/* Override any GCC internal prototype to avoid an error.
31413 Use char because int might match the return type of a GCC
31414 builtin and then its argument prototype would still apply. */
31415#ifdef __cplusplus
31416extern "C"
31417#endif
31418char png_get_io_ptr ();
31419int
31420main ()
31421{
31422return png_get_io_ptr ();
31423 ;
31424 return 0;
31425}
31426_ACEOF
31427if ac_fn_c_try_link "$LINENO"; then :
31428 ac_cv_lib_png12_png_get_io_ptr=yes
31429else
31430 ac_cv_lib_png12_png_get_io_ptr=no
31431fi
31432rm -f core conftest.err conftest.$ac_objext \
31433 conftest$ac_exeext conftest.$ac_ext
31434LIBS=$ac_check_lib_save_LIBS
31435fi
31436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5
31437$as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; }
31438if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then :
31439 passed=`expr $passed + 1`
31440else
31441 failed=`expr $failed + 1`
31442fi
31443
31444 fi
31445 if test "1${var}" = '1' ; then
31446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
31447$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
31448if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
31449 $as_echo_n "(cached) " >&6
31450else
31451 ac_check_lib_save_LIBS=$LIBS
31452LIBS="-lpng $LIBS"
31453cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31454/* end confdefs.h. */
31455
31456/* Override any GCC internal prototype to avoid an error.
31457 Use char because int might match the return type of a GCC
31458 builtin and then its argument prototype would still apply. */
31459#ifdef __cplusplus
31460extern "C"
31461#endif
31462char png_get_io_ptr ();
31463int
31464main ()
31465{
31466return png_get_io_ptr ();
31467 ;
31468 return 0;
31469}
31470_ACEOF
31471if ac_fn_c_try_link "$LINENO"; then :
31472 ac_cv_lib_png_png_get_io_ptr=yes
31473else
31474 ac_cv_lib_png_png_get_io_ptr=no
31475fi
31476rm -f core conftest.err conftest.$ac_objext \
31477 conftest$ac_exeext conftest.$ac_ext
31478LIBS=$ac_check_lib_save_LIBS
31479fi
31480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
31481$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
31482if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
31483 passed=`expr $passed + 1`
31484else
31485 failed=`expr $failed + 1`
31486fi
31487
31488 fi
31489 if test $passed -gt 0 -a $failed -le 0 ; then
31490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5
31491$as_echo_n "checking if ${pnglib} package is complete... " >&6; }
31492 if test $passed -gt 0 ; then
31493 if test $failed -gt 0 ; then
cristyad38abe2012-12-23 23:03:21 +000031494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31495$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031496 have_png='no (failed tests)'
31497 else
31498 PNG_LIBS="-l${pnglib}"
31499 LIBS="$PNG_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031500
cristy8b350f62009-11-15 23:12:43 +000031501$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031502
cristyad38abe2012-12-23 23:03:21 +000031503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31504$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031505 have_png='yes'
31506 fi
31507 fi
31508 fi
31509 fi
31510 fi
31511 done
31512 fi
cristy3ed852e2009-09-05 21:47:34 +000031513fi
cristy64877302011-08-23 19:10:31 +000031514
cristy73bd4a52010-10-05 11:24:23 +000031515 if test "$have_png" = 'yes'; then
31516 PNG_DELEGATE_TRUE=
31517 PNG_DELEGATE_FALSE='#'
31518else
31519 PNG_DELEGATE_TRUE='#'
31520 PNG_DELEGATE_FALSE=
31521fi
31522
cristy3ed852e2009-09-05 21:47:34 +000031523
cristy50d3f5c2011-09-10 20:09:06 +000031524
cristy3ed852e2009-09-05 21:47:34 +000031525
31526
31527#
31528# Check for RSVG delegate library.
31529#
31530
31531# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000031532if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031533 withval=$with_rsvg; with_rsvg=$withval
31534else
cristy1164d5f2012-08-15 00:58:25 +000031535 with_rsvg='no'
cristy3ed852e2009-09-05 21:47:34 +000031536fi
31537
31538
31539if test "$with_rsvg" != 'yes'; then
31540 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
31541fi
31542
31543have_rsvg='no'
31544have_cairo='no'
31545RSVG_CFLAGS=""
31546RSVG_LIBS=""
31547RSVG_PKG=""
31548if test "x$with_rsvg" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000031549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31550$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031551
31552pkg_failed=no
31553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
31554$as_echo_n "checking for RSVG... " >&6; }
31555
31556if test -n "$RSVG_CFLAGS"; then
31557 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
31558 elif test -n "$PKG_CONFIG"; then
31559 if test -n "$PKG_CONFIG" && \
31560 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31561 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31562 ac_status=$?
31563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31564 test $ac_status = 0; }; then
31565 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31566else
31567 pkg_failed=yes
31568fi
31569 else
31570 pkg_failed=untried
31571fi
31572if test -n "$RSVG_LIBS"; then
31573 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
31574 elif test -n "$PKG_CONFIG"; then
31575 if test -n "$PKG_CONFIG" && \
31576 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31577 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31578 ac_status=$?
31579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31580 test $ac_status = 0; }; then
31581 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31582else
31583 pkg_failed=yes
31584fi
31585 else
31586 pkg_failed=untried
31587fi
31588
31589
31590
31591if test $pkg_failed = yes; then
31592
31593if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31594 _pkg_short_errors_supported=yes
31595else
31596 _pkg_short_errors_supported=no
31597fi
31598 if test $_pkg_short_errors_supported = yes; then
31599 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31600 else
31601 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31602 fi
31603 # Put the nasty error message in config.log where it belongs
31604 echo "$RSVG_PKG_ERRORS" >&5
31605
31606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31607$as_echo "no" >&6; }
31608 have_rsvg=no
31609elif test $pkg_failed = untried; then
31610 have_rsvg=no
31611else
31612 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
31613 RSVG_LIBS=$pkg_cv_RSVG_LIBS
31614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31615$as_echo "yes" >&6; }
31616 have_rsvg=yes
31617fi
cristyad38abe2012-12-23 23:03:21 +000031618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31619$as_echo "" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031620
31621pkg_failed=no
31622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
31623$as_echo_n "checking for CAIRO_SVG... " >&6; }
31624
31625if test -n "$CAIRO_SVG_CFLAGS"; then
31626 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
31627 elif test -n "$PKG_CONFIG"; then
31628 if test -n "$PKG_CONFIG" && \
31629 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31630 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31631 ac_status=$?
31632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31633 test $ac_status = 0; }; then
31634 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
31635else
31636 pkg_failed=yes
31637fi
31638 else
31639 pkg_failed=untried
31640fi
31641if test -n "$CAIRO_SVG_LIBS"; then
31642 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
31643 elif test -n "$PKG_CONFIG"; then
31644 if test -n "$PKG_CONFIG" && \
31645 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31646 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31647 ac_status=$?
31648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31649 test $ac_status = 0; }; then
31650 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
31651else
31652 pkg_failed=yes
31653fi
31654 else
31655 pkg_failed=untried
31656fi
31657
31658
31659
31660if test $pkg_failed = yes; then
31661
31662if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31663 _pkg_short_errors_supported=yes
31664else
31665 _pkg_short_errors_supported=no
31666fi
31667 if test $_pkg_short_errors_supported = yes; then
31668 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
31669 else
31670 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
31671 fi
31672 # Put the nasty error message in config.log where it belongs
31673 echo "$CAIRO_SVG_PKG_ERRORS" >&5
31674
31675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31676$as_echo "no" >&6; }
31677 have_cairo=no
31678elif test $pkg_failed = untried; then
31679 have_cairo=no
31680else
31681 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
31682 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
31683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31684$as_echo "yes" >&6; }
31685 have_cairo=yes
31686fi
cristyad38abe2012-12-23 23:03:21 +000031687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31688$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031689fi
31690
31691if test "$have_rsvg" = 'yes'; then
31692
cristy8b350f62009-11-15 23:12:43 +000031693$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031694
cristyc6722092012-10-14 00:19:31 +000031695 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000031696 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
31697 fi
31698fi
31699
31700if test "$have_cairo" = 'yes'; then
31701
cristy8b350f62009-11-15 23:12:43 +000031702$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031703
cristyc6722092012-10-14 00:19:31 +000031704 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000031705 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
31706 fi
31707fi
31708
cristy73bd4a52010-10-05 11:24:23 +000031709 if test "$have_rsvg" = 'yes'; then
31710 RSVG_DELEGATE_TRUE=
31711 RSVG_DELEGATE_FALSE='#'
31712else
31713 RSVG_DELEGATE_TRUE='#'
31714 RSVG_DELEGATE_FALSE=
31715fi
31716
31717 if test "$have_cairo" = 'yes'; then
31718 CAIRO_DELEGATE_TRUE=
31719 CAIRO_DELEGATE_FALSE='#'
31720else
31721 CAIRO_DELEGATE_TRUE='#'
31722 CAIRO_DELEGATE_FALSE=
31723fi
31724
cristy3ed852e2009-09-05 21:47:34 +000031725
31726
31727
31728
31729#
31730# Check for TIFF delegate library.
31731#
31732
31733# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000031734if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031735 withval=$with_tiff; with_tiff=$withval
31736else
31737 with_tiff='yes'
31738fi
31739
31740
31741if test "$with_tiff" != 'yes'; then
31742 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
31743fi
31744
31745have_tiff='no'
31746TIFF_LIBS=''
31747if test "$with_tiff" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000031748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31749$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031751$as_echo_n "checking for TIFF... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000031752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31753$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031754 failed=0
31755 passed=0
cristy8b350f62009-11-15 23:12:43 +000031756 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031757if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031758 passed=`expr $passed + 1`
31759else
31760 failed=`expr $failed + 1`
31761fi
31762
31763
cristy8b350f62009-11-15 23:12:43 +000031764 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031765if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031766 passed=`expr $passed + 1`
31767else
31768 failed=`expr $failed + 1`
31769fi
31770
31771
cristy8b350f62009-11-15 23:12:43 +000031772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031773$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031774if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031775 $as_echo_n "(cached) " >&6
31776else
31777 ac_check_lib_save_LIBS=$LIBS
31778LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031779cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031780/* end confdefs.h. */
31781
31782/* Override any GCC internal prototype to avoid an error.
31783 Use char because int might match the return type of a GCC
31784 builtin and then its argument prototype would still apply. */
31785#ifdef __cplusplus
31786extern "C"
31787#endif
31788char TIFFOpen ();
31789int
31790main ()
31791{
31792return TIFFOpen ();
31793 ;
31794 return 0;
31795}
31796_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031797if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031798 ac_cv_lib_tiff_TIFFOpen=yes
31799else
cristy8b350f62009-11-15 23:12:43 +000031800 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031801fi
cristy8b350f62009-11-15 23:12:43 +000031802rm -f core conftest.err conftest.$ac_objext \
31803 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031804LIBS=$ac_check_lib_save_LIBS
31805fi
cristy8b350f62009-11-15 23:12:43 +000031806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031807$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031808if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031809 passed=`expr $passed + 1`
31810else
31811 failed=`expr $failed + 1`
31812fi
31813
cristy8b350f62009-11-15 23:12:43 +000031814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031815$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031816if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031817 $as_echo_n "(cached) " >&6
31818else
31819 ac_check_lib_save_LIBS=$LIBS
31820LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031821cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031822/* end confdefs.h. */
31823
31824/* Override any GCC internal prototype to avoid an error.
31825 Use char because int might match the return type of a GCC
31826 builtin and then its argument prototype would still apply. */
31827#ifdef __cplusplus
31828extern "C"
31829#endif
31830char TIFFClientOpen ();
31831int
31832main ()
31833{
31834return TIFFClientOpen ();
31835 ;
31836 return 0;
31837}
31838_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031839if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031840 ac_cv_lib_tiff_TIFFClientOpen=yes
31841else
cristy8b350f62009-11-15 23:12:43 +000031842 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031843fi
cristy8b350f62009-11-15 23:12:43 +000031844rm -f core conftest.err conftest.$ac_objext \
31845 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031846LIBS=$ac_check_lib_save_LIBS
31847fi
cristy8b350f62009-11-15 23:12:43 +000031848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031849$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031850if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031851 passed=`expr $passed + 1`
31852else
31853 failed=`expr $failed + 1`
31854fi
31855
cristy8b350f62009-11-15 23:12:43 +000031856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031857$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031858if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031859 $as_echo_n "(cached) " >&6
31860else
31861 ac_check_lib_save_LIBS=$LIBS
31862LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031863cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031864/* end confdefs.h. */
31865
31866/* Override any GCC internal prototype to avoid an error.
31867 Use char because int might match the return type of a GCC
31868 builtin and then its argument prototype would still apply. */
31869#ifdef __cplusplus
31870extern "C"
31871#endif
31872char TIFFIsByteSwapped ();
31873int
31874main ()
31875{
31876return TIFFIsByteSwapped ();
31877 ;
31878 return 0;
31879}
31880_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031881if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031882 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
31883else
cristy8b350f62009-11-15 23:12:43 +000031884 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000031885fi
cristy8b350f62009-11-15 23:12:43 +000031886rm -f core conftest.err conftest.$ac_objext \
31887 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031888LIBS=$ac_check_lib_save_LIBS
31889fi
cristy8b350f62009-11-15 23:12:43 +000031890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000031891$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000031892if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031893 passed=`expr $passed + 1`
31894else
31895 failed=`expr $failed + 1`
31896fi
31897
cristy8b350f62009-11-15 23:12:43 +000031898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031899$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031900if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031901 $as_echo_n "(cached) " >&6
31902else
31903 ac_check_lib_save_LIBS=$LIBS
31904LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031905cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031906/* end confdefs.h. */
31907
31908/* Override any GCC internal prototype to avoid an error.
31909 Use char because int might match the return type of a GCC
31910 builtin and then its argument prototype would still apply. */
31911#ifdef __cplusplus
31912extern "C"
31913#endif
31914char TIFFReadRGBATile ();
31915int
31916main ()
31917{
31918return TIFFReadRGBATile ();
31919 ;
31920 return 0;
31921}
31922_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031923if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031924 ac_cv_lib_tiff_TIFFReadRGBATile=yes
31925else
cristy8b350f62009-11-15 23:12:43 +000031926 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000031927fi
cristy8b350f62009-11-15 23:12:43 +000031928rm -f core conftest.err conftest.$ac_objext \
31929 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031930LIBS=$ac_check_lib_save_LIBS
31931fi
cristy8b350f62009-11-15 23:12:43 +000031932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000031933$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000031934if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031935 passed=`expr $passed + 1`
31936else
31937 failed=`expr $failed + 1`
31938fi
31939
cristy8b350f62009-11-15 23:12:43 +000031940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031941$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031942if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031943 $as_echo_n "(cached) " >&6
31944else
31945 ac_check_lib_save_LIBS=$LIBS
31946LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031947cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031948/* end confdefs.h. */
31949
31950/* Override any GCC internal prototype to avoid an error.
31951 Use char because int might match the return type of a GCC
31952 builtin and then its argument prototype would still apply. */
31953#ifdef __cplusplus
31954extern "C"
31955#endif
31956char TIFFReadRGBAStrip ();
31957int
31958main ()
31959{
31960return TIFFReadRGBAStrip ();
31961 ;
31962 return 0;
31963}
31964_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031965if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031966 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
31967else
cristy8b350f62009-11-15 23:12:43 +000031968 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000031969fi
cristy8b350f62009-11-15 23:12:43 +000031970rm -f core conftest.err conftest.$ac_objext \
31971 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031972LIBS=$ac_check_lib_save_LIBS
31973fi
cristy8b350f62009-11-15 23:12:43 +000031974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000031975$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000031976if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031977 passed=`expr $passed + 1`
31978else
31979 failed=`expr $failed + 1`
31980fi
31981
cristy8b350f62009-11-15 23:12:43 +000031982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000031983$as_echo_n "checking if TIFF package is complete... " >&6; }
31984 if test $passed -gt 0; then
31985 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000031986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31987$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031988 have_tiff='no (failed tests)'
31989 else
31990 TIFF_LIBS='-ltiff'
31991 LIBS="$TIFF_LIBS $LIBS"
31992
cristy8b350f62009-11-15 23:12:43 +000031993$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031994
cristyad38abe2012-12-23 23:03:21 +000031995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31996$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031997 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000031998 for ac_header in tiffconf.h
31999do :
32000 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000032001if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032002 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032003#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000032004_ACEOF
32005
32006fi
32007
32008done
32009
cristy8b350f62009-11-15 23:12:43 +000032010 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3f590e52011-11-14 14:29:44 +000032011 TIFFIsBigEndian TIFFReadEXIFDirectory TIFFSetErrorHandlerExt \
32012 TIFFSetTagExtender TIFFSetWarningHandlerExt \
32013 TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000032014do :
32015 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
32016ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000032017if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000032018 cat >>confdefs.h <<_ACEOF
32019#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
32020_ACEOF
32021
32022fi
32023done
32024
32025 fi
32026 else
cristyad38abe2012-12-23 23:03:21 +000032027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32028$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032029 fi
32030fi
cristy73bd4a52010-10-05 11:24:23 +000032031 if test "$have_tiff" = 'yes'; then
32032 TIFF_DELEGATE_TRUE=
32033 TIFF_DELEGATE_FALSE='#'
32034else
32035 TIFF_DELEGATE_TRUE='#'
32036 TIFF_DELEGATE_FALSE=
32037fi
32038
cristy3ed852e2009-09-05 21:47:34 +000032039
32040
32041
32042#
cristyb1860752011-03-14 00:27:46 +000032043# Check for WEBP delegate library.
32044#
32045
32046# Check whether --with-webp was given.
32047if test "${with_webp+set}" = set; then :
32048 withval=$with_webp; with_webp=$withval
32049else
32050 with_webp='yes'
32051fi
32052
32053
32054if test "$with_webp" != 'yes'; then
32055 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
32056fi
32057
32058have_webp='no'
32059WEBP_LIBS=''
32060if test "$with_webp" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000032061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32062$as_echo "-------------------------------------------------------------" >&6; }
cristyb1860752011-03-14 00:27:46 +000032063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
32064$as_echo_n "checking for WEBP... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32066$as_echo "" >&6; }
cristyb1860752011-03-14 00:27:46 +000032067 failed=0
32068 passed=0
32069 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
32070if test "x$ac_cv_header_webp_decode_h" = xyes; then :
32071 passed=`expr $passed + 1`
32072else
32073 failed=`expr $failed + 1`
32074fi
32075
32076
cristy6d670312013-03-22 23:23:01 +000032077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPPictureInitInternal in -lwebp" >&5
32078$as_echo_n "checking for WebPPictureInitInternal in -lwebp... " >&6; }
32079if ${ac_cv_lib_webp_WebPPictureInitInternal+:} false; then :
cristyb1860752011-03-14 00:27:46 +000032080 $as_echo_n "(cached) " >&6
32081else
32082 ac_check_lib_save_LIBS=$LIBS
32083LIBS="-lwebp $LIBS"
32084cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32085/* end confdefs.h. */
32086
32087/* Override any GCC internal prototype to avoid an error.
32088 Use char because int might match the return type of a GCC
32089 builtin and then its argument prototype would still apply. */
32090#ifdef __cplusplus
32091extern "C"
32092#endif
cristy6d670312013-03-22 23:23:01 +000032093char WebPPictureInitInternal ();
cristyb1860752011-03-14 00:27:46 +000032094int
32095main ()
32096{
cristy6d670312013-03-22 23:23:01 +000032097return WebPPictureInitInternal ();
cristyb1860752011-03-14 00:27:46 +000032098 ;
32099 return 0;
32100}
32101_ACEOF
32102if ac_fn_c_try_link "$LINENO"; then :
cristy6d670312013-03-22 23:23:01 +000032103 ac_cv_lib_webp_WebPPictureInitInternal=yes
cristyb1860752011-03-14 00:27:46 +000032104else
cristy6d670312013-03-22 23:23:01 +000032105 ac_cv_lib_webp_WebPPictureInitInternal=no
cristyb1860752011-03-14 00:27:46 +000032106fi
32107rm -f core conftest.err conftest.$ac_objext \
32108 conftest$ac_exeext conftest.$ac_ext
32109LIBS=$ac_check_lib_save_LIBS
32110fi
cristy6d670312013-03-22 23:23:01 +000032111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPPictureInitInternal" >&5
32112$as_echo "$ac_cv_lib_webp_WebPPictureInitInternal" >&6; }
32113if test "x$ac_cv_lib_webp_WebPPictureInitInternal" = xyes; then :
cristyb1860752011-03-14 00:27:46 +000032114 passed=`expr $passed + 1`
32115else
32116 failed=`expr $failed + 1`
32117fi
32118
32119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
32120$as_echo_n "checking if WEBP package is complete... " >&6; }
32121 if test $passed -gt 0; then
32122 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000032123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32124$as_echo "no -- some components failed test" >&6; }
cristyb1860752011-03-14 00:27:46 +000032125 have_webp='no (failed tests)'
32126 else
32127 WEBP_LIBS='-lwebp'
32128 LIBS="$WEBP_LIBS $LIBS"
32129
32130$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
32131
cristyad38abe2012-12-23 23:03:21 +000032132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32133$as_echo "yes" >&6; }
cristyb1860752011-03-14 00:27:46 +000032134 have_webp='yes'
32135 fi
32136 else
cristyad38abe2012-12-23 23:03:21 +000032137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32138$as_echo "no" >&6; }
cristyb1860752011-03-14 00:27:46 +000032139 fi
32140fi
32141 if test "$have_webp" = 'yes'; then
32142 WEBP_DELEGATE_TRUE=
32143 WEBP_DELEGATE_FALSE='#'
32144else
32145 WEBP_DELEGATE_TRUE='#'
32146 WEBP_DELEGATE_FALSE=
32147fi
32148
32149
32150
32151
32152#
cristy3ed852e2009-09-05 21:47:34 +000032153# Set Windows font directory.
32154#
32155
32156# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000032157if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032158 withval=$with_windows_font_dir; with_windows_font_dir=$withval
32159else
cristy5a3dc992014-12-05 19:50:04 +000032160 with_windows_font_dir='default'
cristy3ed852e2009-09-05 21:47:34 +000032161fi
32162
cristy5a3dc992014-12-05 19:50:04 +000032163
32164if test "$with_windows_font_dir" != 'default'; then
cristy3ed852e2009-09-05 21:47:34 +000032165 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
32166fi
32167
32168
32169#
32170# Check for WMF delegate library.
32171#
32172
32173# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000032174if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032175 withval=$with_wmf; with_wmf=$withval
32176else
cristyfc3d0222012-02-07 15:05:57 +000032177 with_wmf='no'
cristy3ed852e2009-09-05 21:47:34 +000032178fi
32179
32180
32181if test "$with_wmf" != 'yes'; then
32182 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
32183fi
32184
32185have_wmf='no'
32186WMF_LIBS=''
cristy03f7cf92011-12-15 01:40:41 +000032187WMF_LIBS_DEPS=''
32188OLIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032189if test "$with_wmf" != 'no'; then
cristy03f7cf92011-12-15 01:40:41 +000032190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32191$as_echo "-------------------------------------------------------------" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000032193$as_echo_n "checking for WMF... " >&6; }
cristy03f7cf92011-12-15 01:40:41 +000032194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32195$as_echo "" >&6; }
32196 have_libwmf='no'
32197 have_libwmflite='no'
32198 have_libwmf_ipa_h='no'
32199
32200 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
32201"
32202if test "x$ac_cv_header_libwmf_ipa_h" = xyes; then :
32203 have_libwmf_ipa_h='yes'
cristy3ed852e2009-09-05 21:47:34 +000032204fi
32205
32206
cristy03f7cf92011-12-15 01:40:41 +000032207 if test "$have_libwmf_ipa_h" = 'yes'; then
32208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
32209$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
32210if ${ac_cv_lib_wmflite_wmf_lite_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032211 $as_echo_n "(cached) " >&6
32212else
32213 ac_check_lib_save_LIBS=$LIBS
cristy03f7cf92011-12-15 01:40:41 +000032214LIBS="-lwmflite $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032215cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032216/* end confdefs.h. */
32217
32218/* Override any GCC internal prototype to avoid an error.
32219 Use char because int might match the return type of a GCC
32220 builtin and then its argument prototype would still apply. */
32221#ifdef __cplusplus
32222extern "C"
32223#endif
cristy03f7cf92011-12-15 01:40:41 +000032224char wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000032225int
32226main ()
32227{
cristy03f7cf92011-12-15 01:40:41 +000032228return wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000032229 ;
32230 return 0;
32231}
32232_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032233if ac_fn_c_try_link "$LINENO"; then :
cristy03f7cf92011-12-15 01:40:41 +000032234 ac_cv_lib_wmflite_wmf_lite_create=yes
cristy3ed852e2009-09-05 21:47:34 +000032235else
cristy03f7cf92011-12-15 01:40:41 +000032236 ac_cv_lib_wmflite_wmf_lite_create=no
cristy3ed852e2009-09-05 21:47:34 +000032237fi
cristy8b350f62009-11-15 23:12:43 +000032238rm -f core conftest.err conftest.$ac_objext \
32239 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032240LIBS=$ac_check_lib_save_LIBS
32241fi
cristy03f7cf92011-12-15 01:40:41 +000032242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
32243$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
32244if test "x$ac_cv_lib_wmflite_wmf_lite_create" = xyes; then :
32245 have_libwmflite='yes'
cristy9243a2d2011-08-22 17:32:32 +000032246fi
32247
cristy03f7cf92011-12-15 01:40:41 +000032248 if test "$have_libwmflite" = 'yes'; then
32249
32250$as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h
32251
32252 WMF_LIBS='-lwmflite'
glennrp33e524b2011-08-24 17:41:57 +000032253 LIBS="$WMF_LIBS $LIBS"
cristy03f7cf92011-12-15 01:40:41 +000032254 have_wmf='yes'
32255 else
32256 WMF_LIBS_DEPS=''
32257 WMF_CONFIG_LIBS=`libwmf-config --libs`
32258 for lib in xml2 expat freetype jpeg png z; do
32259 testlib="-l${lib}"
32260 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
32261 done
32262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5
32263$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
32264if ${ac_cv_lib_wmf_wmf_api_create+:} false; then :
32265 $as_echo_n "(cached) " >&6
32266else
32267 ac_check_lib_save_LIBS=$LIBS
32268LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
32269cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32270/* end confdefs.h. */
32271
32272/* Override any GCC internal prototype to avoid an error.
32273 Use char because int might match the return type of a GCC
32274 builtin and then its argument prototype would still apply. */
32275#ifdef __cplusplus
32276extern "C"
32277#endif
32278char wmf_api_create ();
32279int
32280main ()
32281{
32282return wmf_api_create ();
32283 ;
32284 return 0;
32285}
32286_ACEOF
32287if ac_fn_c_try_link "$LINENO"; then :
32288 ac_cv_lib_wmf_wmf_api_create=yes
32289else
32290 ac_cv_lib_wmf_wmf_api_create=no
32291fi
32292rm -f core conftest.err conftest.$ac_objext \
32293 conftest$ac_exeext conftest.$ac_ext
32294LIBS=$ac_check_lib_save_LIBS
32295fi
32296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5
32297$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
32298if test "x$ac_cv_lib_wmf_wmf_api_create" = xyes; then :
32299 have_libwmf='yes'
32300fi
32301
32302 if test "$have_libwmf" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032303
cristy8b350f62009-11-15 23:12:43 +000032304$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032305
cristy03f7cf92011-12-15 01:40:41 +000032306 WMF_LIBS='-lwmf'
32307 LIBS="$WMF_LIBS $LIBS"
32308 have_wmf='yes'
32309 else
32310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32311$as_echo "no -- some components failed test" >&6; }
32312 have_wmf='no (failed tests)'
32313 have_wmflite='no (failed tests)'
32314 LIBS="$OLIBS"
32315 WMF_LIBS=''
32316 fi
glennrp33e524b2011-08-24 17:41:57 +000032317 fi
cristy03f7cf92011-12-15 01:40:41 +000032318 fi
32319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
32320$as_echo_n "checking if WMF package is complete... " >&6; }
32321 if test "$have_wmf" = 'yes'; then
32322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32323$as_echo "yes" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032324 else
cristy03f7cf92011-12-15 01:40:41 +000032325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32326$as_echo "no" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032327 fi
cristy3ed852e2009-09-05 21:47:34 +000032328fi
cristy73bd4a52010-10-05 11:24:23 +000032329 if test "$have_wmf" = 'yes'; then
32330 WMF_DELEGATE_TRUE=
32331 WMF_DELEGATE_FALSE='#'
32332else
32333 WMF_DELEGATE_TRUE='#'
32334 WMF_DELEGATE_FALSE=
32335fi
32336
cristy3ed852e2009-09-05 21:47:34 +000032337
32338
32339
cristy81beccd2011-10-03 18:17:24 +000032340
32341
cristy3ed852e2009-09-05 21:47:34 +000032342#
32343# Check for XML delegate library.
32344#
32345
32346# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000032347if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032348 withval=$with_xml; with_xml=$withval
32349else
cristyfc3d0222012-02-07 15:05:57 +000032350 with_xml='yes'
cristy3ed852e2009-09-05 21:47:34 +000032351fi
32352
32353
cristy81beccd2011-10-03 18:17:24 +000032354if test "$with_xml" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000032355 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
32356fi
32357
cristy81beccd2011-10-03 18:17:24 +000032358have_xml='no'
32359XML_LIBS=''
32360if test "$with_xml" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000032361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32362$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
32364$as_echo_n "checking for XML... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32366$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032367 PERSIST_LDFLAGS=$LDFLAGS
32368 PERSIST_CPPFLAGS=$CPPFLAGS
32369 xml2_config=''
32370 # Extract the first word of "xml2-config", so it can be a program name with args.
32371set dummy xml2-config; ac_word=$2
32372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32373$as_echo_n "checking for $ac_word... " >&6; }
32374if ${ac_cv_path_xml2_config+:} false; then :
32375 $as_echo_n "(cached) " >&6
32376else
32377 case $xml2_config in
32378 [\\/]* | ?:[\\/]*)
32379 ac_cv_path_xml2_config="$xml2_config" # Let the user override the test with a path.
32380 ;;
32381 *)
32382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32383for as_dir in $PATH
32384do
32385 IFS=$as_save_IFS
32386 test -z "$as_dir" && as_dir=.
32387 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy81beccd2011-10-03 18:17:24 +000032389 ac_cv_path_xml2_config="$as_dir/$ac_word$ac_exec_ext"
32390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32391 break 2
32392 fi
32393done
32394 done
32395IFS=$as_save_IFS
32396
32397 ;;
32398esac
32399fi
32400xml2_config=$ac_cv_path_xml2_config
32401if test -n "$xml2_config"; then
32402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
32403$as_echo "$xml2_config" >&6; }
32404else
32405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32406$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032407fi
32408
cristy81beccd2011-10-03 18:17:24 +000032409 if test -n "$xml2_config"; then
32410 # Debian installs libxml headers under /usr/include/libxml2/libxml with
32411 # the shared library installed under /usr/lib, whereas the package
32412 # installs itself under $prefix/libxml and $prefix/lib.
cristy4a069772014-10-05 19:26:36 +000032413 xml2_prefix=`${xml2_config} --prefix`
cristy81beccd2011-10-03 18:17:24 +000032414 if test -d "${xml2_prefix}/include/libxml2"; then
32415 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
32416 fi
32417 if test "${xml2_prefix}" != '/usr'; then
32418 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
32419 fi
32420 fi
32421 failed=0
32422 passed=0
32423 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
32424if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
32425 passed=`expr $passed + 1`
32426else
32427 failed=`expr $failed + 1`
32428fi
32429
32430
32431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSAXVersion in -lxml2" >&5
32432$as_echo_n "checking for xmlSAXVersion in -lxml2... " >&6; }
32433if ${ac_cv_lib_xml2_xmlSAXVersion+:} false; then :
32434 $as_echo_n "(cached) " >&6
32435else
32436 ac_check_lib_save_LIBS=$LIBS
32437LIBS="-lxml2 $LIBS"
32438cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32439/* end confdefs.h. */
32440
32441/* Override any GCC internal prototype to avoid an error.
32442 Use char because int might match the return type of a GCC
32443 builtin and then its argument prototype would still apply. */
32444#ifdef __cplusplus
32445extern "C"
32446#endif
32447char xmlSAXVersion ();
32448int
32449main ()
32450{
32451return xmlSAXVersion ();
32452 ;
32453 return 0;
32454}
32455_ACEOF
32456if ac_fn_c_try_link "$LINENO"; then :
32457 ac_cv_lib_xml2_xmlSAXVersion=yes
32458else
32459 ac_cv_lib_xml2_xmlSAXVersion=no
32460fi
32461rm -f core conftest.err conftest.$ac_objext \
32462 conftest$ac_exeext conftest.$ac_ext
32463LIBS=$ac_check_lib_save_LIBS
32464fi
32465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSAXVersion" >&5
32466$as_echo "$ac_cv_lib_xml2_xmlSAXVersion" >&6; }
32467if test "x$ac_cv_lib_xml2_xmlSAXVersion" = xyes; then :
32468 passed=`expr $passed + 1`
32469else
32470 failed=`expr $failed + 1`
32471fi
32472
32473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseChunk in -lxml2" >&5
32474$as_echo_n "checking for xmlParseChunk in -lxml2... " >&6; }
32475if ${ac_cv_lib_xml2_xmlParseChunk+:} false; then :
32476 $as_echo_n "(cached) " >&6
32477else
32478 ac_check_lib_save_LIBS=$LIBS
32479LIBS="-lxml2 $LIBS"
32480cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32481/* end confdefs.h. */
32482
32483/* Override any GCC internal prototype to avoid an error.
32484 Use char because int might match the return type of a GCC
32485 builtin and then its argument prototype would still apply. */
32486#ifdef __cplusplus
32487extern "C"
32488#endif
32489char xmlParseChunk ();
32490int
32491main ()
32492{
32493return xmlParseChunk ();
32494 ;
32495 return 0;
32496}
32497_ACEOF
32498if ac_fn_c_try_link "$LINENO"; then :
32499 ac_cv_lib_xml2_xmlParseChunk=yes
32500else
32501 ac_cv_lib_xml2_xmlParseChunk=no
32502fi
32503rm -f core conftest.err conftest.$ac_objext \
32504 conftest$ac_exeext conftest.$ac_ext
32505LIBS=$ac_check_lib_save_LIBS
32506fi
32507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseChunk" >&5
32508$as_echo "$ac_cv_lib_xml2_xmlParseChunk" >&6; }
32509if test "x$ac_cv_lib_xml2_xmlParseChunk" = xyes; then :
32510 passed=`expr $passed + 1`
32511else
32512 failed=`expr $failed + 1`
32513fi
32514
32515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlCreatePushParserCtxt in -lxml2" >&5
32516$as_echo_n "checking for xmlCreatePushParserCtxt in -lxml2... " >&6; }
32517if ${ac_cv_lib_xml2_xmlCreatePushParserCtxt+:} false; then :
32518 $as_echo_n "(cached) " >&6
32519else
32520 ac_check_lib_save_LIBS=$LIBS
32521LIBS="-lxml2 $LIBS"
32522cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32523/* end confdefs.h. */
32524
32525/* Override any GCC internal prototype to avoid an error.
32526 Use char because int might match the return type of a GCC
32527 builtin and then its argument prototype would still apply. */
32528#ifdef __cplusplus
32529extern "C"
32530#endif
32531char xmlCreatePushParserCtxt ();
32532int
32533main ()
32534{
32535return xmlCreatePushParserCtxt ();
32536 ;
32537 return 0;
32538}
32539_ACEOF
32540if ac_fn_c_try_link "$LINENO"; then :
32541 ac_cv_lib_xml2_xmlCreatePushParserCtxt=yes
32542else
32543 ac_cv_lib_xml2_xmlCreatePushParserCtxt=no
32544fi
32545rm -f core conftest.err conftest.$ac_objext \
32546 conftest$ac_exeext conftest.$ac_ext
32547LIBS=$ac_check_lib_save_LIBS
32548fi
32549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&5
32550$as_echo "$ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&6; }
32551if test "x$ac_cv_lib_xml2_xmlCreatePushParserCtxt" = xyes; then :
32552 passed=`expr $passed + 1`
32553else
32554 failed=`expr $failed + 1`
32555fi
32556
32557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
32558$as_echo_n "checking if XML package is complete... " >&6; }
32559 if test $passed -gt 0; then
32560 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000032561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32562$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032563 have_xml='no (failed tests)'
32564 LDFLAGS="$PERSIST_LDFLAGS"
32565 CPPFLAGS="$PERSIST_CPPFLAGS"
32566 else
32567 XML_LIBS='-lxml2'
32568 LIBS="$XML_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032569
cristy8b350f62009-11-15 23:12:43 +000032570$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032571
cristyad38abe2012-12-23 23:03:21 +000032572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32573$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032574 have_xml='yes'
32575 fi
32576 else
cristyad38abe2012-12-23 23:03:21 +000032577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32578$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032579 fi
32580fi
cristy73bd4a52010-10-05 11:24:23 +000032581 if test "$have_xml" = 'yes'; then
32582 XML_DELEGATE_TRUE=
32583 XML_DELEGATE_FALSE='#'
32584else
32585 XML_DELEGATE_TRUE='#'
32586 XML_DELEGATE_FALSE=
32587fi
32588
cristy3ed852e2009-09-05 21:47:34 +000032589
32590
32591
32592# Substitute compiler name to build/link PerlMagick
32593#
32594
32595
32596#
32597# Configure install Paths
32598#
cristy7def36a2011-10-28 19:04:41 +000032599
cristy2a11bef2011-10-28 18:33:11 +000032600# Path to ImageMagick header files
cristybdabdd62013-03-04 17:43:36 +000032601INCLUDE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristye52f12f2012-12-31 15:32:36 +000032602INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}"
32603DEFINE_INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}/"
cristy2a11bef2011-10-28 18:33:11 +000032604case "${build_os}" in
32605 mingw* )
32606 DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1`
32607 ;;
32608esac
32609
32610cat >>confdefs.h <<_ACEOF
32611#define INCLUDE_PATH "$DEFINE_INCLUDE_PATH"
32612_ACEOF
32613
32614
cristy3ed852e2009-09-05 21:47:34 +000032615
cristye52f12f2012-12-31 15:32:36 +000032616# Path to ImageMagick header files (arch part)
32617INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}"
32618DEFINE_INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/"
32619case "${build_os}" in
32620 mingw* )
32621 DEFINE_INCLUDEARCH_PATH=`$WinPathScript "$DEFINE_INCLUDEARCH_PATH" 1`
32622 ;;
32623esac
32624
32625cat >>confdefs.h <<_ACEOF
32626#define INCLUDEARCH_PATH "$DEFINE_INCLUDE_PATH"
32627_ACEOF
32628
32629
32630
cristy3ed852e2009-09-05 21:47:34 +000032631# Subdirectory under lib to place ImageMagick lib files
32632LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
32633
32634cat >>confdefs.h <<_ACEOF
32635#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
32636_ACEOF
32637
32638
32639# Path to ImageMagick bin directory
32640EXECUTABLE_PATH="${BIN_DIR}"
32641DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
32642case "${build_os}" in
32643 mingw* )
32644 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
32645 ;;
32646esac
32647
32648cat >>confdefs.h <<_ACEOF
32649#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
32650_ACEOF
32651
32652
32653
32654# Path to ImageMagick lib
32655LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
32656DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
32657case "${build_os}" in
32658 mingw* )
32659 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
32660 ;;
32661esac
32662
32663cat >>confdefs.h <<_ACEOF
32664#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
32665_ACEOF
32666
32667
32668
cristy3ed852e2009-09-05 21:47:34 +000032669#
cristy8d0ff762013-03-10 20:33:28 +000032670# path to local binaries
32671if test "x$LIB_BIN_BASEDIRNAME" = "x"; then
32672 LIB_BIN_BASEDIRNAME="bin"
32673fi
32674
32675cat >>confdefs.h <<_ACEOF
32676#define LIB_BIN_BASEDIRNAME "$LIB_BIN_BASEDIRNAME"
32677_ACEOF
32678
32679
32680
32681if test "x$LIB_BIN_DIR" = "x"; then
32682 LIB_BIN_DIR=${LIB_BIN_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32683fi
32684
32685
32686LIB_BIN_DIR_RELATIVE_PATH=$LIB_BIN_DIR
32687
32688LIB_BIN_DIR_PATH="${LIBRARY_PATH}/${LIB_BIN_DIR_RELATIVE_PATH}"
32689
32690
32691#
cristy01ff9f32012-12-01 18:15:29 +000032692# path to modules lib
32693if test "x$MODULES_BASEDIRNAME" = "x"; then
32694 MODULES_BASEDIRNAME="modules"
32695fi
cristy3ed852e2009-09-05 21:47:34 +000032696
32697cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032698#define MODULES_BASEDIRNAME "$MODULES_BASEDIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032699_ACEOF
32700
cristy01ff9f32012-12-01 18:15:29 +000032701
32702
32703if test "x$MODULES_DIRNAME" = "x"; then
cristy4bdbd342012-12-03 18:41:18 +000032704 MODULES_DIRNAME=${MODULES_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32705else
cristy3ed852e2009-09-05 21:47:34 +000032706
32707cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032708#define MODULES_DIRNAME "$MODULES_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032709_ACEOF
32710
cristycf4a3c22012-12-02 21:47:25 +000032711fi
cristy01ff9f32012-12-01 18:15:29 +000032712
32713
cristy371d4812012-12-01 19:48:10 +000032714MODULES_RELATIVE_PATH="${MODULES_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032715
32716MODULES_PATH="${LIBRARY_PATH}/${MODULES_RELATIVE_PATH}"
32717
32718
32719#
32720# path to coders lib
32721if test "x$CODER_DIRNAME" = "x"; then
32722 CODER_DIRNAME="coders"
32723fi
32724
32725cat >>confdefs.h <<_ACEOF
32726#define CODER_DIRNAME "$CODER_DIRNAME"
32727_ACEOF
32728
32729
32730
cristy371d4812012-12-01 19:48:10 +000032731CODER_RELATIVE_PATH="${CODER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032732CODER_PATH="${MODULES_PATH}/${CODER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000032733
32734
32735#
32736# Subdirectory under lib to place ImageMagick filter module files
cristy01ff9f32012-12-01 18:15:29 +000032737#
32738# path to coders lib
32739if test "x$FILTER_DIRNAME" = "x"; then
32740 FILTER_DIRNAME="filters"
32741fi
cristy3ed852e2009-09-05 21:47:34 +000032742
32743cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032744#define FILTER_DIRNAME "$FILTER_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032745_ACEOF
32746
cristy3ed852e2009-09-05 21:47:34 +000032747
cristy3ed852e2009-09-05 21:47:34 +000032748
cristy371d4812012-12-01 19:48:10 +000032749FILTER_RELATIVE_PATH="${FILTER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032750FILTER_PATH="${MODULES_PATH}/${FILTER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000032751
32752
32753#
32754# Path to ImageMagick documentation files
cristybdabdd62013-03-04 17:43:36 +000032755DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristyd55889c2011-03-27 00:50:24 +000032756DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
32757DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032758case "${build_os}" in
32759 mingw* )
32760 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
32761 ;;
32762esac
32763
32764cat >>confdefs.h <<_ACEOF
32765#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
32766_ACEOF
32767
32768
32769
cristydd17feb2014-03-05 02:06:32 +000032770#
32771# Enable/Disable documentation
32772# Check whether --enable-docs was given.
32773if test "${enable_docs+set}" = set; then :
32774 enableval=$enable_docs; wantdocs=$enableval
32775else
cristy02272312014-03-07 00:55:25 +000032776 wantdocs=yes
cristydd17feb2014-03-05 02:06:32 +000032777fi
32778
cristy02272312014-03-07 00:55:25 +000032779 if test "$wantdocs" = "yes"; then
cristydd17feb2014-03-05 02:06:32 +000032780 INSTALL_DOC_TRUE=
32781 INSTALL_DOC_FALSE='#'
32782else
32783 INSTALL_DOC_TRUE='#'
32784 INSTALL_DOC_FALSE=
32785fi
32786
32787
cristy2a11bef2011-10-28 18:33:11 +000032788# Subdirectory to place architecture-dependent configuration files
cristybdabdd62013-03-04 17:43:36 +000032789CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristy45dbd322011-03-27 16:40:38 +000032790
32791cat >>confdefs.h <<_ACEOF
32792#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
32793_ACEOF
32794
cristy7def36a2011-10-28 19:04:41 +000032795CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
cristy45dbd322011-03-27 16:40:38 +000032796DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
32797case "${build_os}" in
32798 mingw* )
32799 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
32800 ;;
32801esac
32802
32803cat >>confdefs.h <<_ACEOF
32804#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
32805_ACEOF
32806
32807
32808
cristy2a11bef2011-10-28 18:33:11 +000032809# Subdirectory to place architecture-independent configuration files
cristybdabdd62013-03-04 17:43:36 +000032810SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristy3ed852e2009-09-05 21:47:34 +000032811
32812cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032813#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032814_ACEOF
32815
cristy670aa3c2011-11-03 00:54:00 +000032816SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
cristy4f820712011-04-01 12:35:43 +000032817DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032818case "${build_os}" in
32819 mingw* )
cristy4f820712011-04-01 12:35:43 +000032820 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000032821 ;;
32822esac
32823
32824cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032825#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032826_ACEOF
32827
32828
32829
cristy54378032012-12-04 15:52:20 +000032830#
32831# Subdirectory to place architecture-dependent configuration files.
32832if test "x$SHAREARCH_BASEDIRNAME" = "x"; then
32833 SHAREARCH_BASEDIRNAME="config"
32834fi
cristy670aa3c2011-11-03 00:54:00 +000032835
32836cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000032837#define SHAREARCH_BASEDIRNAME "$SHAREARCH_BASEDIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000032838_ACEOF
32839
cristy54378032012-12-04 15:52:20 +000032840
32841
32842if test "x$SHAREARCH_DIRNAME" = "x"; then
32843 SHAREARCH_DIRNAME=${SHAREARCH_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32844else
cristy670aa3c2011-11-03 00:54:00 +000032845
32846cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000032847#define SHAREARCH_DIRNAME "$SHAREARCH_DIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000032848_ACEOF
32849
cristy54378032012-12-04 15:52:20 +000032850fi
32851
32852
32853SHAREARCH_RELATIVE_PATH="${SHAREARCH_DIRNAME}"
32854
32855SHAREARCH_PATH="${LIBRARY_PATH}/${SHAREARCH_RELATIVE_PATH}"
cristy670aa3c2011-11-03 00:54:00 +000032856
32857
cristy3ed852e2009-09-05 21:47:34 +000032858#
32859# program_transform_name is formed for use in a Makefile, so create a
32860# modified version for use in a shell script.
32861configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
32862
32863# Default delegate definitions
cristyad38abe2012-12-23 23:03:21 +000032864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32865$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000032867$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32869$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032870AutotraceDecodeDelegateDefault='autotrace'
cristy3d7f8062009-09-24 20:45:35 +000032871BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000032872BZIPDelegateDefault='bzip2'
32873BrowseDelegateDefault='xdg-open'
cristy3ed852e2009-09-05 21:47:34 +000032874CatDelegateDefault='cat'
32875DNGDecodeDelegateDefault='ufraw-batch'
cristy66f238e2014-05-16 12:21:48 +000032876DOCDecodeDelegateDefault='soffice'
cristy3ed852e2009-09-05 21:47:34 +000032877GVCDecodeDelegateDefault='dot'
32878DVIDecodeDelegateDefault='dvips'
32879EchoDelegateDefault='echo'
32880EditorDelegateDefault='xterm'
cristy3ed852e2009-09-05 21:47:34 +000032881ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
32882DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
32883MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
32884GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000032885HPGLDecodeDelegateDefault='hp2xx'
32886HTMLDecodeDelegateDefault='html2ps'
32887ILBMDecodeDelegateDefault='ilbmtoppm'
32888ILBMEncodeDelegateDefault='ppmtoilbm'
cristy71f53d52013-04-27 13:33:59 +000032889JXRDecodeDelegateDefault='JxrDecApp'
32890JXREncodeDelegateDefault='JxrEncApp'
cristy3ed852e2009-09-05 21:47:34 +000032891LPDelegateDefault='lp'
32892LPRDelegateDefault='lpr'
cristy3ed852e2009-09-05 21:47:34 +000032893LaunchDelegateDefault='gimp'
32894MANDelegateDefault='groff'
cristy81ab5af2013-10-06 18:28:39 +000032895MPEGDecodeDelegateDefault='avconv'
32896MPEGEncodeDelegateDefault='avconv'
cristy935c86e2010-06-05 23:50:07 +000032897MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000032898MVDelegateDefault='mv'
32899PCLDelegateDefault='pcl6'
32900PGPDecodeDelegateDefault='pgpv'
32901POVDelegateDefault='povray'
32902if test "$native_win32_build" = 'yes'; then
32903 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000032904elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032905 PSDelegateDefault='gsc'
32906else
32907 PSDelegateDefault='gs'
32908fi
32909RLEEncodeDelegateDefault='rawtorle'
32910RMDelegateDefault='rm'
cristy5281e322012-02-09 21:12:45 +000032911RSVGDecodeDelegateDefault='rsvg-convert'
cristy3ed852e2009-09-05 21:47:34 +000032912SCANDecodeDelegateDefault='scanimage'
cristyec6934f2012-08-14 18:38:40 +000032913SVGDecodeDelegateDefault='inkscape'
cristy3ed852e2009-09-05 21:47:34 +000032914TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000032915UniconvertorDelegateDefault='uniconvertor'
cristy86e86092013-08-04 17:43:57 +000032916WebPDecodeDelegateDefault='dwebp'
32917WebPEncodeDelegateDefault='cwebp'
cristy3ed852e2009-09-05 21:47:34 +000032918WMFDecodeDelegateDefault='wmf2eps'
32919WWWDecodeDelegateDefault='curl'
32920XPSDelegateDefault='gxps'
32921ZipDelegateDefault='gzip'
32922
32923# Search for delegates
32924# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
32925set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032927$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032928if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032929 $as_echo_n "(cached) " >&6
32930else
32931 case $AutotraceDecodeDelegate in
32932 [\\/]* | ?:[\\/]*)
32933 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
32934 ;;
32935 *)
32936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32937for as_dir in $PATH
32938do
32939 IFS=$as_save_IFS
32940 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032941 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032943 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032945 break 2
32946 fi
32947done
cristy8b350f62009-11-15 23:12:43 +000032948 done
cristy3ed852e2009-09-05 21:47:34 +000032949IFS=$as_save_IFS
32950
32951 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
32952 ;;
32953esac
32954fi
32955AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
32956if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032958$as_echo "$AutotraceDecodeDelegate" >&6; }
32959else
cristy8b350f62009-11-15 23:12:43 +000032960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032961$as_echo "no" >&6; }
32962fi
32963
32964
cristy3ed852e2009-09-05 21:47:34 +000032965# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
32966set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032968$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032969if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032970 $as_echo_n "(cached) " >&6
32971else
32972 case $BlenderDecodeDelegate in
32973 [\\/]* | ?:[\\/]*)
32974 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
32975 ;;
32976 *)
32977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32978for as_dir in $PATH
32979do
32980 IFS=$as_save_IFS
32981 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032982 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032984 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032986 break 2
32987 fi
32988done
cristy8b350f62009-11-15 23:12:43 +000032989 done
cristy3ed852e2009-09-05 21:47:34 +000032990IFS=$as_save_IFS
32991
32992 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
32993 ;;
32994esac
32995fi
32996BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
32997if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032999$as_echo "$BlenderDecodeDelegate" >&6; }
33000else
cristy8b350f62009-11-15 23:12:43 +000033001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033002$as_echo "no" >&6; }
33003fi
33004
33005
33006# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
33007set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033009$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033010if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033011 $as_echo_n "(cached) " >&6
33012else
33013 case $BZIPDelegate in
33014 [\\/]* | ?:[\\/]*)
33015 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
33016 ;;
33017 *)
33018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33019for as_dir in $PATH
33020do
33021 IFS=$as_save_IFS
33022 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033023 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033025 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033027 break 2
33028 fi
33029done
cristy8b350f62009-11-15 23:12:43 +000033030 done
cristy3ed852e2009-09-05 21:47:34 +000033031IFS=$as_save_IFS
33032
33033 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
33034 ;;
33035esac
33036fi
33037BZIPDelegate=$ac_cv_path_BZIPDelegate
33038if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033040$as_echo "$BZIPDelegate" >&6; }
33041else
cristy8b350f62009-11-15 23:12:43 +000033042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033043$as_echo "no" >&6; }
33044fi
33045
33046
cristyc59f0e72012-08-27 12:59:33 +000033047for ac_prog in "$BrowseDelegateDefault" google-chrome firefox konqueror mozilla lynx
33048do
33049 # Extract the first word of "$ac_prog", so it can be a program name with args.
33050set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033052$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033053if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033054 $as_echo_n "(cached) " >&6
33055else
33056 case $BrowseDelegate in
33057 [\\/]* | ?:[\\/]*)
33058 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
33059 ;;
33060 *)
33061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33062for as_dir in $PATH
33063do
33064 IFS=$as_save_IFS
33065 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033066 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033068 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033070 break 2
33071 fi
33072done
cristy8b350f62009-11-15 23:12:43 +000033073 done
cristy3ed852e2009-09-05 21:47:34 +000033074IFS=$as_save_IFS
33075
cristy3ed852e2009-09-05 21:47:34 +000033076 ;;
33077esac
33078fi
33079BrowseDelegate=$ac_cv_path_BrowseDelegate
33080if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033082$as_echo "$BrowseDelegate" >&6; }
33083else
cristy8b350f62009-11-15 23:12:43 +000033084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033085$as_echo "no" >&6; }
33086fi
33087
33088
cristyc59f0e72012-08-27 12:59:33 +000033089 test -n "$BrowseDelegate" && break
33090done
33091test -n "$BrowseDelegate" || BrowseDelegate=""$BrowseDelegateDefault""
33092
cristy3ed852e2009-09-05 21:47:34 +000033093# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
33094set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033096$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033097if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033098 $as_echo_n "(cached) " >&6
33099else
33100 case $CatDelegate in
33101 [\\/]* | ?:[\\/]*)
33102 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
33103 ;;
33104 *)
33105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33106for as_dir in $PATH
33107do
33108 IFS=$as_save_IFS
33109 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033110 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033112 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033114 break 2
33115 fi
33116done
cristy8b350f62009-11-15 23:12:43 +000033117 done
cristy3ed852e2009-09-05 21:47:34 +000033118IFS=$as_save_IFS
33119
33120 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
33121 ;;
33122esac
33123fi
33124CatDelegate=$ac_cv_path_CatDelegate
33125if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033127$as_echo "$CatDelegate" >&6; }
33128else
cristy8b350f62009-11-15 23:12:43 +000033129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033130$as_echo "no" >&6; }
33131fi
33132
33133
33134# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
33135set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033137$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033138if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033139 $as_echo_n "(cached) " >&6
33140else
33141 case $DNGDecodeDelegate in
33142 [\\/]* | ?:[\\/]*)
33143 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
33144 ;;
33145 *)
33146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33147for as_dir in $PATH
33148do
33149 IFS=$as_save_IFS
33150 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033151 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033153 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033155 break 2
33156 fi
33157done
cristy8b350f62009-11-15 23:12:43 +000033158 done
cristy3ed852e2009-09-05 21:47:34 +000033159IFS=$as_save_IFS
33160
33161 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
33162 ;;
33163esac
33164fi
33165DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
33166if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033168$as_echo "$DNGDecodeDelegate" >&6; }
33169else
cristy8b350f62009-11-15 23:12:43 +000033170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033171$as_echo "no" >&6; }
33172fi
33173
33174
cristy66f238e2014-05-16 12:21:48 +000033175# Extract the first word of ""$DOCDecodeDelegateDefault"", so it can be a program name with args.
33176set dummy "$DOCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033178$as_echo_n "checking for $ac_word... " >&6; }
cristy66f238e2014-05-16 12:21:48 +000033179if ${ac_cv_path_DOCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033180 $as_echo_n "(cached) " >&6
33181else
cristy66f238e2014-05-16 12:21:48 +000033182 case $DOCDecodeDelegate in
cristy3ed852e2009-09-05 21:47:34 +000033183 [\\/]* | ?:[\\/]*)
cristy66f238e2014-05-16 12:21:48 +000033184 ac_cv_path_DOCDecodeDelegate="$DOCDecodeDelegate" # Let the user override the test with a path.
cristy3ed852e2009-09-05 21:47:34 +000033185 ;;
33186 *)
33187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33188for as_dir in $PATH
33189do
33190 IFS=$as_save_IFS
33191 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033192 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy66f238e2014-05-16 12:21:48 +000033194 ac_cv_path_DOCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033196 break 2
33197 fi
33198done
cristy8b350f62009-11-15 23:12:43 +000033199 done
cristy3ed852e2009-09-05 21:47:34 +000033200IFS=$as_save_IFS
33201
cristy66f238e2014-05-16 12:21:48 +000033202 test -z "$ac_cv_path_DOCDecodeDelegate" && ac_cv_path_DOCDecodeDelegate=""$DOCDecodeDelegateDefault""
cristy3ed852e2009-09-05 21:47:34 +000033203 ;;
33204esac
33205fi
cristy66f238e2014-05-16 12:21:48 +000033206DOCDecodeDelegate=$ac_cv_path_DOCDecodeDelegate
33207if test -n "$DOCDecodeDelegate"; then
33208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOCDecodeDelegate" >&5
33209$as_echo "$DOCDecodeDelegate" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000033210else
cristy8b350f62009-11-15 23:12:43 +000033211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033212$as_echo "no" >&6; }
33213fi
33214
33215
33216# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
33217set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033219$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033220if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033221 $as_echo_n "(cached) " >&6
33222else
33223 case $DVIDecodeDelegate in
33224 [\\/]* | ?:[\\/]*)
33225 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
33226 ;;
33227 *)
33228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33229for as_dir in $PATH
33230do
33231 IFS=$as_save_IFS
33232 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033233 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033235 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033237 break 2
33238 fi
33239done
cristy8b350f62009-11-15 23:12:43 +000033240 done
cristy3ed852e2009-09-05 21:47:34 +000033241IFS=$as_save_IFS
33242
33243 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
33244 ;;
33245esac
33246fi
33247DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
33248if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033250$as_echo "$DVIDecodeDelegate" >&6; }
33251else
cristy8b350f62009-11-15 23:12:43 +000033252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033253$as_echo "no" >&6; }
33254fi
33255
33256
cristy3ed852e2009-09-05 21:47:34 +000033257# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
33258set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033260$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033261if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033262 $as_echo_n "(cached) " >&6
33263else
33264 case $ConvertDelegate in
33265 [\\/]* | ?:[\\/]*)
33266 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
33267 ;;
33268 *)
33269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33270for as_dir in $PATH
33271do
33272 IFS=$as_save_IFS
33273 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033274 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033276 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033278 break 2
33279 fi
33280done
cristy8b350f62009-11-15 23:12:43 +000033281 done
cristy3ed852e2009-09-05 21:47:34 +000033282IFS=$as_save_IFS
33283
33284 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
33285 ;;
33286esac
33287fi
33288ConvertDelegate=$ac_cv_path_ConvertDelegate
33289if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033291$as_echo "$ConvertDelegate" >&6; }
33292else
cristy8b350f62009-11-15 23:12:43 +000033293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033294$as_echo "no" >&6; }
33295fi
33296
33297
33298# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
33299set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033301$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033302if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033303 $as_echo_n "(cached) " >&6
33304else
33305 case $DisplayDelegate in
33306 [\\/]* | ?:[\\/]*)
33307 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
33308 ;;
33309 *)
33310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33311for as_dir in $PATH
33312do
33313 IFS=$as_save_IFS
33314 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033315 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033317 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033319 break 2
33320 fi
33321done
cristy8b350f62009-11-15 23:12:43 +000033322 done
cristy3ed852e2009-09-05 21:47:34 +000033323IFS=$as_save_IFS
33324
33325 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
33326 ;;
33327esac
33328fi
33329DisplayDelegate=$ac_cv_path_DisplayDelegate
33330if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033332$as_echo "$DisplayDelegate" >&6; }
33333else
cristy8b350f62009-11-15 23:12:43 +000033334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033335$as_echo "no" >&6; }
33336fi
33337
33338
cristy66f238e2014-05-16 12:21:48 +000033339# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
33340set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033342$as_echo_n "checking for $ac_word... " >&6; }
cristy66f238e2014-05-16 12:21:48 +000033343if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033344 $as_echo_n "(cached) " >&6
33345else
cristy66f238e2014-05-16 12:21:48 +000033346 case $EchoDelegate in
cristy3ed852e2009-09-05 21:47:34 +000033347 [\\/]* | ?:[\\/]*)
cristy66f238e2014-05-16 12:21:48 +000033348 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
cristy3ed852e2009-09-05 21:47:34 +000033349 ;;
33350 *)
33351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33352for as_dir in $PATH
33353do
33354 IFS=$as_save_IFS
33355 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033356 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy66f238e2014-05-16 12:21:48 +000033358 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033360 break 2
33361 fi
33362done
cristy8b350f62009-11-15 23:12:43 +000033363 done
cristy3ed852e2009-09-05 21:47:34 +000033364IFS=$as_save_IFS
33365
cristy66f238e2014-05-16 12:21:48 +000033366 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
cristy3ed852e2009-09-05 21:47:34 +000033367 ;;
33368esac
33369fi
cristy66f238e2014-05-16 12:21:48 +000033370EchoDelegate=$ac_cv_path_EchoDelegate
33371if test -n "$EchoDelegate"; then
33372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
33373$as_echo "$EchoDelegate" >&6; }
33374else
33375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33376$as_echo "no" >&6; }
33377fi
33378
33379
33380# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
33381set dummy "$EditorDelegateDefault"; ac_word=$2
33382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33383$as_echo_n "checking for $ac_word... " >&6; }
33384if ${ac_cv_path_EditorDelegate+:} false; then :
33385 $as_echo_n "(cached) " >&6
33386else
33387 case $EditorDelegate in
33388 [\\/]* | ?:[\\/]*)
33389 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
33390 ;;
33391 *)
33392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33393for as_dir in $PATH
33394do
33395 IFS=$as_save_IFS
33396 test -z "$as_dir" && as_dir=.
33397 for ac_exec_ext in '' $ac_executable_extensions; do
33398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33399 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
33400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33401 break 2
33402 fi
33403done
33404 done
33405IFS=$as_save_IFS
33406
33407 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
33408 ;;
33409esac
33410fi
33411EditorDelegate=$ac_cv_path_EditorDelegate
33412if test -n "$EditorDelegate"; then
33413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
33414$as_echo "$EditorDelegate" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000033415else
cristy8b350f62009-11-15 23:12:43 +000033416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033417$as_echo "no" >&6; }
33418fi
33419
33420
33421# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
33422set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033424$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033425if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033426 $as_echo_n "(cached) " >&6
33427else
33428 case $GnuplotDecodeDelegate in
33429 [\\/]* | ?:[\\/]*)
33430 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
33431 ;;
33432 *)
33433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33434for as_dir in $PATH
33435do
33436 IFS=$as_save_IFS
33437 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033438 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033440 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033442 break 2
33443 fi
33444done
cristy8b350f62009-11-15 23:12:43 +000033445 done
cristy3ed852e2009-09-05 21:47:34 +000033446IFS=$as_save_IFS
33447
33448 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
33449 ;;
33450esac
33451fi
33452GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
33453if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033455$as_echo "$GnuplotDecodeDelegate" >&6; }
33456else
cristy8b350f62009-11-15 23:12:43 +000033457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033458$as_echo "no" >&6; }
33459fi
33460
33461
cristy66f238e2014-05-16 12:21:48 +000033462# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
33463set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
33464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33465$as_echo_n "checking for $ac_word... " >&6; }
33466if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
33467 $as_echo_n "(cached) " >&6
33468else
33469 case $GVCDecodeDelegate in
33470 [\\/]* | ?:[\\/]*)
33471 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
33472 ;;
33473 *)
33474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33475for as_dir in $PATH
33476do
33477 IFS=$as_save_IFS
33478 test -z "$as_dir" && as_dir=.
33479 for ac_exec_ext in '' $ac_executable_extensions; do
33480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33481 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33483 break 2
33484 fi
33485done
33486 done
33487IFS=$as_save_IFS
33488
33489 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
33490 ;;
33491esac
33492fi
33493GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
33494if test -n "$GVCDecodeDelegate"; then
33495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
33496$as_echo "$GVCDecodeDelegate" >&6; }
33497else
33498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33499$as_echo "no" >&6; }
33500fi
33501
33502
cristy3ed852e2009-09-05 21:47:34 +000033503# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
33504set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033506$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033507if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033508 $as_echo_n "(cached) " >&6
33509else
33510 case $HPGLDecodeDelegate in
33511 [\\/]* | ?:[\\/]*)
33512 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
33513 ;;
33514 *)
33515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33516for as_dir in $PATH
33517do
33518 IFS=$as_save_IFS
33519 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033520 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033522 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033524 break 2
33525 fi
33526done
cristy8b350f62009-11-15 23:12:43 +000033527 done
cristy3ed852e2009-09-05 21:47:34 +000033528IFS=$as_save_IFS
33529
33530 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
33531 ;;
33532esac
33533fi
33534HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
33535if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033537$as_echo "$HPGLDecodeDelegate" >&6; }
33538else
cristy8b350f62009-11-15 23:12:43 +000033539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033540$as_echo "no" >&6; }
33541fi
33542
33543
33544# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
33545set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033547$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033548if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033549 $as_echo_n "(cached) " >&6
33550else
33551 case $HTMLDecodeDelegate in
33552 [\\/]* | ?:[\\/]*)
33553 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
33554 ;;
33555 *)
33556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33557for as_dir in $PATH
33558do
33559 IFS=$as_save_IFS
33560 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033561 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033563 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033565 break 2
33566 fi
33567done
cristy8b350f62009-11-15 23:12:43 +000033568 done
cristy3ed852e2009-09-05 21:47:34 +000033569IFS=$as_save_IFS
33570
33571 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
33572 ;;
33573esac
33574fi
33575HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
33576if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033578$as_echo "$HTMLDecodeDelegate" >&6; }
33579else
cristy8b350f62009-11-15 23:12:43 +000033580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033581$as_echo "no" >&6; }
33582fi
33583
33584
33585# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
33586set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033588$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033589if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033590 $as_echo_n "(cached) " >&6
33591else
33592 case $ILBMDecodeDelegate in
33593 [\\/]* | ?:[\\/]*)
33594 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
33595 ;;
33596 *)
33597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33598for as_dir in $PATH
33599do
33600 IFS=$as_save_IFS
33601 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033602 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033604 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033606 break 2
33607 fi
33608done
cristy8b350f62009-11-15 23:12:43 +000033609 done
cristy3ed852e2009-09-05 21:47:34 +000033610IFS=$as_save_IFS
33611
33612 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
33613 ;;
33614esac
33615fi
33616ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
33617if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033619$as_echo "$ILBMDecodeDelegate" >&6; }
33620else
cristy8b350f62009-11-15 23:12:43 +000033621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033622$as_echo "no" >&6; }
33623fi
33624
33625
33626# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
33627set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033629$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033630if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033631 $as_echo_n "(cached) " >&6
33632else
33633 case $ILBMEncodeDelegate in
33634 [\\/]* | ?:[\\/]*)
33635 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
33636 ;;
33637 *)
33638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33639for as_dir in $PATH
33640do
33641 IFS=$as_save_IFS
33642 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033643 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033645 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033647 break 2
33648 fi
33649done
cristy8b350f62009-11-15 23:12:43 +000033650 done
cristy3ed852e2009-09-05 21:47:34 +000033651IFS=$as_save_IFS
33652
33653 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
33654 ;;
33655esac
33656fi
33657ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
33658if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033660$as_echo "$ILBMEncodeDelegate" >&6; }
33661else
cristy8b350f62009-11-15 23:12:43 +000033662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033663$as_echo "no" >&6; }
33664fi
33665
33666
cristy71f53d52013-04-27 13:33:59 +000033667# Extract the first word of ""$JXRDecodeDelegateDefault"", so it can be a program name with args.
33668set dummy "$JXRDecodeDelegateDefault"; ac_word=$2
33669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33670$as_echo_n "checking for $ac_word... " >&6; }
33671if ${ac_cv_path_JXRDecodeDelegate+:} false; then :
33672 $as_echo_n "(cached) " >&6
33673else
33674 case $JXRDecodeDelegate in
33675 [\\/]* | ?:[\\/]*)
33676 ac_cv_path_JXRDecodeDelegate="$JXRDecodeDelegate" # Let the user override the test with a path.
33677 ;;
33678 *)
33679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33680for as_dir in $PATH
33681do
33682 IFS=$as_save_IFS
33683 test -z "$as_dir" && as_dir=.
33684 for ac_exec_ext in '' $ac_executable_extensions; do
33685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33686 ac_cv_path_JXRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33688 break 2
33689 fi
33690done
33691 done
33692IFS=$as_save_IFS
33693
33694 test -z "$ac_cv_path_JXRDecodeDelegate" && ac_cv_path_JXRDecodeDelegate=""$JXRDecodeDelegateDefault""
33695 ;;
33696esac
33697fi
33698JXRDecodeDelegate=$ac_cv_path_JXRDecodeDelegate
33699if test -n "$JXRDecodeDelegate"; then
33700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXRDecodeDelegate" >&5
33701$as_echo "$JXRDecodeDelegate" >&6; }
33702else
33703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33704$as_echo "no" >&6; }
33705fi
33706
33707
33708# Extract the first word of ""$JXREncodeDelegateDefault"", so it can be a program name with args.
33709set dummy "$JXREncodeDelegateDefault"; ac_word=$2
33710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33711$as_echo_n "checking for $ac_word... " >&6; }
33712if ${ac_cv_path_JXREncodeDelegate+:} false; then :
33713 $as_echo_n "(cached) " >&6
33714else
33715 case $JXREncodeDelegate in
33716 [\\/]* | ?:[\\/]*)
33717 ac_cv_path_JXREncodeDelegate="$JXREncodeDelegate" # Let the user override the test with a path.
33718 ;;
33719 *)
33720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33721for as_dir in $PATH
33722do
33723 IFS=$as_save_IFS
33724 test -z "$as_dir" && as_dir=.
33725 for ac_exec_ext in '' $ac_executable_extensions; do
33726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33727 ac_cv_path_JXREncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33729 break 2
33730 fi
33731done
33732 done
33733IFS=$as_save_IFS
33734
33735 test -z "$ac_cv_path_JXREncodeDelegate" && ac_cv_path_JXREncodeDelegate=""$JXREncodeDelegateDefault""
33736 ;;
33737esac
33738fi
33739JXREncodeDelegate=$ac_cv_path_JXREncodeDelegate
33740if test -n "$JXREncodeDelegate"; then
33741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXREncodeDelegate" >&5
33742$as_echo "$JXREncodeDelegate" >&6; }
33743else
33744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33745$as_echo "no" >&6; }
33746fi
33747
33748
cristy3ed852e2009-09-05 21:47:34 +000033749# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
33750set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033752$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033753if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033754 $as_echo_n "(cached) " >&6
33755else
33756 case $LPDelegate in
33757 [\\/]* | ?:[\\/]*)
33758 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
33759 ;;
33760 *)
33761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33762for as_dir in $PATH
33763do
33764 IFS=$as_save_IFS
33765 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033766 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033768 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033770 break 2
33771 fi
33772done
cristy8b350f62009-11-15 23:12:43 +000033773 done
cristy3ed852e2009-09-05 21:47:34 +000033774IFS=$as_save_IFS
33775
33776 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
33777 ;;
33778esac
33779fi
33780LPDelegate=$ac_cv_path_LPDelegate
33781if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033783$as_echo "$LPDelegate" >&6; }
33784else
cristy8b350f62009-11-15 23:12:43 +000033785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033786$as_echo "no" >&6; }
33787fi
33788
33789
33790# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
33791set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033793$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033794if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033795 $as_echo_n "(cached) " >&6
33796else
33797 case $LPRDelegate in
33798 [\\/]* | ?:[\\/]*)
33799 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
33800 ;;
33801 *)
33802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33803for as_dir in $PATH
33804do
33805 IFS=$as_save_IFS
33806 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033807 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033809 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033811 break 2
33812 fi
33813done
cristy8b350f62009-11-15 23:12:43 +000033814 done
cristy3ed852e2009-09-05 21:47:34 +000033815IFS=$as_save_IFS
33816
33817 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
33818 ;;
33819esac
33820fi
33821LPRDelegate=$ac_cv_path_LPRDelegate
33822if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033824$as_echo "$LPRDelegate" >&6; }
33825else
cristy8b350f62009-11-15 23:12:43 +000033826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033827$as_echo "no" >&6; }
33828fi
33829
33830
cristy3ed852e2009-09-05 21:47:34 +000033831# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
33832set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033834$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033835if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033836 $as_echo_n "(cached) " >&6
33837else
33838 case $LaunchDelegate in
33839 [\\/]* | ?:[\\/]*)
33840 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
33841 ;;
33842 *)
33843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33844for as_dir in $PATH
33845do
33846 IFS=$as_save_IFS
33847 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033848 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033850 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033852 break 2
33853 fi
33854done
cristy8b350f62009-11-15 23:12:43 +000033855 done
cristy3ed852e2009-09-05 21:47:34 +000033856IFS=$as_save_IFS
33857
33858 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
33859 ;;
33860esac
33861fi
33862LaunchDelegate=$ac_cv_path_LaunchDelegate
33863if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033865$as_echo "$LaunchDelegate" >&6; }
33866else
cristy8b350f62009-11-15 23:12:43 +000033867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033868$as_echo "no" >&6; }
33869fi
33870
33871
33872# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
33873set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033875$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033876if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033877 $as_echo_n "(cached) " >&6
33878else
33879 case $MANDelegate in
33880 [\\/]* | ?:[\\/]*)
33881 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
33882 ;;
33883 *)
33884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33885for as_dir in $PATH
33886do
33887 IFS=$as_save_IFS
33888 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033889 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033891 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033893 break 2
33894 fi
33895done
cristy8b350f62009-11-15 23:12:43 +000033896 done
cristy3ed852e2009-09-05 21:47:34 +000033897IFS=$as_save_IFS
33898
33899 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
33900 ;;
33901esac
33902fi
33903MANDelegate=$ac_cv_path_MANDelegate
33904if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033906$as_echo "$MANDelegate" >&6; }
33907else
cristy8b350f62009-11-15 23:12:43 +000033908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033909$as_echo "no" >&6; }
33910fi
33911
33912
cristy66f238e2014-05-16 12:21:48 +000033913# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
33914set dummy "$MogrifyDelegateDefault"; ac_word=$2
33915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33916$as_echo_n "checking for $ac_word... " >&6; }
33917if ${ac_cv_path_MogrifyDelegate+:} false; then :
33918 $as_echo_n "(cached) " >&6
33919else
33920 case $MogrifyDelegate in
33921 [\\/]* | ?:[\\/]*)
33922 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
33923 ;;
33924 *)
33925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33926for as_dir in $PATH
33927do
33928 IFS=$as_save_IFS
33929 test -z "$as_dir" && as_dir=.
33930 for ac_exec_ext in '' $ac_executable_extensions; do
33931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33932 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
33933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33934 break 2
33935 fi
33936done
33937 done
33938IFS=$as_save_IFS
33939
33940 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
33941 ;;
33942esac
33943fi
33944MogrifyDelegate=$ac_cv_path_MogrifyDelegate
33945if test -n "$MogrifyDelegate"; then
33946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
33947$as_echo "$MogrifyDelegate" >&6; }
33948else
33949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33950$as_echo "no" >&6; }
33951fi
33952
33953
cristy3ed852e2009-09-05 21:47:34 +000033954# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33955set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033957$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033958if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033959 $as_echo_n "(cached) " >&6
33960else
33961 case $MPEGDecodeDelegate in
33962 [\\/]* | ?:[\\/]*)
33963 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
33964 ;;
33965 *)
33966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33967for as_dir in $PATH
33968do
33969 IFS=$as_save_IFS
33970 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033971 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033973 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033975 break 2
33976 fi
33977done
cristy8b350f62009-11-15 23:12:43 +000033978 done
cristy3ed852e2009-09-05 21:47:34 +000033979IFS=$as_save_IFS
33980
33981 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
33982 ;;
33983esac
33984fi
33985MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
33986if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033988$as_echo "$MPEGDecodeDelegate" >&6; }
33989else
cristy8b350f62009-11-15 23:12:43 +000033990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033991$as_echo "no" >&6; }
33992fi
33993
33994
cristy058d15f2014-08-21 18:53:03 +000033995if test "$MPEGDecodeDelegate" = "$MPEGDecodeDelegateDefault" ; then
cristy81ab5af2013-10-06 18:28:39 +000033996 MPEGDecodeDelegateDefault='ffmpeg'
33997 # Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33998set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
33999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34000$as_echo_n "checking for $ac_word... " >&6; }
34001if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
34002 $as_echo_n "(cached) " >&6
34003else
34004 case $MPEGDecodeDelegate in
34005 [\\/]* | ?:[\\/]*)
34006 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
34007 ;;
34008 *)
34009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34010for as_dir in $PATH
34011do
34012 IFS=$as_save_IFS
34013 test -z "$as_dir" && as_dir=.
34014 for ac_exec_ext in '' $ac_executable_extensions; do
34015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34016 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34018 break 2
34019 fi
34020done
34021 done
34022IFS=$as_save_IFS
34023
34024 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
34025 ;;
34026esac
34027fi
34028MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
34029if test -n "$MPEGDecodeDelegate"; then
34030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
34031$as_echo "$MPEGDecodeDelegate" >&6; }
34032else
34033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34034$as_echo "no" >&6; }
34035fi
34036
34037
34038fi;
cristy3ed852e2009-09-05 21:47:34 +000034039# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
34040set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034042$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034043if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034044 $as_echo_n "(cached) " >&6
34045else
34046 case $MPEGEncodeDelegate in
34047 [\\/]* | ?:[\\/]*)
34048 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
34049 ;;
34050 *)
34051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34052for as_dir in $PATH
34053do
34054 IFS=$as_save_IFS
34055 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034056 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034058 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034060 break 2
34061 fi
34062done
cristy8b350f62009-11-15 23:12:43 +000034063 done
cristy3ed852e2009-09-05 21:47:34 +000034064IFS=$as_save_IFS
34065
34066 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
34067 ;;
34068esac
34069fi
34070MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
34071if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034073$as_echo "$MPEGEncodeDelegate" >&6; }
34074else
cristy8b350f62009-11-15 23:12:43 +000034075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034076$as_echo "no" >&6; }
34077fi
34078
34079
cristy058d15f2014-08-21 18:53:03 +000034080if test "$MPEGEncodeDelegate" = "$MPEGEncodeDelegateDefault" ; then
cristy81ab5af2013-10-06 18:28:39 +000034081 MPEGEncodeDelegateDefault='ffmpeg'
34082 # Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
34083set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
34084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34085$as_echo_n "checking for $ac_word... " >&6; }
34086if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
34087 $as_echo_n "(cached) " >&6
34088else
34089 case $MPEGEncodeDelegate in
34090 [\\/]* | ?:[\\/]*)
34091 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
34092 ;;
34093 *)
34094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34095for as_dir in $PATH
34096do
34097 IFS=$as_save_IFS
34098 test -z "$as_dir" && as_dir=.
34099 for ac_exec_ext in '' $ac_executable_extensions; do
34100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34101 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34103 break 2
34104 fi
34105done
34106 done
34107IFS=$as_save_IFS
34108
34109 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
34110 ;;
34111esac
34112fi
34113MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
34114if test -n "$MPEGEncodeDelegate"; then
34115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
34116$as_echo "$MPEGEncodeDelegate" >&6; }
34117else
34118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34119$as_echo "no" >&6; }
34120fi
34121
34122
34123fi;
cristy935c86e2010-06-05 23:50:07 +000034124# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
34125set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
34126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34127$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034128if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000034129 $as_echo_n "(cached) " >&6
34130else
34131 case $MrSIDDecodeDelegate in
34132 [\\/]* | ?:[\\/]*)
34133 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
34134 ;;
34135 *)
34136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34137for as_dir in $PATH
34138do
34139 IFS=$as_save_IFS
34140 test -z "$as_dir" && as_dir=.
34141 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy935c86e2010-06-05 23:50:07 +000034143 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34145 break 2
34146 fi
34147done
34148 done
34149IFS=$as_save_IFS
34150
34151 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
34152 ;;
34153esac
34154fi
34155MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
34156if test -n "$MrSIDDecodeDelegate"; then
34157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
34158$as_echo "$MrSIDDecodeDelegate" >&6; }
34159else
34160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34161$as_echo "no" >&6; }
34162fi
34163
34164
cristy3ed852e2009-09-05 21:47:34 +000034165# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
34166set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034168$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034169if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034170 $as_echo_n "(cached) " >&6
34171else
34172 case $MVDelegate in
34173 [\\/]* | ?:[\\/]*)
34174 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
34175 ;;
34176 *)
34177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34178for as_dir in $PATH
34179do
34180 IFS=$as_save_IFS
34181 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034182 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034184 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034186 break 2
34187 fi
34188done
cristy8b350f62009-11-15 23:12:43 +000034189 done
cristy3ed852e2009-09-05 21:47:34 +000034190IFS=$as_save_IFS
34191
34192 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
34193 ;;
34194esac
34195fi
34196MVDelegate=$ac_cv_path_MVDelegate
34197if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034199$as_echo "$MVDelegate" >&6; }
34200else
cristy8b350f62009-11-15 23:12:43 +000034201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034202$as_echo "no" >&6; }
34203fi
34204
34205
34206# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
34207set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034209$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034210if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034211 $as_echo_n "(cached) " >&6
34212else
34213 case $PCLDelegate in
34214 [\\/]* | ?:[\\/]*)
34215 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
34216 ;;
34217 *)
34218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34219for as_dir in $PATH
34220do
34221 IFS=$as_save_IFS
34222 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034223 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034225 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034227 break 2
34228 fi
34229done
cristy8b350f62009-11-15 23:12:43 +000034230 done
cristy3ed852e2009-09-05 21:47:34 +000034231IFS=$as_save_IFS
34232
34233 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
34234 ;;
34235esac
34236fi
34237PCLDelegate=$ac_cv_path_PCLDelegate
34238if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034240$as_echo "$PCLDelegate" >&6; }
34241else
cristy8b350f62009-11-15 23:12:43 +000034242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034243$as_echo "no" >&6; }
34244fi
34245
34246
34247# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
34248set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034250$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034251if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034252 $as_echo_n "(cached) " >&6
34253else
34254 case $PGPDecodeDelegate in
34255 [\\/]* | ?:[\\/]*)
34256 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
34257 ;;
34258 *)
34259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34260for as_dir in $PATH
34261do
34262 IFS=$as_save_IFS
34263 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034264 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034266 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034268 break 2
34269 fi
34270done
cristy8b350f62009-11-15 23:12:43 +000034271 done
cristy3ed852e2009-09-05 21:47:34 +000034272IFS=$as_save_IFS
34273
34274 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
34275 ;;
34276esac
34277fi
34278PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
34279if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034281$as_echo "$PGPDecodeDelegate" >&6; }
34282else
cristy8b350f62009-11-15 23:12:43 +000034283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034284$as_echo "no" >&6; }
34285fi
34286
34287
34288# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
34289set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034291$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034292if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034293 $as_echo_n "(cached) " >&6
34294else
34295 case $POVDelegate in
34296 [\\/]* | ?:[\\/]*)
34297 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
34298 ;;
34299 *)
34300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34301for as_dir in $PATH
34302do
34303 IFS=$as_save_IFS
34304 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034305 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034307 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034309 break 2
34310 fi
34311done
cristy8b350f62009-11-15 23:12:43 +000034312 done
cristy3ed852e2009-09-05 21:47:34 +000034313IFS=$as_save_IFS
34314
34315 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
34316 ;;
34317esac
34318fi
34319POVDelegate=$ac_cv_path_POVDelegate
34320if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034322$as_echo "$POVDelegate" >&6; }
34323else
cristy8b350f62009-11-15 23:12:43 +000034324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034325$as_echo "no" >&6; }
34326fi
34327
34328
34329for ac_prog in gsx gsc "$PSDelegateDefault"
34330do
34331 # Extract the first word of "$ac_prog", so it can be a program name with args.
34332set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034334$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034335if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034336 $as_echo_n "(cached) " >&6
34337else
34338 case $PSDelegate in
34339 [\\/]* | ?:[\\/]*)
34340 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
34341 ;;
34342 *)
34343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34344for as_dir in $PATH
34345do
34346 IFS=$as_save_IFS
34347 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034348 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034350 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034352 break 2
34353 fi
34354done
cristy8b350f62009-11-15 23:12:43 +000034355 done
cristy3ed852e2009-09-05 21:47:34 +000034356IFS=$as_save_IFS
34357
34358 ;;
34359esac
34360fi
34361PSDelegate=$ac_cv_path_PSDelegate
34362if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034364$as_echo "$PSDelegate" >&6; }
34365else
cristy8b350f62009-11-15 23:12:43 +000034366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034367$as_echo "no" >&6; }
34368fi
34369
34370
34371 test -n "$PSDelegate" && break
34372done
34373test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
34374
34375# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
34376set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034378$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034379if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034380 $as_echo_n "(cached) " >&6
34381else
34382 case $RLEEncodeDelegate in
34383 [\\/]* | ?:[\\/]*)
34384 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
34385 ;;
34386 *)
34387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34388for as_dir in $PATH
34389do
34390 IFS=$as_save_IFS
34391 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034392 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034394 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034396 break 2
34397 fi
34398done
cristy8b350f62009-11-15 23:12:43 +000034399 done
cristy3ed852e2009-09-05 21:47:34 +000034400IFS=$as_save_IFS
34401
34402 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
34403 ;;
34404esac
34405fi
34406RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
34407if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034409$as_echo "$RLEEncodeDelegate" >&6; }
34410else
cristy8b350f62009-11-15 23:12:43 +000034411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034412$as_echo "no" >&6; }
34413fi
34414
34415
34416# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
34417set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034419$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034420if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034421 $as_echo_n "(cached) " >&6
34422else
34423 case $RMDelegate in
34424 [\\/]* | ?:[\\/]*)
34425 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
34426 ;;
34427 *)
34428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34429for as_dir in $PATH
34430do
34431 IFS=$as_save_IFS
34432 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034433 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034435 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034437 break 2
34438 fi
34439done
cristy8b350f62009-11-15 23:12:43 +000034440 done
cristy3ed852e2009-09-05 21:47:34 +000034441IFS=$as_save_IFS
34442
34443 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
34444 ;;
34445esac
34446fi
34447RMDelegate=$ac_cv_path_RMDelegate
34448if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034450$as_echo "$RMDelegate" >&6; }
34451else
cristy8b350f62009-11-15 23:12:43 +000034452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034453$as_echo "no" >&6; }
34454fi
34455
34456
cristy4689cf02010-02-17 21:15:45 +000034457# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
34458set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
34459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34460$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034461if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000034462 $as_echo_n "(cached) " >&6
34463else
34464 case $RSVGDecodeDelegate in
34465 [\\/]* | ?:[\\/]*)
34466 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
34467 ;;
34468 *)
34469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34470for as_dir in $PATH
34471do
34472 IFS=$as_save_IFS
34473 test -z "$as_dir" && as_dir=.
34474 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy4689cf02010-02-17 21:15:45 +000034476 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34478 break 2
34479 fi
34480done
34481 done
34482IFS=$as_save_IFS
34483
34484 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
34485 ;;
34486esac
34487fi
34488RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
34489if test -n "$RSVGDecodeDelegate"; then
34490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
34491$as_echo "$RSVGDecodeDelegate" >&6; }
34492else
34493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34494$as_echo "no" >&6; }
34495fi
34496
34497
cristy3ed852e2009-09-05 21:47:34 +000034498# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
34499set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034501$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034502if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034503 $as_echo_n "(cached) " >&6
34504else
34505 case $SCANDecodeDelegate in
34506 [\\/]* | ?:[\\/]*)
34507 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
34508 ;;
34509 *)
34510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34511for as_dir in $PATH
34512do
34513 IFS=$as_save_IFS
34514 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034515 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034517 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034519 break 2
34520 fi
34521done
cristy8b350f62009-11-15 23:12:43 +000034522 done
cristy3ed852e2009-09-05 21:47:34 +000034523IFS=$as_save_IFS
34524
34525 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
34526 ;;
34527esac
34528fi
34529SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
34530if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034532$as_echo "$SCANDecodeDelegate" >&6; }
34533else
cristy8b350f62009-11-15 23:12:43 +000034534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034535$as_echo "no" >&6; }
34536fi
34537
34538
cristyec6934f2012-08-14 18:38:40 +000034539# Extract the first word of ""$SVGDecodeDelegateDefault"", so it can be a program name with args.
34540set dummy "$SVGDecodeDelegateDefault"; ac_word=$2
34541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34542$as_echo_n "checking for $ac_word... " >&6; }
34543if ${ac_cv_path_SVGDecodeDelegate+:} false; then :
34544 $as_echo_n "(cached) " >&6
34545else
34546 case $SVGDecodeDelegate in
34547 [\\/]* | ?:[\\/]*)
34548 ac_cv_path_SVGDecodeDelegate="$SVGDecodeDelegate" # Let the user override the test with a path.
34549 ;;
34550 *)
34551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34552for as_dir in $PATH
34553do
34554 IFS=$as_save_IFS
34555 test -z "$as_dir" && as_dir=.
34556 for ac_exec_ext in '' $ac_executable_extensions; do
34557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34558 ac_cv_path_SVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34560 break 2
34561 fi
34562done
34563 done
34564IFS=$as_save_IFS
34565
34566 test -z "$ac_cv_path_SVGDecodeDelegate" && ac_cv_path_SVGDecodeDelegate=""$SVGDecodeDelegateDefault""
34567 ;;
34568esac
34569fi
34570SVGDecodeDelegate=$ac_cv_path_SVGDecodeDelegate
34571if test -n "$SVGDecodeDelegate"; then
34572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVGDecodeDelegate" >&5
34573$as_echo "$SVGDecodeDelegate" >&6; }
34574else
34575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34576$as_echo "no" >&6; }
34577fi
34578
34579
cristy3ed852e2009-09-05 21:47:34 +000034580# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
34581set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034583$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034584if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034585 $as_echo_n "(cached) " >&6
34586else
34587 case $TXTDelegate in
34588 [\\/]* | ?:[\\/]*)
34589 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
34590 ;;
34591 *)
34592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34593for as_dir in $PATH
34594do
34595 IFS=$as_save_IFS
34596 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034597 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034599 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034601 break 2
34602 fi
34603done
cristy8b350f62009-11-15 23:12:43 +000034604 done
cristy3ed852e2009-09-05 21:47:34 +000034605IFS=$as_save_IFS
34606
34607 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
34608 ;;
34609esac
34610fi
34611TXTDelegate=$ac_cv_path_TXTDelegate
34612if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034614$as_echo "$TXTDelegate" >&6; }
34615else
cristy8b350f62009-11-15 23:12:43 +000034616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034617$as_echo "no" >&6; }
34618fi
34619
34620
cristy5ac9ac82010-07-29 13:24:24 +000034621# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
34622set dummy "$UniconvertorDelegateDefault"; ac_word=$2
34623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34624$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034625if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000034626 $as_echo_n "(cached) " >&6
34627else
34628 case $UniconvertorDelegate in
34629 [\\/]* | ?:[\\/]*)
34630 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
34631 ;;
34632 *)
34633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34634for as_dir in $PATH
34635do
34636 IFS=$as_save_IFS
34637 test -z "$as_dir" && as_dir=.
34638 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy5ac9ac82010-07-29 13:24:24 +000034640 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
34641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34642 break 2
34643 fi
34644done
34645 done
34646IFS=$as_save_IFS
34647
34648 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
34649 ;;
34650esac
34651fi
34652UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
34653if test -n "$UniconvertorDelegate"; then
34654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
34655$as_echo "$UniconvertorDelegate" >&6; }
34656else
34657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34658$as_echo "no" >&6; }
34659fi
34660
34661
cristy86e86092013-08-04 17:43:57 +000034662# Extract the first word of ""$WebPDecodeDelegateDefault"", so it can be a program name with args.
34663set dummy "$WebPDecodeDelegateDefault"; ac_word=$2
34664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34665$as_echo_n "checking for $ac_word... " >&6; }
34666if ${ac_cv_path_WebPDecodeDelegate+:} false; then :
34667 $as_echo_n "(cached) " >&6
34668else
34669 case $WebPDecodeDelegate in
34670 [\\/]* | ?:[\\/]*)
34671 ac_cv_path_WebPDecodeDelegate="$WebPDecodeDelegate" # Let the user override the test with a path.
34672 ;;
34673 *)
34674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34675for as_dir in $PATH
34676do
34677 IFS=$as_save_IFS
34678 test -z "$as_dir" && as_dir=.
34679 for ac_exec_ext in '' $ac_executable_extensions; do
34680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34681 ac_cv_path_WebPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34683 break 2
34684 fi
34685done
34686 done
34687IFS=$as_save_IFS
34688
34689 test -z "$ac_cv_path_WebPDecodeDelegate" && ac_cv_path_WebPDecodeDelegate=""$WebPDecodeDelegateDefault""
34690 ;;
34691esac
34692fi
34693WebPDecodeDelegate=$ac_cv_path_WebPDecodeDelegate
34694if test -n "$WebPDecodeDelegate"; then
34695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WebPDecodeDelegate" >&5
34696$as_echo "$WebPDecodeDelegate" >&6; }
34697else
34698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34699$as_echo "no" >&6; }
34700fi
34701
34702
34703# Extract the first word of ""$WebPEncodeDelegateDefault"", so it can be a program name with args.
34704set dummy "$WebPEncodeDelegateDefault"; ac_word=$2
34705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34706$as_echo_n "checking for $ac_word... " >&6; }
34707if ${ac_cv_path_WebPEncodeDelegate+:} false; then :
34708 $as_echo_n "(cached) " >&6
34709else
34710 case $WebPEncodeDelegate in
34711 [\\/]* | ?:[\\/]*)
34712 ac_cv_path_WebPEncodeDelegate="$WebPEncodeDelegate" # Let the user override the test with a path.
34713 ;;
34714 *)
34715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34716for as_dir in $PATH
34717do
34718 IFS=$as_save_IFS
34719 test -z "$as_dir" && as_dir=.
34720 for ac_exec_ext in '' $ac_executable_extensions; do
34721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34722 ac_cv_path_WebPEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34724 break 2
34725 fi
34726done
34727 done
34728IFS=$as_save_IFS
34729
34730 test -z "$ac_cv_path_WebPEncodeDelegate" && ac_cv_path_WebPEncodeDelegate=""$WebPEncodeDelegateDefault""
34731 ;;
34732esac
34733fi
34734WebPEncodeDelegate=$ac_cv_path_WebPEncodeDelegate
34735if test -n "$WebPEncodeDelegate"; then
34736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WebPEncodeDelegate" >&5
34737$as_echo "$WebPEncodeDelegate" >&6; }
34738else
34739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34740$as_echo "no" >&6; }
34741fi
34742
34743
cristy3ed852e2009-09-05 21:47:34 +000034744# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
34745set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034747$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034748if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034749 $as_echo_n "(cached) " >&6
34750else
34751 case $WMFDecodeDelegate in
34752 [\\/]* | ?:[\\/]*)
34753 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
34754 ;;
34755 *)
34756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34757for as_dir in $PATH
34758do
34759 IFS=$as_save_IFS
34760 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034761 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034763 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034765 break 2
34766 fi
34767done
cristy8b350f62009-11-15 23:12:43 +000034768 done
cristy3ed852e2009-09-05 21:47:34 +000034769IFS=$as_save_IFS
34770
34771 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
34772 ;;
34773esac
34774fi
34775WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
34776if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034778$as_echo "$WMFDecodeDelegate" >&6; }
34779else
cristy8b350f62009-11-15 23:12:43 +000034780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034781$as_echo "no" >&6; }
34782fi
34783
34784
34785# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
34786set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034788$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034789if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034790 $as_echo_n "(cached) " >&6
34791else
34792 case $WWWDecodeDelegate in
34793 [\\/]* | ?:[\\/]*)
34794 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
34795 ;;
34796 *)
34797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34798for as_dir in $PATH
34799do
34800 IFS=$as_save_IFS
34801 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034802 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034804 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034806 break 2
34807 fi
34808done
cristy8b350f62009-11-15 23:12:43 +000034809 done
cristy3ed852e2009-09-05 21:47:34 +000034810IFS=$as_save_IFS
34811
34812 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
34813 ;;
34814esac
34815fi
34816WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
34817if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034819$as_echo "$WWWDecodeDelegate" >&6; }
34820else
cristy8b350f62009-11-15 23:12:43 +000034821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034822$as_echo "no" >&6; }
34823fi
34824
34825
34826# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
34827set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034829$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034830if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034831 $as_echo_n "(cached) " >&6
34832else
34833 case $XPSDelegate in
34834 [\\/]* | ?:[\\/]*)
34835 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
34836 ;;
34837 *)
34838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34839for as_dir in $PATH
34840do
34841 IFS=$as_save_IFS
34842 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034843 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034845 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034847 break 2
34848 fi
34849done
cristy8b350f62009-11-15 23:12:43 +000034850 done
cristy3ed852e2009-09-05 21:47:34 +000034851IFS=$as_save_IFS
34852
34853 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
34854 ;;
34855esac
34856fi
34857XPSDelegate=$ac_cv_path_XPSDelegate
34858if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034860$as_echo "$XPSDelegate" >&6; }
34861else
cristy8b350f62009-11-15 23:12:43 +000034862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034863$as_echo "no" >&6; }
34864fi
34865
34866
34867# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
34868set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034870$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034871if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034872 $as_echo_n "(cached) " >&6
34873else
34874 case $ZipDelegate in
34875 [\\/]* | ?:[\\/]*)
34876 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
34877 ;;
34878 *)
34879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34880for as_dir in $PATH
34881do
34882 IFS=$as_save_IFS
34883 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034884 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034885 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034886 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034888 break 2
34889 fi
34890done
cristy8b350f62009-11-15 23:12:43 +000034891 done
cristy3ed852e2009-09-05 21:47:34 +000034892IFS=$as_save_IFS
34893
34894 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
34895 ;;
34896esac
34897fi
34898ZipDelegate=$ac_cv_path_ZipDelegate
34899if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034901$as_echo "$ZipDelegate" >&6; }
34902else
cristy8b350f62009-11-15 23:12:43 +000034903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034904$as_echo "no" >&6; }
34905fi
34906
34907
34908
34909# Prefer lpr to lp; lp needs options tacked on.
34910if test "$LPRDelegate" != no; then
34911 PrintDelegate="$LPRDelegate"
34912else
34913 PrintDelegate="$LPDelegate -c -s"
34914fi
34915
34916
34917# Installed ImageMagick utiltity paths
34918ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
34919DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
34920MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
34921
34922# Set delegate booleans
cristy81ab5af2013-10-06 18:28:39 +000034923have_avconv='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_avconv='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034924have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
34925have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
34926have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000034927have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034928have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
34929have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034930have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
34931
34932#
34933# Test for font directories
34934#
34935type_include_files=''
34936
cristy5a3dc992014-12-05 19:50:04 +000034937 Apple fonts.
34938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Apple fonts directory" >&5
34939$as_echo_n "checking for Apple fonts directory... " >&6; }
34940apple_font_dir=''
34941if test "${with_apple_font_dir}" != 'default'; then
34942 apple_font_dir="${with_apple_font_dir}/"
34943else
34944 for font_dir in '/Library/Fonts/'; do
34945 if test -f "${font_dir}Arial.ttf"; then
34946 apple_font_dir="${font_dir}"
34947 break 1
34948 fi
34949 done
34950fi
34951if test "${apple_font_dir}x" != 'x'; then
34952 type_include_files="${type_include_files} "'<include file="type-apple.xml" />'
34953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apple_font_dir" >&5
34954$as_echo "$apple_font_dir" >&6; }
34955else
34956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
34957$as_echo "not found!" >&6; };
34958fi
34959
34960
cristy430a7312010-01-21 20:44:04 +000034961# Dejavu fonts.
34962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
34963$as_echo_n "checking for Dejavu fonts directory... " >&6; }
34964dejavu_font_dir=''
34965if test "${with_dejavu_font_dir}" != 'default'; then
34966 dejavu_font_dir="${with_dejavu_font_dir}/"
34967else
34968 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
34969 if test -f "${font_dir}DejaVuSerif.ttf"; then
34970 dejavu_font_dir="${font_dir}"
34971 break 1
34972 fi
34973 done
34974fi
34975if test "${dejavu_font_dir}x" != 'x'; then
34976 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
cristyad38abe2012-12-23 23:03:21 +000034977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
34978$as_echo "$dejavu_font_dir" >&6; }
cristy430a7312010-01-21 20:44:04 +000034979else
cristyad38abe2012-12-23 23:03:21 +000034980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
34981$as_echo "not found!" >&6; };
cristy430a7312010-01-21 20:44:04 +000034982fi
34983
34984
cristy3ed852e2009-09-05 21:47:34 +000034985# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000034986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000034987$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
34988ghostscript_font_dir=''
34989if test "${with_gs_font_dir}" != 'default'; then
34990 ghostscript_font_dir="${with_gs_font_dir}/"
34991else
34992 if test "${native_win32_build}" = 'yes'; then
34993 # Native Windows Build
34994 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
34995 if test -f "${font_dir}a010013l.pfb"; then
34996 ghostscript_font_dir="$font_dir"
34997 break 1
34998 fi
34999 done
35000 if test "${PSDelegate}" != 'gswin32c'; then
35001 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
35002 fi
35003 else
35004 # Linux / Mac OS X / Unix Build
35005 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
35006 if test -f "${font_dir}a010013l.pfb"; then
35007 ghostscript_font_dir="${font_dir}"
35008 break 1
35009 fi
35010 done
35011 if test "${ghostscript_font_dir}x" = 'x'; then
35012 if test "$PSDelegate" != 'gs'; then
35013 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
35014 fi
35015 fi
35016 fi
35017fi
35018if test "${ghostscript_font_dir}x" != 'x'; then
35019 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristyad38abe2012-12-23 23:03:21 +000035020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
35021$as_echo "$ghostscript_font_dir" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035022else
cristyad38abe2012-12-23 23:03:21 +000035023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
35024$as_echo "not found!" >&6; };
cristy3ed852e2009-09-05 21:47:34 +000035025fi
35026
35027case "${build_os}" in
35028 mingw* )
35029 PSDelegate=`$WinPathScript "$PSDelegate" 1`
35030 ;;
35031esac
35032
cristy5a3dc992014-12-05 19:50:04 +000035033# Windows fonts.
35034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows fonts directory" >&5
35035$as_echo_n "checking for Windows fonts directory... " >&6; }
35036windows_font_dir=''
35037if test "${with_windows_font_dir}" != 'default'; then
35038 windows_font_dir="${with_windows_font_dir}/"
35039else
35040 for font_dir in '/usr/X11R6/lib/X11/fonts/truetype/' '/usr/X11R7/lib/X11/fonts/truetype/' '/usr/share/fonts/msttcore/'; do
35041 if test -f "${font_dir}arial.ttf"; then
35042 windows_font_dir="${font_dir}"
35043 break 1
35044 fi
35045 done
35046fi
35047if test "${windows_font_dir}x" != 'x'; then
35048 type_include_files="${type_include_files} "'<include file="type-windows.xml" />'
35049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $windows_font_dir" >&5
35050$as_echo "$windows_font_dir" >&6; }
35051else
35052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
35053$as_echo "not found!" >&6; };
35054fi
35055
35056
cristy3ed852e2009-09-05 21:47:34 +000035057
35058
35059#
35060# Handle case where user doesn't want frozen paths
35061#
35062if test "$with_frozenpaths" != 'yes'; then
35063 # Re-set delegate definitions to default (no paths)
35064 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035065 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
35066 BZIPDelegate="$BZIPDelegateDefault"
35067 BrowseDelegate="$BrowseDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035068 CatDelegate="$CatDelegateDefault"
35069 ConvertDelegate="$ConvertDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000035070 DisplayDelegate="$DisplayDelegateDefault"
35071 DNGDecodeDelegate="$DNGDecodeDelegateDefault"
cristy66f238e2014-05-16 12:21:48 +000035072 DOCDecodeDelegate="$DOCDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035073 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
35074 EchoDelegate="$EchoDelegateDefault"
35075 EditorDelegate="$EditorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035076 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000035077 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035078 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
35079 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
35080 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
35081 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000035082 JXRDecodeDelegate="$JXRDecodeDelegateDefault"
35083 JXREncodeDelegate="$JXREncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035084 LPDelegate="$LPDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035085 LaunchDelegate="$LaunchDelegateDefault"
35086 MANDelegate="$MANDelegateDefault"
35087 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
35088 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035089 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000035090 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
35091 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035092 PCLDelegate="$PCLDelegateDefault"
35093 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
35094 POVDelegate="$POVDelegateDefault"
35095 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035096 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
35097 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000035098 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035099 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
cristyec6934f2012-08-14 18:38:40 +000035100 SVGDecodeDelegate="$SVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035101 ShowImageDelegate="$ShowImageDelegateDefault"
35102 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000035103 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy86e86092013-08-04 17:43:57 +000035104 WebPDecodeDelegate="$WebPDecodeDelegateDefault"
35105 WebPEncodeDelegate="$WebPEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035106 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
35107 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
35108 XPSDelegate="$XPSDelegateDefault"
35109 ZipDelegate="$ZipDelegateDefault"
35110fi
35111
35112# Delegate substitutions
35113
35114
35115
35116
35117
35118
35119
35120
35121
35122
35123
35124
35125
35126
35127
35128
35129
35130
35131
35132
35133
35134
35135
35136
35137
35138
35139
35140
35141
35142
35143
35144
35145
35146
35147
35148
35149
35150
35151
35152
cristy71f53d52013-04-27 13:33:59 +000035153
35154
cristy3ed852e2009-09-05 21:47:34 +000035155#
35156# RPM support.
35157#
35158RPM=''
35159for ac_prog in gnutar gtar tar
35160do
35161 # Extract the first word of "$ac_prog", so it can be a program name with args.
35162set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035164$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035165if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035166 $as_echo_n "(cached) " >&6
35167else
35168 if test -n "$TAR"; then
35169 ac_cv_prog_TAR="$TAR" # Let the user override the test.
35170else
35171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35172for as_dir in $PATH
35173do
35174 IFS=$as_save_IFS
35175 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035176 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035178 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035180 break 2
35181 fi
35182done
cristy8b350f62009-11-15 23:12:43 +000035183 done
cristy3ed852e2009-09-05 21:47:34 +000035184IFS=$as_save_IFS
35185
35186fi
35187fi
35188TAR=$ac_cv_prog_TAR
35189if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000035190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000035191$as_echo "$TAR" >&6; }
35192else
cristy8b350f62009-11-15 23:12:43 +000035193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035194$as_echo "no" >&6; }
35195fi
35196
35197
35198 test -n "$TAR" && break
35199done
35200
35201for ac_prog in perl
35202do
35203 # Extract the first word of "$ac_prog", so it can be a program name with args.
35204set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035206$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035207if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035208 $as_echo_n "(cached) " >&6
35209else
35210 if test -n "$PERL"; then
35211 ac_cv_prog_PERL="$PERL" # Let the user override the test.
35212else
35213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35214for as_dir in $PATH
35215do
35216 IFS=$as_save_IFS
35217 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035218 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035220 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035222 break 2
35223 fi
35224done
cristy8b350f62009-11-15 23:12:43 +000035225 done
cristy3ed852e2009-09-05 21:47:34 +000035226IFS=$as_save_IFS
35227
35228fi
35229fi
35230PERL=$ac_cv_prog_PERL
35231if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000035232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035233$as_echo "$PERL" >&6; }
35234else
cristy8b350f62009-11-15 23:12:43 +000035235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035236$as_echo "no" >&6; }
35237fi
35238
35239
35240 test -n "$PERL" && break
35241done
35242
35243for ac_prog in rpmbuild rpm
35244do
35245 # Extract the first word of "$ac_prog", so it can be a program name with args.
35246set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035248$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035249if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035250 $as_echo_n "(cached) " >&6
35251else
35252 if test -n "$RPM"; then
35253 ac_cv_prog_RPM="$RPM" # Let the user override the test.
35254else
35255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35256for as_dir in $PATH
35257do
35258 IFS=$as_save_IFS
35259 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035260 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035262 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035264 break 2
35265 fi
35266done
cristy8b350f62009-11-15 23:12:43 +000035267 done
cristy3ed852e2009-09-05 21:47:34 +000035268IFS=$as_save_IFS
35269
35270fi
35271fi
35272RPM=$ac_cv_prog_RPM
35273if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000035274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000035275$as_echo "$RPM" >&6; }
35276else
cristy8b350f62009-11-15 23:12:43 +000035277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035278$as_echo "no" >&6; }
35279fi
35280
35281
35282 test -n "$RPM" && break
35283done
35284
35285
cristy73bd4a52010-10-05 11:24:23 +000035286ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
35287
35288
35289AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
35290
35291
35292AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
35293
35294
35295AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
35296
35297
35298 if test "x$RPM" != "x" ; then
35299 RPM_DELEGATE_TRUE=
35300 RPM_DELEGATE_FALSE='#'
35301else
35302 RPM_DELEGATE_TRUE='#'
35303 RPM_DELEGATE_FALSE=
35304fi
35305
cristy3ed852e2009-09-05 21:47:34 +000035306
35307#
35308# 7ZIP support (http://p7zip.sourceforge.net/)
35309#
35310P7ZIP=''
35311for ac_prog in 7za
35312do
35313 # Extract the first word of "$ac_prog", so it can be a program name with args.
35314set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035316$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035317if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035318 $as_echo_n "(cached) " >&6
35319else
35320 if test -n "$P7ZIP"; then
35321 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
35322else
35323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35324for as_dir in $PATH
35325do
35326 IFS=$as_save_IFS
35327 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035328 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035330 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035332 break 2
35333 fi
35334done
cristy8b350f62009-11-15 23:12:43 +000035335 done
cristy3ed852e2009-09-05 21:47:34 +000035336IFS=$as_save_IFS
35337
35338fi
35339fi
35340P7ZIP=$ac_cv_prog_P7ZIP
35341if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000035342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000035343$as_echo "$P7ZIP" >&6; }
35344else
cristy8b350f62009-11-15 23:12:43 +000035345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035346$as_echo "no" >&6; }
35347fi
35348
35349
35350 test -n "$P7ZIP" && break
35351done
35352
35353
cristy73bd4a52010-10-05 11:24:23 +000035354 if test "x$P7ZIP" != "x" ; then
35355 P7ZIP_DELEGATE_TRUE=
35356 P7ZIP_DELEGATE_FALSE='#'
35357else
35358 P7ZIP_DELEGATE_TRUE='#'
35359 P7ZIP_DELEGATE_FALSE=
35360fi
35361
cristy3ed852e2009-09-05 21:47:34 +000035362
35363#
35364# ZIP support (http://www.info-zip.org/Zip.html)
35365#
35366ZIP=''
35367for ac_prog in zip
35368do
35369 # Extract the first word of "$ac_prog", so it can be a program name with args.
35370set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035372$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035373if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035374 $as_echo_n "(cached) " >&6
35375else
35376 if test -n "$ZIP"; then
35377 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
35378else
35379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35380for as_dir in $PATH
35381do
35382 IFS=$as_save_IFS
35383 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035384 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035386 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035388 break 2
35389 fi
35390done
cristy8b350f62009-11-15 23:12:43 +000035391 done
cristy3ed852e2009-09-05 21:47:34 +000035392IFS=$as_save_IFS
35393
35394fi
35395fi
35396ZIP=$ac_cv_prog_ZIP
35397if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000035398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000035399$as_echo "$ZIP" >&6; }
35400else
cristy8b350f62009-11-15 23:12:43 +000035401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035402$as_echo "no" >&6; }
35403fi
35404
35405
35406 test -n "$ZIP" && break
35407done
35408
35409
cristy73bd4a52010-10-05 11:24:23 +000035410 if test "x$ZIP" != "x" ; then
35411 ZIP_DELEGATE_TRUE=
35412 ZIP_DELEGATE_FALSE='#'
35413else
35414 ZIP_DELEGATE_TRUE='#'
35415 ZIP_DELEGATE_FALSE=
35416fi
35417
cristy3ed852e2009-09-05 21:47:34 +000035418
35419#
35420# GhostPCL related configuration.
35421#
35422PCLColorDevice=ppmraw
cristy8bc84082011-09-07 13:57:00 +000035423PCLCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000035424PCLMonoDevice=pbmraw
35425if test -z "$PCLVersion"; then
35426 PCLVersion='unknown'
35427fi
35428if test $have_pcl = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35430$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035432$as_echo_n "checking for PCL... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35434$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035435 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000035436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035437$as_echo_n "checking for pcl color device... " >&6; }
35438 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35439 :
35440 else
35441 PCLColorDevice=ppmraw
35442 fi
cristyad38abe2012-12-23 23:03:21 +000035443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
35444$as_echo "$PCLColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035445
35446 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035448$as_echo_n "checking for pcl CMYK device... " >&6; }
35449 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35450 :
35451 else
35452 PCLCMYKDevice=$PCLColorDevice
35453 fi
cristyad38abe2012-12-23 23:03:21 +000035454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
35455$as_echo "$PCLCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035456
35457 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035459$as_echo_n "checking for pcl mono device... " >&6; }
35460 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35461 :
35462 else
35463 PCLMonoDevice=$PCLColorDevice
35464 fi
cristyad38abe2012-12-23 23:03:21 +000035465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
35466$as_echo "$PCLMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035467fi
35468
35469
35470
35471
35472
35473
35474#
35475# GhostXPS related configuration.
35476#
35477XPSColorDevice=ppmraw
35478XPSCMYKDevice=bmpsep8
35479XPSMonoDevice=pbmraw
35480if test -z "$XPSVersion"; then
35481 XPSVersion='unknown'
35482fi
35483if test $have_xps = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35485$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000035487$as_echo_n "checking for XPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35489$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035490 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035492$as_echo_n "checking for xps color device... " >&6; }
35493 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35494 :
35495 else
35496 XPSColorDevice=ppmraw
35497 fi
cristyad38abe2012-12-23 23:03:21 +000035498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
35499$as_echo "$XPSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035500
35501 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035503$as_echo_n "checking for xps CMYK device... " >&6; }
35504 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35505 :
35506 else
35507 XPSCMYKDevice=$XPSColorDevice
35508 fi
cristyad38abe2012-12-23 23:03:21 +000035509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
35510$as_echo "$XPSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035511
35512 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035514$as_echo_n "checking for xps mono device... " >&6; }
35515 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35516 :
35517 else
35518 XPSMonoDevice=$XPSColorDevice
35519 fi
cristyad38abe2012-12-23 23:03:21 +000035520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
35521$as_echo "$XPSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035522fi
35523
35524
35525
35526
35527
35528
35529#
35530# Ghostscript related configuration.
35531#
cristya97426c2011-02-04 01:41:27 +000035532GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000035533GSColorDevice=pnmraw
35534GSCMYKDevice=pam
35535GSMonoDevice=pbmraw
35536GSPDFDevice=pdfwrite
cristyb096ea52013-10-26 20:56:38 +000035537GSPSDevice=ps2write
cristy3ed852e2009-09-05 21:47:34 +000035538GSEPSDevice=epswrite
35539GSVersion='unknown'
35540if test $have_gs = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35542$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000035544$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35546$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000035548$as_echo_n "checking for Ghostscript version... " >&6; }
35549 if GSVersion=`$PSDelegate --version`; then
35550 :
35551 else
35552 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
35553 fi
cristyad38abe2012-12-23 23:03:21 +000035554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
35555$as_echo "$GSVersion" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035556
35557 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000035558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035559$as_echo_n "checking for gs alpha device... " >&6; }
35560 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35561 :
35562 else
35563 GSAlphaDevice=pnmraw
35564 fi
cristyad38abe2012-12-23 23:03:21 +000035565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
35566$as_echo "$GSAlphaDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035567
35568 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035570$as_echo_n "checking for gs color device... " >&6; }
35571 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35572 :
35573 else
35574 GSColorDevice=pnmraw
35575 fi
cristyad38abe2012-12-23 23:03:21 +000035576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
35577$as_echo "$GSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035578
35579 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035581$as_echo_n "checking for gs CMYK device... " >&6; }
35582 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35583 :
35584 else
35585 GSCMYKDevice=bmpsep8
35586 fi
cristyad38abe2012-12-23 23:03:21 +000035587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
35588$as_echo "$GSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035589
35590 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035592$as_echo_n "checking for gs mono device... " >&6; }
35593 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35594 :
35595 else
35596 GSMonoDevice=$GSColorDevice
35597 fi
cristyad38abe2012-12-23 23:03:21 +000035598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
35599$as_echo "$GSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035600
35601 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000035602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035603$as_echo_n "checking for gs PDF writing device... " >&6; }
35604 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35605 :
35606 else
35607 GSPDFDevice=nodevice
35608 fi
cristyad38abe2012-12-23 23:03:21 +000035609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
35610$as_echo "$GSPDFDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035611
35612 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000035613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035614$as_echo_n "checking for gs PS writing device... " >&6; }
35615 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35616 :
35617 else
35618 GSPSDevice=nodevice
35619 fi
cristyad38abe2012-12-23 23:03:21 +000035620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
35621$as_echo "$GSPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035622
35623 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000035624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035625$as_echo_n "checking for gs EPS writing device... " >&6; }
35626 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35627 :
35628 else
35629 GSEPSDevice=nodevice
35630 fi
cristyad38abe2012-12-23 23:03:21 +000035631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
35632$as_echo "$GSEPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035633fi
35634
35635
35636
35637
35638
35639
35640
35641
35642
35643
35644#
35645# PerlMagick-related configuration
35646#
35647
35648# Look for PERL if PerlMagick requested
35649# If name/path of desired PERL interpreter is specified, look for that one first
35650have_perl='no'
35651if test "$with_perl" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000035652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35653$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035655$as_echo_n "checking for Perl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35657$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035658 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035660$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035661if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035662 $as_echo_n "(cached) " >&6
35663else
35664 ac_cv_path_PERL="$with_perl"
35665fi
cristy8b350f62009-11-15 23:12:43 +000035666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035667$as_echo "$ac_cv_path_PERL" >&6; };
35668 PERL=$ac_cv_path_PERL
35669 have_perl="$ac_cv_path_PERL"
35670 else
35671 for ac_prog in perl perl5
35672do
35673 # Extract the first word of "$ac_prog", so it can be a program name with args.
35674set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035676$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035677if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035678 $as_echo_n "(cached) " >&6
35679else
35680 case $PERL in
35681 [\\/]* | ?:[\\/]*)
35682 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
35683 ;;
35684 *)
35685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35686for as_dir in $PATH
35687do
35688 IFS=$as_save_IFS
35689 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035690 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035692 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035694 break 2
35695 fi
35696done
cristy8b350f62009-11-15 23:12:43 +000035697 done
cristy3ed852e2009-09-05 21:47:34 +000035698IFS=$as_save_IFS
35699
35700 ;;
35701esac
35702fi
35703PERL=$ac_cv_path_PERL
35704if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000035705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035706$as_echo "$PERL" >&6; }
35707else
cristy8b350f62009-11-15 23:12:43 +000035708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035709$as_echo "no" >&6; }
35710fi
35711
35712
35713 test -n "$PERL" && break
35714done
35715 if test "$ac_cv_path_PERL"; then
35716 have_perl="$ac_cv_path_PERL"
35717 fi
35718 fi
35719fi
35720
cristy949301e2010-01-06 01:38:40 +000035721if test "$with_perl" != 'yes' ; then
35722 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
35723fi
35724
35725PERL_SUPPORTS_DESTDIR='no'
35726
cristy3ed852e2009-09-05 21:47:34 +000035727with_perl_static='no'
35728with_perl_dynamic='no'
35729if test "$have_perl" != 'no'; then
35730 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
35731 with_perl_static='yes'
35732 fi
35733 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
35734 with_perl_dynamic='yes'
35735 fi
35736 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000035737
35738
35739
35740
35741 if test -n "$PERL"; then :
35742
35743 ax_perl_version="5.8.1"
35744
35745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
35746$as_echo_n "checking for perl version... " >&6; }
35747
cristy17491be2014-06-24 01:10:53 +000035748 perl_version=`$PERL --version 2>&1 \
35749 | $SED -n -e '/This is perl/b inspect
35750b
35751: inspect
35752s/.* (\{0,1\}v\([0-9]*\.[0-9]*\.[0-9]*\))\{0,1\} .*/\1/;p'`
cristy73bd4a52010-10-05 11:24:23 +000035753
35754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
35755$as_echo "$perl_version" >&6; }
35756
35757 PERL_VERSION=$perl_version
35758
35759
35760
35761
35762
35763 # Used to indicate true or false condition
35764 ax_compare_version=false
35765
35766 # Convert the two version strings to be compared into a format that
35767 # allows a simple string comparison. The end result is that a version
35768 # string of the form 1.12.5-r617 will be converted to the form
35769 # 0001001200050617. In other words, each number is zero padded to four
35770 # digits, and non digits are removed.
35771
35772 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35773 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35774 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35775 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35776 -e 's/[^0-9]//g'`
35777
35778
35779 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35780 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35781 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35782 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35783 -e 's/[^0-9]//g'`
35784
35785
35786 ax_compare_version=`echo "x$ax_compare_version_A
35787x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
35788
35789
35790
35791 if test "$ax_compare_version" = "true" ; then
35792
35793 :
35794 PERL_SUPPORTS_DESTDIR='yes'
35795
35796 else
35797 :
35798 PERL_SUPPORTS_DESTDIR='no'
35799
35800 fi
35801
35802
35803else
35804
35805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
35806$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
35807 PERL_SUPPORTS_DESTDIR='no'
35808
cristy3ed852e2009-09-05 21:47:34 +000035809fi
cristy73bd4a52010-10-05 11:24:23 +000035810
35811fi
35812 if test "$have_perl" != 'no'; then
35813 WITH_PERL_TRUE=
35814 WITH_PERL_FALSE='#'
35815else
35816 WITH_PERL_TRUE='#'
35817 WITH_PERL_FALSE=
35818fi
35819
35820 if test $with_perl_static = 'yes'; then
35821 WITH_PERL_STATIC_TRUE=
35822 WITH_PERL_STATIC_FALSE='#'
35823else
35824 WITH_PERL_STATIC_TRUE='#'
35825 WITH_PERL_STATIC_FALSE=
35826fi
35827
35828 if test $with_perl_dynamic = 'yes'; then
35829 WITH_PERL_DYNAMIC_TRUE=
35830 WITH_PERL_DYNAMIC_FALSE='#'
35831else
35832 WITH_PERL_DYNAMIC_TRUE='#'
35833 WITH_PERL_DYNAMIC_FALSE=
35834fi
35835
cristy3ed852e2009-09-05 21:47:34 +000035836
35837
35838# Determine path to pick up MagickCore library from for use with building PerlMagick
35839MAGICKCORE_PATH="${LIB_DIR}"
35840if test $with_perl_static = 'yes'; then
35841 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
35842 libtool_objdir=$objdir
35843
35844 # Linker search path to library, followed by -lMagickCore
cristy4c08aed2011-07-01 19:47:50 +000035845 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
cristy3ed852e2009-09-05 21:47:34 +000035846fi
35847
35848
cristy2a3eb392012-12-17 13:39:20 +000035849# Create a simple string containing format names for all delegate libraries.
cristy422d5502012-12-22 22:20:57 +000035850MAGICK_DELEGATES=''
cristy2a3eb392012-12-17 13:39:20 +000035851if test "$have_autotrace" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035852 MAGICK_DELEGATES="$MAGICK_DELEGATES autotrace"
cristy3ed852e2009-09-05 21:47:34 +000035853fi
cristy2a3eb392012-12-17 13:39:20 +000035854if test "$have_bzlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035855 MAGICK_DELEGATES="$MAGICK_DELEGATES bzlib"
cristy2a3eb392012-12-17 13:39:20 +000035856fi
35857if test "$have_dps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035858 MAGICK_DELEGATES="$MAGICK_DELEGATES dps"
cristy2a3eb392012-12-17 13:39:20 +000035859fi
35860if test "$have_djvu" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035861 MAGICK_DELEGATES="$MAGICK_DELEGATES djvu"
cristy2a3eb392012-12-17 13:39:20 +000035862fi
cristy81ab5af2013-10-06 18:28:39 +000035863if test "$have_avconv" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035864 MAGICK_DELEGATES="$MAGICK_DELEGATES mpeg"
cristy2a3eb392012-12-17 13:39:20 +000035865fi
35866if test "$have_fftw" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035867 MAGICK_DELEGATES="$MAGICK_DELEGATES fftw"
cristy2a3eb392012-12-17 13:39:20 +000035868fi
cristy2a3eb392012-12-17 13:39:20 +000035869if test "$have_fpx" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035870 MAGICK_DELEGATES="$MAGICK_DELEGATES fpx"
cristy2a3eb392012-12-17 13:39:20 +000035871fi
35872if test "$have_fontconfig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035873 MAGICK_DELEGATES="$MAGICK_DELEGATES fontconfig"
cristy2a3eb392012-12-17 13:39:20 +000035874fi
35875if test "$have_freetype" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035876 MAGICK_DELEGATES="$MAGICK_DELEGATES freetype"
cristy2a3eb392012-12-17 13:39:20 +000035877fi
35878if test "$have_gslib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035879 MAGICK_DELEGATES="$MAGICK_DELEGATES gslib"
cristy2a3eb392012-12-17 13:39:20 +000035880fi
35881if test "$have_jbig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035882 MAGICK_DELEGATES="$MAGICK_DELEGATES jbig"
cristy2a3eb392012-12-17 13:39:20 +000035883fi
35884if test "$have_png$have_jpeg" = 'yesyes' ; then
cristy422d5502012-12-22 22:20:57 +000035885 MAGICK_DELEGATES="$MAGICK_DELEGATES jng"
cristy2a3eb392012-12-17 13:39:20 +000035886fi
35887if test "$have_jp2" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035888 MAGICK_DELEGATES="$MAGICK_DELEGATES jp2"
cristy2a3eb392012-12-17 13:39:20 +000035889fi
35890if test "$have_jpeg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035891 MAGICK_DELEGATES="$MAGICK_DELEGATES jpeg"
cristy2a3eb392012-12-17 13:39:20 +000035892fi
35893if test "$have_lcms" = 'yes' || test "$have_lcms2" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035894 MAGICK_DELEGATES="$MAGICK_DELEGATES lcms"
cristy2a3eb392012-12-17 13:39:20 +000035895fi
35896if test "$have_lqr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035897 MAGICK_DELEGATES="$MAGICK_DELEGATES lqr"
cristy2a3eb392012-12-17 13:39:20 +000035898fi
35899if test "$have_lzma" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035900 MAGICK_DELEGATES="$MAGICK_DELEGATES lzma"
cristy2a3eb392012-12-17 13:39:20 +000035901fi
35902if test "$have_openexr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035903 MAGICK_DELEGATES="$MAGICK_DELEGATES openexr"
cristy2a3eb392012-12-17 13:39:20 +000035904fi
cristy99db3872014-01-01 15:11:34 +000035905if test "$have_openjp2" = 'yes' ; then
35906 MAGICK_DELEGATES="$MAGICK_DELEGATES openjp2"
cristy3fe09452014-01-01 12:29:14 +000035907fi
cristy2a3eb392012-12-17 13:39:20 +000035908if test "$have_pango" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035909 MAGICK_DELEGATES="$MAGICK_DELEGATES pango"
cristy2a3eb392012-12-17 13:39:20 +000035910fi
35911if test "$have_png" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035912 MAGICK_DELEGATES="$MAGICK_DELEGATES png"
cristy2a3eb392012-12-17 13:39:20 +000035913fi
35914have_ps='no'
35915if test "$have_dps" = 'yes' || \
35916 test "$have_gs" = 'yes' || \
35917 test "${native_win32_build}" = 'yes' ; then
35918 have_ps='yes'
35919fi
35920if test "$have_ps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035921 MAGICK_DELEGATES="$MAGICK_DELEGATES ps"
cristy2a3eb392012-12-17 13:39:20 +000035922fi
cristy2a3eb392012-12-17 13:39:20 +000035923if test "$have_ra_ppm" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035924 MAGICK_DELEGATES="$MAGICK_DELEGATES rad"
cristy2a3eb392012-12-17 13:39:20 +000035925fi
35926if test "$have_rsvg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035927 MAGICK_DELEGATES="$MAGICK_DELEGATES rsvg"
cristy2a3eb392012-12-17 13:39:20 +000035928fi
35929if test "$have_tiff" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035930 MAGICK_DELEGATES="$MAGICK_DELEGATES tiff"
cristy2a3eb392012-12-17 13:39:20 +000035931fi
35932if test "$have_ttf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035933 MAGICK_DELEGATES="$MAGICK_DELEGATES ttf"
cristy2a3eb392012-12-17 13:39:20 +000035934fi
cristy3b640ed2013-07-29 00:27:59 +000035935if test "$have_webp" = 'yes' ; then
35936 MAGICK_DELEGATES="$MAGICK_DELEGATES webp"
35937fi
cristy2a3eb392012-12-17 13:39:20 +000035938if test "$have_wmf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035939 MAGICK_DELEGATES="$MAGICK_DELEGATES wmf"
cristy2a3eb392012-12-17 13:39:20 +000035940fi
35941if test "$have_x" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035942 MAGICK_DELEGATES="$MAGICK_DELEGATES x"
cristy2a3eb392012-12-17 13:39:20 +000035943fi
35944if test "$have_xml" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035945 MAGICK_DELEGATES="$MAGICK_DELEGATES xml"
cristy2a3eb392012-12-17 13:39:20 +000035946fi
35947if test "$have_zlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035948 MAGICK_DELEGATES="$MAGICK_DELEGATES zlib"
cristy2a3eb392012-12-17 13:39:20 +000035949fi
cristy2a3eb392012-12-17 13:39:20 +000035950# Remove extraneous spaces from output variables (asthetic)
cristy422d5502012-12-22 22:20:57 +000035951MAGICK_DELEGATES=`echo $MAGICK_DELEGATES | sed -e 's/ */ /g'`
cristy2a3eb392012-12-17 13:39:20 +000035952MAGICK_FEATURES=`echo $MAGICK_FEATURES | sed -e 's/ */ /g'`
cristy3ed852e2009-09-05 21:47:34 +000035953
35954
cristyfa161182012-12-19 15:45:28 +000035955
cristy3ed852e2009-09-05 21:47:34 +000035956#
35957# Handle special compiler flags
35958#
35959
35960# Add '-p' if prof source profiling support enabled
35961if test "$enable_prof" = 'yes'; then
35962 CFLAGS="-p $CFLAGS"
35963 CXXFLAGS="-p $CXXFLAGS"
35964 LDFLAGS="-p $LDFLAGS"
35965fi
35966
35967# Add '-pg' if gprof source profiling support enabled
35968if test "$enable_gprof" = 'yes'; then
35969 CFLAGS="-pg $CFLAGS"
35970 CXXFLAGS="-pg $CXXFLAGS"
35971 LDFLAGS="-pg $LDFLAGS"
35972fi
35973
35974# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
35975# This is a gcc-specific feature
35976if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035978$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035979if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035980 $as_echo_n "(cached) " >&6
35981else
35982 ac_check_lib_save_LIBS=$LIBS
35983LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035984cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035985/* end confdefs.h. */
35986
35987/* Override any GCC internal prototype to avoid an error.
35988 Use char because int might match the return type of a GCC
35989 builtin and then its argument prototype would still apply. */
35990#ifdef __cplusplus
35991extern "C"
35992#endif
35993char _gcov_init ();
35994int
35995main ()
35996{
35997return _gcov_init ();
35998 ;
35999 return 0;
36000}
36001_ACEOF
cristy8b350f62009-11-15 23:12:43 +000036002if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000036003 ac_cv_lib_gcov__gcov_init=yes
36004else
cristy8b350f62009-11-15 23:12:43 +000036005 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000036006fi
cristy8b350f62009-11-15 23:12:43 +000036007rm -f core conftest.err conftest.$ac_objext \
36008 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000036009LIBS=$ac_check_lib_save_LIBS
36010fi
cristy8b350f62009-11-15 23:12:43 +000036011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000036012$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000036013if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000036014 cat >>confdefs.h <<_ACEOF
36015#define HAVE_LIBGCOV 1
36016_ACEOF
36017
36018 LIBS="-lgcov $LIBS"
36019
36020fi
36021
cristy8b350f62009-11-15 23:12:43 +000036022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000036023$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000036024if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000036025 $as_echo_n "(cached) " >&6
36026else
36027 ac_check_lib_save_LIBS=$LIBS
36028LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000036029cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000036030/* end confdefs.h. */
36031
36032/* Override any GCC internal prototype to avoid an error.
36033 Use char because int might match the return type of a GCC
36034 builtin and then its argument prototype would still apply. */
36035#ifdef __cplusplus
36036extern "C"
36037#endif
36038char __gcov_init ();
36039int
36040main ()
36041{
36042return __gcov_init ();
36043 ;
36044 return 0;
36045}
36046_ACEOF
cristy8b350f62009-11-15 23:12:43 +000036047if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000036048 ac_cv_lib_gcov___gcov_init=yes
36049else
cristy8b350f62009-11-15 23:12:43 +000036050 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000036051fi
cristy8b350f62009-11-15 23:12:43 +000036052rm -f core conftest.err conftest.$ac_objext \
36053 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000036054LIBS=$ac_check_lib_save_LIBS
36055fi
cristy8b350f62009-11-15 23:12:43 +000036056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000036057$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000036058if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000036059 cat >>confdefs.h <<_ACEOF
36060#define HAVE_LIBGCOV 1
36061_ACEOF
36062
36063 LIBS="-lgcov $LIBS"
36064
36065fi
36066
36067 case "$target_os" in
36068 darwin*)
36069 OSX_GCOV_LDFLAG="-Wl,-single_module"
36070 ;;
36071 *)
36072 OSX_GCOV_LDFLAG=""
36073 ;;
36074 esac
36075
36076 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
36077 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
36078 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
36079fi
36080
36081#
36082# Build library dependency list for libMagickCore
36083#
36084
cristyc6722092012-10-14 00:19:31 +000036085if test "$build_modules" != 'no'; then
cristy3b0097d2014-11-04 15:34:47 +000036086 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 +000036087else
cristy3b0097d2014-11-04 15:34:47 +000036088 MAGICK_DEP_LIBS="$USER_LIBS $JBIG_LIBS $LCMS_LIBS $TIFF_LIBS $FREETYPE_LIBS $JPEG_LIBS $GS_LIBS $LQR_LIBS $PNG_LIBS $AUTOTRACE_LIBS $DJVU_LIBS $FFTW_LIBS $FPX_LIBS $FONTCONFIG_LIBS $WEBP_LIBS $WMF_LIBS $DPS_LIBS $XEXT_LIBS $XT_LIBS $IPC_LIBS $X11_LIBS $LZMA_LIBS $BZLIB_LIBS $OPENEXR_LIBS $OPENJPEG_LIBS $PANGO_LIBS $RSVG_LIBS $XML_LIBS $GVC_LIBS $ZLIB_LIBS $GDI32_LIBS $MATH_LIBS $GOMP_LIBS $CL_LIBS $UMEM_LIBS $JEMALLOC_LIBS $THREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000036089fi
36090
36091
36092#
36093# Remove extraneous spaces from output variables (asthetic)
36094#
36095X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
36096X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
36097X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
36098X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
36099
36100CC=`echo $CC | sed -e 's/ */ /g'`
36101CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
36102CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
36103CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
cristy3ed852e2009-09-05 21:47:34 +000036104DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
36105LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
36106TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
36107MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
36108#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
36109
36110# Pass only user-provided LIBS as "global" libraries
36111LIBS=$USER_LIBS
36112
36113#AC_SUBST(CPPFLAGS)
36114
36115#AC_SUBST(LDFLAGS)
36116#AC_SUBST(X_PRE_LIBS)
36117#AC_SUBST(X_LIBS)
36118#AC_SUBST(X_EXTRA_LIBS)
36119
36120MAGICK_CFLAGS=$CFLAGS
36121MAGICK_CXXFLAGS="$CXXFLAGS"
36122MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
36123MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
36124MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
cristy31b9e072013-10-17 15:02:53 +000036125MAGICK_LIBS="$MAGICK_DEP_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000036126
36127
36128
36129
36130
36131
36132
36133
36134# Set configured scripts to executable.
36135ac_config_commands="$ac_config_commands default"
36136
cristy2bd4b6e2012-07-22 15:29:11 +000036137ac_config_commands="$ac_config_commands magick.sh.in"
36138
cristy3ed852e2009-09-05 21:47:34 +000036139ac_config_commands="$ac_config_commands MagickCore-config.in"
36140
cristy3ed852e2009-09-05 21:47:34 +000036141ac_config_commands="$ac_config_commands MagickWand-config.in"
36142
cristy3ed852e2009-09-05 21:47:34 +000036143ac_config_commands="$ac_config_commands Magick++-config.in"
36144
36145ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
36146
36147
cristyad38abe2012-12-23 23:03:21 +000036148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
36149$as_echo "-------------------------------------------------------------" >&6; }
36150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
36151$as_echo "Update ImageMagick configuration" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000036152cat >confcache <<\_ACEOF
36153# This file is a shell script that caches the results of configure
36154# tests run on this system so they can be shared between configure
36155# scripts and configure runs, see configure's option --config-cache.
36156# It is not useful on other systems. If it contains results you don't
36157# want to keep, you may remove or edit it.
36158#
36159# config.status only pays attention to the cache file if you give it
36160# the --recheck option to rerun configure.
36161#
36162# `ac_cv_env_foo' variables (set or unset) will be overridden when
36163# loading this file, other *unset* `ac_cv_foo' will be assigned the
36164# following values.
36165
36166_ACEOF
36167
36168# The following way of writing the cache mishandles newlines in values,
36169# but we know of no workaround that is simple, portable, and efficient.
36170# So, we kill variables containing newlines.
36171# Ultrix sh set writes to stderr and can't be redirected directly,
36172# and sets the high bit in the cache file unless we assign to the vars.
36173(
36174 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
36175 eval ac_val=\$$ac_var
36176 case $ac_val in #(
36177 *${as_nl}*)
36178 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000036179 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000036180$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
36181 esac
36182 case $ac_var in #(
36183 _ | IFS | as_nl) ;; #(
36184 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000036185 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000036186 esac ;;
36187 esac
36188 done
36189
36190 (set) 2>&1 |
36191 case $as_nl`(ac_space=' '; set) 2>&1` in #(
36192 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000036193 # `set' does not quote correctly, so add quotes: double-quote
36194 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000036195 sed -n \
36196 "s/'/'\\\\''/g;
36197 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
36198 ;; #(
36199 *)
36200 # `set' quotes correctly as required by POSIX, so do not add quotes.
36201 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
36202 ;;
36203 esac |
36204 sort
36205) |
36206 sed '
36207 /^ac_cv_env_/b end
36208 t clear
36209 :clear
36210 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
36211 t end
36212 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
36213 :end' >>confcache
36214if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
36215 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000036216 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000036217 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000036218$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000036219 if test ! -f "$cache_file" || test -h "$cache_file"; then
36220 cat confcache >"$cache_file"
36221 else
36222 case $cache_file in #(
36223 */* | ?:*)
36224 mv -f confcache "$cache_file"$$ &&
36225 mv -f "$cache_file"$$ "$cache_file" ;; #(
36226 *)
36227 mv -f confcache "$cache_file" ;;
36228 esac
36229 fi
36230 fi
cristy3ed852e2009-09-05 21:47:34 +000036231 else
cristy8b350f62009-11-15 23:12:43 +000036232 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000036233$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
36234 fi
36235fi
36236rm -f confcache
36237
36238test "x$prefix" = xNONE && prefix=$ac_default_prefix
36239# Let make expand exec_prefix.
36240test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
36241
36242DEFS=-DHAVE_CONFIG_H
36243
36244ac_libobjs=
36245ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000036246U=
cristy3ed852e2009-09-05 21:47:34 +000036247for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
36248 # 1. Remove the extension, and $U if already installed.
36249 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
36250 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
36251 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
36252 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000036253 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
36254 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000036255done
36256LIBOBJS=$ac_libobjs
36257
36258LTLIBOBJS=$ac_ltlibobjs
36259
36260
cristyc0890a62012-07-19 00:18:20 +000036261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
36262$as_echo_n "checking that generated files are newer than configure... " >&6; }
36263 if test -n "$am_sleep_pid"; then
36264 # Hide warnings about reused PIDs.
36265 wait $am_sleep_pid 2>/dev/null
36266 fi
36267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
36268$as_echo "done" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000036269 if test -n "$EXEEXT"; then
36270 am__EXEEXT_TRUE=
36271 am__EXEEXT_FALSE='#'
36272else
36273 am__EXEEXT_TRUE='#'
36274 am__EXEEXT_FALSE=
36275fi
cristy3ed852e2009-09-05 21:47:34 +000036276
cristy73bd4a52010-10-05 11:24:23 +000036277if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036278 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036279Usually this means the macro was only invoked conditionally." "$LINENO" 5
36280fi
36281if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036282 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036283Usually this means the macro was only invoked conditionally." "$LINENO" 5
36284fi
36285if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036286 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036287Usually this means the macro was only invoked conditionally." "$LINENO" 5
36288fi
36289if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036290 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036291Usually this means the macro was only invoked conditionally." "$LINENO" 5
36292fi
cristy9b86f202012-11-28 21:55:35 +000036293if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
36294 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
36295Usually this means the macro was only invoked conditionally." "$LINENO" 5
36296fi
cristy73bd4a52010-10-05 11:24:23 +000036297if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036298 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036299Usually this means the macro was only invoked conditionally." "$LINENO" 5
36300fi
36301if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036302 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036303Usually this means the macro was only invoked conditionally." "$LINENO" 5
36304fi
36305if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036306 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036307Usually this means the macro was only invoked conditionally." "$LINENO" 5
36308fi
36309if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036310 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036311Usually this means the macro was only invoked conditionally." "$LINENO" 5
36312fi
cristy73bd4a52010-10-05 11:24:23 +000036313if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036314 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036315Usually this means the macro was only invoked conditionally." "$LINENO" 5
36316fi
36317if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036318 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036319Usually this means the macro was only invoked conditionally." "$LINENO" 5
36320fi
cristy73bd4a52010-10-05 11:24:23 +000036321if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036322 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036323Usually this means the macro was only invoked conditionally." "$LINENO" 5
36324fi
cristy71d8c202012-03-20 17:05:01 +000036325if test -z "${LEGACY_SUPPORT_TRUE}" && test -z "${LEGACY_SUPPORT_FALSE}"; then
36326 as_fn_error $? "conditional \"LEGACY_SUPPORT\" was never defined.
36327Usually this means the macro was only invoked conditionally." "$LINENO" 5
36328fi
cristy73bd4a52010-10-05 11:24:23 +000036329
36330if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036331 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036332Usually this means the macro was only invoked conditionally." "$LINENO" 5
36333fi
36334if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036335 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036336Usually this means the macro was only invoked conditionally." "$LINENO" 5
36337fi
cristy3b0097d2014-11-04 15:34:47 +000036338if test -z "${HasJEMALLOC_TRUE}" && test -z "${HasJEMALLOC_FALSE}"; then
36339 as_fn_error $? "conditional \"HasJEMALLOC\" was never defined.
36340Usually this means the macro was only invoked conditionally." "$LINENO" 5
36341fi
cristy73bd4a52010-10-05 11:24:23 +000036342if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036343 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036344Usually this means the macro was only invoked conditionally." "$LINENO" 5
36345fi
36346if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036347 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036348Usually this means the macro was only invoked conditionally." "$LINENO" 5
36349fi
36350if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036351 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036352Usually this means the macro was only invoked conditionally." "$LINENO" 5
36353fi
36354if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036355 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036356Usually this means the macro was only invoked conditionally." "$LINENO" 5
36357fi
cristy5eef09f2012-10-16 12:08:28 +000036358if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
36359 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
36360Usually this means the macro was only invoked conditionally." "$LINENO" 5
36361fi
cristy73bd4a52010-10-05 11:24:23 +000036362if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036363 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036364Usually this means the macro was only invoked conditionally." "$LINENO" 5
36365fi
36366if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036367 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036368Usually this means the macro was only invoked conditionally." "$LINENO" 5
36369fi
cristy73bd4a52010-10-05 11:24:23 +000036370if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036371 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036372Usually this means the macro was only invoked conditionally." "$LINENO" 5
36373fi
36374if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036375 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036376Usually this means the macro was only invoked conditionally." "$LINENO" 5
36377fi
cristy853d9902014-08-21 18:50:43 +000036378if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
36379 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
36380Usually this means the macro was only invoked conditionally." "$LINENO" 5
36381fi
cristy73bd4a52010-10-05 11:24:23 +000036382if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036383 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036384Usually this means the macro was only invoked conditionally." "$LINENO" 5
36385fi
36386if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036387 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036388Usually this means the macro was only invoked conditionally." "$LINENO" 5
36389fi
36390if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036391 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036392Usually this means the macro was only invoked conditionally." "$LINENO" 5
36393fi
36394if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036395 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036396Usually this means the macro was only invoked conditionally." "$LINENO" 5
36397fi
36398if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036399 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036400Usually this means the macro was only invoked conditionally." "$LINENO" 5
36401fi
36402if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036403 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036404Usually this means the macro was only invoked conditionally." "$LINENO" 5
36405fi
cristy73bd4a52010-10-05 11:24:23 +000036406if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036407 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036408Usually this means the macro was only invoked conditionally." "$LINENO" 5
36409fi
cristy99db3872014-01-01 15:11:34 +000036410if test -z "${LIBOPENJP2_DELEGATE_TRUE}" && test -z "${LIBOPENJP2_DELEGATE_FALSE}"; then
36411 as_fn_error $? "conditional \"LIBOPENJP2_DELEGATE\" was never defined.
36412Usually this means the macro was only invoked conditionally." "$LINENO" 5
36413fi
cristy73bd4a52010-10-05 11:24:23 +000036414if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036415 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036416Usually this means the macro was only invoked conditionally." "$LINENO" 5
36417fi
cristyfbb0ef02010-12-19 02:32:11 +000036418if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
36419 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
36420Usually this means the macro was only invoked conditionally." "$LINENO" 5
36421fi
cristy73bd4a52010-10-05 11:24:23 +000036422if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036423 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036424Usually this means the macro was only invoked conditionally." "$LINENO" 5
36425fi
cristy41cbe8a2011-10-27 01:35:18 +000036426if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
36427 as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
36428Usually this means the macro was only invoked conditionally." "$LINENO" 5
36429fi
cristya054b762012-03-26 23:16:00 +000036430if test -z "${PANGOCAIRO_DELEGATE_TRUE}" && test -z "${PANGOCAIRO_DELEGATE_FALSE}"; then
36431 as_fn_error $? "conditional \"PANGOCAIRO_DELEGATE\" was never defined.
cristy41cbe8a2011-10-27 01:35:18 +000036432Usually this means the macro was only invoked conditionally." "$LINENO" 5
36433fi
cristy73bd4a52010-10-05 11:24:23 +000036434if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036435 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036436Usually this means the macro was only invoked conditionally." "$LINENO" 5
36437fi
36438if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036439 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036440Usually this means the macro was only invoked conditionally." "$LINENO" 5
36441fi
36442if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036443 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036444Usually this means the macro was only invoked conditionally." "$LINENO" 5
36445fi
36446if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036447 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036448Usually this means the macro was only invoked conditionally." "$LINENO" 5
36449fi
cristyb1860752011-03-14 00:27:46 +000036450if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
36451 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
36452Usually this means the macro was only invoked conditionally." "$LINENO" 5
36453fi
cristy73bd4a52010-10-05 11:24:23 +000036454if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036455 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036456Usually this means the macro was only invoked conditionally." "$LINENO" 5
36457fi
36458if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036459 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036460Usually this means the macro was only invoked conditionally." "$LINENO" 5
36461fi
cristydd17feb2014-03-05 02:06:32 +000036462if test -z "${INSTALL_DOC_TRUE}" && test -z "${INSTALL_DOC_FALSE}"; then
36463 as_fn_error $? "conditional \"INSTALL_DOC\" was never defined.
36464Usually this means the macro was only invoked conditionally." "$LINENO" 5
36465fi
cristy73bd4a52010-10-05 11:24:23 +000036466if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036467 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036468Usually this means the macro was only invoked conditionally." "$LINENO" 5
36469fi
36470if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036471 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036472Usually this means the macro was only invoked conditionally." "$LINENO" 5
36473fi
36474if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036475 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036476Usually this means the macro was only invoked conditionally." "$LINENO" 5
36477fi
36478if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036479 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036480Usually this means the macro was only invoked conditionally." "$LINENO" 5
36481fi
36482if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036483 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036484Usually this means the macro was only invoked conditionally." "$LINENO" 5
36485fi
36486if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036487 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036488Usually this means the macro was only invoked conditionally." "$LINENO" 5
36489fi
cristy3ed852e2009-09-05 21:47:34 +000036490
cristyda16f162011-02-19 23:52:17 +000036491: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000036492ac_write_fail=0
36493ac_clean_files_save=$ac_clean_files
36494ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000036495{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000036496$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000036497as_write_fail=0
36498cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036499#! $SHELL
36500# Generated by $as_me.
36501# Run this file to recreate the current configuration.
36502# Compiler output produced by configure, useful for debugging
36503# configure, is in config.log if it exists.
36504
36505debug=false
36506ac_cs_recheck=false
36507ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000036508
cristy8b350f62009-11-15 23:12:43 +000036509SHELL=\${CONFIG_SHELL-$SHELL}
36510export SHELL
36511_ASEOF
36512cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
36513## -------------------- ##
36514## M4sh Initialization. ##
36515## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000036516
36517# Be more Bourne compatible
36518DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000036519if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000036520 emulate sh
36521 NULLCMD=:
36522 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
36523 # is contrary to our usage. Disable this feature.
36524 alias -g '${1+"$@"}'='"$@"'
36525 setopt NO_GLOB_SUBST
36526else
cristy8b350f62009-11-15 23:12:43 +000036527 case `(set -o) 2>/dev/null` in #(
36528 *posix*) :
36529 set -o posix ;; #(
36530 *) :
36531 ;;
cristy3ed852e2009-09-05 21:47:34 +000036532esac
cristy3ed852e2009-09-05 21:47:34 +000036533fi
36534
36535
cristy3ed852e2009-09-05 21:47:34 +000036536as_nl='
36537'
36538export as_nl
36539# Printing a long string crashes Solaris 7 /usr/bin/printf.
36540as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
36541as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
36542as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000036543# Prefer a ksh shell builtin over an external printf program on Solaris,
36544# but without wasting forks for bash or zsh.
36545if test -z "$BASH_VERSION$ZSH_VERSION" \
36546 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
36547 as_echo='print -r --'
36548 as_echo_n='print -rn --'
36549elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000036550 as_echo='printf %s\n'
36551 as_echo_n='printf %s'
36552else
36553 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
36554 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
36555 as_echo_n='/usr/ucb/echo -n'
36556 else
36557 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
36558 as_echo_n_body='eval
36559 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000036560 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000036561 *"$as_nl"*)
36562 expr "X$arg" : "X\\(.*\\)$as_nl";
36563 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
36564 esac;
36565 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
36566 '
36567 export as_echo_n_body
36568 as_echo_n='sh -c $as_echo_n_body as_echo'
36569 fi
36570 export as_echo_body
36571 as_echo='sh -c $as_echo_body as_echo'
36572fi
36573
36574# The user is always right.
36575if test "${PATH_SEPARATOR+set}" != set; then
36576 PATH_SEPARATOR=:
36577 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
36578 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
36579 PATH_SEPARATOR=';'
36580 }
36581fi
36582
cristy3ed852e2009-09-05 21:47:34 +000036583
36584# IFS
36585# We need space, tab and new line, in precisely that order. Quoting is
36586# there to prevent editors from complaining about space-tab.
36587# (If _AS_PATH_WALK were called with IFS unset, it would disable word
36588# splitting by setting IFS to empty value.)
36589IFS=" "" $as_nl"
36590
36591# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000036592as_myself=
cristy8b350f62009-11-15 23:12:43 +000036593case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000036594 *[\\/]* ) as_myself=$0 ;;
36595 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36596for as_dir in $PATH
36597do
36598 IFS=$as_save_IFS
36599 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000036600 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
36601 done
cristy3ed852e2009-09-05 21:47:34 +000036602IFS=$as_save_IFS
36603
36604 ;;
36605esac
36606# We did not find ourselves, most probably we were run as `sh COMMAND'
36607# in which case we are not to be found in the path.
36608if test "x$as_myself" = x; then
36609 as_myself=$0
36610fi
36611if test ! -f "$as_myself"; then
36612 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000036613 exit 1
cristy3ed852e2009-09-05 21:47:34 +000036614fi
36615
cristy8b350f62009-11-15 23:12:43 +000036616# Unset variables that we do not need and which cause bugs (e.g. in
36617# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
36618# suppresses any "Segmentation fault" message there. '((' could
36619# trigger a bug in pdksh 5.2.14.
36620for as_var in BASH_ENV ENV MAIL MAILPATH
36621do eval test x\${$as_var+set} = xset \
36622 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000036623done
36624PS1='$ '
36625PS2='> '
36626PS4='+ '
36627
36628# NLS nuisances.
36629LC_ALL=C
36630export LC_ALL
36631LANGUAGE=C
36632export LANGUAGE
36633
cristy8b350f62009-11-15 23:12:43 +000036634# CDPATH.
36635(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36636
36637
cristy98dddb52010-11-04 00:30:15 +000036638# as_fn_error STATUS ERROR [LINENO LOG_FD]
36639# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000036640# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
36641# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000036642# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000036643as_fn_error ()
36644{
cristy98dddb52010-11-04 00:30:15 +000036645 as_status=$1; test $as_status -eq 0 && as_status=1
36646 if test "$4"; then
36647 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
36648 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000036649 fi
cristy98dddb52010-11-04 00:30:15 +000036650 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000036651 as_fn_exit $as_status
36652} # as_fn_error
36653
36654
36655# as_fn_set_status STATUS
36656# -----------------------
36657# Set $? to STATUS, without forking.
36658as_fn_set_status ()
36659{
36660 return $1
36661} # as_fn_set_status
36662
36663# as_fn_exit STATUS
36664# -----------------
36665# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
36666as_fn_exit ()
36667{
36668 set +e
36669 as_fn_set_status $1
36670 exit $1
36671} # as_fn_exit
36672
36673# as_fn_unset VAR
36674# ---------------
36675# Portably unset VAR.
36676as_fn_unset ()
36677{
36678 { eval $1=; unset $1;}
36679}
36680as_unset=as_fn_unset
36681# as_fn_append VAR VALUE
36682# ----------------------
36683# Append the text in VALUE to the end of the definition contained in VAR. Take
36684# advantage of any shell optimizations that allow amortized linear growth over
36685# repeated appends, instead of the typical quadratic growth present in naive
36686# implementations.
36687if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
36688 eval 'as_fn_append ()
36689 {
36690 eval $1+=\$2
36691 }'
36692else
36693 as_fn_append ()
36694 {
36695 eval $1=\$$1\$2
36696 }
36697fi # as_fn_append
36698
36699# as_fn_arith ARG...
36700# ------------------
36701# Perform arithmetic evaluation on the ARGs, and store the result in the
36702# global $as_val. Take advantage of shells that can avoid forks. The arguments
36703# must be portable across $(()) and expr.
36704if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
36705 eval 'as_fn_arith ()
36706 {
36707 as_val=$(( $* ))
36708 }'
36709else
36710 as_fn_arith ()
36711 {
36712 as_val=`expr "$@" || test $? -eq 1`
36713 }
36714fi # as_fn_arith
36715
36716
cristy3ed852e2009-09-05 21:47:34 +000036717if expr a : '\(a\)' >/dev/null 2>&1 &&
36718 test "X`expr 00001 : '.*\(...\)'`" = X001; then
36719 as_expr=expr
36720else
36721 as_expr=false
36722fi
36723
36724if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
36725 as_basename=basename
36726else
36727 as_basename=false
36728fi
36729
cristy8b350f62009-11-15 23:12:43 +000036730if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
36731 as_dirname=dirname
36732else
36733 as_dirname=false
36734fi
cristy3ed852e2009-09-05 21:47:34 +000036735
cristy3ed852e2009-09-05 21:47:34 +000036736as_me=`$as_basename -- "$0" ||
36737$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
36738 X"$0" : 'X\(//\)$' \| \
36739 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
36740$as_echo X/"$0" |
36741 sed '/^.*\/\([^/][^/]*\)\/*$/{
36742 s//\1/
36743 q
36744 }
36745 /^X\/\(\/\/\)$/{
36746 s//\1/
36747 q
36748 }
36749 /^X\/\(\/\).*/{
36750 s//\1/
36751 q
36752 }
36753 s/.*/./; q'`
36754
cristy8b350f62009-11-15 23:12:43 +000036755# Avoid depending upon Character Ranges.
36756as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36757as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36758as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36759as_cr_digits='0123456789'
36760as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000036761
36762ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000036763case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000036764-n*)
cristy8b350f62009-11-15 23:12:43 +000036765 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000036766 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000036767 xy) ECHO_C='\c';;
36768 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
36769 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000036770 esac;;
36771*)
36772 ECHO_N='-n';;
36773esac
cristy3ed852e2009-09-05 21:47:34 +000036774
36775rm -f conf$$ conf$$.exe conf$$.file
36776if test -d conf$$.dir; then
36777 rm -f conf$$.dir/conf$$.file
36778else
36779 rm -f conf$$.dir
36780 mkdir conf$$.dir 2>/dev/null
36781fi
36782if (echo >conf$$.file) 2>/dev/null; then
36783 if ln -s conf$$.file conf$$ 2>/dev/null; then
36784 as_ln_s='ln -s'
36785 # ... but there are two gotchas:
36786 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
36787 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cristy14fefe52012-05-21 00:59:18 +000036788 # In both cases, we have to default to `cp -pR'.
cristy3ed852e2009-09-05 21:47:34 +000036789 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cristy14fefe52012-05-21 00:59:18 +000036790 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036791 elif ln conf$$.file conf$$ 2>/dev/null; then
36792 as_ln_s=ln
36793 else
cristy14fefe52012-05-21 00:59:18 +000036794 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036795 fi
36796else
cristy14fefe52012-05-21 00:59:18 +000036797 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036798fi
36799rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
36800rmdir conf$$.dir 2>/dev/null
36801
cristy8b350f62009-11-15 23:12:43 +000036802
36803# as_fn_mkdir_p
36804# -------------
36805# Create "$as_dir" as a directory, including parents if necessary.
36806as_fn_mkdir_p ()
36807{
36808
36809 case $as_dir in #(
36810 -*) as_dir=./$as_dir;;
36811 esac
36812 test -d "$as_dir" || eval $as_mkdir_p || {
36813 as_dirs=
36814 while :; do
36815 case $as_dir in #(
36816 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
36817 *) as_qdir=$as_dir;;
36818 esac
36819 as_dirs="'$as_qdir' $as_dirs"
36820 as_dir=`$as_dirname -- "$as_dir" ||
36821$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36822 X"$as_dir" : 'X\(//\)[^/]' \| \
36823 X"$as_dir" : 'X\(//\)$' \| \
36824 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36825$as_echo X"$as_dir" |
36826 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36827 s//\1/
36828 q
36829 }
36830 /^X\(\/\/\)[^/].*/{
36831 s//\1/
36832 q
36833 }
36834 /^X\(\/\/\)$/{
36835 s//\1/
36836 q
36837 }
36838 /^X\(\/\).*/{
36839 s//\1/
36840 q
36841 }
36842 s/.*/./; q'`
36843 test -d "$as_dir" && break
36844 done
36845 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000036846 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000036847
36848
36849} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000036850if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000036851 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000036852else
36853 test -d ./-p && rmdir ./-p
36854 as_mkdir_p=false
36855fi
36856
cristy14fefe52012-05-21 00:59:18 +000036857
36858# as_fn_executable_p FILE
36859# -----------------------
36860# Test if FILE is an executable regular file.
36861as_fn_executable_p ()
36862{
36863 test -f "$1" && test -x "$1"
36864} # as_fn_executable_p
36865as_test_x='test -x'
36866as_executable_p=as_fn_executable_p
cristy3ed852e2009-09-05 21:47:34 +000036867
36868# Sed expression to map a string onto a valid CPP name.
36869as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
36870
36871# Sed expression to map a string onto a valid variable name.
36872as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
36873
36874
36875exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000036876## ----------------------------------- ##
36877## Main body of $CONFIG_STATUS script. ##
36878## ----------------------------------- ##
36879_ASEOF
36880test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036881
cristy8b350f62009-11-15 23:12:43 +000036882cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36883# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000036884# report actual input values of CONFIG_FILES etc. instead of their
36885# values after options handling.
36886ac_log="
cristy29eb34e2011-10-16 00:46:08 +000036887This file was extended by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +000036888generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000036889
36890 CONFIG_FILES = $CONFIG_FILES
36891 CONFIG_HEADERS = $CONFIG_HEADERS
36892 CONFIG_LINKS = $CONFIG_LINKS
36893 CONFIG_COMMANDS = $CONFIG_COMMANDS
36894 $ $0 $@
36895
36896on `(hostname || uname -n) 2>/dev/null | sed 1q`
36897"
36898
36899_ACEOF
36900
36901case $ac_config_files in *"
36902"*) set x $ac_config_files; shift; ac_config_files=$*;;
36903esac
36904
36905case $ac_config_headers in *"
36906"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
36907esac
36908
36909
36910cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36911# Files that config.status was made for.
36912config_files="$ac_config_files"
36913config_headers="$ac_config_headers"
36914config_commands="$ac_config_commands"
36915
36916_ACEOF
36917
36918cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36919ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000036920\`$as_me' instantiates files and other configuration actions
36921from templates according to the current configuration. Unless the files
36922and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000036923
cristy8b350f62009-11-15 23:12:43 +000036924Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000036925
36926 -h, --help print this help, then exit
36927 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000036928 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000036929 -q, --quiet, --silent
36930 do not print progress messages
36931 -d, --debug don't remove temporary files
36932 --recheck update $as_me by reconfiguring in the same conditions
36933 --file=FILE[:TEMPLATE]
36934 instantiate the configuration file FILE
36935 --header=FILE[:TEMPLATE]
36936 instantiate the configuration header FILE
36937
36938Configuration files:
36939$config_files
36940
36941Configuration headers:
36942$config_headers
36943
36944Configuration commands:
36945$config_commands
36946
cristy8b350f62009-11-15 23:12:43 +000036947Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000036948
36949_ACEOF
36950cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000036951ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000036952ac_cs_version="\\
cristy29eb34e2011-10-16 00:46:08 +000036953ImageMagick config.status 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +000036954configured by $0, generated by GNU Autoconf 2.69,
cristycd4c5312009-11-22 01:19:08 +000036955 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000036956
cristy14fefe52012-05-21 00:59:18 +000036957Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000036958This config.status script is free software; the Free Software Foundation
36959gives unlimited permission to copy, distribute and modify it."
36960
36961ac_pwd='$ac_pwd'
36962srcdir='$srcdir'
36963INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000036964MKDIR_P='$MKDIR_P'
36965AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000036966test -n "\$AWK" || AWK=awk
36967_ACEOF
36968
36969cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36970# The default lists apply if the user does not specify any file.
36971ac_need_defaults=:
36972while test $# != 0
36973do
36974 case $1 in
cristyda16f162011-02-19 23:52:17 +000036975 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000036976 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36977 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
36978 ac_shift=:
36979 ;;
cristyda16f162011-02-19 23:52:17 +000036980 --*=)
36981 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36982 ac_optarg=
36983 ac_shift=:
36984 ;;
cristy3ed852e2009-09-05 21:47:34 +000036985 *)
36986 ac_option=$1
36987 ac_optarg=$2
36988 ac_shift=shift
36989 ;;
36990 esac
36991
36992 case $ac_option in
36993 # Handling of the options.
36994 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
36995 ac_cs_recheck=: ;;
36996 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
36997 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000036998 --config | --confi | --conf | --con | --co | --c )
36999 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000037000 --debug | --debu | --deb | --de | --d | -d )
37001 debug=: ;;
37002 --file | --fil | --fi | --f )
37003 $ac_shift
37004 case $ac_optarg in
37005 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000037006 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000037007 esac
cristy8b350f62009-11-15 23:12:43 +000037008 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000037009 ac_need_defaults=false;;
37010 --header | --heade | --head | --hea )
37011 $ac_shift
37012 case $ac_optarg in
37013 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
37014 esac
cristy8b350f62009-11-15 23:12:43 +000037015 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000037016 ac_need_defaults=false;;
37017 --he | --h)
37018 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000037019 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000037020Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000037021 --help | --hel | -h )
37022 $as_echo "$ac_cs_usage"; exit ;;
37023 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
37024 | -silent | --silent | --silen | --sile | --sil | --si | --s)
37025 ac_cs_silent=: ;;
37026
37027 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000037028 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000037029Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000037030
cristy8b350f62009-11-15 23:12:43 +000037031 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000037032 ac_need_defaults=false ;;
37033
37034 esac
37035 shift
37036done
37037
37038ac_configure_extra_args=
37039
37040if $ac_cs_silent; then
37041 exec 6>/dev/null
37042 ac_configure_extra_args="$ac_configure_extra_args --silent"
37043fi
37044
37045_ACEOF
37046cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37047if \$ac_cs_recheck; then
cristy14fefe52012-05-21 00:59:18 +000037048 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
cristy3ed852e2009-09-05 21:47:34 +000037049 shift
37050 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
37051 CONFIG_SHELL='$SHELL'
37052 export CONFIG_SHELL
37053 exec "\$@"
37054fi
37055
37056_ACEOF
37057cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37058exec 5>>config.log
37059{
37060 echo
37061 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
37062## Running $as_me. ##
37063_ASBOX
37064 $as_echo "$ac_log"
37065} >&5
37066
37067_ACEOF
37068cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000037069#
37070# INIT-COMMANDS
37071#
37072PACKAGE="$PACKAGE"
37073AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
37074
37075
37076# The HP-UX ksh and POSIX shell print the target directory to stdout
37077# if CDPATH is set.
37078(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
37079
37080sed_quote_subst='$sed_quote_subst'
37081double_quote_subst='$double_quote_subst'
37082delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000037083SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
37084Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
37085GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
37086EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
37087FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
37088SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
37089ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
37090LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
37091macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
37092macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
37093AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
37094DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
37095OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
37096enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
37097enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
37098pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
37099enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
cristy99bd5232011-12-07 14:38:20 +000037100PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037101host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
37102host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
37103host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
37104build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
37105build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
37106build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
37107NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
37108LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
37109max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
37110ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
37111exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
37112lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
37113lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
37114lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037115lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
37116lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037117reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
37118reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
37119deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
37120file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037121file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
37122want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
37123sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037124AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
37125AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037126archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037127STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
37128RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
37129old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
37130old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
37131old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
37132lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
37133CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
37134CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
37135compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
37136GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
37137lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
37138lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
37139lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
37140lt_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 +000037141nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
37142lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037143objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
37144MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
37145lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037146lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037147lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037148lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
37149lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
37150need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037151MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037152DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
37153NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
37154LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
37155OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
37156OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
37157libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
37158shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
37159extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
37160archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
37161enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
37162export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
37163whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
37164compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
37165old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
37166old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
37167archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
37168archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
37169module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
37170module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
37171with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
37172allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
37173no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
37174hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037175hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
37176hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
37177hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
37178hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
37179hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
37180hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
37181inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
37182link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037183always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
37184export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
37185exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
37186include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
37187prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037188postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037189file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
37190variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
37191need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
37192need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
37193version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
37194runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
37195shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
37196shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
37197libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
37198library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
37199soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
37200install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
37201postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
37202postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
37203finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
37204finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
37205hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
37206sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
37207sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
37208hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
37209enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
37210enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
37211enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
37212old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
37213striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
37214compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
37215predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
37216postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
37217predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
37218postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
37219compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
37220LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
37221reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
37222reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37223old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37224compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
37225GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
37226lt_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 +000037227lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037228lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037229lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
37230lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
37231archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
37232enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
37233export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
37234whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
37235compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
37236old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37237old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37238archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37239archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37240module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37241module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37242with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
37243allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
37244no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
37245hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037246hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
37247hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
37248hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
37249hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
37250hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
37251hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
37252inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
37253link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037254always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
37255export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37256exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
37257include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
37258prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037259postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037260file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
37261hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
37262compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
37263predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
37264postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
37265predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
37266postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
37267compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000037268
37269LTCC='$LTCC'
37270LTCFLAGS='$LTCFLAGS'
37271compiler='$compiler_DEFAULT'
37272
cristy0c60a692010-11-04 01:09:47 +000037273# A function that is used when there is no print builtin or printf.
37274func_fallback_echo ()
37275{
37276 eval 'cat <<_LTECHO_EOF
37277\$1
37278_LTECHO_EOF'
37279}
37280
cristy73bd4a52010-10-05 11:24:23 +000037281# Quote evaled strings.
37282for var in SED \
37283GREP \
37284EGREP \
37285FGREP \
cristy0c60a692010-11-04 01:09:47 +000037286SHELL \
37287ECHO \
cristy73bd4a52010-10-05 11:24:23 +000037288LD \
cristy0c60a692010-11-04 01:09:47 +000037289AS \
37290DLLTOOL \
37291OBJDUMP \
cristy99bd5232011-12-07 14:38:20 +000037292PATH_SEPARATOR \
cristy73bd4a52010-10-05 11:24:23 +000037293NM \
37294LN_S \
37295lt_SP2NL \
37296lt_NL2SP \
37297reload_flag \
37298deplibs_check_method \
37299file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000037300file_magic_glob \
37301want_nocaseglob \
37302sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000037303AR \
37304AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000037305archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000037306STRIP \
37307RANLIB \
37308CC \
37309CFLAGS \
37310compiler \
37311lt_cv_sys_global_symbol_pipe \
37312lt_cv_sys_global_symbol_to_cdecl \
37313lt_cv_sys_global_symbol_to_c_name_address \
37314lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000037315nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000037316lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000037317lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000037318lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000037319lt_prog_compiler_static \
37320lt_cv_prog_compiler_c_o \
37321need_locks \
cristyda16f162011-02-19 23:52:17 +000037322MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000037323DSYMUTIL \
37324NMEDIT \
37325LIPO \
37326OTOOL \
37327OTOOL64 \
37328shrext_cmds \
37329export_dynamic_flag_spec \
37330whole_archive_flag_spec \
37331compiler_needs_object \
37332with_gnu_ld \
37333allow_undefined_flag \
37334no_undefined_flag \
37335hardcode_libdir_flag_spec \
cristy73bd4a52010-10-05 11:24:23 +000037336hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000037337exclude_expsyms \
37338include_expsyms \
37339file_list_spec \
37340variables_saved_for_relink \
37341libname_spec \
37342library_names_spec \
37343soname_spec \
cristy0c60a692010-11-04 01:09:47 +000037344install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000037345finish_eval \
37346old_striplib \
37347striplib \
37348compiler_lib_search_dirs \
37349predep_objects \
37350postdep_objects \
37351predeps \
37352postdeps \
37353compiler_lib_search_path \
37354LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000037355reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037356compiler_CXX \
37357lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037358lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000037359lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037360lt_prog_compiler_static_CXX \
37361lt_cv_prog_compiler_c_o_CXX \
37362export_dynamic_flag_spec_CXX \
37363whole_archive_flag_spec_CXX \
37364compiler_needs_object_CXX \
37365with_gnu_ld_CXX \
37366allow_undefined_flag_CXX \
37367no_undefined_flag_CXX \
37368hardcode_libdir_flag_spec_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037369hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037370exclude_expsyms_CXX \
37371include_expsyms_CXX \
37372file_list_spec_CXX \
37373compiler_lib_search_dirs_CXX \
37374predep_objects_CXX \
37375postdep_objects_CXX \
37376predeps_CXX \
37377postdeps_CXX \
37378compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000037379 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000037380 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000037381 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000037382 ;;
37383 *)
37384 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37385 ;;
37386 esac
37387done
37388
37389# Double-quote double-evaled strings.
37390for var in reload_cmds \
37391old_postinstall_cmds \
37392old_postuninstall_cmds \
37393old_archive_cmds \
37394extract_expsyms_cmds \
37395old_archive_from_new_cmds \
37396old_archive_from_expsyms_cmds \
37397archive_cmds \
37398archive_expsym_cmds \
37399module_cmds \
37400module_expsym_cmds \
37401export_symbols_cmds \
37402prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000037403postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000037404postinstall_cmds \
37405postuninstall_cmds \
37406finish_cmds \
37407sys_lib_search_path_spec \
37408sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000037409reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037410old_archive_cmds_CXX \
37411old_archive_from_new_cmds_CXX \
37412old_archive_from_expsyms_cmds_CXX \
37413archive_cmds_CXX \
37414archive_expsym_cmds_CXX \
37415module_cmds_CXX \
37416module_expsym_cmds_CXX \
37417export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000037418prelink_cmds_CXX \
37419postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000037420 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000037421 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000037422 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000037423 ;;
37424 *)
37425 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37426 ;;
37427 esac
37428done
37429
cristy73bd4a52010-10-05 11:24:23 +000037430ac_aux_dir='$ac_aux_dir'
37431xsi_shell='$xsi_shell'
37432lt_shell_append='$lt_shell_append'
37433
37434# See if we are running on zsh, and set the options which allow our
37435# commands through without removal of \ escapes INIT.
37436if test -n "\${ZSH_VERSION+set}" ; then
37437 setopt NO_GLOB_SUBST
37438fi
37439
37440
37441 PACKAGE='$PACKAGE'
37442 VERSION='$VERSION'
37443 TIMESTAMP='$TIMESTAMP'
37444 RM='$RM'
37445 ofile='$ofile'
37446
37447
37448
37449
37450
37451
cristy3ed852e2009-09-05 21:47:34 +000037452_ACEOF
37453
37454cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37455
37456# Handling of arguments.
37457for ac_config_target in $ac_config_targets
37458do
37459 case $ac_config_target in
37460 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy01ff9f32012-12-01 18:15:29 +000037461 "MagickCore/magick-baseconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-baseconfig.h" ;;
cristy305c5dd2012-09-13 00:30:13 +000037462 "common.shi") CONFIG_FILES="$CONFIG_FILES common.shi" ;;
cristy3ed852e2009-09-05 21:47:34 +000037463 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
37464 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
37465 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
37466 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
37467 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy2df32802012-09-17 01:15:28 +000037468 "config/Magick++.dox") CONFIG_FILES="$CONFIG_FILES config/Magick++.dox" ;;
cristy5a3dc992014-12-05 19:50:04 +000037469 "config/type-apple.xml") CONFIG_FILES="$CONFIG_FILES config/type-apple.xml" ;;
cristy430a7312010-01-21 20:44:04 +000037470 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000037471 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
37472 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
37473 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
37474 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
37475 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
cristy4c08aed2011-07-01 19:47:50 +000037476 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000037477 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
cristy4c08aed2011-07-01 19:47:50 +000037478 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
37479 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
37480 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000037481 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
37482 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
cristy3ed852e2009-09-05 21:47:34 +000037483 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
cristy8d0ff762013-03-10 20:33:28 +000037484 "PerlMagick/default/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Magick.pm" ;;
cristy3e049f82013-02-13 13:26:53 +000037485 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
cristy8d0ff762013-03-10 20:33:28 +000037486 "PerlMagick/default/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Makefile.PL" ;;
cristycf0cbcc2013-02-13 23:32:58 +000037487 "PerlMagick/quantum/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/Makefile.PL" ;;
37488 "PerlMagick/quantum/quantum.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.pm" ;;
37489 "PerlMagick/quantum/quantum.xs") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.xs" ;;
37490 "PerlMagick/quantum/typemap") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/typemap" ;;
cristy3ed852e2009-09-05 21:47:34 +000037491 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
37492 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
37493 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
37494 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
37495 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
37496 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
37497 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
37498 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
37499 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
37500 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
37501 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
37502 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
cristy4c08aed2011-07-01 19:47:50 +000037503 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
37504 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
cristy73bd4a52010-10-05 11:24:23 +000037505 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
37506 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cristy3ed852e2009-09-05 21:47:34 +000037507 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
cristy2bd4b6e2012-07-22 15:29:11 +000037508 "magick.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS magick.sh.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037509 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037510 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037511 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
37512 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
37513
cristy98dddb52010-11-04 00:30:15 +000037514 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037515 esac
37516done
37517
37518
37519# If the user did not use the arguments to specify the items to instantiate,
37520# then the envvar interface is used. Set only those that are not.
37521# We use the long form for the default assignment because of an extremely
37522# bizarre bug on SunOS 4.1.3.
37523if $ac_need_defaults; then
37524 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
37525 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
37526 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
37527fi
37528
37529# Have a temporary directory for convenience. Make it in the build tree
37530# simply because there is no reason against having it here, and in addition,
37531# creating and moving files from /tmp can sometimes cause problems.
37532# Hook for its removal unless debugging.
37533# Note that there is a small window in which the directory will not be cleaned:
37534# after its creation but before its name has been assigned to `$tmp'.
37535$debug ||
37536{
cristyda16f162011-02-19 23:52:17 +000037537 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000037538 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000037539 : "${ac_tmp:=$tmp}"
37540 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000037541' 0
cristy8b350f62009-11-15 23:12:43 +000037542 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000037543}
37544# Create a (secure) tmp directory for tmp files.
37545
37546{
37547 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000037548 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000037549} ||
37550{
37551 tmp=./conf$$-$RANDOM
37552 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000037553} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037554ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000037555
37556# Set up the scripts for CONFIG_FILES section.
37557# No need to generate them if there are no CONFIG_FILES.
37558# This happens for instance with `./config.status config.h'.
37559if test -n "$CONFIG_FILES"; then
37560
37561
cristy8b350f62009-11-15 23:12:43 +000037562ac_cr=`echo X | tr X '\015'`
37563# On cygwin, bash can eat \r inside `` if the user requested igncr.
37564# But we know of no other shell where ac_cr would be empty at this
37565# point, so we can use a bashism as a fallback.
37566if test "x$ac_cr" = x; then
37567 eval ac_cr=\$\'\\r\'
37568fi
cristy3ed852e2009-09-05 21:47:34 +000037569ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
37570if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000037571 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000037572else
37573 ac_cs_awk_cr=$ac_cr
37574fi
37575
cristyda16f162011-02-19 23:52:17 +000037576echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000037577_ACEOF
37578
37579
37580{
37581 echo "cat >conf$$subs.awk <<_ACEOF" &&
37582 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
37583 echo "_ACEOF"
37584} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037585 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
37586ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000037587ac_delim='%!_!# '
37588for ac_last_try in false false false false false :; do
37589 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037590 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037591
37592 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
37593 if test $ac_delim_n = $ac_delim_num; then
37594 break
37595 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037596 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037597 else
37598 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37599 fi
37600done
37601rm -f conf$$subs.sh
37602
37603cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000037604cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037605_ACEOF
37606sed -n '
37607h
37608s/^/S["/; s/!.*/"]=/
37609p
37610g
37611s/^[^!]*!//
37612:repl
37613t repl
37614s/'"$ac_delim"'$//
37615t delim
37616:nl
37617h
cristycd4c5312009-11-22 01:19:08 +000037618s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037619t more1
37620s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
37621p
37622n
37623b repl
37624:more1
37625s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37626p
37627g
37628s/.\{148\}//
37629t nl
37630:delim
37631h
cristycd4c5312009-11-22 01:19:08 +000037632s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037633t more2
37634s/["\\]/\\&/g; s/^/"/; s/$/"/
37635p
37636b
37637:more2
37638s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37639p
37640g
37641s/.\{148\}//
37642t delim
37643' <conf$$subs.awk | sed '
37644/^[^""]/{
37645 N
37646 s/\n//
37647}
37648' >>$CONFIG_STATUS || ac_write_fail=1
37649rm -f conf$$subs.awk
37650cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37651_ACAWK
cristyda16f162011-02-19 23:52:17 +000037652cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037653 for (key in S) S_is_set[key] = 1
37654 FS = ""
37655
37656}
37657{
37658 line = $ 0
37659 nfields = split(line, field, "@")
37660 substed = 0
37661 len = length(field[1])
37662 for (i = 2; i < nfields; i++) {
37663 key = field[i]
37664 keylen = length(key)
37665 if (S_is_set[key]) {
37666 value = S[key]
37667 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
37668 len += length(value) + length(field[++i])
37669 substed = 1
37670 } else
37671 len += 1 + keylen
37672 }
37673
37674 print line
37675}
37676
37677_ACAWK
37678_ACEOF
37679cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37680if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
37681 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
37682else
37683 cat
cristyda16f162011-02-19 23:52:17 +000037684fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000037685 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037686_ACEOF
37687
cristy98dddb52010-11-04 00:30:15 +000037688# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
37689# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000037690# trailing colons and then remove the whole line if VPATH becomes empty
37691# (actually we leave an empty line to preserve line numbers).
37692if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000037693 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
37694h
37695s///
37696s/^/:/
37697s/[ ]*$/:/
37698s/:\$(srcdir):/:/g
37699s/:\${srcdir}:/:/g
37700s/:@srcdir@:/:/g
37701s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000037702s/:*$//
cristy98dddb52010-11-04 00:30:15 +000037703x
37704s/\(=[ ]*\).*/\1/
37705G
37706s/\n//
cristy3ed852e2009-09-05 21:47:34 +000037707s/^[^=]*=[ ]*$//
37708}'
37709fi
37710
37711cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37712fi # test -n "$CONFIG_FILES"
37713
37714# Set up the scripts for CONFIG_HEADERS section.
37715# No need to generate them if there are no CONFIG_HEADERS.
37716# This happens for instance with `./config.status Makefile'.
37717if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000037718cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000037719BEGIN {
37720_ACEOF
37721
37722# Transform confdefs.h into an awk script `defines.awk', embedded as
37723# here-document in config.status, that substitutes the proper values into
37724# config.h.in to produce config.h.
37725
37726# Create a delimiter string that does not exist in confdefs.h, to ease
37727# handling of long lines.
37728ac_delim='%!_!# '
37729for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000037730 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
37731 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000037732 break
37733 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037734 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037735 else
37736 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37737 fi
37738done
37739
37740# For the awk script, D is an array of macro values keyed by name,
37741# likewise P contains macro parameters if any. Preserve backslash
37742# newline sequences.
37743
37744ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
37745sed -n '
37746s/.\{148\}/&'"$ac_delim"'/g
37747t rset
37748:rset
37749s/^[ ]*#[ ]*define[ ][ ]*/ /
37750t def
37751d
37752:def
37753s/\\$//
37754t bsnl
37755s/["\\]/\\&/g
37756s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37757D["\1"]=" \3"/p
37758s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
37759d
37760:bsnl
37761s/["\\]/\\&/g
37762s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37763D["\1"]=" \3\\\\\\n"\\/p
37764t cont
37765s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
37766t cont
37767d
37768:cont
37769n
37770s/.\{148\}/&'"$ac_delim"'/g
37771t clear
37772:clear
37773s/\\$//
37774t bsnlc
37775s/["\\]/\\&/g; s/^/"/; s/$/"/p
37776d
37777:bsnlc
37778s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
37779b cont
37780' <confdefs.h | sed '
37781s/'"$ac_delim"'/"\\\
37782"/g' >>$CONFIG_STATUS || ac_write_fail=1
37783
37784cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37785 for (key in D) D_is_set[key] = 1
37786 FS = ""
37787}
37788/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
37789 line = \$ 0
37790 split(line, arg, " ")
37791 if (arg[1] == "#") {
37792 defundef = arg[2]
37793 mac1 = arg[3]
37794 } else {
37795 defundef = substr(arg[1], 2)
37796 mac1 = arg[2]
37797 }
37798 split(mac1, mac2, "(") #)
37799 macro = mac2[1]
37800 prefix = substr(line, 1, index(line, defundef) - 1)
37801 if (D_is_set[macro]) {
37802 # Preserve the white space surrounding the "#".
37803 print prefix "define", macro P[macro] D[macro]
37804 next
37805 } else {
37806 # Replace #undef with comments. This is necessary, for example,
37807 # in the case of _POSIX_SOURCE, which is predefined and required
37808 # on some systems where configure will not decide to define it.
37809 if (defundef == "undef") {
37810 print "/*", prefix defundef, macro, "*/"
37811 next
37812 }
37813 }
37814}
37815{ print }
37816_ACAWK
37817_ACEOF
37818cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000037819 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037820fi # test -n "$CONFIG_HEADERS"
37821
37822
37823eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
37824shift
37825for ac_tag
37826do
37827 case $ac_tag in
37828 :[FHLC]) ac_mode=$ac_tag; continue;;
37829 esac
37830 case $ac_mode$ac_tag in
37831 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000037832 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037833 :[FH]-) ac_tag=-:-;;
37834 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
37835 esac
37836 ac_save_IFS=$IFS
37837 IFS=:
37838 set x $ac_tag
37839 IFS=$ac_save_IFS
37840 shift
37841 ac_file=$1
37842 shift
37843
37844 case $ac_mode in
37845 :L) ac_source=$1;;
37846 :[FH])
37847 ac_file_inputs=
37848 for ac_f
37849 do
37850 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000037851 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000037852 *) # Look for the file first in the build tree, then in the source tree
37853 # (if the path is not absolute). The absolute path cannot be DOS-style,
37854 # because $ac_f cannot contain `:'.
37855 test -f "$ac_f" ||
37856 case $ac_f in
37857 [\\/$]*) false;;
37858 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
37859 esac ||
cristy98dddb52010-11-04 00:30:15 +000037860 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037861 esac
37862 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000037863 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000037864 done
37865
37866 # Let's still pretend it is `configure' which instantiates (i.e., don't
37867 # use $as_me), people would be surprised to read:
37868 # /* config.h. Generated by config.status. */
37869 configure_input='Generated from '`
37870 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
37871 `' by configure.'
37872 if test x"$ac_file" != x-; then
37873 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000037874 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000037875$as_echo "$as_me: creating $ac_file" >&6;}
37876 fi
37877 # Neutralize special characters interpreted by sed in replacement strings.
37878 case $configure_input in #(
37879 *\&* | *\|* | *\\* )
37880 ac_sed_conf_input=`$as_echo "$configure_input" |
37881 sed 's/[\\\\&|]/\\\\&/g'`;; #(
37882 *) ac_sed_conf_input=$configure_input;;
37883 esac
37884
37885 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000037886 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000037887 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000037888 esac
37889 ;;
37890 esac
37891
37892 ac_dir=`$as_dirname -- "$ac_file" ||
37893$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37894 X"$ac_file" : 'X\(//\)[^/]' \| \
37895 X"$ac_file" : 'X\(//\)$' \| \
37896 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
37897$as_echo X"$ac_file" |
37898 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37899 s//\1/
37900 q
37901 }
37902 /^X\(\/\/\)[^/].*/{
37903 s//\1/
37904 q
37905 }
37906 /^X\(\/\/\)$/{
37907 s//\1/
37908 q
37909 }
37910 /^X\(\/\).*/{
37911 s//\1/
37912 q
37913 }
37914 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000037915 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000037916 ac_builddir=.
37917
37918case "$ac_dir" in
37919.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
37920*)
37921 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
37922 # A ".." for each directory in $ac_dir_suffix.
37923 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
37924 case $ac_top_builddir_sub in
37925 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
37926 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
37927 esac ;;
37928esac
37929ac_abs_top_builddir=$ac_pwd
37930ac_abs_builddir=$ac_pwd$ac_dir_suffix
37931# for backward compatibility:
37932ac_top_builddir=$ac_top_build_prefix
37933
37934case $srcdir in
37935 .) # We are building in place.
37936 ac_srcdir=.
37937 ac_top_srcdir=$ac_top_builddir_sub
37938 ac_abs_top_srcdir=$ac_pwd ;;
37939 [\\/]* | ?:[\\/]* ) # Absolute name.
37940 ac_srcdir=$srcdir$ac_dir_suffix;
37941 ac_top_srcdir=$srcdir
37942 ac_abs_top_srcdir=$srcdir ;;
37943 *) # Relative name.
37944 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
37945 ac_top_srcdir=$ac_top_build_prefix$srcdir
37946 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
37947esac
37948ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
37949
37950
37951 case $ac_mode in
37952 :F)
37953 #
37954 # CONFIG_FILE
37955 #
37956
37957 case $INSTALL in
37958 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
37959 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
37960 esac
cristy73bd4a52010-10-05 11:24:23 +000037961 ac_MKDIR_P=$MKDIR_P
37962 case $MKDIR_P in
37963 [\\/$]* | ?:[\\/]* ) ;;
37964 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
37965 esac
cristy3ed852e2009-09-05 21:47:34 +000037966_ACEOF
37967
37968cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37969# If the template does not know about datarootdir, expand it.
37970# FIXME: This hack should be removed a few years after 2.60.
37971ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000037972ac_sed_dataroot='
37973/datarootdir/ {
37974 p
37975 q
37976}
37977/@datadir@/p
37978/@docdir@/p
37979/@infodir@/p
37980/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000037981/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000037982case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
37983*datarootdir*) ac_datarootdir_seen=yes;;
37984*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000037985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000037986$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
37987_ACEOF
37988cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37989 ac_datarootdir_hack='
37990 s&@datadir@&$datadir&g
37991 s&@docdir@&$docdir&g
37992 s&@infodir@&$infodir&g
37993 s&@localedir@&$localedir&g
37994 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000037995 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000037996esac
37997_ACEOF
37998
37999# Neutralize VPATH when `$srcdir' = `.'.
38000# Shell code in configure.ac might set extrasub.
38001# FIXME: do we really want to maintain this feature?
38002cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38003ac_sed_extra="$ac_vpsub
38004$extrasub
38005_ACEOF
38006cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38007:t
38008/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
38009s|@configure_input@|$ac_sed_conf_input|;t t
38010s&@top_builddir@&$ac_top_builddir_sub&;t t
38011s&@top_build_prefix@&$ac_top_build_prefix&;t t
38012s&@srcdir@&$ac_srcdir&;t t
38013s&@abs_srcdir@&$ac_abs_srcdir&;t t
38014s&@top_srcdir@&$ac_top_srcdir&;t t
38015s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
38016s&@builddir@&$ac_builddir&;t t
38017s&@abs_builddir@&$ac_abs_builddir&;t t
38018s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
38019s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000038020s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000038021$ac_datarootdir_hack
38022"
cristyda16f162011-02-19 23:52:17 +000038023eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
38024 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038025
38026test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000038027 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
38028 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
38029 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000038030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000038031which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000038032$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000038033which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000038034
cristyda16f162011-02-19 23:52:17 +000038035 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000038036 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000038037 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
38038 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000038039 esac \
cristy98dddb52010-11-04 00:30:15 +000038040 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038041 ;;
38042 :H)
38043 #
38044 # CONFIG_HEADER
38045 #
38046 if test x"$ac_file" != x-; then
38047 {
38048 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000038049 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
38050 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000038051 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000038052 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000038053 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000038054$as_echo "$as_me: $ac_file is unchanged" >&6;}
38055 else
38056 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000038057 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000038058 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038059 fi
38060 else
38061 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000038062 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000038063 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038064 fi
cristy73bd4a52010-10-05 11:24:23 +000038065# Compute "$ac_file"'s index in $config_headers.
38066_am_arg="$ac_file"
38067_am_stamp_count=1
38068for _am_header in $config_headers :; do
38069 case $_am_header in
38070 $_am_arg | $_am_arg:* )
38071 break ;;
38072 * )
38073 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
38074 esac
38075done
38076echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
38077$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38078 X"$_am_arg" : 'X\(//\)[^/]' \| \
38079 X"$_am_arg" : 'X\(//\)$' \| \
38080 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
38081$as_echo X"$_am_arg" |
38082 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38083 s//\1/
38084 q
38085 }
38086 /^X\(\/\/\)[^/].*/{
38087 s//\1/
38088 q
38089 }
38090 /^X\(\/\/\)$/{
38091 s//\1/
38092 q
38093 }
38094 /^X\(\/\).*/{
38095 s//\1/
38096 q
38097 }
38098 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000038099 ;;
38100
cristy8b350f62009-11-15 23:12:43 +000038101 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000038102$as_echo "$as_me: executing $ac_file commands" >&6;}
38103 ;;
38104 esac
38105
38106
38107 case $ac_file$ac_mode in
cristy01ff9f32012-12-01 18:15:29 +000038108 "MagickCore/magick-baseconfig.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-baseconfig.h`
cristy73bd4a52010-10-05 11:24:23 +000038109ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
38110ac_prefix_conf_PKG=`echo MagickCore`
38111ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
38112ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
38113ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
38114if test ".$ac_prefix_conf_INP" = "."; then
38115 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
38116 case "$ac_file" in
38117 *.h) ac_prefix_conf_INP=$ac_file ;;
38118 *)
38119 esac
38120 test ".$ac_prefix_conf_INP" != "." && break
38121 done
38122fi
38123if test ".$ac_prefix_conf_INP" = "."; then
38124 case "$ac_prefix_conf_OUT" in
38125 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
38126 ;;
38127 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
38128 ;;
38129 *) ac_prefix_conf_INP=config.h
38130 ;;
38131 esac
38132fi
38133if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000038134 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000038135else
38136 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
38137 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
38138 fi fi
38139 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
38140$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
38141 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000038142 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
38143 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
38144 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
38145 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
38146 $as_echo "#endif/" >> conftest.prefix
38147 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
38148 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
38149 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000038150 # now executing _script on _DEF input to create _OUT output file
38151 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
38152 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
38153 echo ' ' >>$tmp/pconfig.h
38154 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
38155
38156 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
38157 echo ' ' >>$tmp/pconfig.h
38158 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
38159 echo "#endif" >>$tmp/pconfig.h
38160 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
38161 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
38162$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
38163 else
38164 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
38165$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38166 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
38167 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
38168 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
38169$as_echo X"$ac_prefix_conf_OUT" |
38170 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38171 s//\1/
38172 q
38173 }
38174 /^X\(\/\/\)[^/].*/{
38175 s//\1/
38176 q
38177 }
38178 /^X\(\/\/\)$/{
38179 s//\1/
38180 q
38181 }
38182 /^X\(\/\).*/{
38183 s//\1/
38184 q
38185 }
38186 s/.*/./; q'`
38187 as_dir="$ac_dir"; as_fn_mkdir_p
38188 rm -f "$ac_prefix_conf_OUT"
38189 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
38190 fi
cristy73bd4a52010-10-05 11:24:23 +000038191 else
cristy98dddb52010-11-04 00:30:15 +000038192 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 +000038193 fi
38194 rm -f conftest.*
38195fi
38196 ;;
38197 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
cristy58d34aa2013-01-24 15:11:54 +000038198 # Older Autoconf quotes --file arguments for eval, but not when files
cristy73bd4a52010-10-05 11:24:23 +000038199 # are listed without --file. Let's play safe and only enable the eval
38200 # if we detect the quoting.
38201 case $CONFIG_FILES in
38202 *\'*) eval set x "$CONFIG_FILES" ;;
38203 *) set x $CONFIG_FILES ;;
38204 esac
38205 shift
38206 for mf
38207 do
38208 # Strip MF so we end up with the name of the file.
38209 mf=`echo "$mf" | sed -e 's/:.*$//'`
38210 # Check whether this is an Automake generated Makefile or not.
cristyc0890a62012-07-19 00:18:20 +000038211 # We used to match only the files named 'Makefile.in', but
cristy73bd4a52010-10-05 11:24:23 +000038212 # some people rename them; so instead we look at the file content.
38213 # Grep'ing the first line is not enough: some people post-process
38214 # each Makefile.in and add a new line on top of each file to say so.
38215 # Grep'ing the whole file is not good either: AIX grep has a line
38216 # limit of 2048, but all sed's we know have understand at least 4000.
38217 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
38218 dirpart=`$as_dirname -- "$mf" ||
38219$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38220 X"$mf" : 'X\(//\)[^/]' \| \
38221 X"$mf" : 'X\(//\)$' \| \
38222 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
38223$as_echo X"$mf" |
38224 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38225 s//\1/
38226 q
38227 }
38228 /^X\(\/\/\)[^/].*/{
38229 s//\1/
38230 q
38231 }
38232 /^X\(\/\/\)$/{
38233 s//\1/
38234 q
38235 }
38236 /^X\(\/\).*/{
38237 s//\1/
38238 q
38239 }
38240 s/.*/./; q'`
38241 else
38242 continue
38243 fi
38244 # Extract the definition of DEPDIR, am__include, and am__quote
cristyc0890a62012-07-19 00:18:20 +000038245 # from the Makefile without running 'make'.
cristy73bd4a52010-10-05 11:24:23 +000038246 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
38247 test -z "$DEPDIR" && continue
38248 am__include=`sed -n 's/^am__include = //p' < "$mf"`
cristybced8142013-05-31 01:23:57 +000038249 test -z "$am__include" && continue
cristy73bd4a52010-10-05 11:24:23 +000038250 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
cristy73bd4a52010-10-05 11:24:23 +000038251 # Find all dependency output files, they are included files with
38252 # $(DEPDIR) in their names. We invoke sed twice because it is the
38253 # simplest approach to changing $(DEPDIR) to its actual value in the
38254 # expansion.
38255 for file in `sed -n "
38256 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
cristyc0890a62012-07-19 00:18:20 +000038257 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
cristy73bd4a52010-10-05 11:24:23 +000038258 # Make sure the directory exists.
38259 test -f "$dirpart/$file" && continue
38260 fdir=`$as_dirname -- "$file" ||
38261$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38262 X"$file" : 'X\(//\)[^/]' \| \
38263 X"$file" : 'X\(//\)$' \| \
38264 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
38265$as_echo X"$file" |
38266 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38267 s//\1/
38268 q
38269 }
38270 /^X\(\/\/\)[^/].*/{
38271 s//\1/
38272 q
38273 }
38274 /^X\(\/\/\)$/{
38275 s//\1/
38276 q
38277 }
38278 /^X\(\/\).*/{
38279 s//\1/
38280 q
38281 }
38282 s/.*/./; q'`
38283 as_dir=$dirpart/$fdir; as_fn_mkdir_p
38284 # echo "creating $dirpart/$file"
38285 echo '# dummy' > "$dirpart/$file"
38286 done
38287 done
38288}
38289 ;;
38290 "libtool":C)
38291
38292 # See if we are running on zsh, and set the options which allow our
38293 # commands through without removal of \ escapes.
38294 if test -n "${ZSH_VERSION+set}" ; then
38295 setopt NO_GLOB_SUBST
38296 fi
38297
38298 cfgfile="${ofile}T"
38299 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
38300 $RM "$cfgfile"
38301
38302 cat <<_LT_EOF >> "$cfgfile"
38303#! $SHELL
38304
38305# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
38306# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
38307# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
38308# NOTE: Changes made to this file will be lost: look at ltmain.sh.
38309#
38310# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy99bd5232011-12-07 14:38:20 +000038311# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
38312# Foundation, Inc.
cristy73bd4a52010-10-05 11:24:23 +000038313# Written by Gordon Matzigkeit, 1996
38314#
38315# This file is part of GNU Libtool.
38316#
38317# GNU Libtool is free software; you can redistribute it and/or
38318# modify it under the terms of the GNU General Public License as
38319# published by the Free Software Foundation; either version 2 of
38320# the License, or (at your option) any later version.
38321#
38322# As a special exception to the GNU General Public License,
38323# if you distribute this file as part of a program or library that
38324# is built using GNU Libtool, you may include this file under the
38325# same distribution terms that you use for the rest of that program.
38326#
38327# GNU Libtool is distributed in the hope that it will be useful,
38328# but WITHOUT ANY WARRANTY; without even the implied warranty of
38329# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
38330# GNU General Public License for more details.
38331#
38332# You should have received a copy of the GNU General Public License
38333# along with GNU Libtool; see the file COPYING. If not, a copy
38334# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
38335# obtained by writing to the Free Software Foundation, Inc.,
38336# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
38337
38338
38339# The names of the tagged configurations supported by this script.
38340available_tags="CXX "
38341
38342# ### BEGIN LIBTOOL CONFIG
38343
38344# A sed program that does not truncate output.
38345SED=$lt_SED
38346
38347# Sed that helps us avoid accidentally triggering echo(1) options like -n.
38348Xsed="\$SED -e 1s/^X//"
38349
38350# A grep program that handles long lines.
38351GREP=$lt_GREP
38352
38353# An ERE matcher.
38354EGREP=$lt_EGREP
38355
38356# A literal string matcher.
38357FGREP=$lt_FGREP
38358
cristy0c60a692010-11-04 01:09:47 +000038359# Shell to use when invoking shell scripts.
38360SHELL=$lt_SHELL
38361
38362# An echo program that protects backslashes.
38363ECHO=$lt_ECHO
38364
cristy73bd4a52010-10-05 11:24:23 +000038365# Which release of libtool.m4 was used?
38366macro_version=$macro_version
38367macro_revision=$macro_revision
38368
38369# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000038370AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000038371
38372# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000038373DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000038374
38375# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000038376OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000038377
38378# Whether or not to build shared libraries.
38379build_libtool_libs=$enable_shared
38380
38381# Whether or not to build static libraries.
38382build_old_libs=$enable_static
38383
38384# What type of objects to build.
38385pic_mode=$pic_mode
38386
38387# Whether or not to optimize for fast installation.
38388fast_install=$enable_fast_install
38389
cristy99bd5232011-12-07 14:38:20 +000038390# The PATH separator for the build system.
38391PATH_SEPARATOR=$lt_PATH_SEPARATOR
38392
cristy73bd4a52010-10-05 11:24:23 +000038393# The host system.
38394host_alias=$host_alias
38395host=$host
38396host_os=$host_os
38397
38398# The build system.
38399build_alias=$build_alias
38400build=$build
38401build_os=$build_os
38402
38403# A BSD- or MS-compatible name lister.
38404NM=$lt_NM
38405
38406# Whether we need soft or hard links.
38407LN_S=$lt_LN_S
38408
38409# What is the maximum length of a command?
38410max_cmd_len=$max_cmd_len
38411
38412# Object file suffix (normally "o").
38413objext=$ac_objext
38414
38415# Executable file suffix (normally "").
38416exeext=$exeext
38417
38418# whether the shell understands "unset".
38419lt_unset=$lt_unset
38420
38421# turn spaces into newlines.
38422SP2NL=$lt_lt_SP2NL
38423
38424# turn newlines into spaces.
38425NL2SP=$lt_lt_NL2SP
38426
cristyda16f162011-02-19 23:52:17 +000038427# convert \$build file names to \$host format.
38428to_host_file_cmd=$lt_cv_to_host_file_cmd
38429
38430# convert \$build files to toolchain format.
38431to_tool_file_cmd=$lt_cv_to_tool_file_cmd
38432
cristy73bd4a52010-10-05 11:24:23 +000038433# Method to check whether dependent libraries are shared objects.
38434deplibs_check_method=$lt_deplibs_check_method
38435
cristyda16f162011-02-19 23:52:17 +000038436# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000038437file_magic_cmd=$lt_file_magic_cmd
38438
cristyda16f162011-02-19 23:52:17 +000038439# How to find potential files when deplibs_check_method = "file_magic".
38440file_magic_glob=$lt_file_magic_glob
38441
38442# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
38443want_nocaseglob=$lt_want_nocaseglob
38444
38445# Command to associate shared and link libraries.
38446sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
38447
cristy73bd4a52010-10-05 11:24:23 +000038448# The archiver.
38449AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000038450
38451# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000038452AR_FLAGS=$lt_AR_FLAGS
38453
cristyda16f162011-02-19 23:52:17 +000038454# How to feed a file listing to the archiver.
38455archiver_list_spec=$lt_archiver_list_spec
38456
cristy73bd4a52010-10-05 11:24:23 +000038457# A symbol stripping program.
38458STRIP=$lt_STRIP
38459
38460# Commands used to install an old-style archive.
38461RANLIB=$lt_RANLIB
38462old_postinstall_cmds=$lt_old_postinstall_cmds
38463old_postuninstall_cmds=$lt_old_postuninstall_cmds
38464
cristy0c60a692010-11-04 01:09:47 +000038465# Whether to use a lock for old archive extraction.
38466lock_old_archive_extraction=$lock_old_archive_extraction
38467
cristy73bd4a52010-10-05 11:24:23 +000038468# A C compiler.
38469LTCC=$lt_CC
38470
38471# LTCC compiler flags.
38472LTCFLAGS=$lt_CFLAGS
38473
38474# Take the output of nm and produce a listing of raw symbols and C names.
38475global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
38476
38477# Transform the output of nm in a proper C declaration.
38478global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
38479
38480# Transform the output of nm in a C name address pair.
38481global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
38482
38483# Transform the output of nm in a C name address pair when lib prefix is needed.
38484global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
38485
cristyda16f162011-02-19 23:52:17 +000038486# Specify filename containing input files for \$NM.
38487nm_file_list_spec=$lt_nm_file_list_spec
38488
38489# The root where to search for dependent libraries,and in which our libraries should be installed.
38490lt_sysroot=$lt_sysroot
38491
cristy73bd4a52010-10-05 11:24:23 +000038492# The name of the directory that contains temporary libtool files.
38493objdir=$objdir
38494
cristy73bd4a52010-10-05 11:24:23 +000038495# Used to examine libraries when file_magic_cmd begins with "file".
38496MAGIC_CMD=$MAGIC_CMD
38497
38498# Must we lock files when doing compilation?
38499need_locks=$lt_need_locks
38500
cristyda16f162011-02-19 23:52:17 +000038501# Manifest tool.
38502MANIFEST_TOOL=$lt_MANIFEST_TOOL
38503
cristy73bd4a52010-10-05 11:24:23 +000038504# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
38505DSYMUTIL=$lt_DSYMUTIL
38506
38507# Tool to change global to local symbols on Mac OS X.
38508NMEDIT=$lt_NMEDIT
38509
38510# Tool to manipulate fat objects and archives on Mac OS X.
38511LIPO=$lt_LIPO
38512
38513# ldd/readelf like tool for Mach-O binaries on Mac OS X.
38514OTOOL=$lt_OTOOL
38515
38516# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
38517OTOOL64=$lt_OTOOL64
38518
38519# Old archive suffix (normally "a").
38520libext=$libext
38521
38522# Shared library suffix (normally ".so").
38523shrext_cmds=$lt_shrext_cmds
38524
38525# The commands to extract the exported symbol list from a shared archive.
38526extract_expsyms_cmds=$lt_extract_expsyms_cmds
38527
38528# Variables whose values should be saved in libtool wrapper scripts and
38529# restored at link time.
38530variables_saved_for_relink=$lt_variables_saved_for_relink
38531
38532# Do we need the "lib" prefix for modules?
38533need_lib_prefix=$need_lib_prefix
38534
38535# Do we need a version for libraries?
38536need_version=$need_version
38537
38538# Library versioning type.
38539version_type=$version_type
38540
38541# Shared library runtime path variable.
38542runpath_var=$runpath_var
38543
38544# Shared library path variable.
38545shlibpath_var=$shlibpath_var
38546
38547# Is shlibpath searched before the hard-coded library search path?
38548shlibpath_overrides_runpath=$shlibpath_overrides_runpath
38549
38550# Format of library name prefix.
38551libname_spec=$lt_libname_spec
38552
38553# List of archive names. First name is the real one, the rest are links.
38554# The last name is the one that the linker finds with -lNAME
38555library_names_spec=$lt_library_names_spec
38556
38557# The coded name of the library, if different from the real name.
38558soname_spec=$lt_soname_spec
38559
cristy0c60a692010-11-04 01:09:47 +000038560# Permission mode override for installation of shared libraries.
38561install_override_mode=$lt_install_override_mode
38562
cristy73bd4a52010-10-05 11:24:23 +000038563# Command to use after installation of a shared archive.
38564postinstall_cmds=$lt_postinstall_cmds
38565
38566# Command to use after uninstallation of a shared archive.
38567postuninstall_cmds=$lt_postuninstall_cmds
38568
38569# Commands used to finish a libtool library installation in a directory.
38570finish_cmds=$lt_finish_cmds
38571
38572# As "finish_cmds", except a single script fragment to be evaled but
38573# not shown.
38574finish_eval=$lt_finish_eval
38575
38576# Whether we should hardcode library paths into libraries.
38577hardcode_into_libs=$hardcode_into_libs
38578
38579# Compile-time system search path for libraries.
38580sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
38581
38582# Run-time system search path for libraries.
38583sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
38584
38585# Whether dlopen is supported.
38586dlopen_support=$enable_dlopen
38587
38588# Whether dlopen of programs is supported.
38589dlopen_self=$enable_dlopen_self
38590
38591# Whether dlopen of statically linked programs is supported.
38592dlopen_self_static=$enable_dlopen_self_static
38593
38594# Commands to strip libraries.
38595old_striplib=$lt_old_striplib
38596striplib=$lt_striplib
38597
38598
38599# The linker used to build libraries.
38600LD=$lt_LD
38601
cristy0c60a692010-11-04 01:09:47 +000038602# How to create reloadable object files.
38603reload_flag=$lt_reload_flag
38604reload_cmds=$lt_reload_cmds
38605
cristy73bd4a52010-10-05 11:24:23 +000038606# Commands used to build an old-style archive.
38607old_archive_cmds=$lt_old_archive_cmds
38608
38609# A language specific compiler.
38610CC=$lt_compiler
38611
38612# Is the compiler the GNU compiler?
38613with_gcc=$GCC
38614
38615# Compiler flag to turn off builtin functions.
38616no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
38617
cristy73bd4a52010-10-05 11:24:23 +000038618# Additional compiler flags for building library objects.
38619pic_flag=$lt_lt_prog_compiler_pic
38620
cristyda16f162011-02-19 23:52:17 +000038621# How to pass a linker flag through the compiler.
38622wl=$lt_lt_prog_compiler_wl
38623
cristy73bd4a52010-10-05 11:24:23 +000038624# Compiler flag to prevent dynamic linking.
38625link_static_flag=$lt_lt_prog_compiler_static
38626
38627# Does compiler simultaneously support -c and -o options?
38628compiler_c_o=$lt_lt_cv_prog_compiler_c_o
38629
38630# Whether or not to add -lc for building shared libraries.
38631build_libtool_need_lc=$archive_cmds_need_lc
38632
38633# Whether or not to disallow shared libs when runtime libs are static.
38634allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
38635
38636# Compiler flag to allow reflexive dlopens.
38637export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
38638
38639# Compiler flag to generate shared objects directly from archives.
38640whole_archive_flag_spec=$lt_whole_archive_flag_spec
38641
38642# Whether the compiler copes with passing no objects directly.
38643compiler_needs_object=$lt_compiler_needs_object
38644
38645# Create an old-style archive from a shared archive.
38646old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
38647
38648# Create a temporary old-style archive to link instead of a shared archive.
38649old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
38650
38651# Commands used to build a shared archive.
38652archive_cmds=$lt_archive_cmds
38653archive_expsym_cmds=$lt_archive_expsym_cmds
38654
38655# Commands used to build a loadable module if different from building
38656# a shared archive.
38657module_cmds=$lt_module_cmds
38658module_expsym_cmds=$lt_module_expsym_cmds
38659
38660# Whether we are building with GNU ld or not.
38661with_gnu_ld=$lt_with_gnu_ld
38662
38663# Flag that allows shared libraries with undefined symbols to be built.
38664allow_undefined_flag=$lt_allow_undefined_flag
38665
38666# Flag that enforces no undefined symbols.
38667no_undefined_flag=$lt_no_undefined_flag
38668
38669# Flag to hardcode \$libdir into a binary during linking.
38670# This must work even if \$libdir does not exist
38671hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
38672
cristy73bd4a52010-10-05 11:24:23 +000038673# Whether we need a single "-rpath" flag with a separated argument.
38674hardcode_libdir_separator=$lt_hardcode_libdir_separator
38675
38676# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38677# DIR into the resulting binary.
38678hardcode_direct=$hardcode_direct
38679
38680# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38681# DIR into the resulting binary and the resulting library dependency is
38682# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38683# library is relocated.
38684hardcode_direct_absolute=$hardcode_direct_absolute
38685
38686# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38687# into the resulting binary.
38688hardcode_minus_L=$hardcode_minus_L
38689
38690# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38691# into the resulting binary.
38692hardcode_shlibpath_var=$hardcode_shlibpath_var
38693
38694# Set to "yes" if building a shared library automatically hardcodes DIR
38695# into the library and all subsequent libraries and executables linked
38696# against it.
38697hardcode_automatic=$hardcode_automatic
38698
38699# Set to yes if linker adds runtime paths of dependent libraries
38700# to runtime path list.
38701inherit_rpath=$inherit_rpath
38702
38703# Whether libtool must link a program against all its dependency libraries.
38704link_all_deplibs=$link_all_deplibs
38705
cristy73bd4a52010-10-05 11:24:23 +000038706# Set to "yes" if exported symbols are required.
38707always_export_symbols=$always_export_symbols
38708
38709# The commands to list exported symbols.
38710export_symbols_cmds=$lt_export_symbols_cmds
38711
38712# Symbols that should not be listed in the preloaded symbols.
38713exclude_expsyms=$lt_exclude_expsyms
38714
38715# Symbols that must always be exported.
38716include_expsyms=$lt_include_expsyms
38717
38718# Commands necessary for linking programs (against libraries) with templates.
38719prelink_cmds=$lt_prelink_cmds
38720
cristyda16f162011-02-19 23:52:17 +000038721# Commands necessary for finishing linking programs.
38722postlink_cmds=$lt_postlink_cmds
38723
cristy73bd4a52010-10-05 11:24:23 +000038724# Specify filename containing input files.
38725file_list_spec=$lt_file_list_spec
38726
38727# How to hardcode a shared library path into an executable.
38728hardcode_action=$hardcode_action
38729
38730# The directories searched by this compiler when creating a shared library.
38731compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
38732
38733# Dependencies to place before and after the objects being linked to
38734# create a shared library.
38735predep_objects=$lt_predep_objects
38736postdep_objects=$lt_postdep_objects
38737predeps=$lt_predeps
38738postdeps=$lt_postdeps
38739
38740# The library search path used internally by the compiler when linking
38741# a shared library.
38742compiler_lib_search_path=$lt_compiler_lib_search_path
38743
38744# ### END LIBTOOL CONFIG
38745
38746_LT_EOF
38747
38748 case $host_os in
38749 aix3*)
38750 cat <<\_LT_EOF >> "$cfgfile"
38751# AIX sometimes has problems with the GCC collect2 program. For some
38752# reason, if we set the COLLECT_NAMES environment variable, the problems
38753# vanish in a puff of smoke.
38754if test "X${COLLECT_NAMES+set}" != Xset; then
38755 COLLECT_NAMES=
38756 export COLLECT_NAMES
38757fi
38758_LT_EOF
38759 ;;
38760 esac
38761
38762
38763ltmain="$ac_aux_dir/ltmain.sh"
38764
38765
38766 # We use sed instead of cat because bash on DJGPP gets confused if
38767 # if finds mixed CR/LF and LF-only lines. Since sed operates in
38768 # text mode, it properly converts lines to CR/LF. This bash problem
38769 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000038770 sed '$q' "$ltmain" >> "$cfgfile" \
38771 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000038772
cristyda16f162011-02-19 23:52:17 +000038773 if test x"$xsi_shell" = xyes; then
38774 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
38775func_dirname ()\
38776{\
38777\ case ${1} in\
38778\ */*) func_dirname_result="${1%/*}${2}" ;;\
38779\ * ) func_dirname_result="${3}" ;;\
38780\ esac\
38781} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
38782 && mv -f "$cfgfile.tmp" "$cfgfile" \
38783 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38784test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038785
38786
cristyda16f162011-02-19 23:52:17 +000038787 sed -e '/^func_basename ()$/,/^} # func_basename /c\
38788func_basename ()\
38789{\
38790\ func_basename_result="${1##*/}"\
38791} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
38792 && mv -f "$cfgfile.tmp" "$cfgfile" \
38793 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38794test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038795
38796
cristyda16f162011-02-19 23:52:17 +000038797 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
38798func_dirname_and_basename ()\
38799{\
38800\ case ${1} in\
38801\ */*) func_dirname_result="${1%/*}${2}" ;;\
38802\ * ) func_dirname_result="${3}" ;;\
38803\ esac\
38804\ func_basename_result="${1##*/}"\
38805} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
38806 && mv -f "$cfgfile.tmp" "$cfgfile" \
38807 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38808test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038809
cristyda16f162011-02-19 23:52:17 +000038810
38811 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
38812func_stripname ()\
38813{\
38814\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
38815\ # positional parameters, so assign one to ordinary parameter first.\
38816\ func_stripname_result=${3}\
38817\ func_stripname_result=${func_stripname_result#"${1}"}\
38818\ func_stripname_result=${func_stripname_result%"${2}"}\
38819} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
38820 && mv -f "$cfgfile.tmp" "$cfgfile" \
38821 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38822test 0 -eq $? || _lt_function_replace_fail=:
38823
38824
38825 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
38826func_split_long_opt ()\
38827{\
38828\ func_split_long_opt_name=${1%%=*}\
38829\ func_split_long_opt_arg=${1#*=}\
38830} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
38831 && mv -f "$cfgfile.tmp" "$cfgfile" \
38832 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38833test 0 -eq $? || _lt_function_replace_fail=:
38834
38835
38836 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
38837func_split_short_opt ()\
38838{\
38839\ func_split_short_opt_arg=${1#??}\
38840\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
38841} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
38842 && mv -f "$cfgfile.tmp" "$cfgfile" \
38843 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38844test 0 -eq $? || _lt_function_replace_fail=:
38845
38846
38847 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
38848func_lo2o ()\
38849{\
38850\ case ${1} in\
38851\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
38852\ *) func_lo2o_result=${1} ;;\
38853\ esac\
38854} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
38855 && mv -f "$cfgfile.tmp" "$cfgfile" \
38856 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38857test 0 -eq $? || _lt_function_replace_fail=:
38858
38859
38860 sed -e '/^func_xform ()$/,/^} # func_xform /c\
38861func_xform ()\
38862{\
38863 func_xform_result=${1%.*}.lo\
38864} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
38865 && mv -f "$cfgfile.tmp" "$cfgfile" \
38866 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38867test 0 -eq $? || _lt_function_replace_fail=:
38868
38869
38870 sed -e '/^func_arith ()$/,/^} # func_arith /c\
38871func_arith ()\
38872{\
38873 func_arith_result=$(( $* ))\
38874} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
38875 && mv -f "$cfgfile.tmp" "$cfgfile" \
38876 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38877test 0 -eq $? || _lt_function_replace_fail=:
38878
38879
38880 sed -e '/^func_len ()$/,/^} # func_len /c\
38881func_len ()\
38882{\
38883 func_len_result=${#1}\
38884} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
38885 && mv -f "$cfgfile.tmp" "$cfgfile" \
38886 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38887test 0 -eq $? || _lt_function_replace_fail=:
38888
38889fi
38890
38891if test x"$lt_shell_append" = xyes; then
38892 sed -e '/^func_append ()$/,/^} # func_append /c\
38893func_append ()\
38894{\
38895 eval "${1}+=\\${2}"\
38896} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
38897 && mv -f "$cfgfile.tmp" "$cfgfile" \
38898 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38899test 0 -eq $? || _lt_function_replace_fail=:
38900
38901
38902 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
38903func_append_quoted ()\
38904{\
38905\ func_quote_for_eval "${2}"\
38906\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
38907} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
38908 && mv -f "$cfgfile.tmp" "$cfgfile" \
38909 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38910test 0 -eq $? || _lt_function_replace_fail=:
38911
38912
38913 # Save a `func_append' function call where possible by direct use of '+='
38914 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
38915 && mv -f "$cfgfile.tmp" "$cfgfile" \
38916 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38917 test 0 -eq $? || _lt_function_replace_fail=:
38918else
38919 # Save a `func_append' function call even when '+=' is not available
38920 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
38921 && mv -f "$cfgfile.tmp" "$cfgfile" \
38922 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38923 test 0 -eq $? || _lt_function_replace_fail=:
38924fi
38925
38926if test x"$_lt_function_replace_fail" = x":"; then
38927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
38928$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
38929fi
38930
38931
38932 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000038933 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
38934 chmod +x "$ofile"
38935
38936
38937 cat <<_LT_EOF >> "$ofile"
38938
38939# ### BEGIN LIBTOOL TAG CONFIG: CXX
38940
38941# The linker used to build libraries.
38942LD=$lt_LD_CXX
38943
cristy0c60a692010-11-04 01:09:47 +000038944# How to create reloadable object files.
38945reload_flag=$lt_reload_flag_CXX
38946reload_cmds=$lt_reload_cmds_CXX
38947
cristy73bd4a52010-10-05 11:24:23 +000038948# Commands used to build an old-style archive.
38949old_archive_cmds=$lt_old_archive_cmds_CXX
38950
38951# A language specific compiler.
38952CC=$lt_compiler_CXX
38953
38954# Is the compiler the GNU compiler?
38955with_gcc=$GCC_CXX
38956
38957# Compiler flag to turn off builtin functions.
38958no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
38959
cristy73bd4a52010-10-05 11:24:23 +000038960# Additional compiler flags for building library objects.
38961pic_flag=$lt_lt_prog_compiler_pic_CXX
38962
cristyda16f162011-02-19 23:52:17 +000038963# How to pass a linker flag through the compiler.
38964wl=$lt_lt_prog_compiler_wl_CXX
38965
cristy73bd4a52010-10-05 11:24:23 +000038966# Compiler flag to prevent dynamic linking.
38967link_static_flag=$lt_lt_prog_compiler_static_CXX
38968
38969# Does compiler simultaneously support -c and -o options?
38970compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
38971
38972# Whether or not to add -lc for building shared libraries.
38973build_libtool_need_lc=$archive_cmds_need_lc_CXX
38974
38975# Whether or not to disallow shared libs when runtime libs are static.
38976allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
38977
38978# Compiler flag to allow reflexive dlopens.
38979export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
38980
38981# Compiler flag to generate shared objects directly from archives.
38982whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
38983
38984# Whether the compiler copes with passing no objects directly.
38985compiler_needs_object=$lt_compiler_needs_object_CXX
38986
38987# Create an old-style archive from a shared archive.
38988old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
38989
38990# Create a temporary old-style archive to link instead of a shared archive.
38991old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
38992
38993# Commands used to build a shared archive.
38994archive_cmds=$lt_archive_cmds_CXX
38995archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
38996
38997# Commands used to build a loadable module if different from building
38998# a shared archive.
38999module_cmds=$lt_module_cmds_CXX
39000module_expsym_cmds=$lt_module_expsym_cmds_CXX
39001
39002# Whether we are building with GNU ld or not.
39003with_gnu_ld=$lt_with_gnu_ld_CXX
39004
39005# Flag that allows shared libraries with undefined symbols to be built.
39006allow_undefined_flag=$lt_allow_undefined_flag_CXX
39007
39008# Flag that enforces no undefined symbols.
39009no_undefined_flag=$lt_no_undefined_flag_CXX
39010
39011# Flag to hardcode \$libdir into a binary during linking.
39012# This must work even if \$libdir does not exist
39013hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
39014
cristy73bd4a52010-10-05 11:24:23 +000039015# Whether we need a single "-rpath" flag with a separated argument.
39016hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
39017
39018# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
39019# DIR into the resulting binary.
39020hardcode_direct=$hardcode_direct_CXX
39021
39022# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
39023# DIR into the resulting binary and the resulting library dependency is
39024# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
39025# library is relocated.
39026hardcode_direct_absolute=$hardcode_direct_absolute_CXX
39027
39028# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
39029# into the resulting binary.
39030hardcode_minus_L=$hardcode_minus_L_CXX
39031
39032# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
39033# into the resulting binary.
39034hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
39035
39036# Set to "yes" if building a shared library automatically hardcodes DIR
39037# into the library and all subsequent libraries and executables linked
39038# against it.
39039hardcode_automatic=$hardcode_automatic_CXX
39040
39041# Set to yes if linker adds runtime paths of dependent libraries
39042# to runtime path list.
39043inherit_rpath=$inherit_rpath_CXX
39044
39045# Whether libtool must link a program against all its dependency libraries.
39046link_all_deplibs=$link_all_deplibs_CXX
39047
cristy73bd4a52010-10-05 11:24:23 +000039048# Set to "yes" if exported symbols are required.
39049always_export_symbols=$always_export_symbols_CXX
39050
39051# The commands to list exported symbols.
39052export_symbols_cmds=$lt_export_symbols_cmds_CXX
39053
39054# Symbols that should not be listed in the preloaded symbols.
39055exclude_expsyms=$lt_exclude_expsyms_CXX
39056
39057# Symbols that must always be exported.
39058include_expsyms=$lt_include_expsyms_CXX
39059
39060# Commands necessary for linking programs (against libraries) with templates.
39061prelink_cmds=$lt_prelink_cmds_CXX
39062
cristyda16f162011-02-19 23:52:17 +000039063# Commands necessary for finishing linking programs.
39064postlink_cmds=$lt_postlink_cmds_CXX
39065
cristy73bd4a52010-10-05 11:24:23 +000039066# Specify filename containing input files.
39067file_list_spec=$lt_file_list_spec_CXX
39068
39069# How to hardcode a shared library path into an executable.
39070hardcode_action=$hardcode_action_CXX
39071
39072# The directories searched by this compiler when creating a shared library.
39073compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
39074
39075# Dependencies to place before and after the objects being linked to
39076# create a shared library.
39077predep_objects=$lt_predep_objects_CXX
39078postdep_objects=$lt_postdep_objects_CXX
39079predeps=$lt_predeps_CXX
39080postdeps=$lt_postdeps_CXX
39081
39082# The library search path used internally by the compiler when linking
39083# a shared library.
39084compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
39085
39086# ### END LIBTOOL TAG CONFIG: CXX
39087_LT_EOF
39088
39089 ;;
cristy2bd4b6e2012-07-22 15:29:11 +000039090 "magick.sh.in":C) chmod +x magick.sh ;;
cristy4c08aed2011-07-01 19:47:50 +000039091 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
cristy4c08aed2011-07-01 19:47:50 +000039092 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
cristy3ed852e2009-09-05 21:47:34 +000039093 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
39094 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
39095
39096 esac
39097done # for ac_tag
39098
39099
cristy8b350f62009-11-15 23:12:43 +000039100as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000039101_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000039102ac_clean_files=$ac_clean_files_save
39103
39104test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000039105 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000039106
39107
39108# configure is writing to config.log, and then calls config.status.
39109# config.status does its own redirection, appending to config.log.
39110# Unfortunately, on DOS this fails, as config.log is still kept open
39111# by configure, so config.status won't be able to write to it; its
39112# output is simply discarded. So we exec the FD to /dev/null,
39113# effectively closing config.log, so it can be properly (re)opened and
39114# appended to by config.status. When coming back to configure, we
39115# need to make the FD available again.
39116if test "$no_create" != yes; then
39117 ac_cs_success=:
39118 ac_config_status_args=
39119 test "$silent" = yes &&
39120 ac_config_status_args="$ac_config_status_args --quiet"
39121 exec 5>/dev/null
39122 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
39123 exec 5>>config.log
39124 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
39125 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000039126 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000039127fi
39128if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000039129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000039130$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
39131fi
39132
39133
39134rm -f magick-version
39135
cristy430a7312010-01-21 20:44:04 +000039136result_dejavu_font_dir='none'
39137if test "${dejavu_font_dir}x" != 'x'; then
39138 result_dejavu_font_dir=$dejavu_font_dir
39139fi
39140
cristy3ed852e2009-09-05 21:47:34 +000039141result_ghostscript_font_dir='none'
39142if test "${ghostscript_font_dir}x" != 'x'; then
39143 result_ghostscript_font_dir=$ghostscript_font_dir
39144fi
39145
39146result_windows_font_dir='none'
39147if test "${windows_font_dir}x" != 'x'; then
39148 result_windows_font_dir=${windows_font_dir}
39149fi
39150
cristyad38abe2012-12-23 23:03:21 +000039151{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
cristy3ed852e2009-09-05 21:47:34 +000039152ImageMagick is configured as follows. Please verify that this configuration
39153matches your expectations.
39154
39155Host system type: $host
39156Build system type: $build
39157
39158 Option Value
39159-------------------------------------------------------------------------------
39160Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
39161Static libraries --enable-static=$enable_static $libtool_build_static_libs
cristyc6722092012-10-14 00:19:31 +000039162Module support --with-modules=$build_modules $build_modules
cristy3ed852e2009-09-05 21:47:34 +000039163GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
39164Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
39165High Dynamic Range Imagery
39166 --enable-hdri=$enable_hdri $enable_hdri
39167
cristy5a3dc992014-12-05 19:50:04 +000039168Delegate Library Configuration:
cristy3ed852e2009-09-05 21:47:34 +000039169BZLIB --with-bzlib=$with_bzlib $have_bzlib
39170Autotrace --with-autotrace=$with_autotrace $have_autotrace
39171DJVU --with-djvu=$with_djvu $have_djvu
39172DPS --with-dps=$with_dps $have_dps
39173FFTW --with-fftw=$with_fftw $have_fftw
39174FlashPIX --with-fpx=$with_fpx $have_fpx
39175FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
39176FreeType --with-freetype=$with_freetype $have_freetype
cristy3ed852e2009-09-05 21:47:34 +000039177Ghostscript lib --with-gslib=$with_gslib $have_gslib
39178Graphviz --with-gvc=$with_gvc $have_gvc
39179JBIG --with-jbig=$with_jbig $have_jbig
39180JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
39181JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000039182LCMS v1 --with-lcms=$with_lcms $have_lcms
39183LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy99db3872014-01-01 15:11:34 +000039184LIBJPEG2 --with-openjp2=$with_openjp2 $have_openjp2
cristy3ed852e2009-09-05 21:47:34 +000039185LQR --with-lqr=$with_lqr $have_lqr
cristy5eef09f2012-10-16 12:08:28 +000039186LTDL --with-ltdl=$with_ltdl $have_ltdl
cristyfbb0ef02010-12-19 02:32:11 +000039187LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000039188Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
39189OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000039190PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000039191PERL --with-perl=$with_perl $have_perl
39192PNG --with-png=$with_png $have_png
39193RSVG --with-rsvg=$with_rsvg $have_rsvg
39194TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000039195WEBP --with-webp=$with_webp $have_webp
cristy01ff9f32012-12-01 18:15:29 +000039196WMF --with-wmf=$with_wmf $have_wmf
cristy3ed852e2009-09-05 21:47:34 +000039197X11 --with-x=$with_x $have_x
39198XML --with-xml=$with_xml $have_xml
39199ZLIB --with-zlib=$with_zlib $have_zlib
39200
cristy5a3dc992014-12-05 19:50:04 +000039201Delegate Program Configuration:
39202GhostPCL None $PCLDelegate ($PCLVersion)
39203GhostXPS None $XPSDelegate ($XPSVersion)
39204Ghostscript None $PSDelegate ($GSVersion)
39205
39206Font Configuration:
39207Apple fonts --with-apple-font-dir=$with_apple_font_dir $result_apple_font_dir
39208Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
39209Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
39210Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
39211
cristy3ed852e2009-09-05 21:47:34 +000039212X11 Configuration:
39213 X_CFLAGS = $X_CFLAGS
39214 X_PRE_LIBS = $X_PRE_LIBS
39215 X_LIBS = $X_LIBS
39216 X_EXTRA_LIBS = $X_EXTRA_LIBS
39217
39218Options used to compile and link:
39219 PREFIX = $PREFIX_DIR
39220 EXEC-PREFIX = $EXEC_PREFIX_DIR
39221 VERSION = $PACKAGE_VERSION
39222 CC = $CC
39223 CFLAGS = $CFLAGS
cristy03ae99f2014-04-28 16:34:55 +000039224 CPPFLAGS = $CPPFLAGS
39225 PCFLAGS = $PCFLAGS
cristy3ed852e2009-09-05 21:47:34 +000039226 DEFS = $DEFS
39227 LDFLAGS = $LDFLAGS
cristy03ae99f2014-04-28 16:34:55 +000039228 LIBS = $LIBS
cristy3ed852e2009-09-05 21:47:34 +000039229 CXX = $CXX
39230 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000039231 FEATURES = $MAGICK_FEATURES
cristy422d5502012-12-22 22:20:57 +000039232 DELEGATES = $MAGICK_DELEGATES
cristy3ed852e2009-09-05 21:47:34 +000039233" >&5
cristyad38abe2012-12-23 23:03:21 +000039234$as_echo "
cristy3ed852e2009-09-05 21:47:34 +000039235ImageMagick is configured as follows. Please verify that this configuration
39236matches your expectations.
39237
39238Host system type: $host
39239Build system type: $build
39240
39241 Option Value
39242-------------------------------------------------------------------------------
39243Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
39244Static libraries --enable-static=$enable_static $libtool_build_static_libs
cristyc6722092012-10-14 00:19:31 +000039245Module support --with-modules=$build_modules $build_modules
cristy3ed852e2009-09-05 21:47:34 +000039246GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
39247Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
39248High Dynamic Range Imagery
39249 --enable-hdri=$enable_hdri $enable_hdri
39250
cristy5a3dc992014-12-05 19:50:04 +000039251Delegate Library Configuration:
cristy3ed852e2009-09-05 21:47:34 +000039252BZLIB --with-bzlib=$with_bzlib $have_bzlib
39253Autotrace --with-autotrace=$with_autotrace $have_autotrace
39254DJVU --with-djvu=$with_djvu $have_djvu
39255DPS --with-dps=$with_dps $have_dps
39256FFTW --with-fftw=$with_fftw $have_fftw
39257FlashPIX --with-fpx=$with_fpx $have_fpx
39258FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
39259FreeType --with-freetype=$with_freetype $have_freetype
cristy3ed852e2009-09-05 21:47:34 +000039260Ghostscript lib --with-gslib=$with_gslib $have_gslib
39261Graphviz --with-gvc=$with_gvc $have_gvc
39262JBIG --with-jbig=$with_jbig $have_jbig
39263JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
39264JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000039265LCMS v1 --with-lcms=$with_lcms $have_lcms
39266LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy99db3872014-01-01 15:11:34 +000039267LIBJPEG2 --with-openjp2=$with_openjp2 $have_openjp2
cristy3ed852e2009-09-05 21:47:34 +000039268LQR --with-lqr=$with_lqr $have_lqr
cristy5eef09f2012-10-16 12:08:28 +000039269LTDL --with-ltdl=$with_ltdl $have_ltdl
cristyfbb0ef02010-12-19 02:32:11 +000039270LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000039271Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
39272OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000039273PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000039274PERL --with-perl=$with_perl $have_perl
39275PNG --with-png=$with_png $have_png
39276RSVG --with-rsvg=$with_rsvg $have_rsvg
39277TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000039278WEBP --with-webp=$with_webp $have_webp
cristy01ff9f32012-12-01 18:15:29 +000039279WMF --with-wmf=$with_wmf $have_wmf
cristy3ed852e2009-09-05 21:47:34 +000039280X11 --with-x=$with_x $have_x
39281XML --with-xml=$with_xml $have_xml
39282ZLIB --with-zlib=$with_zlib $have_zlib
39283
cristy5a3dc992014-12-05 19:50:04 +000039284Delegate Program Configuration:
39285GhostPCL None $PCLDelegate ($PCLVersion)
39286GhostXPS None $XPSDelegate ($XPSVersion)
39287Ghostscript None $PSDelegate ($GSVersion)
39288
39289Font Configuration:
39290Apple fonts --with-apple-font-dir=$with_apple_font_dir $result_apple_font_dir
39291Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
39292Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
39293Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
39294
cristy3ed852e2009-09-05 21:47:34 +000039295X11 Configuration:
39296 X_CFLAGS = $X_CFLAGS
39297 X_PRE_LIBS = $X_PRE_LIBS
39298 X_LIBS = $X_LIBS
39299 X_EXTRA_LIBS = $X_EXTRA_LIBS
39300
39301Options used to compile and link:
39302 PREFIX = $PREFIX_DIR
39303 EXEC-PREFIX = $EXEC_PREFIX_DIR
39304 VERSION = $PACKAGE_VERSION
39305 CC = $CC
39306 CFLAGS = $CFLAGS
cristy03ae99f2014-04-28 16:34:55 +000039307 CPPFLAGS = $CPPFLAGS
39308 PCFLAGS = $PCFLAGS
cristy3ed852e2009-09-05 21:47:34 +000039309 DEFS = $DEFS
39310 LDFLAGS = $LDFLAGS
cristy03ae99f2014-04-28 16:34:55 +000039311 LIBS = $LIBS
cristy3ed852e2009-09-05 21:47:34 +000039312 CXX = $CXX
39313 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000039314 FEATURES = $MAGICK_FEATURES
cristy422d5502012-12-22 22:20:57 +000039315 DELEGATES = $MAGICK_DELEGATES
cristyad38abe2012-12-23 23:03:21 +000039316" >&6; }