blob: 54e5fb78ff16fabe45a9899a568dbbd9320ca63a [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
cristy14fefe52012-05-21 00:59:18 +00003# Generated by GNU Autoconf 2.69 for ImageMagick 7.0.0-0.
cristy3ed852e2009-09-05 21:47:34 +00004#
5# Report bugs to <http://www.imagemagick.org>.
6#
cristycd4c5312009-11-22 01:19:08 +00007#
cristy14fefe52012-05-21 00:59:18 +00008# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
cristycd4c5312009-11-22 01:19:08 +00009#
cristy8b350f62009-11-15 23:12:43 +000010#
cristy3ed852e2009-09-05 21:47:34 +000011# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
cristy8b350f62009-11-15 23:12:43 +000013## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000016
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000019if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000020 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26else
cristy8b350f62009-11-15 23:12:43 +000027 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
cristy3ed852e2009-09-05 21:47:34 +000032esac
cristy3ed852e2009-09-05 21:47:34 +000033fi
34
35
cristy3ed852e2009-09-05 21:47:34 +000036as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000043# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000050 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000060 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000061 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81fi
82
cristy3ed852e2009-09-05 21:47:34 +000083
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000092as_myself=
cristy8b350f62009-11-15 23:12:43 +000093case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000094 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +0000100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
cristy3ed852e2009-09-05 21:47:34 +0000102IFS=$as_save_IFS
103
104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +0000113 exit 1
cristy3ed852e2009-09-05 21:47:34 +0000114fi
115
cristy8b350f62009-11-15 23:12:43 +0000116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +0000123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
cristy8b350f62009-11-15 23:12:43 +0000134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
cristy14fefe52012-05-21 00:59:18 +0000137# Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
cristy8b350f62009-11-15 23:12:43 +0000162if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176esac
177fi
178"
179 as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193 exitcode=1; echo positional parameters were not saved.
194fi
cristy14fefe52012-05-21 00:59:18 +0000195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
cristy8b350f62009-11-15 23:12:43 +0000197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
cristy0c60a692010-11-04 01:09:47 +0000201test \$(( 1 + 1 )) = 2 || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
cristy8b350f62009-11-15 23:12:43 +0000210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212else
213 as_have_required=no
214fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235fi
236fi
237 done;;
238 esac
239 as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
cristy14fefe52012-05-21 00:59:18 +0000249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
cristy8b350f62009-11-15 23:12:43 +0000268fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: http://www.imagemagick.org about your system, including
279$0: any error possibly output before this message. Then
280$0: install a modern shell, or manually run the script
281$0: under such a shell if you do have one."
282 fi
283 exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301 { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310 return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318 set +e
319 as_fn_set_status $1
320 exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +0000366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +0000367
368
369} # as_fn_mkdir_p
cristy14fefe52012-05-21 00:59:18 +0000370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376 test -f "$1" && test -x "$1"
377} # as_fn_executable_p
cristy8b350f62009-11-15 23:12:43 +0000378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411fi # as_fn_arith
412
413
cristy98dddb52010-11-04 00:30:15 +0000414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +0000416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +0000418# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +0000419as_fn_error ()
420{
cristy98dddb52010-11-04 00:30:15 +0000421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +0000425 fi
cristy98dddb52010-11-04 00:30:15 +0000426 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +0000427 as_fn_exit $as_status
428} # as_fn_error
429
cristy3ed852e2009-09-05 21:47:34 +0000430if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433else
434 as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439else
440 as_basename=false
441fi
442
cristy8b350f62009-11-15 23:12:43 +0000443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445else
446 as_dirname=false
447fi
cristy3ed852e2009-09-05 21:47:34 +0000448
cristy3ed852e2009-09-05 21:47:34 +0000449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
cristy8b350f62009-11-15 23:12:43 +0000468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +0000474
475
cristy8b350f62009-11-15 23:12:43 +0000476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
cristy3ed852e2009-09-05 21:47:34 +0000481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
cristy8b350f62009-11-15 23:12:43 +0000497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
cristy3ed852e2009-09-05 21:47:34 +0000498
cristy14fefe52012-05-21 00:59:18 +0000499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
cristy3ed852e2009-09-05 21:47:34 +0000503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509}
510
cristy3ed852e2009-09-05 21:47:34 +0000511ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +0000512case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +0000513-n*)
cristy8b350f62009-11-15 23:12:43 +0000514 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +0000515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +0000516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +0000519 esac;;
520*)
521 ECHO_N='-n';;
522esac
cristy3ed852e2009-09-05 21:47:34 +0000523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cristy14fefe52012-05-21 00:59:18 +0000537 # In both cases, we have to default to `cp -pR'.
cristy3ed852e2009-09-05 21:47:34 +0000538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cristy14fefe52012-05-21 00:59:18 +0000539 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +0000540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
cristy14fefe52012-05-21 00:59:18 +0000543 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +0000544 fi
545else
cristy14fefe52012-05-21 00:59:18 +0000546 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +0000547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +0000552 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +0000553else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556fi
557
cristy14fefe52012-05-21 00:59:18 +0000558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
cristy3ed852e2009-09-05 21:47:34 +0000560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
cristy73bd4a52010-10-05 11:24:23 +0000567SHELL=${CONFIG_SHELL-/bin/sh}
568
cristy0c60a692010-11-04 01:09:47 +0000569
cristycd4c5312009-11-22 01:19:08 +0000570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
cristy3ed852e2009-09-05 21:47:34 +0000572
573# Name of the host.
cristy98dddb52010-11-04 00:30:15 +0000574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
cristy3ed852e2009-09-05 21:47:34 +0000575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
cristy3ed852e2009-09-05 21:47:34 +0000589
590# Identity of this package.
591PACKAGE_NAME='ImageMagick'
cristy09b53e12011-10-14 12:47:22 +0000592PACKAGE_TARNAME='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +0000593PACKAGE_VERSION='7.0.0-0'
594PACKAGE_STRING='ImageMagick 7.0.0-0'
cristy3ed852e2009-09-05 21:47:34 +0000595PACKAGE_BUGREPORT='http://www.imagemagick.org'
cristy8b350f62009-11-15 23:12:43 +0000596PACKAGE_URL=''
cristy3ed852e2009-09-05 21:47:34 +0000597
cristy4c08aed2011-07-01 19:47:50 +0000598ac_unique_file="MagickCore/MagickCore.h"
cristy3ed852e2009-09-05 21:47:34 +0000599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613# include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618# include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
cristycd4c5312009-11-22 01:19:08 +0000635ac_header_list=
cristy5eef09f2012-10-16 12:08:28 +0000636ac_subst_vars='am__EXEEXT_FALSE
cristy73bd4a52010-10-05 11:24:23 +0000637am__EXEEXT_TRUE
638LTLIBOBJS
cristy3ed852e2009-09-05 21:47:34 +0000639MAGICK_LIBS
640MAGICK_LDFLAGS
641MAGICK_PCFLAGS
642MAGICK_CPPFLAGS
643MAGICK_CXXFLAGS
644MAGICK_CFLAGS
645MAGICK_DEP_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000646OSX_GCOV_LDFLAG
cristyfa161182012-12-19 15:45:28 +0000647MAGICK_FEATURES
cristy422d5502012-12-22 22:20:57 +0000648MAGICK_DELEGATES
cristy3ed852e2009-09-05 21:47:34 +0000649MAGICKCORE_PATH
650PERL_SUPPORTS_DESTDIR
cristy73bd4a52010-10-05 11:24:23 +0000651WITH_PERL_DYNAMIC_FALSE
652WITH_PERL_DYNAMIC_TRUE
653WITH_PERL_STATIC_FALSE
654WITH_PERL_STATIC_TRUE
655WITH_PERL_FALSE
656WITH_PERL_TRUE
657PERL_VERSION
cristy3ed852e2009-09-05 21:47:34 +0000658GSVersion
659GSPSDevice
660GSPDFDevice
661GSMonoDevice
662GSEPSDevice
663GSColorDevice
664GSCMYKDevice
665GSAlphaDevice
666XPSVersion
667XPSCMYKDevice
668XPSColorDevice
669XPSMonoDevice
670PCLVersion
671PCLCMYKDevice
672PCLColorDevice
673PCLMonoDevice
cristy73bd4a52010-10-05 11:24:23 +0000674ZIP_DELEGATE_FALSE
675ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000676ZIP
cristy73bd4a52010-10-05 11:24:23 +0000677P7ZIP_DELEGATE_FALSE
678P7ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000679P7ZIP
cristy73bd4a52010-10-05 11:24:23 +0000680RPM_DELEGATE_FALSE
681RPM_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000682RPM
683PERL
684TAR
685ShowImageDelegate
686type_include_files
687ghostscript_font_dir
688windows_font_dir
cristy430a7312010-01-21 20:44:04 +0000689dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +0000690PrintDelegate
691ZipDelegate
692XPSDelegate
693WWWDecodeDelegate
694WMFDecodeDelegate
cristy86e86092013-08-04 17:43:57 +0000695WebPEncodeDelegate
696WebPDecodeDelegate
cristy5ac9ac82010-07-29 13:24:24 +0000697UniconvertorDelegate
cristy3ed852e2009-09-05 21:47:34 +0000698TXTDelegate
cristyec6934f2012-08-14 18:38:40 +0000699SVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000700SCANDecodeDelegate
cristy4689cf02010-02-17 21:15:45 +0000701RSVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000702RMDelegate
703RLEEncodeDelegate
704PSDelegate
705POVDelegate
706PGPDecodeDelegate
707PCLDelegate
708MVDelegate
cristy935c86e2010-06-05 23:50:07 +0000709MrSIDDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000710MPEGEncodeDelegate
711MPEGDecodeDelegate
712MANDelegate
713LaunchDelegate
cristy3ed852e2009-09-05 21:47:34 +0000714LPRDelegate
715LPDelegate
cristy71f53d52013-04-27 13:33:59 +0000716JXREncodeDelegate
717JXRDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000718ILBMEncodeDelegate
719ILBMDecodeDelegate
720HTMLDecodeDelegate
721HPGLDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000722GnuplotDecodeDelegate
723MogrifyDelegate
724DisplayDelegate
725ConvertDelegate
726FIGDecodeDelegate
727EditorDelegate
728EchoDelegate
729DVIDecodeDelegate
730GVCDecodeDelegate
731DNGDecodeDelegate
732CatDelegate
733CGMDecodeDelegate
734BrowseDelegate
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
cristy3ed852e2009-09-05 21:47:34 +0000744DOCUMENTATION_PATH
745FILTER_PATH
cristy01ff9f32012-12-01 18:15:29 +0000746FILTER_DIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000747CODER_PATH
cristy01ff9f32012-12-01 18:15:29 +0000748CODER_DIRNAME
749MODULES_PATH
750MODULES_RELATIVE_PATH
751MODULES_DIRNAME
752MODULES_BASEDIRNAME
cristy8d0ff762013-03-10 20:33:28 +0000753LIB_BIN_DIR_PATH
754LIB_BIN_DIR_RELATIVE_PATH
755LIB_BIN_DIR
756LIB_BIN_BASEDIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000757LIBRARY_PATH
758EXECUTABLE_PATH
cristye52f12f2012-12-31 15:32:36 +0000759INCLUDEARCH_PATH
cristy2a11bef2011-10-28 18:33:11 +0000760INCLUDE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000761PERLMAINCC
762XML_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000763XML_DELEGATE_FALSE
764XML_DELEGATE_TRUE
cristy81beccd2011-10-03 18:17:24 +0000765xml2_config
cristy03f7cf92011-12-15 01:40:41 +0000766WMF_LIBS_DEPS
cristy3ed852e2009-09-05 21:47:34 +0000767WMF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000768WMF_DELEGATE_FALSE
769WMF_DELEGATE_TRUE
cristyb1860752011-03-14 00:27:46 +0000770WEBP_LIBS
771WEBP_DELEGATE_FALSE
772WEBP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000773TIFF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000774TIFF_DELEGATE_FALSE
775TIFF_DELEGATE_TRUE
776CAIRO_DELEGATE_FALSE
777CAIRO_DELEGATE_TRUE
778RSVG_DELEGATE_FALSE
779RSVG_DELEGATE_TRUE
780CAIRO_SVG_LIBS
781CAIRO_SVG_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000782RSVG_LIBS
783RSVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +0000784PNG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000785PNG_DELEGATE_FALSE
786PNG_DELEGATE_TRUE
cristya054b762012-03-26 23:16:00 +0000787PANGOCAIRO_DELEGATE_FALSE
788PANGOCAIRO_DELEGATE_TRUE
cristy41cbe8a2011-10-27 01:35:18 +0000789PANGO_DELEGATE_FALSE
790PANGO_DELEGATE_TRUE
791PANGO_LIBS
792PANGO_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000793OPENEXR_DELEGATE_FALSE
794OPENEXR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000795OPENEXR_LIBS
796OPENEXR_CFLAGS
cristyfbb0ef02010-12-19 02:32:11 +0000797LZMA_DELEGATE_FALSE
798LZMA_DELEGATE_TRUE
cristyb94e5002011-11-14 13:20:10 +0000799LZMA_LIBS
800LZMA_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000801LQR_DELEGATE_FALSE
802LQR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000803LQR_LIBS
804LQR_CFLAGS
805LCMS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000806LCMS_DELEGATE_FALSE
807LCMS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000808JP2_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000809JP2_DELEGATE_FALSE
810JP2_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000811JPEG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000812JPEG_DELEGATE_FALSE
813JPEG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000814JBIG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000815JBIG_DELEGATE_FALSE
816JBIG_DELEGATE_TRUE
817GVC_DELEGATE_FALSE
818GVC_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000819GVC_LIBS
820GVC_CFLAGS
821GS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000822GS_DELEGATE_FALSE
823GS_DELEGATE_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000824FREETYPE_DELEGATE_FALSE
825FREETYPE_DELEGATE_TRUE
cristy03f187e2013-01-24 00:22:19 +0000826FREETYPE_LIBS
827FREETYPE_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000828FONTCONFIG_DELEGATE_FALSE
829FONTCONFIG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000830FONTCONFIG_LIBS
831FONTCONFIG_CFLAGS
832FPX_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000833FPX_DELEGATE_FALSE
834FPX_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000835FFTW_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000836FFTW_DELEGATE_FALSE
837FFTW_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000838DJVU_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000839DJVU_DELEGATE_FALSE
840DJVU_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000841DPS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000842DPS_DELEGATE_FALSE
843DPS_DELEGATE_TRUE
844AUTOTRACE_DELEGATE_FALSE
845AUTOTRACE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000846AUTOTRACE_LIBS
847AUTOTRACE_CFLAGS
848LIB_DL
cristy5eef09f2012-10-16 12:08:28 +0000849WITH_LTDL_FALSE
850WITH_LTDL_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000851ZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000852ZLIB_DELEGATE_FALSE
853ZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000854XEXT_LIBS
855X11_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000856X11_DELEGATE_FALSE
857X11_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000858X_EXTRA_LIBS
859X_LIBS
860X_PRE_LIBS
861X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000862XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000863BZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000864BZLIB_DELEGATE_FALSE
865BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000866CCMALLOCDelegate
867UMEM_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000868HasUMEM_FALSE
869HasUMEM_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000870GOMP_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000871WITH_MAGICK_PLUS_PLUS_FALSE
872WITH_MAGICK_PLUS_PLUS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000873OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000874MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000875POW_LIB
876LIBOBJS
cristy6d5e20f2011-04-25 13:48:54 +0000877UINTPTR_F
cristy3ed852e2009-09-05 21:47:34 +0000878UINTPTR_T
cristy6d5e20f2011-04-25 13:48:54 +0000879UINTMAX_F
cristy3ed852e2009-09-05 21:47:34 +0000880UINTMAX_T
cristy6d5e20f2011-04-25 13:48:54 +0000881UINT64_F
cristy3ed852e2009-09-05 21:47:34 +0000882UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000883INT64_F
cristy3ed852e2009-09-05 21:47:34 +0000884INT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000885UINT32_F
cristy3ed852e2009-09-05 21:47:34 +0000886UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +0000887INT32_F
cristy3ed852e2009-09-05 21:47:34 +0000888INT32_T
889UINT16_T
890INT16_T
891UINT8_T
892INT8_T
893LIBRARY_EXTRA_CPPFLAGS
894MODULE_EXTRA_CPPFLAGS
895LIBSTDCLDFLAGS
896PERL_MAKE_OPTIONS
cristy3a75f062012-09-08 23:29:40 +0000897MAGICK_LT_RELEASE_OPTS
cristy7a26abd2012-12-03 00:18:59 +0000898MAGICK_ABI_SUFFIX
cristy3ed852e2009-09-05 21:47:34 +0000899QUANTUM_DEPTH
cristy71d8c202012-03-20 17:05:01 +0000900LEGACY_SUPPORT_FALSE
901LEGACY_SUPPORT_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000902MAINT
903MAINTAINER_MODE_FALSE
904MAINTAINER_MODE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000905MAGICK_HDRI
cristy73bd4a52010-10-05 11:24:23 +0000906WITH_MODULES_FALSE
907WITH_MODULES_TRUE
908WITH_SHARED_LIBS_FALSE
909WITH_SHARED_LIBS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000910LIBTOOL_DEPS
cristy73bd4a52010-10-05 11:24:23 +0000911CXXCPP
912OTOOL64
913OTOOL
914LIPO
915NMEDIT
916DSYMUTIL
cristyda16f162011-02-19 23:52:17 +0000917MANIFEST_TOOL
cristy73bd4a52010-10-05 11:24:23 +0000918RANLIB
cristyda16f162011-02-19 23:52:17 +0000919ac_ct_AR
cristy73bd4a52010-10-05 11:24:23 +0000920AR
921NM
922ac_ct_DUMPBIN
923DUMPBIN
924LIBTOOL
925OBJDUMP
926DLLTOOL
927AS
cristy3ed852e2009-09-05 21:47:34 +0000928LFS_CPPFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000929CL_LIBS
cristy736173a2009-09-20 21:18:22 +0000930CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000931OPENMP_CFLAGS
cristy1ae5c992013-07-30 14:55:07 +0000932THREAD_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000933PTHREAD_CFLAGS
934PTHREAD_LIBS
935PTHREAD_CC
936ax_pthread_config
cristy2ec87cc2013-02-18 17:46:50 +0000937pkgconfigdir
cristy670aa3c2011-11-03 00:54:00 +0000938SHAREARCH_DIR
939INCLUDEARCH_DIR
cristy3ed852e2009-09-05 21:47:34 +0000940WinPathScript
cristy73bd4a52010-10-05 11:24:23 +0000941USING_CL_FALSE
942USING_CL_TRUE
943CYGWIN_BUILD_FALSE
944CYGWIN_BUILD_TRUE
945WIN32_NATIVE_BUILD_FALSE
946WIN32_NATIVE_BUILD_TRUE
947WINGDI32_DELEGATE_FALSE
948WINGDI32_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000949GDI32_LIBS
cristy9b86f202012-11-28 21:55:35 +0000950HAVE_LD_VERSION_SCRIPT_FALSE
951HAVE_LD_VERSION_SCRIPT_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000952PKG_CONFIG
cristy37110d62012-03-01 18:38:20 +0000953PRTDIAG
cristy3ed852e2009-09-05 21:47:34 +0000954LN_S
cristy3ed852e2009-09-05 21:47:34 +0000955LD
cristy73bd4a52010-10-05 11:24:23 +0000956FGREP
957SED
958am__fastdepCXX_FALSE
959am__fastdepCXX_TRUE
960CXXDEPMODE
cristy95646052009-11-28 23:05:30 +0000961ac_ct_CXX
962CXXFLAGS
963CXX
cristya0b81c32010-01-22 02:54:33 +0000964EGREP
965GREP
966CPP
cristy73bd4a52010-10-05 11:24:23 +0000967am__fastdepCC_FALSE
968am__fastdepCC_TRUE
969CCDEPMODE
cristy7247bba2012-02-05 16:37:27 +0000970am__nodep
cristy73bd4a52010-10-05 11:24:23 +0000971AMDEPBACKSLASH
972AMDEP_FALSE
973AMDEP_TRUE
974am__quote
975am__include
976DEPDIR
cristy3ed852e2009-09-05 21:47:34 +0000977OBJEXT
978EXEEXT
979ac_ct_CC
980CPPFLAGS
981LDFLAGS
982CFLAGS
983CC
984DIRSEP
985MAGICK_FILTER_MODULE_PATH
986MAGICK_CONFIGURE_BUILD_PATH
987MAGICK_CONFIGURE_SRC_PATH
988MAGICK_CODER_MODULE_PATH
989MAN_DIR
990INFO_DIR
991PERSISTINCLUDE_DIR
992INCLUDE_DIR
993LIB_DIR
994LOCALSTATE_DIR
995SHAREDSTATE_DIR
996SYSCONF_DIR
cristyd55889c2011-03-27 00:50:24 +0000997DOC_DIR
cristy3ed852e2009-09-05 21:47:34 +0000998DATA_DIR
999LIBEXEC_DIR
1000SBIN_DIR
1001BIN_DIR
1002EXEC_PREFIX_DIR
1003PREFIX_DIR
1004CONFIG_STATUS_DEPENDENCIES
cristy5ed9c6e2013-07-14 21:20:31 +00001005MAGICKPP_LIB_VERSION_TEXT
1006MAGICKPP_LIB_VERSION
cristy3ed852e2009-09-05 21:47:34 +00001007MAGICK_LIB_VERSION_NUMBER
1008MAGICK_LIB_VERSION_TEXT
1009MAGICK_LIB_VERSION
cristy73bd4a52010-10-05 11:24:23 +00001010AM_BACKSLASH
1011AM_DEFAULT_VERBOSITY
cristyc3fb77b2012-02-06 01:49:41 +00001012AM_DEFAULT_V
1013AM_V
cristy73bd4a52010-10-05 11:24:23 +00001014am__untar
1015am__tar
1016AMTAR
1017am__leading_dot
1018SET_MAKE
1019AWK
1020mkdir_p
1021MKDIR_P
1022INSTALL_STRIP_PROGRAM
1023STRIP
1024install_sh
1025MAKEINFO
1026AUTOHEADER
1027AUTOMAKE
1028AUTOCONF
1029ACLOCAL
1030VERSION
1031PACKAGE
1032CYGPATH_W
1033am__isrc
1034INSTALL_DATA
1035INSTALL_SCRIPT
1036INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +00001037PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +00001038PACKAGE_RELEASE_DATE
1039PACKAGE_LIB_VERSION_NUMBER
1040PACKAGE_LIB_VERSION
1041PACKAGE_CHANGE_DATE
1042PACKAGE_RELEASE
cristy878c2f12011-08-19 00:25:19 +00001043PACKAGE_PERL_VERSION
cristy5ed9c6e2013-07-14 21:20:31 +00001044MAGICKPP_LIBRARY_VERSION_INFO
1045MAGICKPP_LIBRARY_CURRENT_MIN
1046MAGICKPP_LIBRARY_AGE
1047MAGICKPP_LIBRARY_REVISION
1048MAGICKPP_LIBRARY_CURRENT
cristybab87c32010-02-09 20:54:22 +00001049MAGICK_LIBRARY_VERSION_INFO
1050MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +00001051MAGICK_LIBRARY_AGE
1052MAGICK_LIBRARY_REVISION
1053MAGICK_LIBRARY_CURRENT
cristy37442762013-02-10 21:07:23 +00001054MAGICK_SVN_REVISION
1055MAGICK_VERSION
1056MAGICK_PATCHLEVEL_VERSION
1057MAGICK_MICRO_VERSION
1058MAGICK_MINOR_VERSION
1059MAGICK_MAJOR_VERSION
cristy3225a072010-04-17 01:47:28 +00001060MAGICK_TARGET_OS
1061MAGICK_TARGET_VENDOR
1062MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +00001063target_os
1064target_vendor
1065target_cpu
1066target
1067host_os
1068host_vendor
1069host_cpu
1070host
1071build_os
1072build_vendor
1073build_cpu
1074build
1075CONFIGURE_ARGS
1076DISTCHECK_CONFIG_FLAGS
1077target_alias
1078host_alias
1079build_alias
1080LIBS
1081ECHO_T
1082ECHO_N
1083ECHO_C
1084DEFS
1085mandir
1086localedir
1087libdir
1088psdir
1089pdfdir
1090dvidir
1091htmldir
1092infodir
1093docdir
1094oldincludedir
1095includedir
1096localstatedir
1097sharedstatedir
1098sysconfdir
1099datadir
1100datarootdir
1101libexecdir
1102sbindir
1103bindir
1104program_transform_name
1105prefix
1106exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001107PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001108PACKAGE_BUGREPORT
1109PACKAGE_STRING
1110PACKAGE_VERSION
1111PACKAGE_TARNAME
1112PACKAGE_NAME
1113PATH_SEPARATOR
1114SHELL'
1115ac_subst_files=''
1116ac_user_opts='
1117enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001118enable_silent_rules
1119enable_dependency_tracking
1120with_gnu_ld
1121with_dmalloc
cristy37110d62012-03-01 18:38:20 +00001122with_gcc_arch
cristy9b86f202012-11-28 21:55:35 +00001123enable_ld_version_script
cristy3ed852e2009-09-05 21:47:34 +00001124enable_bounds_checking
1125enable_osx_universal_binary
cristy670aa3c2011-11-03 00:54:00 +00001126with_includearch_dir
1127with_sharearch_dir
cristy2ec87cc2013-02-18 17:46:50 +00001128with_pkgconfigdir
cristy3ed852e2009-09-05 21:47:34 +00001129with_threads
1130enable_openmp
cristy73bd4a52010-10-05 11:24:23 +00001131enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001132enable_largefile
cristy73bd4a52010-10-05 11:24:23 +00001133enable_shared
1134enable_static
1135with_pic
1136enable_fast_install
cristyda16f162011-02-19 23:52:17 +00001137with_sysroot
cristy73bd4a52010-10-05 11:24:23 +00001138enable_libtool_lock
cristy3ed852e2009-09-05 21:47:34 +00001139with_modules
1140enable_delegate_build
1141enable_deprecated
1142enable_installed
1143enable_cipher
cristy6e3607c2011-09-13 13:59:17 +00001144enable_zero_configuration
cristy3ed852e2009-09-05 21:47:34 +00001145enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001146enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001147enable_maintainer_mode
cristy944e51f2013-04-16 18:45:02 +00001148enable_hugepages
cristy3ed852e2009-09-05 21:47:34 +00001149enable_ccmalloc
1150enable_efence
1151enable_prof
1152enable_gprof
1153enable_gcov
1154with_method_prefix
cristy71d8c202012-03-20 17:05:01 +00001155enable_legacy_support
cristy3ed852e2009-09-05 21:47:34 +00001156with_quantum_depth
1157with_cache
1158with_frozenpaths
1159with_magick_plus_plus
cristy3a75f062012-09-08 23:29:40 +00001160with_package_release_name
cristy3ed852e2009-09-05 21:47:34 +00001161with_perl
1162with_perl_options
1163with_umem
1164with_libstdc
1165with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001166with_x
cristy3ed852e2009-09-05 21:47:34 +00001167with_zlib
1168with_autotrace
1169with_dps
1170with_djvu
cristy430a7312010-01-21 20:44:04 +00001171with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001172with_fftw
1173with_fpx
1174with_fontconfig
1175with_freetype
1176with_gslib
1177with_fontpath
1178with_gs_font_dir
1179with_gvc
1180with_jbig
1181with_jpeg
1182with_jp2
1183with_lcms
cristy71203402010-06-18 13:12:03 +00001184with_lcms2
cristy3ed852e2009-09-05 21:47:34 +00001185with_lqr
cristyfbb0ef02010-12-19 02:32:11 +00001186with_lzma
cristy3ed852e2009-09-05 21:47:34 +00001187with_openexr
cristy41cbe8a2011-10-27 01:35:18 +00001188with_pango
cristy3ed852e2009-09-05 21:47:34 +00001189with_png
1190with_rsvg
1191with_tiff
cristyb1860752011-03-14 00:27:46 +00001192with_webp
cristy3ed852e2009-09-05 21:47:34 +00001193with_windows_font_dir
1194with_wmf
1195with_xml
1196'
1197 ac_precious_vars='build_alias
1198host_alias
1199target_alias
1200CC
1201CFLAGS
1202LDFLAGS
1203LIBS
1204CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001205CPP
cristy3ed852e2009-09-05 21:47:34 +00001206CXX
1207CXXFLAGS
1208CCC
cristy73bd4a52010-10-05 11:24:23 +00001209PKG_CONFIG
1210CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001211XMKMF
cristy73bd4a52010-10-05 11:24:23 +00001212AUTOTRACE_CFLAGS
1213AUTOTRACE_LIBS
1214FONTCONFIG_CFLAGS
1215FONTCONFIG_LIBS
cristy03f187e2013-01-24 00:22:19 +00001216FREETYPE_CFLAGS
1217FREETYPE_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001218GVC_CFLAGS
1219GVC_LIBS
1220LQR_CFLAGS
1221LQR_LIBS
cristyb94e5002011-11-14 13:20:10 +00001222LZMA_CFLAGS
1223LZMA_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001224OPENEXR_CFLAGS
1225OPENEXR_LIBS
cristy41cbe8a2011-10-27 01:35:18 +00001226PANGO_CFLAGS
1227PANGO_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001228RSVG_CFLAGS
1229RSVG_LIBS
1230CAIRO_SVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +00001231CAIRO_SVG_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001232
1233
1234# Initialize some variables set by options.
1235ac_init_help=
1236ac_init_version=false
1237ac_unrecognized_opts=
1238ac_unrecognized_sep=
1239# The variables have the same names as the options, with
1240# dashes changed to underlines.
1241cache_file=/dev/null
1242exec_prefix=NONE
1243no_create=
1244no_recursion=
1245prefix=NONE
1246program_prefix=NONE
1247program_suffix=NONE
1248program_transform_name=s,x,x,
1249silent=
1250site=
1251srcdir=
1252verbose=
1253x_includes=NONE
1254x_libraries=NONE
1255
1256# Installation directory options.
1257# These are left unexpanded so users can "make install exec_prefix=/foo"
1258# and all the variables that are supposed to be based on exec_prefix
1259# by default will actually change.
1260# Use braces instead of parens because sh, perl, etc. also accept them.
1261# (The list follows the same order as the GNU Coding Standards.)
1262bindir='${exec_prefix}/bin'
1263sbindir='${exec_prefix}/sbin'
1264libexecdir='${exec_prefix}/libexec'
1265datarootdir='${prefix}/share'
1266datadir='${datarootdir}'
1267sysconfdir='${prefix}/etc'
1268sharedstatedir='${prefix}/com'
1269localstatedir='${prefix}/var'
1270includedir='${prefix}/include'
1271oldincludedir='/usr/include'
1272docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1273infodir='${datarootdir}/info'
1274htmldir='${docdir}'
1275dvidir='${docdir}'
1276pdfdir='${docdir}'
1277psdir='${docdir}'
1278libdir='${exec_prefix}/lib'
1279localedir='${datarootdir}/locale'
1280mandir='${datarootdir}/man'
1281
1282ac_prev=
1283ac_dashdash=
1284for ac_option
1285do
1286 # If the previous option needs an argument, assign it.
1287 if test -n "$ac_prev"; then
1288 eval $ac_prev=\$ac_option
1289 ac_prev=
1290 continue
1291 fi
1292
1293 case $ac_option in
cristyda16f162011-02-19 23:52:17 +00001294 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1295 *=) ac_optarg= ;;
1296 *) ac_optarg=yes ;;
cristy3ed852e2009-09-05 21:47:34 +00001297 esac
1298
1299 # Accept the important Cygnus configure options, so we can diagnose typos.
1300
1301 case $ac_dashdash$ac_option in
1302 --)
1303 ac_dashdash=yes ;;
1304
1305 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1306 ac_prev=bindir ;;
1307 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1308 bindir=$ac_optarg ;;
1309
1310 -build | --build | --buil | --bui | --bu)
1311 ac_prev=build_alias ;;
1312 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1313 build_alias=$ac_optarg ;;
1314
1315 -cache-file | --cache-file | --cache-fil | --cache-fi \
1316 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1317 ac_prev=cache_file ;;
1318 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1319 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1320 cache_file=$ac_optarg ;;
1321
1322 --config-cache | -C)
1323 cache_file=config.cache ;;
1324
1325 -datadir | --datadir | --datadi | --datad)
1326 ac_prev=datadir ;;
1327 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1328 datadir=$ac_optarg ;;
1329
1330 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1331 | --dataroo | --dataro | --datar)
1332 ac_prev=datarootdir ;;
1333 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1334 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1335 datarootdir=$ac_optarg ;;
1336
1337 -disable-* | --disable-*)
1338 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1339 # Reject names that are not valid shell variable names.
1340 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001341 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001342 ac_useropt_orig=$ac_useropt
1343 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1344 case $ac_user_opts in
1345 *"
1346"enable_$ac_useropt"
1347"*) ;;
1348 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1349 ac_unrecognized_sep=', ';;
1350 esac
1351 eval enable_$ac_useropt=no ;;
1352
1353 -docdir | --docdir | --docdi | --doc | --do)
1354 ac_prev=docdir ;;
1355 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1356 docdir=$ac_optarg ;;
1357
1358 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1359 ac_prev=dvidir ;;
1360 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1361 dvidir=$ac_optarg ;;
1362
1363 -enable-* | --enable-*)
1364 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1365 # Reject names that are not valid shell variable names.
1366 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001367 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001368 ac_useropt_orig=$ac_useropt
1369 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1370 case $ac_user_opts in
1371 *"
1372"enable_$ac_useropt"
1373"*) ;;
1374 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1375 ac_unrecognized_sep=', ';;
1376 esac
1377 eval enable_$ac_useropt=\$ac_optarg ;;
1378
1379 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1380 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1381 | --exec | --exe | --ex)
1382 ac_prev=exec_prefix ;;
1383 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1384 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1385 | --exec=* | --exe=* | --ex=*)
1386 exec_prefix=$ac_optarg ;;
1387
1388 -gas | --gas | --ga | --g)
1389 # Obsolete; use --with-gas.
1390 with_gas=yes ;;
1391
1392 -help | --help | --hel | --he | -h)
1393 ac_init_help=long ;;
1394 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1395 ac_init_help=recursive ;;
1396 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1397 ac_init_help=short ;;
1398
1399 -host | --host | --hos | --ho)
1400 ac_prev=host_alias ;;
1401 -host=* | --host=* | --hos=* | --ho=*)
1402 host_alias=$ac_optarg ;;
1403
1404 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1405 ac_prev=htmldir ;;
1406 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1407 | --ht=*)
1408 htmldir=$ac_optarg ;;
1409
1410 -includedir | --includedir | --includedi | --included | --include \
1411 | --includ | --inclu | --incl | --inc)
1412 ac_prev=includedir ;;
1413 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1414 | --includ=* | --inclu=* | --incl=* | --inc=*)
1415 includedir=$ac_optarg ;;
1416
1417 -infodir | --infodir | --infodi | --infod | --info | --inf)
1418 ac_prev=infodir ;;
1419 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1420 infodir=$ac_optarg ;;
1421
1422 -libdir | --libdir | --libdi | --libd)
1423 ac_prev=libdir ;;
1424 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1425 libdir=$ac_optarg ;;
1426
1427 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1428 | --libexe | --libex | --libe)
1429 ac_prev=libexecdir ;;
1430 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1431 | --libexe=* | --libex=* | --libe=*)
1432 libexecdir=$ac_optarg ;;
1433
1434 -localedir | --localedir | --localedi | --localed | --locale)
1435 ac_prev=localedir ;;
1436 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1437 localedir=$ac_optarg ;;
1438
1439 -localstatedir | --localstatedir | --localstatedi | --localstated \
1440 | --localstate | --localstat | --localsta | --localst | --locals)
1441 ac_prev=localstatedir ;;
1442 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1443 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1444 localstatedir=$ac_optarg ;;
1445
1446 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1447 ac_prev=mandir ;;
1448 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1449 mandir=$ac_optarg ;;
1450
1451 -nfp | --nfp | --nf)
1452 # Obsolete; use --without-fp.
1453 with_fp=no ;;
1454
1455 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1456 | --no-cr | --no-c | -n)
1457 no_create=yes ;;
1458
1459 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1460 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1461 no_recursion=yes ;;
1462
1463 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1464 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1465 | --oldin | --oldi | --old | --ol | --o)
1466 ac_prev=oldincludedir ;;
1467 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1468 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1469 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1470 oldincludedir=$ac_optarg ;;
1471
1472 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1473 ac_prev=prefix ;;
1474 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1475 prefix=$ac_optarg ;;
1476
1477 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1478 | --program-pre | --program-pr | --program-p)
1479 ac_prev=program_prefix ;;
1480 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1481 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1482 program_prefix=$ac_optarg ;;
1483
1484 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1485 | --program-suf | --program-su | --program-s)
1486 ac_prev=program_suffix ;;
1487 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1488 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1489 program_suffix=$ac_optarg ;;
1490
1491 -program-transform-name | --program-transform-name \
1492 | --program-transform-nam | --program-transform-na \
1493 | --program-transform-n | --program-transform- \
1494 | --program-transform | --program-transfor \
1495 | --program-transfo | --program-transf \
1496 | --program-trans | --program-tran \
1497 | --progr-tra | --program-tr | --program-t)
1498 ac_prev=program_transform_name ;;
1499 -program-transform-name=* | --program-transform-name=* \
1500 | --program-transform-nam=* | --program-transform-na=* \
1501 | --program-transform-n=* | --program-transform-=* \
1502 | --program-transform=* | --program-transfor=* \
1503 | --program-transfo=* | --program-transf=* \
1504 | --program-trans=* | --program-tran=* \
1505 | --progr-tra=* | --program-tr=* | --program-t=*)
1506 program_transform_name=$ac_optarg ;;
1507
1508 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1509 ac_prev=pdfdir ;;
1510 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1511 pdfdir=$ac_optarg ;;
1512
1513 -psdir | --psdir | --psdi | --psd | --ps)
1514 ac_prev=psdir ;;
1515 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1516 psdir=$ac_optarg ;;
1517
1518 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1519 | -silent | --silent | --silen | --sile | --sil)
1520 silent=yes ;;
1521
1522 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1523 ac_prev=sbindir ;;
1524 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1525 | --sbi=* | --sb=*)
1526 sbindir=$ac_optarg ;;
1527
1528 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1529 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1530 | --sharedst | --shareds | --shared | --share | --shar \
1531 | --sha | --sh)
1532 ac_prev=sharedstatedir ;;
1533 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1534 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1535 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1536 | --sha=* | --sh=*)
1537 sharedstatedir=$ac_optarg ;;
1538
1539 -site | --site | --sit)
1540 ac_prev=site ;;
1541 -site=* | --site=* | --sit=*)
1542 site=$ac_optarg ;;
1543
1544 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1545 ac_prev=srcdir ;;
1546 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1547 srcdir=$ac_optarg ;;
1548
1549 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1550 | --syscon | --sysco | --sysc | --sys | --sy)
1551 ac_prev=sysconfdir ;;
1552 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1553 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1554 sysconfdir=$ac_optarg ;;
1555
1556 -target | --target | --targe | --targ | --tar | --ta | --t)
1557 ac_prev=target_alias ;;
1558 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1559 target_alias=$ac_optarg ;;
1560
1561 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1562 verbose=yes ;;
1563
1564 -version | --version | --versio | --versi | --vers | -V)
1565 ac_init_version=: ;;
1566
1567 -with-* | --with-*)
1568 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1569 # Reject names that are not valid shell variable names.
1570 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001571 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001572 ac_useropt_orig=$ac_useropt
1573 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1574 case $ac_user_opts in
1575 *"
1576"with_$ac_useropt"
1577"*) ;;
1578 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1579 ac_unrecognized_sep=', ';;
1580 esac
1581 eval with_$ac_useropt=\$ac_optarg ;;
1582
1583 -without-* | --without-*)
1584 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1585 # Reject names that are not valid shell variable names.
1586 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001587 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001588 ac_useropt_orig=$ac_useropt
1589 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1590 case $ac_user_opts in
1591 *"
1592"with_$ac_useropt"
1593"*) ;;
1594 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1595 ac_unrecognized_sep=', ';;
1596 esac
1597 eval with_$ac_useropt=no ;;
1598
1599 --x)
1600 # Obsolete; use --with-x.
1601 with_x=yes ;;
1602
1603 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1604 | --x-incl | --x-inc | --x-in | --x-i)
1605 ac_prev=x_includes ;;
1606 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1607 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1608 x_includes=$ac_optarg ;;
1609
1610 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1611 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1612 ac_prev=x_libraries ;;
1613 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1614 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1615 x_libraries=$ac_optarg ;;
1616
cristy98dddb52010-11-04 00:30:15 +00001617 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1618Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001619 ;;
1620
1621 *=*)
1622 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1623 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001624 case $ac_envvar in #(
1625 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001626 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001627 esac
cristy3ed852e2009-09-05 21:47:34 +00001628 eval $ac_envvar=\$ac_optarg
1629 export $ac_envvar ;;
1630
1631 *)
1632 # FIXME: should be removed in autoconf 3.0.
1633 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1634 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1635 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cristyda16f162011-02-19 23:52:17 +00001636 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cristy3ed852e2009-09-05 21:47:34 +00001637 ;;
1638
1639 esac
1640done
1641
1642if test -n "$ac_prev"; then
1643 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001644 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001645fi
1646
1647if test -n "$ac_unrecognized_opts"; then
1648 case $enable_option_checking in
1649 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001650 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001651 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1652 esac
1653fi
1654
1655# Check all directory arguments for consistency.
1656for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1657 datadir sysconfdir sharedstatedir localstatedir includedir \
1658 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1659 libdir localedir mandir
1660do
1661 eval ac_val=\$$ac_var
1662 # Remove trailing slashes.
1663 case $ac_val in
1664 */ )
1665 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1666 eval $ac_var=\$ac_val;;
1667 esac
1668 # Be sure to have absolute directory names.
1669 case $ac_val in
1670 [\\/$]* | ?:[\\/]* ) continue;;
1671 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1672 esac
cristy98dddb52010-11-04 00:30:15 +00001673 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001674done
1675
1676# There might be people who depend on the old broken behavior: `$host'
1677# used to hold the argument of --host etc.
1678# FIXME: To remove some day.
1679build=$build_alias
1680host=$host_alias
1681target=$target_alias
1682
1683# FIXME: To remove some day.
1684if test "x$host_alias" != x; then
1685 if test "x$build_alias" = x; then
1686 cross_compiling=maybe
cristy3ed852e2009-09-05 21:47:34 +00001687 elif test "x$build_alias" != "x$host_alias"; then
1688 cross_compiling=yes
1689 fi
1690fi
1691
1692ac_tool_prefix=
1693test -n "$host_alias" && ac_tool_prefix=$host_alias-
1694
1695test "$silent" = yes && exec 6>/dev/null
1696
1697
1698ac_pwd=`pwd` && test -n "$ac_pwd" &&
1699ac_ls_di=`ls -di .` &&
1700ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001701 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001702test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001703 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001704
1705
1706# Find the source files, if location was not specified.
1707if test -z "$srcdir"; then
1708 ac_srcdir_defaulted=yes
1709 # Try the directory containing this script, then the parent directory.
1710 ac_confdir=`$as_dirname -- "$as_myself" ||
1711$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1712 X"$as_myself" : 'X\(//\)[^/]' \| \
1713 X"$as_myself" : 'X\(//\)$' \| \
1714 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1715$as_echo X"$as_myself" |
1716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1717 s//\1/
1718 q
1719 }
1720 /^X\(\/\/\)[^/].*/{
1721 s//\1/
1722 q
1723 }
1724 /^X\(\/\/\)$/{
1725 s//\1/
1726 q
1727 }
1728 /^X\(\/\).*/{
1729 s//\1/
1730 q
1731 }
1732 s/.*/./; q'`
1733 srcdir=$ac_confdir
1734 if test ! -r "$srcdir/$ac_unique_file"; then
1735 srcdir=..
1736 fi
1737else
1738 ac_srcdir_defaulted=no
1739fi
1740if test ! -r "$srcdir/$ac_unique_file"; then
1741 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001742 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001743fi
1744ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1745ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001746 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001747 pwd)`
1748# When building in place, set srcdir=.
1749if test "$ac_abs_confdir" = "$ac_pwd"; then
1750 srcdir=.
1751fi
1752# Remove unnecessary trailing slashes from srcdir.
1753# Double slashes in file names in object file debugging info
1754# mess up M-x gdb in Emacs.
1755case $srcdir in
1756*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1757esac
1758for ac_var in $ac_precious_vars; do
1759 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1760 eval ac_env_${ac_var}_value=\$${ac_var}
1761 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1762 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1763done
1764
1765#
1766# Report the --help message.
1767#
1768if test "$ac_init_help" = "long"; then
1769 # Omit some internal or obsolete options to make the list less imposing.
1770 # This message is too long to be a string in the A/UX 3.1 sh.
1771 cat <<_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00001772\`configure' configures ImageMagick 7.0.0-0 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001773
1774Usage: $0 [OPTION]... [VAR=VALUE]...
1775
1776To assign environment variables (e.g., CC, CFLAGS...), specify them as
1777VAR=VALUE. See below for descriptions of some of the useful variables.
1778
1779Defaults for the options are specified in brackets.
1780
1781Configuration:
1782 -h, --help display this help and exit
1783 --help=short display options specific to this package
1784 --help=recursive display the short help of all the included packages
1785 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001786 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001787 --cache-file=FILE cache test results in FILE [disabled]
1788 -C, --config-cache alias for \`--cache-file=config.cache'
1789 -n, --no-create do not create output files
1790 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1791
1792Installation directories:
1793 --prefix=PREFIX install architecture-independent files in PREFIX
1794 [$ac_default_prefix]
1795 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1796 [PREFIX]
1797
1798By default, \`make install' will install all the files in
1799\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1800an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1801for instance \`--prefix=\$HOME'.
1802
1803For better control, use the options below.
1804
1805Fine tuning of the installation directories:
1806 --bindir=DIR user executables [EPREFIX/bin]
1807 --sbindir=DIR system admin executables [EPREFIX/sbin]
1808 --libexecdir=DIR program executables [EPREFIX/libexec]
1809 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1810 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1811 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1812 --libdir=DIR object code libraries [EPREFIX/lib]
1813 --includedir=DIR C header files [PREFIX/include]
1814 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1815 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1816 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1817 --infodir=DIR info documentation [DATAROOTDIR/info]
1818 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1819 --mandir=DIR man documentation [DATAROOTDIR/man]
cristy09b53e12011-10-14 12:47:22 +00001820 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
cristy3ed852e2009-09-05 21:47:34 +00001821 --htmldir=DIR html documentation [DOCDIR]
1822 --dvidir=DIR dvi documentation [DOCDIR]
1823 --pdfdir=DIR pdf documentation [DOCDIR]
1824 --psdir=DIR ps documentation [DOCDIR]
1825_ACEOF
1826
1827 cat <<\_ACEOF
1828
cristy73bd4a52010-10-05 11:24:23 +00001829Program names:
1830 --program-prefix=PREFIX prepend PREFIX to installed program names
1831 --program-suffix=SUFFIX append SUFFIX to installed program names
1832 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1833
cristy3ed852e2009-09-05 21:47:34 +00001834X features:
1835 --x-includes=DIR X include files are in DIR
1836 --x-libraries=DIR X library files are in DIR
1837
1838System types:
1839 --build=BUILD configure for building on BUILD [guessed]
1840 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1841 --target=TARGET configure for building compilers for TARGET [HOST]
1842_ACEOF
1843fi
1844
1845if test -n "$ac_init_help"; then
1846 case $ac_init_help in
cristy29eb34e2011-10-16 00:46:08 +00001847 short | recursive ) echo "Configuration of ImageMagick 7.0.0-0:";;
cristy3ed852e2009-09-05 21:47:34 +00001848 esac
1849 cat <<\_ACEOF
1850
1851Optional Features:
1852 --disable-option-checking ignore unrecognized --enable/--with options
1853 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1854 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristyc0890a62012-07-19 00:18:20 +00001855 --enable-silent-rules less verbose build output (undo: "make V=1")
1856 --disable-silent-rules verbose build output (undo: "make V=0")
1857 --enable-dependency-tracking
1858 do not reject slow dependency extractors
1859 --disable-dependency-tracking
1860 speeds up one-time build
cristy9b86f202012-11-28 21:55:35 +00001861 --enable-ld-version-script
1862 enable linker version script (default is enabled
1863 when possible)
cristya3824692012-03-30 17:22:07 +00001864 --enable-bounds-checking
1865 enable run-time bounds-checking
cristy3ed852e2009-09-05 21:47:34 +00001866 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001867 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001868 --disable-openmp do not use OpenMP
cristy48794642012-09-02 15:19:08 +00001869 --enable-opencl enable OpenCL support
cristy3ed852e2009-09-05 21:47:34 +00001870 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001871 --enable-shared[=PKGS] build shared libraries [default=yes]
1872 --enable-static[=PKGS] build static libraries [default=yes]
1873 --enable-fast-install[=PKGS]
1874 optimize for fast installation [default=yes]
1875 --disable-libtool-lock avoid locking (might break parallel builds)
cristy3ed852e2009-09-05 21:47:34 +00001876 --enable-delegate-build look for delegate libraries in build directory
1877 --disable-deprecated exclude deprecated methods in MagickCore and
cristy3a75f062012-09-08 23:29:40 +00001878 MagickWand APIs
cristy3ed852e2009-09-05 21:47:34 +00001879 --disable-installed Formally install ImageMagick under PREFIX
1880 --disable-cipher disable enciphering and deciphering image pixels
cristy6e3607c2011-09-13 13:59:17 +00001881 --enable-zero-configuration
1882 enable self-contained, embeddable,
cristy3ed852e2009-09-05 21:47:34 +00001883 zero-configuration ImageMagick
cristyf314dbd2012-11-15 13:35:28 +00001884 --enable-hdri accurately represent the wide range of intensity
cristy3ed852e2009-09-05 21:47:34 +00001885 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001886 --disable-assert disable assert() statements in build
cristyc0890a62012-07-19 00:18:20 +00001887 --enable-maintainer-mode
1888 enable make rules and dependencies not useful (and
1889 sometimes confusing) to the casual installer
cristy944e51f2013-04-16 18:45:02 +00001890 --enable-hugepages enable 'huge pages' support
cristy3ed852e2009-09-05 21:47:34 +00001891 --enable-ccmalloc enable 'ccmalloc' memory debug support
1892 --enable-efence enable 'efence' memory debug support
1893 --enable-prof enable 'prof' profiling support
1894 --enable-gprof enable 'gprof' profiling support
1895 --enable-gcov enable 'gcov' profiling support
cristy71d8c202012-03-20 17:05:01 +00001896 --enable-legacy-support install legacy command-line utilities (default disabled)
cristya0b81c32010-01-22 02:54:33 +00001897 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001898
1899Optional Packages:
1900 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1901 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001902 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
cristy7247bba2012-02-05 16:37:27 +00001903 --with-dmalloc use dmalloc, as in http://www.dmalloc.com
cristy37110d62012-03-01 18:38:20 +00001904 --with-gcc-arch=<arch> use architecture <arch> for gcc -march/-mtune,
1905 instead of guessing
cristy670aa3c2011-11-03 00:54:00 +00001906 --includearch-dir=DIR ARCH specific include directory
1907 --sharearch-dir=DIR ARCH specific config directory
cristy2ec87cc2013-02-18 17:46:50 +00001908 --with-pkgconfigdir=DIR Path to the pkgconfig directory [LIBDIR/pkgconfig]
cristy3ed852e2009-09-05 21:47:34 +00001909 --without-threads disable threads support
cristy99bd5232011-12-07 14:38:20 +00001910 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
cristy73bd4a52010-10-05 11:24:23 +00001911 both]
cristyda16f162011-02-19 23:52:17 +00001912 --with-sysroot=DIR Search for dependent libraries within DIR
1913 (or the compiler's sysroot if not specified).
cristy3ed852e2009-09-05 21:47:34 +00001914 --with-modules enable building dynamically loadable modules
1915 --with-method-prefix=PREFIX
1916 prefix MagickCore API methods
1917 --with-quantum-depth=DEPTH
1918 number of bits in a pixel quantum (default 16)
1919 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1920 memory)
1921 --with-frozenpaths freeze delegate paths
1922 --without-magick-plus-plus
1923 disable build/install of Magick++
cristy3a75f062012-09-08 23:29:40 +00001924 --with-package-release-name=NAME
1925 encode this name into the shared library
cristy3ed852e2009-09-05 21:47:34 +00001926 --with-perl enable build/install of PerlMagick
1927 --with-perl-options=OPTIONS
1928 options to pass on command-line when generating
cristyfc3d0222012-02-07 15:05:57 +00001929 PerlMagick build file
cristy3ed852e2009-09-05 21:47:34 +00001930 --with-umem enable umem memory allocation library support
1931 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1932 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001933 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001934 --without-zlib disable ZLIB support
1935 --with-autotrace enable autotrace support
1936 --without-dps disable Display Postscript support
1937 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001938 --with-dejavu-font-dir=DIR
1939 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001940 --without-fftw disable FFTW support
1941 --without-fpx disable FlashPIX support
1942 --without-fontconfig disable fontconfig support
cristy81beccd2011-10-03 18:17:24 +00001943 --without-freetype disable Freetype support
cristybdabdd62013-03-04 17:43:36 +00001944 --with-gslib enable Ghostscript library support
cristy3ed852e2009-09-05 21:47:34 +00001945 --with-fontpath=DIR prepend to default font search path
1946 --with-gs-font-dir=DIR Ghostscript font directory
cristybdabdd62013-03-04 17:43:36 +00001947 --with-gvc enable GVC support
cristy3ed852e2009-09-05 21:47:34 +00001948 --without-jbig disable JBIG support
1949 --without-jpeg disable JPEG support
1950 --without-jp2 disable JPEG-2000 support
cristy71203402010-06-18 13:12:03 +00001951 --without-lcms disable lcms (v1.1X) support
1952 --without-lcms2 disable lcms (v2.X) support
cristyf0c78232010-03-15 12:53:40 +00001953 --without-lqr disable Liquid Rescale support
cristyfbb0ef02010-12-19 02:32:11 +00001954 --without-lzma disable LZMA support
cristy3ed852e2009-09-05 21:47:34 +00001955 --without-openexr disable OpenEXR support
cristy41cbe8a2011-10-27 01:35:18 +00001956 --without-pango disable PANGO support
cristy3ed852e2009-09-05 21:47:34 +00001957 --without-png disable PNG support
cristy51633f52013-04-23 14:03:19 +00001958 --with-rsvg enable RSVG support
cristy3ed852e2009-09-05 21:47:34 +00001959 --without-tiff disable TIFF support
cristyb1860752011-03-14 00:27:46 +00001960 --without-webp disable WEBP support
cristy3ed852e2009-09-05 21:47:34 +00001961 --with-windows-font-dir=DIR
1962 directory containing MS-Windows fonts
cristyde3fc5d2012-02-12 15:40:47 +00001963 --with-wmf enable WMF support
cristy3ed852e2009-09-05 21:47:34 +00001964 --without-xml disable XML support
1965
1966Some influential environment variables:
1967 CC C compiler command
1968 CFLAGS C compiler flags
1969 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1970 nonstandard directory <lib dir>
1971 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001972 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001973 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001974 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001975 CXX C++ compiler command
1976 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00001977 PKG_CONFIG path to pkg-config utility
nicolas6237c462010-10-05 06:11:49 +00001978 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00001979 XMKMF Path to xmkmf, Makefile generator for X Window System
1980 AUTOTRACE_CFLAGS
1981 C compiler flags for AUTOTRACE, overriding pkg-config
1982 AUTOTRACE_LIBS
1983 linker flags for AUTOTRACE, overriding pkg-config
1984 FONTCONFIG_CFLAGS
1985 C compiler flags for FONTCONFIG, overriding pkg-config
1986 FONTCONFIG_LIBS
1987 linker flags for FONTCONFIG, overriding pkg-config
cristy03f187e2013-01-24 00:22:19 +00001988 FREETYPE_CFLAGS
1989 C compiler flags for FREETYPE, overriding pkg-config
1990 FREETYPE_LIBS
1991 linker flags for FREETYPE, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001992 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
1993 GVC_LIBS linker flags for GVC, overriding pkg-config
1994 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
1995 LQR_LIBS linker flags for LQR, overriding pkg-config
cristyb94e5002011-11-14 13:20:10 +00001996 LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config
1997 LZMA_LIBS linker flags for LZMA, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001998 OPENEXR_CFLAGS
1999 C compiler flags for OPENEXR, overriding pkg-config
2000 OPENEXR_LIBS
2001 linker flags for OPENEXR, overriding pkg-config
cristy41cbe8a2011-10-27 01:35:18 +00002002 PANGO_CFLAGS
2003 C compiler flags for PANGO, overriding pkg-config
2004 PANGO_LIBS linker flags for PANGO, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002005 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
2006 RSVG_LIBS linker flags for RSVG, overriding pkg-config
2007 CAIRO_SVG_CFLAGS
2008 C compiler flags for CAIRO_SVG, overriding pkg-config
2009 CAIRO_SVG_LIBS
2010 linker flags for CAIRO_SVG, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00002011
2012Use these variables to override the choices made by `configure' or to help
2013it to find libraries and programs with nonstandard names/locations.
2014
2015Report bugs to <http://www.imagemagick.org>.
2016_ACEOF
2017ac_status=$?
2018fi
2019
2020if test "$ac_init_help" = "recursive"; then
2021 # If there are subdirs, report their specific --help.
2022 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2023 test -d "$ac_dir" ||
2024 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2025 continue
2026 ac_builddir=.
2027
2028case "$ac_dir" in
2029.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2030*)
2031 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2032 # A ".." for each directory in $ac_dir_suffix.
2033 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2034 case $ac_top_builddir_sub in
2035 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2036 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2037 esac ;;
2038esac
2039ac_abs_top_builddir=$ac_pwd
2040ac_abs_builddir=$ac_pwd$ac_dir_suffix
2041# for backward compatibility:
2042ac_top_builddir=$ac_top_build_prefix
2043
2044case $srcdir in
2045 .) # We are building in place.
2046 ac_srcdir=.
2047 ac_top_srcdir=$ac_top_builddir_sub
2048 ac_abs_top_srcdir=$ac_pwd ;;
2049 [\\/]* | ?:[\\/]* ) # Absolute name.
2050 ac_srcdir=$srcdir$ac_dir_suffix;
2051 ac_top_srcdir=$srcdir
2052 ac_abs_top_srcdir=$srcdir ;;
2053 *) # Relative name.
2054 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2055 ac_top_srcdir=$ac_top_build_prefix$srcdir
2056 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2057esac
2058ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2059
2060 cd "$ac_dir" || { ac_status=$?; continue; }
2061 # Check for guested configure.
2062 if test -f "$ac_srcdir/configure.gnu"; then
2063 echo &&
2064 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2065 elif test -f "$ac_srcdir/configure"; then
2066 echo &&
2067 $SHELL "$ac_srcdir/configure" --help=recursive
2068 else
2069 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2070 fi || ac_status=$?
2071 cd "$ac_pwd" || { ac_status=$?; break; }
2072 done
2073fi
2074
2075test -n "$ac_init_help" && exit $ac_status
2076if $ac_init_version; then
2077 cat <<\_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00002078ImageMagick configure 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +00002079generated by GNU Autoconf 2.69
cristy3ed852e2009-09-05 21:47:34 +00002080
cristy14fefe52012-05-21 00:59:18 +00002081Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002082This configure script is free software; the Free Software Foundation
2083gives unlimited permission to copy, distribute and modify it.
2084_ACEOF
2085 exit
2086fi
cristy8b350f62009-11-15 23:12:43 +00002087
2088## ------------------------ ##
2089## Autoconf initialization. ##
2090## ------------------------ ##
2091
2092# ac_fn_c_try_compile LINENO
2093# --------------------------
2094# Try to compile conftest.$ac_ext, and return whether this succeeded.
2095ac_fn_c_try_compile ()
2096{
2097 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2098 rm -f conftest.$ac_objext
2099 if { { ac_try="$ac_compile"
2100case "(($ac_try" in
2101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2102 *) ac_try_echo=$ac_try;;
2103esac
2104eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2105$as_echo "$ac_try_echo"; } >&5
2106 (eval "$ac_compile") 2>conftest.err
2107 ac_status=$?
2108 if test -s conftest.err; then
2109 grep -v '^ *+' conftest.err >conftest.er1
2110 cat conftest.er1 >&5
2111 mv -f conftest.er1 conftest.err
2112 fi
2113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2114 test $ac_status = 0; } && {
2115 test -z "$ac_c_werror_flag" ||
2116 test ! -s conftest.err
2117 } && test -s conftest.$ac_objext; then :
2118 ac_retval=0
2119else
2120 $as_echo "$as_me: failed program was:" >&5
2121sed 's/^/| /' conftest.$ac_ext >&5
2122
2123 ac_retval=1
2124fi
cristyda16f162011-02-19 23:52:17 +00002125 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002126 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002127
2128} # ac_fn_c_try_compile
2129
cristy95646052009-11-28 23:05:30 +00002130# ac_fn_c_try_cpp LINENO
2131# ----------------------
2132# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2133ac_fn_c_try_cpp ()
2134{
2135 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2136 if { { ac_try="$ac_cpp conftest.$ac_ext"
2137case "(($ac_try" in
2138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2139 *) ac_try_echo=$ac_try;;
2140esac
2141eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2142$as_echo "$ac_try_echo"; } >&5
2143 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2144 ac_status=$?
2145 if test -s conftest.err; then
2146 grep -v '^ *+' conftest.err >conftest.er1
2147 cat conftest.er1 >&5
2148 mv -f conftest.er1 conftest.err
2149 fi
2150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002151 test $ac_status = 0; } > conftest.i && {
cristy95646052009-11-28 23:05:30 +00002152 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2153 test ! -s conftest.err
2154 }; then :
2155 ac_retval=0
2156else
2157 $as_echo "$as_me: failed program was:" >&5
2158sed 's/^/| /' conftest.$ac_ext >&5
2159
2160 ac_retval=1
2161fi
cristyda16f162011-02-19 23:52:17 +00002162 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy95646052009-11-28 23:05:30 +00002163 as_fn_set_status $ac_retval
2164
2165} # ac_fn_c_try_cpp
2166
cristy8b350f62009-11-15 23:12:43 +00002167# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2168# -------------------------------------------------------
2169# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2170# the include files in INCLUDES and setting the cache variable VAR
2171# accordingly.
2172ac_fn_c_check_header_mongrel ()
2173{
2174 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002175 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2177$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002178if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002179 $as_echo_n "(cached) " >&6
2180fi
2181eval ac_res=\$$3
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2183$as_echo "$ac_res" >&6; }
2184else
2185 # Is the header compilable?
2186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2187$as_echo_n "checking $2 usability... " >&6; }
2188cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2189/* end confdefs.h. */
2190$4
2191#include <$2>
2192_ACEOF
2193if ac_fn_c_try_compile "$LINENO"; then :
2194 ac_header_compiler=yes
2195else
2196 ac_header_compiler=no
2197fi
2198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2200$as_echo "$ac_header_compiler" >&6; }
2201
2202# Is the header present?
2203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2204$as_echo_n "checking $2 presence... " >&6; }
2205cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2206/* end confdefs.h. */
2207#include <$2>
2208_ACEOF
2209if ac_fn_c_try_cpp "$LINENO"; then :
2210 ac_header_preproc=yes
2211else
2212 ac_header_preproc=no
2213fi
cristyda16f162011-02-19 23:52:17 +00002214rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2216$as_echo "$ac_header_preproc" >&6; }
2217
2218# So? What about this header?
2219case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2220 yes:no: )
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2222$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2224$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2225 ;;
2226 no:yes:* )
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2228$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2230$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2232$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2234$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2236$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002237( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002238## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002239## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002240 ) | sed "s/^/$as_me: WARNING: /" >&2
2241 ;;
2242esac
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2244$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002245if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002246 $as_echo_n "(cached) " >&6
2247else
2248 eval "$3=\$ac_header_compiler"
2249fi
2250eval ac_res=\$$3
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2252$as_echo "$ac_res" >&6; }
2253fi
cristyda16f162011-02-19 23:52:17 +00002254 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002255
2256} # ac_fn_c_check_header_mongrel
2257
2258# ac_fn_c_try_run LINENO
2259# ----------------------
2260# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2261# that executables *can* be run.
2262ac_fn_c_try_run ()
2263{
2264 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2265 if { { ac_try="$ac_link"
2266case "(($ac_try" in
2267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2268 *) ac_try_echo=$ac_try;;
2269esac
2270eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2271$as_echo "$ac_try_echo"; } >&5
2272 (eval "$ac_link") 2>&5
2273 ac_status=$?
2274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2275 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2276 { { case "(($ac_try" in
2277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2278 *) ac_try_echo=$ac_try;;
2279esac
2280eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2281$as_echo "$ac_try_echo"; } >&5
2282 (eval "$ac_try") 2>&5
2283 ac_status=$?
2284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2285 test $ac_status = 0; }; }; then :
2286 ac_retval=0
2287else
2288 $as_echo "$as_me: program exited with status $ac_status" >&5
2289 $as_echo "$as_me: failed program was:" >&5
2290sed 's/^/| /' conftest.$ac_ext >&5
2291
2292 ac_retval=$ac_status
2293fi
2294 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002295 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002296 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002297
2298} # ac_fn_c_try_run
2299
2300# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2301# -------------------------------------------------------
2302# Tests whether HEADER exists and can be compiled using the include files in
2303# INCLUDES, setting the cache variable VAR accordingly.
2304ac_fn_c_check_header_compile ()
2305{
2306 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2308$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002309if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002310 $as_echo_n "(cached) " >&6
2311else
2312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2313/* end confdefs.h. */
2314$4
2315#include <$2>
2316_ACEOF
2317if ac_fn_c_try_compile "$LINENO"; then :
2318 eval "$3=yes"
2319else
2320 eval "$3=no"
2321fi
2322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2323fi
2324eval ac_res=\$$3
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2326$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002327 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002328
2329} # ac_fn_c_check_header_compile
2330
cristya0b81c32010-01-22 02:54:33 +00002331# ac_fn_cxx_try_compile LINENO
2332# ----------------------------
2333# Try to compile conftest.$ac_ext, and return whether this succeeded.
2334ac_fn_cxx_try_compile ()
2335{
2336 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2337 rm -f conftest.$ac_objext
2338 if { { ac_try="$ac_compile"
2339case "(($ac_try" in
2340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2341 *) ac_try_echo=$ac_try;;
2342esac
2343eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2344$as_echo "$ac_try_echo"; } >&5
2345 (eval "$ac_compile") 2>conftest.err
2346 ac_status=$?
2347 if test -s conftest.err; then
2348 grep -v '^ *+' conftest.err >conftest.er1
2349 cat conftest.er1 >&5
2350 mv -f conftest.er1 conftest.err
2351 fi
2352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2353 test $ac_status = 0; } && {
2354 test -z "$ac_cxx_werror_flag" ||
2355 test ! -s conftest.err
2356 } && test -s conftest.$ac_objext; then :
2357 ac_retval=0
2358else
2359 $as_echo "$as_me: failed program was:" >&5
2360sed 's/^/| /' conftest.$ac_ext >&5
2361
2362 ac_retval=1
2363fi
cristyda16f162011-02-19 23:52:17 +00002364 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristya0b81c32010-01-22 02:54:33 +00002365 as_fn_set_status $ac_retval
2366
2367} # ac_fn_cxx_try_compile
2368
cristy8b350f62009-11-15 23:12:43 +00002369# ac_fn_c_try_link LINENO
2370# -----------------------
2371# Try to link conftest.$ac_ext, and return whether this succeeded.
2372ac_fn_c_try_link ()
2373{
2374 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2375 rm -f conftest.$ac_objext conftest$ac_exeext
2376 if { { ac_try="$ac_link"
2377case "(($ac_try" in
2378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2379 *) ac_try_echo=$ac_try;;
2380esac
2381eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2382$as_echo "$ac_try_echo"; } >&5
2383 (eval "$ac_link") 2>conftest.err
2384 ac_status=$?
2385 if test -s conftest.err; then
2386 grep -v '^ *+' conftest.err >conftest.er1
2387 cat conftest.er1 >&5
2388 mv -f conftest.er1 conftest.err
2389 fi
2390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2391 test $ac_status = 0; } && {
2392 test -z "$ac_c_werror_flag" ||
2393 test ! -s conftest.err
2394 } && test -s conftest$ac_exeext && {
2395 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002396 test -x conftest$ac_exeext
cristy8b350f62009-11-15 23:12:43 +00002397 }; then :
2398 ac_retval=0
2399else
2400 $as_echo "$as_me: failed program was:" >&5
2401sed 's/^/| /' conftest.$ac_ext >&5
2402
2403 ac_retval=1
2404fi
2405 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2406 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2407 # interfere with the next link command; also delete a directory that is
2408 # left behind by Apple's compiler. We do this before executing the actions.
2409 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002410 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002411 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002412
2413} # ac_fn_c_try_link
2414
cristy73bd4a52010-10-05 11:24:23 +00002415# ac_fn_c_check_func LINENO FUNC VAR
2416# ----------------------------------
2417# Tests whether FUNC exists, setting the cache variable VAR accordingly
2418ac_fn_c_check_func ()
2419{
2420 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2422$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002423if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002424 $as_echo_n "(cached) " >&6
2425else
2426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2427/* end confdefs.h. */
2428/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2429 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2430#define $2 innocuous_$2
2431
2432/* System header to define __stub macros and hopefully few prototypes,
2433 which can conflict with char $2 (); below.
2434 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2435 <limits.h> exists even on freestanding compilers. */
2436
2437#ifdef __STDC__
2438# include <limits.h>
2439#else
2440# include <assert.h>
2441#endif
2442
2443#undef $2
2444
2445/* Override any GCC internal prototype to avoid an error.
2446 Use char because int might match the return type of a GCC
2447 builtin and then its argument prototype would still apply. */
2448#ifdef __cplusplus
2449extern "C"
2450#endif
2451char $2 ();
2452/* The GNU C library defines this for functions which it implements
2453 to always fail with ENOSYS. Some functions are actually named
2454 something starting with __ and the normal name is an alias. */
2455#if defined __stub_$2 || defined __stub___$2
2456choke me
2457#endif
2458
2459int
2460main ()
2461{
2462return $2 ();
2463 ;
2464 return 0;
2465}
2466_ACEOF
2467if ac_fn_c_try_link "$LINENO"; then :
2468 eval "$3=yes"
2469else
2470 eval "$3=no"
2471fi
2472rm -f core conftest.err conftest.$ac_objext \
2473 conftest$ac_exeext conftest.$ac_ext
2474fi
2475eval ac_res=\$$3
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2477$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002478 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002479
2480} # ac_fn_c_check_func
2481
2482# ac_fn_cxx_try_cpp LINENO
2483# ------------------------
2484# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2485ac_fn_cxx_try_cpp ()
2486{
2487 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2488 if { { ac_try="$ac_cpp conftest.$ac_ext"
2489case "(($ac_try" in
2490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2491 *) ac_try_echo=$ac_try;;
2492esac
2493eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2494$as_echo "$ac_try_echo"; } >&5
2495 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2496 ac_status=$?
2497 if test -s conftest.err; then
2498 grep -v '^ *+' conftest.err >conftest.er1
2499 cat conftest.er1 >&5
2500 mv -f conftest.er1 conftest.err
2501 fi
2502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002503 test $ac_status = 0; } > conftest.i && {
cristy73bd4a52010-10-05 11:24:23 +00002504 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2505 test ! -s conftest.err
2506 }; then :
2507 ac_retval=0
2508else
2509 $as_echo "$as_me: failed program was:" >&5
2510sed 's/^/| /' conftest.$ac_ext >&5
2511
2512 ac_retval=1
2513fi
cristyda16f162011-02-19 23:52:17 +00002514 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002515 as_fn_set_status $ac_retval
2516
2517} # ac_fn_cxx_try_cpp
2518
2519# ac_fn_cxx_try_link LINENO
2520# -------------------------
2521# Try to link conftest.$ac_ext, and return whether this succeeded.
2522ac_fn_cxx_try_link ()
2523{
2524 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2525 rm -f conftest.$ac_objext conftest$ac_exeext
2526 if { { ac_try="$ac_link"
2527case "(($ac_try" in
2528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2529 *) ac_try_echo=$ac_try;;
2530esac
2531eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2532$as_echo "$ac_try_echo"; } >&5
2533 (eval "$ac_link") 2>conftest.err
2534 ac_status=$?
2535 if test -s conftest.err; then
2536 grep -v '^ *+' conftest.err >conftest.er1
2537 cat conftest.er1 >&5
2538 mv -f conftest.er1 conftest.err
2539 fi
2540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2541 test $ac_status = 0; } && {
2542 test -z "$ac_cxx_werror_flag" ||
2543 test ! -s conftest.err
2544 } && test -s conftest$ac_exeext && {
2545 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002546 test -x conftest$ac_exeext
cristy73bd4a52010-10-05 11:24:23 +00002547 }; then :
2548 ac_retval=0
2549else
2550 $as_echo "$as_me: failed program was:" >&5
2551sed 's/^/| /' conftest.$ac_ext >&5
2552
2553 ac_retval=1
2554fi
2555 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2556 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2557 # interfere with the next link command; also delete a directory that is
2558 # left behind by Apple's compiler. We do this before executing the actions.
2559 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002560 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002561 as_fn_set_status $ac_retval
2562
2563} # ac_fn_cxx_try_link
2564
cristy8b350f62009-11-15 23:12:43 +00002565# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2566# -------------------------------------------
2567# Tests whether TYPE exists after having included INCLUDES, setting cache
2568# variable VAR accordingly.
2569ac_fn_c_check_type ()
2570{
2571 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2573$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002574if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002575 $as_echo_n "(cached) " >&6
2576else
2577 eval "$3=no"
2578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2579/* end confdefs.h. */
2580$4
2581int
2582main ()
2583{
2584if (sizeof ($2))
2585 return 0;
2586 ;
2587 return 0;
2588}
2589_ACEOF
2590if ac_fn_c_try_compile "$LINENO"; then :
2591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2592/* end confdefs.h. */
2593$4
2594int
2595main ()
2596{
2597if (sizeof (($2)))
2598 return 0;
2599 ;
2600 return 0;
2601}
2602_ACEOF
2603if ac_fn_c_try_compile "$LINENO"; then :
2604
2605else
2606 eval "$3=yes"
2607fi
2608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2609fi
2610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2611fi
2612eval ac_res=\$$3
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2614$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002615 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002616
2617} # ac_fn_c_check_type
2618
cristy92703d82010-04-26 00:18:18 +00002619# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2620# ----------------------------------------------------
2621# Tries to find if the field MEMBER exists in type AGGR, after including
2622# INCLUDES, setting cache variable VAR accordingly.
2623ac_fn_c_check_member ()
2624{
2625 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2627$as_echo_n "checking for $2.$3... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002628if eval \${$4+:} false; then :
cristy92703d82010-04-26 00:18:18 +00002629 $as_echo_n "(cached) " >&6
2630else
2631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2632/* end confdefs.h. */
2633$5
2634int
2635main ()
2636{
2637static $2 ac_aggr;
2638if (ac_aggr.$3)
2639return 0;
2640 ;
2641 return 0;
2642}
2643_ACEOF
2644if ac_fn_c_try_compile "$LINENO"; then :
2645 eval "$4=yes"
2646else
2647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2648/* end confdefs.h. */
2649$5
2650int
2651main ()
2652{
2653static $2 ac_aggr;
2654if (sizeof ac_aggr.$3)
2655return 0;
2656 ;
2657 return 0;
2658}
2659_ACEOF
2660if ac_fn_c_try_compile "$LINENO"; then :
2661 eval "$4=yes"
2662else
2663 eval "$4=no"
2664fi
2665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2666fi
2667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2668fi
2669eval ac_res=\$$4
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2671$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002672 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy92703d82010-04-26 00:18:18 +00002673
2674} # ac_fn_c_check_member
2675
cristy5eef09f2012-10-16 12:08:28 +00002676# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2677# ---------------------------------------------
2678# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2679# accordingly.
2680ac_fn_c_check_decl ()
2681{
2682 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2683 as_decl_name=`echo $2|sed 's/ *(.*//'`
2684 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2686$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2687if eval \${$3+:} false; then :
2688 $as_echo_n "(cached) " >&6
2689else
2690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2691/* end confdefs.h. */
2692$4
2693int
2694main ()
2695{
2696#ifndef $as_decl_name
2697#ifdef __cplusplus
2698 (void) $as_decl_use;
2699#else
2700 (void) $as_decl_name;
2701#endif
2702#endif
2703
2704 ;
2705 return 0;
2706}
2707_ACEOF
2708if ac_fn_c_try_compile "$LINENO"; then :
2709 eval "$3=yes"
2710else
2711 eval "$3=no"
2712fi
2713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2714fi
2715eval ac_res=\$$3
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2717$as_echo "$ac_res" >&6; }
2718 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2719
2720} # ac_fn_c_check_decl
2721
cristy501c8042011-05-26 17:46:28 +00002722# ac_fn_c_find_intX_t LINENO BITS VAR
2723# -----------------------------------
2724# Finds a signed integer type with width BITS, setting cache variable VAR
2725# accordingly.
2726ac_fn_c_find_intX_t ()
2727{
2728 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2730$as_echo_n "checking for int$2_t... " >&6; }
2731if eval \${$3+:} false; then :
2732 $as_echo_n "(cached) " >&6
2733else
2734 eval "$3=no"
2735 # Order is important - never check a type that is potentially smaller
2736 # than half of the expected target width.
2737 for ac_type in int$2_t 'int' 'long int' \
2738 'long long int' 'short int' 'signed char'; do
2739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2740/* end confdefs.h. */
2741$ac_includes_default
2742 enum { N = $2 / 2 - 1 };
2743int
2744main ()
2745{
2746static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
cristy14fefe52012-05-21 00:59:18 +00002747test_array [0] = 0;
2748return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002749
2750 ;
2751 return 0;
2752}
2753_ACEOF
2754if ac_fn_c_try_compile "$LINENO"; then :
2755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2756/* end confdefs.h. */
2757$ac_includes_default
2758 enum { N = $2 / 2 - 1 };
2759int
2760main ()
2761{
2762static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2763 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
cristy14fefe52012-05-21 00:59:18 +00002764test_array [0] = 0;
2765return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002766
2767 ;
2768 return 0;
2769}
2770_ACEOF
2771if ac_fn_c_try_compile "$LINENO"; then :
2772
2773else
2774 case $ac_type in #(
2775 int$2_t) :
2776 eval "$3=yes" ;; #(
2777 *) :
2778 eval "$3=\$ac_type" ;;
2779esac
2780fi
2781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2782fi
2783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2784 if eval test \"x\$"$3"\" = x"no"; then :
2785
2786else
2787 break
2788fi
2789 done
2790fi
2791eval ac_res=\$$3
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2793$as_echo "$ac_res" >&6; }
2794 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2795
2796} # ac_fn_c_find_intX_t
2797
2798# ac_fn_c_find_uintX_t LINENO BITS VAR
2799# ------------------------------------
2800# Finds an unsigned integer type with width BITS, setting cache variable VAR
2801# accordingly.
2802ac_fn_c_find_uintX_t ()
2803{
2804 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2806$as_echo_n "checking for uint$2_t... " >&6; }
2807if eval \${$3+:} false; then :
2808 $as_echo_n "(cached) " >&6
2809else
2810 eval "$3=no"
2811 # Order is important - never check a type that is potentially smaller
2812 # than half of the expected target width.
2813 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2814 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2816/* end confdefs.h. */
2817$ac_includes_default
2818int
2819main ()
2820{
2821static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
cristy14fefe52012-05-21 00:59:18 +00002822test_array [0] = 0;
2823return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002824
2825 ;
2826 return 0;
2827}
2828_ACEOF
2829if ac_fn_c_try_compile "$LINENO"; then :
2830 case $ac_type in #(
2831 uint$2_t) :
2832 eval "$3=yes" ;; #(
2833 *) :
2834 eval "$3=\$ac_type" ;;
2835esac
2836fi
2837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2838 if eval test \"x\$"$3"\" = x"no"; then :
2839
2840else
2841 break
2842fi
2843 done
2844fi
2845eval ac_res=\$$3
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2847$as_echo "$ac_res" >&6; }
2848 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2849
2850} # ac_fn_c_find_uintX_t
2851
cristy8b350f62009-11-15 23:12:43 +00002852# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2853# --------------------------------------------
2854# Tries to find the compile-time value of EXPR in a program that includes
2855# INCLUDES, setting VAR accordingly. Returns whether the value could be
2856# computed
2857ac_fn_c_compute_int ()
2858{
2859 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2860 if test "$cross_compiling" = yes; then
2861 # Depending upon the size, compute the lo and hi bounds.
2862cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2863/* end confdefs.h. */
2864$4
2865int
2866main ()
2867{
2868static int test_array [1 - 2 * !(($2) >= 0)];
cristy14fefe52012-05-21 00:59:18 +00002869test_array [0] = 0;
2870return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002871
2872 ;
2873 return 0;
2874}
2875_ACEOF
2876if ac_fn_c_try_compile "$LINENO"; then :
2877 ac_lo=0 ac_mid=0
2878 while :; do
2879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2880/* end confdefs.h. */
2881$4
2882int
2883main ()
2884{
2885static int test_array [1 - 2 * !(($2) <= $ac_mid)];
cristy14fefe52012-05-21 00:59:18 +00002886test_array [0] = 0;
2887return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002888
2889 ;
2890 return 0;
2891}
2892_ACEOF
2893if ac_fn_c_try_compile "$LINENO"; then :
2894 ac_hi=$ac_mid; break
2895else
2896 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2897 if test $ac_lo -le $ac_mid; then
2898 ac_lo= ac_hi=
2899 break
2900 fi
2901 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2902fi
2903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2904 done
2905else
2906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2907/* end confdefs.h. */
2908$4
2909int
2910main ()
2911{
2912static int test_array [1 - 2 * !(($2) < 0)];
cristy14fefe52012-05-21 00:59:18 +00002913test_array [0] = 0;
2914return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002915
2916 ;
2917 return 0;
2918}
2919_ACEOF
2920if ac_fn_c_try_compile "$LINENO"; then :
2921 ac_hi=-1 ac_mid=-1
2922 while :; do
2923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2924/* end confdefs.h. */
2925$4
2926int
2927main ()
2928{
2929static int test_array [1 - 2 * !(($2) >= $ac_mid)];
cristy14fefe52012-05-21 00:59:18 +00002930test_array [0] = 0;
2931return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002932
2933 ;
2934 return 0;
2935}
2936_ACEOF
2937if ac_fn_c_try_compile "$LINENO"; then :
2938 ac_lo=$ac_mid; break
2939else
2940 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2941 if test $ac_mid -le $ac_hi; then
2942 ac_lo= ac_hi=
2943 break
2944 fi
2945 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2946fi
2947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2948 done
2949else
2950 ac_lo= ac_hi=
2951fi
2952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2953fi
2954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2955# Binary search between lo and hi bounds.
2956while test "x$ac_lo" != "x$ac_hi"; do
2957 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2959/* end confdefs.h. */
2960$4
2961int
2962main ()
2963{
2964static int test_array [1 - 2 * !(($2) <= $ac_mid)];
cristy14fefe52012-05-21 00:59:18 +00002965test_array [0] = 0;
2966return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002967
2968 ;
2969 return 0;
2970}
2971_ACEOF
2972if ac_fn_c_try_compile "$LINENO"; then :
2973 ac_hi=$ac_mid
2974else
2975 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2976fi
2977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2978done
2979case $ac_lo in #((
2980?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2981'') ac_retval=1 ;;
2982esac
2983 else
2984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2985/* end confdefs.h. */
2986$4
2987static long int longval () { return $2; }
2988static unsigned long int ulongval () { return $2; }
2989#include <stdio.h>
2990#include <stdlib.h>
2991int
2992main ()
2993{
2994
2995 FILE *f = fopen ("conftest.val", "w");
2996 if (! f)
2997 return 1;
2998 if (($2) < 0)
2999 {
3000 long int i = longval ();
3001 if (i != ($2))
3002 return 1;
3003 fprintf (f, "%ld", i);
3004 }
3005 else
3006 {
3007 unsigned long int i = ulongval ();
3008 if (i != ($2))
3009 return 1;
3010 fprintf (f, "%lu", i);
3011 }
3012 /* Do not output a trailing newline, as this causes \r\n confusion
3013 on some platforms. */
3014 return ferror (f) || fclose (f) != 0;
3015
3016 ;
3017 return 0;
3018}
3019_ACEOF
3020if ac_fn_c_try_run "$LINENO"; then :
3021 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
3022else
3023 ac_retval=1
3024fi
3025rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3026 conftest.$ac_objext conftest.beam conftest.$ac_ext
3027rm -f conftest.val
3028
3029 fi
cristyda16f162011-02-19 23:52:17 +00003030 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00003031 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00003032
3033} # ac_fn_c_compute_int
3034
3035# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
3036# ---------------------------------------------------------
3037# Tests whether HEADER exists, giving a warning if it cannot be compiled using
3038# the include files in INCLUDES and setting the cache variable VAR
3039# accordingly.
3040ac_fn_cxx_check_header_mongrel ()
3041{
3042 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00003043 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3045$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003046if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003047 $as_echo_n "(cached) " >&6
3048fi
3049eval ac_res=\$$3
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3051$as_echo "$ac_res" >&6; }
3052else
3053 # Is the header compilable?
3054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
3055$as_echo_n "checking $2 usability... " >&6; }
3056cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3057/* end confdefs.h. */
3058$4
3059#include <$2>
3060_ACEOF
3061if ac_fn_cxx_try_compile "$LINENO"; then :
3062 ac_header_compiler=yes
3063else
3064 ac_header_compiler=no
3065fi
3066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3068$as_echo "$ac_header_compiler" >&6; }
3069
3070# Is the header present?
3071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3072$as_echo_n "checking $2 presence... " >&6; }
3073cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3074/* end confdefs.h. */
3075#include <$2>
3076_ACEOF
3077if ac_fn_cxx_try_cpp "$LINENO"; then :
3078 ac_header_preproc=yes
3079else
3080 ac_header_preproc=no
3081fi
cristyda16f162011-02-19 23:52:17 +00003082rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00003083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3084$as_echo "$ac_header_preproc" >&6; }
3085
3086# So? What about this header?
3087case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3088 yes:no: )
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3090$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3092$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3093 ;;
3094 no:yes:* )
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3096$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3098$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3100$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3102$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3104$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003105( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00003106## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00003107## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00003108 ) | sed "s/^/$as_me: WARNING: /" >&2
3109 ;;
3110esac
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3112$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003113if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003114 $as_echo_n "(cached) " >&6
3115else
3116 eval "$3=\$ac_header_compiler"
3117fi
3118eval ac_res=\$$3
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3120$as_echo "$ac_res" >&6; }
3121fi
cristyda16f162011-02-19 23:52:17 +00003122 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00003123
3124} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00003125cat >config.log <<_ACEOF
3126This file contains any messages produced by compilers while
3127running configure, to aid debugging if configure makes a mistake.
3128
cristy29eb34e2011-10-16 00:46:08 +00003129It was created by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +00003130generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00003131
3132 $ $0 $@
3133
3134_ACEOF
3135exec 5>>config.log
3136{
3137cat <<_ASUNAME
3138## --------- ##
3139## Platform. ##
3140## --------- ##
3141
3142hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3143uname -m = `(uname -m) 2>/dev/null || echo unknown`
3144uname -r = `(uname -r) 2>/dev/null || echo unknown`
3145uname -s = `(uname -s) 2>/dev/null || echo unknown`
3146uname -v = `(uname -v) 2>/dev/null || echo unknown`
3147
3148/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3149/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3150
3151/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3152/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3153/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3154/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3155/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3156/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3157/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3158
3159_ASUNAME
3160
3161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3162for as_dir in $PATH
3163do
3164 IFS=$as_save_IFS
3165 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003166 $as_echo "PATH: $as_dir"
3167 done
cristy3ed852e2009-09-05 21:47:34 +00003168IFS=$as_save_IFS
3169
3170} >&5
3171
3172cat >&5 <<_ACEOF
3173
3174
3175## ----------- ##
3176## Core tests. ##
3177## ----------- ##
3178
3179_ACEOF
3180
3181
3182# Keep a trace of the command line.
3183# Strip out --no-create and --no-recursion so they do not pile up.
3184# Strip out --silent because we don't want to record it for future runs.
3185# Also quote any args containing shell meta-characters.
3186# Make two passes to allow for proper duplicate-argument suppression.
3187ac_configure_args=
3188ac_configure_args0=
3189ac_configure_args1=
3190ac_must_keep_next=false
3191for ac_pass in 1 2
3192do
3193 for ac_arg
3194 do
3195 case $ac_arg in
3196 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3197 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3198 | -silent | --silent | --silen | --sile | --sil)
3199 continue ;;
3200 *\'*)
3201 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3202 esac
3203 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003204 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003205 2)
cristy8b350f62009-11-15 23:12:43 +00003206 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003207 if test $ac_must_keep_next = true; then
3208 ac_must_keep_next=false # Got value, back to normal.
3209 else
3210 case $ac_arg in
3211 *=* | --config-cache | -C | -disable-* | --disable-* \
3212 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3213 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3214 | -with-* | --with-* | -without-* | --without-* | --x)
3215 case "$ac_configure_args0 " in
3216 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3217 esac
3218 ;;
3219 -* ) ac_must_keep_next=true ;;
3220 esac
3221 fi
cristy8b350f62009-11-15 23:12:43 +00003222 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003223 ;;
3224 esac
3225 done
3226done
cristy8b350f62009-11-15 23:12:43 +00003227{ ac_configure_args0=; unset ac_configure_args0;}
3228{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003229
3230# When interrupted or exit'd, cleanup temporary files, and complete
3231# config.log. We remove comments because anyway the quotes in there
3232# would cause problems or look ugly.
3233# WARNING: Use '\'' to represent an apostrophe within the trap.
3234# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3235trap 'exit_status=$?
3236 # Save into config.log some information that might help in debugging.
3237 {
3238 echo
3239
cristy98dddb52010-11-04 00:30:15 +00003240 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003241## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003242## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003243 echo
3244 # The following way of writing the cache mishandles newlines in values,
3245(
3246 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3247 eval ac_val=\$$ac_var
3248 case $ac_val in #(
3249 *${as_nl}*)
3250 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003251 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003252$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3253 esac
3254 case $ac_var in #(
3255 _ | IFS | as_nl) ;; #(
3256 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003257 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003258 esac ;;
3259 esac
3260 done
3261 (set) 2>&1 |
3262 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3263 *${as_nl}ac_space=\ *)
3264 sed -n \
3265 "s/'\''/'\''\\\\'\'''\''/g;
3266 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3267 ;; #(
3268 *)
3269 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3270 ;;
3271 esac |
3272 sort
3273)
3274 echo
3275
cristy98dddb52010-11-04 00:30:15 +00003276 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003277## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003278## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003279 echo
3280 for ac_var in $ac_subst_vars
3281 do
3282 eval ac_val=\$$ac_var
3283 case $ac_val in
3284 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3285 esac
3286 $as_echo "$ac_var='\''$ac_val'\''"
3287 done | sort
3288 echo
3289
3290 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003291 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003292## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003293## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003294 echo
3295 for ac_var in $ac_subst_files
3296 do
3297 eval ac_val=\$$ac_var
3298 case $ac_val in
3299 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3300 esac
3301 $as_echo "$ac_var='\''$ac_val'\''"
3302 done | sort
3303 echo
3304 fi
3305
3306 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003307 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003308## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003309## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003310 echo
3311 cat confdefs.h
3312 echo
3313 fi
3314 test "$ac_signal" != 0 &&
3315 $as_echo "$as_me: caught signal $ac_signal"
3316 $as_echo "$as_me: exit $exit_status"
3317 } >&5
3318 rm -f core *.core core.conftest.* &&
3319 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3320 exit $exit_status
3321' 0
3322for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003323 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003324done
3325ac_signal=0
3326
3327# confdefs.h avoids OS command line length limits that DEFS can exceed.
3328rm -f -r conftest* confdefs.h
3329
cristy8b350f62009-11-15 23:12:43 +00003330$as_echo "/* confdefs.h */" > confdefs.h
3331
cristy3ed852e2009-09-05 21:47:34 +00003332# Predefined preprocessor variables.
3333
3334cat >>confdefs.h <<_ACEOF
3335#define PACKAGE_NAME "$PACKAGE_NAME"
3336_ACEOF
3337
cristy3ed852e2009-09-05 21:47:34 +00003338cat >>confdefs.h <<_ACEOF
3339#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3340_ACEOF
3341
cristy3ed852e2009-09-05 21:47:34 +00003342cat >>confdefs.h <<_ACEOF
3343#define PACKAGE_VERSION "$PACKAGE_VERSION"
3344_ACEOF
3345
cristy3ed852e2009-09-05 21:47:34 +00003346cat >>confdefs.h <<_ACEOF
3347#define PACKAGE_STRING "$PACKAGE_STRING"
3348_ACEOF
3349
cristy3ed852e2009-09-05 21:47:34 +00003350cat >>confdefs.h <<_ACEOF
3351#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3352_ACEOF
3353
cristy8b350f62009-11-15 23:12:43 +00003354cat >>confdefs.h <<_ACEOF
3355#define PACKAGE_URL "$PACKAGE_URL"
3356_ACEOF
3357
cristy3ed852e2009-09-05 21:47:34 +00003358
3359# Let the site file select an alternate cache file if it wants to.
3360# Prefer an explicitly selected file to automatically selected ones.
3361ac_site_file1=NONE
3362ac_site_file2=NONE
3363if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003364 # We do not want a PATH search for config.site.
3365 case $CONFIG_SITE in #((
3366 -*) ac_site_file1=./$CONFIG_SITE;;
3367 */*) ac_site_file1=$CONFIG_SITE;;
3368 *) ac_site_file1=./$CONFIG_SITE;;
3369 esac
cristy3ed852e2009-09-05 21:47:34 +00003370elif test "x$prefix" != xNONE; then
3371 ac_site_file1=$prefix/share/config.site
3372 ac_site_file2=$prefix/etc/config.site
3373else
3374 ac_site_file1=$ac_default_prefix/share/config.site
3375 ac_site_file2=$ac_default_prefix/etc/config.site
3376fi
3377for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3378do
3379 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003380 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003381 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003382$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3383 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003384 . "$ac_site_file" \
3385 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3386$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3387as_fn_error $? "failed to load site script $ac_site_file
3388See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003389 fi
3390done
3391
3392if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003393 # Some versions of bash will fail to source /dev/null (special files
3394 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3395 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003396 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003397$as_echo "$as_me: loading cache $cache_file" >&6;}
3398 case $cache_file in
3399 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3400 *) . "./$cache_file";;
3401 esac
3402 fi
3403else
cristy8b350f62009-11-15 23:12:43 +00003404 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003405$as_echo "$as_me: creating cache $cache_file" >&6;}
3406 >$cache_file
3407fi
3408
cristycd4c5312009-11-22 01:19:08 +00003409as_fn_append ac_header_list " stdlib.h"
3410as_fn_append ac_header_list " unistd.h"
3411as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003412# Check that the precious variables saved in the cache have kept the same
3413# value.
3414ac_cache_corrupted=false
3415for ac_var in $ac_precious_vars; do
3416 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3417 eval ac_new_set=\$ac_env_${ac_var}_set
3418 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3419 eval ac_new_val=\$ac_env_${ac_var}_value
3420 case $ac_old_set,$ac_new_set in
3421 set,)
cristy8b350f62009-11-15 23:12:43 +00003422 { $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 +00003423$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3424 ac_cache_corrupted=: ;;
3425 ,set)
cristy8b350f62009-11-15 23:12:43 +00003426 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003427$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3428 ac_cache_corrupted=: ;;
3429 ,);;
3430 *)
3431 if test "x$ac_old_val" != "x$ac_new_val"; then
3432 # differences in whitespace do not lead to failure.
3433 ac_old_val_w=`echo x $ac_old_val`
3434 ac_new_val_w=`echo x $ac_new_val`
3435 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003436 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003437$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3438 ac_cache_corrupted=:
3439 else
cristy8b350f62009-11-15 23:12:43 +00003440 { $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 +00003441$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3442 eval $ac_var=\$ac_old_val
3443 fi
cristy8b350f62009-11-15 23:12:43 +00003444 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003445$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003446 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003447$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3448 fi;;
3449 esac
3450 # Pass precious variables to config.status.
3451 if test "$ac_new_set" = set; then
3452 case $ac_new_val in
3453 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3454 *) ac_arg=$ac_var=$ac_new_val ;;
3455 esac
3456 case " $ac_configure_args " in
3457 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003458 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003459 esac
3460 fi
3461done
3462if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003463 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003464$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003465 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003466$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003467 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003468fi
cristy8b350f62009-11-15 23:12:43 +00003469## -------------------- ##
3470## Main body of script. ##
3471## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003472
3473ac_ext=c
3474ac_cpp='$CPP $CPPFLAGS'
3475ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3476ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3477ac_compiler_gnu=$ac_cv_c_compiler_gnu
3478
3479
3480
3481ac_aux_dir=
3482for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003483 if test -f "$ac_dir/install-sh"; then
3484 ac_aux_dir=$ac_dir
3485 ac_install_sh="$ac_aux_dir/install-sh -c"
3486 break
3487 elif test -f "$ac_dir/install.sh"; then
3488 ac_aux_dir=$ac_dir
3489 ac_install_sh="$ac_aux_dir/install.sh -c"
3490 break
3491 elif test -f "$ac_dir/shtool"; then
3492 ac_aux_dir=$ac_dir
3493 ac_install_sh="$ac_aux_dir/shtool install -c"
3494 break
3495 fi
cristy3ed852e2009-09-05 21:47:34 +00003496done
3497if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003498 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003499fi
3500
3501# These three variables are undocumented and unsupported,
3502# and are intended to be withdrawn in a future Autoconf release.
3503# They can cause serious problems if a builder's source tree is in a directory
3504# whose full name contains unusual characters.
3505ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3506ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3507ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3508
3509
3510
3511
3512ac_config_headers="$ac_config_headers config/config.h"
3513
cristy24fc1fe2010-10-23 21:13:01 +00003514
cristy01ff9f32012-12-01 18:15:29 +00003515ac_config_commands="$ac_config_commands MagickCore/magick-baseconfig.h"
cristy73bd4a52010-10-05 11:24:23 +00003516
cristy8d0ff762013-03-10 20:33:28 +00003517ac_config_files="$ac_config_files common.shi config/configure.xml config/delegates.xml config/ImageMagick.rdf config/MagickCore.dox config/MagickWand.dox config/Magick++.dox config/type-dejavu.xml config/type-ghostscript.xml config/type-windows.xml config/type.xml ImageMagick.spec Magick++/bin/Magick++-config MagickCore/ImageMagick.pc Magick++/lib/Magick++.pc MagickCore/MagickCore-config MagickCore/MagickCore.pc MagickCore/version.h Makefile magick.sh PerlMagick/check.sh PerlMagick/default/Magick.pm PerlMagick/Makefile.PL PerlMagick/default/Makefile.PL PerlMagick/quantum/Makefile.PL PerlMagick/quantum/quantum.pm PerlMagick/quantum/quantum.xs PerlMagick/quantum/typemap utilities/animate.1 utilities/compare.1 utilities/composite.1 utilities/conjure.1 utilities/convert.1 utilities/display.1 utilities/identify.1 utilities/ImageMagick.1 utilities/import.1 utilities/mogrify.1 utilities/montage.1 utilities/stream.1 MagickWand/MagickWand-config MagickWand/MagickWand.pc"
cristy3ed852e2009-09-05 21:47:34 +00003518
3519
3520#
3521# Save initial user-tunable values
3522#
3523USER_LIBS=$LIBS
3524for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3525 eval isset=\${$var+set}
3526 if test "$isset" = 'set'; then
3527 eval val=$`echo $var`
3528 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3529 fi
3530done
3531
3532
3533CONFIGURE_ARGS="$0 ${ac_configure_args}"
3534
3535
3536# Source file containing package/library versioning information.
3537. ${srcdir}/version.sh
3538
cristy15a88782010-01-31 23:24:49 +00003539echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003540# Make sure we can run config.sub.
3541$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003542 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003543
cristy8b350f62009-11-15 23:12:43 +00003544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003545$as_echo_n "checking build system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003546if ${ac_cv_build+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003547 $as_echo_n "(cached) " >&6
3548else
3549 ac_build_alias=$build_alias
3550test "x$ac_build_alias" = x &&
3551 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3552test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003553 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003554ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003555 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003556
3557fi
cristy8b350f62009-11-15 23:12:43 +00003558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003559$as_echo "$ac_cv_build" >&6; }
3560case $ac_cv_build in
3561*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003562*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003563esac
3564build=$ac_cv_build
3565ac_save_IFS=$IFS; IFS='-'
3566set x $ac_cv_build
3567shift
3568build_cpu=$1
3569build_vendor=$2
3570shift; shift
3571# Remember, the first character of IFS is used to create $*,
3572# except with old shells:
3573build_os=$*
3574IFS=$ac_save_IFS
3575case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3576
3577
cristy8b350f62009-11-15 23:12:43 +00003578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003579$as_echo_n "checking host system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003580if ${ac_cv_host+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003581 $as_echo_n "(cached) " >&6
3582else
3583 if test "x$host_alias" = x; then
3584 ac_cv_host=$ac_cv_build
3585else
3586 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003587 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003588fi
3589
3590fi
cristy8b350f62009-11-15 23:12:43 +00003591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003592$as_echo "$ac_cv_host" >&6; }
3593case $ac_cv_host in
3594*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003595*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003596esac
3597host=$ac_cv_host
3598ac_save_IFS=$IFS; IFS='-'
3599set x $ac_cv_host
3600shift
3601host_cpu=$1
3602host_vendor=$2
3603shift; shift
3604# Remember, the first character of IFS is used to create $*,
3605# except with old shells:
3606host_os=$*
3607IFS=$ac_save_IFS
3608case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3609
3610
cristy8b350f62009-11-15 23:12:43 +00003611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003612$as_echo_n "checking target system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003613if ${ac_cv_target+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003614 $as_echo_n "(cached) " >&6
3615else
3616 if test "x$target_alias" = x; then
3617 ac_cv_target=$ac_cv_host
3618else
3619 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003620 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003621fi
3622
3623fi
cristy8b350f62009-11-15 23:12:43 +00003624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003625$as_echo "$ac_cv_target" >&6; }
3626case $ac_cv_target in
3627*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003628*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003629esac
3630target=$ac_cv_target
3631ac_save_IFS=$IFS; IFS='-'
3632set x $ac_cv_target
3633shift
3634target_cpu=$1
3635target_vendor=$2
3636shift; shift
3637# Remember, the first character of IFS is used to create $*,
3638# except with old shells:
3639target_os=$*
3640IFS=$ac_save_IFS
3641case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3642
3643
3644# The aliases save the names the user supplied, while $host etc.
3645# will get canonicalized.
3646test -n "$target_alias" &&
3647 test "$program_prefix$program_suffix$program_transform_name" = \
3648 NONENONEs,x,x, &&
3649 program_prefix=${target_alias}-
3650
cristy837d6dc2010-02-27 01:16:57 +00003651
3652
3653
cristy8be34142012-06-17 14:07:18 +00003654
cristy19615b82011-04-13 20:02:01 +00003655MAGICK_TARGET_CPU=$host_cpu
cristy3225a072010-04-17 01:47:28 +00003656
3657
cristy27d53d62012-07-29 23:30:07 +00003658cat >>confdefs.h <<_ACEOF
3659#define MAGICK_TARGET_CPU $MAGICK_TARGET_CPU
3660_ACEOF
3661
3662
cristy19615b82011-04-13 20:02:01 +00003663MAGICK_TARGET_VENDOR=$host_vendor
cristy3225a072010-04-17 01:47:28 +00003664
3665
cristy27d53d62012-07-29 23:30:07 +00003666cat >>confdefs.h <<_ACEOF
3667#define MAGICK_TARGET_VENDOR $MAGICK_TARGET_VENDOR
3668_ACEOF
3669
3670
cristy19615b82011-04-13 20:02:01 +00003671MAGICK_TARGET_OS=$host_os
cristy3225a072010-04-17 01:47:28 +00003672
3673
cristy27d53d62012-07-29 23:30:07 +00003674cat >>confdefs.h <<_ACEOF
3675#define MAGICK_TARGET_OS $MAGICK_TARGET_OS
3676_ACEOF
3677
3678
cristy37442762013-02-10 21:07:23 +00003679
3680# Substitute versioning
3681MAGICK_MAJOR_VERSION=7
3682
3683MAGICK_MINOR_VERSION=0
3684
3685MAGICK_MICRO_VERSION=0
3686
3687MAGICK_PATCHLEVEL_VERSION=0
3688
3689MAGICK_VERSION=7.0.0-0
3690
cristy86e86092013-08-04 17:43:57 +00003691MAGICK_SVN_REVISION=12854:12892M
cristy37442762013-02-10 21:07:23 +00003692
3693
cristy3ed852e2009-09-05 21:47:34 +00003694# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003695MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3696
3697MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3698
cristy37442762013-02-10 21:07:23 +00003699
cristy5ed9c6e2013-07-14 21:20:31 +00003700MAGICKPP_LIBRARY_CURRENT_MIN=`expr $MAGICKPP_LIBRARY_CURRENT - $MAGICKPP_LIBRARY_AGE`
3701
3702MAGICKPP_LIBRARY_VERSION_INFO=$MAGICKPP_LIBRARY_CURRENT:$MAGICKPP_LIBRARY_REVISION:$MAGICKPP_LIBRARY_AGE
3703
3704
cristyd694ca32011-03-27 21:42:54 +00003705
cristy3ed852e2009-09-05 21:47:34 +00003706# Ensure that make can run correctly
cristy73bd4a52010-10-05 11:24:23 +00003707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3708$as_echo_n "checking whether build environment is sane... " >&6; }
cristy73bd4a52010-10-05 11:24:23 +00003709# Reject unsafe characters in $srcdir or the absolute working directory
3710# name. Accept space and tab only in the latter.
3711am_lf='
3712'
3713case `pwd` in
3714 *[\\\"\#\$\&\'\`$am_lf]*)
cristy98dddb52010-11-04 00:30:15 +00003715 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003716esac
3717case $srcdir in
3718 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristyc0890a62012-07-19 00:18:20 +00003719 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003720esac
cristy3ed852e2009-09-05 21:47:34 +00003721
cristyc0890a62012-07-19 00:18:20 +00003722# Do 'set' in a subshell so we don't clobber the current shell's
cristy73bd4a52010-10-05 11:24:23 +00003723# arguments. Must try -L first in case configure is actually a
3724# symlink; some systems play weird games with the mod time of symlinks
3725# (eg FreeBSD returns the mod time of the symlink's containing
3726# directory).
3727if (
cristyc0890a62012-07-19 00:18:20 +00003728 am_has_slept=no
3729 for am_try in 1 2; do
3730 echo "timestamp, slept: $am_has_slept" > conftest.file
3731 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3732 if test "$*" = "X"; then
3733 # -L didn't work.
3734 set X `ls -t "$srcdir/configure" conftest.file`
3735 fi
3736 if test "$*" != "X $srcdir/configure conftest.file" \
3737 && test "$*" != "X conftest.file $srcdir/configure"; then
cristy73bd4a52010-10-05 11:24:23 +00003738
cristyc0890a62012-07-19 00:18:20 +00003739 # If neither matched, then we have a broken ls. This can happen
3740 # if, for instance, CONFIG_SHELL is bash and it inherits a
3741 # broken ls alias from the environment. This has actually
3742 # happened. Such a system could not be considered "sane".
3743 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3744 alias in your environment" "$LINENO" 5
3745 fi
3746 if test "$2" = conftest.file || test $am_try -eq 2; then
3747 break
3748 fi
3749 # Just in case.
3750 sleep 1
3751 am_has_slept=yes
3752 done
cristy73bd4a52010-10-05 11:24:23 +00003753 test "$2" = conftest.file
3754 )
3755then
3756 # Ok.
3757 :
3758else
cristy98dddb52010-11-04 00:30:15 +00003759 as_fn_error $? "newly created file is older than distributed files!
cristy73bd4a52010-10-05 11:24:23 +00003760Check your system clock" "$LINENO" 5
3761fi
3762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3763$as_echo "yes" >&6; }
cristyc0890a62012-07-19 00:18:20 +00003764# If we didn't sleep, we still need to ensure time stamps of config.status and
3765# generated files are strictly newer.
3766am_sleep_pid=
3767if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3768 ( sleep 1 ) &
3769 am_sleep_pid=$!
3770fi
cristy73bd4a52010-10-05 11:24:23 +00003771
cristyc0890a62012-07-19 00:18:20 +00003772rm -f conftest.file
3773
3774
cristy58d34aa2013-01-24 15:11:54 +00003775am__api_version='1.13'
cristy73bd4a52010-10-05 11:24:23 +00003776
3777# Find a good install program. We prefer a C program (faster),
3778# so one script is as good as another. But avoid the broken or
3779# incompatible versions:
3780# SysV /etc/install, /usr/sbin/install
3781# SunOS /usr/etc/install
3782# IRIX /sbin/install
3783# AIX /bin/install
3784# AmigaOS /C/install, which installs bootblocks on floppy discs
3785# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3786# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3787# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3788# OS/2's system install, which has a completely different semantic
3789# ./install, which can be erroneously created by make from ./install.sh.
3790# Reject install programs that cannot install multiple files.
3791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3792$as_echo_n "checking for a BSD-compatible install... " >&6; }
3793if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003794if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003795 $as_echo_n "(cached) " >&6
3796else
3797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3798for as_dir in $PATH
3799do
3800 IFS=$as_save_IFS
3801 test -z "$as_dir" && as_dir=.
3802 # Account for people who put trailing slashes in PATH elements.
3803case $as_dir/ in #((
3804 ./ | .// | /[cC]/* | \
3805 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3806 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3807 /usr/ucb/* ) ;;
3808 *)
3809 # OSF1 and SCO ODT 3.0 have their own names for install.
3810 # Don't use installbsd from OSF since it installs stuff as root
3811 # by default.
3812 for ac_prog in ginstall scoinst install; do
3813 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003814 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003815 if test $ac_prog = install &&
3816 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3817 # AIX install. It has an incompatible calling convention.
3818 :
3819 elif test $ac_prog = install &&
3820 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3821 # program-specific install script used by HP pwplus--don't use.
3822 :
3823 else
3824 rm -rf conftest.one conftest.two conftest.dir
3825 echo one > conftest.one
3826 echo two > conftest.two
3827 mkdir conftest.dir
3828 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3829 test -s conftest.one && test -s conftest.two &&
3830 test -s conftest.dir/conftest.one &&
3831 test -s conftest.dir/conftest.two
3832 then
3833 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3834 break 3
3835 fi
3836 fi
3837 fi
3838 done
3839 done
3840 ;;
3841esac
3842
3843 done
3844IFS=$as_save_IFS
3845
3846rm -rf conftest.one conftest.two conftest.dir
3847
3848fi
3849 if test "${ac_cv_path_install+set}" = set; then
3850 INSTALL=$ac_cv_path_install
3851 else
3852 # As a last resort, use the slow shell script. Don't cache a
3853 # value for INSTALL within a source directory, because that will
3854 # break other packages using the cache if that directory is
3855 # removed, or if the value is a relative name.
3856 INSTALL=$ac_install_sh
3857 fi
3858fi
3859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3860$as_echo "$INSTALL" >&6; }
3861
3862# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3863# It thinks the first close brace ends the variable substitution.
3864test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3865
3866test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3867
3868test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3869
3870test "$program_prefix" != NONE &&
3871 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3872# Use a double $ so make ignores it.
3873test "$program_suffix" != NONE &&
3874 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3875# Double any \ or $.
3876# By default was `s,x,x', remove it if useless.
3877ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3878program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3879
3880# expand $ac_aux_dir to an absolute path
3881am_aux_dir=`cd $ac_aux_dir && pwd`
3882
3883if test x"${MISSING+set}" != xset; then
3884 case $am_aux_dir in
3885 *\ * | *\ *)
3886 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3887 *)
3888 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3889 esac
3890fi
3891# Use eval to expand $SHELL
cristy58d34aa2013-01-24 15:11:54 +00003892if eval "$MISSING --is-lightweight"; then
3893 am_missing_run="$MISSING "
cristy73bd4a52010-10-05 11:24:23 +00003894else
3895 am_missing_run=
cristyc0890a62012-07-19 00:18:20 +00003896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3897$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
cristy73bd4a52010-10-05 11:24:23 +00003898fi
3899
3900if test x"${install_sh}" != xset; then
3901 case $am_aux_dir in
3902 *\ * | *\ *)
3903 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3904 *)
3905 install_sh="\${SHELL} $am_aux_dir/install-sh"
3906 esac
3907fi
3908
cristyc0890a62012-07-19 00:18:20 +00003909# Installed binaries are usually stripped using 'strip' when the user
3910# run "make install-strip". However 'strip' might not be the right
cristy73bd4a52010-10-05 11:24:23 +00003911# tool to use in cross-compilation environments, therefore Automake
cristyc0890a62012-07-19 00:18:20 +00003912# will honor the 'STRIP' environment variable to overrule this program.
cristy73bd4a52010-10-05 11:24:23 +00003913if test "$cross_compiling" != no; then
3914 if test -n "$ac_tool_prefix"; then
3915 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3916set dummy ${ac_tool_prefix}strip; ac_word=$2
3917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3918$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003919if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003920 $as_echo_n "(cached) " >&6
3921else
3922 if test -n "$STRIP"; then
3923 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3924else
3925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3926for as_dir in $PATH
3927do
3928 IFS=$as_save_IFS
3929 test -z "$as_dir" && as_dir=.
3930 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003932 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3934 break 2
3935 fi
3936done
3937 done
3938IFS=$as_save_IFS
3939
3940fi
3941fi
3942STRIP=$ac_cv_prog_STRIP
3943if test -n "$STRIP"; then
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3945$as_echo "$STRIP" >&6; }
3946else
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3948$as_echo "no" >&6; }
3949fi
3950
3951
3952fi
3953if test -z "$ac_cv_prog_STRIP"; then
3954 ac_ct_STRIP=$STRIP
3955 # Extract the first word of "strip", so it can be a program name with args.
3956set dummy strip; ac_word=$2
3957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3958$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003959if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003960 $as_echo_n "(cached) " >&6
3961else
3962 if test -n "$ac_ct_STRIP"; then
3963 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3964else
3965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3966for as_dir in $PATH
3967do
3968 IFS=$as_save_IFS
3969 test -z "$as_dir" && as_dir=.
3970 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003972 ac_cv_prog_ac_ct_STRIP="strip"
3973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3974 break 2
3975 fi
3976done
3977 done
3978IFS=$as_save_IFS
3979
3980fi
3981fi
3982ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3983if test -n "$ac_ct_STRIP"; then
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3985$as_echo "$ac_ct_STRIP" >&6; }
3986else
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3988$as_echo "no" >&6; }
3989fi
3990
3991 if test "x$ac_ct_STRIP" = x; then
3992 STRIP=":"
3993 else
3994 case $cross_compiling:$ac_tool_warned in
3995yes:)
3996{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3997$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3998ac_tool_warned=yes ;;
3999esac
4000 STRIP=$ac_ct_STRIP
4001 fi
4002else
4003 STRIP="$ac_cv_prog_STRIP"
4004fi
4005
4006fi
4007INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4008
4009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4010$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4011if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00004012 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004013 $as_echo_n "(cached) " >&6
4014else
4015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4016for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4017do
4018 IFS=$as_save_IFS
4019 test -z "$as_dir" && as_dir=.
4020 for ac_prog in mkdir gmkdir; do
4021 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004022 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
cristy73bd4a52010-10-05 11:24:23 +00004023 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4024 'mkdir (GNU coreutils) '* | \
4025 'mkdir (coreutils) '* | \
4026 'mkdir (fileutils) '4.1*)
4027 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4028 break 3;;
4029 esac
4030 done
4031 done
4032 done
4033IFS=$as_save_IFS
4034
4035fi
4036
4037 test -d ./--version && rmdir ./--version
4038 if test "${ac_cv_path_mkdir+set}" = set; then
4039 MKDIR_P="$ac_cv_path_mkdir -p"
4040 else
4041 # As a last resort, use the slow shell script. Don't cache a
4042 # value for MKDIR_P within a source directory, because that will
4043 # break other packages using the cache if that directory is
4044 # removed, or if the value is a relative name.
4045 MKDIR_P="$ac_install_sh -d"
4046 fi
4047fi
4048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4049$as_echo "$MKDIR_P" >&6; }
4050
cristy73bd4a52010-10-05 11:24:23 +00004051for ac_prog in gawk mawk nawk awk
4052do
4053 # Extract the first word of "$ac_prog", so it can be a program name with args.
4054set dummy $ac_prog; ac_word=$2
4055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4056$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004057if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004058 $as_echo_n "(cached) " >&6
4059else
4060 if test -n "$AWK"; then
4061 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4062else
4063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4064for as_dir in $PATH
4065do
4066 IFS=$as_save_IFS
4067 test -z "$as_dir" && as_dir=.
4068 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00004070 ac_cv_prog_AWK="$ac_prog"
4071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4072 break 2
4073 fi
4074done
4075 done
4076IFS=$as_save_IFS
4077
4078fi
4079fi
4080AWK=$ac_cv_prog_AWK
4081if test -n "$AWK"; then
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4083$as_echo "$AWK" >&6; }
4084else
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4086$as_echo "no" >&6; }
4087fi
4088
4089
4090 test -n "$AWK" && break
4091done
4092
4093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4094$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4095set x ${MAKE-make}
4096ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00004097if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004098 $as_echo_n "(cached) " >&6
4099else
4100 cat >conftest.make <<\_ACEOF
4101SHELL = /bin/sh
4102all:
4103 @echo '@@@%%%=$(MAKE)=@@@%%%'
4104_ACEOF
cristy98dddb52010-11-04 00:30:15 +00004105# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00004106case `${MAKE-make} -f conftest.make 2>/dev/null` in
4107 *@@@%%%=?*=@@@%%%*)
4108 eval ac_cv_prog_make_${ac_make}_set=yes;;
4109 *)
4110 eval ac_cv_prog_make_${ac_make}_set=no;;
4111esac
4112rm -f conftest.make
4113fi
4114if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4116$as_echo "yes" >&6; }
4117 SET_MAKE=
4118else
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4120$as_echo "no" >&6; }
4121 SET_MAKE="MAKE=${MAKE-make}"
4122fi
4123
4124rm -rf .tst 2>/dev/null
4125mkdir .tst 2>/dev/null
4126if test -d .tst; then
4127 am__leading_dot=.
4128else
4129 am__leading_dot=_
4130fi
4131rmdir .tst 2>/dev/null
4132
cristya448bd22011-10-14 12:38:13 +00004133# Check whether --enable-silent-rules was given.
4134if test "${enable_silent_rules+set}" = set; then :
4135 enableval=$enable_silent_rules;
4136fi
4137
cristyc0890a62012-07-19 00:18:20 +00004138case $enable_silent_rules in # (((
4139 yes) AM_DEFAULT_VERBOSITY=0;;
4140 no) AM_DEFAULT_VERBOSITY=1;;
4141 *) AM_DEFAULT_VERBOSITY=1;;
cristya448bd22011-10-14 12:38:13 +00004142esac
cristyc3fb77b2012-02-06 01:49:41 +00004143am_make=${MAKE-make}
4144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4145$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4146if ${am_cv_make_support_nested_variables+:} false; then :
4147 $as_echo_n "(cached) " >&6
4148else
4149 if $as_echo 'TRUE=$(BAR$(V))
4150BAR0=false
4151BAR1=true
4152V=1
4153am__doit:
4154 @$(TRUE)
4155.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4156 am_cv_make_support_nested_variables=yes
4157else
4158 am_cv_make_support_nested_variables=no
4159fi
4160fi
4161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4162$as_echo "$am_cv_make_support_nested_variables" >&6; }
4163if test $am_cv_make_support_nested_variables = yes; then
4164 AM_V='$(V)'
4165 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4166else
4167 AM_V=$AM_DEFAULT_VERBOSITY
4168 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4169fi
cristya448bd22011-10-14 12:38:13 +00004170AM_BACKSLASH='\'
4171
cristy73bd4a52010-10-05 11:24:23 +00004172if test "`cd $srcdir && pwd`" != "`pwd`"; then
4173 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4174 # is not polluted with repeated "-I."
4175 am__isrc=' -I$(srcdir)'
4176 # test to see if srcdir already configured
4177 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00004178 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00004179 fi
4180fi
4181
4182# test whether we have cygpath
4183if test -z "$CYGPATH_W"; then
4184 if (cygpath --version) >/dev/null 2>/dev/null; then
4185 CYGPATH_W='cygpath -w'
4186 else
4187 CYGPATH_W=echo
4188 fi
4189fi
4190
4191
4192# Define the identity of the package.
cristy09b53e12011-10-14 12:47:22 +00004193 PACKAGE='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +00004194 VERSION='7.0.0-0'
cristy73bd4a52010-10-05 11:24:23 +00004195
4196
cristya448bd22011-10-14 12:38:13 +00004197cat >>confdefs.h <<_ACEOF
4198#define PACKAGE "$PACKAGE"
4199_ACEOF
4200
4201
4202cat >>confdefs.h <<_ACEOF
4203#define VERSION "$VERSION"
4204_ACEOF
4205
cristy73bd4a52010-10-05 11:24:23 +00004206# Some tools Automake needs.
4207
4208ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4209
4210
4211AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4212
4213
4214AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4215
4216
4217AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4218
4219
4220MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4221
cristyc0890a62012-07-19 00:18:20 +00004222# For better backward compatibility. To be removed once Automake 1.9.x
4223# dies out for good. For more background, see:
4224# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4225# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4226mkdir_p='$(MKDIR_P)'
4227
cristy73bd4a52010-10-05 11:24:23 +00004228# We need awk for the "check" target. The system "awk" is bad on
4229# some platforms.
cristyc3fb77b2012-02-06 01:49:41 +00004230# Always define AMTAR for backward compatibility. Yes, it's still used
4231# in the wild :-( We should find a proper way to deprecate it ...
4232AMTAR='$${TAR-tar}'
cristy73bd4a52010-10-05 11:24:23 +00004233
cristye69bdbe2013-05-03 21:40:44 +00004234
4235# We'll loop over all known methods to create a tar archive until one works.
4236_am_tools='gnutar pax cpio none'
4237
cristyc3fb77b2012-02-06 01:49:41 +00004238am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
cristy73bd4a52010-10-05 11:24:23 +00004239
4240
4241
4242
4243
cristy3ed852e2009-09-05 21:47:34 +00004244
cristye69bdbe2013-05-03 21:40:44 +00004245
cristy3ed852e2009-09-05 21:47:34 +00004246# Enable support for silent build rules
cristy73bd4a52010-10-05 11:24:23 +00004247# Check whether --enable-silent-rules was given.
4248if test "${enable_silent_rules+set}" = set; then :
4249 enableval=$enable_silent_rules;
4250fi
4251
cristyc0890a62012-07-19 00:18:20 +00004252case $enable_silent_rules in # (((
4253 yes) AM_DEFAULT_VERBOSITY=0;;
4254 no) AM_DEFAULT_VERBOSITY=1;;
4255 *) AM_DEFAULT_VERBOSITY=0;;
cristy73bd4a52010-10-05 11:24:23 +00004256esac
cristyc3fb77b2012-02-06 01:49:41 +00004257am_make=${MAKE-make}
4258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4259$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4260if ${am_cv_make_support_nested_variables+:} false; then :
4261 $as_echo_n "(cached) " >&6
4262else
4263 if $as_echo 'TRUE=$(BAR$(V))
4264BAR0=false
4265BAR1=true
4266V=1
4267am__doit:
4268 @$(TRUE)
4269.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4270 am_cv_make_support_nested_variables=yes
4271else
4272 am_cv_make_support_nested_variables=no
4273fi
4274fi
4275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4276$as_echo "$am_cv_make_support_nested_variables" >&6; }
4277if test $am_cv_make_support_nested_variables = yes; then
4278 AM_V='$(V)'
4279 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4280else
4281 AM_V=$AM_DEFAULT_VERBOSITY
4282 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4283fi
cristy73bd4a52010-10-05 11:24:23 +00004284AM_BACKSLASH='\'
4285
cristy3ed852e2009-09-05 21:47:34 +00004286
cristy5ed9c6e2013-07-14 21:20:31 +00004287# versionning of library
cristy3ed852e2009-09-05 21:47:34 +00004288MAGICK_LIB_VERSION="0x"
4289if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4290 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4291fi
4292MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4293if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4294 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4295fi
4296MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4297if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4298 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4299fi
4300MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4301
4302
4303# Definition used to define MagickLibVersionText in version.h
4304MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4305
4306
4307# Definition used to define MagickLibVersionNumber in version.h
4308MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4309
4310
cristy5ed9c6e2013-07-14 21:20:31 +00004311MAGICKPP_LIB_VERSION="0x"
4312if test ${MAGICKPP_LIBRARY_CURRENT} -lt 10 ; then
4313 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4314fi
4315MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_CURRENT}
4316if test ${MAGICKPP_LIBRARY_AGE} -lt 10 ; then
4317 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4318fi
4319MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_AGE}
4320if test ${MAGICKPP_LIBRARY_REVISION} -lt 10 ; then
4321 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4322fi
4323MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_REVISION}
4324
4325
4326# Definition used to define MagickLibVersionText in version.h
4327MAGICKPP_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4328
4329
4330# Definition used to define MagickLibVersionNumber in version.h
4331MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4332
4333
4334
4335
cristy3ed852e2009-09-05 21:47:34 +00004336# Regenerate config.status if ChangeLog or version.sh is updated.
4337CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4338
4339
4340PERLMAINCC=$CC
4341
4342MAGICK_CFLAGS=''
4343MAGICK_CPPFLAGS=$CPPFLAGS_USER
4344MAGICK_PCFLAGS=$CPPFLAGS_USER
4345MAGICK_LDFLAGS=''
4346MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00004347MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00004348
4349#
4350# Evaluate shell variable equivalents to Makefile directory variables
4351#
4352if test "x$prefix" = xNONE; then
4353 prefix=$ac_default_prefix
4354fi
4355# Let make expand exec_prefix.
4356if test "x$exec_prefix" = xNONE; then
4357 exec_prefix='${prefix}'
4358fi
4359
4360#
4361eval "eval PREFIX_DIR=${prefix}"
4362
4363eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4364
4365eval "eval BIN_DIR=$bindir"
4366
4367eval "eval SBIN_DIR=$sbindir"
4368
4369eval "eval LIBEXEC_DIR=$libexecdir"
4370
4371eval "eval DATA_DIR=$datadir"
4372
cristy4e65ec22012-04-08 01:33:27 +00004373eval "eval DOC_DIR=$datadir/doc"
cristyd55889c2011-03-27 00:50:24 +00004374
cristy3ed852e2009-09-05 21:47:34 +00004375eval "eval SYSCONF_DIR=$sysconfdir"
4376
4377eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4378
4379eval "eval LOCALSTATE_DIR=$localstatedir"
4380
4381eval "eval LIB_DIR=$libdir"
4382
4383eval "eval INCLUDE_DIR=$includedir"
4384
4385eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4386
4387eval "eval INFO_DIR=$infodir"
4388
4389eval "eval MAN_DIR=$mandir"
4390
4391
4392# Get full paths to source and build directories
4393srcdirfull="`cd $srcdir && pwd`"
4394builddir="`pwd`"
4395
4396#
4397# Compute variables useful for running uninstalled software.
4398#
4399MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4400MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4401MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4402MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4403DIRSEP=':'
4404case "${build_os}" in
4405 mingw* )
4406 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4407 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4408 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4409 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4410 DIRSEP=';'
4411 ;;
4412esac
4413case "${host_os}" in
4414 mingw* )
4415 DIRSEP=';'
4416 ;;
4417esac
4418
4419
4420
4421
4422
4423
cristya0b81c32010-01-22 02:54:33 +00004424
4425#
4426# Enable OS features.
4427#
cristy73bd4a52010-10-05 11:24:23 +00004428DEPDIR="${am__leading_dot}deps"
4429
4430ac_config_commands="$ac_config_commands depfiles"
4431
4432
4433am_make=${MAKE-make}
4434cat > confinc << 'END'
4435am__doit:
4436 @echo this is the am__doit target
4437.PHONY: am__doit
4438END
4439# If we don't find an include directive, just comment out the code.
4440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4441$as_echo_n "checking for style of include used by $am_make... " >&6; }
4442am__include="#"
4443am__quote=
4444_am_result=none
4445# First try GNU make style include.
4446echo "include confinc" > confmf
cristyc0890a62012-07-19 00:18:20 +00004447# Ignore all kinds of additional output from 'make'.
cristy73bd4a52010-10-05 11:24:23 +00004448case `$am_make -s -f confmf 2> /dev/null` in #(
4449*the\ am__doit\ target*)
4450 am__include=include
4451 am__quote=
4452 _am_result=GNU
4453 ;;
4454esac
4455# Now try BSD make style include.
4456if test "$am__include" = "#"; then
4457 echo '.include "confinc"' > confmf
4458 case `$am_make -s -f confmf 2> /dev/null` in #(
4459 *the\ am__doit\ target*)
4460 am__include=.include
4461 am__quote="\""
4462 _am_result=BSD
4463 ;;
4464 esac
4465fi
4466
4467
4468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4469$as_echo "$_am_result" >&6; }
4470rm -f confinc confmf
4471
4472# Check whether --enable-dependency-tracking was given.
4473if test "${enable_dependency_tracking+set}" = set; then :
4474 enableval=$enable_dependency_tracking;
4475fi
4476
4477if test "x$enable_dependency_tracking" != xno; then
4478 am_depcomp="$ac_aux_dir/depcomp"
4479 AMDEPBACKSLASH='\'
cristy7247bba2012-02-05 16:37:27 +00004480 am__nodep='_no'
cristy73bd4a52010-10-05 11:24:23 +00004481fi
4482 if test "x$enable_dependency_tracking" != xno; then
4483 AMDEP_TRUE=
4484 AMDEP_FALSE='#'
4485else
4486 AMDEP_TRUE='#'
4487 AMDEP_FALSE=
4488fi
4489
4490
cristy3ed852e2009-09-05 21:47:34 +00004491ac_ext=c
4492ac_cpp='$CPP $CPPFLAGS'
4493ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4494ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4495ac_compiler_gnu=$ac_cv_c_compiler_gnu
4496if test -n "$ac_tool_prefix"; then
4497 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4498set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004500$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004501if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004502 $as_echo_n "(cached) " >&6
4503else
4504 if test -n "$CC"; then
4505 ac_cv_prog_CC="$CC" # Let the user override the test.
4506else
4507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4508for as_dir in $PATH
4509do
4510 IFS=$as_save_IFS
4511 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004512 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004514 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004516 break 2
4517 fi
4518done
cristy8b350f62009-11-15 23:12:43 +00004519 done
cristy3ed852e2009-09-05 21:47:34 +00004520IFS=$as_save_IFS
4521
4522fi
4523fi
4524CC=$ac_cv_prog_CC
4525if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004527$as_echo "$CC" >&6; }
4528else
cristy8b350f62009-11-15 23:12:43 +00004529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004530$as_echo "no" >&6; }
4531fi
4532
4533
4534fi
4535if test -z "$ac_cv_prog_CC"; then
4536 ac_ct_CC=$CC
4537 # Extract the first word of "gcc", so it can be a program name with args.
4538set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004540$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004541if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004542 $as_echo_n "(cached) " >&6
4543else
4544 if test -n "$ac_ct_CC"; then
4545 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4546else
4547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4548for as_dir in $PATH
4549do
4550 IFS=$as_save_IFS
4551 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004552 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004554 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004556 break 2
4557 fi
4558done
cristy8b350f62009-11-15 23:12:43 +00004559 done
cristy3ed852e2009-09-05 21:47:34 +00004560IFS=$as_save_IFS
4561
4562fi
4563fi
4564ac_ct_CC=$ac_cv_prog_ac_ct_CC
4565if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004567$as_echo "$ac_ct_CC" >&6; }
4568else
cristy8b350f62009-11-15 23:12:43 +00004569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004570$as_echo "no" >&6; }
4571fi
4572
4573 if test "x$ac_ct_CC" = x; then
4574 CC=""
4575 else
4576 case $cross_compiling:$ac_tool_warned in
4577yes:)
cristy8b350f62009-11-15 23:12:43 +00004578{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004579$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4580ac_tool_warned=yes ;;
4581esac
4582 CC=$ac_ct_CC
4583 fi
4584else
4585 CC="$ac_cv_prog_CC"
4586fi
4587
4588if test -z "$CC"; then
4589 if test -n "$ac_tool_prefix"; then
4590 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4591set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004593$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004594if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004595 $as_echo_n "(cached) " >&6
4596else
4597 if test -n "$CC"; then
4598 ac_cv_prog_CC="$CC" # Let the user override the test.
4599else
4600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4601for as_dir in $PATH
4602do
4603 IFS=$as_save_IFS
4604 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004605 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004607 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004609 break 2
4610 fi
4611done
cristy8b350f62009-11-15 23:12:43 +00004612 done
cristy3ed852e2009-09-05 21:47:34 +00004613IFS=$as_save_IFS
4614
4615fi
4616fi
4617CC=$ac_cv_prog_CC
4618if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004620$as_echo "$CC" >&6; }
4621else
cristy8b350f62009-11-15 23:12:43 +00004622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004623$as_echo "no" >&6; }
4624fi
4625
4626
4627 fi
4628fi
4629if test -z "$CC"; then
4630 # Extract the first word of "cc", so it can be a program name with args.
4631set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004633$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004634if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004635 $as_echo_n "(cached) " >&6
4636else
4637 if test -n "$CC"; then
4638 ac_cv_prog_CC="$CC" # Let the user override the test.
4639else
4640 ac_prog_rejected=no
4641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4642for as_dir in $PATH
4643do
4644 IFS=$as_save_IFS
4645 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004646 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004648 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4649 ac_prog_rejected=yes
4650 continue
4651 fi
4652 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004654 break 2
4655 fi
4656done
cristy8b350f62009-11-15 23:12:43 +00004657 done
cristy3ed852e2009-09-05 21:47:34 +00004658IFS=$as_save_IFS
4659
4660if test $ac_prog_rejected = yes; then
4661 # We found a bogon in the path, so make sure we never use it.
4662 set dummy $ac_cv_prog_CC
4663 shift
4664 if test $# != 0; then
4665 # We chose a different compiler from the bogus one.
4666 # However, it has the same basename, so the bogon will be chosen
4667 # first if we set CC to just the basename; use the full file name.
4668 shift
4669 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4670 fi
4671fi
4672fi
4673fi
4674CC=$ac_cv_prog_CC
4675if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004677$as_echo "$CC" >&6; }
4678else
cristy8b350f62009-11-15 23:12:43 +00004679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004680$as_echo "no" >&6; }
4681fi
4682
4683
4684fi
4685if test -z "$CC"; then
4686 if test -n "$ac_tool_prefix"; then
4687 for ac_prog in cl.exe
4688 do
4689 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4690set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004692$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004693if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004694 $as_echo_n "(cached) " >&6
4695else
4696 if test -n "$CC"; then
4697 ac_cv_prog_CC="$CC" # Let the user override the test.
4698else
4699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4700for as_dir in $PATH
4701do
4702 IFS=$as_save_IFS
4703 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004704 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004706 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004708 break 2
4709 fi
4710done
cristy8b350f62009-11-15 23:12:43 +00004711 done
cristy3ed852e2009-09-05 21:47:34 +00004712IFS=$as_save_IFS
4713
4714fi
4715fi
4716CC=$ac_cv_prog_CC
4717if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004719$as_echo "$CC" >&6; }
4720else
cristy8b350f62009-11-15 23:12:43 +00004721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004722$as_echo "no" >&6; }
4723fi
4724
4725
4726 test -n "$CC" && break
4727 done
4728fi
4729if test -z "$CC"; then
4730 ac_ct_CC=$CC
4731 for ac_prog in cl.exe
4732do
4733 # Extract the first word of "$ac_prog", so it can be a program name with args.
4734set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004736$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004737if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004738 $as_echo_n "(cached) " >&6
4739else
4740 if test -n "$ac_ct_CC"; then
4741 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4742else
4743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4744for as_dir in $PATH
4745do
4746 IFS=$as_save_IFS
4747 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004748 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004750 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004752 break 2
4753 fi
4754done
cristy8b350f62009-11-15 23:12:43 +00004755 done
cristy3ed852e2009-09-05 21:47:34 +00004756IFS=$as_save_IFS
4757
4758fi
4759fi
4760ac_ct_CC=$ac_cv_prog_ac_ct_CC
4761if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004763$as_echo "$ac_ct_CC" >&6; }
4764else
cristy8b350f62009-11-15 23:12:43 +00004765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004766$as_echo "no" >&6; }
4767fi
4768
4769
4770 test -n "$ac_ct_CC" && break
4771done
4772
4773 if test "x$ac_ct_CC" = x; then
4774 CC=""
4775 else
4776 case $cross_compiling:$ac_tool_warned in
4777yes:)
cristy8b350f62009-11-15 23:12:43 +00004778{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004779$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4780ac_tool_warned=yes ;;
4781esac
4782 CC=$ac_ct_CC
4783 fi
4784fi
4785
4786fi
4787
4788
cristy8b350f62009-11-15 23:12:43 +00004789test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004790$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004791as_fn_error $? "no acceptable C compiler found in \$PATH
4792See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004793
4794# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004795$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004796set X $ac_compile
4797ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004798for ac_option in --version -v -V -qversion; do
4799 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004800case "(($ac_try" in
4801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4802 *) ac_try_echo=$ac_try;;
4803esac
cristy8b350f62009-11-15 23:12:43 +00004804eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4805$as_echo "$ac_try_echo"; } >&5
4806 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004807 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004808 if test -s conftest.err; then
4809 sed '10a\
4810... rest of stderr output deleted ...
4811 10q' conftest.err >conftest.er1
4812 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004813 fi
cristycd4c5312009-11-22 01:19:08 +00004814 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4816 test $ac_status = 0; }
4817done
cristy3ed852e2009-09-05 21:47:34 +00004818
cristy8b350f62009-11-15 23:12:43 +00004819cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004820/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004821
cristy3ed852e2009-09-05 21:47:34 +00004822int
4823main ()
4824{
4825
4826 ;
4827 return 0;
4828}
4829_ACEOF
4830ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004831ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004832# Try to create an executable without -o first, disregard a.out.
4833# It will help us diagnose broken compilers, and finding out an intuition
4834# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4836$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004837ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4838
4839# The possible output files:
4840ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4841
4842ac_rmfiles=
4843for ac_file in $ac_files
4844do
4845 case $ac_file in
4846 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4847 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4848 esac
4849done
4850rm -f $ac_rmfiles
4851
cristy8b350f62009-11-15 23:12:43 +00004852if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004853case "(($ac_try" in
4854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4855 *) ac_try_echo=$ac_try;;
4856esac
cristy8b350f62009-11-15 23:12:43 +00004857eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4858$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004859 (eval "$ac_link_default") 2>&5
4860 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4862 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004863 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4864# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4865# in a Makefile. We should not override ac_cv_exeext if it was cached,
4866# so that the user can short-circuit this test for compilers unknown to
4867# Autoconf.
4868for ac_file in $ac_files ''
4869do
4870 test -f "$ac_file" || continue
4871 case $ac_file in
4872 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4873 ;;
4874 [ab].out )
4875 # We found the default executable, but exeext='' is most
4876 # certainly right.
4877 break;;
4878 *.* )
cristy8b350f62009-11-15 23:12:43 +00004879 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004880 then :; else
4881 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4882 fi
4883 # We set ac_cv_exeext here because the later test for it is not
4884 # safe: cross compilers may not add the suffix if given an `-o'
4885 # argument, so we may need to know it at that point already.
4886 # Even if this section looks crufty: it has the advantage of
4887 # actually working.
4888 break;;
4889 * )
4890 break;;
4891 esac
4892done
4893test "$ac_cv_exeext" = no && ac_cv_exeext=
4894
4895else
4896 ac_file=''
4897fi
cristy8b350f62009-11-15 23:12:43 +00004898if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4900$as_echo "no" >&6; }
4901$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004902sed 's/^/| /' conftest.$ac_ext >&5
4903
cristy8b350f62009-11-15 23:12:43 +00004904{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004905$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004906as_fn_error 77 "C compiler cannot create executables
4907See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004908else
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4910$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004911fi
cristycd4c5312009-11-22 01:19:08 +00004912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4913$as_echo_n "checking for C compiler default output file name... " >&6; }
4914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4915$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004916ac_exeext=$ac_cv_exeext
4917
cristycd4c5312009-11-22 01:19:08 +00004918rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004919ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004921$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004922if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004923case "(($ac_try" in
4924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4925 *) ac_try_echo=$ac_try;;
4926esac
cristy8b350f62009-11-15 23:12:43 +00004927eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4928$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004929 (eval "$ac_link") 2>&5
4930 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4932 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004933 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4934# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4935# work properly (i.e., refer to `conftest.exe'), while it won't with
4936# `rm'.
4937for ac_file in conftest.exe conftest conftest.*; do
4938 test -f "$ac_file" || continue
4939 case $ac_file in
4940 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4941 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4942 break;;
4943 * ) break;;
4944 esac
4945done
4946else
cristy8b350f62009-11-15 23:12:43 +00004947 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004948$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004949as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4950See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004951fi
cristycd4c5312009-11-22 01:19:08 +00004952rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004954$as_echo "$ac_cv_exeext" >&6; }
4955
4956rm -f conftest.$ac_ext
4957EXEEXT=$ac_cv_exeext
4958ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004959cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4960/* end confdefs.h. */
4961#include <stdio.h>
4962int
4963main ()
4964{
4965FILE *f = fopen ("conftest.out", "w");
4966 return ferror (f) || fclose (f) != 0;
4967
4968 ;
4969 return 0;
4970}
4971_ACEOF
4972ac_clean_files="$ac_clean_files conftest.out"
4973# Check that the compiler produces executables we can run. If not, either
4974# the compiler is broken, or we cross compile.
4975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4976$as_echo_n "checking whether we are cross compiling... " >&6; }
4977if test "$cross_compiling" != yes; then
4978 { { ac_try="$ac_link"
4979case "(($ac_try" in
4980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4981 *) ac_try_echo=$ac_try;;
4982esac
4983eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4984$as_echo "$ac_try_echo"; } >&5
4985 (eval "$ac_link") 2>&5
4986 ac_status=$?
4987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4988 test $ac_status = 0; }
4989 if { ac_try='./conftest$ac_cv_exeext'
4990 { { case "(($ac_try" in
4991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4992 *) ac_try_echo=$ac_try;;
4993esac
4994eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4995$as_echo "$ac_try_echo"; } >&5
4996 (eval "$ac_try") 2>&5
4997 ac_status=$?
4998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4999 test $ac_status = 0; }; }; then
5000 cross_compiling=no
5001 else
5002 if test "$cross_compiling" = maybe; then
5003 cross_compiling=yes
5004 else
5005 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5006$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005007as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00005008If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00005009See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00005010 fi
5011 fi
5012fi
5013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5014$as_echo "$cross_compiling" >&6; }
5015
5016rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5017ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00005018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00005019$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005020if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005021 $as_echo_n "(cached) " >&6
5022else
cristy8b350f62009-11-15 23:12:43 +00005023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005024/* end confdefs.h. */
5025
5026int
5027main ()
5028{
5029
5030 ;
5031 return 0;
5032}
5033_ACEOF
5034rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00005035if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00005036case "(($ac_try" in
5037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5038 *) ac_try_echo=$ac_try;;
5039esac
cristy8b350f62009-11-15 23:12:43 +00005040eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5041$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00005042 (eval "$ac_compile") 2>&5
5043 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00005044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5045 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00005046 for ac_file in conftest.o conftest.obj conftest.*; do
5047 test -f "$ac_file" || continue;
5048 case $ac_file in
5049 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5050 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5051 break;;
5052 esac
5053done
5054else
5055 $as_echo "$as_me: failed program was:" >&5
5056sed 's/^/| /' conftest.$ac_ext >&5
5057
cristy8b350f62009-11-15 23:12:43 +00005058{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005059$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005060as_fn_error $? "cannot compute suffix of object files: cannot compile
5061See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00005062fi
cristy3ed852e2009-09-05 21:47:34 +00005063rm -f conftest.$ac_cv_objext conftest.$ac_ext
5064fi
cristy8b350f62009-11-15 23:12:43 +00005065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00005066$as_echo "$ac_cv_objext" >&6; }
5067OBJEXT=$ac_cv_objext
5068ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00005069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00005070$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005071if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005072 $as_echo_n "(cached) " >&6
5073else
cristy8b350f62009-11-15 23:12:43 +00005074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005075/* end confdefs.h. */
5076
5077int
5078main ()
5079{
5080#ifndef __GNUC__
5081 choke me
5082#endif
5083
5084 ;
5085 return 0;
5086}
5087_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005088if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005089 ac_compiler_gnu=yes
5090else
cristy8b350f62009-11-15 23:12:43 +00005091 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00005092fi
cristy3ed852e2009-09-05 21:47:34 +00005093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5094ac_cv_c_compiler_gnu=$ac_compiler_gnu
5095
5096fi
cristy8b350f62009-11-15 23:12:43 +00005097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00005098$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5099if test $ac_compiler_gnu = yes; then
5100 GCC=yes
5101else
5102 GCC=
5103fi
5104ac_test_CFLAGS=${CFLAGS+set}
5105ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00005106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005107$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005108if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005109 $as_echo_n "(cached) " >&6
5110else
5111 ac_save_c_werror_flag=$ac_c_werror_flag
5112 ac_c_werror_flag=yes
5113 ac_cv_prog_cc_g=no
5114 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005116/* end confdefs.h. */
5117
5118int
5119main ()
5120{
5121
5122 ;
5123 return 0;
5124}
5125_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005126if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005127 ac_cv_prog_cc_g=yes
5128else
cristy8b350f62009-11-15 23:12:43 +00005129 CFLAGS=""
5130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005131/* end confdefs.h. */
5132
5133int
5134main ()
5135{
5136
5137 ;
5138 return 0;
5139}
5140_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005141if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005142
cristy8b350f62009-11-15 23:12:43 +00005143else
5144 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00005145 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005147/* end confdefs.h. */
5148
5149int
5150main ()
5151{
5152
5153 ;
5154 return 0;
5155}
5156_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005157if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005158 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00005159fi
cristy3ed852e2009-09-05 21:47:34 +00005160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5161fi
cristy3ed852e2009-09-05 21:47:34 +00005162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5163fi
cristy3ed852e2009-09-05 21:47:34 +00005164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5165 ac_c_werror_flag=$ac_save_c_werror_flag
5166fi
cristy8b350f62009-11-15 23:12:43 +00005167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005168$as_echo "$ac_cv_prog_cc_g" >&6; }
5169if test "$ac_test_CFLAGS" = set; then
5170 CFLAGS=$ac_save_CFLAGS
5171elif test $ac_cv_prog_cc_g = yes; then
5172 if test "$GCC" = yes; then
5173 CFLAGS="-g -O2"
5174 else
5175 CFLAGS="-g"
5176 fi
5177else
5178 if test "$GCC" = yes; then
5179 CFLAGS="-O2"
5180 else
5181 CFLAGS=
5182 fi
5183fi
cristy8b350f62009-11-15 23:12:43 +00005184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005185$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005186if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005187 $as_echo_n "(cached) " >&6
5188else
5189 ac_cv_prog_cc_c89=no
5190ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00005191cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005192/* end confdefs.h. */
5193#include <stdarg.h>
5194#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00005195struct stat;
cristy3ed852e2009-09-05 21:47:34 +00005196/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5197struct buf { int x; };
5198FILE * (*rcsopen) (struct buf *, struct stat *, int);
5199static char *e (p, i)
5200 char **p;
5201 int i;
5202{
5203 return p[i];
5204}
5205static char *f (char * (*g) (char **, int), char **p, ...)
5206{
5207 char *s;
5208 va_list v;
5209 va_start (v,p);
5210 s = g (p, va_arg (v,int));
5211 va_end (v);
5212 return s;
5213}
5214
5215/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5216 function prototypes and stuff, but not '\xHH' hex character constants.
5217 These don't provoke an error unfortunately, instead are silently treated
5218 as 'x'. The following induces an error, until -std is added to get
5219 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5220 array size at least. It's necessary to write '\x00'==0 to get something
5221 that's true only with -std. */
5222int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5223
5224/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5225 inside strings and character constants. */
5226#define FOO(x) 'x'
5227int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5228
5229int test (int i, double x);
5230struct s1 {int (*f) (int a);};
5231struct s2 {int (*f) (double a);};
5232int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5233int argc;
5234char **argv;
5235int
5236main ()
5237{
5238return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5239 ;
5240 return 0;
5241}
5242_ACEOF
5243for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5244 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5245do
5246 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005247 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005248 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005249fi
cristy3ed852e2009-09-05 21:47:34 +00005250rm -f core conftest.err conftest.$ac_objext
5251 test "x$ac_cv_prog_cc_c89" != "xno" && break
5252done
5253rm -f conftest.$ac_ext
5254CC=$ac_save_CC
5255
5256fi
5257# AC_CACHE_VAL
5258case "x$ac_cv_prog_cc_c89" in
5259 x)
cristy8b350f62009-11-15 23:12:43 +00005260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005261$as_echo "none needed" >&6; } ;;
5262 xno)
cristy8b350f62009-11-15 23:12:43 +00005263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005264$as_echo "unsupported" >&6; } ;;
5265 *)
5266 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005268$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5269esac
cristy8b350f62009-11-15 23:12:43 +00005270if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005271
cristy8b350f62009-11-15 23:12:43 +00005272fi
cristy3ed852e2009-09-05 21:47:34 +00005273
5274ac_ext=c
5275ac_cpp='$CPP $CPPFLAGS'
5276ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5277ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5278ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005279
cristy73bd4a52010-10-05 11:24:23 +00005280depcc="$CC" am_compiler_list=
5281
5282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5283$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005284if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00005285 $as_echo_n "(cached) " >&6
5286else
5287 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5288 # We make a subdir and do the tests there. Otherwise we can end up
5289 # making bogus files that we don't know about and never remove. For
5290 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00005291 # making a dummy file named 'D' -- because '-MD' means "put the output
5292 # in D".
cristy7247bba2012-02-05 16:37:27 +00005293 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00005294 mkdir conftest.dir
5295 # Copy depcomp to subdir because otherwise we won't find it if we're
5296 # using a relative directory.
5297 cp "$am_depcomp" conftest.dir
5298 cd conftest.dir
5299 # We will build objects and dependencies in a subdirectory because
5300 # it helps to detect inapplicable dependency modes. For instance
5301 # both Tru64's cc and ICC support -MD to output dependencies as a
5302 # side effect of compilation, but ICC will put the dependencies in
5303 # the current directory while Tru64 will put them in the object
5304 # directory.
5305 mkdir sub
5306
5307 am_cv_CC_dependencies_compiler_type=none
5308 if test "$am_compiler_list" = ""; then
5309 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5310 fi
5311 am__universal=false
5312 case " $depcc " in #(
5313 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5314 esac
5315
5316 for depmode in $am_compiler_list; do
5317 # Setup a source with many dependencies, because some compilers
5318 # like to wrap large dependency lists on column 80 (with \), and
5319 # we should not choose a depcomp mode which is confused by this.
5320 #
5321 # We need to recreate these files for each test, as the compiler may
5322 # overwrite some of them when testing with obscure command lines.
5323 # This happens at least with the AIX C compiler.
5324 : > sub/conftest.c
5325 for i in 1 2 3 4 5 6; do
5326 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00005327 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5328 # Solaris 10 /bin/sh.
5329 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00005330 done
5331 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5332
cristyc0890a62012-07-19 00:18:20 +00005333 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00005334 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00005335 # handle '-M -o', and we need to detect this. Also, some Intel
5336 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00005337 am__obj=sub/conftest.${OBJEXT-o}
5338 am__minus_obj="-o $am__obj"
5339 case $depmode in
5340 gcc)
5341 # This depmode causes a compiler race in universal mode.
5342 test "$am__universal" = false || continue
5343 ;;
5344 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00005345 # After this tag, mechanisms are not by side-effect, so they'll
5346 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00005347 if test "x$enable_dependency_tracking" = xyes; then
5348 continue
5349 else
5350 break
5351 fi
5352 ;;
cristy7247bba2012-02-05 16:37:27 +00005353 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00005354 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00005355 # not run yet. These depmodes are late enough in the game, and
5356 # so weak that their functioning should not be impacted.
5357 am__obj=conftest.${OBJEXT-o}
5358 am__minus_obj=
5359 ;;
5360 none) break ;;
5361 esac
5362 if depmode=$depmode \
5363 source=sub/conftest.c object=$am__obj \
5364 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5365 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5366 >/dev/null 2>conftest.err &&
5367 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5368 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5369 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5370 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5371 # icc doesn't choke on unknown options, it will just issue warnings
5372 # or remarks (even with -Werror). So we grep stderr for any message
5373 # that says an option was ignored or not supported.
5374 # When given -MP, icc 7.0 and 7.1 complain thusly:
5375 # icc: Command line warning: ignoring option '-M'; no argument required
5376 # The diagnosis changed in icc 8.0:
5377 # icc: Command line remark: option '-MP' not supported
5378 if (grep 'ignoring option' conftest.err ||
5379 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5380 am_cv_CC_dependencies_compiler_type=$depmode
5381 break
5382 fi
5383 fi
5384 done
5385
5386 cd ..
5387 rm -rf conftest.dir
5388else
5389 am_cv_CC_dependencies_compiler_type=none
5390fi
5391
5392fi
5393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5394$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5395CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5396
5397 if
5398 test "x$enable_dependency_tracking" != xno \
5399 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5400 am__fastdepCC_TRUE=
5401 am__fastdepCC_FALSE='#'
5402else
5403 am__fastdepCC_TRUE='#'
5404 am__fastdepCC_FALSE=
5405fi
5406
5407
cristy3ed852e2009-09-05 21:47:34 +00005408
cristya0b81c32010-01-22 02:54:33 +00005409ac_ext=c
5410ac_cpp='$CPP $CPPFLAGS'
5411ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5412ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5413ac_compiler_gnu=$ac_cv_c_compiler_gnu
5414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5415$as_echo_n "checking how to run the C preprocessor... " >&6; }
5416# On Suns, sometimes $CPP names a directory.
5417if test -n "$CPP" && test -d "$CPP"; then
5418 CPP=
5419fi
5420if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005421 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005422 $as_echo_n "(cached) " >&6
5423else
5424 # Double quotes because CPP needs to be expanded
5425 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5426 do
5427 ac_preproc_ok=false
5428for ac_c_preproc_warn_flag in '' yes
5429do
5430 # Use a header file that comes with gcc, so configuring glibc
5431 # with a fresh cross-compiler works.
5432 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5433 # <limits.h> exists even on freestanding compilers.
5434 # On the NeXT, cc -E runs the code through the compiler's parser,
5435 # not just through cpp. "Syntax error" is here to catch this case.
5436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5437/* end confdefs.h. */
5438#ifdef __STDC__
5439# include <limits.h>
5440#else
5441# include <assert.h>
5442#endif
5443 Syntax error
5444_ACEOF
5445if ac_fn_c_try_cpp "$LINENO"; then :
5446
5447else
5448 # Broken: fails on valid input.
5449continue
5450fi
cristyda16f162011-02-19 23:52:17 +00005451rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005452
5453 # OK, works on sane cases. Now check whether nonexistent headers
5454 # can be detected and how.
5455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5456/* end confdefs.h. */
5457#include <ac_nonexistent.h>
5458_ACEOF
5459if ac_fn_c_try_cpp "$LINENO"; then :
5460 # Broken: success on invalid input.
5461continue
5462else
5463 # Passes both tests.
5464ac_preproc_ok=:
5465break
5466fi
cristyda16f162011-02-19 23:52:17 +00005467rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005468
5469done
5470# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005471rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005472if $ac_preproc_ok; then :
5473 break
5474fi
5475
5476 done
5477 ac_cv_prog_CPP=$CPP
5478
5479fi
5480 CPP=$ac_cv_prog_CPP
5481else
5482 ac_cv_prog_CPP=$CPP
5483fi
5484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5485$as_echo "$CPP" >&6; }
5486ac_preproc_ok=false
5487for ac_c_preproc_warn_flag in '' yes
5488do
5489 # Use a header file that comes with gcc, so configuring glibc
5490 # with a fresh cross-compiler works.
5491 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5492 # <limits.h> exists even on freestanding compilers.
5493 # On the NeXT, cc -E runs the code through the compiler's parser,
5494 # not just through cpp. "Syntax error" is here to catch this case.
5495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5496/* end confdefs.h. */
5497#ifdef __STDC__
5498# include <limits.h>
5499#else
5500# include <assert.h>
5501#endif
5502 Syntax error
5503_ACEOF
5504if ac_fn_c_try_cpp "$LINENO"; then :
5505
5506else
5507 # Broken: fails on valid input.
5508continue
5509fi
cristyda16f162011-02-19 23:52:17 +00005510rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005511
5512 # OK, works on sane cases. Now check whether nonexistent headers
5513 # can be detected and how.
5514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5515/* end confdefs.h. */
5516#include <ac_nonexistent.h>
5517_ACEOF
5518if ac_fn_c_try_cpp "$LINENO"; then :
5519 # Broken: success on invalid input.
5520continue
5521else
5522 # Passes both tests.
5523ac_preproc_ok=:
5524break
5525fi
cristyda16f162011-02-19 23:52:17 +00005526rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005527
5528done
5529# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005530rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005531if $ac_preproc_ok; then :
5532
5533else
5534 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5535$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005536as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5537See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005538fi
5539
5540ac_ext=c
5541ac_cpp='$CPP $CPPFLAGS'
5542ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5543ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5544ac_compiler_gnu=$ac_cv_c_compiler_gnu
5545
5546
5547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5548$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005549if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005550 $as_echo_n "(cached) " >&6
5551else
5552 if test -z "$GREP"; then
5553 ac_path_GREP_found=false
5554 # Loop through the user's path and test for each of PROGNAME-LIST
5555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5556for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5557do
5558 IFS=$as_save_IFS
5559 test -z "$as_dir" && as_dir=.
5560 for ac_prog in grep ggrep; do
5561 for ac_exec_ext in '' $ac_executable_extensions; do
5562 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005563 as_fn_executable_p "$ac_path_GREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005564# Check for GNU ac_path_GREP and select it if it is found.
5565 # Check for GNU $ac_path_GREP
5566case `"$ac_path_GREP" --version 2>&1` in
5567*GNU*)
5568 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5569*)
5570 ac_count=0
5571 $as_echo_n 0123456789 >"conftest.in"
5572 while :
5573 do
5574 cat "conftest.in" "conftest.in" >"conftest.tmp"
5575 mv "conftest.tmp" "conftest.in"
5576 cp "conftest.in" "conftest.nl"
5577 $as_echo 'GREP' >> "conftest.nl"
5578 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5579 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5580 as_fn_arith $ac_count + 1 && ac_count=$as_val
5581 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5582 # Best one so far, save it but keep looking for a better one
5583 ac_cv_path_GREP="$ac_path_GREP"
5584 ac_path_GREP_max=$ac_count
5585 fi
5586 # 10*(2^10) chars as input seems more than enough
5587 test $ac_count -gt 10 && break
5588 done
5589 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5590esac
5591
5592 $ac_path_GREP_found && break 3
5593 done
5594 done
5595 done
5596IFS=$as_save_IFS
5597 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005598 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005599 fi
5600else
5601 ac_cv_path_GREP=$GREP
5602fi
5603
5604fi
5605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5606$as_echo "$ac_cv_path_GREP" >&6; }
5607 GREP="$ac_cv_path_GREP"
5608
5609
5610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5611$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005612if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005613 $as_echo_n "(cached) " >&6
5614else
5615 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5616 then ac_cv_path_EGREP="$GREP -E"
5617 else
5618 if test -z "$EGREP"; then
5619 ac_path_EGREP_found=false
5620 # Loop through the user's path and test for each of PROGNAME-LIST
5621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5622for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5623do
5624 IFS=$as_save_IFS
5625 test -z "$as_dir" && as_dir=.
5626 for ac_prog in egrep; do
5627 for ac_exec_ext in '' $ac_executable_extensions; do
5628 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005629 as_fn_executable_p "$ac_path_EGREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005630# Check for GNU ac_path_EGREP and select it if it is found.
5631 # Check for GNU $ac_path_EGREP
5632case `"$ac_path_EGREP" --version 2>&1` in
5633*GNU*)
5634 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5635*)
5636 ac_count=0
5637 $as_echo_n 0123456789 >"conftest.in"
5638 while :
5639 do
5640 cat "conftest.in" "conftest.in" >"conftest.tmp"
5641 mv "conftest.tmp" "conftest.in"
5642 cp "conftest.in" "conftest.nl"
5643 $as_echo 'EGREP' >> "conftest.nl"
5644 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5645 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5646 as_fn_arith $ac_count + 1 && ac_count=$as_val
5647 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5648 # Best one so far, save it but keep looking for a better one
5649 ac_cv_path_EGREP="$ac_path_EGREP"
5650 ac_path_EGREP_max=$ac_count
5651 fi
5652 # 10*(2^10) chars as input seems more than enough
5653 test $ac_count -gt 10 && break
5654 done
5655 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5656esac
5657
5658 $ac_path_EGREP_found && break 3
5659 done
5660 done
5661 done
5662IFS=$as_save_IFS
5663 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005664 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005665 fi
5666else
5667 ac_cv_path_EGREP=$EGREP
5668fi
5669
5670 fi
5671fi
5672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5673$as_echo "$ac_cv_path_EGREP" >&6; }
5674 EGREP="$ac_cv_path_EGREP"
5675
5676
5677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5678$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005679if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005680 $as_echo_n "(cached) " >&6
5681else
5682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5683/* end confdefs.h. */
5684#include <stdlib.h>
5685#include <stdarg.h>
5686#include <string.h>
5687#include <float.h>
5688
5689int
5690main ()
5691{
5692
5693 ;
5694 return 0;
5695}
5696_ACEOF
5697if ac_fn_c_try_compile "$LINENO"; then :
5698 ac_cv_header_stdc=yes
5699else
5700 ac_cv_header_stdc=no
5701fi
5702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5703
5704if test $ac_cv_header_stdc = yes; then
5705 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5707/* end confdefs.h. */
5708#include <string.h>
5709
5710_ACEOF
5711if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5712 $EGREP "memchr" >/dev/null 2>&1; then :
5713
5714else
5715 ac_cv_header_stdc=no
5716fi
5717rm -f conftest*
5718
5719fi
5720
5721if test $ac_cv_header_stdc = yes; then
5722 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5724/* end confdefs.h. */
5725#include <stdlib.h>
5726
5727_ACEOF
5728if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5729 $EGREP "free" >/dev/null 2>&1; then :
5730
5731else
5732 ac_cv_header_stdc=no
5733fi
5734rm -f conftest*
5735
5736fi
5737
5738if test $ac_cv_header_stdc = yes; then
5739 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5740 if test "$cross_compiling" = yes; then :
5741 :
5742else
5743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5744/* end confdefs.h. */
5745#include <ctype.h>
5746#include <stdlib.h>
5747#if ((' ' & 0x0FF) == 0x020)
5748# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5749# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5750#else
5751# define ISLOWER(c) \
5752 (('a' <= (c) && (c) <= 'i') \
5753 || ('j' <= (c) && (c) <= 'r') \
5754 || ('s' <= (c) && (c) <= 'z'))
5755# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5756#endif
5757
5758#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5759int
5760main ()
5761{
5762 int i;
5763 for (i = 0; i < 256; i++)
5764 if (XOR (islower (i), ISLOWER (i))
5765 || toupper (i) != TOUPPER (i))
5766 return 2;
5767 return 0;
5768}
5769_ACEOF
5770if ac_fn_c_try_run "$LINENO"; then :
5771
5772else
5773 ac_cv_header_stdc=no
5774fi
5775rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5776 conftest.$ac_objext conftest.beam conftest.$ac_ext
5777fi
5778
5779fi
5780fi
5781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5782$as_echo "$ac_cv_header_stdc" >&6; }
5783if test $ac_cv_header_stdc = yes; then
5784
5785$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5786
5787fi
5788
5789# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5790for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5791 inttypes.h stdint.h unistd.h
5792do :
5793 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5794ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5795"
cristy98dddb52010-11-04 00:30:15 +00005796if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005797 cat >>confdefs.h <<_ACEOF
5798#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5799_ACEOF
5800
5801fi
5802
5803done
5804
5805
5806
5807 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 +00005808if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00005809 MINIX=yes
5810else
5811 MINIX=
5812fi
5813
5814
5815 if test "$MINIX" = yes; then
5816
5817$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5818
5819
5820$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5821
5822
5823$as_echo "#define _MINIX 1" >>confdefs.h
5824
5825 fi
5826
5827
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5829$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005830if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005831 $as_echo_n "(cached) " >&6
5832else
5833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5834/* end confdefs.h. */
5835
cristy14fefe52012-05-21 00:59:18 +00005836# define __EXTENSIONS__ 1
5837 $ac_includes_default
cristya0b81c32010-01-22 02:54:33 +00005838int
5839main ()
5840{
5841
5842 ;
5843 return 0;
5844}
5845_ACEOF
5846if ac_fn_c_try_compile "$LINENO"; then :
5847 ac_cv_safe_to_define___extensions__=yes
5848else
5849 ac_cv_safe_to_define___extensions__=no
5850fi
5851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5852fi
5853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5854$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5855 test $ac_cv_safe_to_define___extensions__ = yes &&
5856 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5857
5858 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5859
5860 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5861
5862 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5863
5864 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5865
5866
5867
5868# Check for programs
5869ac_ext=c
5870ac_cpp='$CPP $CPPFLAGS'
5871ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5872ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5873ac_compiler_gnu=$ac_cv_c_compiler_gnu
5874if test -n "$ac_tool_prefix"; then
5875 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5876set dummy ${ac_tool_prefix}gcc; ac_word=$2
5877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5878$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005879if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005880 $as_echo_n "(cached) " >&6
5881else
5882 if test -n "$CC"; then
5883 ac_cv_prog_CC="$CC" # Let the user override the test.
5884else
5885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5886for as_dir in $PATH
5887do
5888 IFS=$as_save_IFS
5889 test -z "$as_dir" && as_dir=.
5890 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005892 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5894 break 2
5895 fi
5896done
5897 done
5898IFS=$as_save_IFS
5899
5900fi
5901fi
5902CC=$ac_cv_prog_CC
5903if test -n "$CC"; then
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5905$as_echo "$CC" >&6; }
5906else
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5908$as_echo "no" >&6; }
5909fi
5910
5911
5912fi
5913if test -z "$ac_cv_prog_CC"; then
5914 ac_ct_CC=$CC
5915 # Extract the first word of "gcc", so it can be a program name with args.
5916set dummy gcc; ac_word=$2
5917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5918$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005919if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005920 $as_echo_n "(cached) " >&6
5921else
5922 if test -n "$ac_ct_CC"; then
5923 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5924else
5925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5926for as_dir in $PATH
5927do
5928 IFS=$as_save_IFS
5929 test -z "$as_dir" && as_dir=.
5930 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005932 ac_cv_prog_ac_ct_CC="gcc"
5933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5934 break 2
5935 fi
5936done
5937 done
5938IFS=$as_save_IFS
5939
5940fi
5941fi
5942ac_ct_CC=$ac_cv_prog_ac_ct_CC
5943if test -n "$ac_ct_CC"; then
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5945$as_echo "$ac_ct_CC" >&6; }
5946else
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5948$as_echo "no" >&6; }
5949fi
5950
5951 if test "x$ac_ct_CC" = x; then
5952 CC=""
5953 else
5954 case $cross_compiling:$ac_tool_warned in
5955yes:)
5956{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5957$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5958ac_tool_warned=yes ;;
5959esac
5960 CC=$ac_ct_CC
5961 fi
5962else
5963 CC="$ac_cv_prog_CC"
5964fi
5965
5966if test -z "$CC"; then
5967 if test -n "$ac_tool_prefix"; then
5968 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5969set dummy ${ac_tool_prefix}cc; ac_word=$2
5970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5971$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005972if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005973 $as_echo_n "(cached) " >&6
5974else
5975 if test -n "$CC"; then
5976 ac_cv_prog_CC="$CC" # Let the user override the test.
5977else
5978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5979for as_dir in $PATH
5980do
5981 IFS=$as_save_IFS
5982 test -z "$as_dir" && as_dir=.
5983 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005985 ac_cv_prog_CC="${ac_tool_prefix}cc"
5986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5987 break 2
5988 fi
5989done
5990 done
5991IFS=$as_save_IFS
5992
5993fi
5994fi
5995CC=$ac_cv_prog_CC
5996if test -n "$CC"; then
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5998$as_echo "$CC" >&6; }
5999else
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6001$as_echo "no" >&6; }
6002fi
6003
6004
6005 fi
6006fi
6007if test -z "$CC"; then
6008 # Extract the first word of "cc", so it can be a program name with args.
6009set dummy cc; ac_word=$2
6010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6011$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006012if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006013 $as_echo_n "(cached) " >&6
6014else
6015 if test -n "$CC"; then
6016 ac_cv_prog_CC="$CC" # Let the user override the test.
6017else
6018 ac_prog_rejected=no
6019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6020for as_dir in $PATH
6021do
6022 IFS=$as_save_IFS
6023 test -z "$as_dir" && as_dir=.
6024 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006026 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6027 ac_prog_rejected=yes
6028 continue
6029 fi
6030 ac_cv_prog_CC="cc"
6031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6032 break 2
6033 fi
6034done
6035 done
6036IFS=$as_save_IFS
6037
6038if test $ac_prog_rejected = yes; then
6039 # We found a bogon in the path, so make sure we never use it.
6040 set dummy $ac_cv_prog_CC
6041 shift
6042 if test $# != 0; then
6043 # We chose a different compiler from the bogus one.
6044 # However, it has the same basename, so the bogon will be chosen
6045 # first if we set CC to just the basename; use the full file name.
6046 shift
6047 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6048 fi
6049fi
6050fi
6051fi
6052CC=$ac_cv_prog_CC
6053if test -n "$CC"; then
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6055$as_echo "$CC" >&6; }
6056else
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6058$as_echo "no" >&6; }
6059fi
6060
6061
6062fi
6063if test -z "$CC"; then
6064 if test -n "$ac_tool_prefix"; then
6065 for ac_prog in cl.exe
6066 do
6067 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6068set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6070$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006071if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006072 $as_echo_n "(cached) " >&6
6073else
6074 if test -n "$CC"; then
6075 ac_cv_prog_CC="$CC" # Let the user override the test.
6076else
6077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6078for as_dir in $PATH
6079do
6080 IFS=$as_save_IFS
6081 test -z "$as_dir" && as_dir=.
6082 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006084 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6086 break 2
6087 fi
6088done
6089 done
6090IFS=$as_save_IFS
6091
6092fi
6093fi
6094CC=$ac_cv_prog_CC
6095if test -n "$CC"; then
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6097$as_echo "$CC" >&6; }
6098else
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6100$as_echo "no" >&6; }
6101fi
6102
6103
6104 test -n "$CC" && break
6105 done
6106fi
6107if test -z "$CC"; then
6108 ac_ct_CC=$CC
6109 for ac_prog in cl.exe
6110do
6111 # Extract the first word of "$ac_prog", so it can be a program name with args.
6112set dummy $ac_prog; ac_word=$2
6113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6114$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006115if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006116 $as_echo_n "(cached) " >&6
6117else
6118 if test -n "$ac_ct_CC"; then
6119 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6120else
6121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6122for as_dir in $PATH
6123do
6124 IFS=$as_save_IFS
6125 test -z "$as_dir" && as_dir=.
6126 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006128 ac_cv_prog_ac_ct_CC="$ac_prog"
6129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6130 break 2
6131 fi
6132done
6133 done
6134IFS=$as_save_IFS
6135
6136fi
6137fi
6138ac_ct_CC=$ac_cv_prog_ac_ct_CC
6139if test -n "$ac_ct_CC"; then
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6141$as_echo "$ac_ct_CC" >&6; }
6142else
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6144$as_echo "no" >&6; }
6145fi
6146
6147
6148 test -n "$ac_ct_CC" && break
6149done
6150
6151 if test "x$ac_ct_CC" = x; then
6152 CC=""
6153 else
6154 case $cross_compiling:$ac_tool_warned in
6155yes:)
6156{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6157$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6158ac_tool_warned=yes ;;
6159esac
6160 CC=$ac_ct_CC
6161 fi
6162fi
6163
6164fi
6165
6166
6167test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6168$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00006169as_fn_error $? "no acceptable C compiler found in \$PATH
6170See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00006171
6172# Provide some information about the compiler.
6173$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6174set X $ac_compile
6175ac_compiler=$2
6176for ac_option in --version -v -V -qversion; do
6177 { { ac_try="$ac_compiler $ac_option >&5"
6178case "(($ac_try" in
6179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6180 *) ac_try_echo=$ac_try;;
6181esac
6182eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6183$as_echo "$ac_try_echo"; } >&5
6184 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6185 ac_status=$?
6186 if test -s conftest.err; then
6187 sed '10a\
6188... rest of stderr output deleted ...
6189 10q' conftest.err >conftest.er1
6190 cat conftest.er1 >&5
6191 fi
6192 rm -f conftest.er1 conftest.err
6193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6194 test $ac_status = 0; }
6195done
6196
6197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6198$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006199if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006200 $as_echo_n "(cached) " >&6
6201else
6202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6203/* end confdefs.h. */
6204
6205int
6206main ()
6207{
6208#ifndef __GNUC__
6209 choke me
6210#endif
6211
6212 ;
6213 return 0;
6214}
6215_ACEOF
6216if ac_fn_c_try_compile "$LINENO"; then :
6217 ac_compiler_gnu=yes
6218else
6219 ac_compiler_gnu=no
6220fi
6221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6222ac_cv_c_compiler_gnu=$ac_compiler_gnu
6223
6224fi
6225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6226$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6227if test $ac_compiler_gnu = yes; then
6228 GCC=yes
6229else
6230 GCC=
6231fi
6232ac_test_CFLAGS=${CFLAGS+set}
6233ac_save_CFLAGS=$CFLAGS
6234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6235$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006236if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006237 $as_echo_n "(cached) " >&6
6238else
6239 ac_save_c_werror_flag=$ac_c_werror_flag
6240 ac_c_werror_flag=yes
6241 ac_cv_prog_cc_g=no
6242 CFLAGS="-g"
6243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6244/* end confdefs.h. */
6245
6246int
6247main ()
6248{
6249
6250 ;
6251 return 0;
6252}
6253_ACEOF
6254if ac_fn_c_try_compile "$LINENO"; then :
6255 ac_cv_prog_cc_g=yes
6256else
6257 CFLAGS=""
6258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6259/* end confdefs.h. */
6260
6261int
6262main ()
6263{
6264
6265 ;
6266 return 0;
6267}
6268_ACEOF
6269if ac_fn_c_try_compile "$LINENO"; then :
6270
6271else
6272 ac_c_werror_flag=$ac_save_c_werror_flag
6273 CFLAGS="-g"
6274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6275/* end confdefs.h. */
6276
6277int
6278main ()
6279{
6280
6281 ;
6282 return 0;
6283}
6284_ACEOF
6285if ac_fn_c_try_compile "$LINENO"; then :
6286 ac_cv_prog_cc_g=yes
6287fi
6288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6289fi
6290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6291fi
6292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6293 ac_c_werror_flag=$ac_save_c_werror_flag
6294fi
6295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6296$as_echo "$ac_cv_prog_cc_g" >&6; }
6297if test "$ac_test_CFLAGS" = set; then
6298 CFLAGS=$ac_save_CFLAGS
6299elif test $ac_cv_prog_cc_g = yes; then
6300 if test "$GCC" = yes; then
6301 CFLAGS="-g -O2"
6302 else
6303 CFLAGS="-g"
6304 fi
6305else
6306 if test "$GCC" = yes; then
6307 CFLAGS="-O2"
6308 else
6309 CFLAGS=
6310 fi
6311fi
6312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6313$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006314if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006315 $as_echo_n "(cached) " >&6
6316else
6317 ac_cv_prog_cc_c89=no
6318ac_save_CC=$CC
6319cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6320/* end confdefs.h. */
6321#include <stdarg.h>
6322#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00006323struct stat;
cristya0b81c32010-01-22 02:54:33 +00006324/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6325struct buf { int x; };
6326FILE * (*rcsopen) (struct buf *, struct stat *, int);
6327static char *e (p, i)
6328 char **p;
6329 int i;
6330{
6331 return p[i];
6332}
6333static char *f (char * (*g) (char **, int), char **p, ...)
6334{
6335 char *s;
6336 va_list v;
6337 va_start (v,p);
6338 s = g (p, va_arg (v,int));
6339 va_end (v);
6340 return s;
6341}
6342
6343/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6344 function prototypes and stuff, but not '\xHH' hex character constants.
6345 These don't provoke an error unfortunately, instead are silently treated
6346 as 'x'. The following induces an error, until -std is added to get
6347 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6348 array size at least. It's necessary to write '\x00'==0 to get something
6349 that's true only with -std. */
6350int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6351
6352/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6353 inside strings and character constants. */
6354#define FOO(x) 'x'
6355int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6356
6357int test (int i, double x);
6358struct s1 {int (*f) (int a);};
6359struct s2 {int (*f) (double a);};
6360int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6361int argc;
6362char **argv;
6363int
6364main ()
6365{
6366return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6367 ;
6368 return 0;
6369}
6370_ACEOF
6371for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6372 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6373do
6374 CC="$ac_save_CC $ac_arg"
6375 if ac_fn_c_try_compile "$LINENO"; then :
6376 ac_cv_prog_cc_c89=$ac_arg
6377fi
6378rm -f core conftest.err conftest.$ac_objext
6379 test "x$ac_cv_prog_cc_c89" != "xno" && break
6380done
6381rm -f conftest.$ac_ext
6382CC=$ac_save_CC
6383
6384fi
6385# AC_CACHE_VAL
6386case "x$ac_cv_prog_cc_c89" in
6387 x)
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6389$as_echo "none needed" >&6; } ;;
6390 xno)
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6392$as_echo "unsupported" >&6; } ;;
6393 *)
6394 CC="$CC $ac_cv_prog_cc_c89"
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6396$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6397esac
6398if test "x$ac_cv_prog_cc_c89" != xno; then :
6399
6400fi
6401
6402ac_ext=c
6403ac_cpp='$CPP $CPPFLAGS'
6404ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6405ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6406ac_compiler_gnu=$ac_cv_c_compiler_gnu
6407
cristy73bd4a52010-10-05 11:24:23 +00006408depcc="$CC" am_compiler_list=
6409
6410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6411$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006412if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006413 $as_echo_n "(cached) " >&6
6414else
6415 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6416 # We make a subdir and do the tests there. Otherwise we can end up
6417 # making bogus files that we don't know about and never remove. For
6418 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006419 # making a dummy file named 'D' -- because '-MD' means "put the output
6420 # in D".
cristy7247bba2012-02-05 16:37:27 +00006421 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006422 mkdir conftest.dir
6423 # Copy depcomp to subdir because otherwise we won't find it if we're
6424 # using a relative directory.
6425 cp "$am_depcomp" conftest.dir
6426 cd conftest.dir
6427 # We will build objects and dependencies in a subdirectory because
6428 # it helps to detect inapplicable dependency modes. For instance
6429 # both Tru64's cc and ICC support -MD to output dependencies as a
6430 # side effect of compilation, but ICC will put the dependencies in
6431 # the current directory while Tru64 will put them in the object
6432 # directory.
6433 mkdir sub
6434
6435 am_cv_CC_dependencies_compiler_type=none
6436 if test "$am_compiler_list" = ""; then
6437 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6438 fi
6439 am__universal=false
6440 case " $depcc " in #(
6441 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6442 esac
6443
6444 for depmode in $am_compiler_list; do
6445 # Setup a source with many dependencies, because some compilers
6446 # like to wrap large dependency lists on column 80 (with \), and
6447 # we should not choose a depcomp mode which is confused by this.
6448 #
6449 # We need to recreate these files for each test, as the compiler may
6450 # overwrite some of them when testing with obscure command lines.
6451 # This happens at least with the AIX C compiler.
6452 : > sub/conftest.c
6453 for i in 1 2 3 4 5 6; do
6454 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00006455 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6456 # Solaris 10 /bin/sh.
6457 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00006458 done
6459 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6460
cristyc0890a62012-07-19 00:18:20 +00006461 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00006462 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00006463 # handle '-M -o', and we need to detect this. Also, some Intel
6464 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00006465 am__obj=sub/conftest.${OBJEXT-o}
6466 am__minus_obj="-o $am__obj"
6467 case $depmode in
6468 gcc)
6469 # This depmode causes a compiler race in universal mode.
6470 test "$am__universal" = false || continue
6471 ;;
6472 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00006473 # After this tag, mechanisms are not by side-effect, so they'll
6474 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00006475 if test "x$enable_dependency_tracking" = xyes; then
6476 continue
6477 else
6478 break
6479 fi
6480 ;;
cristy7247bba2012-02-05 16:37:27 +00006481 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00006482 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00006483 # not run yet. These depmodes are late enough in the game, and
6484 # so weak that their functioning should not be impacted.
6485 am__obj=conftest.${OBJEXT-o}
6486 am__minus_obj=
6487 ;;
6488 none) break ;;
6489 esac
6490 if depmode=$depmode \
6491 source=sub/conftest.c object=$am__obj \
6492 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6493 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6494 >/dev/null 2>conftest.err &&
6495 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6496 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6497 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6498 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6499 # icc doesn't choke on unknown options, it will just issue warnings
6500 # or remarks (even with -Werror). So we grep stderr for any message
6501 # that says an option was ignored or not supported.
6502 # When given -MP, icc 7.0 and 7.1 complain thusly:
6503 # icc: Command line warning: ignoring option '-M'; no argument required
6504 # The diagnosis changed in icc 8.0:
6505 # icc: Command line remark: option '-MP' not supported
6506 if (grep 'ignoring option' conftest.err ||
6507 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6508 am_cv_CC_dependencies_compiler_type=$depmode
6509 break
6510 fi
6511 fi
6512 done
6513
6514 cd ..
6515 rm -rf conftest.dir
6516else
6517 am_cv_CC_dependencies_compiler_type=none
6518fi
6519
6520fi
6521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6522$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6523CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6524
6525 if
6526 test "x$enable_dependency_tracking" != xno \
6527 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6528 am__fastdepCC_TRUE=
6529 am__fastdepCC_FALSE='#'
6530else
6531 am__fastdepCC_TRUE='#'
6532 am__fastdepCC_FALSE=
6533fi
6534
6535
cristy95646052009-11-28 23:05:30 +00006536ac_ext=cpp
6537ac_cpp='$CXXCPP $CPPFLAGS'
6538ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6539ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6540ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6541if test -z "$CXX"; then
6542 if test -n "$CCC"; then
6543 CXX=$CCC
6544 else
6545 if test -n "$ac_tool_prefix"; then
6546 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6547 do
6548 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6549set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6551$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006552if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006553 $as_echo_n "(cached) " >&6
6554else
6555 if test -n "$CXX"; then
6556 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6557else
6558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6559for as_dir in $PATH
6560do
6561 IFS=$as_save_IFS
6562 test -z "$as_dir" && as_dir=.
6563 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006565 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6567 break 2
6568 fi
6569done
6570 done
6571IFS=$as_save_IFS
6572
6573fi
6574fi
6575CXX=$ac_cv_prog_CXX
6576if test -n "$CXX"; then
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6578$as_echo "$CXX" >&6; }
6579else
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6581$as_echo "no" >&6; }
6582fi
6583
6584
6585 test -n "$CXX" && break
6586 done
6587fi
6588if test -z "$CXX"; then
6589 ac_ct_CXX=$CXX
6590 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6591do
6592 # Extract the first word of "$ac_prog", so it can be a program name with args.
6593set dummy $ac_prog; ac_word=$2
6594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6595$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006596if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006597 $as_echo_n "(cached) " >&6
6598else
6599 if test -n "$ac_ct_CXX"; then
6600 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6601else
6602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6603for as_dir in $PATH
6604do
6605 IFS=$as_save_IFS
6606 test -z "$as_dir" && as_dir=.
6607 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006609 ac_cv_prog_ac_ct_CXX="$ac_prog"
6610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6611 break 2
6612 fi
6613done
6614 done
6615IFS=$as_save_IFS
6616
6617fi
6618fi
6619ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6620if test -n "$ac_ct_CXX"; then
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6622$as_echo "$ac_ct_CXX" >&6; }
6623else
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6625$as_echo "no" >&6; }
6626fi
6627
6628
6629 test -n "$ac_ct_CXX" && break
6630done
6631
6632 if test "x$ac_ct_CXX" = x; then
6633 CXX="g++"
6634 else
6635 case $cross_compiling:$ac_tool_warned in
6636yes:)
6637{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6638$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6639ac_tool_warned=yes ;;
6640esac
6641 CXX=$ac_ct_CXX
6642 fi
6643fi
6644
6645 fi
6646fi
6647# Provide some information about the compiler.
6648$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6649set X $ac_compile
6650ac_compiler=$2
6651for ac_option in --version -v -V -qversion; do
6652 { { ac_try="$ac_compiler $ac_option >&5"
6653case "(($ac_try" in
6654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6655 *) ac_try_echo=$ac_try;;
6656esac
6657eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6658$as_echo "$ac_try_echo"; } >&5
6659 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6660 ac_status=$?
6661 if test -s conftest.err; then
6662 sed '10a\
6663... rest of stderr output deleted ...
6664 10q' conftest.err >conftest.er1
6665 cat conftest.er1 >&5
6666 fi
6667 rm -f conftest.er1 conftest.err
6668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6669 test $ac_status = 0; }
6670done
6671
6672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6673$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006674if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00006675 $as_echo_n "(cached) " >&6
6676else
6677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6678/* end confdefs.h. */
6679
6680int
6681main ()
6682{
6683#ifndef __GNUC__
6684 choke me
6685#endif
6686
6687 ;
6688 return 0;
6689}
6690_ACEOF
6691if ac_fn_cxx_try_compile "$LINENO"; then :
6692 ac_compiler_gnu=yes
6693else
6694 ac_compiler_gnu=no
6695fi
6696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6697ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6698
6699fi
6700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6701$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6702if test $ac_compiler_gnu = yes; then
6703 GXX=yes
6704else
6705 GXX=
6706fi
6707ac_test_CXXFLAGS=${CXXFLAGS+set}
6708ac_save_CXXFLAGS=$CXXFLAGS
6709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6710$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006711if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00006712 $as_echo_n "(cached) " >&6
6713else
6714 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6715 ac_cxx_werror_flag=yes
6716 ac_cv_prog_cxx_g=no
6717 CXXFLAGS="-g"
6718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6719/* end confdefs.h. */
6720
6721int
6722main ()
6723{
6724
6725 ;
6726 return 0;
6727}
6728_ACEOF
6729if ac_fn_cxx_try_compile "$LINENO"; then :
6730 ac_cv_prog_cxx_g=yes
6731else
6732 CXXFLAGS=""
6733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6734/* end confdefs.h. */
6735
6736int
6737main ()
6738{
6739
6740 ;
6741 return 0;
6742}
6743_ACEOF
6744if ac_fn_cxx_try_compile "$LINENO"; then :
6745
6746else
6747 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6748 CXXFLAGS="-g"
6749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6750/* end confdefs.h. */
6751
6752int
6753main ()
6754{
6755
6756 ;
6757 return 0;
6758}
6759_ACEOF
6760if ac_fn_cxx_try_compile "$LINENO"; then :
6761 ac_cv_prog_cxx_g=yes
6762fi
6763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6764fi
6765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6766fi
6767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6768 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6769fi
6770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6771$as_echo "$ac_cv_prog_cxx_g" >&6; }
6772if test "$ac_test_CXXFLAGS" = set; then
6773 CXXFLAGS=$ac_save_CXXFLAGS
6774elif test $ac_cv_prog_cxx_g = yes; then
6775 if test "$GXX" = yes; then
6776 CXXFLAGS="-g -O2"
6777 else
6778 CXXFLAGS="-g"
6779 fi
6780else
6781 if test "$GXX" = yes; then
6782 CXXFLAGS="-O2"
6783 else
6784 CXXFLAGS=
6785 fi
6786fi
6787ac_ext=c
6788ac_cpp='$CPP $CPPFLAGS'
6789ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6790ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6791ac_compiler_gnu=$ac_cv_c_compiler_gnu
6792
cristy73bd4a52010-10-05 11:24:23 +00006793depcc="$CXX" am_compiler_list=
6794
6795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6796$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006797if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006798 $as_echo_n "(cached) " >&6
6799else
6800 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6801 # We make a subdir and do the tests there. Otherwise we can end up
6802 # making bogus files that we don't know about and never remove. For
6803 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006804 # making a dummy file named 'D' -- because '-MD' means "put the output
6805 # in D".
cristy7247bba2012-02-05 16:37:27 +00006806 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006807 mkdir conftest.dir
6808 # Copy depcomp to subdir because otherwise we won't find it if we're
6809 # using a relative directory.
6810 cp "$am_depcomp" conftest.dir
6811 cd conftest.dir
6812 # We will build objects and dependencies in a subdirectory because
6813 # it helps to detect inapplicable dependency modes. For instance
6814 # both Tru64's cc and ICC support -MD to output dependencies as a
6815 # side effect of compilation, but ICC will put the dependencies in
6816 # the current directory while Tru64 will put them in the object
6817 # directory.
6818 mkdir sub
6819
6820 am_cv_CXX_dependencies_compiler_type=none
6821 if test "$am_compiler_list" = ""; then
6822 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6823 fi
6824 am__universal=false
6825 case " $depcc " in #(
6826 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6827 esac
6828
6829 for depmode in $am_compiler_list; do
6830 # Setup a source with many dependencies, because some compilers
6831 # like to wrap large dependency lists on column 80 (with \), and
6832 # we should not choose a depcomp mode which is confused by this.
6833 #
6834 # We need to recreate these files for each test, as the compiler may
6835 # overwrite some of them when testing with obscure command lines.
6836 # This happens at least with the AIX C compiler.
6837 : > sub/conftest.c
6838 for i in 1 2 3 4 5 6; do
6839 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00006840 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6841 # Solaris 10 /bin/sh.
6842 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00006843 done
6844 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6845
cristyc0890a62012-07-19 00:18:20 +00006846 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00006847 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00006848 # handle '-M -o', and we need to detect this. Also, some Intel
6849 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00006850 am__obj=sub/conftest.${OBJEXT-o}
6851 am__minus_obj="-o $am__obj"
6852 case $depmode in
6853 gcc)
6854 # This depmode causes a compiler race in universal mode.
6855 test "$am__universal" = false || continue
6856 ;;
6857 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00006858 # After this tag, mechanisms are not by side-effect, so they'll
6859 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00006860 if test "x$enable_dependency_tracking" = xyes; then
6861 continue
6862 else
6863 break
6864 fi
6865 ;;
cristy7247bba2012-02-05 16:37:27 +00006866 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00006867 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00006868 # not run yet. These depmodes are late enough in the game, and
6869 # so weak that their functioning should not be impacted.
6870 am__obj=conftest.${OBJEXT-o}
6871 am__minus_obj=
6872 ;;
6873 none) break ;;
6874 esac
6875 if depmode=$depmode \
6876 source=sub/conftest.c object=$am__obj \
6877 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6878 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6879 >/dev/null 2>conftest.err &&
6880 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6881 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6882 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6883 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6884 # icc doesn't choke on unknown options, it will just issue warnings
6885 # or remarks (even with -Werror). So we grep stderr for any message
6886 # that says an option was ignored or not supported.
6887 # When given -MP, icc 7.0 and 7.1 complain thusly:
6888 # icc: Command line warning: ignoring option '-M'; no argument required
6889 # The diagnosis changed in icc 8.0:
6890 # icc: Command line remark: option '-MP' not supported
6891 if (grep 'ignoring option' conftest.err ||
6892 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6893 am_cv_CXX_dependencies_compiler_type=$depmode
6894 break
6895 fi
6896 fi
6897 done
6898
6899 cd ..
6900 rm -rf conftest.dir
6901else
6902 am_cv_CXX_dependencies_compiler_type=none
6903fi
6904
6905fi
6906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6907$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6908CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6909
6910 if
6911 test "x$enable_dependency_tracking" != xno \
6912 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6913 am__fastdepCXX_TRUE=
6914 am__fastdepCXX_FALSE='#'
6915else
6916 am__fastdepCXX_TRUE='#'
6917 am__fastdepCXX_FALSE=
6918fi
6919
6920
cristy8b350f62009-11-15 23:12:43 +00006921 case $ac_cv_prog_cc_stdc in #(
6922 no) :
6923 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6924 *) :
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006926$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006927if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006928 $as_echo_n "(cached) " >&6
6929else
6930 ac_cv_prog_cc_c99=no
6931ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006932cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006933/* end confdefs.h. */
6934#include <stdarg.h>
6935#include <stdbool.h>
6936#include <stdlib.h>
6937#include <wchar.h>
6938#include <stdio.h>
6939
6940// Check varargs macros. These examples are taken from C99 6.10.3.5.
6941#define debug(...) fprintf (stderr, __VA_ARGS__)
6942#define showlist(...) puts (#__VA_ARGS__)
6943#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6944static void
6945test_varargs_macros (void)
6946{
6947 int x = 1234;
6948 int y = 5678;
6949 debug ("Flag");
6950 debug ("X = %d\n", x);
6951 showlist (The first, second, and third items.);
6952 report (x>y, "x is %d but y is %d", x, y);
6953}
6954
6955// Check long long types.
6956#define BIG64 18446744073709551615ull
6957#define BIG32 4294967295ul
6958#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6959#if !BIG_OK
6960 your preprocessor is broken;
6961#endif
6962#if BIG_OK
6963#else
6964 your preprocessor is broken;
6965#endif
6966static long long int bignum = -9223372036854775807LL;
6967static unsigned long long int ubignum = BIG64;
6968
6969struct incomplete_array
6970{
6971 int datasize;
6972 double data[];
6973};
6974
6975struct named_init {
6976 int number;
6977 const wchar_t *name;
6978 double average;
6979};
6980
6981typedef const char *ccp;
6982
6983static inline int
6984test_restrict (ccp restrict text)
6985{
6986 // See if C++-style comments work.
6987 // Iterate through items via the restricted pointer.
6988 // Also check for declarations in for loops.
6989 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6990 continue;
6991 return 0;
6992}
6993
6994// Check varargs and va_copy.
6995static void
6996test_varargs (const char *format, ...)
6997{
6998 va_list args;
6999 va_start (args, format);
7000 va_list args_copy;
7001 va_copy (args_copy, args);
7002
7003 const char *str;
7004 int number;
7005 float fnumber;
7006
7007 while (*format)
7008 {
7009 switch (*format++)
7010 {
7011 case 's': // string
7012 str = va_arg (args_copy, const char *);
7013 break;
7014 case 'd': // int
7015 number = va_arg (args_copy, int);
7016 break;
7017 case 'f': // float
7018 fnumber = va_arg (args_copy, double);
7019 break;
7020 default:
7021 break;
7022 }
7023 }
7024 va_end (args_copy);
7025 va_end (args);
7026}
7027
7028int
7029main ()
7030{
7031
7032 // Check bool.
7033 _Bool success = false;
7034
7035 // Check restrict.
7036 if (test_restrict ("String literal") == 0)
7037 success = true;
7038 char *restrict newvar = "Another string";
7039
7040 // Check varargs.
7041 test_varargs ("s, d' f .", "string", 65, 34.234);
7042 test_varargs_macros ();
7043
7044 // Check flexible array members.
7045 struct incomplete_array *ia =
7046 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7047 ia->datasize = 10;
7048 for (int i = 0; i < ia->datasize; ++i)
7049 ia->data[i] = i * 1.234;
7050
7051 // Check named initializers.
7052 struct named_init ni = {
7053 .number = 34,
7054 .name = L"Test wide string",
7055 .average = 543.34343,
7056 };
7057
7058 ni.number = 58;
7059
7060 int dynamic_array[ni.number];
7061 dynamic_array[ni.number - 1] = 543;
7062
7063 // work around unused variable warnings
7064 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7065 || dynamic_array[ni.number - 1] != 543);
7066
7067 ;
7068 return 0;
7069}
7070_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007071for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy3ed852e2009-09-05 21:47:34 +00007072do
7073 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007074 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007075 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007076fi
cristy3ed852e2009-09-05 21:47:34 +00007077rm -f core conftest.err conftest.$ac_objext
7078 test "x$ac_cv_prog_cc_c99" != "xno" && break
7079done
7080rm -f conftest.$ac_ext
7081CC=$ac_save_CC
7082
7083fi
7084# AC_CACHE_VAL
7085case "x$ac_cv_prog_cc_c99" in
7086 x)
cristy8b350f62009-11-15 23:12:43 +00007087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007088$as_echo "none needed" >&6; } ;;
7089 xno)
cristy8b350f62009-11-15 23:12:43 +00007090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007091$as_echo "unsupported" >&6; } ;;
7092 *)
7093 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00007094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00007095$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7096esac
cristy8b350f62009-11-15 23:12:43 +00007097if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007098 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7099else
cristy8b350f62009-11-15 23:12:43 +00007100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007101$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007102if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007103 $as_echo_n "(cached) " >&6
7104else
7105 ac_cv_prog_cc_c89=no
7106ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00007107cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007108/* end confdefs.h. */
7109#include <stdarg.h>
7110#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00007111struct stat;
cristy3ed852e2009-09-05 21:47:34 +00007112/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7113struct buf { int x; };
7114FILE * (*rcsopen) (struct buf *, struct stat *, int);
7115static char *e (p, i)
7116 char **p;
7117 int i;
7118{
7119 return p[i];
7120}
7121static char *f (char * (*g) (char **, int), char **p, ...)
7122{
7123 char *s;
7124 va_list v;
7125 va_start (v,p);
7126 s = g (p, va_arg (v,int));
7127 va_end (v);
7128 return s;
7129}
7130
7131/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7132 function prototypes and stuff, but not '\xHH' hex character constants.
7133 These don't provoke an error unfortunately, instead are silently treated
7134 as 'x'. The following induces an error, until -std is added to get
7135 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7136 array size at least. It's necessary to write '\x00'==0 to get something
7137 that's true only with -std. */
7138int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7139
7140/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7141 inside strings and character constants. */
7142#define FOO(x) 'x'
7143int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7144
7145int test (int i, double x);
7146struct s1 {int (*f) (int a);};
7147struct s2 {int (*f) (double a);};
7148int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7149int argc;
7150char **argv;
7151int
7152main ()
7153{
7154return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7155 ;
7156 return 0;
7157}
7158_ACEOF
7159for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7160 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7161do
7162 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007163 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007164 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007165fi
cristy3ed852e2009-09-05 21:47:34 +00007166rm -f core conftest.err conftest.$ac_objext
7167 test "x$ac_cv_prog_cc_c89" != "xno" && break
7168done
7169rm -f conftest.$ac_ext
7170CC=$ac_save_CC
7171
7172fi
7173# AC_CACHE_VAL
7174case "x$ac_cv_prog_cc_c89" in
7175 x)
cristy8b350f62009-11-15 23:12:43 +00007176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007177$as_echo "none needed" >&6; } ;;
7178 xno)
cristy8b350f62009-11-15 23:12:43 +00007179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007180$as_echo "unsupported" >&6; } ;;
7181 *)
7182 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00007183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007184$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7185esac
cristy8b350f62009-11-15 23:12:43 +00007186if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007187 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7188else
7189 ac_cv_prog_cc_stdc=no
7190fi
7191
cristy3ed852e2009-09-05 21:47:34 +00007192fi
cristy3ed852e2009-09-05 21:47:34 +00007193 ;;
7194esac
cristy8b350f62009-11-15 23:12:43 +00007195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00007196$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007197 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007198 $as_echo_n "(cached) " >&6
7199fi
7200
cristy8b350f62009-11-15 23:12:43 +00007201 case $ac_cv_prog_cc_stdc in #(
7202 no) :
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7204$as_echo "unsupported" >&6; } ;; #(
7205 '') :
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7207$as_echo "none needed" >&6; } ;; #(
7208 *) :
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00007210$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7211esac
7212
cristy3ed852e2009-09-05 21:47:34 +00007213ac_ext=c
7214ac_cpp='$CPP $CPPFLAGS'
7215ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7216ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7217ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00007218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00007219$as_echo_n "checking how to run the C preprocessor... " >&6; }
7220# On Suns, sometimes $CPP names a directory.
7221if test -n "$CPP" && test -d "$CPP"; then
7222 CPP=
7223fi
7224if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00007225 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007226 $as_echo_n "(cached) " >&6
7227else
7228 # Double quotes because CPP needs to be expanded
7229 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7230 do
7231 ac_preproc_ok=false
7232for ac_c_preproc_warn_flag in '' yes
7233do
7234 # Use a header file that comes with gcc, so configuring glibc
7235 # with a fresh cross-compiler works.
7236 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7237 # <limits.h> exists even on freestanding compilers.
7238 # On the NeXT, cc -E runs the code through the compiler's parser,
7239 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007241/* end confdefs.h. */
7242#ifdef __STDC__
7243# include <limits.h>
7244#else
7245# include <assert.h>
7246#endif
7247 Syntax error
7248_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007249if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007250
cristy8b350f62009-11-15 23:12:43 +00007251else
cristy3ed852e2009-09-05 21:47:34 +00007252 # Broken: fails on valid input.
7253continue
7254fi
cristyda16f162011-02-19 23:52:17 +00007255rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007256
7257 # OK, works on sane cases. Now check whether nonexistent headers
7258 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007260/* end confdefs.h. */
7261#include <ac_nonexistent.h>
7262_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007263if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007264 # Broken: success on invalid input.
7265continue
7266else
cristy3ed852e2009-09-05 21:47:34 +00007267 # Passes both tests.
7268ac_preproc_ok=:
7269break
7270fi
cristyda16f162011-02-19 23:52:17 +00007271rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007272
7273done
7274# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007275rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007276if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007277 break
7278fi
7279
7280 done
7281 ac_cv_prog_CPP=$CPP
7282
7283fi
7284 CPP=$ac_cv_prog_CPP
7285else
7286 ac_cv_prog_CPP=$CPP
7287fi
cristy8b350f62009-11-15 23:12:43 +00007288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007289$as_echo "$CPP" >&6; }
7290ac_preproc_ok=false
7291for ac_c_preproc_warn_flag in '' yes
7292do
7293 # Use a header file that comes with gcc, so configuring glibc
7294 # with a fresh cross-compiler works.
7295 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7296 # <limits.h> exists even on freestanding compilers.
7297 # On the NeXT, cc -E runs the code through the compiler's parser,
7298 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007300/* end confdefs.h. */
7301#ifdef __STDC__
7302# include <limits.h>
7303#else
7304# include <assert.h>
7305#endif
7306 Syntax error
7307_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007308if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007309
cristy8b350f62009-11-15 23:12:43 +00007310else
cristy3ed852e2009-09-05 21:47:34 +00007311 # Broken: fails on valid input.
7312continue
7313fi
cristyda16f162011-02-19 23:52:17 +00007314rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007315
7316 # OK, works on sane cases. Now check whether nonexistent headers
7317 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007319/* end confdefs.h. */
7320#include <ac_nonexistent.h>
7321_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007322if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007323 # Broken: success on invalid input.
7324continue
7325else
cristy3ed852e2009-09-05 21:47:34 +00007326 # Passes both tests.
7327ac_preproc_ok=:
7328break
7329fi
cristyda16f162011-02-19 23:52:17 +00007330rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007331
7332done
7333# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007334rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007335if $ac_preproc_ok; then :
7336
cristy3ed852e2009-09-05 21:47:34 +00007337else
cristy8b350f62009-11-15 23:12:43 +00007338 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007339$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00007340as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7341See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007342fi
7343
7344ac_ext=c
7345ac_cpp='$CPP $CPPFLAGS'
7346ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7347ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7348ac_compiler_gnu=$ac_cv_c_compiler_gnu
7349
cristy73bd4a52010-10-05 11:24:23 +00007350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7351$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007352if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007353 $as_echo_n "(cached) " >&6
7354else
7355 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7356 for ac_i in 1 2 3 4 5 6 7; do
7357 ac_script="$ac_script$as_nl$ac_script"
7358 done
7359 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7360 { ac_script=; unset ac_script;}
7361 if test -z "$SED"; then
7362 ac_path_SED_found=false
7363 # Loop through the user's path and test for each of PROGNAME-LIST
7364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7365for as_dir in $PATH
7366do
7367 IFS=$as_save_IFS
7368 test -z "$as_dir" && as_dir=.
7369 for ac_prog in sed gsed; do
7370 for ac_exec_ext in '' $ac_executable_extensions; do
7371 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007372 as_fn_executable_p "$ac_path_SED" || continue
cristy73bd4a52010-10-05 11:24:23 +00007373# Check for GNU ac_path_SED and select it if it is found.
7374 # Check for GNU $ac_path_SED
7375case `"$ac_path_SED" --version 2>&1` in
7376*GNU*)
7377 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7378*)
7379 ac_count=0
7380 $as_echo_n 0123456789 >"conftest.in"
7381 while :
7382 do
7383 cat "conftest.in" "conftest.in" >"conftest.tmp"
7384 mv "conftest.tmp" "conftest.in"
7385 cp "conftest.in" "conftest.nl"
7386 $as_echo '' >> "conftest.nl"
7387 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7388 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7389 as_fn_arith $ac_count + 1 && ac_count=$as_val
7390 if test $ac_count -gt ${ac_path_SED_max-0}; then
7391 # Best one so far, save it but keep looking for a better one
7392 ac_cv_path_SED="$ac_path_SED"
7393 ac_path_SED_max=$ac_count
7394 fi
7395 # 10*(2^10) chars as input seems more than enough
7396 test $ac_count -gt 10 && break
7397 done
7398 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7399esac
7400
7401 $ac_path_SED_found && break 3
7402 done
7403 done
7404 done
7405IFS=$as_save_IFS
7406 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007407 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007408 fi
7409else
7410 ac_cv_path_SED=$SED
7411fi
7412
7413fi
7414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7415$as_echo "$ac_cv_path_SED" >&6; }
7416 SED="$ac_cv_path_SED"
7417 rm -f conftest.sed
7418
7419test -z "$SED" && SED=sed
7420Xsed="$SED -e 1s/^X//"
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7433$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007434if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007435 $as_echo_n "(cached) " >&6
7436else
7437 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7438 then ac_cv_path_FGREP="$GREP -F"
7439 else
7440 if test -z "$FGREP"; then
7441 ac_path_FGREP_found=false
7442 # Loop through the user's path and test for each of PROGNAME-LIST
7443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7444for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7445do
7446 IFS=$as_save_IFS
7447 test -z "$as_dir" && as_dir=.
7448 for ac_prog in fgrep; do
7449 for ac_exec_ext in '' $ac_executable_extensions; do
7450 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007451 as_fn_executable_p "$ac_path_FGREP" || continue
cristy73bd4a52010-10-05 11:24:23 +00007452# Check for GNU ac_path_FGREP and select it if it is found.
7453 # Check for GNU $ac_path_FGREP
7454case `"$ac_path_FGREP" --version 2>&1` in
7455*GNU*)
7456 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7457*)
7458 ac_count=0
7459 $as_echo_n 0123456789 >"conftest.in"
7460 while :
7461 do
7462 cat "conftest.in" "conftest.in" >"conftest.tmp"
7463 mv "conftest.tmp" "conftest.in"
7464 cp "conftest.in" "conftest.nl"
7465 $as_echo 'FGREP' >> "conftest.nl"
7466 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7467 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7468 as_fn_arith $ac_count + 1 && ac_count=$as_val
7469 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7470 # Best one so far, save it but keep looking for a better one
7471 ac_cv_path_FGREP="$ac_path_FGREP"
7472 ac_path_FGREP_max=$ac_count
7473 fi
7474 # 10*(2^10) chars as input seems more than enough
7475 test $ac_count -gt 10 && break
7476 done
7477 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7478esac
7479
7480 $ac_path_FGREP_found && break 3
7481 done
7482 done
7483 done
7484IFS=$as_save_IFS
7485 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007486 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007487 fi
7488else
7489 ac_cv_path_FGREP=$FGREP
7490fi
7491
7492 fi
7493fi
7494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7495$as_echo "$ac_cv_path_FGREP" >&6; }
7496 FGREP="$ac_cv_path_FGREP"
7497
7498
7499test -z "$GREP" && GREP=grep
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
cristy0c60a692010-11-04 01:09:47 +00007517ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7518ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7519ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7520
7521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7522$as_echo_n "checking how to print strings... " >&6; }
7523# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00007524if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00007525 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7526 ECHO='print -r --'
7527elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7528 ECHO='printf %s\n'
7529else
7530 # Use this function as a fallback that always works.
7531 func_fallback_echo ()
7532 {
7533 eval 'cat <<_LTECHO_EOF
7534$1
7535_LTECHO_EOF'
7536 }
7537 ECHO='func_fallback_echo'
7538fi
7539
7540# func_echo_all arg...
7541# Invoke $ECHO with all args, space-separated.
7542func_echo_all ()
7543{
7544 $ECHO ""
7545}
7546
7547case "$ECHO" in
7548 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7549$as_echo "printf" >&6; } ;;
7550 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7551$as_echo "print -r" >&6; } ;;
7552 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7553$as_echo "cat" >&6; } ;;
7554esac
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
cristy73bd4a52010-10-05 11:24:23 +00007569
7570
7571# Check whether --with-gnu-ld was given.
7572if test "${with_gnu_ld+set}" = set; then :
7573 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7574else
7575 with_gnu_ld=no
7576fi
7577
7578ac_prog=ld
7579if test "$GCC" = yes; then
7580 # Check if gcc -print-prog-name=ld gives a path.
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7582$as_echo_n "checking for ld used by $CC... " >&6; }
7583 case $host in
7584 *-*-mingw*)
7585 # gcc leaves a trailing carriage return which upsets mingw
7586 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7587 *)
7588 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7589 esac
7590 case $ac_prog in
7591 # Accept absolute paths.
7592 [\\/]* | ?:[\\/]*)
7593 re_direlt='/[^/][^/]*/\.\./'
7594 # Canonicalize the pathname of ld
7595 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7596 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7597 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7598 done
7599 test -z "$LD" && LD="$ac_prog"
7600 ;;
7601 "")
7602 # If it fails, then pretend we aren't using GCC.
7603 ac_prog=ld
7604 ;;
7605 *)
7606 # If it is relative, then search for the first ld in PATH.
7607 with_gnu_ld=unknown
7608 ;;
7609 esac
7610elif test "$with_gnu_ld" = yes; then
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7612$as_echo_n "checking for GNU ld... " >&6; }
7613else
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7615$as_echo_n "checking for non-GNU ld... " >&6; }
7616fi
cristyda16f162011-02-19 23:52:17 +00007617if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007618 $as_echo_n "(cached) " >&6
7619else
7620 if test -z "$LD"; then
7621 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7622 for ac_dir in $PATH; do
7623 IFS="$lt_save_ifs"
7624 test -z "$ac_dir" && ac_dir=.
7625 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7626 lt_cv_path_LD="$ac_dir/$ac_prog"
7627 # Check to see if the program is GNU ld. I'd rather use --version,
7628 # but apparently some variants of GNU ld only accept -v.
7629 # Break only if it was the GNU/non-GNU ld that we prefer.
7630 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7631 *GNU* | *'with BFD'*)
7632 test "$with_gnu_ld" != no && break
7633 ;;
7634 *)
7635 test "$with_gnu_ld" != yes && break
7636 ;;
7637 esac
7638 fi
7639 done
7640 IFS="$lt_save_ifs"
7641else
7642 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7643fi
7644fi
7645
7646LD="$lt_cv_path_LD"
7647if test -n "$LD"; then
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7649$as_echo "$LD" >&6; }
7650else
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7652$as_echo "no" >&6; }
7653fi
cristy98dddb52010-11-04 00:30:15 +00007654test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7656$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007657if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007658 $as_echo_n "(cached) " >&6
7659else
7660 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7661case `$LD -v 2>&1 </dev/null` in
7662*GNU* | *'with BFD'*)
7663 lt_cv_prog_gnu_ld=yes
7664 ;;
7665*)
7666 lt_cv_prog_gnu_ld=no
7667 ;;
7668esac
7669fi
7670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7671$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7672with_gnu_ld=$lt_cv_prog_gnu_ld
7673
7674
7675
7676
7677
7678
7679
7680
7681
cristy3ed852e2009-09-05 21:47:34 +00007682
cristy837d6dc2010-02-27 01:16:57 +00007683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7684$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007685if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00007686 $as_echo_n "(cached) " >&6
7687else
7688 ac_cv_prog_cc_c99=no
7689ac_save_CC=$CC
7690cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7691/* end confdefs.h. */
7692#include <stdarg.h>
7693#include <stdbool.h>
7694#include <stdlib.h>
7695#include <wchar.h>
7696#include <stdio.h>
7697
7698// Check varargs macros. These examples are taken from C99 6.10.3.5.
7699#define debug(...) fprintf (stderr, __VA_ARGS__)
7700#define showlist(...) puts (#__VA_ARGS__)
7701#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7702static void
7703test_varargs_macros (void)
7704{
7705 int x = 1234;
7706 int y = 5678;
7707 debug ("Flag");
7708 debug ("X = %d\n", x);
7709 showlist (The first, second, and third items.);
7710 report (x>y, "x is %d but y is %d", x, y);
7711}
7712
7713// Check long long types.
7714#define BIG64 18446744073709551615ull
7715#define BIG32 4294967295ul
7716#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7717#if !BIG_OK
7718 your preprocessor is broken;
7719#endif
7720#if BIG_OK
7721#else
7722 your preprocessor is broken;
7723#endif
7724static long long int bignum = -9223372036854775807LL;
7725static unsigned long long int ubignum = BIG64;
7726
7727struct incomplete_array
7728{
7729 int datasize;
7730 double data[];
7731};
7732
7733struct named_init {
7734 int number;
7735 const wchar_t *name;
7736 double average;
7737};
7738
7739typedef const char *ccp;
7740
7741static inline int
7742test_restrict (ccp restrict text)
7743{
7744 // See if C++-style comments work.
7745 // Iterate through items via the restricted pointer.
7746 // Also check for declarations in for loops.
7747 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7748 continue;
7749 return 0;
7750}
7751
7752// Check varargs and va_copy.
7753static void
7754test_varargs (const char *format, ...)
7755{
7756 va_list args;
7757 va_start (args, format);
7758 va_list args_copy;
7759 va_copy (args_copy, args);
7760
7761 const char *str;
7762 int number;
7763 float fnumber;
7764
7765 while (*format)
7766 {
7767 switch (*format++)
7768 {
7769 case 's': // string
7770 str = va_arg (args_copy, const char *);
7771 break;
7772 case 'd': // int
7773 number = va_arg (args_copy, int);
7774 break;
7775 case 'f': // float
7776 fnumber = va_arg (args_copy, double);
7777 break;
7778 default:
7779 break;
7780 }
7781 }
7782 va_end (args_copy);
7783 va_end (args);
7784}
7785
7786int
7787main ()
7788{
7789
7790 // Check bool.
7791 _Bool success = false;
7792
7793 // Check restrict.
7794 if (test_restrict ("String literal") == 0)
7795 success = true;
7796 char *restrict newvar = "Another string";
7797
7798 // Check varargs.
7799 test_varargs ("s, d' f .", "string", 65, 34.234);
7800 test_varargs_macros ();
7801
7802 // Check flexible array members.
7803 struct incomplete_array *ia =
7804 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7805 ia->datasize = 10;
7806 for (int i = 0; i < ia->datasize; ++i)
7807 ia->data[i] = i * 1.234;
7808
7809 // Check named initializers.
7810 struct named_init ni = {
7811 .number = 34,
7812 .name = L"Test wide string",
7813 .average = 543.34343,
7814 };
7815
7816 ni.number = 58;
7817
7818 int dynamic_array[ni.number];
7819 dynamic_array[ni.number - 1] = 543;
7820
7821 // work around unused variable warnings
7822 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7823 || dynamic_array[ni.number - 1] != 543);
7824
7825 ;
7826 return 0;
7827}
7828_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007829for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy837d6dc2010-02-27 01:16:57 +00007830do
7831 CC="$ac_save_CC $ac_arg"
7832 if ac_fn_c_try_compile "$LINENO"; then :
7833 ac_cv_prog_cc_c99=$ac_arg
7834fi
7835rm -f core conftest.err conftest.$ac_objext
7836 test "x$ac_cv_prog_cc_c99" != "xno" && break
7837done
7838rm -f conftest.$ac_ext
7839CC=$ac_save_CC
7840
7841fi
7842# AC_CACHE_VAL
7843case "x$ac_cv_prog_cc_c99" in
7844 x)
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7846$as_echo "none needed" >&6; } ;;
7847 xno)
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7849$as_echo "unsupported" >&6; } ;;
7850 *)
7851 CC="$CC $ac_cv_prog_cc_c99"
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7853$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7854esac
7855if test "x$ac_cv_prog_cc_c99" != xno; then :
7856
7857fi
7858
7859
cristy73bd4a52010-10-05 11:24:23 +00007860if test "x$CC" != xcc; then
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7862$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7863else
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7865$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7866fi
7867set dummy $CC; ac_cc=`$as_echo "$2" |
7868 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristyda16f162011-02-19 23:52:17 +00007869if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007870 $as_echo_n "(cached) " >&6
7871else
cristy73bd4a52010-10-05 11:24:23 +00007872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7873/* end confdefs.h. */
7874
7875int
7876main ()
7877{
7878
7879 ;
7880 return 0;
7881}
7882_ACEOF
7883# Make sure it works both with $CC and with simple cc.
7884# We do the test twice because some compilers refuse to overwrite an
7885# existing .o file with -o, though they will create one.
7886ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7887rm -f conftest2.*
7888if { { case "(($ac_try" in
7889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7890 *) ac_try_echo=$ac_try;;
7891esac
7892eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7893$as_echo "$ac_try_echo"; } >&5
7894 (eval "$ac_try") 2>&5
7895 ac_status=$?
7896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7897 test $ac_status = 0; } &&
7898 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7900 *) ac_try_echo=$ac_try;;
7901esac
7902eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7903$as_echo "$ac_try_echo"; } >&5
7904 (eval "$ac_try") 2>&5
7905 ac_status=$?
7906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7907 test $ac_status = 0; };
7908then
7909 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7910 if test "x$CC" != xcc; then
7911 # Test first that cc exists at all.
7912 if { ac_try='cc -c conftest.$ac_ext >&5'
7913 { { case "(($ac_try" in
7914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7915 *) ac_try_echo=$ac_try;;
7916esac
7917eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7918$as_echo "$ac_try_echo"; } >&5
7919 (eval "$ac_try") 2>&5
7920 ac_status=$?
7921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7922 test $ac_status = 0; }; }; then
7923 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7924 rm -f conftest2.*
7925 if { { case "(($ac_try" in
7926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7927 *) ac_try_echo=$ac_try;;
7928esac
7929eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7930$as_echo "$ac_try_echo"; } >&5
7931 (eval "$ac_try") 2>&5
7932 ac_status=$?
7933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7934 test $ac_status = 0; } &&
7935 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7937 *) ac_try_echo=$ac_try;;
7938esac
7939eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7940$as_echo "$ac_try_echo"; } >&5
7941 (eval "$ac_try") 2>&5
7942 ac_status=$?
7943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7944 test $ac_status = 0; };
7945 then
7946 # cc works too.
7947 :
7948 else
7949 # cc exists but doesn't like -o.
7950 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7951 fi
7952 fi
7953 fi
7954else
7955 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7956fi
7957rm -f core conftest*
7958
7959fi
7960if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7962$as_echo "yes" >&6; }
7963else
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7965$as_echo "no" >&6; }
7966
7967$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7968
7969fi
7970
7971# FIXME: we rely on the cache variable name because
7972# there is no other way.
7973set dummy $CC
7974am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7975eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7976if test "$am_t" != yes; then
7977 # Losing compiler, so override with the script.
7978 # FIXME: It is wrong to rewrite CC.
7979 # But if we don't then we get into trouble of one sort or another.
7980 # A longer-term fix would be to have automake use am__CC in this case,
7981 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7982 CC="$am_aux_dir/compile $CC"
7983fi
7984
7985
7986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7987$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007988if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007989 $as_echo_n "(cached) " >&6
7990else
7991 ac_cv_cflags_warn_all="no, unknown"
cristy73bd4a52010-10-05 11:24:23 +00007992 ac_ext=c
7993ac_cpp='$CPP $CPPFLAGS'
7994ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7995ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7996ac_compiler_gnu=$ac_cv_c_compiler_gnu
7997
7998 ac_save_CFLAGS="$CFLAGS"
7999for ac_arg in "-pedantic % -Wall" "-xstrconst % -v" "-std1 % -verbose -w0 -warnprotos" "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" "-ansi -ansiE % -fullwarn" "+ESlit % +w1" "-Xc % -pvctl,fullmsg" "-h conform % -h msglevel 2" #
8000do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
8001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8002/* end confdefs.h. */
8003
8004int
8005main ()
8006{
cristy24fc1fe2010-10-23 21:13:01 +00008007
cristy73bd4a52010-10-05 11:24:23 +00008008 ;
8009 return 0;
8010}
8011_ACEOF
8012if ac_fn_c_try_compile "$LINENO"; then :
8013 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
8014fi
8015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8016done
8017 CFLAGS="$ac_save_CFLAGS"
8018 ac_ext=c
8019ac_cpp='$CPP $CPPFLAGS'
8020ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8021ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8022ac_compiler_gnu=$ac_cv_c_compiler_gnu
8023
8024
8025fi
8026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
8027$as_echo "$ac_cv_cflags_warn_all" >&6; }
8028case ".$ac_cv_cflags_warn_all" in
8029 .ok|.ok,*) ;;
8030 .|.no|.no,*)
8031 ;;
8032 *)
8033 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
8034 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
8035 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
8036 ac_status=$?
8037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8038 test $ac_status = 0; }
8039 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
8040 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
8041 ac_status=$?
8042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8043 test $ac_status = 0; }
8044 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
8045 fi
8046 ;;
nicolas6237c462010-10-05 06:11:49 +00008047esac
cristy3ed852e2009-09-05 21:47:34 +00008048
cristy016e8b82012-12-26 12:11:06 +00008049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
8050$as_echo_n "checking for C compiler vendor... " >&6; }
8051if ${ax_cv_c_compiler_vendor+:} false; then :
8052 $as_echo_n "(cached) " >&6
8053else
8054 # note: don't check for gcc first since some other compilers define __GNUC__
8055 vendors="intel: __ICC,__ECC,__INTEL_COMPILER
8056 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__
8057 pathscale: __PATHCC__,__PATHSCALE__
8058 clang: __clang__
8059 gnu: __GNUC__
8060 sun: __SUNPRO_C,__SUNPRO_CC
8061 hp: __HP_cc,__HP_aCC
8062 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
8063 borland: __BORLANDC__,__TURBOC__
8064 comeau: __COMO__
8065 cray: _CRAYC
8066 kai: __KCC
8067 lcc: __LCC__
8068 sgi: __sgi,sgi
8069 microsoft: _MSC_VER
8070 metrowerks: __MWERKS__
8071 watcom: __WATCOMC__
8072 portland: __PGI
8073 unknown: UNKNOWN"
8074 for ventest in $vendors; do
8075 case $ventest in
8076 *:) vendor=$ventest; continue ;;
8077 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
8078 esac
8079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8080/* end confdefs.h. */
8081
8082int
8083main ()
8084{
8085
8086 #if !($vencpp)
8087 thisisanerror;
8088 #endif
8089
8090 ;
8091 return 0;
8092}
8093_ACEOF
8094if ac_fn_c_try_compile "$LINENO"; then :
8095 break
8096fi
8097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8098 done
8099 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
8100
8101fi
8102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
8103$as_echo "$ax_cv_c_compiler_vendor" >&6; }
8104
cristya0b81c32010-01-22 02:54:33 +00008105
8106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8107$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8108set x ${MAKE-make}
8109ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00008110if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00008111 $as_echo_n "(cached) " >&6
8112else
8113 cat >conftest.make <<\_ACEOF
8114SHELL = /bin/sh
8115all:
8116 @echo '@@@%%%=$(MAKE)=@@@%%%'
8117_ACEOF
cristy98dddb52010-11-04 00:30:15 +00008118# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00008119case `${MAKE-make} -f conftest.make 2>/dev/null` in
8120 *@@@%%%=?*=@@@%%%*)
8121 eval ac_cv_prog_make_${ac_make}_set=yes;;
8122 *)
8123 eval ac_cv_prog_make_${ac_make}_set=no;;
8124esac
8125rm -f conftest.make
8126fi
8127if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8129$as_echo "yes" >&6; }
8130 SET_MAKE=
8131else
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8133$as_echo "no" >&6; }
8134 SET_MAKE="MAKE=${MAKE-make}"
8135fi
8136
cristy8b350f62009-11-15 23:12:43 +00008137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00008138$as_echo_n "checking whether ln -s works... " >&6; }
8139LN_S=$as_ln_s
8140if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00008141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00008142$as_echo "yes" >&6; }
8143else
cristy8b350f62009-11-15 23:12:43 +00008144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00008145$as_echo "no, using $LN_S" >&6; }
8146fi
8147
cristy8d0ff762013-03-10 20:33:28 +00008148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8149$as_echo_n "checking for a sed that does not truncate output... " >&6; }
8150if ${ac_cv_path_SED+:} false; then :
8151 $as_echo_n "(cached) " >&6
8152else
8153 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8154 for ac_i in 1 2 3 4 5 6 7; do
8155 ac_script="$ac_script$as_nl$ac_script"
8156 done
8157 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8158 { ac_script=; unset ac_script;}
8159 if test -z "$SED"; then
8160 ac_path_SED_found=false
8161 # Loop through the user's path and test for each of PROGNAME-LIST
8162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8163for as_dir in $PATH
8164do
8165 IFS=$as_save_IFS
8166 test -z "$as_dir" && as_dir=.
8167 for ac_prog in sed gsed; do
8168 for ac_exec_ext in '' $ac_executable_extensions; do
8169 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
8170 as_fn_executable_p "$ac_path_SED" || continue
8171# Check for GNU ac_path_SED and select it if it is found.
8172 # Check for GNU $ac_path_SED
8173case `"$ac_path_SED" --version 2>&1` in
8174*GNU*)
8175 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8176*)
8177 ac_count=0
8178 $as_echo_n 0123456789 >"conftest.in"
8179 while :
8180 do
8181 cat "conftest.in" "conftest.in" >"conftest.tmp"
8182 mv "conftest.tmp" "conftest.in"
8183 cp "conftest.in" "conftest.nl"
8184 $as_echo '' >> "conftest.nl"
8185 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8186 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8187 as_fn_arith $ac_count + 1 && ac_count=$as_val
8188 if test $ac_count -gt ${ac_path_SED_max-0}; then
8189 # Best one so far, save it but keep looking for a better one
8190 ac_cv_path_SED="$ac_path_SED"
8191 ac_path_SED_max=$ac_count
8192 fi
8193 # 10*(2^10) chars as input seems more than enough
8194 test $ac_count -gt 10 && break
8195 done
8196 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8197esac
8198
8199 $ac_path_SED_found && break 3
8200 done
8201 done
8202 done
8203IFS=$as_save_IFS
8204 if test -z "$ac_cv_path_SED"; then
8205 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8206 fi
8207else
8208 ac_cv_path_SED=$SED
8209fi
8210
8211fi
8212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8213$as_echo "$ac_cv_path_SED" >&6; }
8214 SED="$ac_cv_path_SED"
8215 rm -f conftest.sed
8216
cristybc556452012-08-17 19:44:03 +00008217for ac_prog in gawk mawk nawk awk
8218do
8219 # Extract the first word of "$ac_prog", so it can be a program name with args.
8220set dummy $ac_prog; ac_word=$2
8221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8222$as_echo_n "checking for $ac_word... " >&6; }
8223if ${ac_cv_prog_AWK+:} false; then :
8224 $as_echo_n "(cached) " >&6
8225else
8226 if test -n "$AWK"; then
8227 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8228else
8229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8230for as_dir in $PATH
8231do
8232 IFS=$as_save_IFS
8233 test -z "$as_dir" && as_dir=.
8234 for ac_exec_ext in '' $ac_executable_extensions; do
8235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8236 ac_cv_prog_AWK="$ac_prog"
8237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8238 break 2
8239 fi
8240done
8241 done
8242IFS=$as_save_IFS
8243
8244fi
8245fi
8246AWK=$ac_cv_prog_AWK
8247if test -n "$AWK"; then
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8249$as_echo "$AWK" >&6; }
8250else
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8252$as_echo "no" >&6; }
8253fi
8254
8255
8256 test -n "$AWK" && break
8257done
8258
cristy73bd4a52010-10-05 11:24:23 +00008259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
8260$as_echo_n "checking if malloc debugging is wanted... " >&6; }
8261
8262# Check whether --with-dmalloc was given.
8263if test "${with_dmalloc+set}" = set; then :
8264 withval=$with_dmalloc; if test "$withval" = yes; then
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8266$as_echo "yes" >&6; }
8267
8268$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
8269
8270 LIBS="$LIBS -ldmalloc"
8271 LDFLAGS="$LDFLAGS -g"
8272else
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8274$as_echo "no" >&6; }
8275fi
8276else
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8278$as_echo "no" >&6; }
8279fi
8280
8281
8282
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
8284$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008285if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008286 $as_echo_n "(cached) " >&6
8287else
8288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8289/* end confdefs.h. */
8290#include <stdlib.h>
cristy73380532012-02-18 20:26:28 +00008291 static void foo(void) __attribute__ ((__unused__));
cristy73bd4a52010-10-05 11:24:23 +00008292 static void
8293 foo(void) {
8294 exit(1);
8295 }
8296
8297int
8298main ()
8299{
8300
8301 ;
8302 return 0;
8303}
8304_ACEOF
8305if ac_fn_c_try_compile "$LINENO"; then :
8306 ax_cv___attribute__=yes
8307else
8308 ax_cv___attribute__=no
8309
8310fi
8311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8312
8313fi
8314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
8315$as_echo "$ax_cv___attribute__" >&6; }
8316 if test "$ax_cv___attribute__" = "yes"; then
8317
8318$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
8319
8320 fi
8321
8322
8323
cristy37110d62012-03-01 18:38:20 +00008324
8325
8326# Check whether --with-gcc-arch was given.
8327if test "${with_gcc_arch+set}" = set; then :
8328 withval=$with_gcc_arch; ax_gcc_arch=$withval
8329else
cristya32d1812012-03-02 19:24:21 +00008330 ax_gcc_arch=no
cristy37110d62012-03-01 18:38:20 +00008331fi
8332
8333
8334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8335$as_echo_n "checking for gcc architecture flag... " >&6; }
8336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
8337$as_echo "" >&6; }
8338if ${ax_cv_gcc_archflag+:} false; then :
8339 $as_echo_n "(cached) " >&6
8340else
8341
8342ax_cv_gcc_archflag="unknown"
8343
8344if test "$GCC" = yes; then
8345
8346if test "x$ax_gcc_arch" = xyes; then
8347ax_gcc_arch=""
8348if test "$cross_compiling" = no; then
8349case $host_cpu in
8350 i[3456]86*|x86_64*) # use cpuid codes
8351
8352ac_ext=c
8353ac_cpp='$CPP $CPPFLAGS'
8354ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8355ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8356ac_compiler_gnu=$ac_cv_c_compiler_gnu
8357
8358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
8359$as_echo_n "checking for x86 cpuid 0 output... " >&6; }
8360if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
8361 $as_echo_n "(cached) " >&6
8362else
8363 if test "$cross_compiling" = yes; then :
8364 ax_cv_gcc_x86_cpuid_0=unknown
8365else
8366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8367/* end confdefs.h. */
8368#include <stdio.h>
8369int
8370main ()
8371{
8372
8373 int op = 0, eax, ebx, ecx, edx;
8374 FILE *f;
8375 __asm__("cpuid"
8376 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8377 : "a" (op));
8378 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8379 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8380 fclose(f);
8381 return 0;
8382
8383 ;
8384 return 0;
8385}
8386_ACEOF
8387if ac_fn_c_try_run "$LINENO"; then :
8388 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
8389else
8390 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
8391fi
8392rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8393 conftest.$ac_objext conftest.beam conftest.$ac_ext
8394fi
8395
8396fi
8397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
8398$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
8399ac_ext=c
8400ac_cpp='$CPP $CPPFLAGS'
8401ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8402ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8403ac_compiler_gnu=$ac_cv_c_compiler_gnu
8404
8405
8406
8407ac_ext=c
8408ac_cpp='$CPP $CPPFLAGS'
8409ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8410ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8411ac_compiler_gnu=$ac_cv_c_compiler_gnu
8412
8413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
8414$as_echo_n "checking for x86 cpuid 1 output... " >&6; }
8415if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
8416 $as_echo_n "(cached) " >&6
8417else
8418 if test "$cross_compiling" = yes; then :
8419 ax_cv_gcc_x86_cpuid_1=unknown
8420else
8421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8422/* end confdefs.h. */
8423#include <stdio.h>
8424int
8425main ()
8426{
8427
8428 int op = 1, eax, ebx, ecx, edx;
8429 FILE *f;
8430 __asm__("cpuid"
8431 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8432 : "a" (op));
8433 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8434 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8435 fclose(f);
8436 return 0;
8437
8438 ;
8439 return 0;
8440}
8441_ACEOF
8442if ac_fn_c_try_run "$LINENO"; then :
8443 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
8444else
8445 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
8446fi
8447rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8448 conftest.$ac_objext conftest.beam conftest.$ac_ext
8449fi
8450
8451fi
8452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
8453$as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
8454ac_ext=c
8455ac_cpp='$CPP $CPPFLAGS'
8456ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8457ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8458ac_compiler_gnu=$ac_cv_c_compiler_gnu
8459
8460
8461 case $ax_cv_gcc_x86_cpuid_0 in
8462 *:756e6547:*:*) # Intel
8463 case $ax_cv_gcc_x86_cpuid_1 in
8464 *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
8465 *5??:*:*:*) ax_gcc_arch=pentium ;;
8466 *0?6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8467 *0?6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8468 *0?6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8469 *0?6[9de]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
8470 *0?6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8471 *0?6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
8472 *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
8473 *1?6[aef]?:*:*:*|*2?6[5cef]?:*:*:*) ax_gcc_arch="corei7 core2 pentium-m pentium3 pentiumpro" ;;
8474 *1?6c?:*:*:*|*[23]?66?:*:*:*) ax_gcc_arch="atom core2 pentium-m pentium3 pentiumpro" ;;
8475 *2?6[ad]?:*:*:*) ax_gcc_arch="corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8476 *0?6??:*:*:*) ax_gcc_arch=pentiumpro ;;
8477 *6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
8478 ?000?f3[347]:*:*:*|?000?f41347:*:*:*|?000?f6?:*:*:*)
8479 case $host_cpu in
8480 x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;;
8481 *) ax_gcc_arch="prescott pentium4 pentiumpro" ;;
8482 esac ;;
8483 ?000?f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";;
8484 esac ;;
8485 *:68747541:*:*) # AMD
8486 case $ax_cv_gcc_x86_cpuid_1 in
8487 *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
8488 *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
8489 *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
8490 *60?:*:*:*) ax_gcc_arch=k7 ;;
8491 *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
8492 *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
8493 *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;;
8494 *6[68a]?:*:*:*)
8495
8496ac_ext=c
8497ac_cpp='$CPP $CPPFLAGS'
8498ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8499ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8500ac_compiler_gnu=$ac_cv_c_compiler_gnu
8501
8502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000006 output" >&5
8503$as_echo_n "checking for x86 cpuid 0x80000006 output... " >&6; }
8504if ${ax_cv_gcc_x86_cpuid_0x80000006+:} false; then :
8505 $as_echo_n "(cached) " >&6
8506else
8507 if test "$cross_compiling" = yes; then :
8508 ax_cv_gcc_x86_cpuid_0x80000006=unknown
8509else
8510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8511/* end confdefs.h. */
8512#include <stdio.h>
8513int
8514main ()
8515{
8516
8517 int op = 0x80000006, eax, ebx, ecx, edx;
8518 FILE *f;
8519 __asm__("cpuid"
8520 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8521 : "a" (op));
8522 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8523 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8524 fclose(f);
8525 return 0;
8526
8527 ;
8528 return 0;
8529}
8530_ACEOF
8531if ac_fn_c_try_run "$LINENO"; then :
8532 ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid
8533else
8534 ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid
8535fi
8536rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8537 conftest.$ac_objext conftest.beam conftest.$ac_ext
8538fi
8539
8540fi
8541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5
8542$as_echo "$ax_cv_gcc_x86_cpuid_0x80000006" >&6; }
8543ac_ext=c
8544ac_cpp='$CPP $CPPFLAGS'
8545ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8546ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8547ac_compiler_gnu=$ac_cv_c_compiler_gnu
8548
8549 # L2 cache size
8550 case $ax_cv_gcc_x86_cpuid_0x80000006 in
8551 *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256
8552 ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
8553 *) ax_gcc_arch="athlon-4 athlon k7" ;;
8554 esac ;;
8555 ?00??f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
8556 ?00??f5?:*:*:*) ax_gcc_arch="opteron k8" ;;
8557 ?00??f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;;
8558 ?00??f??:*:*:*) ax_gcc_arch="k8" ;;
8559 ?05??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
8560 ?06??f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
8561 *f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
8562 esac ;;
8563 *:746e6543:*:*) # IDT
8564 case $ax_cv_gcc_x86_cpuid_1 in
8565 *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
8566 *58?:*:*:*) ax_gcc_arch=winchip2 ;;
8567 *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
8568 *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
8569 esac ;;
8570 esac
8571 if test x"$ax_gcc_arch" = x; then # fallback
8572 case $host_cpu in
8573 i586*) ax_gcc_arch=pentium ;;
8574 i686*) ax_gcc_arch=pentiumpro ;;
8575 esac
8576 fi
8577 ;;
8578
8579 sparc*)
8580 # Extract the first word of "prtdiag", so it can be a program name with args.
8581set dummy prtdiag; ac_word=$2
8582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8583$as_echo_n "checking for $ac_word... " >&6; }
8584if ${ac_cv_path_PRTDIAG+:} false; then :
8585 $as_echo_n "(cached) " >&6
8586else
8587 case $PRTDIAG in
8588 [\\/]* | ?:[\\/]*)
8589 ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
8590 ;;
8591 *)
8592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8593as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
8594for as_dir in $as_dummy
8595do
8596 IFS=$as_save_IFS
8597 test -z "$as_dir" && as_dir=.
8598 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy37110d62012-03-01 18:38:20 +00008600 ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
8601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8602 break 2
8603 fi
8604done
8605 done
8606IFS=$as_save_IFS
8607
8608 test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
8609 ;;
8610esac
8611fi
8612PRTDIAG=$ac_cv_path_PRTDIAG
8613if test -n "$PRTDIAG"; then
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
8615$as_echo "$PRTDIAG" >&6; }
8616else
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8618$as_echo "no" >&6; }
8619fi
8620
8621
8622 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`
8623 cputype=`echo "$cputype" | tr -d ' -' |tr $as_cr_LETTERS $as_cr_letters`
8624 case $cputype in
8625 *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
8626 *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
8627 *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
8628 *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
8629 *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
8630 *cypress*) ax_gcc_arch=cypress ;;
8631 esac ;;
8632
8633 alphaev5) ax_gcc_arch=ev5 ;;
8634 alphaev56) ax_gcc_arch=ev56 ;;
8635 alphapca56) ax_gcc_arch="pca56 ev56" ;;
8636 alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
8637 alphaev6) ax_gcc_arch=ev6 ;;
8638 alphaev67) ax_gcc_arch=ev67 ;;
8639 alphaev68) ax_gcc_arch="ev68 ev67" ;;
8640 alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
8641 alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
8642 alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
8643
8644 powerpc*)
8645 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`
8646 cputype=`echo $cputype | sed -e 's/ppc//g;s/ *//g'`
8647 case $cputype in
8648 *750*) ax_gcc_arch="750 G3" ;;
8649 *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
8650 *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
8651 *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
8652 *970*) ax_gcc_arch="970 G5 power4";;
8653 *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
8654 *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
8655 603ev|8240) ax_gcc_arch="$cputype 603e 603";;
8656 *) ax_gcc_arch=$cputype ;;
8657 esac
8658 ax_gcc_arch="$ax_gcc_arch powerpc"
8659 ;;
8660esac
8661fi # not cross-compiling
8662fi # guess arch
8663
8664if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
8665for arch in $ax_gcc_arch; do
cristya32d1812012-03-02 19:24:21 +00008666 if test "xno" = xyes; then # if we require portable code
cristy37110d62012-03-01 18:38:20 +00008667 flags="-mtune=$arch"
8668 # -mcpu=$arch and m$arch generate nonportable code on every arch except
8669 # x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr.
8670 case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac
8671 else
8672 flags="-march=$arch -mcpu=$arch -m$arch"
8673 fi
8674 for flag in $flags; do
8675 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
8676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
8677$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
8678if eval \${$as_CACHEVAR+:} false; then :
8679 $as_echo_n "(cached) " >&6
8680else
8681
8682 ax_check_save_flags=$CFLAGS
8683 CFLAGS="$CFLAGS $flag"
8684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8685/* end confdefs.h. */
8686
8687int
8688main ()
8689{
8690
8691 ;
8692 return 0;
8693}
8694_ACEOF
8695if ac_fn_c_try_compile "$LINENO"; then :
8696 eval "$as_CACHEVAR=yes"
8697else
8698 eval "$as_CACHEVAR=no"
8699fi
8700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8701 CFLAGS=$ax_check_save_flags
8702fi
8703eval ac_res=\$$as_CACHEVAR
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8705$as_echo "$ac_res" >&6; }
8706if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
8707 ax_cv_gcc_archflag=$flag; break
8708else
8709 :
8710fi
8711
8712 done
8713 test "x$ax_cv_gcc_archflag" = xunknown || break
8714done
8715fi
8716
8717fi # $GCC=yes
8718
8719fi
8720
8721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8722$as_echo_n "checking for gcc architecture flag... " >&6; }
8723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
8724$as_echo "$ax_cv_gcc_archflag" >&6; }
8725if test "x$ax_cv_gcc_archflag" = xunknown; then
8726 :
8727else
8728 CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
8729fi
8730
8731
8732
cristy73bd4a52010-10-05 11:24:23 +00008733if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8734 if test -n "$ac_tool_prefix"; then
8735 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8736set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8738$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008739if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008740 $as_echo_n "(cached) " >&6
8741else
8742 case $PKG_CONFIG in
8743 [\\/]* | ?:[\\/]*)
8744 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8745 ;;
8746 *)
8747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8748for as_dir in $PATH
8749do
8750 IFS=$as_save_IFS
8751 test -z "$as_dir" && as_dir=.
8752 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008754 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8756 break 2
8757 fi
8758done
8759 done
8760IFS=$as_save_IFS
8761
8762 ;;
8763esac
8764fi
8765PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8766if test -n "$PKG_CONFIG"; then
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8768$as_echo "$PKG_CONFIG" >&6; }
8769else
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8771$as_echo "no" >&6; }
8772fi
8773
8774
8775fi
8776if test -z "$ac_cv_path_PKG_CONFIG"; then
8777 ac_pt_PKG_CONFIG=$PKG_CONFIG
8778 # Extract the first word of "pkg-config", so it can be a program name with args.
8779set dummy pkg-config; ac_word=$2
8780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8781$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008782if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008783 $as_echo_n "(cached) " >&6
8784else
8785 case $ac_pt_PKG_CONFIG in
8786 [\\/]* | ?:[\\/]*)
8787 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8788 ;;
8789 *)
8790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8791for as_dir in $PATH
8792do
8793 IFS=$as_save_IFS
8794 test -z "$as_dir" && as_dir=.
8795 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008797 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8799 break 2
8800 fi
8801done
8802 done
8803IFS=$as_save_IFS
8804
8805 ;;
8806esac
8807fi
8808ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8809if test -n "$ac_pt_PKG_CONFIG"; then
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8811$as_echo "$ac_pt_PKG_CONFIG" >&6; }
8812else
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8814$as_echo "no" >&6; }
8815fi
8816
8817 if test "x$ac_pt_PKG_CONFIG" = x; then
8818 PKG_CONFIG=""
8819 else
8820 case $cross_compiling:$ac_tool_warned in
8821yes:)
8822{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8823$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8824ac_tool_warned=yes ;;
8825esac
8826 PKG_CONFIG=$ac_pt_PKG_CONFIG
8827 fi
8828else
8829 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8830fi
8831
8832fi
8833if test -n "$PKG_CONFIG"; then
8834 _pkg_min_version=0.9.0
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8836$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8837 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8839$as_echo "yes" >&6; }
8840 else
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8842$as_echo "no" >&6; }
8843 PKG_CONFIG=""
8844 fi
8845
8846fi
cristy3ed852e2009-09-05 21:47:34 +00008847
cristy9b86f202012-11-28 21:55:35 +00008848# Check for linker script support
8849
8850 # Check whether --enable-ld-version-script was given.
8851if test "${enable_ld_version_script+set}" = set; then :
8852 enableval=$enable_ld_version_script; have_ld_version_script=$enableval
8853fi
8854
8855 if test -z "$have_ld_version_script"; then
8856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
8857$as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
8858 save_LDFLAGS="$LDFLAGS"
8859 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
8860 cat > conftest.map <<EOF
8861foo
8862EOF
8863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8864/* end confdefs.h. */
8865
8866int
8867main ()
8868{
8869
8870 ;
8871 return 0;
8872}
8873_ACEOF
8874if ac_fn_c_try_link "$LINENO"; then :
8875 accepts_syntax_errors=yes
8876else
8877 accepts_syntax_errors=no
8878fi
8879rm -f core conftest.err conftest.$ac_objext \
8880 conftest$ac_exeext conftest.$ac_ext
8881 if test "$accepts_syntax_errors" = no; then
8882 cat > conftest.map <<EOF
8883VERS_1 {
8884 global: sym;
8885};
8886
8887VERS_2 {
8888 global: sym;
8889} VERS_1;
8890EOF
8891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8892/* end confdefs.h. */
8893
8894int
8895main ()
8896{
8897
8898 ;
8899 return 0;
8900}
8901_ACEOF
8902if ac_fn_c_try_link "$LINENO"; then :
8903 have_ld_version_script=yes
8904else
8905 have_ld_version_script=no
8906fi
8907rm -f core conftest.err conftest.$ac_objext \
8908 conftest$ac_exeext conftest.$ac_ext
8909 else
8910 have_ld_version_script=no
8911 fi
8912 rm -f conftest.map
8913 LDFLAGS="$save_LDFLAGS"
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
8915$as_echo "$have_ld_version_script" >&6; }
8916 fi
8917 if test "$have_ld_version_script" = "yes"; then
8918 HAVE_LD_VERSION_SCRIPT_TRUE=
8919 HAVE_LD_VERSION_SCRIPT_FALSE='#'
8920else
8921 HAVE_LD_VERSION_SCRIPT_TRUE='#'
8922 HAVE_LD_VERSION_SCRIPT_FALSE=
8923fi
8924
8925
8926
cristy3ed852e2009-09-05 21:47:34 +00008927#
cristy3ed852e2009-09-05 21:47:34 +00008928# Enable run-time checking.
8929#
8930# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00008931if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008932 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
8933else
8934 enable_bounds_checking='no'
8935fi
8936
8937
8938if test "$enable_bounds_checking" = yes; then
8939
cristy8b350f62009-11-15 23:12:43 +00008940$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008941
8942fi
8943
8944#
8945# Tests for Windows
8946#
8947
8948
8949
8950GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00008951native_win32_build='no'
8952cygwin_build='no'
8953case "${host_os}" in
8954 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00008955 cygwin_build='yes'
8956 GDI32_LIBS='-lgdi32'
8957 ;;
8958 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00008959 native_win32_build='yes'
8960 GDI32_LIBS='-lgdi32'
8961 ;;
8962esac
8963if test "${GDI32_LIBS}x" != 'x'; then
8964
cristy8b350f62009-11-15 23:12:43 +00008965$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008966
8967fi
8968
cristy73bd4a52010-10-05 11:24:23 +00008969 if test "${GDI32_LIBS}x" != 'x' ; then
8970 WINGDI32_DELEGATE_TRUE=
8971 WINGDI32_DELEGATE_FALSE='#'
8972else
8973 WINGDI32_DELEGATE_TRUE='#'
8974 WINGDI32_DELEGATE_FALSE=
8975fi
8976
8977 if test "${native_win32_build}" = 'yes' ; then
8978 WIN32_NATIVE_BUILD_TRUE=
8979 WIN32_NATIVE_BUILD_FALSE='#'
8980else
8981 WIN32_NATIVE_BUILD_TRUE='#'
8982 WIN32_NATIVE_BUILD_FALSE=
8983fi
8984
8985 if test "${cygwin_build}" = 'yes' ; then
8986 CYGWIN_BUILD_TRUE=
8987 CYGWIN_BUILD_FALSE='#'
8988else
8989 CYGWIN_BUILD_TRUE='#'
8990 CYGWIN_BUILD_FALSE=
8991fi
8992
8993 if test "x${CC}" = 'xcl.exe' ; then
8994 USING_CL_TRUE=
8995 USING_CL_FALSE='#'
8996else
8997 USING_CL_TRUE='#'
8998 USING_CL_FALSE=
8999fi
9000
cristy3ed852e2009-09-05 21:47:34 +00009001
9002WinPathScript="${srcdirfull}/winpath.sh"
9003
9004
9005#
9006# Compiler flags tweaks
9007#
9008if test "${GCC}" != "yes"; then
9009 case "${host}" in
9010 *-*-hpux* )
9011 # aCC: HP ANSI C++ B3910B A.03.34
9012 CFLAGS="${CFLAGS} -Wp,-H30000"
9013 if test -n "${CXXFLAGS}"; then
9014 CXXFLAGS='-AA'
9015 else
9016 CXXFLAGS="${CXXFLAGS} -AA"
9017 fi
9018 ;;
9019 *-dec-osf5.* )
9020 # Compaq alphaev68-dec-osf5.1 compiler
9021 if test -n "${CXXFLAGS}"; then
9022 CXXFLAGS='-std strict_ansi -noimplicit_include'
9023 else
9024 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
9025 fi
9026 esac
9027fi
9028
9029# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00009030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00009031$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009032if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009033 $as_echo_n "(cached) " >&6
9034else
9035
9036im_cv_ld_lazyload='none'
9037case "${host}" in
9038 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
9039 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
9040 im_cv_ld_lazyload='-Wl,-zlazyload'
9041 fi
9042 ;;
9043esac
9044
9045fi
cristy8b350f62009-11-15 23:12:43 +00009046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00009047$as_echo "$im_cv_ld_lazyload" >&6; }
9048if test "${im_cv_ld_lazyload}" != 'none' ; then
9049 if test -z "${LDFLAGS}" ; then
9050 LDFLAGS="${im_cv_ld_lazyload}"
9051 else
9052 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
9053 fi
9054fi
9055
9056case "$host" in
cristyc37574e2013-02-16 01:04:55 +00009057 *darwin* | *-macos10*)
cristyb3b90d32013-02-16 15:44:08 +00009058 CFLAGS="${CFLAGS} -D_FORTIFY_SOURCE=0"
cristyc37574e2013-02-16 01:04:55 +00009059 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00009060if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009061 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
9062else
9063 build_osxuniversal=no
9064fi
9065
9066
cristyc37574e2013-02-16 01:04:55 +00009067 if test "${build_osxuniversal}" != no ; then
9068 if test "$enable_dependency_tracking" != no ; then
9069 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00009070Please re-run configure with these options:
9071 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00009072 " "$LINENO" 5
cristyc37574e2013-02-16 01:04:55 +00009073 fi
9074 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
9075 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
9076 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
cristy3ed852e2009-09-05 21:47:34 +00009077 fi
9078 ;;
9079esac
9080
cristy0151ae12011-10-28 16:32:29 +00009081#
9082# ARCH specific include directory
9083#
9084
cristy670aa3c2011-11-03 00:54:00 +00009085# Check whether --with-includearch-dir was given.
9086if test "${with_includearch_dir+set}" = set; then :
9087 withval=$with_includearch_dir; includearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00009088else
cristy670aa3c2011-11-03 00:54:00 +00009089 includearch_dir=$INCLUDE_DIR
cristy0151ae12011-10-28 16:32:29 +00009090fi
9091
9092
cristyd286fd72013-02-24 19:25:33 +00009093eval "eval INCLUDEARCH_DIR=$includearch_dir"
cristyac9041a2011-10-28 16:52:32 +00009094
cristy0151ae12011-10-28 16:32:29 +00009095
9096#
9097# ARCH specific configuration directory
9098#
9099
cristy670aa3c2011-11-03 00:54:00 +00009100# Check whether --with-sharearch-dir was given.
9101if test "${with_sharearch_dir+set}" = set; then :
9102 withval=$with_sharearch_dir; sharearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00009103else
cristy408ebcd2011-11-14 01:36:57 +00009104 sharearch_dir="${LIB_DIR}"
cristy0151ae12011-10-28 16:32:29 +00009105fi
9106
9107
cristy670aa3c2011-11-03 00:54:00 +00009108eval "eval SHAREARCH_DIR=$sharearch_dir"
cristyac9041a2011-10-28 16:52:32 +00009109
cristy0151ae12011-10-28 16:32:29 +00009110
cristy2ec87cc2013-02-18 17:46:50 +00009111# Path to the pkgconfig folder
9112
9113# Check whether --with-pkgconfigdir was given.
9114if test "${with_pkgconfigdir+set}" = set; then :
9115 withval=$with_pkgconfigdir; pkgconfigdir="$withval"
9116else
9117 pkgconfigdir='${libdir}/pkgconfig'
9118fi
9119
9120
9121
cristy0151ae12011-10-28 16:32:29 +00009122#
cristy3ed852e2009-09-05 21:47:34 +00009123# Enable support for threads
cristy1ae5c992013-07-30 14:55:07 +00009124#
9125# Find Posix threads library
9126#
cristy3ed852e2009-09-05 21:47:34 +00009127
9128# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00009129if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009130 withval=$with_threads; with_threads=$withval
9131else
9132 with_threads='yes'
9133fi
9134
9135
cristy1ae5c992013-07-30 14:55:07 +00009136THREAD_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00009137have_threads=no
9138if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00009139
9140
cristy73bd4a52010-10-05 11:24:23 +00009141ac_ext=c
9142ac_cpp='$CPP $CPPFLAGS'
9143ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9144ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9145ac_compiler_gnu=$ac_cv_c_compiler_gnu
9146
9147ax_pthread_ok=no
9148
9149# We used to check for pthread.h first, but this fails if pthread.h
9150# requires special compiler flags (e.g. on True64 or Sequent).
9151# It gets checked for in the link test anyway.
9152
9153# First of all, check if the user has set any of the PTHREAD_LIBS,
9154# etcetera environment variables, and if threads linking works using
9155# them:
9156if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9157 save_CFLAGS="$CFLAGS"
9158 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9159 save_LIBS="$LIBS"
9160 LIBS="$PTHREAD_LIBS $LIBS"
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9162$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9164/* end confdefs.h. */
9165
9166/* Override any GCC internal prototype to avoid an error.
9167 Use char because int might match the return type of a GCC
9168 builtin and then its argument prototype would still apply. */
9169#ifdef __cplusplus
9170extern "C"
9171#endif
9172char pthread_join ();
9173int
9174main ()
9175{
9176return pthread_join ();
9177 ;
9178 return 0;
9179}
9180_ACEOF
9181if ac_fn_c_try_link "$LINENO"; then :
9182 ax_pthread_ok=yes
9183fi
9184rm -f core conftest.err conftest.$ac_objext \
9185 conftest$ac_exeext conftest.$ac_ext
9186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9187$as_echo "$ax_pthread_ok" >&6; }
9188 if test x"$ax_pthread_ok" = xno; then
9189 PTHREAD_LIBS=""
9190 PTHREAD_CFLAGS=""
9191 fi
9192 LIBS="$save_LIBS"
9193 CFLAGS="$save_CFLAGS"
9194fi
9195
9196# We must check for the threads library under a number of different
9197# names; the ordering is very important because some systems
9198# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9199# libraries is broken (non-POSIX).
9200
9201# Create a list of thread flags to try. Items starting with a "-" are
9202# C compiler flags, and other items are library names, except for "none"
9203# which indicates that we try without any flags at all, and "pthread-config"
9204# which is a program returning the flags for the Pth emulation library.
9205
cristy2ec87cc2013-02-18 17:46:50 +00009206ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009207
9208# The ordering *is* (sometimes) important. Some notes on the
9209# individual items follow:
9210
9211# pthreads: AIX (must check this before -lpthread)
9212# none: in case threads are in libc; should be tried before -Kthread and
9213# other compiler flags to prevent continual compiler warnings
9214# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9215# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9216# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9217# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9218# -pthreads: Solaris/gcc
9219# -mthreads: Mingw32/gcc, Lynx/gcc
9220# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9221# doesn't hurt to check since this sometimes defines pthreads too;
9222# also defines -D_REENTRANT)
9223# ... -mt is also the pthreads flag for HP/aCC
9224# pthread: Linux, etcetera
9225# --thread-safe: KAI C++
9226# pthread-config: use pthread-config program (for GNU Pth library)
9227
cristy2ec87cc2013-02-18 17:46:50 +00009228case ${host_os} in
9229 solaris*)
cristy73bd4a52010-10-05 11:24:23 +00009230
9231 # On Solaris (at least, for some versions), libc contains stubbed
9232 # (non-functional) versions of the pthreads routines, so link-based
9233 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9234 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9235 # a function called by this macro, so we could check for that, but
9236 # who knows whether they'll stub that too in a future libc.) So,
9237 # we'll just look for -pthreads and -lpthread first:
9238
9239 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9240 ;;
9241
cristy2ec87cc2013-02-18 17:46:50 +00009242 darwin*)
cristya316db12011-10-24 00:49:45 +00009243 ax_pthread_flags="-pthread $ax_pthread_flags"
9244 ;;
cristy73bd4a52010-10-05 11:24:23 +00009245esac
9246
9247if test x"$ax_pthread_ok" = xno; then
9248for flag in $ax_pthread_flags; do
9249
9250 case $flag in
9251 none)
9252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9253$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9254 ;;
9255
9256 -*)
9257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9258$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9259 PTHREAD_CFLAGS="$flag"
9260 ;;
9261
cristya316db12011-10-24 00:49:45 +00009262 pthread-config)
9263 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009264set dummy pthread-config; ac_word=$2
9265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9266$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009267if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009268 $as_echo_n "(cached) " >&6
9269else
9270 if test -n "$ax_pthread_config"; then
9271 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9272else
9273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9274for as_dir in $PATH
9275do
9276 IFS=$as_save_IFS
9277 test -z "$as_dir" && as_dir=.
9278 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009280 ac_cv_prog_ax_pthread_config="yes"
9281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9282 break 2
9283 fi
9284done
9285 done
9286IFS=$as_save_IFS
9287
9288 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9289fi
9290fi
9291ax_pthread_config=$ac_cv_prog_ax_pthread_config
9292if test -n "$ax_pthread_config"; then
9293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9294$as_echo "$ax_pthread_config" >&6; }
9295else
9296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9297$as_echo "no" >&6; }
9298fi
9299
9300
cristya316db12011-10-24 00:49:45 +00009301 if test x"$ax_pthread_config" = xno; then continue; fi
9302 PTHREAD_CFLAGS="`pthread-config --cflags`"
9303 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9304 ;;
cristy73bd4a52010-10-05 11:24:23 +00009305
9306 *)
9307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9308$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9309 PTHREAD_LIBS="-l$flag"
9310 ;;
9311 esac
9312
9313 save_LIBS="$LIBS"
9314 save_CFLAGS="$CFLAGS"
9315 LIBS="$PTHREAD_LIBS $LIBS"
9316 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9317
9318 # Check for various functions. We must include pthread.h,
9319 # since some functions may be macros. (On the Sequent, we
9320 # need a special flag -Kthread to make this header compile.)
9321 # We check for pthread_join because it is in -lpthread on IRIX
9322 # while pthread_create is in libc. We check for pthread_attr_init
9323 # due to DEC craziness with -lpthreads. We check for
9324 # pthread_cleanup_push because it is one of the few pthread
9325 # functions on Solaris that doesn't have a non-functional libc stub.
9326 # We try pthread_create on general principles.
9327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9328/* end confdefs.h. */
9329#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009330 static void routine(void *a) { a = 0; }
9331 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009332int
9333main ()
9334{
9335pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009336 pthread_create(&th, 0, start_routine, 0);
9337 pthread_join(th, 0);
9338 pthread_attr_init(&attr);
9339 pthread_cleanup_push(routine, 0);
9340 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009341 ;
9342 return 0;
9343}
9344_ACEOF
9345if ac_fn_c_try_link "$LINENO"; then :
9346 ax_pthread_ok=yes
9347fi
9348rm -f core conftest.err conftest.$ac_objext \
9349 conftest$ac_exeext conftest.$ac_ext
9350
9351 LIBS="$save_LIBS"
9352 CFLAGS="$save_CFLAGS"
9353
9354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9355$as_echo "$ax_pthread_ok" >&6; }
9356 if test "x$ax_pthread_ok" = xyes; then
9357 break;
9358 fi
9359
9360 PTHREAD_LIBS=""
9361 PTHREAD_CFLAGS=""
9362done
9363fi
9364
9365# Various other checks:
9366if test "x$ax_pthread_ok" = xyes; then
9367 save_LIBS="$LIBS"
9368 LIBS="$PTHREAD_LIBS $LIBS"
9369 save_CFLAGS="$CFLAGS"
9370 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9371
9372 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009374$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009375 attr_name=unknown
9376 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009378/* end confdefs.h. */
9379#include <pthread.h>
9380int
9381main ()
9382{
cristya316db12011-10-24 00:49:45 +00009383int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009384 ;
9385 return 0;
9386}
9387_ACEOF
9388if ac_fn_c_try_link "$LINENO"; then :
9389 attr_name=$attr; break
9390fi
9391rm -f core conftest.err conftest.$ac_objext \
9392 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009393 done
cristy73bd4a52010-10-05 11:24:23 +00009394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9395$as_echo "$attr_name" >&6; }
9396 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9397
9398cat >>confdefs.h <<_ACEOF
9399#define PTHREAD_CREATE_JOINABLE $attr_name
9400_ACEOF
9401
9402 fi
9403
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9405$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9406 flag=no
cristy2ec87cc2013-02-18 17:46:50 +00009407 case ${host_os} in
9408 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
9409 osf* | hpux*) flag="-D_REENTRANT";;
9410 solaris*)
9411 if test "$GCC" = "yes"; then
9412 flag="-D_REENTRANT"
9413 else
9414 flag="-mt -D_REENTRANT"
9415 fi
9416 ;;
cristy73bd4a52010-10-05 11:24:23 +00009417 esac
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9419$as_echo "${flag}" >&6; }
9420 if test "x$flag" != xno; then
9421 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9422 fi
9423
cristya316db12011-10-24 00:49:45 +00009424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9425$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9426if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9427 $as_echo_n "(cached) " >&6
9428else
9429
9430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9431/* end confdefs.h. */
9432
9433 #include <pthread.h>
9434int
9435main ()
9436{
9437int i = PTHREAD_PRIO_INHERIT;
9438 ;
9439 return 0;
9440}
9441_ACEOF
9442if ac_fn_c_try_link "$LINENO"; then :
9443 ax_cv_PTHREAD_PRIO_INHERIT=yes
9444else
9445 ax_cv_PTHREAD_PRIO_INHERIT=no
9446fi
9447rm -f core conftest.err conftest.$ac_objext \
9448 conftest$ac_exeext conftest.$ac_ext
9449
9450fi
9451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9452$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9453 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9454
9455$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9456
9457fi
9458
cristy73bd4a52010-10-05 11:24:23 +00009459 LIBS="$save_LIBS"
9460 CFLAGS="$save_CFLAGS"
9461
cristy23493c42013-04-11 16:04:59 +00009462 # More AIX lossage: compile with *_r variant
9463 if test "x$GCC" != xyes; then
9464 case $host_os in
9465 aix*)
9466 case "x/$CC" in #(
9467 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
9468 #handle absolute path differently from PATH based program lookup
9469 case "x$CC" in #(
9470 x/*) :
9471 if as_fn_executable_p ${CC}_r; then :
9472 PTHREAD_CC="${CC}_r"
9473fi ;; #(
9474 *) :
9475 for ac_prog in ${CC}_r
cristy73bd4a52010-10-05 11:24:23 +00009476do
9477 # Extract the first word of "$ac_prog", so it can be a program name with args.
9478set dummy $ac_prog; ac_word=$2
9479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9480$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009481if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009482 $as_echo_n "(cached) " >&6
9483else
9484 if test -n "$PTHREAD_CC"; then
9485 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9486else
9487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9488for as_dir in $PATH
9489do
9490 IFS=$as_save_IFS
9491 test -z "$as_dir" && as_dir=.
9492 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009494 ac_cv_prog_PTHREAD_CC="$ac_prog"
9495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9496 break 2
9497 fi
9498done
9499 done
9500IFS=$as_save_IFS
9501
9502fi
9503fi
9504PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9505if test -n "$PTHREAD_CC"; then
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9507$as_echo "$PTHREAD_CC" >&6; }
9508else
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9510$as_echo "no" >&6; }
9511fi
9512
9513
9514 test -n "$PTHREAD_CC" && break
9515done
cristy23493c42013-04-11 16:04:59 +00009516test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9517 ;;
9518esac ;; #(
9519 *) :
9520 ;;
9521esac
9522 ;;
9523 esac
cristya316db12011-10-24 00:49:45 +00009524 fi
cristy73bd4a52010-10-05 11:24:23 +00009525fi
9526
cristy23493c42013-04-11 16:04:59 +00009527test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9528
cristy73bd4a52010-10-05 11:24:23 +00009529
9530
9531
9532
9533# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9534if test x"$ax_pthread_ok" = xyes; then
9535
9536$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9537
9538 :
9539else
9540 ax_pthread_ok=no
9541
9542fi
9543ac_ext=c
9544ac_cpp='$CPP $CPPFLAGS'
9545ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9546ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9547ac_compiler_gnu=$ac_cv_c_compiler_gnu
9548
9549
cristy7acf8fb2010-09-23 19:58:53 +00009550 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00009551 have_threads=yes
9552 DEF_THREAD="$PTHREAD_CFLAGS"
9553 CFLAGS="$CFLAGS $DEF_THREAD"
9554 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
cristy1ae5c992013-07-30 14:55:07 +00009555 THREAD_LIBS="$PTHREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +00009556 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00009557 { $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 +00009558$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
9559 CC="$PTHREAD_CC"
9560 fi
cristy55bf91c2010-09-24 00:29:41 +00009561
9562$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
9563
cristy3ed852e2009-09-05 21:47:34 +00009564 fi
9565fi
cristy1ae5c992013-07-30 14:55:07 +00009566LIBS="$LIBS $THREAD_LIBS"
9567
cristy3ed852e2009-09-05 21:47:34 +00009568
9569# Enable support for OpenMP
9570if test "$have_threads" != 'yes'; then
9571 ac_cv_prog_c_openmp=unsupported
9572fi
9573
9574 OPENMP_CFLAGS=
9575 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00009576if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009577 enableval=$enable_openmp;
9578fi
9579
9580 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00009581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009582$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009583if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009584 $as_echo_n "(cached) " >&6
9585else
cristy8b350f62009-11-15 23:12:43 +00009586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9587/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009588
9589#ifndef _OPENMP
9590 choke me
9591#endif
9592#include <omp.h>
9593int main () { return omp_get_num_threads (); }
9594
9595_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009596if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009597 ac_cv_prog_c_openmp='none needed'
9598else
cristy8b350f62009-11-15 23:12:43 +00009599 ac_cv_prog_c_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +00009600 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
9601 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +00009602 ac_save_CFLAGS=$CFLAGS
9603 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00009604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9605/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009606
9607#ifndef _OPENMP
9608 choke me
9609#endif
9610#include <omp.h>
9611int main () { return omp_get_num_threads (); }
9612
9613_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009614if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009615 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00009616fi
cristy8b350f62009-11-15 23:12:43 +00009617rm -f core conftest.err conftest.$ac_objext \
9618 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009619 CFLAGS=$ac_save_CFLAGS
9620 if test "$ac_cv_prog_c_openmp" != unsupported; then
9621 break
9622 fi
9623 done
9624fi
cristy8b350f62009-11-15 23:12:43 +00009625rm -f core conftest.err conftest.$ac_objext \
9626 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009627fi
cristy8b350f62009-11-15 23:12:43 +00009628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00009629$as_echo "$ac_cv_prog_c_openmp" >&6; }
9630 case $ac_cv_prog_c_openmp in #(
9631 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00009632 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00009633 *)
cristy8b350f62009-11-15 23:12:43 +00009634 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00009635 esac
9636 fi
9637
9638
9639CFLAGS="$OPENMP_CFLAGS $CFLAGS"
9640MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
9641
cristy391f1ce2010-09-09 17:23:28 +00009642if test "$enable_openmp" != no; then
9643 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
9644 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
9645 fi
9646fi
cristy3ed852e2009-09-05 21:47:34 +00009647
cristy736173a2009-09-20 21:18:22 +00009648# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +00009649
9650
cristy73bd4a52010-10-05 11:24:23 +00009651ac_ext=c
9652ac_cpp='$CPP $CPPFLAGS'
9653ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9654ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9655ac_compiler_gnu=$ac_cv_c_compiler_gnu
9656
9657ax_pthread_ok=no
9658
9659# We used to check for pthread.h first, but this fails if pthread.h
9660# requires special compiler flags (e.g. on True64 or Sequent).
9661# It gets checked for in the link test anyway.
9662
9663# First of all, check if the user has set any of the PTHREAD_LIBS,
9664# etcetera environment variables, and if threads linking works using
9665# them:
9666if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9667 save_CFLAGS="$CFLAGS"
9668 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9669 save_LIBS="$LIBS"
9670 LIBS="$PTHREAD_LIBS $LIBS"
9671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9672$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9674/* end confdefs.h. */
9675
9676/* Override any GCC internal prototype to avoid an error.
9677 Use char because int might match the return type of a GCC
9678 builtin and then its argument prototype would still apply. */
9679#ifdef __cplusplus
9680extern "C"
9681#endif
9682char pthread_join ();
9683int
9684main ()
9685{
9686return pthread_join ();
9687 ;
9688 return 0;
9689}
9690_ACEOF
9691if ac_fn_c_try_link "$LINENO"; then :
9692 ax_pthread_ok=yes
9693fi
9694rm -f core conftest.err conftest.$ac_objext \
9695 conftest$ac_exeext conftest.$ac_ext
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9697$as_echo "$ax_pthread_ok" >&6; }
9698 if test x"$ax_pthread_ok" = xno; then
9699 PTHREAD_LIBS=""
9700 PTHREAD_CFLAGS=""
9701 fi
9702 LIBS="$save_LIBS"
9703 CFLAGS="$save_CFLAGS"
9704fi
9705
9706# We must check for the threads library under a number of different
9707# names; the ordering is very important because some systems
9708# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9709# libraries is broken (non-POSIX).
9710
9711# Create a list of thread flags to try. Items starting with a "-" are
9712# C compiler flags, and other items are library names, except for "none"
9713# which indicates that we try without any flags at all, and "pthread-config"
9714# which is a program returning the flags for the Pth emulation library.
9715
cristy2ec87cc2013-02-18 17:46:50 +00009716ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009717
9718# The ordering *is* (sometimes) important. Some notes on the
9719# individual items follow:
9720
9721# pthreads: AIX (must check this before -lpthread)
9722# none: in case threads are in libc; should be tried before -Kthread and
9723# other compiler flags to prevent continual compiler warnings
9724# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9725# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9726# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9727# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9728# -pthreads: Solaris/gcc
9729# -mthreads: Mingw32/gcc, Lynx/gcc
9730# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9731# doesn't hurt to check since this sometimes defines pthreads too;
9732# also defines -D_REENTRANT)
9733# ... -mt is also the pthreads flag for HP/aCC
9734# pthread: Linux, etcetera
9735# --thread-safe: KAI C++
9736# pthread-config: use pthread-config program (for GNU Pth library)
9737
cristy2ec87cc2013-02-18 17:46:50 +00009738case ${host_os} in
9739 solaris*)
cristy73bd4a52010-10-05 11:24:23 +00009740
9741 # On Solaris (at least, for some versions), libc contains stubbed
9742 # (non-functional) versions of the pthreads routines, so link-based
9743 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9744 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9745 # a function called by this macro, so we could check for that, but
9746 # who knows whether they'll stub that too in a future libc.) So,
9747 # we'll just look for -pthreads and -lpthread first:
9748
9749 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9750 ;;
9751
cristy2ec87cc2013-02-18 17:46:50 +00009752 darwin*)
cristya316db12011-10-24 00:49:45 +00009753 ax_pthread_flags="-pthread $ax_pthread_flags"
9754 ;;
cristy73bd4a52010-10-05 11:24:23 +00009755esac
9756
9757if test x"$ax_pthread_ok" = xno; then
9758for flag in $ax_pthread_flags; do
9759
9760 case $flag in
9761 none)
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9763$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9764 ;;
9765
9766 -*)
9767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9768$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9769 PTHREAD_CFLAGS="$flag"
9770 ;;
9771
cristya316db12011-10-24 00:49:45 +00009772 pthread-config)
9773 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009774set dummy pthread-config; ac_word=$2
9775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9776$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009777if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009778 $as_echo_n "(cached) " >&6
9779else
9780 if test -n "$ax_pthread_config"; then
9781 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9782else
9783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9784for as_dir in $PATH
9785do
9786 IFS=$as_save_IFS
9787 test -z "$as_dir" && as_dir=.
9788 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009790 ac_cv_prog_ax_pthread_config="yes"
9791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9792 break 2
9793 fi
9794done
9795 done
9796IFS=$as_save_IFS
9797
9798 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9799fi
9800fi
9801ax_pthread_config=$ac_cv_prog_ax_pthread_config
9802if test -n "$ax_pthread_config"; then
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9804$as_echo "$ax_pthread_config" >&6; }
9805else
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9807$as_echo "no" >&6; }
9808fi
9809
9810
cristya316db12011-10-24 00:49:45 +00009811 if test x"$ax_pthread_config" = xno; then continue; fi
9812 PTHREAD_CFLAGS="`pthread-config --cflags`"
9813 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9814 ;;
cristy73bd4a52010-10-05 11:24:23 +00009815
9816 *)
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9818$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9819 PTHREAD_LIBS="-l$flag"
9820 ;;
9821 esac
9822
9823 save_LIBS="$LIBS"
9824 save_CFLAGS="$CFLAGS"
9825 LIBS="$PTHREAD_LIBS $LIBS"
9826 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9827
9828 # Check for various functions. We must include pthread.h,
9829 # since some functions may be macros. (On the Sequent, we
9830 # need a special flag -Kthread to make this header compile.)
9831 # We check for pthread_join because it is in -lpthread on IRIX
9832 # while pthread_create is in libc. We check for pthread_attr_init
9833 # due to DEC craziness with -lpthreads. We check for
9834 # pthread_cleanup_push because it is one of the few pthread
9835 # functions on Solaris that doesn't have a non-functional libc stub.
9836 # We try pthread_create on general principles.
9837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9838/* end confdefs.h. */
9839#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009840 static void routine(void *a) { a = 0; }
9841 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009842int
9843main ()
9844{
9845pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009846 pthread_create(&th, 0, start_routine, 0);
9847 pthread_join(th, 0);
9848 pthread_attr_init(&attr);
9849 pthread_cleanup_push(routine, 0);
9850 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009851 ;
9852 return 0;
9853}
9854_ACEOF
9855if ac_fn_c_try_link "$LINENO"; then :
9856 ax_pthread_ok=yes
9857fi
9858rm -f core conftest.err conftest.$ac_objext \
9859 conftest$ac_exeext conftest.$ac_ext
9860
9861 LIBS="$save_LIBS"
9862 CFLAGS="$save_CFLAGS"
9863
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9865$as_echo "$ax_pthread_ok" >&6; }
9866 if test "x$ax_pthread_ok" = xyes; then
9867 break;
9868 fi
9869
9870 PTHREAD_LIBS=""
9871 PTHREAD_CFLAGS=""
9872done
9873fi
9874
9875# Various other checks:
9876if test "x$ax_pthread_ok" = xyes; then
9877 save_LIBS="$LIBS"
9878 LIBS="$PTHREAD_LIBS $LIBS"
9879 save_CFLAGS="$CFLAGS"
9880 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9881
9882 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009884$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009885 attr_name=unknown
9886 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009888/* end confdefs.h. */
9889#include <pthread.h>
9890int
9891main ()
9892{
cristya316db12011-10-24 00:49:45 +00009893int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009894 ;
9895 return 0;
9896}
9897_ACEOF
9898if ac_fn_c_try_link "$LINENO"; then :
9899 attr_name=$attr; break
9900fi
9901rm -f core conftest.err conftest.$ac_objext \
9902 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009903 done
cristy73bd4a52010-10-05 11:24:23 +00009904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9905$as_echo "$attr_name" >&6; }
9906 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9907
9908cat >>confdefs.h <<_ACEOF
9909#define PTHREAD_CREATE_JOINABLE $attr_name
9910_ACEOF
9911
9912 fi
9913
9914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9915$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9916 flag=no
cristy2ec87cc2013-02-18 17:46:50 +00009917 case ${host_os} in
9918 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
9919 osf* | hpux*) flag="-D_REENTRANT";;
9920 solaris*)
9921 if test "$GCC" = "yes"; then
9922 flag="-D_REENTRANT"
9923 else
9924 flag="-mt -D_REENTRANT"
9925 fi
9926 ;;
cristy73bd4a52010-10-05 11:24:23 +00009927 esac
9928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9929$as_echo "${flag}" >&6; }
9930 if test "x$flag" != xno; then
9931 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9932 fi
9933
cristya316db12011-10-24 00:49:45 +00009934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9935$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9936if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9937 $as_echo_n "(cached) " >&6
9938else
9939
9940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9941/* end confdefs.h. */
9942
9943 #include <pthread.h>
9944int
9945main ()
9946{
9947int i = PTHREAD_PRIO_INHERIT;
9948 ;
9949 return 0;
9950}
9951_ACEOF
9952if ac_fn_c_try_link "$LINENO"; then :
9953 ax_cv_PTHREAD_PRIO_INHERIT=yes
9954else
9955 ax_cv_PTHREAD_PRIO_INHERIT=no
9956fi
9957rm -f core conftest.err conftest.$ac_objext \
9958 conftest$ac_exeext conftest.$ac_ext
9959
9960fi
9961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9962$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9963 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9964
9965$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9966
9967fi
9968
cristy73bd4a52010-10-05 11:24:23 +00009969 LIBS="$save_LIBS"
9970 CFLAGS="$save_CFLAGS"
9971
cristy23493c42013-04-11 16:04:59 +00009972 # More AIX lossage: compile with *_r variant
9973 if test "x$GCC" != xyes; then
9974 case $host_os in
9975 aix*)
9976 case "x/$CC" in #(
9977 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
9978 #handle absolute path differently from PATH based program lookup
9979 case "x$CC" in #(
9980 x/*) :
9981 if as_fn_executable_p ${CC}_r; then :
9982 PTHREAD_CC="${CC}_r"
9983fi ;; #(
9984 *) :
9985 for ac_prog in ${CC}_r
cristy73bd4a52010-10-05 11:24:23 +00009986do
9987 # Extract the first word of "$ac_prog", so it can be a program name with args.
9988set dummy $ac_prog; ac_word=$2
9989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9990$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009991if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009992 $as_echo_n "(cached) " >&6
9993else
9994 if test -n "$PTHREAD_CC"; then
9995 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9996else
9997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9998for as_dir in $PATH
9999do
10000 IFS=$as_save_IFS
10001 test -z "$as_dir" && as_dir=.
10002 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010004 ac_cv_prog_PTHREAD_CC="$ac_prog"
10005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10006 break 2
10007 fi
10008done
10009 done
10010IFS=$as_save_IFS
10011
10012fi
10013fi
10014PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
10015if test -n "$PTHREAD_CC"; then
10016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
10017$as_echo "$PTHREAD_CC" >&6; }
10018else
10019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10020$as_echo "no" >&6; }
10021fi
10022
10023
10024 test -n "$PTHREAD_CC" && break
10025done
cristy23493c42013-04-11 16:04:59 +000010026test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10027 ;;
10028esac ;; #(
10029 *) :
10030 ;;
10031esac
10032 ;;
10033 esac
cristya316db12011-10-24 00:49:45 +000010034 fi
cristy73bd4a52010-10-05 11:24:23 +000010035fi
10036
cristy23493c42013-04-11 16:04:59 +000010037test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10038
cristy73bd4a52010-10-05 11:24:23 +000010039
10040
10041
10042
10043# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
10044if test x"$ax_pthread_ok" = xyes; then
10045
10046$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10047
10048 :
10049else
10050 ax_pthread_ok=no
10051
10052fi
10053ac_ext=c
10054ac_cpp='$CPP $CPPFLAGS'
10055ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10056ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10057ac_compiler_gnu=$ac_cv_c_compiler_gnu
10058
10059
10060
10061# Check whether --enable-opencl was given.
10062if test "${enable_opencl+set}" = set; then :
cristy48794642012-09-02 15:19:08 +000010063 enableval=$enable_opencl; enable_opencl=$enableval
cristy73bd4a52010-10-05 11:24:23 +000010064else
cristy48794642012-09-02 15:19:08 +000010065 enable_opencl='no'
cristy73bd4a52010-10-05 11:24:23 +000010066fi
10067
10068
cristy48794642012-09-02 15:19:08 +000010069if test "$enable_opencl" = 'yes'; then
cristy73bd4a52010-10-05 11:24:23 +000010070 ac_ext=c
10071ac_cpp='$CPP $CPPFLAGS'
10072ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10073ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10074ac_compiler_gnu=$ac_cv_c_compiler_gnu
10075
cristy75314cc2012-09-15 23:08:29 +000010076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
10077$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
10078if ${ax_cv_c_compiler_ms+:} false; then :
10079 $as_echo_n "(cached) " >&6
10080else
10081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10082/* end confdefs.h. */
10083
10084int
10085main ()
10086{
10087#ifndef _MSC_VER
10088 choke me
10089#endif
10090
10091 ;
10092 return 0;
10093}
10094_ACEOF
10095if ac_fn_c_try_compile "$LINENO"; then :
10096 ax_compiler_ms=yes
10097else
10098 ax_compiler_ms=no
10099fi
10100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10101ax_cv_c_compiler_ms=$ax_compiler_ms
10102
10103fi
10104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
10105$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000010106 if test X$ax_compiler_ms = Xno; then :
10107 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
10108fi
10109
10110 ax_save_CPPFLAGS=$CPPFLAGS
10111 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
10112 for ac_header in CL/cl.h OpenCL/cl.h
10113do :
10114 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10115ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000010116if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000010117 cat >>confdefs.h <<_ACEOF
10118#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10119_ACEOF
10120
10121fi
10122
10123done
10124
10125 CPPFLAGS=$ax_save_CPPFLAGS
10126
10127 for ac_header in windows.h
10128do :
10129 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000010130if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000010131 cat >>confdefs.h <<_ACEOF
10132#define HAVE_WINDOWS_H 1
10133_ACEOF
10134
10135fi
10136
10137done
10138
10139
10140
10141
10142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
10143$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010144if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010145 $as_echo_n "(cached) " >&6
10146else
10147 ax_cv_check_cl_libcl=no
10148 case $host_cpu in
10149 x86_64) ax_check_cl_libdir=lib64 ;;
10150 *) ax_check_cl_libdir=lib ;;
10151 esac
10152 ax_save_CPPFLAGS=$CPPFLAGS
10153 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
10154 ax_save_LIBS=$LIBS
10155 LIBS=""
10156 ax_check_libs="-lOpenCL -lCL -lclparser"
10157 for ax_lib in $ax_check_libs; do
10158 if test X$ax_compiler_ms = Xyes; then :
10159 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
10160else
10161 ax_try_lib=$ax_lib
10162fi
10163 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
10164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10165/* end confdefs.h. */
10166
10167 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10168 # include <windows.h>
10169 # endif
10170 # ifdef HAVE_CL_CL_H
10171 # include <CL/cl.h>
10172 # elif defined(HAVE_OPENCL_CL_H)
10173 # include <OpenCL/cl.h>
10174 # else
10175 # error no CL.h
10176 # endif
10177int
10178main ()
10179{
10180clCreateContextFromType(0,0,0,0,0)
10181 ;
10182 return 0;
10183}
10184_ACEOF
10185if ac_fn_c_try_link "$LINENO"; then :
10186 ax_cv_check_cl_libcl=$ax_try_lib; break
10187else
10188 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"
10189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10190/* end confdefs.h. */
10191
10192 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10193 # include <windows.h>
10194 # endif
10195 # ifdef HAVE_CL_CL_H
10196 # include <CL/cl.h>
10197 # elif defined(HAVE_OPENCL_CL_H)
10198 # include <OpenCL/cl.h>
10199 # else
10200 # error no CL.h
10201 # endif
10202int
10203main ()
10204{
10205clCreateContextFromType(0,0,0,0,0)
10206 ;
10207 return 0;
10208}
10209_ACEOF
10210if ac_fn_c_try_link "$LINENO"; then :
10211 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
10212else
cristy78c5a0c2010-12-04 20:00:59 +000010213 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 +000010214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10215/* end confdefs.h. */
10216
10217 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10218 # include <windows.h>
10219 # endif
10220 # ifdef HAVE_CL_CL_H
10221 # include <CL/cl.h>
10222 # elif defined(HAVE_OPENCL_CL_H)
10223 # include <OpenCL/cl.h>
10224 # else
10225 # error no CL.h
10226 # endif
10227int
10228main ()
10229{
10230clCreateContextFromType(0,0,0,0,0)
10231 ;
10232 return 0;
10233}
10234_ACEOF
10235if ac_fn_c_try_link "$LINENO"; then :
10236 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
10237fi
10238rm -f core conftest.err conftest.$ac_objext \
10239 conftest$ac_exeext conftest.$ac_ext
10240fi
10241rm -f core conftest.err conftest.$ac_objext \
10242 conftest$ac_exeext conftest.$ac_ext
10243fi
10244rm -f core conftest.err conftest.$ac_objext \
10245 conftest$ac_exeext conftest.$ac_ext
10246 done
10247
cristyc3f8b8e2011-12-22 14:55:16 +000010248 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy78c5a0c2010-12-04 20:00:59 +000010249 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +000010250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10251/* end confdefs.h. */
10252
10253 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10254 # include <windows.h>
10255 # endif
10256 # ifdef HAVE_CL_CL_H
10257 # include <CL/cl.h>
10258 # elif defined(HAVE_OPENCL_CL_H)
10259 # include <OpenCL/cl.h>
10260 # else
10261 # error no CL.h
10262 # endif
10263int
10264main ()
10265{
10266clCreateContextFromType(0,0,0,0,0)
10267 ;
10268 return 0;
10269}
10270_ACEOF
10271if ac_fn_c_try_link "$LINENO"; then :
10272 ax_cv_check_cl_libcl=$LIBS
10273fi
10274rm -f core conftest.err conftest.$ac_objext \
10275 conftest$ac_exeext conftest.$ac_ext
10276fi
10277
10278 LIBS=$ax_save_LIBS
10279 CPPFLAGS=$ax_save_CPPFLAGS
10280fi
10281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
10282$as_echo "$ax_cv_check_cl_libcl" >&6; }
10283
10284 if test "X$ax_cv_check_cl_libcl" = Xno; then :
10285 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
10286else
10287 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
10288$as_echo "#define _OPENCL 1" >>confdefs.h
10289
10290fi
10291 ac_ext=c
10292ac_cpp='$CPP $CPPFLAGS'
10293ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10294ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10295ac_compiler_gnu=$ac_cv_c_compiler_gnu
10296
10297fi
10298
10299
10300
10301
cristyc7083c12009-10-14 03:16:55 +000010302CFLAGS="$CL_CFLAGS $CFLAGS"
10303LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +000010304
cristy391f1ce2010-09-09 17:23:28 +000010305if test "$enable_opencl" != no; then
cristy6e3607c2011-09-13 13:59:17 +000010306 if test "X$ax_cv_check_cl_libcl" != Xno; then :
cristy391f1ce2010-09-09 17:23:28 +000010307 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
10308 fi
cristyfd9dcd42010-08-08 18:07:02 +000010309fi
cristy2e8b51d2009-10-17 18:26:15 +000010310
cristy3ed852e2009-09-05 21:47:34 +000010311########
10312#
10313# Check for large file support
10314#
10315########
10316# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +000010317if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010318 enableval=$enable_largefile;
10319fi
10320
10321if test "$enable_largefile" != no; then
10322
cristy8b350f62009-11-15 23:12:43 +000010323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010324$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010325if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010326 $as_echo_n "(cached) " >&6
10327else
10328 ac_cv_sys_largefile_CC=no
10329 if test "$GCC" != yes; then
10330 ac_save_CC=$CC
10331 while :; do
10332 # IRIX 6.2 and later do not support large files by default,
10333 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +000010334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010335/* end confdefs.h. */
10336#include <sys/types.h>
10337 /* Check that off_t can represent 2**63 - 1 correctly.
10338 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10339 since some C++ compilers masquerading as C compilers
10340 incorrectly reject 9223372036854775807. */
10341#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10342 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10343 && LARGE_OFF_T % 2147483647 == 1)
10344 ? 1 : -1];
10345int
10346main ()
10347{
10348
10349 ;
10350 return 0;
10351}
10352_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010353 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010354 break
cristy3ed852e2009-09-05 21:47:34 +000010355fi
cristy3ed852e2009-09-05 21:47:34 +000010356rm -f core conftest.err conftest.$ac_objext
10357 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +000010358 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010359 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +000010360fi
cristy3ed852e2009-09-05 21:47:34 +000010361rm -f core conftest.err conftest.$ac_objext
10362 break
10363 done
10364 CC=$ac_save_CC
10365 rm -f conftest.$ac_ext
10366 fi
10367fi
cristy8b350f62009-11-15 23:12:43 +000010368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000010369$as_echo "$ac_cv_sys_largefile_CC" >&6; }
10370 if test "$ac_cv_sys_largefile_CC" != no; then
10371 CC=$CC$ac_cv_sys_largefile_CC
10372 fi
10373
cristy8b350f62009-11-15 23:12:43 +000010374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010375$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010376if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010377 $as_echo_n "(cached) " >&6
10378else
10379 while :; do
cristy8b350f62009-11-15 23:12:43 +000010380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010381/* end confdefs.h. */
10382#include <sys/types.h>
10383 /* Check that off_t can represent 2**63 - 1 correctly.
10384 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10385 since some C++ compilers masquerading as C compilers
10386 incorrectly reject 9223372036854775807. */
10387#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10388 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10389 && LARGE_OFF_T % 2147483647 == 1)
10390 ? 1 : -1];
10391int
10392main ()
10393{
10394
10395 ;
10396 return 0;
10397}
10398_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010399if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010400 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +000010401fi
cristy3ed852e2009-09-05 21:47:34 +000010402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010404/* end confdefs.h. */
10405#define _FILE_OFFSET_BITS 64
10406#include <sys/types.h>
10407 /* Check that off_t can represent 2**63 - 1 correctly.
10408 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10409 since some C++ compilers masquerading as C compilers
10410 incorrectly reject 9223372036854775807. */
10411#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10412 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10413 && LARGE_OFF_T % 2147483647 == 1)
10414 ? 1 : -1];
10415int
10416main ()
10417{
10418
10419 ;
10420 return 0;
10421}
10422_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010423if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010424 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +000010425fi
cristy3ed852e2009-09-05 21:47:34 +000010426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10427 ac_cv_sys_file_offset_bits=unknown
10428 break
10429done
10430fi
cristy8b350f62009-11-15 23:12:43 +000010431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +000010432$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10433case $ac_cv_sys_file_offset_bits in #(
10434 no | unknown) ;;
10435 *)
10436cat >>confdefs.h <<_ACEOF
10437#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10438_ACEOF
10439;;
10440esac
10441rm -rf conftest*
10442 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +000010443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010444$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010445if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010446 $as_echo_n "(cached) " >&6
10447else
10448 while :; do
cristy8b350f62009-11-15 23:12:43 +000010449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010450/* end confdefs.h. */
10451#include <sys/types.h>
10452 /* Check that off_t can represent 2**63 - 1 correctly.
10453 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10454 since some C++ compilers masquerading as C compilers
10455 incorrectly reject 9223372036854775807. */
10456#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10457 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10458 && LARGE_OFF_T % 2147483647 == 1)
10459 ? 1 : -1];
10460int
10461main ()
10462{
10463
10464 ;
10465 return 0;
10466}
10467_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010468if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010469 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +000010470fi
cristy3ed852e2009-09-05 21:47:34 +000010471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010473/* end confdefs.h. */
10474#define _LARGE_FILES 1
10475#include <sys/types.h>
10476 /* Check that off_t can represent 2**63 - 1 correctly.
10477 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10478 since some C++ compilers masquerading as C compilers
10479 incorrectly reject 9223372036854775807. */
10480#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10481 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10482 && LARGE_OFF_T % 2147483647 == 1)
10483 ? 1 : -1];
10484int
10485main ()
10486{
10487
10488 ;
10489 return 0;
10490}
10491_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010492if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010493 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +000010494fi
cristy3ed852e2009-09-05 21:47:34 +000010495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10496 ac_cv_sys_large_files=unknown
10497 break
10498done
10499fi
cristy8b350f62009-11-15 23:12:43 +000010500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010501$as_echo "$ac_cv_sys_large_files" >&6; }
10502case $ac_cv_sys_large_files in #(
10503 no | unknown) ;;
10504 *)
10505cat >>confdefs.h <<_ACEOF
10506#define _LARGE_FILES $ac_cv_sys_large_files
10507_ACEOF
10508;;
10509esac
10510rm -rf conftest*
10511 fi
cristy14fefe52012-05-21 00:59:18 +000010512
10513
cristy3ed852e2009-09-05 21:47:34 +000010514fi
10515
cristy8b350f62009-11-15 23:12:43 +000010516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010517$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010518if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010519 $as_echo_n "(cached) " >&6
10520else
10521 while :; do
cristy8b350f62009-11-15 23:12:43 +000010522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010523/* end confdefs.h. */
10524#include <sys/types.h> /* for off_t */
10525 #include <stdio.h>
10526int
10527main ()
10528{
10529int (*fp) (FILE *, off_t, int) = fseeko;
10530 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10531 ;
10532 return 0;
10533}
10534_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010535if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010536 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +000010537fi
cristy8b350f62009-11-15 23:12:43 +000010538rm -f core conftest.err conftest.$ac_objext \
10539 conftest$ac_exeext conftest.$ac_ext
10540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010541/* end confdefs.h. */
10542#define _LARGEFILE_SOURCE 1
10543#include <sys/types.h> /* for off_t */
10544 #include <stdio.h>
10545int
10546main ()
10547{
10548int (*fp) (FILE *, off_t, int) = fseeko;
10549 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10550 ;
10551 return 0;
10552}
10553_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010554if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010555 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +000010556fi
cristy8b350f62009-11-15 23:12:43 +000010557rm -f core conftest.err conftest.$ac_objext \
10558 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010559 ac_cv_sys_largefile_source=unknown
10560 break
10561done
10562fi
cristy8b350f62009-11-15 23:12:43 +000010563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +000010564$as_echo "$ac_cv_sys_largefile_source" >&6; }
10565case $ac_cv_sys_largefile_source in #(
10566 no | unknown) ;;
10567 *)
10568cat >>confdefs.h <<_ACEOF
10569#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
10570_ACEOF
10571;;
10572esac
10573rm -rf conftest*
10574
10575# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
10576# in glibc 2.1.3, but that breaks too many other things.
10577# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
10578if test $ac_cv_sys_largefile_source != unknown; then
10579
cristy8b350f62009-11-15 23:12:43 +000010580$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010581
10582fi
10583
10584LFS_CPPFLAGS=''
10585if test "$enable_largefile" != no; then
cristyc1e0cc12011-09-21 16:41:16 +000010586 case $ac_cv_sys_file_offset_bits in
10587 no)
10588 # nothing to do here as the host supports LFS fine
10589 ;;
10590 unknown)
cristy8b350f62009-11-15 23:12:43 +000010591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +000010592$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010593 if test "$cross_compiling" = yes; then :
10594 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000010595$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000010596as_fn_error $? "cannot run test program while cross compiling
10597See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000010598else
cristy8b350f62009-11-15 23:12:43 +000010599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10600/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000010601#include <unistd.h>
10602 main () {
10603 exit(!(sizeof(off_t) == 8));
10604 }
cristyda16f162011-02-19 23:52:17 +000010605int
10606main ()
10607{
10608
10609 ;
10610 return 0;
10611}
cristy3ed852e2009-09-05 21:47:34 +000010612_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010613if ac_fn_c_try_run "$LINENO"; then :
10614 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010615
cristyad38abe2012-12-23 23:03:21 +000010616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10617$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000010618else
cristyad38abe2012-12-23 23:03:21 +000010619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10620$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000010621fi
cristy8b350f62009-11-15 23:12:43 +000010622rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10623 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010624fi
10625
cristyc1e0cc12011-09-21 16:41:16 +000010626 ;;
10627 *)
10628 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
10629 ;;
10630 esac
cristy3ed852e2009-09-05 21:47:34 +000010631 if test "$ac_cv_sys_large_files" != 'no'; then
10632 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
10633 fi
10634 if test "$ac_cv_sys_largefile_source" != 'no'; then
10635 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
10636 fi
10637fi
10638
10639
cristy3ed852e2009-09-05 21:47:34 +000010640# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +000010641enable_dlopen=yes
10642
10643
10644
10645case `pwd` in
10646 *\ * | *\ *)
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10648$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10649esac
10650
10651
10652
cristy99bd5232011-12-07 14:38:20 +000010653macro_version='2.4.2'
10654macro_revision='1.3337'
cristy73bd4a52010-10-05 11:24:23 +000010655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668ltmain="$ac_aux_dir/ltmain.sh"
10669
cristy0c60a692010-11-04 01:09:47 +000010670# Backslashify metacharacters that are still active within
10671# double-quoted strings.
10672sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10673
10674# Same as above, but do not quote variable references.
10675double_quote_subst='s/\(["`\\]\)/\\\1/g'
10676
10677# Sed substitution to delay expansion of an escaped shell variable in a
10678# double_quote_subst'ed string.
10679delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10680
10681# Sed substitution to delay expansion of an escaped single quote.
10682delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10683
10684# Sed substitution to avoid accidental globbing in evaled expressions
10685no_glob_subst='s/\*/\\\*/g'
10686
cristy73bd4a52010-10-05 11:24:23 +000010687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
10688$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010689if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010690 $as_echo_n "(cached) " >&6
10691else
10692 if test -n "$NM"; then
10693 # Let the user override the test.
10694 lt_cv_path_NM="$NM"
10695else
10696 lt_nm_to_check="${ac_tool_prefix}nm"
10697 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
10698 lt_nm_to_check="$lt_nm_to_check nm"
10699 fi
10700 for lt_tmp_nm in $lt_nm_to_check; do
10701 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10702 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
10703 IFS="$lt_save_ifs"
10704 test -z "$ac_dir" && ac_dir=.
10705 tmp_nm="$ac_dir/$lt_tmp_nm"
10706 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
10707 # Check to see if the nm accepts a BSD-compat flag.
10708 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
10709 # nm: unknown option "B" ignored
10710 # Tru64's nm complains that /dev/null is an invalid object file
10711 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
10712 */dev/null* | *'Invalid file or object type'*)
10713 lt_cv_path_NM="$tmp_nm -B"
10714 break
10715 ;;
10716 *)
10717 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
10718 */dev/null*)
10719 lt_cv_path_NM="$tmp_nm -p"
10720 break
10721 ;;
10722 *)
10723 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
10724 continue # so that we can try to find one that supports BSD flags
10725 ;;
10726 esac
10727 ;;
10728 esac
10729 fi
10730 done
10731 IFS="$lt_save_ifs"
10732 done
10733 : ${lt_cv_path_NM=no}
10734fi
10735fi
10736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
10737$as_echo "$lt_cv_path_NM" >&6; }
10738if test "$lt_cv_path_NM" != "no"; then
10739 NM="$lt_cv_path_NM"
10740else
10741 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +000010742 if test -n "$DUMPBIN"; then :
10743 # Let the user override the test.
10744 else
10745 if test -n "$ac_tool_prefix"; then
10746 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000010747 do
10748 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10749set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10751$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010752if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010753 $as_echo_n "(cached) " >&6
10754else
10755 if test -n "$DUMPBIN"; then
10756 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
10757else
10758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10759for as_dir in $PATH
10760do
10761 IFS=$as_save_IFS
10762 test -z "$as_dir" && as_dir=.
10763 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010765 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
10766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10767 break 2
10768 fi
10769done
10770 done
10771IFS=$as_save_IFS
10772
10773fi
10774fi
10775DUMPBIN=$ac_cv_prog_DUMPBIN
10776if test -n "$DUMPBIN"; then
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
10778$as_echo "$DUMPBIN" >&6; }
10779else
10780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10781$as_echo "no" >&6; }
10782fi
10783
10784
10785 test -n "$DUMPBIN" && break
10786 done
10787fi
10788if test -z "$DUMPBIN"; then
10789 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +000010790 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000010791do
10792 # Extract the first word of "$ac_prog", so it can be a program name with args.
10793set dummy $ac_prog; ac_word=$2
10794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10795$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010796if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010797 $as_echo_n "(cached) " >&6
10798else
10799 if test -n "$ac_ct_DUMPBIN"; then
10800 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
10801else
10802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10803for as_dir in $PATH
10804do
10805 IFS=$as_save_IFS
10806 test -z "$as_dir" && as_dir=.
10807 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010809 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
10810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10811 break 2
10812 fi
10813done
10814 done
10815IFS=$as_save_IFS
10816
10817fi
10818fi
10819ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
10820if test -n "$ac_ct_DUMPBIN"; then
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
10822$as_echo "$ac_ct_DUMPBIN" >&6; }
10823else
10824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10825$as_echo "no" >&6; }
10826fi
10827
10828
10829 test -n "$ac_ct_DUMPBIN" && break
10830done
10831
10832 if test "x$ac_ct_DUMPBIN" = x; then
10833 DUMPBIN=":"
10834 else
10835 case $cross_compiling:$ac_tool_warned in
10836yes:)
10837{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10838$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10839ac_tool_warned=yes ;;
10840esac
10841 DUMPBIN=$ac_ct_DUMPBIN
10842 fi
10843fi
10844
cristy0c60a692010-11-04 01:09:47 +000010845 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
10846 *COFF*)
10847 DUMPBIN="$DUMPBIN -symbols"
10848 ;;
10849 *)
10850 DUMPBIN=:
10851 ;;
10852 esac
10853 fi
cristy73bd4a52010-10-05 11:24:23 +000010854
10855 if test "$DUMPBIN" != ":"; then
10856 NM="$DUMPBIN"
10857 fi
10858fi
10859test -z "$NM" && NM=nm
10860
10861
10862
10863
10864
10865
10866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
10867$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010868if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010869 $as_echo_n "(cached) " >&6
10870else
10871 lt_cv_nm_interface="BSD nm"
10872 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000010873 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010874 (eval "$ac_compile" 2>conftest.err)
10875 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000010876 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010877 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
10878 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000010879 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010880 cat conftest.out >&5
10881 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
10882 lt_cv_nm_interface="MS dumpbin"
10883 fi
10884 rm -f conftest*
10885fi
10886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
10887$as_echo "$lt_cv_nm_interface" >&6; }
10888
10889# find the maximum length of command line arguments
10890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
10891$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010892if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010893 $as_echo_n "(cached) " >&6
10894else
10895 i=0
10896 teststring="ABCD"
10897
10898 case $build_os in
10899 msdosdjgpp*)
10900 # On DJGPP, this test can blow up pretty badly due to problems in libc
10901 # (any single argument exceeding 2000 bytes causes a buffer overrun
10902 # during glob expansion). Even if it were fixed, the result of this
10903 # check would be larger than it should be.
10904 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10905 ;;
10906
10907 gnu*)
10908 # Under GNU Hurd, this test is not required because there is
10909 # no limit to the length of command line arguments.
10910 # Libtool will interpret -1 as no limit whatsoever
10911 lt_cv_sys_max_cmd_len=-1;
10912 ;;
10913
10914 cygwin* | mingw* | cegcc*)
10915 # On Win9x/ME, this test blows up -- it succeeds, but takes
10916 # about 5 minutes as the teststring grows exponentially.
10917 # Worse, since 9x/ME are not pre-emptively multitasking,
10918 # you end up with a "frozen" computer, even though with patience
10919 # the test eventually succeeds (with a max line length of 256k).
10920 # Instead, let's just punt: use the minimum linelength reported by
10921 # all of the supported platforms: 8192 (on NT/2K/XP).
10922 lt_cv_sys_max_cmd_len=8192;
10923 ;;
10924
cristy0c60a692010-11-04 01:09:47 +000010925 mint*)
10926 # On MiNT this can take a long time and run out of memory.
10927 lt_cv_sys_max_cmd_len=8192;
10928 ;;
10929
cristy73bd4a52010-10-05 11:24:23 +000010930 amigaos*)
10931 # On AmigaOS with pdksh, this test takes hours, literally.
10932 # So we just punt and use a minimum line length of 8192.
10933 lt_cv_sys_max_cmd_len=8192;
10934 ;;
10935
10936 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
10937 # This has been around since 386BSD, at least. Likely further.
10938 if test -x /sbin/sysctl; then
10939 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10940 elif test -x /usr/sbin/sysctl; then
10941 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10942 else
10943 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
10944 fi
10945 # And add a safety zone
10946 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10947 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10948 ;;
10949
10950 interix*)
10951 # We know the value 262144 and hardcode it with a safety zone (like BSD)
10952 lt_cv_sys_max_cmd_len=196608
10953 ;;
10954
cristy99bd5232011-12-07 14:38:20 +000010955 os2*)
10956 # The test takes a long time on OS/2.
10957 lt_cv_sys_max_cmd_len=8192
10958 ;;
10959
cristy73bd4a52010-10-05 11:24:23 +000010960 osf*)
10961 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
10962 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
10963 # nice to cause kernel panics so lets avoid the loop below.
10964 # First set a reasonable default.
10965 lt_cv_sys_max_cmd_len=16384
10966 #
10967 if test -x /sbin/sysconfig; then
10968 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
10969 *1*) lt_cv_sys_max_cmd_len=-1 ;;
10970 esac
10971 fi
10972 ;;
10973 sco3.2v5*)
10974 lt_cv_sys_max_cmd_len=102400
10975 ;;
10976 sysv5* | sco5v6* | sysv4.2uw2*)
10977 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
10978 if test -n "$kargmax"; then
10979 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
10980 else
10981 lt_cv_sys_max_cmd_len=32768
10982 fi
10983 ;;
10984 *)
10985 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
10986 if test -n "$lt_cv_sys_max_cmd_len"; then
10987 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10988 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10989 else
10990 # Make teststring a little bigger before we do anything with it.
10991 # a 1K string should be a reasonable start.
10992 for i in 1 2 3 4 5 6 7 8 ; do
10993 teststring=$teststring$teststring
10994 done
10995 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10996 # If test is not a shell built-in, we'll probably end up computing a
10997 # maximum length that is only half of the actual maximum length, but
10998 # we can't tell.
cristy99bd5232011-12-07 14:38:20 +000010999 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
cristy0c60a692010-11-04 01:09:47 +000011000 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +000011001 test $i != 17 # 1/2 MB should be enough
11002 do
11003 i=`expr $i + 1`
11004 teststring=$teststring$teststring
11005 done
11006 # Only check the string length outside the loop.
11007 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11008 teststring=
11009 # Add a significant safety factor because C++ compilers can tack on
11010 # massive amounts of additional arguments before passing them to the
11011 # linker. It appears as though 1/2 is a usable value.
11012 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11013 fi
11014 ;;
11015 esac
11016
11017fi
11018
11019if test -n $lt_cv_sys_max_cmd_len ; then
11020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11021$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11022else
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11024$as_echo "none" >&6; }
11025fi
11026max_cmd_len=$lt_cv_sys_max_cmd_len
11027
11028
11029
11030
11031
11032
11033: ${CP="cp -f"}
11034: ${MV="mv -f"}
11035: ${RM="rm -f"}
11036
11037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11038$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11039# Try some XSI features
11040xsi_shell=no
11041( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +000011042 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
11043 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +000011044 && eval 'test $(( 1 + 1 )) -eq 2 \
11045 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11046 && xsi_shell=yes
11047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11048$as_echo "$xsi_shell" >&6; }
11049
11050
11051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11052$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11053lt_shell_append=no
11054( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11055 >/dev/null 2>&1 \
11056 && lt_shell_append=yes
11057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11058$as_echo "$lt_shell_append" >&6; }
11059
11060
11061if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11062 lt_unset=unset
11063else
11064 lt_unset=false
11065fi
11066
11067
11068
11069
11070
11071# test EBCDIC or ASCII
11072case `echo X|tr X '\101'` in
11073 A) # ASCII based system
11074 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11075 lt_SP2NL='tr \040 \012'
11076 lt_NL2SP='tr \015\012 \040\040'
11077 ;;
11078 *) # EBCDIC based system
11079 lt_SP2NL='tr \100 \n'
11080 lt_NL2SP='tr \r\n \100\100'
11081 ;;
11082esac
11083
11084
11085
11086
11087
11088
11089
11090
11091
cristyda16f162011-02-19 23:52:17 +000011092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11093$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11094if ${lt_cv_to_host_file_cmd+:} false; then :
11095 $as_echo_n "(cached) " >&6
11096else
11097 case $host in
11098 *-*-mingw* )
11099 case $build in
11100 *-*-mingw* ) # actually msys
11101 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11102 ;;
11103 *-*-cygwin* )
11104 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11105 ;;
11106 * ) # otherwise, assume *nix
11107 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11108 ;;
11109 esac
11110 ;;
11111 *-*-cygwin* )
11112 case $build in
11113 *-*-mingw* ) # actually msys
11114 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11115 ;;
11116 *-*-cygwin* )
11117 lt_cv_to_host_file_cmd=func_convert_file_noop
11118 ;;
11119 * ) # otherwise, assume *nix
11120 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11121 ;;
11122 esac
11123 ;;
11124 * ) # unhandled hosts (and "normal" native builds)
11125 lt_cv_to_host_file_cmd=func_convert_file_noop
11126 ;;
11127esac
11128
11129fi
11130
11131to_host_file_cmd=$lt_cv_to_host_file_cmd
11132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11133$as_echo "$lt_cv_to_host_file_cmd" >&6; }
11134
11135
11136
11137
11138
11139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11140$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11141if ${lt_cv_to_tool_file_cmd+:} false; then :
11142 $as_echo_n "(cached) " >&6
11143else
11144 #assume ordinary cross tools, or native build.
11145lt_cv_to_tool_file_cmd=func_convert_file_noop
11146case $host in
11147 *-*-mingw* )
11148 case $build in
11149 *-*-mingw* ) # actually msys
11150 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11151 ;;
11152 esac
11153 ;;
11154esac
11155
11156fi
11157
11158to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11160$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11161
11162
11163
11164
11165
cristy73bd4a52010-10-05 11:24:23 +000011166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11167$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011168if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011169 $as_echo_n "(cached) " >&6
11170else
11171 lt_cv_ld_reload_flag='-r'
11172fi
11173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11174$as_echo "$lt_cv_ld_reload_flag" >&6; }
11175reload_flag=$lt_cv_ld_reload_flag
11176case $reload_flag in
11177"" | " "*) ;;
11178*) reload_flag=" $reload_flag" ;;
11179esac
11180reload_cmds='$LD$reload_flag -o $output$reload_objs'
11181case $host_os in
cristyda16f162011-02-19 23:52:17 +000011182 cygwin* | mingw* | pw32* | cegcc*)
11183 if test "$GCC" != yes; then
11184 reload_cmds=false
11185 fi
11186 ;;
cristy73bd4a52010-10-05 11:24:23 +000011187 darwin*)
11188 if test "$GCC" = yes; then
11189 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11190 else
11191 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11192 fi
11193 ;;
11194esac
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204if test -n "$ac_tool_prefix"; then
11205 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11206set dummy ${ac_tool_prefix}objdump; ac_word=$2
11207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11208$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011209if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011210 $as_echo_n "(cached) " >&6
11211else
11212 if test -n "$OBJDUMP"; then
11213 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11214else
11215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11216for as_dir in $PATH
11217do
11218 IFS=$as_save_IFS
11219 test -z "$as_dir" && as_dir=.
11220 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011222 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11224 break 2
11225 fi
11226done
11227 done
11228IFS=$as_save_IFS
11229
11230fi
11231fi
11232OBJDUMP=$ac_cv_prog_OBJDUMP
11233if test -n "$OBJDUMP"; then
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11235$as_echo "$OBJDUMP" >&6; }
11236else
11237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11238$as_echo "no" >&6; }
11239fi
11240
11241
11242fi
11243if test -z "$ac_cv_prog_OBJDUMP"; then
11244 ac_ct_OBJDUMP=$OBJDUMP
11245 # Extract the first word of "objdump", so it can be a program name with args.
11246set dummy objdump; ac_word=$2
11247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11248$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011249if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011250 $as_echo_n "(cached) " >&6
11251else
11252 if test -n "$ac_ct_OBJDUMP"; then
11253 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11254else
11255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11256for as_dir in $PATH
11257do
11258 IFS=$as_save_IFS
11259 test -z "$as_dir" && as_dir=.
11260 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011262 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11264 break 2
11265 fi
11266done
11267 done
11268IFS=$as_save_IFS
11269
11270fi
11271fi
11272ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11273if test -n "$ac_ct_OBJDUMP"; then
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11275$as_echo "$ac_ct_OBJDUMP" >&6; }
11276else
11277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11278$as_echo "no" >&6; }
11279fi
11280
11281 if test "x$ac_ct_OBJDUMP" = x; then
11282 OBJDUMP="false"
11283 else
11284 case $cross_compiling:$ac_tool_warned in
11285yes:)
11286{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11287$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11288ac_tool_warned=yes ;;
11289esac
11290 OBJDUMP=$ac_ct_OBJDUMP
11291 fi
11292else
11293 OBJDUMP="$ac_cv_prog_OBJDUMP"
11294fi
11295
11296test -z "$OBJDUMP" && OBJDUMP=objdump
11297
11298
11299
11300
11301
11302
11303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11304$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011305if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011306 $as_echo_n "(cached) " >&6
11307else
11308 lt_cv_file_magic_cmd='$MAGIC_CMD'
11309lt_cv_file_magic_test_file=
11310lt_cv_deplibs_check_method='unknown'
11311# Need to set the preceding variable on all platforms that support
11312# interlibrary dependencies.
11313# 'none' -- dependencies not supported.
11314# `unknown' -- same as none, but documents that we really don't know.
11315# 'pass_all' -- all dependencies passed with no checks.
11316# 'test_compile' -- check by making test program.
11317# 'file_magic [[regex]]' -- check by looking for files in library path
11318# which responds to the $file_magic_cmd with a given extended regex.
11319# If you have `file' or equivalent on your system and you're not sure
11320# whether `pass_all' will *always* work, you probably want this one.
11321
11322case $host_os in
11323aix[4-9]*)
11324 lt_cv_deplibs_check_method=pass_all
11325 ;;
11326
11327beos*)
11328 lt_cv_deplibs_check_method=pass_all
11329 ;;
11330
11331bsdi[45]*)
11332 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11333 lt_cv_file_magic_cmd='/usr/bin/file -L'
11334 lt_cv_file_magic_test_file=/shlib/libc.so
11335 ;;
11336
11337cygwin*)
11338 # func_win32_libid is a shell function defined in ltmain.sh
11339 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11340 lt_cv_file_magic_cmd='func_win32_libid'
11341 ;;
11342
11343mingw* | pw32*)
11344 # Base MSYS/MinGW do not provide the 'file' command needed by
11345 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11346 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000011347 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11348 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000011349 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11350 lt_cv_file_magic_cmd='func_win32_libid'
11351 else
cristy0c60a692010-11-04 01:09:47 +000011352 # Keep this pattern in sync with the one in func_win32_libid.
11353 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 +000011354 lt_cv_file_magic_cmd='$OBJDUMP -f'
11355 fi
11356 ;;
11357
cristy0c60a692010-11-04 01:09:47 +000011358cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000011359 # use the weaker test based on 'objdump'. See mingw*.
11360 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11361 lt_cv_file_magic_cmd='$OBJDUMP -f'
11362 ;;
11363
11364darwin* | rhapsody*)
11365 lt_cv_deplibs_check_method=pass_all
11366 ;;
11367
11368freebsd* | dragonfly*)
11369 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11370 case $host_cpu in
11371 i*86 )
11372 # Not sure whether the presence of OpenBSD here was a mistake.
11373 # Let's accept both of them until this is cleared up.
11374 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11375 lt_cv_file_magic_cmd=/usr/bin/file
11376 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11377 ;;
11378 esac
11379 else
11380 lt_cv_deplibs_check_method=pass_all
11381 fi
11382 ;;
11383
11384gnu*)
11385 lt_cv_deplibs_check_method=pass_all
11386 ;;
11387
cristy0c60a692010-11-04 01:09:47 +000011388haiku*)
11389 lt_cv_deplibs_check_method=pass_all
11390 ;;
11391
cristy73bd4a52010-10-05 11:24:23 +000011392hpux10.20* | hpux11*)
11393 lt_cv_file_magic_cmd=/usr/bin/file
11394 case $host_cpu in
11395 ia64*)
11396 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11397 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11398 ;;
11399 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000011400 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 +000011401 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11402 ;;
11403 *)
cristy0c60a692010-11-04 01:09:47 +000011404 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 +000011405 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11406 ;;
11407 esac
11408 ;;
11409
11410interix[3-9]*)
11411 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11412 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11413 ;;
11414
11415irix5* | irix6* | nonstopux*)
11416 case $LD in
11417 *-32|*"-32 ") libmagic=32-bit;;
11418 *-n32|*"-n32 ") libmagic=N32;;
11419 *-64|*"-64 ") libmagic=64-bit;;
11420 *) libmagic=never-match;;
11421 esac
11422 lt_cv_deplibs_check_method=pass_all
11423 ;;
11424
cristy99bd5232011-12-07 14:38:20 +000011425# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000011426linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000011427 lt_cv_deplibs_check_method=pass_all
11428 ;;
11429
11430netbsd*)
11431 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11432 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11433 else
11434 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11435 fi
11436 ;;
11437
11438newos6*)
11439 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11440 lt_cv_file_magic_cmd=/usr/bin/file
11441 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11442 ;;
11443
11444*nto* | *qnx*)
11445 lt_cv_deplibs_check_method=pass_all
11446 ;;
11447
11448openbsd*)
11449 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11450 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11451 else
11452 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11453 fi
11454 ;;
11455
11456osf3* | osf4* | osf5*)
11457 lt_cv_deplibs_check_method=pass_all
11458 ;;
11459
11460rdos*)
11461 lt_cv_deplibs_check_method=pass_all
11462 ;;
11463
11464solaris*)
11465 lt_cv_deplibs_check_method=pass_all
11466 ;;
11467
11468sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11469 lt_cv_deplibs_check_method=pass_all
11470 ;;
11471
11472sysv4 | sysv4.3*)
11473 case $host_vendor in
11474 motorola)
11475 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]'
11476 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11477 ;;
11478 ncr)
11479 lt_cv_deplibs_check_method=pass_all
11480 ;;
11481 sequent)
11482 lt_cv_file_magic_cmd='/bin/file'
11483 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11484 ;;
11485 sni)
11486 lt_cv_file_magic_cmd='/bin/file'
11487 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11488 lt_cv_file_magic_test_file=/lib/libc.so
11489 ;;
11490 siemens)
11491 lt_cv_deplibs_check_method=pass_all
11492 ;;
11493 pc)
11494 lt_cv_deplibs_check_method=pass_all
11495 ;;
11496 esac
11497 ;;
11498
11499tpf*)
11500 lt_cv_deplibs_check_method=pass_all
11501 ;;
11502esac
11503
11504fi
11505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11506$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000011507
11508file_magic_glob=
11509want_nocaseglob=no
11510if test "$build" = "$host"; then
11511 case $host_os in
11512 mingw* | pw32*)
11513 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11514 want_nocaseglob=yes
11515 else
11516 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11517 fi
11518 ;;
11519 esac
11520fi
11521
cristy73bd4a52010-10-05 11:24:23 +000011522file_magic_cmd=$lt_cv_file_magic_cmd
11523deplibs_check_method=$lt_cv_deplibs_check_method
11524test -z "$deplibs_check_method" && deplibs_check_method=unknown
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
cristyda16f162011-02-19 23:52:17 +000011537
11538
11539
11540
11541
11542
11543
11544
11545
11546
cristy73bd4a52010-10-05 11:24:23 +000011547if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000011548 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11549set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11551$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011552if ${ac_cv_prog_DLLTOOL+:} false; then :
11553 $as_echo_n "(cached) " >&6
11554else
11555 if test -n "$DLLTOOL"; then
11556 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11557else
11558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11559for as_dir in $PATH
11560do
11561 IFS=$as_save_IFS
11562 test -z "$as_dir" && as_dir=.
11563 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011565 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11567 break 2
11568 fi
11569done
11570 done
11571IFS=$as_save_IFS
11572
11573fi
11574fi
11575DLLTOOL=$ac_cv_prog_DLLTOOL
11576if test -n "$DLLTOOL"; then
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11578$as_echo "$DLLTOOL" >&6; }
11579else
11580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11581$as_echo "no" >&6; }
11582fi
11583
11584
11585fi
11586if test -z "$ac_cv_prog_DLLTOOL"; then
11587 ac_ct_DLLTOOL=$DLLTOOL
11588 # Extract the first word of "dlltool", so it can be a program name with args.
11589set dummy dlltool; ac_word=$2
11590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11591$as_echo_n "checking for $ac_word... " >&6; }
11592if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11593 $as_echo_n "(cached) " >&6
11594else
11595 if test -n "$ac_ct_DLLTOOL"; then
11596 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11597else
11598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11599for as_dir in $PATH
11600do
11601 IFS=$as_save_IFS
11602 test -z "$as_dir" && as_dir=.
11603 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011605 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11607 break 2
11608 fi
11609done
11610 done
11611IFS=$as_save_IFS
11612
11613fi
11614fi
11615ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11616if test -n "$ac_ct_DLLTOOL"; then
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11618$as_echo "$ac_ct_DLLTOOL" >&6; }
11619else
11620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11621$as_echo "no" >&6; }
11622fi
11623
11624 if test "x$ac_ct_DLLTOOL" = x; then
11625 DLLTOOL="false"
11626 else
11627 case $cross_compiling:$ac_tool_warned in
11628yes:)
11629{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11630$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11631ac_tool_warned=yes ;;
11632esac
11633 DLLTOOL=$ac_ct_DLLTOOL
11634 fi
11635else
11636 DLLTOOL="$ac_cv_prog_DLLTOOL"
11637fi
11638
11639test -z "$DLLTOOL" && DLLTOOL=dlltool
11640
11641
11642
11643
11644
11645
11646
11647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
11648$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
11649if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
11650 $as_echo_n "(cached) " >&6
11651else
11652 lt_cv_sharedlib_from_linklib_cmd='unknown'
11653
11654case $host_os in
11655cygwin* | mingw* | pw32* | cegcc*)
11656 # two different shell functions defined in ltmain.sh
11657 # decide which to use based on capabilities of $DLLTOOL
11658 case `$DLLTOOL --help 2>&1` in
11659 *--identify-strict*)
11660 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
11661 ;;
11662 *)
11663 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
11664 ;;
11665 esac
11666 ;;
11667*)
11668 # fallback: assume linklib IS sharedlib
11669 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
11670 ;;
11671esac
11672
11673fi
11674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
11675$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
11676sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
11677test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
11678
11679
11680
11681
11682
11683
11684
11685if test -n "$ac_tool_prefix"; then
11686 for ac_prog in ar
11687 do
11688 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11689set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11691$as_echo_n "checking for $ac_word... " >&6; }
11692if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011693 $as_echo_n "(cached) " >&6
11694else
11695 if test -n "$AR"; then
11696 ac_cv_prog_AR="$AR" # Let the user override the test.
11697else
11698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11699for as_dir in $PATH
11700do
11701 IFS=$as_save_IFS
11702 test -z "$as_dir" && as_dir=.
11703 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011705 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11707 break 2
11708 fi
11709done
11710 done
11711IFS=$as_save_IFS
11712
11713fi
11714fi
11715AR=$ac_cv_prog_AR
11716if test -n "$AR"; then
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11718$as_echo "$AR" >&6; }
11719else
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11721$as_echo "no" >&6; }
11722fi
11723
11724
cristyda16f162011-02-19 23:52:17 +000011725 test -n "$AR" && break
11726 done
cristy73bd4a52010-10-05 11:24:23 +000011727fi
cristyda16f162011-02-19 23:52:17 +000011728if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000011729 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000011730 for ac_prog in ar
11731do
11732 # Extract the first word of "$ac_prog", so it can be a program name with args.
11733set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11735$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011736if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011737 $as_echo_n "(cached) " >&6
11738else
11739 if test -n "$ac_ct_AR"; then
11740 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11741else
11742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11743for as_dir in $PATH
11744do
11745 IFS=$as_save_IFS
11746 test -z "$as_dir" && as_dir=.
11747 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011749 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11751 break 2
11752 fi
11753done
11754 done
11755IFS=$as_save_IFS
11756
11757fi
11758fi
11759ac_ct_AR=$ac_cv_prog_ac_ct_AR
11760if test -n "$ac_ct_AR"; then
11761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11762$as_echo "$ac_ct_AR" >&6; }
11763else
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11765$as_echo "no" >&6; }
11766fi
11767
cristyda16f162011-02-19 23:52:17 +000011768
11769 test -n "$ac_ct_AR" && break
11770done
11771
cristy73bd4a52010-10-05 11:24:23 +000011772 if test "x$ac_ct_AR" = x; then
11773 AR="false"
11774 else
11775 case $cross_compiling:$ac_tool_warned in
11776yes:)
11777{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11778$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11779ac_tool_warned=yes ;;
11780esac
11781 AR=$ac_ct_AR
11782 fi
cristy73bd4a52010-10-05 11:24:23 +000011783fi
11784
cristyda16f162011-02-19 23:52:17 +000011785: ${AR=ar}
11786: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000011787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
cristyda16f162011-02-19 23:52:17 +000011798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
11799$as_echo_n "checking for archiver @FILE support... " >&6; }
11800if ${lt_cv_ar_at_file+:} false; then :
11801 $as_echo_n "(cached) " >&6
11802else
11803 lt_cv_ar_at_file=no
11804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11805/* end confdefs.h. */
11806
11807int
11808main ()
11809{
11810
11811 ;
11812 return 0;
11813}
11814_ACEOF
11815if ac_fn_c_try_compile "$LINENO"; then :
11816 echo conftest.$ac_objext > conftest.lst
11817 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
11818 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11819 (eval $lt_ar_try) 2>&5
11820 ac_status=$?
11821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11822 test $ac_status = 0; }
11823 if test "$ac_status" -eq 0; then
11824 # Ensure the archiver fails upon bogus file names.
11825 rm -f conftest.$ac_objext libconftest.a
11826 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11827 (eval $lt_ar_try) 2>&5
11828 ac_status=$?
11829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11830 test $ac_status = 0; }
11831 if test "$ac_status" -ne 0; then
11832 lt_cv_ar_at_file=@
11833 fi
11834 fi
11835 rm -f conftest.* libconftest.a
11836
11837fi
11838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11839
11840fi
11841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
11842$as_echo "$lt_cv_ar_at_file" >&6; }
11843
11844if test "x$lt_cv_ar_at_file" = xno; then
11845 archiver_list_spec=
11846else
11847 archiver_list_spec=$lt_cv_ar_at_file
11848fi
11849
11850
11851
11852
11853
11854
11855
cristy73bd4a52010-10-05 11:24:23 +000011856if test -n "$ac_tool_prefix"; then
11857 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11858set dummy ${ac_tool_prefix}strip; ac_word=$2
11859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11860$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011861if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011862 $as_echo_n "(cached) " >&6
11863else
11864 if test -n "$STRIP"; then
11865 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11866else
11867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11868for as_dir in $PATH
11869do
11870 IFS=$as_save_IFS
11871 test -z "$as_dir" && as_dir=.
11872 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011874 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11876 break 2
11877 fi
11878done
11879 done
11880IFS=$as_save_IFS
11881
11882fi
11883fi
11884STRIP=$ac_cv_prog_STRIP
11885if test -n "$STRIP"; then
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11887$as_echo "$STRIP" >&6; }
11888else
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11890$as_echo "no" >&6; }
11891fi
11892
11893
11894fi
11895if test -z "$ac_cv_prog_STRIP"; then
11896 ac_ct_STRIP=$STRIP
11897 # Extract the first word of "strip", so it can be a program name with args.
11898set dummy strip; ac_word=$2
11899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11900$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011901if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011902 $as_echo_n "(cached) " >&6
11903else
11904 if test -n "$ac_ct_STRIP"; then
11905 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11906else
11907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11908for as_dir in $PATH
11909do
11910 IFS=$as_save_IFS
11911 test -z "$as_dir" && as_dir=.
11912 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011914 ac_cv_prog_ac_ct_STRIP="strip"
11915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11916 break 2
11917 fi
11918done
11919 done
11920IFS=$as_save_IFS
11921
11922fi
11923fi
11924ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11925if test -n "$ac_ct_STRIP"; then
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11927$as_echo "$ac_ct_STRIP" >&6; }
11928else
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11930$as_echo "no" >&6; }
11931fi
11932
11933 if test "x$ac_ct_STRIP" = x; then
11934 STRIP=":"
11935 else
11936 case $cross_compiling:$ac_tool_warned in
11937yes:)
11938{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11939$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11940ac_tool_warned=yes ;;
11941esac
11942 STRIP=$ac_ct_STRIP
11943 fi
11944else
11945 STRIP="$ac_cv_prog_STRIP"
11946fi
11947
11948test -z "$STRIP" && STRIP=:
11949
11950
11951
11952
11953
11954
11955if test -n "$ac_tool_prefix"; then
11956 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11957set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11959$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011960if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011961 $as_echo_n "(cached) " >&6
11962else
11963 if test -n "$RANLIB"; then
11964 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11965else
11966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11967for as_dir in $PATH
11968do
11969 IFS=$as_save_IFS
11970 test -z "$as_dir" && as_dir=.
11971 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011973 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11975 break 2
11976 fi
11977done
11978 done
11979IFS=$as_save_IFS
11980
11981fi
11982fi
11983RANLIB=$ac_cv_prog_RANLIB
11984if test -n "$RANLIB"; then
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11986$as_echo "$RANLIB" >&6; }
11987else
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11989$as_echo "no" >&6; }
11990fi
11991
11992
11993fi
11994if test -z "$ac_cv_prog_RANLIB"; then
11995 ac_ct_RANLIB=$RANLIB
11996 # Extract the first word of "ranlib", so it can be a program name with args.
11997set dummy ranlib; ac_word=$2
11998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11999$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012000if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012001 $as_echo_n "(cached) " >&6
12002else
12003 if test -n "$ac_ct_RANLIB"; then
12004 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12005else
12006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12007for as_dir in $PATH
12008do
12009 IFS=$as_save_IFS
12010 test -z "$as_dir" && as_dir=.
12011 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012013 ac_cv_prog_ac_ct_RANLIB="ranlib"
12014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12015 break 2
12016 fi
12017done
12018 done
12019IFS=$as_save_IFS
12020
12021fi
12022fi
12023ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12024if test -n "$ac_ct_RANLIB"; then
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12026$as_echo "$ac_ct_RANLIB" >&6; }
12027else
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12029$as_echo "no" >&6; }
12030fi
12031
12032 if test "x$ac_ct_RANLIB" = x; then
12033 RANLIB=":"
12034 else
12035 case $cross_compiling:$ac_tool_warned in
12036yes:)
12037{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12038$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12039ac_tool_warned=yes ;;
12040esac
12041 RANLIB=$ac_ct_RANLIB
12042 fi
12043else
12044 RANLIB="$ac_cv_prog_RANLIB"
12045fi
12046
12047test -z "$RANLIB" && RANLIB=:
12048
12049
12050
12051
12052
12053
12054# Determine commands to create old-style static archives.
12055old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12056old_postinstall_cmds='chmod 644 $oldlib'
12057old_postuninstall_cmds=
12058
12059if test -n "$RANLIB"; then
12060 case $host_os in
12061 openbsd*)
cristy99bd5232011-12-07 14:38:20 +000012062 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012063 ;;
12064 *)
cristy99bd5232011-12-07 14:38:20 +000012065 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012066 ;;
12067 esac
cristy99bd5232011-12-07 14:38:20 +000012068 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012069fi
12070
cristy0c60a692010-11-04 01:09:47 +000012071case $host_os in
12072 darwin*)
12073 lock_old_archive_extraction=yes ;;
12074 *)
12075 lock_old_archive_extraction=no ;;
12076esac
12077
12078
12079
12080
12081
12082
cristy73bd4a52010-10-05 11:24:23 +000012083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116# If no C compiler was specified, use CC.
12117LTCC=${LTCC-"$CC"}
12118
12119# If no C compiler flags were specified, use CFLAGS.
12120LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12121
12122# Allow CC to be a program name with arguments.
12123compiler=$CC
12124
12125
12126# Check for command to grab the raw symbol name followed by C symbol from nm.
12127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12128$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012129if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012130 $as_echo_n "(cached) " >&6
12131else
12132
12133# These are sane defaults that work on at least a few old systems.
12134# [They come from Ultrix. What could be older than Ultrix?!! ;)]
12135
12136# Character class describing NM global symbol codes.
12137symcode='[BCDEGRST]'
12138
12139# Regexp to match symbols that can be accessed directly from C.
12140sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12141
12142# Define system-specific variables.
12143case $host_os in
12144aix*)
12145 symcode='[BCDT]'
12146 ;;
12147cygwin* | mingw* | pw32* | cegcc*)
12148 symcode='[ABCDGISTW]'
12149 ;;
12150hpux*)
12151 if test "$host_cpu" = ia64; then
12152 symcode='[ABCDEGRST]'
12153 fi
12154 ;;
12155irix* | nonstopux*)
12156 symcode='[BCDEGRST]'
12157 ;;
12158osf*)
12159 symcode='[BCDEGQRST]'
12160 ;;
12161solaris*)
12162 symcode='[BDRT]'
12163 ;;
12164sco3.2v5*)
12165 symcode='[DT]'
12166 ;;
12167sysv4.2uw2*)
12168 symcode='[DT]'
12169 ;;
12170sysv5* | sco5v6* | unixware* | OpenUNIX*)
12171 symcode='[ABDT]'
12172 ;;
12173sysv4)
12174 symcode='[DFNSTU]'
12175 ;;
12176esac
12177
12178# If we're using GNU nm, then use its standard symbol codes.
12179case `$NM -V 2>&1` in
12180*GNU* | *'with BFD'*)
12181 symcode='[ABCDGIRSTW]' ;;
12182esac
12183
12184# Transform an extracted symbol line into a proper C declaration.
12185# Some systems (esp. on ia64) link data and code symbols differently,
12186# so use this general approach.
12187lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12188
12189# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000012190lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
12191lt_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 +000012192
12193# Handle CRLF in mingw tool chain
12194opt_cr=
12195case $build_os in
12196mingw*)
12197 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12198 ;;
12199esac
12200
12201# Try without a prefix underscore, then with it.
12202for ac_symprfx in "" "_"; do
12203
12204 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12205 symxfrm="\\1 $ac_symprfx\\2 \\2"
12206
12207 # Write the raw and C identifiers.
12208 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12209 # Fake it for dumpbin and say T for any non-static function
12210 # and D for any global variable.
12211 # Also find C++ and __fastcall symbols from MSVC++,
12212 # which start with @ or ?.
12213 lt_cv_sys_global_symbol_pipe="$AWK '"\
12214" {last_section=section; section=\$ 3};"\
cristy99bd5232011-12-07 14:38:20 +000012215" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
cristy73bd4a52010-10-05 11:24:23 +000012216" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12217" \$ 0!~/External *\|/{next};"\
12218" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12219" {if(hide[section]) next};"\
12220" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12221" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12222" s[1]~/^[@?]/{print s[1], s[1]; next};"\
12223" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12224" ' prfx=^$ac_symprfx"
12225 else
12226 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12227 fi
cristyda16f162011-02-19 23:52:17 +000012228 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000012229
12230 # Check to see that the pipe works correctly.
12231 pipe_works=no
12232
12233 rm -f conftest*
12234 cat > conftest.$ac_ext <<_LT_EOF
12235#ifdef __cplusplus
12236extern "C" {
12237#endif
12238char nm_test_var;
12239void nm_test_func(void);
12240void nm_test_func(void){}
12241#ifdef __cplusplus
12242}
12243#endif
12244int main(){nm_test_var='a';nm_test_func();return(0);}
12245_LT_EOF
12246
12247 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12248 (eval $ac_compile) 2>&5
12249 ac_status=$?
12250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12251 test $ac_status = 0; }; then
12252 # Now try to grab the symbols.
12253 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000012254 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12255 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000012256 ac_status=$?
12257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12258 test $ac_status = 0; } && test -s "$nlist"; then
12259 # Try sorting and uniquifying the output.
12260 if sort "$nlist" | uniq > "$nlist"T; then
12261 mv -f "$nlist"T "$nlist"
12262 else
12263 rm -f "$nlist"T
12264 fi
12265
12266 # Make sure that we snagged all the symbols we need.
12267 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12268 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12269 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000012270/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
12271#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12272/* DATA imports from DLLs on WIN32 con't be const, because runtime
12273 relocations are performed -- see ld's documentation on pseudo-relocs. */
12274# define LT_DLSYM_CONST
12275#elif defined(__osf__)
12276/* This system does not cope well with relocations in const data. */
12277# define LT_DLSYM_CONST
12278#else
12279# define LT_DLSYM_CONST const
12280#endif
12281
cristy73bd4a52010-10-05 11:24:23 +000012282#ifdef __cplusplus
12283extern "C" {
12284#endif
12285
12286_LT_EOF
12287 # Now generate the symbol file.
12288 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12289
12290 cat <<_LT_EOF >> conftest.$ac_ext
12291
12292/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000012293LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000012294 const char *name;
12295 void *address;
12296}
12297lt__PROGRAM__LTX_preloaded_symbols[] =
12298{
12299 { "@PROGRAM@", (void *) 0 },
12300_LT_EOF
12301 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12302 cat <<\_LT_EOF >> conftest.$ac_ext
12303 {0, (void *) 0}
12304};
12305
12306/* This works around a problem in FreeBSD linker */
12307#ifdef FREEBSD_WORKAROUND
12308static const void *lt_preloaded_setup() {
12309 return lt__PROGRAM__LTX_preloaded_symbols;
12310}
12311#endif
12312
12313#ifdef __cplusplus
12314}
12315#endif
12316_LT_EOF
12317 # Now try linking the two files.
12318 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000012319 lt_globsym_save_LIBS=$LIBS
12320 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012321 LIBS="conftstm.$ac_objext"
12322 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12323 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12324 (eval $ac_link) 2>&5
12325 ac_status=$?
12326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12327 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12328 pipe_works=yes
12329 fi
cristyda16f162011-02-19 23:52:17 +000012330 LIBS=$lt_globsym_save_LIBS
12331 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012332 else
12333 echo "cannot find nm_test_func in $nlist" >&5
12334 fi
12335 else
12336 echo "cannot find nm_test_var in $nlist" >&5
12337 fi
12338 else
12339 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12340 fi
12341 else
12342 echo "$progname: failed program was:" >&5
12343 cat conftest.$ac_ext >&5
12344 fi
12345 rm -rf conftest* conftst*
12346
12347 # Do not use the global_symbol_pipe unless it works.
12348 if test "$pipe_works" = yes; then
12349 break
12350 else
12351 lt_cv_sys_global_symbol_pipe=
12352 fi
12353done
12354
12355fi
12356
12357if test -z "$lt_cv_sys_global_symbol_pipe"; then
12358 lt_cv_sys_global_symbol_to_cdecl=
12359fi
12360if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12362$as_echo "failed" >&6; }
12363else
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12365$as_echo "ok" >&6; }
12366fi
12367
cristyda16f162011-02-19 23:52:17 +000012368# Response file support.
12369if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12370 nm_file_list_spec='@'
12371elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12372 nm_file_list_spec='@'
12373fi
cristy73bd4a52010-10-05 11:24:23 +000012374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394
cristyda16f162011-02-19 23:52:17 +000012395
12396
12397
12398
12399
12400
12401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12402$as_echo_n "checking for sysroot... " >&6; }
12403
12404# Check whether --with-sysroot was given.
12405if test "${with_sysroot+set}" = set; then :
12406 withval=$with_sysroot;
12407else
12408 with_sysroot=no
12409fi
12410
12411
12412lt_sysroot=
12413case ${with_sysroot} in #(
12414 yes)
12415 if test "$GCC" = yes; then
12416 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12417 fi
12418 ;; #(
12419 /*)
12420 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12421 ;; #(
12422 no|'')
12423 ;; #(
12424 *)
12425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12426$as_echo "${with_sysroot}" >&6; }
12427 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12428 ;;
12429esac
12430
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12432$as_echo "${lt_sysroot:-no}" >&6; }
12433
12434
12435
12436
12437
cristy73bd4a52010-10-05 11:24:23 +000012438# Check whether --enable-libtool-lock was given.
12439if test "${enable_libtool_lock+set}" = set; then :
12440 enableval=$enable_libtool_lock;
12441fi
12442
12443test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12444
12445# Some flags need to be propagated to the compiler or linker for good
12446# libtool support.
12447case $host in
12448ia64-*-hpux*)
12449 # Find out which ABI we are using.
12450 echo 'int i;' > conftest.$ac_ext
12451 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12452 (eval $ac_compile) 2>&5
12453 ac_status=$?
12454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12455 test $ac_status = 0; }; then
12456 case `/usr/bin/file conftest.$ac_objext` in
12457 *ELF-32*)
12458 HPUX_IA64_MODE="32"
12459 ;;
12460 *ELF-64*)
12461 HPUX_IA64_MODE="64"
12462 ;;
12463 esac
12464 fi
12465 rm -rf conftest*
12466 ;;
12467*-*-irix6*)
12468 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000012469 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000012470 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12471 (eval $ac_compile) 2>&5
12472 ac_status=$?
12473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12474 test $ac_status = 0; }; then
12475 if test "$lt_cv_prog_gnu_ld" = yes; then
12476 case `/usr/bin/file conftest.$ac_objext` in
12477 *32-bit*)
12478 LD="${LD-ld} -melf32bsmip"
12479 ;;
12480 *N32*)
12481 LD="${LD-ld} -melf32bmipn32"
12482 ;;
12483 *64-bit*)
12484 LD="${LD-ld} -melf64bmip"
12485 ;;
12486 esac
12487 else
12488 case `/usr/bin/file conftest.$ac_objext` in
12489 *32-bit*)
12490 LD="${LD-ld} -32"
12491 ;;
12492 *N32*)
12493 LD="${LD-ld} -n32"
12494 ;;
12495 *64-bit*)
12496 LD="${LD-ld} -64"
12497 ;;
12498 esac
12499 fi
12500 fi
12501 rm -rf conftest*
12502 ;;
12503
12504x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12505s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12506 # Find out which ABI we are using.
12507 echo 'int i;' > conftest.$ac_ext
12508 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12509 (eval $ac_compile) 2>&5
12510 ac_status=$?
12511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12512 test $ac_status = 0; }; then
12513 case `/usr/bin/file conftest.o` in
12514 *32-bit*)
12515 case $host in
12516 x86_64-*kfreebsd*-gnu)
12517 LD="${LD-ld} -m elf_i386_fbsd"
12518 ;;
12519 x86_64-*linux*)
12520 LD="${LD-ld} -m elf_i386"
12521 ;;
12522 ppc64-*linux*|powerpc64-*linux*)
12523 LD="${LD-ld} -m elf32ppclinux"
12524 ;;
12525 s390x-*linux*)
12526 LD="${LD-ld} -m elf_s390"
12527 ;;
12528 sparc64-*linux*)
12529 LD="${LD-ld} -m elf32_sparc"
12530 ;;
12531 esac
12532 ;;
12533 *64-bit*)
12534 case $host in
12535 x86_64-*kfreebsd*-gnu)
12536 LD="${LD-ld} -m elf_x86_64_fbsd"
12537 ;;
12538 x86_64-*linux*)
12539 LD="${LD-ld} -m elf_x86_64"
12540 ;;
12541 ppc*-*linux*|powerpc*-*linux*)
12542 LD="${LD-ld} -m elf64ppc"
12543 ;;
12544 s390*-*linux*|s390*-*tpf*)
12545 LD="${LD-ld} -m elf64_s390"
12546 ;;
12547 sparc*-*linux*)
12548 LD="${LD-ld} -m elf64_sparc"
12549 ;;
12550 esac
12551 ;;
12552 esac
12553 fi
12554 rm -rf conftest*
12555 ;;
12556
12557*-*-sco3.2v5*)
12558 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12559 SAVE_CFLAGS="$CFLAGS"
12560 CFLAGS="$CFLAGS -belf"
12561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12562$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012563if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012564 $as_echo_n "(cached) " >&6
12565else
12566 ac_ext=c
12567ac_cpp='$CPP $CPPFLAGS'
12568ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12569ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12570ac_compiler_gnu=$ac_cv_c_compiler_gnu
12571
12572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12573/* end confdefs.h. */
12574
12575int
12576main ()
12577{
12578
12579 ;
12580 return 0;
12581}
12582_ACEOF
12583if ac_fn_c_try_link "$LINENO"; then :
12584 lt_cv_cc_needs_belf=yes
12585else
12586 lt_cv_cc_needs_belf=no
12587fi
12588rm -f core conftest.err conftest.$ac_objext \
12589 conftest$ac_exeext conftest.$ac_ext
12590 ac_ext=c
12591ac_cpp='$CPP $CPPFLAGS'
12592ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12593ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12594ac_compiler_gnu=$ac_cv_c_compiler_gnu
12595
12596fi
12597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12598$as_echo "$lt_cv_cc_needs_belf" >&6; }
12599 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12600 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12601 CFLAGS="$SAVE_CFLAGS"
12602 fi
12603 ;;
cristy99bd5232011-12-07 14:38:20 +000012604*-*solaris*)
cristy73bd4a52010-10-05 11:24:23 +000012605 # Find out which ABI we are using.
12606 echo 'int i;' > conftest.$ac_ext
12607 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12608 (eval $ac_compile) 2>&5
12609 ac_status=$?
12610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12611 test $ac_status = 0; }; then
12612 case `/usr/bin/file conftest.o` in
12613 *64-bit*)
12614 case $lt_cv_prog_gnu_ld in
cristy99bd5232011-12-07 14:38:20 +000012615 yes*)
12616 case $host in
12617 i?86-*-solaris*)
12618 LD="${LD-ld} -m elf_x86_64"
12619 ;;
12620 sparc*-*-solaris*)
12621 LD="${LD-ld} -m elf64_sparc"
12622 ;;
12623 esac
12624 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
12625 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
12626 LD="${LD-ld}_sol2"
12627 fi
12628 ;;
cristy73bd4a52010-10-05 11:24:23 +000012629 *)
12630 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12631 LD="${LD-ld} -64"
12632 fi
12633 ;;
12634 esac
12635 ;;
12636 esac
12637 fi
12638 rm -rf conftest*
12639 ;;
12640esac
12641
12642need_locks="$enable_libtool_lock"
12643
cristyda16f162011-02-19 23:52:17 +000012644if test -n "$ac_tool_prefix"; then
12645 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
12646set dummy ${ac_tool_prefix}mt; ac_word=$2
12647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12648$as_echo_n "checking for $ac_word... " >&6; }
12649if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
12650 $as_echo_n "(cached) " >&6
12651else
12652 if test -n "$MANIFEST_TOOL"; then
12653 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
12654else
12655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12656for as_dir in $PATH
12657do
12658 IFS=$as_save_IFS
12659 test -z "$as_dir" && as_dir=.
12660 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012662 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
12663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12664 break 2
12665 fi
12666done
12667 done
12668IFS=$as_save_IFS
12669
12670fi
12671fi
12672MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
12673if test -n "$MANIFEST_TOOL"; then
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
12675$as_echo "$MANIFEST_TOOL" >&6; }
12676else
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12678$as_echo "no" >&6; }
12679fi
12680
12681
12682fi
12683if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
12684 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
12685 # Extract the first word of "mt", so it can be a program name with args.
12686set dummy mt; ac_word=$2
12687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12688$as_echo_n "checking for $ac_word... " >&6; }
12689if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
12690 $as_echo_n "(cached) " >&6
12691else
12692 if test -n "$ac_ct_MANIFEST_TOOL"; then
12693 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
12694else
12695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12696for as_dir in $PATH
12697do
12698 IFS=$as_save_IFS
12699 test -z "$as_dir" && as_dir=.
12700 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012702 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
12703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12704 break 2
12705 fi
12706done
12707 done
12708IFS=$as_save_IFS
12709
12710fi
12711fi
12712ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
12713if test -n "$ac_ct_MANIFEST_TOOL"; then
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
12715$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
12716else
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12718$as_echo "no" >&6; }
12719fi
12720
12721 if test "x$ac_ct_MANIFEST_TOOL" = x; then
12722 MANIFEST_TOOL=":"
12723 else
12724 case $cross_compiling:$ac_tool_warned in
12725yes:)
12726{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12727$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12728ac_tool_warned=yes ;;
12729esac
12730 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
12731 fi
12732else
12733 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
12734fi
12735
12736test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
12737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
12738$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
12739if ${lt_cv_path_mainfest_tool+:} false; then :
12740 $as_echo_n "(cached) " >&6
12741else
12742 lt_cv_path_mainfest_tool=no
12743 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
12744 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
12745 cat conftest.err >&5
12746 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
12747 lt_cv_path_mainfest_tool=yes
12748 fi
12749 rm -f conftest*
12750fi
12751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
12752$as_echo "$lt_cv_path_mainfest_tool" >&6; }
12753if test "x$lt_cv_path_mainfest_tool" != xyes; then
12754 MANIFEST_TOOL=:
12755fi
12756
12757
12758
12759
12760
cristy73bd4a52010-10-05 11:24:23 +000012761
12762 case $host_os in
12763 rhapsody* | darwin*)
12764 if test -n "$ac_tool_prefix"; then
12765 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
12766set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
12767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12768$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012769if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012770 $as_echo_n "(cached) " >&6
12771else
12772 if test -n "$DSYMUTIL"; then
12773 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12774else
12775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12776for as_dir in $PATH
12777do
12778 IFS=$as_save_IFS
12779 test -z "$as_dir" && as_dir=.
12780 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012782 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
12783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12784 break 2
12785 fi
12786done
12787 done
12788IFS=$as_save_IFS
12789
12790fi
12791fi
12792DSYMUTIL=$ac_cv_prog_DSYMUTIL
12793if test -n "$DSYMUTIL"; then
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
12795$as_echo "$DSYMUTIL" >&6; }
12796else
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12798$as_echo "no" >&6; }
12799fi
12800
12801
12802fi
12803if test -z "$ac_cv_prog_DSYMUTIL"; then
12804 ac_ct_DSYMUTIL=$DSYMUTIL
12805 # Extract the first word of "dsymutil", so it can be a program name with args.
12806set dummy dsymutil; ac_word=$2
12807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12808$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012809if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012810 $as_echo_n "(cached) " >&6
12811else
12812 if test -n "$ac_ct_DSYMUTIL"; then
12813 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
12814else
12815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12816for as_dir in $PATH
12817do
12818 IFS=$as_save_IFS
12819 test -z "$as_dir" && as_dir=.
12820 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012822 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
12823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12824 break 2
12825 fi
12826done
12827 done
12828IFS=$as_save_IFS
12829
12830fi
12831fi
12832ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
12833if test -n "$ac_ct_DSYMUTIL"; then
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
12835$as_echo "$ac_ct_DSYMUTIL" >&6; }
12836else
12837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12838$as_echo "no" >&6; }
12839fi
12840
12841 if test "x$ac_ct_DSYMUTIL" = x; then
12842 DSYMUTIL=":"
12843 else
12844 case $cross_compiling:$ac_tool_warned in
12845yes:)
12846{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12847$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12848ac_tool_warned=yes ;;
12849esac
12850 DSYMUTIL=$ac_ct_DSYMUTIL
12851 fi
12852else
12853 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
12854fi
12855
12856 if test -n "$ac_tool_prefix"; then
12857 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
12858set dummy ${ac_tool_prefix}nmedit; ac_word=$2
12859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12860$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012861if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012862 $as_echo_n "(cached) " >&6
12863else
12864 if test -n "$NMEDIT"; then
12865 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
12866else
12867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12868for as_dir in $PATH
12869do
12870 IFS=$as_save_IFS
12871 test -z "$as_dir" && as_dir=.
12872 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012874 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
12875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12876 break 2
12877 fi
12878done
12879 done
12880IFS=$as_save_IFS
12881
12882fi
12883fi
12884NMEDIT=$ac_cv_prog_NMEDIT
12885if test -n "$NMEDIT"; then
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
12887$as_echo "$NMEDIT" >&6; }
12888else
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12890$as_echo "no" >&6; }
12891fi
12892
12893
12894fi
12895if test -z "$ac_cv_prog_NMEDIT"; then
12896 ac_ct_NMEDIT=$NMEDIT
12897 # Extract the first word of "nmedit", so it can be a program name with args.
12898set dummy nmedit; ac_word=$2
12899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12900$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012901if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012902 $as_echo_n "(cached) " >&6
12903else
12904 if test -n "$ac_ct_NMEDIT"; then
12905 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
12906else
12907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12908for as_dir in $PATH
12909do
12910 IFS=$as_save_IFS
12911 test -z "$as_dir" && as_dir=.
12912 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012914 ac_cv_prog_ac_ct_NMEDIT="nmedit"
12915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12916 break 2
12917 fi
12918done
12919 done
12920IFS=$as_save_IFS
12921
12922fi
12923fi
12924ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
12925if test -n "$ac_ct_NMEDIT"; then
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
12927$as_echo "$ac_ct_NMEDIT" >&6; }
12928else
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12930$as_echo "no" >&6; }
12931fi
12932
12933 if test "x$ac_ct_NMEDIT" = x; then
12934 NMEDIT=":"
12935 else
12936 case $cross_compiling:$ac_tool_warned in
12937yes:)
12938{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12939$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12940ac_tool_warned=yes ;;
12941esac
12942 NMEDIT=$ac_ct_NMEDIT
12943 fi
12944else
12945 NMEDIT="$ac_cv_prog_NMEDIT"
12946fi
12947
12948 if test -n "$ac_tool_prefix"; then
12949 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
12950set dummy ${ac_tool_prefix}lipo; ac_word=$2
12951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12952$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012953if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012954 $as_echo_n "(cached) " >&6
12955else
12956 if test -n "$LIPO"; then
12957 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12958else
12959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12960for as_dir in $PATH
12961do
12962 IFS=$as_save_IFS
12963 test -z "$as_dir" && as_dir=.
12964 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012966 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
12967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12968 break 2
12969 fi
12970done
12971 done
12972IFS=$as_save_IFS
12973
12974fi
12975fi
12976LIPO=$ac_cv_prog_LIPO
12977if test -n "$LIPO"; then
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12979$as_echo "$LIPO" >&6; }
12980else
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12982$as_echo "no" >&6; }
12983fi
12984
12985
12986fi
12987if test -z "$ac_cv_prog_LIPO"; then
12988 ac_ct_LIPO=$LIPO
12989 # Extract the first word of "lipo", so it can be a program name with args.
12990set dummy lipo; ac_word=$2
12991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12992$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012993if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012994 $as_echo_n "(cached) " >&6
12995else
12996 if test -n "$ac_ct_LIPO"; then
12997 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
12998else
12999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13000for as_dir in $PATH
13001do
13002 IFS=$as_save_IFS
13003 test -z "$as_dir" && as_dir=.
13004 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013006 ac_cv_prog_ac_ct_LIPO="lipo"
13007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13008 break 2
13009 fi
13010done
13011 done
13012IFS=$as_save_IFS
13013
13014fi
13015fi
13016ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13017if test -n "$ac_ct_LIPO"; then
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13019$as_echo "$ac_ct_LIPO" >&6; }
13020else
13021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13022$as_echo "no" >&6; }
13023fi
13024
13025 if test "x$ac_ct_LIPO" = x; then
13026 LIPO=":"
13027 else
13028 case $cross_compiling:$ac_tool_warned in
13029yes:)
13030{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13031$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13032ac_tool_warned=yes ;;
13033esac
13034 LIPO=$ac_ct_LIPO
13035 fi
13036else
13037 LIPO="$ac_cv_prog_LIPO"
13038fi
13039
13040 if test -n "$ac_tool_prefix"; then
13041 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13042set dummy ${ac_tool_prefix}otool; ac_word=$2
13043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13044$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013045if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013046 $as_echo_n "(cached) " >&6
13047else
13048 if test -n "$OTOOL"; then
13049 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13050else
13051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13052for as_dir in $PATH
13053do
13054 IFS=$as_save_IFS
13055 test -z "$as_dir" && as_dir=.
13056 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013058 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13060 break 2
13061 fi
13062done
13063 done
13064IFS=$as_save_IFS
13065
13066fi
13067fi
13068OTOOL=$ac_cv_prog_OTOOL
13069if test -n "$OTOOL"; then
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13071$as_echo "$OTOOL" >&6; }
13072else
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13074$as_echo "no" >&6; }
13075fi
13076
13077
13078fi
13079if test -z "$ac_cv_prog_OTOOL"; then
13080 ac_ct_OTOOL=$OTOOL
13081 # Extract the first word of "otool", so it can be a program name with args.
13082set dummy otool; ac_word=$2
13083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13084$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013085if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013086 $as_echo_n "(cached) " >&6
13087else
13088 if test -n "$ac_ct_OTOOL"; then
13089 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13090else
13091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13092for as_dir in $PATH
13093do
13094 IFS=$as_save_IFS
13095 test -z "$as_dir" && as_dir=.
13096 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013098 ac_cv_prog_ac_ct_OTOOL="otool"
13099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13100 break 2
13101 fi
13102done
13103 done
13104IFS=$as_save_IFS
13105
13106fi
13107fi
13108ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13109if test -n "$ac_ct_OTOOL"; then
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13111$as_echo "$ac_ct_OTOOL" >&6; }
13112else
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13114$as_echo "no" >&6; }
13115fi
13116
13117 if test "x$ac_ct_OTOOL" = x; then
13118 OTOOL=":"
13119 else
13120 case $cross_compiling:$ac_tool_warned in
13121yes:)
13122{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13123$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13124ac_tool_warned=yes ;;
13125esac
13126 OTOOL=$ac_ct_OTOOL
13127 fi
13128else
13129 OTOOL="$ac_cv_prog_OTOOL"
13130fi
13131
13132 if test -n "$ac_tool_prefix"; then
13133 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13134set dummy ${ac_tool_prefix}otool64; ac_word=$2
13135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13136$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013137if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013138 $as_echo_n "(cached) " >&6
13139else
13140 if test -n "$OTOOL64"; then
13141 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13142else
13143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13144for as_dir in $PATH
13145do
13146 IFS=$as_save_IFS
13147 test -z "$as_dir" && as_dir=.
13148 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013150 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13152 break 2
13153 fi
13154done
13155 done
13156IFS=$as_save_IFS
13157
13158fi
13159fi
13160OTOOL64=$ac_cv_prog_OTOOL64
13161if test -n "$OTOOL64"; then
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13163$as_echo "$OTOOL64" >&6; }
13164else
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13166$as_echo "no" >&6; }
13167fi
13168
13169
13170fi
13171if test -z "$ac_cv_prog_OTOOL64"; then
13172 ac_ct_OTOOL64=$OTOOL64
13173 # Extract the first word of "otool64", so it can be a program name with args.
13174set dummy otool64; ac_word=$2
13175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13176$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013177if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013178 $as_echo_n "(cached) " >&6
13179else
13180 if test -n "$ac_ct_OTOOL64"; then
13181 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13182else
13183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13184for as_dir in $PATH
13185do
13186 IFS=$as_save_IFS
13187 test -z "$as_dir" && as_dir=.
13188 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013190 ac_cv_prog_ac_ct_OTOOL64="otool64"
13191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13192 break 2
13193 fi
13194done
13195 done
13196IFS=$as_save_IFS
13197
13198fi
13199fi
13200ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13201if test -n "$ac_ct_OTOOL64"; then
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13203$as_echo "$ac_ct_OTOOL64" >&6; }
13204else
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13206$as_echo "no" >&6; }
13207fi
13208
13209 if test "x$ac_ct_OTOOL64" = x; then
13210 OTOOL64=":"
13211 else
13212 case $cross_compiling:$ac_tool_warned in
13213yes:)
13214{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13215$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13216ac_tool_warned=yes ;;
13217esac
13218 OTOOL64=$ac_ct_OTOOL64
13219 fi
13220else
13221 OTOOL64="$ac_cv_prog_OTOOL64"
13222fi
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240
13241
13242
13243
13244
13245
13246
13247
13248
13249
13250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13251$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013252if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013253 $as_echo_n "(cached) " >&6
13254else
13255 lt_cv_apple_cc_single_mod=no
13256 if test -z "${LT_MULTI_MODULE}"; then
13257 # By default we will add the -single_module flag. You can override
13258 # by either setting the environment variable LT_MULTI_MODULE
13259 # non-empty at configure time, or by adding -multi_module to the
13260 # link flags.
13261 rm -rf libconftest.dylib*
13262 echo "int foo(void){return 1;}" > conftest.c
13263 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13264-dynamiclib -Wl,-single_module conftest.c" >&5
13265 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13266 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13267 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013268 # If there is a non-empty error log, and "single_module"
13269 # appears in it, assume the flag caused a linker warning
13270 if test -s conftest.err && $GREP single_module conftest.err; then
13271 cat conftest.err >&5
13272 # Otherwise, if the output was created with a 0 exit code from
13273 # the compiler, it worked.
13274 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
cristy73bd4a52010-10-05 11:24:23 +000013275 lt_cv_apple_cc_single_mod=yes
13276 else
13277 cat conftest.err >&5
13278 fi
13279 rm -rf libconftest.dylib*
13280 rm -f conftest.*
13281 fi
13282fi
13283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13284$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013285
cristy73bd4a52010-10-05 11:24:23 +000013286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13287$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013288if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013289 $as_echo_n "(cached) " >&6
13290else
13291 lt_cv_ld_exported_symbols_list=no
13292 save_LDFLAGS=$LDFLAGS
13293 echo "_main" > conftest.sym
13294 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13296/* end confdefs.h. */
13297
13298int
13299main ()
13300{
13301
13302 ;
13303 return 0;
13304}
13305_ACEOF
13306if ac_fn_c_try_link "$LINENO"; then :
13307 lt_cv_ld_exported_symbols_list=yes
13308else
13309 lt_cv_ld_exported_symbols_list=no
13310fi
13311rm -f core conftest.err conftest.$ac_objext \
13312 conftest$ac_exeext conftest.$ac_ext
13313 LDFLAGS="$save_LDFLAGS"
13314
13315fi
13316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13317$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013318
cristy0c60a692010-11-04 01:09:47 +000013319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13320$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013321if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000013322 $as_echo_n "(cached) " >&6
13323else
13324 lt_cv_ld_force_load=no
13325 cat > conftest.c << _LT_EOF
13326int forced_loaded() { return 2;}
13327_LT_EOF
13328 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13329 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13330 echo "$AR cru libconftest.a conftest.o" >&5
13331 $AR cru libconftest.a conftest.o 2>&5
13332 echo "$RANLIB libconftest.a" >&5
13333 $RANLIB libconftest.a 2>&5
13334 cat > conftest.c << _LT_EOF
13335int main() { return 0;}
13336_LT_EOF
13337 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13338 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13339 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013340 if test -s conftest.err && $GREP force_load conftest.err; then
13341 cat conftest.err >&5
13342 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
cristy0c60a692010-11-04 01:09:47 +000013343 lt_cv_ld_force_load=yes
13344 else
13345 cat conftest.err >&5
13346 fi
13347 rm -f conftest.err libconftest.a conftest conftest.c
13348 rm -rf conftest.dSYM
13349
13350fi
13351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13352$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000013353 case $host_os in
13354 rhapsody* | darwin1.[012])
13355 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13356 darwin1.*)
13357 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13358 darwin*) # darwin 5.x on
13359 # if running on 10.5 or later, the deployment target defaults
13360 # to the OS version, if on x86, and 10.4, the deployment
13361 # target defaults to 10.4. Don't you love it?
13362 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13363 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13364 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13365 10.[012]*)
13366 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13367 10.*)
13368 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13369 esac
13370 ;;
13371 esac
13372 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13373 _lt_dar_single_mod='$single_module'
13374 fi
13375 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13376 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13377 else
13378 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13379 fi
cristy0c60a692010-11-04 01:09:47 +000013380 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000013381 _lt_dsymutil='~$DSYMUTIL $lib || :'
13382 else
13383 _lt_dsymutil=
13384 fi
13385 ;;
13386 esac
13387
13388for ac_header in dlfcn.h
13389do :
13390 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13391"
cristyda16f162011-02-19 23:52:17 +000013392if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000013393 cat >>confdefs.h <<_ACEOF
13394#define HAVE_DLFCN_H 1
13395_ACEOF
13396
13397fi
13398
13399done
13400
13401
13402
cristy73bd4a52010-10-05 11:24:23 +000013403
cristyda16f162011-02-19 23:52:17 +000013404func_stripname_cnf ()
13405{
13406 case ${2} in
13407 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13408 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13409 esac
13410} # func_stripname_cnf
13411
13412
13413
cristy73bd4a52010-10-05 11:24:23 +000013414
13415
13416# Set options
13417enable_win32_dll=yes
13418
13419case $host in
cristy0c60a692010-11-04 01:09:47 +000013420*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000013421 if test -n "$ac_tool_prefix"; then
13422 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
13423set dummy ${ac_tool_prefix}as; ac_word=$2
13424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13425$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013426if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013427 $as_echo_n "(cached) " >&6
13428else
13429 if test -n "$AS"; then
13430 ac_cv_prog_AS="$AS" # Let the user override the test.
13431else
13432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13433for as_dir in $PATH
13434do
13435 IFS=$as_save_IFS
13436 test -z "$as_dir" && as_dir=.
13437 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013439 ac_cv_prog_AS="${ac_tool_prefix}as"
13440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13441 break 2
13442 fi
13443done
13444 done
13445IFS=$as_save_IFS
13446
13447fi
13448fi
13449AS=$ac_cv_prog_AS
13450if test -n "$AS"; then
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
13452$as_echo "$AS" >&6; }
13453else
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13455$as_echo "no" >&6; }
13456fi
13457
13458
13459fi
13460if test -z "$ac_cv_prog_AS"; then
13461 ac_ct_AS=$AS
13462 # Extract the first word of "as", so it can be a program name with args.
13463set dummy as; ac_word=$2
13464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13465$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013466if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013467 $as_echo_n "(cached) " >&6
13468else
13469 if test -n "$ac_ct_AS"; then
13470 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
13471else
13472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13473for as_dir in $PATH
13474do
13475 IFS=$as_save_IFS
13476 test -z "$as_dir" && as_dir=.
13477 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013479 ac_cv_prog_ac_ct_AS="as"
13480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13481 break 2
13482 fi
13483done
13484 done
13485IFS=$as_save_IFS
13486
13487fi
13488fi
13489ac_ct_AS=$ac_cv_prog_ac_ct_AS
13490if test -n "$ac_ct_AS"; then
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
13492$as_echo "$ac_ct_AS" >&6; }
13493else
13494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13495$as_echo "no" >&6; }
13496fi
13497
13498 if test "x$ac_ct_AS" = x; then
13499 AS="false"
13500 else
13501 case $cross_compiling:$ac_tool_warned in
13502yes:)
13503{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13504$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13505ac_tool_warned=yes ;;
13506esac
13507 AS=$ac_ct_AS
13508 fi
13509else
13510 AS="$ac_cv_prog_AS"
13511fi
13512
13513 if test -n "$ac_tool_prefix"; then
13514 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13515set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13517$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013518if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013519 $as_echo_n "(cached) " >&6
13520else
13521 if test -n "$DLLTOOL"; then
13522 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13523else
13524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13525for as_dir in $PATH
13526do
13527 IFS=$as_save_IFS
13528 test -z "$as_dir" && as_dir=.
13529 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013531 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13533 break 2
13534 fi
13535done
13536 done
13537IFS=$as_save_IFS
13538
13539fi
13540fi
13541DLLTOOL=$ac_cv_prog_DLLTOOL
13542if test -n "$DLLTOOL"; then
13543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
13544$as_echo "$DLLTOOL" >&6; }
13545else
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13547$as_echo "no" >&6; }
13548fi
13549
13550
13551fi
13552if test -z "$ac_cv_prog_DLLTOOL"; then
13553 ac_ct_DLLTOOL=$DLLTOOL
13554 # Extract the first word of "dlltool", so it can be a program name with args.
13555set dummy dlltool; ac_word=$2
13556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13557$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013558if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013559 $as_echo_n "(cached) " >&6
13560else
13561 if test -n "$ac_ct_DLLTOOL"; then
13562 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13563else
13564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13565for as_dir in $PATH
13566do
13567 IFS=$as_save_IFS
13568 test -z "$as_dir" && as_dir=.
13569 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013571 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13573 break 2
13574 fi
13575done
13576 done
13577IFS=$as_save_IFS
13578
13579fi
13580fi
13581ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13582if test -n "$ac_ct_DLLTOOL"; then
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
13584$as_echo "$ac_ct_DLLTOOL" >&6; }
13585else
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13587$as_echo "no" >&6; }
13588fi
13589
13590 if test "x$ac_ct_DLLTOOL" = x; then
13591 DLLTOOL="false"
13592 else
13593 case $cross_compiling:$ac_tool_warned in
13594yes:)
13595{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13596$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13597ac_tool_warned=yes ;;
13598esac
13599 DLLTOOL=$ac_ct_DLLTOOL
13600 fi
13601else
13602 DLLTOOL="$ac_cv_prog_DLLTOOL"
13603fi
13604
13605 if test -n "$ac_tool_prefix"; then
13606 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13607set dummy ${ac_tool_prefix}objdump; ac_word=$2
13608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13609$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013610if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013611 $as_echo_n "(cached) " >&6
13612else
13613 if test -n "$OBJDUMP"; then
13614 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13615else
13616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13617for as_dir in $PATH
13618do
13619 IFS=$as_save_IFS
13620 test -z "$as_dir" && as_dir=.
13621 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013623 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13625 break 2
13626 fi
13627done
13628 done
13629IFS=$as_save_IFS
13630
13631fi
13632fi
13633OBJDUMP=$ac_cv_prog_OBJDUMP
13634if test -n "$OBJDUMP"; then
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13636$as_echo "$OBJDUMP" >&6; }
13637else
13638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13639$as_echo "no" >&6; }
13640fi
13641
13642
13643fi
13644if test -z "$ac_cv_prog_OBJDUMP"; then
13645 ac_ct_OBJDUMP=$OBJDUMP
13646 # Extract the first word of "objdump", so it can be a program name with args.
13647set dummy objdump; ac_word=$2
13648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13649$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013650if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013651 $as_echo_n "(cached) " >&6
13652else
13653 if test -n "$ac_ct_OBJDUMP"; then
13654 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13655else
13656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13657for as_dir in $PATH
13658do
13659 IFS=$as_save_IFS
13660 test -z "$as_dir" && as_dir=.
13661 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013663 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13665 break 2
13666 fi
13667done
13668 done
13669IFS=$as_save_IFS
13670
13671fi
13672fi
13673ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13674if test -n "$ac_ct_OBJDUMP"; then
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13676$as_echo "$ac_ct_OBJDUMP" >&6; }
13677else
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13679$as_echo "no" >&6; }
13680fi
13681
13682 if test "x$ac_ct_OBJDUMP" = x; then
13683 OBJDUMP="false"
13684 else
13685 case $cross_compiling:$ac_tool_warned in
13686yes:)
13687{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13688$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13689ac_tool_warned=yes ;;
13690esac
13691 OBJDUMP=$ac_ct_OBJDUMP
13692 fi
13693else
13694 OBJDUMP="$ac_cv_prog_OBJDUMP"
13695fi
13696
13697 ;;
13698esac
13699
13700test -z "$AS" && AS=as
13701
13702
13703
13704
13705
13706test -z "$DLLTOOL" && DLLTOOL=dlltool
13707
13708
13709
13710
13711
13712test -z "$OBJDUMP" && OBJDUMP=objdump
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722 # Check whether --enable-shared was given.
13723if test "${enable_shared+set}" = set; then :
13724 enableval=$enable_shared; p=${PACKAGE-default}
13725 case $enableval in
13726 yes) enable_shared=yes ;;
13727 no) enable_shared=no ;;
13728 *)
13729 enable_shared=no
13730 # Look at the argument we got. We use all the common list separators.
13731 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13732 for pkg in $enableval; do
13733 IFS="$lt_save_ifs"
13734 if test "X$pkg" = "X$p"; then
13735 enable_shared=yes
13736 fi
13737 done
13738 IFS="$lt_save_ifs"
13739 ;;
13740 esac
13741else
13742 enable_shared=yes
13743fi
13744
13745
13746
13747
13748
13749
13750
13751
13752
13753 # Check whether --enable-static was given.
13754if test "${enable_static+set}" = set; then :
13755 enableval=$enable_static; p=${PACKAGE-default}
13756 case $enableval in
13757 yes) enable_static=yes ;;
13758 no) enable_static=no ;;
13759 *)
13760 enable_static=no
13761 # Look at the argument we got. We use all the common list separators.
13762 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13763 for pkg in $enableval; do
13764 IFS="$lt_save_ifs"
13765 if test "X$pkg" = "X$p"; then
13766 enable_static=yes
13767 fi
13768 done
13769 IFS="$lt_save_ifs"
13770 ;;
13771 esac
13772else
13773 enable_static=yes
13774fi
13775
13776
13777
13778
13779
13780
13781
13782
13783
13784
13785# Check whether --with-pic was given.
13786if test "${with_pic+set}" = set; then :
cristy99bd5232011-12-07 14:38:20 +000013787 withval=$with_pic; lt_p=${PACKAGE-default}
13788 case $withval in
13789 yes|no) pic_mode=$withval ;;
13790 *)
13791 pic_mode=default
13792 # Look at the argument we got. We use all the common list separators.
13793 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13794 for lt_pkg in $withval; do
13795 IFS="$lt_save_ifs"
13796 if test "X$lt_pkg" = "X$lt_p"; then
13797 pic_mode=yes
13798 fi
13799 done
13800 IFS="$lt_save_ifs"
13801 ;;
13802 esac
cristy73bd4a52010-10-05 11:24:23 +000013803else
13804 pic_mode=default
13805fi
13806
13807
13808test -z "$pic_mode" && pic_mode=default
13809
13810
13811
13812
13813
13814
13815
13816 # Check whether --enable-fast-install was given.
13817if test "${enable_fast_install+set}" = set; then :
13818 enableval=$enable_fast_install; p=${PACKAGE-default}
13819 case $enableval in
13820 yes) enable_fast_install=yes ;;
13821 no) enable_fast_install=no ;;
13822 *)
13823 enable_fast_install=no
13824 # Look at the argument we got. We use all the common list separators.
13825 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13826 for pkg in $enableval; do
13827 IFS="$lt_save_ifs"
13828 if test "X$pkg" = "X$p"; then
13829 enable_fast_install=yes
13830 fi
13831 done
13832 IFS="$lt_save_ifs"
13833 ;;
13834 esac
13835else
13836 enable_fast_install=yes
13837fi
13838
13839
13840
13841
13842
13843
13844
13845
13846
13847
13848
13849# This can be used to rebuild libtool when needed
13850LIBTOOL_DEPS="$ltmain"
13851
13852# Always use our own libtool.
13853LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13854
13855
13856
13857
13858
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877
13878
cristy0c60a692010-11-04 01:09:47 +000013879
cristy99bd5232011-12-07 14:38:20 +000013880
13881
13882
13883
cristy73bd4a52010-10-05 11:24:23 +000013884test -z "$LN_S" && LN_S="ln -s"
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899if test -n "${ZSH_VERSION+set}" ; then
13900 setopt NO_GLOB_SUBST
13901fi
13902
13903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13904$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013905if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013906 $as_echo_n "(cached) " >&6
13907else
13908 rm -f .libs 2>/dev/null
13909mkdir .libs 2>/dev/null
13910if test -d .libs; then
13911 lt_cv_objdir=.libs
13912else
13913 # MS-DOS does not allow filenames that begin with a dot.
13914 lt_cv_objdir=_libs
13915fi
13916rmdir .libs 2>/dev/null
13917fi
13918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13919$as_echo "$lt_cv_objdir" >&6; }
13920objdir=$lt_cv_objdir
13921
13922
13923
13924
13925
13926cat >>confdefs.h <<_ACEOF
13927#define LT_OBJDIR "$lt_cv_objdir/"
13928_ACEOF
13929
13930
13931
13932
cristy73bd4a52010-10-05 11:24:23 +000013933case $host_os in
13934aix3*)
13935 # AIX sometimes has problems with the GCC collect2 program. For some
13936 # reason, if we set the COLLECT_NAMES environment variable, the problems
13937 # vanish in a puff of smoke.
13938 if test "X${COLLECT_NAMES+set}" != Xset; then
13939 COLLECT_NAMES=
13940 export COLLECT_NAMES
13941 fi
13942 ;;
13943esac
13944
cristy73bd4a52010-10-05 11:24:23 +000013945# Global variables:
13946ofile=libtool
13947can_build_shared=yes
13948
13949# All known linkers require a `.a' archive for static linking (except MSVC,
13950# which needs '.lib').
13951libext=a
13952
13953with_gnu_ld="$lt_cv_prog_gnu_ld"
13954
13955old_CC="$CC"
13956old_CFLAGS="$CFLAGS"
13957
13958# Set sane defaults for various variables
13959test -z "$CC" && CC=cc
13960test -z "$LTCC" && LTCC=$CC
13961test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13962test -z "$LD" && LD=ld
13963test -z "$ac_objext" && ac_objext=o
13964
13965for cc_temp in $compiler""; do
13966 case $cc_temp in
13967 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13968 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13969 \-*) ;;
13970 *) break;;
13971 esac
13972done
cristy0c60a692010-11-04 01:09:47 +000013973cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000013974
13975
13976# Only perform the check for file, if the check method requires it
13977test -z "$MAGIC_CMD" && MAGIC_CMD=file
13978case $deplibs_check_method in
13979file_magic*)
13980 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13982$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013983if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013984 $as_echo_n "(cached) " >&6
13985else
13986 case $MAGIC_CMD in
13987[\\/*] | ?:[\\/]*)
13988 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13989 ;;
13990*)
13991 lt_save_MAGIC_CMD="$MAGIC_CMD"
13992 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13993 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13994 for ac_dir in $ac_dummy; do
13995 IFS="$lt_save_ifs"
13996 test -z "$ac_dir" && ac_dir=.
13997 if test -f $ac_dir/${ac_tool_prefix}file; then
13998 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13999 if test -n "$file_magic_test_file"; then
14000 case $deplibs_check_method in
14001 "file_magic "*)
14002 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14003 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14004 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14005 $EGREP "$file_magic_regex" > /dev/null; then
14006 :
14007 else
14008 cat <<_LT_EOF 1>&2
14009
14010*** Warning: the command libtool uses to detect shared libraries,
14011*** $file_magic_cmd, produces output that libtool cannot recognize.
14012*** The result is that libtool may fail to recognize shared libraries
14013*** as such. This will affect the creation of libtool libraries that
14014*** depend on shared libraries, but programs linked with such libtool
14015*** libraries will work regardless of this problem. Nevertheless, you
14016*** may want to report the problem to your system manager and/or to
14017*** bug-libtool@gnu.org
14018
14019_LT_EOF
14020 fi ;;
14021 esac
14022 fi
14023 break
14024 fi
14025 done
14026 IFS="$lt_save_ifs"
14027 MAGIC_CMD="$lt_save_MAGIC_CMD"
14028 ;;
14029esac
14030fi
14031
14032MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14033if test -n "$MAGIC_CMD"; then
14034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14035$as_echo "$MAGIC_CMD" >&6; }
14036else
14037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14038$as_echo "no" >&6; }
14039fi
14040
14041
14042
14043
14044
14045if test -z "$lt_cv_path_MAGIC_CMD"; then
14046 if test -n "$ac_tool_prefix"; then
14047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14048$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014049if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014050 $as_echo_n "(cached) " >&6
14051else
14052 case $MAGIC_CMD in
14053[\\/*] | ?:[\\/]*)
14054 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14055 ;;
14056*)
14057 lt_save_MAGIC_CMD="$MAGIC_CMD"
14058 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14059 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14060 for ac_dir in $ac_dummy; do
14061 IFS="$lt_save_ifs"
14062 test -z "$ac_dir" && ac_dir=.
14063 if test -f $ac_dir/file; then
14064 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14065 if test -n "$file_magic_test_file"; then
14066 case $deplibs_check_method in
14067 "file_magic "*)
14068 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14069 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14070 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14071 $EGREP "$file_magic_regex" > /dev/null; then
14072 :
14073 else
14074 cat <<_LT_EOF 1>&2
14075
14076*** Warning: the command libtool uses to detect shared libraries,
14077*** $file_magic_cmd, produces output that libtool cannot recognize.
14078*** The result is that libtool may fail to recognize shared libraries
14079*** as such. This will affect the creation of libtool libraries that
14080*** depend on shared libraries, but programs linked with such libtool
14081*** libraries will work regardless of this problem. Nevertheless, you
14082*** may want to report the problem to your system manager and/or to
14083*** bug-libtool@gnu.org
14084
14085_LT_EOF
14086 fi ;;
14087 esac
14088 fi
14089 break
14090 fi
14091 done
14092 IFS="$lt_save_ifs"
14093 MAGIC_CMD="$lt_save_MAGIC_CMD"
14094 ;;
14095esac
14096fi
14097
14098MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14099if test -n "$MAGIC_CMD"; then
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14101$as_echo "$MAGIC_CMD" >&6; }
14102else
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14104$as_echo "no" >&6; }
14105fi
14106
14107
14108 else
14109 MAGIC_CMD=:
14110 fi
14111fi
14112
14113 fi
14114 ;;
14115esac
14116
14117# Use C for the default configuration in the libtool script
14118
14119lt_save_CC="$CC"
14120ac_ext=c
14121ac_cpp='$CPP $CPPFLAGS'
14122ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14123ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14124ac_compiler_gnu=$ac_cv_c_compiler_gnu
14125
14126
14127# Source file extension for C test sources.
14128ac_ext=c
14129
14130# Object file extension for compiled C test sources.
14131objext=o
14132objext=$objext
14133
14134# Code to be used in simple compile tests
14135lt_simple_compile_test_code="int some_variable = 0;"
14136
14137# Code to be used in simple link tests
14138lt_simple_link_test_code='int main(){return(0);}'
14139
14140
14141
14142
14143
14144
14145
14146# If no C compiler was specified, use CC.
14147LTCC=${LTCC-"$CC"}
14148
14149# If no C compiler flags were specified, use CFLAGS.
14150LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14151
14152# Allow CC to be a program name with arguments.
14153compiler=$CC
14154
14155# Save the default compiler, since it gets overwritten when the other
14156# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14157compiler_DEFAULT=$CC
14158
14159# save warnings/boilerplate of simple test code
14160ac_outfile=conftest.$ac_objext
14161echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14162eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14163_lt_compiler_boilerplate=`cat conftest.err`
14164$RM conftest*
14165
14166ac_outfile=conftest.$ac_objext
14167echo "$lt_simple_link_test_code" >conftest.$ac_ext
14168eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14169_lt_linker_boilerplate=`cat conftest.err`
14170$RM -r conftest*
14171
14172
14173## CAVEAT EMPTOR:
14174## There is no encapsulation within the following macros, do not change
14175## the running order or otherwise move them around unless you know exactly
14176## what you are doing...
14177if test -n "$compiler"; then
14178
14179lt_prog_compiler_no_builtin_flag=
14180
14181if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000014182 case $cc_basename in
14183 nvcc*)
14184 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14185 *)
14186 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14187 esac
cristy73bd4a52010-10-05 11:24:23 +000014188
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14190$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014191if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014192 $as_echo_n "(cached) " >&6
14193else
14194 lt_cv_prog_compiler_rtti_exceptions=no
14195 ac_outfile=conftest.$ac_objext
14196 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14197 lt_compiler_flag="-fno-rtti -fno-exceptions"
14198 # Insert the option either (1) after the last *FLAGS variable, or
14199 # (2) before a word containing "conftest.", or (3) at the end.
14200 # Note that $ac_compile itself does not contain backslashes and begins
14201 # with a dollar sign (not a hyphen), so the echo should work correctly.
14202 # The option is referenced via a variable to avoid confusing sed.
14203 lt_compile=`echo "$ac_compile" | $SED \
14204 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14205 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14206 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014207 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014208 (eval "$lt_compile" 2>conftest.err)
14209 ac_status=$?
14210 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014212 if (exit $ac_status) && test -s "$ac_outfile"; then
14213 # The compiler can only warn and ignore the option if not recognized
14214 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014215 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014216 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14217 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14218 lt_cv_prog_compiler_rtti_exceptions=yes
14219 fi
14220 fi
14221 $RM conftest*
14222
14223fi
14224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14225$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14226
14227if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14228 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14229else
14230 :
14231fi
14232
14233fi
14234
14235
14236
14237
14238
14239
14240 lt_prog_compiler_wl=
14241lt_prog_compiler_pic=
14242lt_prog_compiler_static=
14243
cristy73bd4a52010-10-05 11:24:23 +000014244
14245 if test "$GCC" = yes; then
14246 lt_prog_compiler_wl='-Wl,'
14247 lt_prog_compiler_static='-static'
14248
14249 case $host_os in
14250 aix*)
14251 # All AIX code is PIC.
14252 if test "$host_cpu" = ia64; then
14253 # AIX 5 now supports IA64 processor
14254 lt_prog_compiler_static='-Bstatic'
14255 fi
14256 ;;
14257
14258 amigaos*)
14259 case $host_cpu in
14260 powerpc)
14261 # see comment about AmigaOS4 .so support
14262 lt_prog_compiler_pic='-fPIC'
14263 ;;
14264 m68k)
14265 # FIXME: we need at least 68020 code to build shared libraries, but
14266 # adding the `-m68020' flag to GCC prevents building anything better,
14267 # like `-m68040'.
14268 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14269 ;;
14270 esac
14271 ;;
14272
14273 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14274 # PIC is the default for these OSes.
14275 ;;
14276
14277 mingw* | cygwin* | pw32* | os2* | cegcc*)
14278 # This hack is so that the source file can tell whether it is being
14279 # built for inclusion in a dll (and should export symbols for example).
14280 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14281 # (--disable-auto-import) libraries
14282 lt_prog_compiler_pic='-DDLL_EXPORT'
14283 ;;
14284
14285 darwin* | rhapsody*)
14286 # PIC is the default on this platform
14287 # Common symbols not allowed in MH_DYLIB files
14288 lt_prog_compiler_pic='-fno-common'
14289 ;;
14290
cristy0c60a692010-11-04 01:09:47 +000014291 haiku*)
14292 # PIC is the default for Haiku.
14293 # The "-static" flag exists, but is broken.
14294 lt_prog_compiler_static=
14295 ;;
14296
cristy73bd4a52010-10-05 11:24:23 +000014297 hpux*)
14298 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14299 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14300 # sets the default TLS model and affects inlining.
14301 case $host_cpu in
14302 hppa*64*)
14303 # +Z the default
14304 ;;
14305 *)
14306 lt_prog_compiler_pic='-fPIC'
14307 ;;
14308 esac
14309 ;;
14310
14311 interix[3-9]*)
14312 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14313 # Instead, we relocate shared libraries at runtime.
14314 ;;
14315
14316 msdosdjgpp*)
14317 # Just because we use GCC doesn't mean we suddenly get shared libraries
14318 # on systems that don't support them.
14319 lt_prog_compiler_can_build_shared=no
14320 enable_shared=no
14321 ;;
14322
14323 *nto* | *qnx*)
14324 # QNX uses GNU C++, but need to define -shared option too, otherwise
14325 # it will coredump.
14326 lt_prog_compiler_pic='-fPIC -shared'
14327 ;;
14328
14329 sysv4*MP*)
14330 if test -d /usr/nec; then
14331 lt_prog_compiler_pic=-Kconform_pic
14332 fi
14333 ;;
14334
14335 *)
14336 lt_prog_compiler_pic='-fPIC'
14337 ;;
14338 esac
cristy0c60a692010-11-04 01:09:47 +000014339
14340 case $cc_basename in
14341 nvcc*) # Cuda Compiler Driver 2.2
14342 lt_prog_compiler_wl='-Xlinker '
cristy99bd5232011-12-07 14:38:20 +000014343 if test -n "$lt_prog_compiler_pic"; then
14344 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14345 fi
cristy0c60a692010-11-04 01:09:47 +000014346 ;;
14347 esac
cristy73bd4a52010-10-05 11:24:23 +000014348 else
14349 # PORTME Check for flag to pass linker flags through the system compiler.
14350 case $host_os in
14351 aix*)
14352 lt_prog_compiler_wl='-Wl,'
14353 if test "$host_cpu" = ia64; then
14354 # AIX 5 now supports IA64 processor
14355 lt_prog_compiler_static='-Bstatic'
14356 else
14357 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14358 fi
14359 ;;
14360
14361 mingw* | cygwin* | pw32* | os2* | cegcc*)
14362 # This hack is so that the source file can tell whether it is being
14363 # built for inclusion in a dll (and should export symbols for example).
14364 lt_prog_compiler_pic='-DDLL_EXPORT'
14365 ;;
14366
14367 hpux9* | hpux10* | hpux11*)
14368 lt_prog_compiler_wl='-Wl,'
14369 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14370 # not for PA HP-UX.
14371 case $host_cpu in
14372 hppa*64*|ia64*)
14373 # +Z the default
14374 ;;
14375 *)
14376 lt_prog_compiler_pic='+Z'
14377 ;;
14378 esac
14379 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14380 lt_prog_compiler_static='${wl}-a ${wl}archive'
14381 ;;
14382
14383 irix5* | irix6* | nonstopux*)
14384 lt_prog_compiler_wl='-Wl,'
14385 # PIC (with -KPIC) is the default.
14386 lt_prog_compiler_static='-non_shared'
14387 ;;
14388
cristy0c60a692010-11-04 01:09:47 +000014389 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014390 case $cc_basename in
14391 # old Intel for x86_64 which still supported -KPIC.
14392 ecc*)
14393 lt_prog_compiler_wl='-Wl,'
14394 lt_prog_compiler_pic='-KPIC'
14395 lt_prog_compiler_static='-static'
14396 ;;
14397 # icc used to be incompatible with GCC.
14398 # ICC 10 doesn't accept -KPIC any more.
14399 icc* | ifort*)
14400 lt_prog_compiler_wl='-Wl,'
14401 lt_prog_compiler_pic='-fPIC'
14402 lt_prog_compiler_static='-static'
14403 ;;
14404 # Lahey Fortran 8.1.
14405 lf95*)
14406 lt_prog_compiler_wl='-Wl,'
14407 lt_prog_compiler_pic='--shared'
14408 lt_prog_compiler_static='--static'
14409 ;;
cristyda16f162011-02-19 23:52:17 +000014410 nagfor*)
14411 # NAG Fortran compiler
14412 lt_prog_compiler_wl='-Wl,-Wl,,'
14413 lt_prog_compiler_pic='-PIC'
14414 lt_prog_compiler_static='-Bstatic'
14415 ;;
cristy0c60a692010-11-04 01:09:47 +000014416 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000014417 # Portland Group compilers (*not* the Pentium gcc compiler,
14418 # which looks to be a dead project)
14419 lt_prog_compiler_wl='-Wl,'
14420 lt_prog_compiler_pic='-fpic'
14421 lt_prog_compiler_static='-Bstatic'
14422 ;;
14423 ccc*)
14424 lt_prog_compiler_wl='-Wl,'
14425 # All Alpha code is PIC.
14426 lt_prog_compiler_static='-non_shared'
14427 ;;
cristy0c60a692010-11-04 01:09:47 +000014428 xl* | bgxl* | bgf* | mpixl*)
14429 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000014430 lt_prog_compiler_wl='-Wl,'
14431 lt_prog_compiler_pic='-qpic'
14432 lt_prog_compiler_static='-qstaticlink'
14433 ;;
14434 *)
14435 case `$CC -V 2>&1 | sed 5q` in
cristy99bd5232011-12-07 14:38:20 +000014436 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
cristy0c60a692010-11-04 01:09:47 +000014437 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14438 lt_prog_compiler_pic='-KPIC'
14439 lt_prog_compiler_static='-Bstatic'
14440 lt_prog_compiler_wl=''
14441 ;;
cristy99bd5232011-12-07 14:38:20 +000014442 *Sun\ F* | *Sun*Fortran*)
14443 lt_prog_compiler_pic='-KPIC'
14444 lt_prog_compiler_static='-Bstatic'
14445 lt_prog_compiler_wl='-Qoption ld '
14446 ;;
cristy73bd4a52010-10-05 11:24:23 +000014447 *Sun\ C*)
14448 # Sun C 5.9
14449 lt_prog_compiler_pic='-KPIC'
14450 lt_prog_compiler_static='-Bstatic'
14451 lt_prog_compiler_wl='-Wl,'
14452 ;;
cristy99bd5232011-12-07 14:38:20 +000014453 *Intel*\ [CF]*Compiler*)
14454 lt_prog_compiler_wl='-Wl,'
14455 lt_prog_compiler_pic='-fPIC'
14456 lt_prog_compiler_static='-static'
14457 ;;
14458 *Portland\ Group*)
14459 lt_prog_compiler_wl='-Wl,'
14460 lt_prog_compiler_pic='-fpic'
14461 lt_prog_compiler_static='-Bstatic'
14462 ;;
cristy73bd4a52010-10-05 11:24:23 +000014463 esac
14464 ;;
14465 esac
14466 ;;
14467
14468 newsos6)
14469 lt_prog_compiler_pic='-KPIC'
14470 lt_prog_compiler_static='-Bstatic'
14471 ;;
14472
14473 *nto* | *qnx*)
14474 # QNX uses GNU C++, but need to define -shared option too, otherwise
14475 # it will coredump.
14476 lt_prog_compiler_pic='-fPIC -shared'
14477 ;;
14478
14479 osf3* | osf4* | osf5*)
14480 lt_prog_compiler_wl='-Wl,'
14481 # All OSF/1 code is PIC.
14482 lt_prog_compiler_static='-non_shared'
14483 ;;
14484
14485 rdos*)
14486 lt_prog_compiler_static='-non_shared'
14487 ;;
14488
14489 solaris*)
14490 lt_prog_compiler_pic='-KPIC'
14491 lt_prog_compiler_static='-Bstatic'
14492 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014493 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000014494 lt_prog_compiler_wl='-Qoption ld ';;
14495 *)
14496 lt_prog_compiler_wl='-Wl,';;
14497 esac
14498 ;;
14499
14500 sunos4*)
14501 lt_prog_compiler_wl='-Qoption ld '
14502 lt_prog_compiler_pic='-PIC'
14503 lt_prog_compiler_static='-Bstatic'
14504 ;;
14505
14506 sysv4 | sysv4.2uw2* | sysv4.3*)
14507 lt_prog_compiler_wl='-Wl,'
14508 lt_prog_compiler_pic='-KPIC'
14509 lt_prog_compiler_static='-Bstatic'
14510 ;;
14511
14512 sysv4*MP*)
14513 if test -d /usr/nec ;then
14514 lt_prog_compiler_pic='-Kconform_pic'
14515 lt_prog_compiler_static='-Bstatic'
14516 fi
14517 ;;
14518
14519 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14520 lt_prog_compiler_wl='-Wl,'
14521 lt_prog_compiler_pic='-KPIC'
14522 lt_prog_compiler_static='-Bstatic'
14523 ;;
14524
14525 unicos*)
14526 lt_prog_compiler_wl='-Wl,'
14527 lt_prog_compiler_can_build_shared=no
14528 ;;
14529
14530 uts4*)
14531 lt_prog_compiler_pic='-pic'
14532 lt_prog_compiler_static='-Bstatic'
14533 ;;
14534
14535 *)
14536 lt_prog_compiler_can_build_shared=no
14537 ;;
14538 esac
14539 fi
14540
14541case $host_os in
14542 # For platforms which do not support PIC, -DPIC is meaningless:
14543 *djgpp*)
14544 lt_prog_compiler_pic=
14545 ;;
14546 *)
14547 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14548 ;;
14549esac
cristy73bd4a52010-10-05 11:24:23 +000014550
cristyda16f162011-02-19 23:52:17 +000014551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14552$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14553if ${lt_cv_prog_compiler_pic+:} false; then :
14554 $as_echo_n "(cached) " >&6
14555else
14556 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14557fi
14558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14559$as_echo "$lt_cv_prog_compiler_pic" >&6; }
14560lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000014561
14562#
14563# Check to make sure the PIC flag actually works.
14564#
14565if test -n "$lt_prog_compiler_pic"; then
14566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14567$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014568if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014569 $as_echo_n "(cached) " >&6
14570else
14571 lt_cv_prog_compiler_pic_works=no
14572 ac_outfile=conftest.$ac_objext
14573 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14574 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14575 # Insert the option either (1) after the last *FLAGS variable, or
14576 # (2) before a word containing "conftest.", or (3) at the end.
14577 # Note that $ac_compile itself does not contain backslashes and begins
14578 # with a dollar sign (not a hyphen), so the echo should work correctly.
14579 # The option is referenced via a variable to avoid confusing sed.
14580 lt_compile=`echo "$ac_compile" | $SED \
14581 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14582 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14583 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014584 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014585 (eval "$lt_compile" 2>conftest.err)
14586 ac_status=$?
14587 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014589 if (exit $ac_status) && test -s "$ac_outfile"; then
14590 # The compiler can only warn and ignore the option if not recognized
14591 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014592 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014593 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14594 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14595 lt_cv_prog_compiler_pic_works=yes
14596 fi
14597 fi
14598 $RM conftest*
14599
14600fi
14601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14602$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14603
14604if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14605 case $lt_prog_compiler_pic in
14606 "" | " "*) ;;
14607 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14608 esac
14609else
14610 lt_prog_compiler_pic=
14611 lt_prog_compiler_can_build_shared=no
14612fi
14613
14614fi
14615
14616
14617
14618
14619
14620
cristyda16f162011-02-19 23:52:17 +000014621
14622
14623
14624
14625
cristy73bd4a52010-10-05 11:24:23 +000014626#
14627# Check to make sure the static flag actually works.
14628#
14629wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14631$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014632if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014633 $as_echo_n "(cached) " >&6
14634else
14635 lt_cv_prog_compiler_static_works=no
14636 save_LDFLAGS="$LDFLAGS"
14637 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14638 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14639 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14640 # The linker can only warn and ignore the option if not recognized
14641 # So say no if there are warnings
14642 if test -s conftest.err; then
14643 # Append any errors to the config.log.
14644 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000014645 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014646 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14647 if diff conftest.exp conftest.er2 >/dev/null; then
14648 lt_cv_prog_compiler_static_works=yes
14649 fi
14650 else
14651 lt_cv_prog_compiler_static_works=yes
14652 fi
14653 fi
14654 $RM -r conftest*
14655 LDFLAGS="$save_LDFLAGS"
14656
14657fi
14658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14659$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14660
14661if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14662 :
14663else
14664 lt_prog_compiler_static=
14665fi
14666
14667
14668
14669
14670
14671
14672
14673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14674$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014675if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014676 $as_echo_n "(cached) " >&6
14677else
14678 lt_cv_prog_compiler_c_o=no
14679 $RM -r conftest 2>/dev/null
14680 mkdir conftest
14681 cd conftest
14682 mkdir out
14683 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14684
14685 lt_compiler_flag="-o out/conftest2.$ac_objext"
14686 # Insert the option either (1) after the last *FLAGS variable, or
14687 # (2) before a word containing "conftest.", or (3) at the end.
14688 # Note that $ac_compile itself does not contain backslashes and begins
14689 # with a dollar sign (not a hyphen), so the echo should work correctly.
14690 lt_compile=`echo "$ac_compile" | $SED \
14691 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14692 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14693 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014694 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014695 (eval "$lt_compile" 2>out/conftest.err)
14696 ac_status=$?
14697 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014699 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14700 then
14701 # The compiler can only warn and ignore the option if not recognized
14702 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014703 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014704 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14705 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14706 lt_cv_prog_compiler_c_o=yes
14707 fi
14708 fi
14709 chmod u+w . 2>&5
14710 $RM conftest*
14711 # SGI C++ compiler will create directory out/ii_files/ for
14712 # template instantiation
14713 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14714 $RM out/* && rmdir out
14715 cd ..
14716 $RM -r conftest
14717 $RM conftest*
14718
14719fi
14720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14721$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14722
14723
14724
14725
14726
14727
14728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14729$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014730if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014731 $as_echo_n "(cached) " >&6
14732else
14733 lt_cv_prog_compiler_c_o=no
14734 $RM -r conftest 2>/dev/null
14735 mkdir conftest
14736 cd conftest
14737 mkdir out
14738 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14739
14740 lt_compiler_flag="-o out/conftest2.$ac_objext"
14741 # Insert the option either (1) after the last *FLAGS variable, or
14742 # (2) before a word containing "conftest.", or (3) at the end.
14743 # Note that $ac_compile itself does not contain backslashes and begins
14744 # with a dollar sign (not a hyphen), so the echo should work correctly.
14745 lt_compile=`echo "$ac_compile" | $SED \
14746 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14747 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14748 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014749 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014750 (eval "$lt_compile" 2>out/conftest.err)
14751 ac_status=$?
14752 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014754 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14755 then
14756 # The compiler can only warn and ignore the option if not recognized
14757 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014758 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014759 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14760 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14761 lt_cv_prog_compiler_c_o=yes
14762 fi
14763 fi
14764 chmod u+w . 2>&5
14765 $RM conftest*
14766 # SGI C++ compiler will create directory out/ii_files/ for
14767 # template instantiation
14768 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14769 $RM out/* && rmdir out
14770 cd ..
14771 $RM -r conftest
14772 $RM conftest*
14773
14774fi
14775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14776$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14777
14778
14779
14780
14781hard_links="nottested"
14782if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14783 # do not overwrite the value of need_locks provided by the user
14784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14785$as_echo_n "checking if we can lock with hard links... " >&6; }
14786 hard_links=yes
14787 $RM conftest*
14788 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14789 touch conftest.a
14790 ln conftest.a conftest.b 2>&5 || hard_links=no
14791 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14793$as_echo "$hard_links" >&6; }
14794 if test "$hard_links" = no; then
14795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14796$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14797 need_locks=warn
14798 fi
14799else
14800 need_locks=no
14801fi
14802
14803
14804
14805
14806
14807
14808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14809$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14810
14811 runpath_var=
14812 allow_undefined_flag=
14813 always_export_symbols=no
14814 archive_cmds=
14815 archive_expsym_cmds=
14816 compiler_needs_object=no
14817 enable_shared_with_static_runtimes=no
14818 export_dynamic_flag_spec=
14819 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14820 hardcode_automatic=no
14821 hardcode_direct=no
14822 hardcode_direct_absolute=no
14823 hardcode_libdir_flag_spec=
cristy73bd4a52010-10-05 11:24:23 +000014824 hardcode_libdir_separator=
14825 hardcode_minus_L=no
14826 hardcode_shlibpath_var=unsupported
14827 inherit_rpath=no
14828 link_all_deplibs=unknown
14829 module_cmds=
14830 module_expsym_cmds=
14831 old_archive_from_new_cmds=
14832 old_archive_from_expsyms_cmds=
14833 thread_safe_flag_spec=
14834 whole_archive_flag_spec=
14835 # include_expsyms should be a list of space-separated symbols to be *always*
14836 # included in the symbol list
14837 include_expsyms=
14838 # exclude_expsyms can be an extended regexp of symbols to exclude
14839 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14840 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14841 # as well as any symbol that contains `d'.
14842 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14843 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14844 # platforms (ab)use it in PIC code, but their linkers get confused if
14845 # the symbol is explicitly referenced. Since portable code cannot
14846 # rely on this symbol name, it's probably fine to never include it in
14847 # preloaded symbol tables.
14848 # Exclude shared library initialization/finalization symbols.
14849 extract_expsyms_cmds=
14850
14851 case $host_os in
14852 cygwin* | mingw* | pw32* | cegcc*)
14853 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14854 # When not using gcc, we currently assume that we are using
14855 # Microsoft Visual C++.
14856 if test "$GCC" != yes; then
14857 with_gnu_ld=no
14858 fi
14859 ;;
14860 interix*)
14861 # we just hope/assume this is gcc and not c89 (= MSVC++)
14862 with_gnu_ld=yes
14863 ;;
14864 openbsd*)
14865 with_gnu_ld=no
14866 ;;
14867 esac
14868
14869 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000014870
14871 # On some targets, GNU ld is compatible enough with the native linker
14872 # that we're better off using the native interface for both.
14873 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000014874 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000014875 case $host_os in
14876 aix*)
14877 # The AIX port of GNU ld has always aspired to compatibility
14878 # with the native linker. However, as the warning in the GNU ld
14879 # block says, versions before 2.19.5* couldn't really create working
14880 # shared libraries, regardless of the interface used.
14881 case `$LD -v 2>&1` in
14882 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14883 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14884 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14885 *)
14886 lt_use_gnu_ld_interface=yes
14887 ;;
14888 esac
14889 ;;
14890 *)
14891 lt_use_gnu_ld_interface=yes
14892 ;;
14893 esac
14894 fi
14895
14896 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000014897 # If archive_cmds runs LD, not CC, wlarc should be empty
14898 wlarc='${wl}'
14899
14900 # Set some defaults for GNU ld with shared library support. These
14901 # are reset later if shared libraries are not supported. Putting them
14902 # here allows them to be overridden if necessary.
14903 runpath_var=LD_RUN_PATH
14904 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14905 export_dynamic_flag_spec='${wl}--export-dynamic'
14906 # ancient GNU ld didn't support --whole-archive et. al.
14907 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14908 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14909 else
14910 whole_archive_flag_spec=
14911 fi
14912 supports_anon_versioning=no
14913 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000014914 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000014915 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14916 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14917 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14918 *\ 2.11.*) ;; # other 2.11 versions
14919 *) supports_anon_versioning=yes ;;
14920 esac
14921
14922 # See if GNU ld supports shared libraries.
14923 case $host_os in
14924 aix[3-9]*)
14925 # On AIX/PPC, the GNU linker is very broken
14926 if test "$host_cpu" != ia64; then
14927 ld_shlibs=no
14928 cat <<_LT_EOF 1>&2
14929
cristy0c60a692010-11-04 01:09:47 +000014930*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000014931*** to be unable to reliably create shared libraries on AIX.
14932*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000014933*** really care for shared libraries, you may want to install binutils
14934*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14935*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000014936
14937_LT_EOF
14938 fi
14939 ;;
14940
14941 amigaos*)
14942 case $host_cpu in
14943 powerpc)
14944 # see comment about AmigaOS4 .so support
14945 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14946 archive_expsym_cmds=''
14947 ;;
14948 m68k)
14949 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)'
14950 hardcode_libdir_flag_spec='-L$libdir'
14951 hardcode_minus_L=yes
14952 ;;
14953 esac
14954 ;;
14955
14956 beos*)
14957 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14958 allow_undefined_flag=unsupported
14959 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14960 # support --undefined. This deserves some investigation. FIXME
14961 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14962 else
14963 ld_shlibs=no
14964 fi
14965 ;;
14966
14967 cygwin* | mingw* | pw32* | cegcc*)
14968 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14969 # as there is no search path for DLLs.
14970 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000014971 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000014972 allow_undefined_flag=unsupported
14973 always_export_symbols=no
14974 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000014975 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'
14976 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 +000014977
14978 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14979 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14980 # If the export-symbols file already is a .def file (1st line
14981 # is EXPORTS), use it as is; otherwise, prepend...
14982 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14983 cp $export_symbols $output_objdir/$soname.def;
14984 else
14985 echo EXPORTS > $output_objdir/$soname.def;
14986 cat $export_symbols >> $output_objdir/$soname.def;
14987 fi~
14988 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14989 else
14990 ld_shlibs=no
14991 fi
14992 ;;
14993
cristy0c60a692010-11-04 01:09:47 +000014994 haiku*)
14995 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14996 link_all_deplibs=yes
14997 ;;
14998
cristy73bd4a52010-10-05 11:24:23 +000014999 interix[3-9]*)
15000 hardcode_direct=no
15001 hardcode_shlibpath_var=no
15002 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15003 export_dynamic_flag_spec='${wl}-E'
15004 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15005 # Instead, shared libraries are loaded at an image base (0x10000000 by
15006 # default) and relocated if they conflict, which is a slow very memory
15007 # consuming and fragmenting process. To avoid this, we pick a random,
15008 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15009 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15010 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15011 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'
15012 ;;
15013
cristy0c60a692010-11-04 01:09:47 +000015014 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000015015 tmp_diet=no
15016 if test "$host_os" = linux-dietlibc; then
15017 case $cc_basename in
15018 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15019 esac
15020 fi
15021 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15022 && test "$tmp_diet" = no
15023 then
cristyda16f162011-02-19 23:52:17 +000015024 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000015025 tmp_sharedflag='-shared'
15026 case $cc_basename,$host_cpu in
15027 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000015028 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 +000015029 tmp_addflag=' $pic_flag'
15030 ;;
cristy0c60a692010-11-04 01:09:47 +000015031 pgf77* | pgf90* | pgf95* | pgfortran*)
15032 # Portland Group f77 and f90 compilers
15033 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 +000015034 tmp_addflag=' $pic_flag -Mnomain' ;;
15035 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15036 tmp_addflag=' -i_dynamic' ;;
15037 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15038 tmp_addflag=' -i_dynamic -nofor_main' ;;
15039 ifc* | ifort*) # Intel Fortran compiler
15040 tmp_addflag=' -nofor_main' ;;
15041 lf95*) # Lahey Fortran 8.1
15042 whole_archive_flag_spec=
15043 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000015044 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000015045 tmp_sharedflag='-qmkshrobj'
15046 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000015047 nvcc*) # Cuda Compiler Driver 2.2
15048 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'
15049 compiler_needs_object=yes
15050 ;;
cristy73bd4a52010-10-05 11:24:23 +000015051 esac
15052 case `$CC -V 2>&1 | sed 5q` in
15053 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000015054 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 +000015055 compiler_needs_object=yes
15056 tmp_sharedflag='-G' ;;
15057 *Sun\ F*) # Sun Fortran 8.3
15058 tmp_sharedflag='-G' ;;
15059 esac
15060 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15061
15062 if test "x$supports_anon_versioning" = xyes; then
15063 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15064 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15065 echo "local: *; };" >> $output_objdir/$libname.ver~
15066 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15067 fi
15068
15069 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000015070 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000015071 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15072 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
cristy99bd5232011-12-07 14:38:20 +000015073 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cristy0c60a692010-11-04 01:09:47 +000015074 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015075 if test "x$supports_anon_versioning" = xyes; then
15076 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15077 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15078 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000015079 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015080 fi
15081 ;;
15082 esac
15083 else
15084 ld_shlibs=no
15085 fi
15086 ;;
15087
15088 netbsd*)
15089 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15090 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15091 wlarc=
15092 else
cristyda16f162011-02-19 23:52:17 +000015093 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15094 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 +000015095 fi
15096 ;;
15097
15098 solaris*)
15099 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15100 ld_shlibs=no
15101 cat <<_LT_EOF 1>&2
15102
15103*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15104*** create shared libraries on Solaris systems. Therefore, libtool
15105*** is disabling shared libraries support. We urge you to upgrade GNU
15106*** binutils to release 2.9.1 or newer. Another option is to modify
15107*** your PATH or compiler configuration so that the native linker is
15108*** used, and then restart.
15109
15110_LT_EOF
15111 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000015112 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15113 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 +000015114 else
15115 ld_shlibs=no
15116 fi
15117 ;;
15118
15119 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15120 case `$LD -v 2>&1` in
15121 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15122 ld_shlibs=no
15123 cat <<_LT_EOF 1>&2
15124
15125*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15126*** reliably create shared libraries on SCO systems. Therefore, libtool
15127*** is disabling shared libraries support. We urge you to upgrade GNU
15128*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15129*** your PATH or compiler configuration so that the native linker is
15130*** used, and then restart.
15131
15132_LT_EOF
15133 ;;
15134 *)
15135 # For security reasons, it is highly recommended that you always
15136 # use absolute paths for naming shared libraries, and exclude the
15137 # DT_RUNPATH tag from executables and libraries. But doing so
15138 # requires that you compile everything twice, which is a pain.
15139 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15140 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15141 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15142 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15143 else
15144 ld_shlibs=no
15145 fi
15146 ;;
15147 esac
15148 ;;
15149
15150 sunos4*)
15151 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15152 wlarc=
15153 hardcode_direct=yes
15154 hardcode_shlibpath_var=no
15155 ;;
15156
15157 *)
15158 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000015159 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15160 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 +000015161 else
15162 ld_shlibs=no
15163 fi
15164 ;;
15165 esac
15166
15167 if test "$ld_shlibs" = no; then
15168 runpath_var=
15169 hardcode_libdir_flag_spec=
15170 export_dynamic_flag_spec=
15171 whole_archive_flag_spec=
15172 fi
15173 else
15174 # PORTME fill in a description of your system's linker (not GNU ld)
15175 case $host_os in
15176 aix3*)
15177 allow_undefined_flag=unsupported
15178 always_export_symbols=yes
15179 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'
15180 # Note: this linker hardcodes the directories in LIBPATH if there
15181 # are no directories specified by -L.
15182 hardcode_minus_L=yes
15183 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15184 # Neither direct hardcoding nor static linking is supported with a
15185 # broken collect2.
15186 hardcode_direct=unsupported
15187 fi
15188 ;;
15189
15190 aix[4-9]*)
15191 if test "$host_cpu" = ia64; then
15192 # On IA64, the linker does run time linking by default, so we don't
15193 # have to do anything special.
15194 aix_use_runtimelinking=no
15195 exp_sym_flag='-Bexport'
15196 no_entry_flag=""
15197 else
15198 # If we're using GNU nm, then we don't want the "-C" option.
15199 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000015200 # Also, AIX nm treats weak defined symbols like other global
15201 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000015202 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000015203 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 +000015204 else
15205 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'
15206 fi
15207 aix_use_runtimelinking=no
15208
15209 # Test if we are trying to use run time linking or normal
15210 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15211 # need to do runtime linking.
15212 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15213 for ld_flag in $LDFLAGS; do
15214 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15215 aix_use_runtimelinking=yes
15216 break
15217 fi
15218 done
15219 ;;
15220 esac
15221
15222 exp_sym_flag='-bexport'
15223 no_entry_flag='-bnoentry'
15224 fi
15225
15226 # When large executables or shared objects are built, AIX ld can
15227 # have problems creating the table of contents. If linking a library
15228 # or program results in "error TOC overflow" add -mminimal-toc to
15229 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15230 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15231
15232 archive_cmds=''
15233 hardcode_direct=yes
15234 hardcode_direct_absolute=yes
15235 hardcode_libdir_separator=':'
15236 link_all_deplibs=yes
15237 file_list_spec='${wl}-f,'
15238
15239 if test "$GCC" = yes; then
15240 case $host_os in aix4.[012]|aix4.[012].*)
15241 # We only want to do this on AIX 4.2 and lower, the check
15242 # below for broken collect2 doesn't work under 4.3+
15243 collect2name=`${CC} -print-prog-name=collect2`
15244 if test -f "$collect2name" &&
15245 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15246 then
15247 # We have reworked collect2
15248 :
15249 else
15250 # We have old collect2
15251 hardcode_direct=unsupported
15252 # It fails to find uninstalled libraries when the uninstalled
15253 # path is not listed in the libpath. Setting hardcode_minus_L
15254 # to unsupported forces relinking
15255 hardcode_minus_L=yes
15256 hardcode_libdir_flag_spec='-L$libdir'
15257 hardcode_libdir_separator=
15258 fi
15259 ;;
15260 esac
15261 shared_flag='-shared'
15262 if test "$aix_use_runtimelinking" = yes; then
15263 shared_flag="$shared_flag "'${wl}-G'
15264 fi
15265 else
15266 # not using gcc
15267 if test "$host_cpu" = ia64; then
15268 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15269 # chokes on -Wl,-G. The following line is correct:
15270 shared_flag='-G'
15271 else
15272 if test "$aix_use_runtimelinking" = yes; then
15273 shared_flag='${wl}-G'
15274 else
15275 shared_flag='${wl}-bM:SRE'
15276 fi
15277 fi
15278 fi
15279
15280 export_dynamic_flag_spec='${wl}-bexpall'
15281 # It seems that -bexpall does not export symbols beginning with
15282 # underscore (_), so it is better to generate a list of symbols to export.
15283 always_export_symbols=yes
15284 if test "$aix_use_runtimelinking" = yes; then
15285 # Warning - without using the other runtime loading flags (-brtl),
15286 # -berok will link without error, but may produce a broken library.
15287 allow_undefined_flag='-berok'
15288 # Determine the default libpath from the value encoded in an
15289 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015290 if test "${lt_cv_aix_libpath+set}" = set; then
15291 aix_libpath=$lt_cv_aix_libpath
15292else
15293 if ${lt_cv_aix_libpath_+:} false; then :
15294 $as_echo_n "(cached) " >&6
15295else
15296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015297/* end confdefs.h. */
15298
15299int
15300main ()
15301{
15302
15303 ;
15304 return 0;
15305}
15306_ACEOF
15307if ac_fn_c_try_link "$LINENO"; then :
15308
cristyda16f162011-02-19 23:52:17 +000015309 lt_aix_libpath_sed='
15310 /Import File Strings/,/^$/ {
15311 /^0/ {
15312 s/^0 *\([^ ]*\) *$/\1/
15313 p
15314 }
15315 }'
15316 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15317 # Check for a 64-bit object if we didn't find anything.
15318 if test -z "$lt_cv_aix_libpath_"; then
15319 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15320 fi
cristy73bd4a52010-10-05 11:24:23 +000015321fi
15322rm -f core conftest.err conftest.$ac_objext \
15323 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015324 if test -z "$lt_cv_aix_libpath_"; then
15325 lt_cv_aix_libpath_="/usr/lib:/lib"
15326 fi
15327
15328fi
15329
15330 aix_libpath=$lt_cv_aix_libpath_
15331fi
cristy73bd4a52010-10-05 11:24:23 +000015332
15333 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000015334 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 +000015335 else
15336 if test "$host_cpu" = ia64; then
15337 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15338 allow_undefined_flag="-z nodefs"
15339 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"
15340 else
15341 # Determine the default libpath from the value encoded in an
15342 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015343 if test "${lt_cv_aix_libpath+set}" = set; then
15344 aix_libpath=$lt_cv_aix_libpath
15345else
15346 if ${lt_cv_aix_libpath_+:} false; then :
15347 $as_echo_n "(cached) " >&6
15348else
15349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015350/* end confdefs.h. */
15351
15352int
15353main ()
15354{
15355
15356 ;
15357 return 0;
15358}
15359_ACEOF
15360if ac_fn_c_try_link "$LINENO"; then :
15361
cristyda16f162011-02-19 23:52:17 +000015362 lt_aix_libpath_sed='
15363 /Import File Strings/,/^$/ {
15364 /^0/ {
15365 s/^0 *\([^ ]*\) *$/\1/
15366 p
15367 }
15368 }'
15369 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15370 # Check for a 64-bit object if we didn't find anything.
15371 if test -z "$lt_cv_aix_libpath_"; then
15372 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15373 fi
cristy73bd4a52010-10-05 11:24:23 +000015374fi
15375rm -f core conftest.err conftest.$ac_objext \
15376 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015377 if test -z "$lt_cv_aix_libpath_"; then
15378 lt_cv_aix_libpath_="/usr/lib:/lib"
15379 fi
15380
15381fi
15382
15383 aix_libpath=$lt_cv_aix_libpath_
15384fi
cristy73bd4a52010-10-05 11:24:23 +000015385
15386 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15387 # Warning - without using the other run time loading flags,
15388 # -berok will link without error, but may produce a broken library.
15389 no_undefined_flag=' ${wl}-bernotok'
15390 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000015391 if test "$with_gnu_ld" = yes; then
15392 # We only use this code for GNU lds that support --whole-archive.
15393 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15394 else
15395 # Exported symbols can be pulled into shared objects from archives
15396 whole_archive_flag_spec='$convenience'
15397 fi
cristy73bd4a52010-10-05 11:24:23 +000015398 archive_cmds_need_lc=yes
15399 # This is similar to how AIX traditionally builds its shared libraries.
15400 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'
15401 fi
15402 fi
15403 ;;
15404
15405 amigaos*)
15406 case $host_cpu in
15407 powerpc)
15408 # see comment about AmigaOS4 .so support
15409 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15410 archive_expsym_cmds=''
15411 ;;
15412 m68k)
15413 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)'
15414 hardcode_libdir_flag_spec='-L$libdir'
15415 hardcode_minus_L=yes
15416 ;;
15417 esac
15418 ;;
15419
15420 bsdi[45]*)
15421 export_dynamic_flag_spec=-rdynamic
15422 ;;
15423
15424 cygwin* | mingw* | pw32* | cegcc*)
15425 # When not using gcc, we currently assume that we are using
15426 # Microsoft Visual C++.
15427 # hardcode_libdir_flag_spec is actually meaningless, as there is
15428 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000015429 case $cc_basename in
15430 cl*)
15431 # Native MSVC
15432 hardcode_libdir_flag_spec=' '
15433 allow_undefined_flag=unsupported
15434 always_export_symbols=yes
15435 file_list_spec='@'
15436 # Tell ltmain to make .lib files, not .a files.
15437 libext=lib
15438 # Tell ltmain to make .dll files, not .so files.
15439 shrext_cmds=".dll"
15440 # FIXME: Setting linknames here is a bad hack.
15441 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15442 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15443 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15444 else
15445 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15446 fi~
15447 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15448 linknames='
15449 # The linker will not automatically build a static lib if we build a DLL.
15450 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15451 enable_shared_with_static_runtimes=yes
cristy99bd5232011-12-07 14:38:20 +000015452 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
cristyda16f162011-02-19 23:52:17 +000015453 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15454 # Don't use ranlib
15455 old_postinstall_cmds='chmod 644 $oldlib'
15456 postlink_cmds='lt_outputfile="@OUTPUT@"~
15457 lt_tool_outputfile="@TOOL_OUTPUT@"~
15458 case $lt_outputfile in
15459 *.exe|*.EXE) ;;
15460 *)
15461 lt_outputfile="$lt_outputfile.exe"
15462 lt_tool_outputfile="$lt_tool_outputfile.exe"
15463 ;;
15464 esac~
15465 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15466 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15467 $RM "$lt_outputfile.manifest";
15468 fi'
15469 ;;
15470 *)
15471 # Assume MSVC wrapper
15472 hardcode_libdir_flag_spec=' '
15473 allow_undefined_flag=unsupported
15474 # Tell ltmain to make .lib files, not .a files.
15475 libext=lib
15476 # Tell ltmain to make .dll files, not .so files.
15477 shrext_cmds=".dll"
15478 # FIXME: Setting linknames here is a bad hack.
15479 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15480 # The linker will automatically build a .lib file if we build a DLL.
15481 old_archive_from_new_cmds='true'
15482 # FIXME: Should let the user specify the lib program.
15483 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15484 enable_shared_with_static_runtimes=yes
15485 ;;
15486 esac
cristy73bd4a52010-10-05 11:24:23 +000015487 ;;
15488
15489 darwin* | rhapsody*)
15490
15491
15492 archive_cmds_need_lc=no
15493 hardcode_direct=no
15494 hardcode_automatic=yes
15495 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000015496 if test "$lt_cv_ld_force_load" = "yes"; then
15497 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 +000015498
cristy0c60a692010-11-04 01:09:47 +000015499 else
15500 whole_archive_flag_spec=''
15501 fi
cristy73bd4a52010-10-05 11:24:23 +000015502 link_all_deplibs=yes
15503 allow_undefined_flag="$_lt_dar_allow_undefined"
15504 case $cc_basename in
15505 ifort*) _lt_dar_can_shared=yes ;;
15506 *) _lt_dar_can_shared=$GCC ;;
15507 esac
15508 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000015509 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000015510 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15511 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15512 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}"
15513 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}"
15514
15515 else
15516 ld_shlibs=no
15517 fi
15518
15519 ;;
15520
15521 dgux*)
15522 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15523 hardcode_libdir_flag_spec='-L$libdir'
15524 hardcode_shlibpath_var=no
15525 ;;
15526
cristy73bd4a52010-10-05 11:24:23 +000015527 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15528 # support. Future versions do this automatically, but an explicit c++rt0.o
15529 # does not break anything, and helps significantly (at the cost of a little
15530 # extra space).
15531 freebsd2.2*)
15532 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15533 hardcode_libdir_flag_spec='-R$libdir'
15534 hardcode_direct=yes
15535 hardcode_shlibpath_var=no
15536 ;;
15537
15538 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
cristy99bd5232011-12-07 14:38:20 +000015539 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000015540 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15541 hardcode_direct=yes
15542 hardcode_minus_L=yes
15543 hardcode_shlibpath_var=no
15544 ;;
15545
15546 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15547 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000015548 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015549 hardcode_libdir_flag_spec='-R$libdir'
15550 hardcode_direct=yes
15551 hardcode_shlibpath_var=no
15552 ;;
15553
15554 hpux9*)
15555 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015556 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 +000015557 else
15558 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'
15559 fi
15560 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15561 hardcode_libdir_separator=:
15562 hardcode_direct=yes
15563
15564 # hardcode_minus_L: Not really in the search PATH,
15565 # but as the default location of the library.
15566 hardcode_minus_L=yes
15567 export_dynamic_flag_spec='${wl}-E'
15568 ;;
15569
15570 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000015571 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000015572 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 +000015573 else
15574 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15575 fi
15576 if test "$with_gnu_ld" = no; then
15577 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cristy73bd4a52010-10-05 11:24:23 +000015578 hardcode_libdir_separator=:
15579 hardcode_direct=yes
15580 hardcode_direct_absolute=yes
15581 export_dynamic_flag_spec='${wl}-E'
15582 # hardcode_minus_L: Not really in the search PATH,
15583 # but as the default location of the library.
15584 hardcode_minus_L=yes
15585 fi
15586 ;;
15587
15588 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000015589 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000015590 case $host_cpu in
15591 hppa*64*)
15592 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15593 ;;
15594 ia64*)
cristyda16f162011-02-19 23:52:17 +000015595 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015596 ;;
15597 *)
cristyda16f162011-02-19 23:52:17 +000015598 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 +000015599 ;;
15600 esac
15601 else
15602 case $host_cpu in
15603 hppa*64*)
15604 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15605 ;;
15606 ia64*)
15607 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15608 ;;
15609 *)
cristy0c60a692010-11-04 01:09:47 +000015610
15611 # Older versions of the 11.00 compiler do not understand -b yet
15612 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15614$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015615if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015616 $as_echo_n "(cached) " >&6
15617else
15618 lt_cv_prog_compiler__b=no
15619 save_LDFLAGS="$LDFLAGS"
15620 LDFLAGS="$LDFLAGS -b"
15621 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15622 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15623 # The linker can only warn and ignore the option if not recognized
15624 # So say no if there are warnings
15625 if test -s conftest.err; then
15626 # Append any errors to the config.log.
15627 cat conftest.err 1>&5
15628 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15629 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15630 if diff conftest.exp conftest.er2 >/dev/null; then
15631 lt_cv_prog_compiler__b=yes
15632 fi
15633 else
15634 lt_cv_prog_compiler__b=yes
15635 fi
15636 fi
15637 $RM -r conftest*
15638 LDFLAGS="$save_LDFLAGS"
15639
15640fi
15641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15642$as_echo "$lt_cv_prog_compiler__b" >&6; }
15643
15644if test x"$lt_cv_prog_compiler__b" = xyes; then
15645 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15646else
15647 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15648fi
15649
cristy73bd4a52010-10-05 11:24:23 +000015650 ;;
15651 esac
15652 fi
15653 if test "$with_gnu_ld" = no; then
15654 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15655 hardcode_libdir_separator=:
15656
15657 case $host_cpu in
15658 hppa*64*|ia64*)
15659 hardcode_direct=no
15660 hardcode_shlibpath_var=no
15661 ;;
15662 *)
15663 hardcode_direct=yes
15664 hardcode_direct_absolute=yes
15665 export_dynamic_flag_spec='${wl}-E'
15666
15667 # hardcode_minus_L: Not really in the search PATH,
15668 # but as the default location of the library.
15669 hardcode_minus_L=yes
15670 ;;
15671 esac
15672 fi
15673 ;;
15674
15675 irix5* | irix6* | nonstopux*)
15676 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015677 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 +000015678 # Try to use the -exported_symbol ld option, if it does not
15679 # work, assume that -exports_file does not work either and
15680 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000015681 # This should be the same for all languages, so no per-tag cache variable.
15682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15683$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15684if ${lt_cv_irix_exported_symbol+:} false; then :
15685 $as_echo_n "(cached) " >&6
15686else
15687 save_LDFLAGS="$LDFLAGS"
15688 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015690/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000015691int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000015692_ACEOF
15693if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000015694 lt_cv_irix_exported_symbol=yes
15695else
15696 lt_cv_irix_exported_symbol=no
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 LDFLAGS="$save_LDFLAGS"
15701fi
15702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15703$as_echo "$lt_cv_irix_exported_symbol" >&6; }
15704 if test "$lt_cv_irix_exported_symbol" = yes; then
15705 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'
15706 fi
cristy73bd4a52010-10-05 11:24:23 +000015707 else
cristy0c60a692010-11-04 01:09:47 +000015708 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'
15709 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 +000015710 fi
15711 archive_cmds_need_lc='no'
15712 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15713 hardcode_libdir_separator=:
15714 inherit_rpath=yes
15715 link_all_deplibs=yes
15716 ;;
15717
15718 netbsd*)
15719 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15720 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15721 else
15722 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15723 fi
15724 hardcode_libdir_flag_spec='-R$libdir'
15725 hardcode_direct=yes
15726 hardcode_shlibpath_var=no
15727 ;;
15728
15729 newsos6)
15730 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15731 hardcode_direct=yes
15732 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15733 hardcode_libdir_separator=:
15734 hardcode_shlibpath_var=no
15735 ;;
15736
15737 *nto* | *qnx*)
15738 ;;
15739
15740 openbsd*)
15741 if test -f /usr/libexec/ld.so; then
15742 hardcode_direct=yes
15743 hardcode_shlibpath_var=no
15744 hardcode_direct_absolute=yes
15745 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15746 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15747 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15748 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15749 export_dynamic_flag_spec='${wl}-E'
15750 else
15751 case $host_os in
15752 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15753 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15754 hardcode_libdir_flag_spec='-R$libdir'
15755 ;;
15756 *)
15757 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15758 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15759 ;;
15760 esac
15761 fi
15762 else
15763 ld_shlibs=no
15764 fi
15765 ;;
15766
15767 os2*)
15768 hardcode_libdir_flag_spec='-L$libdir'
15769 hardcode_minus_L=yes
15770 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000015771 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 +000015772 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15773 ;;
15774
15775 osf3*)
15776 if test "$GCC" = yes; then
15777 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000015778 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 +000015779 else
15780 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000015781 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 +000015782 fi
15783 archive_cmds_need_lc='no'
15784 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15785 hardcode_libdir_separator=:
15786 ;;
15787
15788 osf4* | osf5*) # as osf3* with the addition of -msym flag
15789 if test "$GCC" = yes; then
15790 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000015791 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 +000015792 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15793 else
15794 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000015795 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 +000015796 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 +000015797 $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 +000015798
15799 # Both c and cxx compiler support -rpath directly
15800 hardcode_libdir_flag_spec='-rpath $libdir'
15801 fi
15802 archive_cmds_need_lc='no'
15803 hardcode_libdir_separator=:
15804 ;;
15805
15806 solaris*)
15807 no_undefined_flag=' -z defs'
15808 if test "$GCC" = yes; then
15809 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000015810 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 +000015811 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 +000015812 $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 +000015813 else
15814 case `$CC -V 2>&1` in
15815 *"Compilers 5.0"*)
15816 wlarc=''
15817 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15818 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15819 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15820 ;;
15821 *)
15822 wlarc='${wl}'
15823 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15824 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15825 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15826 ;;
15827 esac
15828 fi
15829 hardcode_libdir_flag_spec='-R$libdir'
15830 hardcode_shlibpath_var=no
15831 case $host_os in
15832 solaris2.[0-5] | solaris2.[0-5].*) ;;
15833 *)
15834 # The compiler driver will combine and reorder linker options,
15835 # but understands `-z linker_flag'. GCC discards it without `$wl',
15836 # but is careful enough not to reorder.
15837 # Supported since Solaris 2.6 (maybe 2.5.1?)
15838 if test "$GCC" = yes; then
15839 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15840 else
15841 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15842 fi
15843 ;;
15844 esac
15845 link_all_deplibs=yes
15846 ;;
15847
15848 sunos4*)
15849 if test "x$host_vendor" = xsequent; then
15850 # Use $CC to link under sequent, because it throws in some extra .o
15851 # files that make .init and .fini sections work.
15852 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15853 else
15854 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15855 fi
15856 hardcode_libdir_flag_spec='-L$libdir'
15857 hardcode_direct=yes
15858 hardcode_minus_L=yes
15859 hardcode_shlibpath_var=no
15860 ;;
15861
15862 sysv4)
15863 case $host_vendor in
15864 sni)
15865 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15866 hardcode_direct=yes # is this really true???
15867 ;;
15868 siemens)
15869 ## LD is ld it makes a PLAMLIB
15870 ## CC just makes a GrossModule.
15871 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15872 reload_cmds='$CC -r -o $output$reload_objs'
15873 hardcode_direct=no
15874 ;;
15875 motorola)
15876 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15877 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15878 ;;
15879 esac
15880 runpath_var='LD_RUN_PATH'
15881 hardcode_shlibpath_var=no
15882 ;;
15883
15884 sysv4.3*)
15885 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15886 hardcode_shlibpath_var=no
15887 export_dynamic_flag_spec='-Bexport'
15888 ;;
15889
15890 sysv4*MP*)
15891 if test -d /usr/nec; then
15892 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15893 hardcode_shlibpath_var=no
15894 runpath_var=LD_RUN_PATH
15895 hardcode_runpath_var=yes
15896 ld_shlibs=yes
15897 fi
15898 ;;
15899
15900 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15901 no_undefined_flag='${wl}-z,text'
15902 archive_cmds_need_lc=no
15903 hardcode_shlibpath_var=no
15904 runpath_var='LD_RUN_PATH'
15905
15906 if test "$GCC" = yes; then
15907 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15908 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15909 else
15910 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15911 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15912 fi
15913 ;;
15914
15915 sysv5* | sco3.2v5* | sco5v6*)
15916 # Note: We can NOT use -z defs as we might desire, because we do not
15917 # link with -lc, and that would cause any symbols used from libc to
15918 # always be unresolved, which means just about no library would
15919 # ever link correctly. If we're not using GNU ld we use -z text
15920 # though, which does catch some bad symbols but isn't as heavy-handed
15921 # as -z defs.
15922 no_undefined_flag='${wl}-z,text'
15923 allow_undefined_flag='${wl}-z,nodefs'
15924 archive_cmds_need_lc=no
15925 hardcode_shlibpath_var=no
15926 hardcode_libdir_flag_spec='${wl}-R,$libdir'
15927 hardcode_libdir_separator=':'
15928 link_all_deplibs=yes
15929 export_dynamic_flag_spec='${wl}-Bexport'
15930 runpath_var='LD_RUN_PATH'
15931
15932 if test "$GCC" = yes; then
15933 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15934 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15935 else
15936 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15937 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15938 fi
15939 ;;
15940
15941 uts4*)
15942 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15943 hardcode_libdir_flag_spec='-L$libdir'
15944 hardcode_shlibpath_var=no
15945 ;;
15946
15947 *)
15948 ld_shlibs=no
15949 ;;
15950 esac
15951
15952 if test x$host_vendor = xsni; then
15953 case $host in
15954 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15955 export_dynamic_flag_spec='${wl}-Blargedynsym'
15956 ;;
15957 esac
15958 fi
15959 fi
15960
15961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15962$as_echo "$ld_shlibs" >&6; }
15963test "$ld_shlibs" = no && can_build_shared=no
15964
15965with_gnu_ld=$with_gnu_ld
15966
15967
15968
15969
15970
15971
15972
15973
15974
15975
15976
15977
15978
15979
15980
15981#
15982# Do we need to explicitly link libc?
15983#
15984case "x$archive_cmds_need_lc" in
15985x|xyes)
15986 # Assume -lc should be added
15987 archive_cmds_need_lc=yes
15988
15989 if test "$enable_shared" = yes && test "$GCC" = yes; then
15990 case $archive_cmds in
15991 *'~'*)
15992 # FIXME: we may have to deal with multi-command sequences.
15993 ;;
15994 '$CC '*)
15995 # Test whether the compiler implicitly links with -lc since on some
15996 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15997 # to ld, don't add -lc before -lgcc.
15998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15999$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016000if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016001 $as_echo_n "(cached) " >&6
16002else
16003 $RM conftest*
16004 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016005
cristy0c60a692010-11-04 01:09:47 +000016006 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000016007 (eval $ac_compile) 2>&5
16008 ac_status=$?
16009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16010 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000016011 soname=conftest
16012 lib=conftest
16013 libobjs=conftest.$ac_objext
16014 deplibs=
16015 wl=$lt_prog_compiler_wl
16016 pic_flag=$lt_prog_compiler_pic
16017 compiler_flags=-v
16018 linker_flags=-v
16019 verstring=
16020 output_objdir=.
16021 libname=conftest
16022 lt_save_allow_undefined_flag=$allow_undefined_flag
16023 allow_undefined_flag=
16024 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 +000016025 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16026 ac_status=$?
16027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16028 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000016029 then
16030 lt_cv_archive_cmds_need_lc=no
16031 else
16032 lt_cv_archive_cmds_need_lc=yes
16033 fi
16034 allow_undefined_flag=$lt_save_allow_undefined_flag
16035 else
16036 cat conftest.err 1>&5
16037 fi
16038 $RM conftest*
16039
16040fi
16041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16042$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16043 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000016044 ;;
16045 esac
16046 fi
16047 ;;
16048esac
16049
16050
16051
16052
16053
16054
16055
16056
16057
16058
16059
16060
16061
16062
16063
16064
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074
16075
16076
16077
16078
16079
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145
16146
16147
16148
16149
16150
16151
16152
16153
16154
16155
16156
16157
16158
16159
16160
16161
16162
16163
16164
16165
16166
16167
16168
16169
16170
16171
16172
16173
16174
16175
16176
16177
16178
16179
16180
16181
16182
16183
16184
16185
16186
16187
16188
16189
16190
16191
16192
16193
16194
16195
16196
16197
16198
16199
16200
cristy73bd4a52010-10-05 11:24:23 +000016201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16202$as_echo_n "checking dynamic linker characteristics... " >&6; }
16203
16204if test "$GCC" = yes; then
16205 case $host_os in
16206 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16207 *) lt_awk_arg="/^libraries:/" ;;
16208 esac
cristy0c60a692010-11-04 01:09:47 +000016209 case $host_os in
16210 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16211 *) lt_sed_strip_eq="s,=/,/,g" ;;
16212 esac
16213 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16214 case $lt_search_path_spec in
16215 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000016216 # if the path contains ";" then we assume it to be the separator
16217 # otherwise default to the standard path separator (i.e. ":") - it is
16218 # assumed that no part of a normal pathname contains ";" but that should
16219 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000016220 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16221 ;;
16222 *)
16223 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16224 ;;
16225 esac
cristy73bd4a52010-10-05 11:24:23 +000016226 # Ok, now we have the path, separated by spaces, we can step through it
16227 # and add multilib dir if necessary.
16228 lt_tmp_lt_search_path_spec=
16229 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16230 for lt_sys_path in $lt_search_path_spec; do
16231 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16232 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16233 else
16234 test -d "$lt_sys_path" && \
16235 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16236 fi
16237 done
cristy0c60a692010-11-04 01:09:47 +000016238 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000016239BEGIN {RS=" "; FS="/|\n";} {
16240 lt_foo="";
16241 lt_count=0;
16242 for (lt_i = NF; lt_i > 0; lt_i--) {
16243 if ($lt_i != "" && $lt_i != ".") {
16244 if ($lt_i == "..") {
16245 lt_count++;
16246 } else {
16247 if (lt_count == 0) {
16248 lt_foo="/" $lt_i lt_foo;
16249 } else {
16250 lt_count--;
16251 }
16252 }
16253 }
16254 }
16255 if (lt_foo != "") { lt_freq[lt_foo]++; }
16256 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16257}'`
cristy0c60a692010-11-04 01:09:47 +000016258 # AWK program above erroneously prepends '/' to C:/dos/paths
16259 # for these hosts.
16260 case $host_os in
16261 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16262 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16263 esac
16264 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000016265else
16266 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16267fi
16268library_names_spec=
16269libname_spec='lib$name'
16270soname_spec=
16271shrext_cmds=".so"
16272postinstall_cmds=
16273postuninstall_cmds=
16274finish_cmds=
16275finish_eval=
16276shlibpath_var=
16277shlibpath_overrides_runpath=unknown
16278version_type=none
16279dynamic_linker="$host_os ld.so"
16280sys_lib_dlsearch_path_spec="/lib /usr/lib"
16281need_lib_prefix=unknown
16282hardcode_into_libs=no
16283
16284# when you set need_version to no, make sure it does not cause -set_version
16285# flags to be left without arguments
16286need_version=unknown
16287
16288case $host_os in
16289aix3*)
cristy99bd5232011-12-07 14:38:20 +000016290 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016291 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16292 shlibpath_var=LIBPATH
16293
16294 # AIX 3 has no versioning support, so we append a major version to the name.
16295 soname_spec='${libname}${release}${shared_ext}$major'
16296 ;;
16297
16298aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000016299 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016300 need_lib_prefix=no
16301 need_version=no
16302 hardcode_into_libs=yes
16303 if test "$host_cpu" = ia64; then
16304 # AIX 5 supports IA64
16305 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16306 shlibpath_var=LD_LIBRARY_PATH
16307 else
16308 # With GCC up to 2.95.x, collect2 would create an import file
16309 # for dependence libraries. The import file would start with
16310 # the line `#! .'. This would cause the generated library to
16311 # depend on `.', always an invalid library. This was fixed in
16312 # development snapshots of GCC prior to 3.0.
16313 case $host_os in
16314 aix4 | aix4.[01] | aix4.[01].*)
16315 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16316 echo ' yes '
16317 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16318 :
16319 else
16320 can_build_shared=no
16321 fi
16322 ;;
16323 esac
16324 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16325 # soname into executable. Probably we can add versioning support to
16326 # collect2, so additional links can be useful in future.
16327 if test "$aix_use_runtimelinking" = yes; then
16328 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16329 # instead of lib<name>.a to let people know that these are not
16330 # typical AIX shared libraries.
16331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16332 else
16333 # We preserve .a as extension for shared libraries through AIX4.2
16334 # and later when we are not doing run time linking.
16335 library_names_spec='${libname}${release}.a $libname.a'
16336 soname_spec='${libname}${release}${shared_ext}$major'
16337 fi
16338 shlibpath_var=LIBPATH
16339 fi
16340 ;;
16341
16342amigaos*)
16343 case $host_cpu in
16344 powerpc)
16345 # Since July 2007 AmigaOS4 officially supports .so libraries.
16346 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16348 ;;
16349 m68k)
16350 library_names_spec='$libname.ixlibrary $libname.a'
16351 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000016352 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 +000016353 ;;
16354 esac
16355 ;;
16356
16357beos*)
16358 library_names_spec='${libname}${shared_ext}'
16359 dynamic_linker="$host_os ld.so"
16360 shlibpath_var=LIBRARY_PATH
16361 ;;
16362
16363bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000016364 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016365 need_version=no
16366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16367 soname_spec='${libname}${release}${shared_ext}$major'
16368 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16369 shlibpath_var=LD_LIBRARY_PATH
16370 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16371 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16372 # the default ld.so.conf also contains /usr/contrib/lib and
16373 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16374 # libtool to hard-code these into programs
16375 ;;
16376
16377cygwin* | mingw* | pw32* | cegcc*)
16378 version_type=windows
16379 shrext_cmds=".dll"
16380 need_version=no
16381 need_lib_prefix=no
16382
cristyda16f162011-02-19 23:52:17 +000016383 case $GCC,$cc_basename in
16384 yes,*)
16385 # gcc
cristy73bd4a52010-10-05 11:24:23 +000016386 library_names_spec='$libname.dll.a'
16387 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16388 postinstall_cmds='base_file=`basename \${file}`~
16389 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16390 dldir=$destdir/`dirname \$dlpath`~
16391 test -d \$dldir || mkdir -p \$dldir~
16392 $install_prog $dir/$dlname \$dldir/$dlname~
16393 chmod a+x \$dldir/$dlname~
16394 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16395 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16396 fi'
16397 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16398 dlpath=$dir/\$dldll~
16399 $RM \$dlpath'
16400 shlibpath_overrides_runpath=yes
16401
16402 case $host_os in
16403 cygwin*)
16404 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16405 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000016406
16407 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000016408 ;;
16409 mingw* | cegcc*)
16410 # MinGW DLLs use traditional 'lib' prefix
16411 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000016412 ;;
16413 pw32*)
16414 # pw32 DLLs use 'pw' prefix rather than 'lib'
16415 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16416 ;;
16417 esac
cristyda16f162011-02-19 23:52:17 +000016418 dynamic_linker='Win32 ld.exe'
16419 ;;
16420
16421 *,cl*)
16422 # Native MSVC
16423 libname_spec='$name'
16424 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16425 library_names_spec='${libname}.dll.lib'
16426
16427 case $build_os in
16428 mingw*)
16429 sys_lib_search_path_spec=
16430 lt_save_ifs=$IFS
16431 IFS=';'
16432 for lt_path in $LIB
16433 do
16434 IFS=$lt_save_ifs
16435 # Let DOS variable expansion print the short 8.3 style file name.
16436 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16437 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16438 done
16439 IFS=$lt_save_ifs
16440 # Convert to MSYS style.
16441 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16442 ;;
16443 cygwin*)
16444 # Convert to unix form, then to dos form, then back to unix form
16445 # but this time dos style (no spaces!) so that the unix form looks
16446 # like /cygdrive/c/PROGRA~1:/cygdr...
16447 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16448 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16449 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16450 ;;
16451 *)
16452 sys_lib_search_path_spec="$LIB"
16453 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16454 # It is most probably a Windows format PATH.
16455 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16456 else
16457 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16458 fi
16459 # FIXME: find the short name or the path components, as spaces are
16460 # common. (e.g. "Program Files" -> "PROGRA~1")
16461 ;;
16462 esac
16463
16464 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16465 postinstall_cmds='base_file=`basename \${file}`~
16466 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16467 dldir=$destdir/`dirname \$dlpath`~
16468 test -d \$dldir || mkdir -p \$dldir~
16469 $install_prog $dir/$dlname \$dldir/$dlname'
16470 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16471 dlpath=$dir/\$dldll~
16472 $RM \$dlpath'
16473 shlibpath_overrides_runpath=yes
16474 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000016475 ;;
16476
16477 *)
cristyda16f162011-02-19 23:52:17 +000016478 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000016479 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000016480 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000016481 ;;
16482 esac
cristy73bd4a52010-10-05 11:24:23 +000016483 # FIXME: first we should search . and the directory the executable is in
16484 shlibpath_var=PATH
16485 ;;
16486
16487darwin* | rhapsody*)
16488 dynamic_linker="$host_os dyld"
16489 version_type=darwin
16490 need_lib_prefix=no
16491 need_version=no
16492 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16493 soname_spec='${libname}${release}${major}$shared_ext'
16494 shlibpath_overrides_runpath=yes
16495 shlibpath_var=DYLD_LIBRARY_PATH
16496 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16497
16498 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16499 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16500 ;;
16501
16502dgux*)
cristy99bd5232011-12-07 14:38:20 +000016503 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016504 need_lib_prefix=no
16505 need_version=no
16506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16507 soname_spec='${libname}${release}${shared_ext}$major'
16508 shlibpath_var=LD_LIBRARY_PATH
16509 ;;
16510
cristy73bd4a52010-10-05 11:24:23 +000016511freebsd* | dragonfly*)
16512 # DragonFly does not have aout. When/if they implement a new
16513 # versioning mechanism, adjust this.
16514 if test -x /usr/bin/objformat; then
16515 objformat=`/usr/bin/objformat`
16516 else
16517 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016518 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000016519 *) objformat=elf ;;
16520 esac
16521 fi
16522 version_type=freebsd-$objformat
16523 case $version_type in
16524 freebsd-elf*)
16525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16526 need_version=no
16527 need_lib_prefix=no
16528 ;;
16529 freebsd-*)
16530 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16531 need_version=yes
16532 ;;
16533 esac
16534 shlibpath_var=LD_LIBRARY_PATH
16535 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016536 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000016537 shlibpath_overrides_runpath=yes
16538 ;;
16539 freebsd3.[01]* | freebsdelf3.[01]*)
16540 shlibpath_overrides_runpath=yes
16541 hardcode_into_libs=yes
16542 ;;
16543 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16544 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16545 shlibpath_overrides_runpath=no
16546 hardcode_into_libs=yes
16547 ;;
16548 *) # from 4.6 on, and DragonFly
16549 shlibpath_overrides_runpath=yes
16550 hardcode_into_libs=yes
16551 ;;
16552 esac
16553 ;;
16554
16555gnu*)
cristy99bd5232011-12-07 14:38:20 +000016556 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016557 need_lib_prefix=no
16558 need_version=no
16559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16560 soname_spec='${libname}${release}${shared_ext}$major'
16561 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000016562 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000016563 hardcode_into_libs=yes
16564 ;;
16565
cristy0c60a692010-11-04 01:09:47 +000016566haiku*)
cristy99bd5232011-12-07 14:38:20 +000016567 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000016568 need_lib_prefix=no
16569 need_version=no
16570 dynamic_linker="$host_os runtime_loader"
16571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16572 soname_spec='${libname}${release}${shared_ext}$major'
16573 shlibpath_var=LIBRARY_PATH
16574 shlibpath_overrides_runpath=yes
16575 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16576 hardcode_into_libs=yes
16577 ;;
16578
cristy73bd4a52010-10-05 11:24:23 +000016579hpux9* | hpux10* | hpux11*)
16580 # Give a soname corresponding to the major version so that dld.sl refuses to
16581 # link against other versions.
16582 version_type=sunos
16583 need_lib_prefix=no
16584 need_version=no
16585 case $host_cpu in
16586 ia64*)
16587 shrext_cmds='.so'
16588 hardcode_into_libs=yes
16589 dynamic_linker="$host_os dld.so"
16590 shlibpath_var=LD_LIBRARY_PATH
16591 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16593 soname_spec='${libname}${release}${shared_ext}$major'
16594 if test "X$HPUX_IA64_MODE" = X32; then
16595 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16596 else
16597 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16598 fi
16599 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16600 ;;
16601 hppa*64*)
16602 shrext_cmds='.sl'
16603 hardcode_into_libs=yes
16604 dynamic_linker="$host_os dld.sl"
16605 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16606 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16608 soname_spec='${libname}${release}${shared_ext}$major'
16609 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16610 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16611 ;;
16612 *)
16613 shrext_cmds='.sl'
16614 dynamic_linker="$host_os dld.sl"
16615 shlibpath_var=SHLIB_PATH
16616 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16618 soname_spec='${libname}${release}${shared_ext}$major'
16619 ;;
16620 esac
cristy0c60a692010-11-04 01:09:47 +000016621 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000016622 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000016623 # or fails outright, so override atomically:
16624 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000016625 ;;
16626
16627interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000016628 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016629 need_lib_prefix=no
16630 need_version=no
16631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16632 soname_spec='${libname}${release}${shared_ext}$major'
16633 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16634 shlibpath_var=LD_LIBRARY_PATH
16635 shlibpath_overrides_runpath=no
16636 hardcode_into_libs=yes
16637 ;;
16638
16639irix5* | irix6* | nonstopux*)
16640 case $host_os in
16641 nonstopux*) version_type=nonstopux ;;
16642 *)
16643 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000016644 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016645 else
16646 version_type=irix
16647 fi ;;
16648 esac
16649 need_lib_prefix=no
16650 need_version=no
16651 soname_spec='${libname}${release}${shared_ext}$major'
16652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16653 case $host_os in
16654 irix5* | nonstopux*)
16655 libsuff= shlibsuff=
16656 ;;
16657 *)
16658 case $LD in # libtool.m4 will add one of these switches to LD
16659 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16660 libsuff= shlibsuff= libmagic=32-bit;;
16661 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16662 libsuff=32 shlibsuff=N32 libmagic=N32;;
16663 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16664 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16665 *) libsuff= shlibsuff= libmagic=never-match;;
16666 esac
16667 ;;
16668 esac
16669 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16670 shlibpath_overrides_runpath=no
16671 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16672 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16673 hardcode_into_libs=yes
16674 ;;
16675
16676# No shared lib support for Linux oldld, aout, or coff.
16677linux*oldld* | linux*aout* | linux*coff*)
16678 dynamic_linker=no
16679 ;;
16680
cristy99bd5232011-12-07 14:38:20 +000016681# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000016682linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000016683 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016684 need_lib_prefix=no
16685 need_version=no
16686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16687 soname_spec='${libname}${release}${shared_ext}$major'
16688 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16689 shlibpath_var=LD_LIBRARY_PATH
16690 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000016691
cristy73bd4a52010-10-05 11:24:23 +000016692 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000016693 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016694 $as_echo_n "(cached) " >&6
16695else
16696 lt_cv_shlibpath_overrides_runpath=no
16697 save_LDFLAGS=$LDFLAGS
16698 save_libdir=$libdir
16699 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16700 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016702/* end confdefs.h. */
16703
16704int
16705main ()
16706{
16707
16708 ;
16709 return 0;
16710}
16711_ACEOF
16712if ac_fn_c_try_link "$LINENO"; then :
16713 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000016714 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000016715fi
16716fi
16717rm -f core conftest.err conftest.$ac_objext \
16718 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016719 LDFLAGS=$save_LDFLAGS
16720 libdir=$save_libdir
16721
16722fi
16723
16724 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000016725
16726 # This implies no fast_install, which is unacceptable.
16727 # Some rework will be needed to allow for fast_install
16728 # before this can be enabled.
16729 hardcode_into_libs=yes
16730
16731 # Add ABI-specific directories to the system library path.
16732 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16733
16734 # Append ld.so.conf contents to the search path
16735 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000016736 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 +000016737 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000016738
cristy73bd4a52010-10-05 11:24:23 +000016739 fi
16740
16741 # We used to test for /lib/ld.so.1 and disable shared libraries on
16742 # powerpc, because MkLinux only supported shared libraries with the
16743 # GNU dynamic linker. Since this was broken with cross compilers,
16744 # most powerpc-linux boxes support dynamic linking these days and
16745 # people can always --disable-shared, the test was removed, and we
16746 # assume the GNU/Linux dynamic linker is in use.
16747 dynamic_linker='GNU/Linux ld.so'
16748 ;;
16749
16750netbsd*)
16751 version_type=sunos
16752 need_lib_prefix=no
16753 need_version=no
16754 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16756 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16757 dynamic_linker='NetBSD (a.out) ld.so'
16758 else
16759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16760 soname_spec='${libname}${release}${shared_ext}$major'
16761 dynamic_linker='NetBSD ld.elf_so'
16762 fi
16763 shlibpath_var=LD_LIBRARY_PATH
16764 shlibpath_overrides_runpath=yes
16765 hardcode_into_libs=yes
16766 ;;
16767
16768newsos6)
cristy99bd5232011-12-07 14:38:20 +000016769 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16771 shlibpath_var=LD_LIBRARY_PATH
16772 shlibpath_overrides_runpath=yes
16773 ;;
16774
16775*nto* | *qnx*)
16776 version_type=qnx
16777 need_lib_prefix=no
16778 need_version=no
16779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16780 soname_spec='${libname}${release}${shared_ext}$major'
16781 shlibpath_var=LD_LIBRARY_PATH
16782 shlibpath_overrides_runpath=no
16783 hardcode_into_libs=yes
16784 dynamic_linker='ldqnx.so'
16785 ;;
16786
16787openbsd*)
16788 version_type=sunos
16789 sys_lib_dlsearch_path_spec="/usr/lib"
16790 need_lib_prefix=no
16791 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16792 case $host_os in
16793 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16794 *) need_version=no ;;
16795 esac
16796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16797 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16798 shlibpath_var=LD_LIBRARY_PATH
16799 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16800 case $host_os in
16801 openbsd2.[89] | openbsd2.[89].*)
16802 shlibpath_overrides_runpath=no
16803 ;;
16804 *)
16805 shlibpath_overrides_runpath=yes
16806 ;;
16807 esac
16808 else
16809 shlibpath_overrides_runpath=yes
16810 fi
16811 ;;
16812
16813os2*)
16814 libname_spec='$name'
16815 shrext_cmds=".dll"
16816 need_lib_prefix=no
16817 library_names_spec='$libname${shared_ext} $libname.a'
16818 dynamic_linker='OS/2 ld.exe'
16819 shlibpath_var=LIBPATH
16820 ;;
16821
16822osf3* | osf4* | osf5*)
16823 version_type=osf
16824 need_lib_prefix=no
16825 need_version=no
16826 soname_spec='${libname}${release}${shared_ext}$major'
16827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16828 shlibpath_var=LD_LIBRARY_PATH
16829 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16830 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16831 ;;
16832
16833rdos*)
16834 dynamic_linker=no
16835 ;;
16836
16837solaris*)
cristy99bd5232011-12-07 14:38:20 +000016838 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016839 need_lib_prefix=no
16840 need_version=no
16841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16842 soname_spec='${libname}${release}${shared_ext}$major'
16843 shlibpath_var=LD_LIBRARY_PATH
16844 shlibpath_overrides_runpath=yes
16845 hardcode_into_libs=yes
16846 # ldd complains unless libraries are executable
16847 postinstall_cmds='chmod +x $lib'
16848 ;;
16849
16850sunos4*)
16851 version_type=sunos
16852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16853 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16854 shlibpath_var=LD_LIBRARY_PATH
16855 shlibpath_overrides_runpath=yes
16856 if test "$with_gnu_ld" = yes; then
16857 need_lib_prefix=no
16858 fi
16859 need_version=yes
16860 ;;
16861
16862sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000016863 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16865 soname_spec='${libname}${release}${shared_ext}$major'
16866 shlibpath_var=LD_LIBRARY_PATH
16867 case $host_vendor in
16868 sni)
16869 shlibpath_overrides_runpath=no
16870 need_lib_prefix=no
16871 runpath_var=LD_RUN_PATH
16872 ;;
16873 siemens)
16874 need_lib_prefix=no
16875 ;;
16876 motorola)
16877 need_lib_prefix=no
16878 need_version=no
16879 shlibpath_overrides_runpath=no
16880 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16881 ;;
16882 esac
16883 ;;
16884
16885sysv4*MP*)
16886 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000016887 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016888 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16889 soname_spec='$libname${shared_ext}.$major'
16890 shlibpath_var=LD_LIBRARY_PATH
16891 fi
16892 ;;
16893
16894sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16895 version_type=freebsd-elf
16896 need_lib_prefix=no
16897 need_version=no
16898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16899 soname_spec='${libname}${release}${shared_ext}$major'
16900 shlibpath_var=LD_LIBRARY_PATH
16901 shlibpath_overrides_runpath=yes
16902 hardcode_into_libs=yes
16903 if test "$with_gnu_ld" = yes; then
16904 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16905 else
16906 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16907 case $host_os in
16908 sco3.2v5*)
16909 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16910 ;;
16911 esac
16912 fi
16913 sys_lib_dlsearch_path_spec='/usr/lib'
16914 ;;
16915
16916tpf*)
16917 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000016918 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016919 need_lib_prefix=no
16920 need_version=no
16921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16922 shlibpath_var=LD_LIBRARY_PATH
16923 shlibpath_overrides_runpath=no
16924 hardcode_into_libs=yes
16925 ;;
16926
16927uts4*)
cristy99bd5232011-12-07 14:38:20 +000016928 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16930 soname_spec='${libname}${release}${shared_ext}$major'
16931 shlibpath_var=LD_LIBRARY_PATH
16932 ;;
16933
16934*)
16935 dynamic_linker=no
16936 ;;
16937esac
16938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16939$as_echo "$dynamic_linker" >&6; }
16940test "$dynamic_linker" = no && can_build_shared=no
16941
16942variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16943if test "$GCC" = yes; then
16944 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16945fi
16946
16947if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16948 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16949fi
16950if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16951 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16952fi
16953
16954
16955
16956
16957
16958
16959
16960
16961
16962
16963
16964
16965
16966
16967
16968
16969
16970
16971
16972
16973
16974
16975
16976
16977
16978
16979
16980
16981
16982
16983
16984
16985
16986
16987
16988
16989
16990
16991
16992
16993
16994
16995
16996
16997
16998
16999
17000
17001
17002
17003
17004
17005
17006
17007
17008
17009
17010
17011
17012
17013
17014
17015
17016
17017
17018
17019
17020
17021
17022
17023
17024
17025
17026
17027
17028
17029
17030
17031
17032
17033
17034
17035
17036
17037
17038
17039
cristy0c60a692010-11-04 01:09:47 +000017040
17041
17042
17043
17044
cristy73bd4a52010-10-05 11:24:23 +000017045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17046$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17047hardcode_action=
17048if test -n "$hardcode_libdir_flag_spec" ||
17049 test -n "$runpath_var" ||
17050 test "X$hardcode_automatic" = "Xyes" ; then
17051
17052 # We can hardcode non-existent directories.
17053 if test "$hardcode_direct" != no &&
17054 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17055 # have to relink, otherwise we might link with an installed library
17056 # when we should be linking with a yet-to-be-installed one
17057 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17058 test "$hardcode_minus_L" != no; then
17059 # Linking always hardcodes the temporary library directory.
17060 hardcode_action=relink
17061 else
17062 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17063 hardcode_action=immediate
17064 fi
17065else
17066 # We cannot hardcode anything, or else we can only hardcode existing
17067 # directories.
17068 hardcode_action=unsupported
17069fi
17070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17071$as_echo "$hardcode_action" >&6; }
17072
17073if test "$hardcode_action" = relink ||
17074 test "$inherit_rpath" = yes; then
17075 # Fast installation is not supported
17076 enable_fast_install=no
17077elif test "$shlibpath_overrides_runpath" = yes ||
17078 test "$enable_shared" = no; then
17079 # Fast installation is not necessary
17080 enable_fast_install=needless
17081fi
17082
17083
17084
17085
17086
17087
17088 if test "x$enable_dlopen" != xyes; then
17089 enable_dlopen=unknown
17090 enable_dlopen_self=unknown
17091 enable_dlopen_self_static=unknown
17092else
17093 lt_cv_dlopen=no
17094 lt_cv_dlopen_libs=
17095
17096 case $host_os in
17097 beos*)
17098 lt_cv_dlopen="load_add_on"
17099 lt_cv_dlopen_libs=
17100 lt_cv_dlopen_self=yes
17101 ;;
17102
17103 mingw* | pw32* | cegcc*)
17104 lt_cv_dlopen="LoadLibrary"
17105 lt_cv_dlopen_libs=
17106 ;;
17107
17108 cygwin*)
17109 lt_cv_dlopen="dlopen"
17110 lt_cv_dlopen_libs=
17111 ;;
17112
17113 darwin*)
17114 # if libdl is installed we need to link against it
17115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17116$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017117if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017118 $as_echo_n "(cached) " >&6
17119else
17120 ac_check_lib_save_LIBS=$LIBS
17121LIBS="-ldl $LIBS"
17122cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17123/* end confdefs.h. */
17124
17125/* Override any GCC internal prototype to avoid an error.
17126 Use char because int might match the return type of a GCC
17127 builtin and then its argument prototype would still apply. */
17128#ifdef __cplusplus
17129extern "C"
17130#endif
17131char dlopen ();
17132int
17133main ()
17134{
17135return dlopen ();
17136 ;
17137 return 0;
17138}
17139_ACEOF
17140if ac_fn_c_try_link "$LINENO"; then :
17141 ac_cv_lib_dl_dlopen=yes
17142else
17143 ac_cv_lib_dl_dlopen=no
17144fi
17145rm -f core conftest.err conftest.$ac_objext \
17146 conftest$ac_exeext conftest.$ac_ext
17147LIBS=$ac_check_lib_save_LIBS
17148fi
17149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17150$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017151if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017152 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17153else
17154
17155 lt_cv_dlopen="dyld"
17156 lt_cv_dlopen_libs=
17157 lt_cv_dlopen_self=yes
17158
17159fi
17160
17161 ;;
17162
17163 *)
17164 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000017165if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017166 lt_cv_dlopen="shl_load"
17167else
17168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17169$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017170if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017171 $as_echo_n "(cached) " >&6
17172else
17173 ac_check_lib_save_LIBS=$LIBS
17174LIBS="-ldld $LIBS"
17175cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17176/* end confdefs.h. */
17177
17178/* Override any GCC internal prototype to avoid an error.
17179 Use char because int might match the return type of a GCC
17180 builtin and then its argument prototype would still apply. */
17181#ifdef __cplusplus
17182extern "C"
17183#endif
17184char shl_load ();
17185int
17186main ()
17187{
17188return shl_load ();
17189 ;
17190 return 0;
17191}
17192_ACEOF
17193if ac_fn_c_try_link "$LINENO"; then :
17194 ac_cv_lib_dld_shl_load=yes
17195else
17196 ac_cv_lib_dld_shl_load=no
17197fi
17198rm -f core conftest.err conftest.$ac_objext \
17199 conftest$ac_exeext conftest.$ac_ext
17200LIBS=$ac_check_lib_save_LIBS
17201fi
17202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17203$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000017204if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017205 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17206else
17207 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000017208if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017209 lt_cv_dlopen="dlopen"
17210else
17211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17212$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017213if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017214 $as_echo_n "(cached) " >&6
17215else
17216 ac_check_lib_save_LIBS=$LIBS
17217LIBS="-ldl $LIBS"
17218cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17219/* end confdefs.h. */
17220
17221/* Override any GCC internal prototype to avoid an error.
17222 Use char because int might match the return type of a GCC
17223 builtin and then its argument prototype would still apply. */
17224#ifdef __cplusplus
17225extern "C"
17226#endif
17227char dlopen ();
17228int
17229main ()
17230{
17231return dlopen ();
17232 ;
17233 return 0;
17234}
17235_ACEOF
17236if ac_fn_c_try_link "$LINENO"; then :
17237 ac_cv_lib_dl_dlopen=yes
17238else
17239 ac_cv_lib_dl_dlopen=no
17240fi
17241rm -f core conftest.err conftest.$ac_objext \
17242 conftest$ac_exeext conftest.$ac_ext
17243LIBS=$ac_check_lib_save_LIBS
17244fi
17245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17246$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017247if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017248 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17249else
17250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17251$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017252if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017253 $as_echo_n "(cached) " >&6
17254else
17255 ac_check_lib_save_LIBS=$LIBS
17256LIBS="-lsvld $LIBS"
17257cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17258/* end confdefs.h. */
17259
17260/* Override any GCC internal prototype to avoid an error.
17261 Use char because int might match the return type of a GCC
17262 builtin and then its argument prototype would still apply. */
17263#ifdef __cplusplus
17264extern "C"
17265#endif
17266char dlopen ();
17267int
17268main ()
17269{
17270return dlopen ();
17271 ;
17272 return 0;
17273}
17274_ACEOF
17275if ac_fn_c_try_link "$LINENO"; then :
17276 ac_cv_lib_svld_dlopen=yes
17277else
17278 ac_cv_lib_svld_dlopen=no
17279fi
17280rm -f core conftest.err conftest.$ac_objext \
17281 conftest$ac_exeext conftest.$ac_ext
17282LIBS=$ac_check_lib_save_LIBS
17283fi
17284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17285$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017286if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017287 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17288else
17289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17290$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017291if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017292 $as_echo_n "(cached) " >&6
17293else
17294 ac_check_lib_save_LIBS=$LIBS
17295LIBS="-ldld $LIBS"
17296cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17297/* end confdefs.h. */
17298
17299/* Override any GCC internal prototype to avoid an error.
17300 Use char because int might match the return type of a GCC
17301 builtin and then its argument prototype would still apply. */
17302#ifdef __cplusplus
17303extern "C"
17304#endif
17305char dld_link ();
17306int
17307main ()
17308{
17309return dld_link ();
17310 ;
17311 return 0;
17312}
17313_ACEOF
17314if ac_fn_c_try_link "$LINENO"; then :
17315 ac_cv_lib_dld_dld_link=yes
17316else
17317 ac_cv_lib_dld_dld_link=no
17318fi
17319rm -f core conftest.err conftest.$ac_objext \
17320 conftest$ac_exeext conftest.$ac_ext
17321LIBS=$ac_check_lib_save_LIBS
17322fi
17323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17324$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000017325if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017326 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17327fi
17328
17329
17330fi
17331
17332
17333fi
17334
17335
17336fi
17337
17338
17339fi
17340
17341
17342fi
17343
17344 ;;
17345 esac
17346
17347 if test "x$lt_cv_dlopen" != xno; then
17348 enable_dlopen=yes
17349 else
17350 enable_dlopen=no
17351 fi
17352
17353 case $lt_cv_dlopen in
17354 dlopen)
17355 save_CPPFLAGS="$CPPFLAGS"
17356 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17357
17358 save_LDFLAGS="$LDFLAGS"
17359 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17360
17361 save_LIBS="$LIBS"
17362 LIBS="$lt_cv_dlopen_libs $LIBS"
17363
17364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17365$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017366if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017367 $as_echo_n "(cached) " >&6
17368else
17369 if test "$cross_compiling" = yes; then :
17370 lt_cv_dlopen_self=cross
17371else
17372 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17373 lt_status=$lt_dlunknown
17374 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017375#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017376#include "confdefs.h"
17377
17378#if HAVE_DLFCN_H
17379#include <dlfcn.h>
17380#endif
17381
17382#include <stdio.h>
17383
17384#ifdef RTLD_GLOBAL
17385# define LT_DLGLOBAL RTLD_GLOBAL
17386#else
17387# ifdef DL_GLOBAL
17388# define LT_DLGLOBAL DL_GLOBAL
17389# else
17390# define LT_DLGLOBAL 0
17391# endif
17392#endif
17393
17394/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17395 find out it does not work in some platform. */
17396#ifndef LT_DLLAZY_OR_NOW
17397# ifdef RTLD_LAZY
17398# define LT_DLLAZY_OR_NOW RTLD_LAZY
17399# else
17400# ifdef DL_LAZY
17401# define LT_DLLAZY_OR_NOW DL_LAZY
17402# else
17403# ifdef RTLD_NOW
17404# define LT_DLLAZY_OR_NOW RTLD_NOW
17405# else
17406# ifdef DL_NOW
17407# define LT_DLLAZY_OR_NOW DL_NOW
17408# else
17409# define LT_DLLAZY_OR_NOW 0
17410# endif
17411# endif
17412# endif
17413# endif
17414#endif
17415
cristy0c60a692010-11-04 01:09:47 +000017416/* When -fvisbility=hidden is used, assume the code has been annotated
17417 correspondingly for the symbols needed. */
17418#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017419int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017420#endif
17421
cristyda16f162011-02-19 23:52:17 +000017422int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017423int main ()
17424{
17425 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17426 int status = $lt_dlunknown;
17427
17428 if (self)
17429 {
17430 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017431 else
17432 {
17433 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17434 else puts (dlerror ());
17435 }
cristy73bd4a52010-10-05 11:24:23 +000017436 /* dlclose (self); */
17437 }
17438 else
17439 puts (dlerror ());
17440
17441 return status;
17442}
17443_LT_EOF
17444 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17445 (eval $ac_link) 2>&5
17446 ac_status=$?
17447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17448 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17449 (./conftest; exit; ) >&5 2>/dev/null
17450 lt_status=$?
17451 case x$lt_status in
17452 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17453 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17454 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17455 esac
17456 else :
17457 # compilation failed
17458 lt_cv_dlopen_self=no
17459 fi
17460fi
17461rm -fr conftest*
17462
17463
17464fi
17465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17466$as_echo "$lt_cv_dlopen_self" >&6; }
17467
17468 if test "x$lt_cv_dlopen_self" = xyes; then
17469 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17471$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017472if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017473 $as_echo_n "(cached) " >&6
17474else
17475 if test "$cross_compiling" = yes; then :
17476 lt_cv_dlopen_self_static=cross
17477else
17478 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17479 lt_status=$lt_dlunknown
17480 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017481#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017482#include "confdefs.h"
17483
17484#if HAVE_DLFCN_H
17485#include <dlfcn.h>
17486#endif
17487
17488#include <stdio.h>
17489
17490#ifdef RTLD_GLOBAL
17491# define LT_DLGLOBAL RTLD_GLOBAL
17492#else
17493# ifdef DL_GLOBAL
17494# define LT_DLGLOBAL DL_GLOBAL
17495# else
17496# define LT_DLGLOBAL 0
17497# endif
17498#endif
17499
17500/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17501 find out it does not work in some platform. */
17502#ifndef LT_DLLAZY_OR_NOW
17503# ifdef RTLD_LAZY
17504# define LT_DLLAZY_OR_NOW RTLD_LAZY
17505# else
17506# ifdef DL_LAZY
17507# define LT_DLLAZY_OR_NOW DL_LAZY
17508# else
17509# ifdef RTLD_NOW
17510# define LT_DLLAZY_OR_NOW RTLD_NOW
17511# else
17512# ifdef DL_NOW
17513# define LT_DLLAZY_OR_NOW DL_NOW
17514# else
17515# define LT_DLLAZY_OR_NOW 0
17516# endif
17517# endif
17518# endif
17519# endif
17520#endif
17521
cristy0c60a692010-11-04 01:09:47 +000017522/* When -fvisbility=hidden is used, assume the code has been annotated
17523 correspondingly for the symbols needed. */
17524#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017525int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017526#endif
17527
cristyda16f162011-02-19 23:52:17 +000017528int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017529int main ()
17530{
17531 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17532 int status = $lt_dlunknown;
17533
17534 if (self)
17535 {
17536 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017537 else
17538 {
17539 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17540 else puts (dlerror ());
17541 }
cristy73bd4a52010-10-05 11:24:23 +000017542 /* dlclose (self); */
17543 }
17544 else
17545 puts (dlerror ());
17546
17547 return status;
17548}
17549_LT_EOF
17550 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17551 (eval $ac_link) 2>&5
17552 ac_status=$?
17553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17554 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17555 (./conftest; exit; ) >&5 2>/dev/null
17556 lt_status=$?
17557 case x$lt_status in
17558 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17559 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17560 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17561 esac
17562 else :
17563 # compilation failed
17564 lt_cv_dlopen_self_static=no
17565 fi
17566fi
17567rm -fr conftest*
17568
17569
17570fi
17571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17572$as_echo "$lt_cv_dlopen_self_static" >&6; }
17573 fi
17574
17575 CPPFLAGS="$save_CPPFLAGS"
17576 LDFLAGS="$save_LDFLAGS"
17577 LIBS="$save_LIBS"
17578 ;;
17579 esac
17580
17581 case $lt_cv_dlopen_self in
17582 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17583 *) enable_dlopen_self=unknown ;;
17584 esac
17585
17586 case $lt_cv_dlopen_self_static in
17587 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17588 *) enable_dlopen_self_static=unknown ;;
17589 esac
17590fi
17591
17592
17593
17594
17595
17596
17597
17598
17599
17600
17601
17602
17603
17604
17605
17606
17607
17608striplib=
17609old_striplib=
17610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17611$as_echo_n "checking whether stripping libraries is possible... " >&6; }
17612if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17613 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17614 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17616$as_echo "yes" >&6; }
17617else
17618# FIXME - insert some real tests, host_os isn't really good enough
17619 case $host_os in
17620 darwin*)
17621 if test -n "$STRIP" ; then
17622 striplib="$STRIP -x"
17623 old_striplib="$STRIP -S"
17624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17625$as_echo "yes" >&6; }
17626 else
17627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17628$as_echo "no" >&6; }
17629 fi
17630 ;;
17631 *)
17632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17633$as_echo "no" >&6; }
17634 ;;
17635 esac
17636fi
17637
17638
17639
17640
17641
17642
17643
17644
17645
17646
17647
17648
17649 # Report which library types will actually be built
17650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17651$as_echo_n "checking if libtool supports shared libraries... " >&6; }
17652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17653$as_echo "$can_build_shared" >&6; }
17654
17655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17656$as_echo_n "checking whether to build shared libraries... " >&6; }
17657 test "$can_build_shared" = "no" && enable_shared=no
17658
17659 # On AIX, shared libraries and static libraries use the same namespace, and
17660 # are all built from PIC.
17661 case $host_os in
17662 aix3*)
17663 test "$enable_shared" = yes && enable_static=no
17664 if test -n "$RANLIB"; then
17665 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17666 postinstall_cmds='$RANLIB $lib'
17667 fi
17668 ;;
17669
17670 aix[4-9]*)
17671 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17672 test "$enable_shared" = yes && enable_static=no
17673 fi
17674 ;;
17675 esac
17676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17677$as_echo "$enable_shared" >&6; }
17678
17679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17680$as_echo_n "checking whether to build static libraries... " >&6; }
17681 # Make sure either enable_shared or enable_static is yes.
17682 test "$enable_shared" = yes || enable_static=yes
17683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17684$as_echo "$enable_static" >&6; }
17685
17686
17687
17688
17689fi
17690ac_ext=c
17691ac_cpp='$CPP $CPPFLAGS'
17692ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17693ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17694ac_compiler_gnu=$ac_cv_c_compiler_gnu
17695
17696CC="$lt_save_CC"
17697
cristy0c60a692010-11-04 01:09:47 +000017698 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17699 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17700 (test "X$CXX" != "Xg++"))) ; then
17701 ac_ext=cpp
17702ac_cpp='$CXXCPP $CPPFLAGS'
17703ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17704ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17705ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17707$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17708if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000017709 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000017710 $as_echo_n "(cached) " >&6
17711else
17712 # Double quotes because CXXCPP needs to be expanded
17713 for CXXCPP in "$CXX -E" "/lib/cpp"
17714 do
17715 ac_preproc_ok=false
17716for ac_cxx_preproc_warn_flag in '' yes
17717do
17718 # Use a header file that comes with gcc, so configuring glibc
17719 # with a fresh cross-compiler works.
17720 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17721 # <limits.h> exists even on freestanding compilers.
17722 # On the NeXT, cc -E runs the code through the compiler's parser,
17723 # not just through cpp. "Syntax error" is here to catch this case.
17724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17725/* end confdefs.h. */
17726#ifdef __STDC__
17727# include <limits.h>
17728#else
17729# include <assert.h>
17730#endif
17731 Syntax error
17732_ACEOF
17733if ac_fn_cxx_try_cpp "$LINENO"; then :
17734
17735else
17736 # Broken: fails on valid input.
17737continue
17738fi
cristyda16f162011-02-19 23:52:17 +000017739rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017740
17741 # OK, works on sane cases. Now check whether nonexistent headers
17742 # can be detected and how.
17743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17744/* end confdefs.h. */
17745#include <ac_nonexistent.h>
17746_ACEOF
17747if ac_fn_cxx_try_cpp "$LINENO"; then :
17748 # Broken: success on invalid input.
17749continue
17750else
17751 # Passes both tests.
17752ac_preproc_ok=:
17753break
17754fi
cristyda16f162011-02-19 23:52:17 +000017755rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017756
17757done
17758# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000017759rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017760if $ac_preproc_ok; then :
17761 break
17762fi
17763
17764 done
17765 ac_cv_prog_CXXCPP=$CXXCPP
17766
17767fi
17768 CXXCPP=$ac_cv_prog_CXXCPP
17769else
17770 ac_cv_prog_CXXCPP=$CXXCPP
17771fi
17772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
17773$as_echo "$CXXCPP" >&6; }
17774ac_preproc_ok=false
17775for ac_cxx_preproc_warn_flag in '' yes
17776do
17777 # Use a header file that comes with gcc, so configuring glibc
17778 # with a fresh cross-compiler works.
17779 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17780 # <limits.h> exists even on freestanding compilers.
17781 # On the NeXT, cc -E runs the code through the compiler's parser,
17782 # not just through cpp. "Syntax error" is here to catch this case.
17783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17784/* end confdefs.h. */
17785#ifdef __STDC__
17786# include <limits.h>
17787#else
17788# include <assert.h>
17789#endif
17790 Syntax error
17791_ACEOF
17792if ac_fn_cxx_try_cpp "$LINENO"; then :
17793
17794else
17795 # Broken: fails on valid input.
17796continue
17797fi
cristyda16f162011-02-19 23:52:17 +000017798rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017799
17800 # OK, works on sane cases. Now check whether nonexistent headers
17801 # can be detected and how.
17802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17803/* end confdefs.h. */
17804#include <ac_nonexistent.h>
17805_ACEOF
17806if ac_fn_cxx_try_cpp "$LINENO"; then :
17807 # Broken: success on invalid input.
17808continue
17809else
17810 # Passes both tests.
17811ac_preproc_ok=:
17812break
17813fi
cristyda16f162011-02-19 23:52:17 +000017814rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017815
17816done
17817# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000017818rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017819if $ac_preproc_ok; then :
17820
17821else
17822 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17823$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17824as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
17825See \`config.log' for more details" "$LINENO" 5; }
17826fi
17827
17828ac_ext=c
17829ac_cpp='$CPP $CPPFLAGS'
17830ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17831ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17832ac_compiler_gnu=$ac_cv_c_compiler_gnu
17833
17834else
17835 _lt_caught_CXX_error=yes
17836fi
cristy73bd4a52010-10-05 11:24:23 +000017837
17838ac_ext=cpp
17839ac_cpp='$CXXCPP $CPPFLAGS'
17840ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17841ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17842ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17843
17844archive_cmds_need_lc_CXX=no
17845allow_undefined_flag_CXX=
17846always_export_symbols_CXX=no
17847archive_expsym_cmds_CXX=
17848compiler_needs_object_CXX=no
17849export_dynamic_flag_spec_CXX=
17850hardcode_direct_CXX=no
17851hardcode_direct_absolute_CXX=no
17852hardcode_libdir_flag_spec_CXX=
cristy73bd4a52010-10-05 11:24:23 +000017853hardcode_libdir_separator_CXX=
17854hardcode_minus_L_CXX=no
17855hardcode_shlibpath_var_CXX=unsupported
17856hardcode_automatic_CXX=no
17857inherit_rpath_CXX=no
17858module_cmds_CXX=
17859module_expsym_cmds_CXX=
17860link_all_deplibs_CXX=unknown
17861old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000017862reload_flag_CXX=$reload_flag
17863reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000017864no_undefined_flag_CXX=
17865whole_archive_flag_spec_CXX=
17866enable_shared_with_static_runtimes_CXX=no
17867
17868# Source file extension for C++ test sources.
17869ac_ext=cpp
17870
17871# Object file extension for compiled C++ test sources.
17872objext=o
17873objext_CXX=$objext
17874
17875# No sense in running all these tests if we already determined that
17876# the CXX compiler isn't working. Some variables (like enable_shared)
17877# are currently assumed to apply to all compilers on this platform,
17878# and will be corrupted by setting them based on a non-working compiler.
17879if test "$_lt_caught_CXX_error" != yes; then
17880 # Code to be used in simple compile tests
17881 lt_simple_compile_test_code="int some_variable = 0;"
17882
17883 # Code to be used in simple link tests
17884 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
17885
17886 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17887
17888
17889
17890
17891
17892
17893# If no C compiler was specified, use CC.
17894LTCC=${LTCC-"$CC"}
17895
17896# If no C compiler flags were specified, use CFLAGS.
17897LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17898
17899# Allow CC to be a program name with arguments.
17900compiler=$CC
17901
17902
17903 # save warnings/boilerplate of simple test code
17904 ac_outfile=conftest.$ac_objext
17905echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17906eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17907_lt_compiler_boilerplate=`cat conftest.err`
17908$RM conftest*
17909
17910 ac_outfile=conftest.$ac_objext
17911echo "$lt_simple_link_test_code" >conftest.$ac_ext
17912eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17913_lt_linker_boilerplate=`cat conftest.err`
17914$RM -r conftest*
17915
17916
17917 # Allow CC to be a program name with arguments.
17918 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000017919 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017920 lt_save_LD=$LD
17921 lt_save_GCC=$GCC
17922 GCC=$GXX
17923 lt_save_with_gnu_ld=$with_gnu_ld
17924 lt_save_path_LD=$lt_cv_path_LD
17925 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17926 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17927 else
17928 $as_unset lt_cv_prog_gnu_ld
17929 fi
17930 if test -n "${lt_cv_path_LDCXX+set}"; then
17931 lt_cv_path_LD=$lt_cv_path_LDCXX
17932 else
17933 $as_unset lt_cv_path_LD
17934 fi
17935 test -z "${LDCXX+set}" || LD=$LDCXX
17936 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000017937 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017938 compiler=$CC
17939 compiler_CXX=$CC
17940 for cc_temp in $compiler""; do
17941 case $cc_temp in
17942 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17943 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17944 \-*) ;;
17945 *) break;;
17946 esac
17947done
cristy0c60a692010-11-04 01:09:47 +000017948cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000017949
17950
17951 if test -n "$compiler"; then
17952 # We don't want -fno-exception when compiling C++ code, so set the
17953 # no_builtin_flag separately
17954 if test "$GXX" = yes; then
17955 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17956 else
17957 lt_prog_compiler_no_builtin_flag_CXX=
17958 fi
17959
17960 if test "$GXX" = yes; then
17961 # Set up default GNU C++ configuration
17962
17963
17964
17965# Check whether --with-gnu-ld was given.
17966if test "${with_gnu_ld+set}" = set; then :
17967 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17968else
17969 with_gnu_ld=no
17970fi
17971
17972ac_prog=ld
17973if test "$GCC" = yes; then
17974 # Check if gcc -print-prog-name=ld gives a path.
17975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17976$as_echo_n "checking for ld used by $CC... " >&6; }
17977 case $host in
17978 *-*-mingw*)
17979 # gcc leaves a trailing carriage return which upsets mingw
17980 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17981 *)
17982 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17983 esac
17984 case $ac_prog in
17985 # Accept absolute paths.
17986 [\\/]* | ?:[\\/]*)
17987 re_direlt='/[^/][^/]*/\.\./'
17988 # Canonicalize the pathname of ld
17989 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17990 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17991 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17992 done
17993 test -z "$LD" && LD="$ac_prog"
17994 ;;
17995 "")
17996 # If it fails, then pretend we aren't using GCC.
17997 ac_prog=ld
17998 ;;
17999 *)
18000 # If it is relative, then search for the first ld in PATH.
18001 with_gnu_ld=unknown
18002 ;;
18003 esac
18004elif test "$with_gnu_ld" = yes; then
18005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18006$as_echo_n "checking for GNU ld... " >&6; }
18007else
18008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18009$as_echo_n "checking for non-GNU ld... " >&6; }
18010fi
cristyda16f162011-02-19 23:52:17 +000018011if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018012 $as_echo_n "(cached) " >&6
18013else
18014 if test -z "$LD"; then
18015 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18016 for ac_dir in $PATH; do
18017 IFS="$lt_save_ifs"
18018 test -z "$ac_dir" && ac_dir=.
18019 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18020 lt_cv_path_LD="$ac_dir/$ac_prog"
18021 # Check to see if the program is GNU ld. I'd rather use --version,
18022 # but apparently some variants of GNU ld only accept -v.
18023 # Break only if it was the GNU/non-GNU ld that we prefer.
18024 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18025 *GNU* | *'with BFD'*)
18026 test "$with_gnu_ld" != no && break
18027 ;;
18028 *)
18029 test "$with_gnu_ld" != yes && break
18030 ;;
18031 esac
18032 fi
18033 done
18034 IFS="$lt_save_ifs"
18035else
18036 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18037fi
18038fi
18039
18040LD="$lt_cv_path_LD"
18041if test -n "$LD"; then
18042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18043$as_echo "$LD" >&6; }
18044else
18045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18046$as_echo "no" >&6; }
18047fi
cristy98dddb52010-11-04 00:30:15 +000018048test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000018049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18050$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018051if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018052 $as_echo_n "(cached) " >&6
18053else
18054 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18055case `$LD -v 2>&1 </dev/null` in
18056*GNU* | *'with BFD'*)
18057 lt_cv_prog_gnu_ld=yes
18058 ;;
18059*)
18060 lt_cv_prog_gnu_ld=no
18061 ;;
18062esac
18063fi
18064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18065$as_echo "$lt_cv_prog_gnu_ld" >&6; }
18066with_gnu_ld=$lt_cv_prog_gnu_ld
18067
18068
18069
18070
18071
18072
18073
18074 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18075 # archiving commands below assume that GNU ld is being used.
18076 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000018077 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18078 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 +000018079
18080 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18081 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18082
18083 # If archive_cmds runs LD, not CC, wlarc should be empty
18084 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18085 # investigate it a little bit more. (MM)
18086 wlarc='${wl}'
18087
18088 # ancient GNU ld didn't support --whole-archive et. al.
18089 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18090 $GREP 'no-whole-archive' > /dev/null; then
18091 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18092 else
18093 whole_archive_flag_spec_CXX=
18094 fi
18095 else
18096 with_gnu_ld=no
18097 wlarc=
18098
18099 # A generic and very simple default shared library creation
18100 # command for GNU C++ for the case where it uses the native
18101 # linker, instead of GNU ld. If possible, this setting should
18102 # overridden to take advantage of the native linker features on
18103 # the platform it is being used on.
18104 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18105 fi
18106
18107 # Commands to make compiler produce verbose output that lists
18108 # what "hidden" libraries, object files and flags are used when
18109 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018110 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018111
18112 else
18113 GXX=no
18114 with_gnu_ld=no
18115 wlarc=
18116 fi
18117
18118 # PORTME: fill in a description of your system's C++ link characteristics
18119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18120$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18121 ld_shlibs_CXX=yes
18122 case $host_os in
18123 aix3*)
18124 # FIXME: insert proper C++ library support
18125 ld_shlibs_CXX=no
18126 ;;
18127 aix[4-9]*)
18128 if test "$host_cpu" = ia64; then
18129 # On IA64, the linker does run time linking by default, so we don't
18130 # have to do anything special.
18131 aix_use_runtimelinking=no
18132 exp_sym_flag='-Bexport'
18133 no_entry_flag=""
18134 else
18135 aix_use_runtimelinking=no
18136
18137 # Test if we are trying to use run time linking or normal
18138 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18139 # need to do runtime linking.
18140 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18141 for ld_flag in $LDFLAGS; do
18142 case $ld_flag in
18143 *-brtl*)
18144 aix_use_runtimelinking=yes
18145 break
18146 ;;
18147 esac
18148 done
18149 ;;
18150 esac
18151
18152 exp_sym_flag='-bexport'
18153 no_entry_flag='-bnoentry'
18154 fi
18155
18156 # When large executables or shared objects are built, AIX ld can
18157 # have problems creating the table of contents. If linking a library
18158 # or program results in "error TOC overflow" add -mminimal-toc to
18159 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18160 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18161
18162 archive_cmds_CXX=''
18163 hardcode_direct_CXX=yes
18164 hardcode_direct_absolute_CXX=yes
18165 hardcode_libdir_separator_CXX=':'
18166 link_all_deplibs_CXX=yes
18167 file_list_spec_CXX='${wl}-f,'
18168
18169 if test "$GXX" = yes; then
18170 case $host_os in aix4.[012]|aix4.[012].*)
18171 # We only want to do this on AIX 4.2 and lower, the check
18172 # below for broken collect2 doesn't work under 4.3+
18173 collect2name=`${CC} -print-prog-name=collect2`
18174 if test -f "$collect2name" &&
18175 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18176 then
18177 # We have reworked collect2
18178 :
18179 else
18180 # We have old collect2
18181 hardcode_direct_CXX=unsupported
18182 # It fails to find uninstalled libraries when the uninstalled
18183 # path is not listed in the libpath. Setting hardcode_minus_L
18184 # to unsupported forces relinking
18185 hardcode_minus_L_CXX=yes
18186 hardcode_libdir_flag_spec_CXX='-L$libdir'
18187 hardcode_libdir_separator_CXX=
18188 fi
18189 esac
18190 shared_flag='-shared'
18191 if test "$aix_use_runtimelinking" = yes; then
18192 shared_flag="$shared_flag "'${wl}-G'
18193 fi
18194 else
18195 # not using gcc
18196 if test "$host_cpu" = ia64; then
18197 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18198 # chokes on -Wl,-G. The following line is correct:
18199 shared_flag='-G'
18200 else
18201 if test "$aix_use_runtimelinking" = yes; then
18202 shared_flag='${wl}-G'
18203 else
18204 shared_flag='${wl}-bM:SRE'
18205 fi
18206 fi
18207 fi
18208
18209 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18210 # It seems that -bexpall does not export symbols beginning with
18211 # underscore (_), so it is better to generate a list of symbols to
18212 # export.
18213 always_export_symbols_CXX=yes
18214 if test "$aix_use_runtimelinking" = yes; then
18215 # Warning - without using the other runtime loading flags (-brtl),
18216 # -berok will link without error, but may produce a broken library.
18217 allow_undefined_flag_CXX='-berok'
18218 # Determine the default libpath from the value encoded in an empty
18219 # executable.
cristyda16f162011-02-19 23:52:17 +000018220 if test "${lt_cv_aix_libpath+set}" = set; then
18221 aix_libpath=$lt_cv_aix_libpath
18222else
18223 if ${lt_cv_aix_libpath__CXX+:} false; then :
18224 $as_echo_n "(cached) " >&6
18225else
18226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018227/* end confdefs.h. */
18228
18229int
18230main ()
18231{
18232
18233 ;
18234 return 0;
18235}
18236_ACEOF
18237if ac_fn_cxx_try_link "$LINENO"; then :
18238
cristyda16f162011-02-19 23:52:17 +000018239 lt_aix_libpath_sed='
18240 /Import File Strings/,/^$/ {
18241 /^0/ {
18242 s/^0 *\([^ ]*\) *$/\1/
18243 p
18244 }
18245 }'
18246 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18247 # Check for a 64-bit object if we didn't find anything.
18248 if test -z "$lt_cv_aix_libpath__CXX"; then
18249 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18250 fi
cristy73bd4a52010-10-05 11:24:23 +000018251fi
18252rm -f core conftest.err conftest.$ac_objext \
18253 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018254 if test -z "$lt_cv_aix_libpath__CXX"; then
18255 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18256 fi
18257
18258fi
18259
18260 aix_libpath=$lt_cv_aix_libpath__CXX
18261fi
cristy73bd4a52010-10-05 11:24:23 +000018262
18263 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18264
cristy0c60a692010-11-04 01:09:47 +000018265 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 +000018266 else
18267 if test "$host_cpu" = ia64; then
18268 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18269 allow_undefined_flag_CXX="-z nodefs"
18270 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"
18271 else
18272 # Determine the default libpath from the value encoded in an
18273 # empty executable.
cristyda16f162011-02-19 23:52:17 +000018274 if test "${lt_cv_aix_libpath+set}" = set; then
18275 aix_libpath=$lt_cv_aix_libpath
18276else
18277 if ${lt_cv_aix_libpath__CXX+:} false; then :
18278 $as_echo_n "(cached) " >&6
18279else
18280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018281/* end confdefs.h. */
18282
18283int
18284main ()
18285{
18286
18287 ;
18288 return 0;
18289}
18290_ACEOF
18291if ac_fn_cxx_try_link "$LINENO"; then :
18292
cristyda16f162011-02-19 23:52:17 +000018293 lt_aix_libpath_sed='
18294 /Import File Strings/,/^$/ {
18295 /^0/ {
18296 s/^0 *\([^ ]*\) *$/\1/
18297 p
18298 }
18299 }'
18300 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18301 # Check for a 64-bit object if we didn't find anything.
18302 if test -z "$lt_cv_aix_libpath__CXX"; then
18303 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18304 fi
cristy73bd4a52010-10-05 11:24:23 +000018305fi
18306rm -f core conftest.err conftest.$ac_objext \
18307 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018308 if test -z "$lt_cv_aix_libpath__CXX"; then
18309 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18310 fi
18311
18312fi
18313
18314 aix_libpath=$lt_cv_aix_libpath__CXX
18315fi
cristy73bd4a52010-10-05 11:24:23 +000018316
18317 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18318 # Warning - without using the other run time loading flags,
18319 # -berok will link without error, but may produce a broken library.
18320 no_undefined_flag_CXX=' ${wl}-bernotok'
18321 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000018322 if test "$with_gnu_ld" = yes; then
18323 # We only use this code for GNU lds that support --whole-archive.
18324 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18325 else
18326 # Exported symbols can be pulled into shared objects from archives
18327 whole_archive_flag_spec_CXX='$convenience'
18328 fi
cristy73bd4a52010-10-05 11:24:23 +000018329 archive_cmds_need_lc_CXX=yes
18330 # This is similar to how AIX traditionally builds its shared
18331 # libraries.
18332 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'
18333 fi
18334 fi
18335 ;;
18336
18337 beos*)
18338 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18339 allow_undefined_flag_CXX=unsupported
18340 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18341 # support --undefined. This deserves some investigation. FIXME
18342 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18343 else
18344 ld_shlibs_CXX=no
18345 fi
18346 ;;
18347
18348 chorus*)
18349 case $cc_basename in
18350 *)
18351 # FIXME: insert proper C++ library support
18352 ld_shlibs_CXX=no
18353 ;;
18354 esac
18355 ;;
18356
18357 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000018358 case $GXX,$cc_basename in
18359 ,cl* | no,cl*)
18360 # Native MSVC
18361 # hardcode_libdir_flag_spec is actually meaningless, as there is
18362 # no search path for DLLs.
18363 hardcode_libdir_flag_spec_CXX=' '
18364 allow_undefined_flag_CXX=unsupported
18365 always_export_symbols_CXX=yes
18366 file_list_spec_CXX='@'
18367 # Tell ltmain to make .lib files, not .a files.
18368 libext=lib
18369 # Tell ltmain to make .dll files, not .so files.
18370 shrext_cmds=".dll"
18371 # FIXME: Setting linknames here is a bad hack.
18372 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
18373 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18374 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
18375 else
18376 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
18377 fi~
18378 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
18379 linknames='
18380 # The linker will not automatically build a static lib if we build a DLL.
18381 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
18382 enable_shared_with_static_runtimes_CXX=yes
18383 # Don't use ranlib
18384 old_postinstall_cmds_CXX='chmod 644 $oldlib'
18385 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
18386 lt_tool_outputfile="@TOOL_OUTPUT@"~
18387 case $lt_outputfile in
18388 *.exe|*.EXE) ;;
18389 *)
18390 lt_outputfile="$lt_outputfile.exe"
18391 lt_tool_outputfile="$lt_tool_outputfile.exe"
18392 ;;
18393 esac~
18394 func_to_tool_file "$lt_outputfile"~
18395 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
18396 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
18397 $RM "$lt_outputfile.manifest";
18398 fi'
18399 ;;
18400 *)
18401 # g++
18402 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18403 # as there is no search path for DLLs.
18404 hardcode_libdir_flag_spec_CXX='-L$libdir'
18405 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18406 allow_undefined_flag_CXX=unsupported
18407 always_export_symbols_CXX=no
18408 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000018409
cristyda16f162011-02-19 23:52:17 +000018410 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18411 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'
18412 # If the export-symbols file already is a .def file (1st line
18413 # is EXPORTS), use it as is; otherwise, prepend...
18414 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18415 cp $export_symbols $output_objdir/$soname.def;
18416 else
18417 echo EXPORTS > $output_objdir/$soname.def;
18418 cat $export_symbols >> $output_objdir/$soname.def;
18419 fi~
18420 $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'
18421 else
18422 ld_shlibs_CXX=no
18423 fi
18424 ;;
18425 esac
18426 ;;
cristy73bd4a52010-10-05 11:24:23 +000018427 darwin* | rhapsody*)
18428
18429
18430 archive_cmds_need_lc_CXX=no
18431 hardcode_direct_CXX=no
18432 hardcode_automatic_CXX=yes
18433 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000018434 if test "$lt_cv_ld_force_load" = "yes"; then
18435 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 +000018436
cristy0c60a692010-11-04 01:09:47 +000018437 else
18438 whole_archive_flag_spec_CXX=''
18439 fi
cristy73bd4a52010-10-05 11:24:23 +000018440 link_all_deplibs_CXX=yes
18441 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18442 case $cc_basename in
18443 ifort*) _lt_dar_can_shared=yes ;;
18444 *) _lt_dar_can_shared=$GCC ;;
18445 esac
18446 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000018447 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018448 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}"
18449 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18450 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}"
18451 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}"
18452 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18453 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}"
18454 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}"
18455 fi
18456
18457 else
18458 ld_shlibs_CXX=no
18459 fi
18460
18461 ;;
18462
18463 dgux*)
18464 case $cc_basename in
18465 ec++*)
18466 # FIXME: insert proper C++ library support
18467 ld_shlibs_CXX=no
18468 ;;
18469 ghcx*)
18470 # Green Hills C++ Compiler
18471 # FIXME: insert proper C++ library support
18472 ld_shlibs_CXX=no
18473 ;;
18474 *)
18475 # FIXME: insert proper C++ library support
18476 ld_shlibs_CXX=no
18477 ;;
18478 esac
18479 ;;
18480
cristy99bd5232011-12-07 14:38:20 +000018481 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000018482 # C++ shared libraries reported to be fairly broken before
18483 # switch to ELF
18484 ld_shlibs_CXX=no
18485 ;;
18486
18487 freebsd-elf*)
18488 archive_cmds_need_lc_CXX=no
18489 ;;
18490
18491 freebsd* | dragonfly*)
18492 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18493 # conventions
18494 ld_shlibs_CXX=yes
18495 ;;
18496
18497 gnu*)
18498 ;;
18499
cristy0c60a692010-11-04 01:09:47 +000018500 haiku*)
18501 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18502 link_all_deplibs_CXX=yes
18503 ;;
18504
cristy73bd4a52010-10-05 11:24:23 +000018505 hpux9*)
18506 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18507 hardcode_libdir_separator_CXX=:
18508 export_dynamic_flag_spec_CXX='${wl}-E'
18509 hardcode_direct_CXX=yes
18510 hardcode_minus_L_CXX=yes # Not in the search PATH,
18511 # but as the default
18512 # location of the library.
18513
18514 case $cc_basename in
18515 CC*)
18516 # FIXME: insert proper C++ library support
18517 ld_shlibs_CXX=no
18518 ;;
18519 aCC*)
18520 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'
18521 # Commands to make compiler produce verbose output that lists
18522 # what "hidden" libraries, object files and flags are used when
18523 # linking a shared library.
18524 #
18525 # There doesn't appear to be a way to prevent this compiler from
18526 # explicitly linking system object files so we need to strip them
18527 # from the output so that they don't get included in the library
18528 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018529 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 +000018530 ;;
18531 *)
18532 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000018533 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 +000018534 else
18535 # FIXME: insert proper C++ library support
18536 ld_shlibs_CXX=no
18537 fi
18538 ;;
18539 esac
18540 ;;
18541
18542 hpux10*|hpux11*)
18543 if test $with_gnu_ld = no; then
18544 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18545 hardcode_libdir_separator_CXX=:
18546
18547 case $host_cpu in
18548 hppa*64*|ia64*)
18549 ;;
18550 *)
18551 export_dynamic_flag_spec_CXX='${wl}-E'
18552 ;;
18553 esac
18554 fi
18555 case $host_cpu in
18556 hppa*64*|ia64*)
18557 hardcode_direct_CXX=no
18558 hardcode_shlibpath_var_CXX=no
18559 ;;
18560 *)
18561 hardcode_direct_CXX=yes
18562 hardcode_direct_absolute_CXX=yes
18563 hardcode_minus_L_CXX=yes # Not in the search PATH,
18564 # but as the default
18565 # location of the library.
18566 ;;
18567 esac
18568
18569 case $cc_basename in
18570 CC*)
18571 # FIXME: insert proper C++ library support
18572 ld_shlibs_CXX=no
18573 ;;
18574 aCC*)
18575 case $host_cpu in
18576 hppa*64*)
18577 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18578 ;;
18579 ia64*)
18580 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18581 ;;
18582 *)
18583 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18584 ;;
18585 esac
18586 # Commands to make compiler produce verbose output that lists
18587 # what "hidden" libraries, object files and flags are used when
18588 # linking a shared library.
18589 #
18590 # There doesn't appear to be a way to prevent this compiler from
18591 # explicitly linking system object files so we need to strip them
18592 # from the output so that they don't get included in the library
18593 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018594 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 +000018595 ;;
18596 *)
18597 if test "$GXX" = yes; then
18598 if test $with_gnu_ld = no; then
18599 case $host_cpu in
18600 hppa*64*)
18601 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18602 ;;
18603 ia64*)
cristyda16f162011-02-19 23:52:17 +000018604 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 +000018605 ;;
18606 *)
cristyda16f162011-02-19 23:52:17 +000018607 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 +000018608 ;;
18609 esac
18610 fi
18611 else
18612 # FIXME: insert proper C++ library support
18613 ld_shlibs_CXX=no
18614 fi
18615 ;;
18616 esac
18617 ;;
18618
18619 interix[3-9]*)
18620 hardcode_direct_CXX=no
18621 hardcode_shlibpath_var_CXX=no
18622 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18623 export_dynamic_flag_spec_CXX='${wl}-E'
18624 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18625 # Instead, shared libraries are loaded at an image base (0x10000000 by
18626 # default) and relocated if they conflict, which is a slow very memory
18627 # consuming and fragmenting process. To avoid this, we pick a random,
18628 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18629 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18630 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'
18631 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'
18632 ;;
18633 irix5* | irix6*)
18634 case $cc_basename in
18635 CC*)
18636 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000018637 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 +000018638
18639 # Archives containing C++ object files must be created using
18640 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18641 # necessary to make sure instantiated templates are included
18642 # in the archive.
18643 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18644 ;;
18645 *)
18646 if test "$GXX" = yes; then
18647 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000018648 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 +000018649 else
cristyda16f162011-02-19 23:52:17 +000018650 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 +000018651 fi
18652 fi
18653 link_all_deplibs_CXX=yes
18654 ;;
18655 esac
18656 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18657 hardcode_libdir_separator_CXX=:
18658 inherit_rpath_CXX=yes
18659 ;;
18660
cristy0c60a692010-11-04 01:09:47 +000018661 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000018662 case $cc_basename in
18663 KCC*)
18664 # Kuck and Associates, Inc. (KAI) C++ Compiler
18665
18666 # KCC will only create a shared library if the output file
18667 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18668 # to its proper name (with version) after linking.
18669 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'
18670 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'
18671 # Commands to make compiler produce verbose output that lists
18672 # what "hidden" libraries, object files and flags are used when
18673 # linking a shared library.
18674 #
18675 # There doesn't appear to be a way to prevent this compiler from
18676 # explicitly linking system object files so we need to strip them
18677 # from the output so that they don't get included in the library
18678 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018679 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 +000018680
18681 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18682 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18683
18684 # Archives containing C++ object files must be created using
18685 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18686 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18687 ;;
18688 icpc* | ecpc* )
18689 # Intel C++
18690 with_gnu_ld=yes
18691 # version 8.0 and above of icpc choke on multiply defined symbols
18692 # if we add $predep_objects and $postdep_objects, however 7.1 and
18693 # earlier do not add the objects themselves.
18694 case `$CC -V 2>&1` in
18695 *"Version 7."*)
18696 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18697 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'
18698 ;;
18699 *) # Version 8.0 or newer
18700 tmp_idyn=
18701 case $host_cpu in
18702 ia64*) tmp_idyn=' -i_dynamic';;
18703 esac
18704 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18705 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'
18706 ;;
18707 esac
18708 archive_cmds_need_lc_CXX=no
18709 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18710 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18711 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18712 ;;
18713 pgCC* | pgcpp*)
18714 # Portland Group C++ compiler
18715 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000018716 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000018717 prelink_cmds_CXX='tpldir=Template.dir~
18718 rm -rf $tpldir~
18719 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018720 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000018721 old_archive_cmds_CXX='tpldir=Template.dir~
18722 rm -rf $tpldir~
18723 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018724 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000018725 $RANLIB $oldlib'
18726 archive_cmds_CXX='tpldir=Template.dir~
18727 rm -rf $tpldir~
18728 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018729 $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 +000018730 archive_expsym_cmds_CXX='tpldir=Template.dir~
18731 rm -rf $tpldir~
18732 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018733 $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 +000018734 ;;
cristy0c60a692010-11-04 01:09:47 +000018735 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000018736 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18737 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'
18738 ;;
18739 esac
18740
18741 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18742 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000018743 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 +000018744 ;;
18745 cxx*)
18746 # Compaq C++
18747 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18748 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'
18749
18750 runpath_var=LD_RUN_PATH
18751 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18752 hardcode_libdir_separator_CXX=:
18753
18754 # Commands to make compiler produce verbose output that lists
18755 # what "hidden" libraries, object files and flags are used when
18756 # linking a shared library.
18757 #
18758 # There doesn't appear to be a way to prevent this compiler from
18759 # explicitly linking system object files so we need to strip them
18760 # from the output so that they don't get included in the library
18761 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018762 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 +000018763 ;;
cristy0c60a692010-11-04 01:09:47 +000018764 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000018765 # IBM XL 8.0 on PPC, with GNU ld
18766 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18767 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18768 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18769 if test "x$supports_anon_versioning" = xyes; then
18770 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
18771 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18772 echo "local: *; };" >> $output_objdir/$libname.ver~
18773 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18774 fi
18775 ;;
18776 *)
18777 case `$CC -V 2>&1 | sed 5q` in
18778 *Sun\ C*)
18779 # Sun C++ 5.9
18780 no_undefined_flag_CXX=' -zdefs'
18781 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18782 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'
18783 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000018784 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 +000018785 compiler_needs_object_CXX=yes
18786
18787 # Not sure whether something based on
18788 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18789 # would be better.
cristy0c60a692010-11-04 01:09:47 +000018790 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000018791
18792 # Archives containing C++ object files must be created using
18793 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18794 # necessary to make sure instantiated templates are included
18795 # in the archive.
18796 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18797 ;;
18798 esac
18799 ;;
18800 esac
18801 ;;
18802
18803 lynxos*)
18804 # FIXME: insert proper C++ library support
18805 ld_shlibs_CXX=no
18806 ;;
18807
18808 m88k*)
18809 # FIXME: insert proper C++ library support
18810 ld_shlibs_CXX=no
18811 ;;
18812
18813 mvs*)
18814 case $cc_basename in
18815 cxx*)
18816 # FIXME: insert proper C++ library support
18817 ld_shlibs_CXX=no
18818 ;;
18819 *)
18820 # FIXME: insert proper C++ library support
18821 ld_shlibs_CXX=no
18822 ;;
18823 esac
18824 ;;
18825
18826 netbsd*)
18827 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18828 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18829 wlarc=
18830 hardcode_libdir_flag_spec_CXX='-R$libdir'
18831 hardcode_direct_CXX=yes
18832 hardcode_shlibpath_var_CXX=no
18833 fi
18834 # Workaround some broken pre-1.5 toolchains
18835 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18836 ;;
18837
18838 *nto* | *qnx*)
18839 ld_shlibs_CXX=yes
18840 ;;
18841
18842 openbsd2*)
18843 # C++ shared libraries are fairly broken
18844 ld_shlibs_CXX=no
18845 ;;
18846
18847 openbsd*)
18848 if test -f /usr/libexec/ld.so; then
18849 hardcode_direct_CXX=yes
18850 hardcode_shlibpath_var_CXX=no
18851 hardcode_direct_absolute_CXX=yes
18852 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18853 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18854 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18855 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18856 export_dynamic_flag_spec_CXX='${wl}-E'
18857 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18858 fi
cristy0c60a692010-11-04 01:09:47 +000018859 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018860 else
18861 ld_shlibs_CXX=no
18862 fi
18863 ;;
18864
18865 osf3* | osf4* | osf5*)
18866 case $cc_basename in
18867 KCC*)
18868 # Kuck and Associates, Inc. (KAI) C++ Compiler
18869
18870 # KCC will only create a shared library if the output file
18871 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18872 # to its proper name (with version) after linking.
18873 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'
18874
18875 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18876 hardcode_libdir_separator_CXX=:
18877
18878 # Archives containing C++ object files must be created using
18879 # the KAI C++ compiler.
18880 case $host in
18881 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18882 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18883 esac
18884 ;;
18885 RCC*)
18886 # Rational C++ 2.4.1
18887 # FIXME: insert proper C++ library support
18888 ld_shlibs_CXX=no
18889 ;;
18890 cxx*)
18891 case $host in
18892 osf3*)
18893 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000018894 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 +000018895 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18896 ;;
18897 *)
18898 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000018899 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 +000018900 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18901 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000018902 $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 +000018903 $RM $lib.exp'
18904 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18905 ;;
18906 esac
18907
18908 hardcode_libdir_separator_CXX=:
18909
18910 # Commands to make compiler produce verbose output that lists
18911 # what "hidden" libraries, object files and flags are used when
18912 # linking a shared library.
18913 #
18914 # There doesn't appear to be a way to prevent this compiler from
18915 # explicitly linking system object files so we need to strip them
18916 # from the output so that they don't get included in the library
18917 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018918 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 +000018919 ;;
18920 *)
18921 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18922 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18923 case $host in
18924 osf3*)
cristy0c60a692010-11-04 01:09:47 +000018925 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 +000018926 ;;
18927 *)
cristyda16f162011-02-19 23:52:17 +000018928 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 +000018929 ;;
18930 esac
18931
18932 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18933 hardcode_libdir_separator_CXX=:
18934
18935 # Commands to make compiler produce verbose output that lists
18936 # what "hidden" libraries, object files and flags are used when
18937 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018938 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018939
18940 else
18941 # FIXME: insert proper C++ library support
18942 ld_shlibs_CXX=no
18943 fi
18944 ;;
18945 esac
18946 ;;
18947
18948 psos*)
18949 # FIXME: insert proper C++ library support
18950 ld_shlibs_CXX=no
18951 ;;
18952
18953 sunos4*)
18954 case $cc_basename in
18955 CC*)
18956 # Sun C++ 4.x
18957 # FIXME: insert proper C++ library support
18958 ld_shlibs_CXX=no
18959 ;;
18960 lcc*)
18961 # Lucid
18962 # FIXME: insert proper C++ library support
18963 ld_shlibs_CXX=no
18964 ;;
18965 *)
18966 # FIXME: insert proper C++ library support
18967 ld_shlibs_CXX=no
18968 ;;
18969 esac
18970 ;;
18971
18972 solaris*)
18973 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018974 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018975 # Sun C++ 4.2, 5.x and Centerline C++
18976 archive_cmds_need_lc_CXX=yes
18977 no_undefined_flag_CXX=' -zdefs'
18978 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18979 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18980 $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'
18981
18982 hardcode_libdir_flag_spec_CXX='-R$libdir'
18983 hardcode_shlibpath_var_CXX=no
18984 case $host_os in
18985 solaris2.[0-5] | solaris2.[0-5].*) ;;
18986 *)
18987 # The compiler driver will combine and reorder linker options,
18988 # but understands `-z linker_flag'.
18989 # Supported since Solaris 2.6 (maybe 2.5.1?)
18990 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18991 ;;
18992 esac
18993 link_all_deplibs_CXX=yes
18994
cristy0c60a692010-11-04 01:09:47 +000018995 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000018996
18997 # Archives containing C++ object files must be created using
18998 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18999 # necessary to make sure instantiated templates are included
19000 # in the archive.
19001 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19002 ;;
19003 gcx*)
19004 # Green Hills C++ Compiler
19005 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19006
19007 # The C++ compiler must be used to create the archive.
19008 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19009 ;;
19010 *)
19011 # GNU C++ compiler with Solaris linker
19012 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19013 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19014 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000019015 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 +000019016 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 +000019017 $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 +000019018
19019 # Commands to make compiler produce verbose output that lists
19020 # what "hidden" libraries, object files and flags are used when
19021 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000019022 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000019023 else
19024 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19025 # platform.
19026 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19027 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19028 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19029
19030 # Commands to make compiler produce verbose output that lists
19031 # what "hidden" libraries, object files and flags are used when
19032 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000019033 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000019034 fi
19035
19036 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19037 case $host_os in
19038 solaris2.[0-5] | solaris2.[0-5].*) ;;
19039 *)
19040 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19041 ;;
19042 esac
19043 fi
19044 ;;
19045 esac
19046 ;;
19047
19048 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19049 no_undefined_flag_CXX='${wl}-z,text'
19050 archive_cmds_need_lc_CXX=no
19051 hardcode_shlibpath_var_CXX=no
19052 runpath_var='LD_RUN_PATH'
19053
19054 case $cc_basename in
19055 CC*)
19056 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19057 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19058 ;;
19059 *)
19060 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19061 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19062 ;;
19063 esac
19064 ;;
19065
19066 sysv5* | sco3.2v5* | sco5v6*)
19067 # Note: We can NOT use -z defs as we might desire, because we do not
19068 # link with -lc, and that would cause any symbols used from libc to
19069 # always be unresolved, which means just about no library would
19070 # ever link correctly. If we're not using GNU ld we use -z text
19071 # though, which does catch some bad symbols but isn't as heavy-handed
19072 # as -z defs.
19073 no_undefined_flag_CXX='${wl}-z,text'
19074 allow_undefined_flag_CXX='${wl}-z,nodefs'
19075 archive_cmds_need_lc_CXX=no
19076 hardcode_shlibpath_var_CXX=no
19077 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19078 hardcode_libdir_separator_CXX=':'
19079 link_all_deplibs_CXX=yes
19080 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19081 runpath_var='LD_RUN_PATH'
19082
19083 case $cc_basename in
19084 CC*)
19085 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19086 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 +000019087 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19088 '"$old_archive_cmds_CXX"
19089 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19090 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000019091 ;;
19092 *)
19093 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19094 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19095 ;;
19096 esac
19097 ;;
19098
19099 tandem*)
19100 case $cc_basename in
19101 NCC*)
19102 # NonStop-UX NCC 3.20
19103 # FIXME: insert proper C++ library support
19104 ld_shlibs_CXX=no
19105 ;;
19106 *)
19107 # FIXME: insert proper C++ library support
19108 ld_shlibs_CXX=no
19109 ;;
19110 esac
19111 ;;
19112
19113 vxworks*)
19114 # FIXME: insert proper C++ library support
19115 ld_shlibs_CXX=no
19116 ;;
19117
19118 *)
19119 # FIXME: insert proper C++ library support
19120 ld_shlibs_CXX=no
19121 ;;
19122 esac
19123
19124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19125$as_echo "$ld_shlibs_CXX" >&6; }
19126 test "$ld_shlibs_CXX" = no && can_build_shared=no
19127
19128 GCC_CXX="$GXX"
19129 LD_CXX="$LD"
19130
19131 ## CAVEAT EMPTOR:
19132 ## There is no encapsulation within the following macros, do not change
19133 ## the running order or otherwise move them around unless you know exactly
19134 ## what you are doing...
19135 # Dependencies to place before and after the object being linked:
19136predep_objects_CXX=
19137postdep_objects_CXX=
19138predeps_CXX=
19139postdeps_CXX=
19140compiler_lib_search_path_CXX=
19141
19142cat > conftest.$ac_ext <<_LT_EOF
19143class Foo
19144{
19145public:
19146 Foo (void) { a = 0; }
19147private:
19148 int a;
19149};
19150_LT_EOF
19151
cristyda16f162011-02-19 23:52:17 +000019152
19153_lt_libdeps_save_CFLAGS=$CFLAGS
19154case "$CC $CFLAGS " in #(
19155*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
19156*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
cristy99bd5232011-12-07 14:38:20 +000019157*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
cristyda16f162011-02-19 23:52:17 +000019158esac
19159
cristy73bd4a52010-10-05 11:24:23 +000019160if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19161 (eval $ac_compile) 2>&5
19162 ac_status=$?
19163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19164 test $ac_status = 0; }; then
19165 # Parse the compiler output and extract the necessary
19166 # objects, libraries and library flags.
19167
19168 # Sentinel used to keep track of whether or not we are before
19169 # the conftest object file.
19170 pre_test_object_deps_done=no
19171
19172 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000019173 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000019174
19175 -L* | -R* | -l*)
19176 # Some compilers place space between "-{L,R}" and the path.
19177 # Remove the space.
19178 if test $p = "-L" ||
19179 test $p = "-R"; then
19180 prev=$p
19181 continue
cristy73bd4a52010-10-05 11:24:23 +000019182 fi
19183
cristyda16f162011-02-19 23:52:17 +000019184 # Expand the sysroot to ease extracting the directories later.
19185 if test -z "$prev"; then
19186 case $p in
19187 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
19188 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
19189 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
19190 esac
19191 fi
19192 case $p in
19193 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
19194 esac
cristy73bd4a52010-10-05 11:24:23 +000019195 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000019196 case ${prev} in
19197 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000019198 # Internal compiler library paths should come after those
19199 # provided the user. The postdeps already come after the
19200 # user supplied libs so there is no need to process them.
19201 if test -z "$compiler_lib_search_path_CXX"; then
19202 compiler_lib_search_path_CXX="${prev}${p}"
19203 else
19204 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19205 fi
19206 ;;
19207 # The "-l" case would never come before the object being
19208 # linked, so don't bother handling this case.
19209 esac
19210 else
19211 if test -z "$postdeps_CXX"; then
19212 postdeps_CXX="${prev}${p}"
19213 else
19214 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19215 fi
19216 fi
cristyda16f162011-02-19 23:52:17 +000019217 prev=
cristy73bd4a52010-10-05 11:24:23 +000019218 ;;
19219
cristyda16f162011-02-19 23:52:17 +000019220 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000019221 *.$objext)
19222 # This assumes that the test object file only shows up
19223 # once in the compiler output.
19224 if test "$p" = "conftest.$objext"; then
19225 pre_test_object_deps_done=yes
19226 continue
19227 fi
19228
19229 if test "$pre_test_object_deps_done" = no; then
19230 if test -z "$predep_objects_CXX"; then
19231 predep_objects_CXX="$p"
19232 else
19233 predep_objects_CXX="$predep_objects_CXX $p"
19234 fi
19235 else
19236 if test -z "$postdep_objects_CXX"; then
19237 postdep_objects_CXX="$p"
19238 else
19239 postdep_objects_CXX="$postdep_objects_CXX $p"
19240 fi
19241 fi
19242 ;;
19243
19244 *) ;; # Ignore the rest.
19245
19246 esac
19247 done
19248
19249 # Clean up.
19250 rm -f a.out a.exe
19251else
19252 echo "libtool.m4: error: problem compiling CXX test program"
19253fi
19254
19255$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000019256CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000019257
19258# PORTME: override above test on systems where it is broken
19259case $host_os in
19260interix[3-9]*)
19261 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19262 # hack all around it, let's just trust "g++" to DTRT.
19263 predep_objects_CXX=
19264 postdep_objects_CXX=
19265 postdeps_CXX=
19266 ;;
19267
19268linux*)
19269 case `$CC -V 2>&1 | sed 5q` in
19270 *Sun\ C*)
19271 # Sun C++ 5.9
19272
19273 # The more standards-conforming stlport4 library is
19274 # incompatible with the Cstd library. Avoid specifying
19275 # it if it's in CXXFLAGS. Ignore libCrun as
19276 # -library=stlport4 depends on it.
19277 case " $CXX $CXXFLAGS " in
19278 *" -library=stlport4 "*)
19279 solaris_use_stlport4=yes
19280 ;;
19281 esac
19282
19283 if test "$solaris_use_stlport4" != yes; then
19284 postdeps_CXX='-library=Cstd -library=Crun'
19285 fi
19286 ;;
19287 esac
19288 ;;
19289
19290solaris*)
19291 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019292 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019293 # The more standards-conforming stlport4 library is
19294 # incompatible with the Cstd library. Avoid specifying
19295 # it if it's in CXXFLAGS. Ignore libCrun as
19296 # -library=stlport4 depends on it.
19297 case " $CXX $CXXFLAGS " in
19298 *" -library=stlport4 "*)
19299 solaris_use_stlport4=yes
19300 ;;
19301 esac
19302
19303 # Adding this requires a known-good setup of shared libraries for
19304 # Sun compiler versions before 5.6, else PIC objects from an old
19305 # archive will be linked into the output, leading to subtle bugs.
19306 if test "$solaris_use_stlport4" != yes; then
19307 postdeps_CXX='-library=Cstd -library=Crun'
19308 fi
19309 ;;
19310 esac
19311 ;;
19312esac
19313
19314
19315case " $postdeps_CXX " in
19316*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19317esac
19318 compiler_lib_search_dirs_CXX=
19319if test -n "${compiler_lib_search_path_CXX}"; then
19320 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19321fi
19322
19323
19324
19325
19326
19327
19328
19329
19330
19331
19332
19333
19334
19335
19336
19337
19338
19339
19340
19341
19342
19343
19344
19345
19346
19347
19348
19349
19350
19351
19352
19353 lt_prog_compiler_wl_CXX=
19354lt_prog_compiler_pic_CXX=
19355lt_prog_compiler_static_CXX=
19356
cristy73bd4a52010-10-05 11:24:23 +000019357
19358 # C++ specific cases for pic, static, wl, etc.
19359 if test "$GXX" = yes; then
19360 lt_prog_compiler_wl_CXX='-Wl,'
19361 lt_prog_compiler_static_CXX='-static'
19362
19363 case $host_os in
19364 aix*)
19365 # All AIX code is PIC.
19366 if test "$host_cpu" = ia64; then
19367 # AIX 5 now supports IA64 processor
19368 lt_prog_compiler_static_CXX='-Bstatic'
19369 fi
19370 ;;
19371
19372 amigaos*)
19373 case $host_cpu in
19374 powerpc)
19375 # see comment about AmigaOS4 .so support
19376 lt_prog_compiler_pic_CXX='-fPIC'
19377 ;;
19378 m68k)
19379 # FIXME: we need at least 68020 code to build shared libraries, but
19380 # adding the `-m68020' flag to GCC prevents building anything better,
19381 # like `-m68040'.
19382 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19383 ;;
19384 esac
19385 ;;
19386
19387 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19388 # PIC is the default for these OSes.
19389 ;;
19390 mingw* | cygwin* | os2* | pw32* | cegcc*)
19391 # This hack is so that the source file can tell whether it is being
19392 # built for inclusion in a dll (and should export symbols for example).
19393 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19394 # (--disable-auto-import) libraries
19395 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19396 ;;
19397 darwin* | rhapsody*)
19398 # PIC is the default on this platform
19399 # Common symbols not allowed in MH_DYLIB files
19400 lt_prog_compiler_pic_CXX='-fno-common'
19401 ;;
19402 *djgpp*)
19403 # DJGPP does not support shared libraries at all
19404 lt_prog_compiler_pic_CXX=
19405 ;;
cristy0c60a692010-11-04 01:09:47 +000019406 haiku*)
19407 # PIC is the default for Haiku.
19408 # The "-static" flag exists, but is broken.
19409 lt_prog_compiler_static_CXX=
19410 ;;
cristy73bd4a52010-10-05 11:24:23 +000019411 interix[3-9]*)
19412 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19413 # Instead, we relocate shared libraries at runtime.
19414 ;;
19415 sysv4*MP*)
19416 if test -d /usr/nec; then
19417 lt_prog_compiler_pic_CXX=-Kconform_pic
19418 fi
19419 ;;
19420 hpux*)
19421 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19422 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19423 # sets the default TLS model and affects inlining.
19424 case $host_cpu in
19425 hppa*64*)
19426 ;;
19427 *)
19428 lt_prog_compiler_pic_CXX='-fPIC'
19429 ;;
19430 esac
19431 ;;
19432 *qnx* | *nto*)
19433 # QNX uses GNU C++, but need to define -shared option too, otherwise
19434 # it will coredump.
19435 lt_prog_compiler_pic_CXX='-fPIC -shared'
19436 ;;
19437 *)
19438 lt_prog_compiler_pic_CXX='-fPIC'
19439 ;;
19440 esac
19441 else
19442 case $host_os in
19443 aix[4-9]*)
19444 # All AIX code is PIC.
19445 if test "$host_cpu" = ia64; then
19446 # AIX 5 now supports IA64 processor
19447 lt_prog_compiler_static_CXX='-Bstatic'
19448 else
19449 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19450 fi
19451 ;;
19452 chorus*)
19453 case $cc_basename in
19454 cxch68*)
19455 # Green Hills C++ Compiler
19456 # _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"
19457 ;;
19458 esac
19459 ;;
cristyda16f162011-02-19 23:52:17 +000019460 mingw* | cygwin* | os2* | pw32* | cegcc*)
19461 # This hack is so that the source file can tell whether it is being
19462 # built for inclusion in a dll (and should export symbols for example).
19463 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19464 ;;
cristy73bd4a52010-10-05 11:24:23 +000019465 dgux*)
19466 case $cc_basename in
19467 ec++*)
19468 lt_prog_compiler_pic_CXX='-KPIC'
19469 ;;
19470 ghcx*)
19471 # Green Hills C++ Compiler
19472 lt_prog_compiler_pic_CXX='-pic'
19473 ;;
19474 *)
19475 ;;
19476 esac
19477 ;;
19478 freebsd* | dragonfly*)
19479 # FreeBSD uses GNU C++
19480 ;;
19481 hpux9* | hpux10* | hpux11*)
19482 case $cc_basename in
19483 CC*)
19484 lt_prog_compiler_wl_CXX='-Wl,'
19485 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19486 if test "$host_cpu" != ia64; then
19487 lt_prog_compiler_pic_CXX='+Z'
19488 fi
19489 ;;
19490 aCC*)
19491 lt_prog_compiler_wl_CXX='-Wl,'
19492 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19493 case $host_cpu in
19494 hppa*64*|ia64*)
19495 # +Z the default
19496 ;;
19497 *)
19498 lt_prog_compiler_pic_CXX='+Z'
19499 ;;
19500 esac
19501 ;;
19502 *)
19503 ;;
19504 esac
19505 ;;
19506 interix*)
19507 # This is c89, which is MS Visual C++ (no shared libs)
19508 # Anyone wants to do a port?
19509 ;;
19510 irix5* | irix6* | nonstopux*)
19511 case $cc_basename in
19512 CC*)
19513 lt_prog_compiler_wl_CXX='-Wl,'
19514 lt_prog_compiler_static_CXX='-non_shared'
19515 # CC pic flag -KPIC is the default.
19516 ;;
19517 *)
19518 ;;
19519 esac
19520 ;;
cristy0c60a692010-11-04 01:09:47 +000019521 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000019522 case $cc_basename in
19523 KCC*)
19524 # KAI C++ Compiler
19525 lt_prog_compiler_wl_CXX='--backend -Wl,'
19526 lt_prog_compiler_pic_CXX='-fPIC'
19527 ;;
19528 ecpc* )
19529 # old Intel C++ for x86_64 which still supported -KPIC.
19530 lt_prog_compiler_wl_CXX='-Wl,'
19531 lt_prog_compiler_pic_CXX='-KPIC'
19532 lt_prog_compiler_static_CXX='-static'
19533 ;;
19534 icpc* )
19535 # Intel C++, used to be incompatible with GCC.
19536 # ICC 10 doesn't accept -KPIC any more.
19537 lt_prog_compiler_wl_CXX='-Wl,'
19538 lt_prog_compiler_pic_CXX='-fPIC'
19539 lt_prog_compiler_static_CXX='-static'
19540 ;;
19541 pgCC* | pgcpp*)
19542 # Portland Group C++ compiler
19543 lt_prog_compiler_wl_CXX='-Wl,'
19544 lt_prog_compiler_pic_CXX='-fpic'
19545 lt_prog_compiler_static_CXX='-Bstatic'
19546 ;;
19547 cxx*)
19548 # Compaq C++
19549 # Make sure the PIC flag is empty. It appears that all Alpha
19550 # Linux and Compaq Tru64 Unix objects are PIC.
19551 lt_prog_compiler_pic_CXX=
19552 lt_prog_compiler_static_CXX='-non_shared'
19553 ;;
cristy0c60a692010-11-04 01:09:47 +000019554 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19555 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000019556 lt_prog_compiler_wl_CXX='-Wl,'
19557 lt_prog_compiler_pic_CXX='-qpic'
19558 lt_prog_compiler_static_CXX='-qstaticlink'
19559 ;;
19560 *)
19561 case `$CC -V 2>&1 | sed 5q` in
19562 *Sun\ C*)
19563 # Sun C++ 5.9
19564 lt_prog_compiler_pic_CXX='-KPIC'
19565 lt_prog_compiler_static_CXX='-Bstatic'
19566 lt_prog_compiler_wl_CXX='-Qoption ld '
19567 ;;
19568 esac
19569 ;;
19570 esac
19571 ;;
19572 lynxos*)
19573 ;;
19574 m88k*)
19575 ;;
19576 mvs*)
19577 case $cc_basename in
19578 cxx*)
19579 lt_prog_compiler_pic_CXX='-W c,exportall'
19580 ;;
19581 *)
19582 ;;
19583 esac
19584 ;;
19585 netbsd*)
19586 ;;
19587 *qnx* | *nto*)
19588 # QNX uses GNU C++, but need to define -shared option too, otherwise
19589 # it will coredump.
19590 lt_prog_compiler_pic_CXX='-fPIC -shared'
19591 ;;
19592 osf3* | osf4* | osf5*)
19593 case $cc_basename in
19594 KCC*)
19595 lt_prog_compiler_wl_CXX='--backend -Wl,'
19596 ;;
19597 RCC*)
19598 # Rational C++ 2.4.1
19599 lt_prog_compiler_pic_CXX='-pic'
19600 ;;
19601 cxx*)
19602 # Digital/Compaq C++
19603 lt_prog_compiler_wl_CXX='-Wl,'
19604 # Make sure the PIC flag is empty. It appears that all Alpha
19605 # Linux and Compaq Tru64 Unix objects are PIC.
19606 lt_prog_compiler_pic_CXX=
19607 lt_prog_compiler_static_CXX='-non_shared'
19608 ;;
19609 *)
19610 ;;
19611 esac
19612 ;;
19613 psos*)
19614 ;;
19615 solaris*)
19616 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019617 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019618 # Sun C++ 4.2, 5.x and Centerline C++
19619 lt_prog_compiler_pic_CXX='-KPIC'
19620 lt_prog_compiler_static_CXX='-Bstatic'
19621 lt_prog_compiler_wl_CXX='-Qoption ld '
19622 ;;
19623 gcx*)
19624 # Green Hills C++ Compiler
19625 lt_prog_compiler_pic_CXX='-PIC'
19626 ;;
19627 *)
19628 ;;
19629 esac
19630 ;;
19631 sunos4*)
19632 case $cc_basename in
19633 CC*)
19634 # Sun C++ 4.x
19635 lt_prog_compiler_pic_CXX='-pic'
19636 lt_prog_compiler_static_CXX='-Bstatic'
19637 ;;
19638 lcc*)
19639 # Lucid
19640 lt_prog_compiler_pic_CXX='-pic'
19641 ;;
19642 *)
19643 ;;
19644 esac
19645 ;;
19646 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19647 case $cc_basename in
19648 CC*)
19649 lt_prog_compiler_wl_CXX='-Wl,'
19650 lt_prog_compiler_pic_CXX='-KPIC'
19651 lt_prog_compiler_static_CXX='-Bstatic'
19652 ;;
19653 esac
19654 ;;
19655 tandem*)
19656 case $cc_basename in
19657 NCC*)
19658 # NonStop-UX NCC 3.20
19659 lt_prog_compiler_pic_CXX='-KPIC'
19660 ;;
19661 *)
19662 ;;
19663 esac
19664 ;;
19665 vxworks*)
19666 ;;
19667 *)
19668 lt_prog_compiler_can_build_shared_CXX=no
19669 ;;
19670 esac
19671 fi
19672
19673case $host_os in
19674 # For platforms which do not support PIC, -DPIC is meaningless:
19675 *djgpp*)
19676 lt_prog_compiler_pic_CXX=
19677 ;;
19678 *)
19679 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19680 ;;
19681esac
cristy73bd4a52010-10-05 11:24:23 +000019682
cristyda16f162011-02-19 23:52:17 +000019683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19684$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19685if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
19686 $as_echo_n "(cached) " >&6
19687else
19688 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
19689fi
19690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
19691$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
19692lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000019693
19694#
19695# Check to make sure the PIC flag actually works.
19696#
19697if test -n "$lt_prog_compiler_pic_CXX"; then
19698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19699$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019700if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019701 $as_echo_n "(cached) " >&6
19702else
19703 lt_cv_prog_compiler_pic_works_CXX=no
19704 ac_outfile=conftest.$ac_objext
19705 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19706 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19707 # Insert the option either (1) after the last *FLAGS variable, or
19708 # (2) before a word containing "conftest.", or (3) at the end.
19709 # Note that $ac_compile itself does not contain backslashes and begins
19710 # with a dollar sign (not a hyphen), so the echo should work correctly.
19711 # The option is referenced via a variable to avoid confusing sed.
19712 lt_compile=`echo "$ac_compile" | $SED \
19713 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19714 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19715 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019716 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019717 (eval "$lt_compile" 2>conftest.err)
19718 ac_status=$?
19719 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019721 if (exit $ac_status) && test -s "$ac_outfile"; then
19722 # The compiler can only warn and ignore the option if not recognized
19723 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000019724 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019725 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19726 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19727 lt_cv_prog_compiler_pic_works_CXX=yes
19728 fi
19729 fi
19730 $RM conftest*
19731
19732fi
19733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19734$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19735
19736if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19737 case $lt_prog_compiler_pic_CXX in
19738 "" | " "*) ;;
19739 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19740 esac
19741else
19742 lt_prog_compiler_pic_CXX=
19743 lt_prog_compiler_can_build_shared_CXX=no
19744fi
19745
19746fi
19747
19748
19749
cristyda16f162011-02-19 23:52:17 +000019750
19751
cristy73bd4a52010-10-05 11:24:23 +000019752#
19753# Check to make sure the static flag actually works.
19754#
19755wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19757$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019758if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019759 $as_echo_n "(cached) " >&6
19760else
19761 lt_cv_prog_compiler_static_works_CXX=no
19762 save_LDFLAGS="$LDFLAGS"
19763 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19764 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19765 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19766 # The linker can only warn and ignore the option if not recognized
19767 # So say no if there are warnings
19768 if test -s conftest.err; then
19769 # Append any errors to the config.log.
19770 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000019771 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019772 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19773 if diff conftest.exp conftest.er2 >/dev/null; then
19774 lt_cv_prog_compiler_static_works_CXX=yes
19775 fi
19776 else
19777 lt_cv_prog_compiler_static_works_CXX=yes
19778 fi
19779 fi
19780 $RM -r conftest*
19781 LDFLAGS="$save_LDFLAGS"
19782
19783fi
19784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19785$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19786
19787if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
19788 :
19789else
19790 lt_prog_compiler_static_CXX=
19791fi
19792
19793
19794
19795
19796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19797$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019798if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019799 $as_echo_n "(cached) " >&6
19800else
19801 lt_cv_prog_compiler_c_o_CXX=no
19802 $RM -r conftest 2>/dev/null
19803 mkdir conftest
19804 cd conftest
19805 mkdir out
19806 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19807
19808 lt_compiler_flag="-o out/conftest2.$ac_objext"
19809 # Insert the option either (1) after the last *FLAGS variable, or
19810 # (2) before a word containing "conftest.", or (3) at the end.
19811 # Note that $ac_compile itself does not contain backslashes and begins
19812 # with a dollar sign (not a hyphen), so the echo should work correctly.
19813 lt_compile=`echo "$ac_compile" | $SED \
19814 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19815 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19816 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019817 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019818 (eval "$lt_compile" 2>out/conftest.err)
19819 ac_status=$?
19820 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019822 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19823 then
19824 # The compiler can only warn and ignore the option if not recognized
19825 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000019826 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019827 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19828 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19829 lt_cv_prog_compiler_c_o_CXX=yes
19830 fi
19831 fi
19832 chmod u+w . 2>&5
19833 $RM conftest*
19834 # SGI C++ compiler will create directory out/ii_files/ for
19835 # template instantiation
19836 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19837 $RM out/* && rmdir out
19838 cd ..
19839 $RM -r conftest
19840 $RM conftest*
19841
19842fi
19843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19844$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19845
19846
19847
19848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19849$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019850if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019851 $as_echo_n "(cached) " >&6
19852else
19853 lt_cv_prog_compiler_c_o_CXX=no
19854 $RM -r conftest 2>/dev/null
19855 mkdir conftest
19856 cd conftest
19857 mkdir out
19858 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19859
19860 lt_compiler_flag="-o out/conftest2.$ac_objext"
19861 # Insert the option either (1) after the last *FLAGS variable, or
19862 # (2) before a word containing "conftest.", or (3) at the end.
19863 # Note that $ac_compile itself does not contain backslashes and begins
19864 # with a dollar sign (not a hyphen), so the echo should work correctly.
19865 lt_compile=`echo "$ac_compile" | $SED \
19866 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19867 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19868 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019869 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019870 (eval "$lt_compile" 2>out/conftest.err)
19871 ac_status=$?
19872 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019874 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19875 then
19876 # The compiler can only warn and ignore the option if not recognized
19877 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000019878 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019879 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19880 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19881 lt_cv_prog_compiler_c_o_CXX=yes
19882 fi
19883 fi
19884 chmod u+w . 2>&5
19885 $RM conftest*
19886 # SGI C++ compiler will create directory out/ii_files/ for
19887 # template instantiation
19888 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19889 $RM out/* && rmdir out
19890 cd ..
19891 $RM -r conftest
19892 $RM conftest*
19893
19894fi
19895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19896$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19897
19898
19899
19900
19901hard_links="nottested"
19902if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19903 # do not overwrite the value of need_locks provided by the user
19904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19905$as_echo_n "checking if we can lock with hard links... " >&6; }
19906 hard_links=yes
19907 $RM conftest*
19908 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19909 touch conftest.a
19910 ln conftest.a conftest.b 2>&5 || hard_links=no
19911 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19913$as_echo "$hard_links" >&6; }
19914 if test "$hard_links" = no; then
19915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19916$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19917 need_locks=warn
19918 fi
19919else
19920 need_locks=no
19921fi
19922
19923
19924
19925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19926$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19927
19928 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019929 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000019930 case $host_os in
19931 aix[4-9]*)
19932 # If we're using GNU nm, then we don't want the "-C" option.
19933 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000019934 # Also, AIX nm treats weak defined symbols like other global defined
19935 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000019936 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000019937 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 +000019938 else
19939 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'
19940 fi
19941 ;;
19942 pw32*)
19943 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000019944 ;;
cristy73bd4a52010-10-05 11:24:23 +000019945 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000019946 case $cc_basename in
cristy99bd5232011-12-07 14:38:20 +000019947 cl*)
19948 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
19949 ;;
cristyda16f162011-02-19 23:52:17 +000019950 *)
19951 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'
19952 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
19953 ;;
19954 esac
19955 ;;
cristy73bd4a52010-10-05 11:24:23 +000019956 *)
19957 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019958 ;;
cristy73bd4a52010-10-05 11:24:23 +000019959 esac
cristy73bd4a52010-10-05 11:24:23 +000019960
19961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19962$as_echo "$ld_shlibs_CXX" >&6; }
19963test "$ld_shlibs_CXX" = no && can_build_shared=no
19964
19965with_gnu_ld_CXX=$with_gnu_ld
19966
19967
19968
19969
19970
19971
19972#
19973# Do we need to explicitly link libc?
19974#
19975case "x$archive_cmds_need_lc_CXX" in
19976x|xyes)
19977 # Assume -lc should be added
19978 archive_cmds_need_lc_CXX=yes
19979
19980 if test "$enable_shared" = yes && test "$GCC" = yes; then
19981 case $archive_cmds_CXX in
19982 *'~'*)
19983 # FIXME: we may have to deal with multi-command sequences.
19984 ;;
19985 '$CC '*)
19986 # Test whether the compiler implicitly links with -lc since on some
19987 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19988 # to ld, don't add -lc before -lgcc.
19989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19990$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019991if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000019992 $as_echo_n "(cached) " >&6
19993else
19994 $RM conftest*
19995 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000019996
cristy0c60a692010-11-04 01:09:47 +000019997 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000019998 (eval $ac_compile) 2>&5
19999 ac_status=$?
20000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20001 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000020002 soname=conftest
20003 lib=conftest
20004 libobjs=conftest.$ac_objext
20005 deplibs=
20006 wl=$lt_prog_compiler_wl_CXX
20007 pic_flag=$lt_prog_compiler_pic_CXX
20008 compiler_flags=-v
20009 linker_flags=-v
20010 verstring=
20011 output_objdir=.
20012 libname=conftest
20013 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20014 allow_undefined_flag_CXX=
20015 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 +000020016 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20017 ac_status=$?
20018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20019 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000020020 then
20021 lt_cv_archive_cmds_need_lc_CXX=no
20022 else
20023 lt_cv_archive_cmds_need_lc_CXX=yes
20024 fi
20025 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20026 else
20027 cat conftest.err 1>&5
20028 fi
20029 $RM conftest*
20030
20031fi
20032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20033$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20034 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000020035 ;;
20036 esac
20037 fi
20038 ;;
20039esac
20040
20041
20042
20043
20044
20045
20046
20047
20048
20049
20050
20051
20052
20053
20054
20055
20056
20057
20058
20059
20060
20061
20062
20063
20064
20065
20066
20067
20068
20069
20070
20071
20072
20073
20074
20075
20076
20077
20078
20079
20080
20081
20082
20083
20084
20085
20086
20087
20088
20089
20090
20091
20092
20093
20094
20095
20096
20097
20098
20099
20100
20101
cristy73bd4a52010-10-05 11:24:23 +000020102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20103$as_echo_n "checking dynamic linker characteristics... " >&6; }
20104
20105library_names_spec=
20106libname_spec='lib$name'
20107soname_spec=
20108shrext_cmds=".so"
20109postinstall_cmds=
20110postuninstall_cmds=
20111finish_cmds=
20112finish_eval=
20113shlibpath_var=
20114shlibpath_overrides_runpath=unknown
20115version_type=none
20116dynamic_linker="$host_os ld.so"
20117sys_lib_dlsearch_path_spec="/lib /usr/lib"
20118need_lib_prefix=unknown
20119hardcode_into_libs=no
20120
20121# when you set need_version to no, make sure it does not cause -set_version
20122# flags to be left without arguments
20123need_version=unknown
20124
20125case $host_os in
20126aix3*)
cristy99bd5232011-12-07 14:38:20 +000020127 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020128 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20129 shlibpath_var=LIBPATH
20130
20131 # AIX 3 has no versioning support, so we append a major version to the name.
20132 soname_spec='${libname}${release}${shared_ext}$major'
20133 ;;
20134
20135aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000020136 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020137 need_lib_prefix=no
20138 need_version=no
20139 hardcode_into_libs=yes
20140 if test "$host_cpu" = ia64; then
20141 # AIX 5 supports IA64
20142 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20143 shlibpath_var=LD_LIBRARY_PATH
20144 else
20145 # With GCC up to 2.95.x, collect2 would create an import file
20146 # for dependence libraries. The import file would start with
20147 # the line `#! .'. This would cause the generated library to
20148 # depend on `.', always an invalid library. This was fixed in
20149 # development snapshots of GCC prior to 3.0.
20150 case $host_os in
20151 aix4 | aix4.[01] | aix4.[01].*)
20152 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20153 echo ' yes '
20154 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20155 :
20156 else
20157 can_build_shared=no
20158 fi
20159 ;;
20160 esac
20161 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20162 # soname into executable. Probably we can add versioning support to
20163 # collect2, so additional links can be useful in future.
20164 if test "$aix_use_runtimelinking" = yes; then
20165 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20166 # instead of lib<name>.a to let people know that these are not
20167 # typical AIX shared libraries.
20168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20169 else
20170 # We preserve .a as extension for shared libraries through AIX4.2
20171 # and later when we are not doing run time linking.
20172 library_names_spec='${libname}${release}.a $libname.a'
20173 soname_spec='${libname}${release}${shared_ext}$major'
20174 fi
20175 shlibpath_var=LIBPATH
20176 fi
20177 ;;
20178
20179amigaos*)
20180 case $host_cpu in
20181 powerpc)
20182 # Since July 2007 AmigaOS4 officially supports .so libraries.
20183 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20185 ;;
20186 m68k)
20187 library_names_spec='$libname.ixlibrary $libname.a'
20188 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000020189 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 +000020190 ;;
20191 esac
20192 ;;
20193
20194beos*)
20195 library_names_spec='${libname}${shared_ext}'
20196 dynamic_linker="$host_os ld.so"
20197 shlibpath_var=LIBRARY_PATH
20198 ;;
20199
20200bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000020201 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020202 need_version=no
20203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20204 soname_spec='${libname}${release}${shared_ext}$major'
20205 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20206 shlibpath_var=LD_LIBRARY_PATH
20207 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20208 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20209 # the default ld.so.conf also contains /usr/contrib/lib and
20210 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20211 # libtool to hard-code these into programs
20212 ;;
20213
20214cygwin* | mingw* | pw32* | cegcc*)
20215 version_type=windows
20216 shrext_cmds=".dll"
20217 need_version=no
20218 need_lib_prefix=no
20219
cristyda16f162011-02-19 23:52:17 +000020220 case $GCC,$cc_basename in
20221 yes,*)
20222 # gcc
cristy73bd4a52010-10-05 11:24:23 +000020223 library_names_spec='$libname.dll.a'
20224 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20225 postinstall_cmds='base_file=`basename \${file}`~
20226 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20227 dldir=$destdir/`dirname \$dlpath`~
20228 test -d \$dldir || mkdir -p \$dldir~
20229 $install_prog $dir/$dlname \$dldir/$dlname~
20230 chmod a+x \$dldir/$dlname~
20231 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20232 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20233 fi'
20234 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20235 dlpath=$dir/\$dldll~
20236 $RM \$dlpath'
20237 shlibpath_overrides_runpath=yes
20238
20239 case $host_os in
20240 cygwin*)
20241 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20242 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000020243
cristy73bd4a52010-10-05 11:24:23 +000020244 ;;
20245 mingw* | cegcc*)
20246 # MinGW DLLs use traditional 'lib' prefix
20247 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000020248 ;;
20249 pw32*)
20250 # pw32 DLLs use 'pw' prefix rather than 'lib'
20251 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20252 ;;
20253 esac
cristyda16f162011-02-19 23:52:17 +000020254 dynamic_linker='Win32 ld.exe'
20255 ;;
20256
20257 *,cl*)
20258 # Native MSVC
20259 libname_spec='$name'
20260 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20261 library_names_spec='${libname}.dll.lib'
20262
20263 case $build_os in
20264 mingw*)
20265 sys_lib_search_path_spec=
20266 lt_save_ifs=$IFS
20267 IFS=';'
20268 for lt_path in $LIB
20269 do
20270 IFS=$lt_save_ifs
20271 # Let DOS variable expansion print the short 8.3 style file name.
20272 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
20273 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
20274 done
20275 IFS=$lt_save_ifs
20276 # Convert to MSYS style.
20277 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
20278 ;;
20279 cygwin*)
20280 # Convert to unix form, then to dos form, then back to unix form
20281 # but this time dos style (no spaces!) so that the unix form looks
20282 # like /cygdrive/c/PROGRA~1:/cygdr...
20283 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
20284 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
20285 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20286 ;;
20287 *)
20288 sys_lib_search_path_spec="$LIB"
20289 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
20290 # It is most probably a Windows format PATH.
20291 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20292 else
20293 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20294 fi
20295 # FIXME: find the short name or the path components, as spaces are
20296 # common. (e.g. "Program Files" -> "PROGRA~1")
20297 ;;
20298 esac
20299
20300 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20301 postinstall_cmds='base_file=`basename \${file}`~
20302 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20303 dldir=$destdir/`dirname \$dlpath`~
20304 test -d \$dldir || mkdir -p \$dldir~
20305 $install_prog $dir/$dlname \$dldir/$dlname'
20306 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20307 dlpath=$dir/\$dldll~
20308 $RM \$dlpath'
20309 shlibpath_overrides_runpath=yes
20310 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000020311 ;;
20312
20313 *)
cristyda16f162011-02-19 23:52:17 +000020314 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000020315 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000020316 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000020317 ;;
20318 esac
cristy73bd4a52010-10-05 11:24:23 +000020319 # FIXME: first we should search . and the directory the executable is in
20320 shlibpath_var=PATH
20321 ;;
20322
20323darwin* | rhapsody*)
20324 dynamic_linker="$host_os dyld"
20325 version_type=darwin
20326 need_lib_prefix=no
20327 need_version=no
20328 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20329 soname_spec='${libname}${release}${major}$shared_ext'
20330 shlibpath_overrides_runpath=yes
20331 shlibpath_var=DYLD_LIBRARY_PATH
20332 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20333
20334 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20335 ;;
20336
20337dgux*)
cristy99bd5232011-12-07 14:38:20 +000020338 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020339 need_lib_prefix=no
20340 need_version=no
20341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20342 soname_spec='${libname}${release}${shared_ext}$major'
20343 shlibpath_var=LD_LIBRARY_PATH
20344 ;;
20345
cristy73bd4a52010-10-05 11:24:23 +000020346freebsd* | dragonfly*)
20347 # DragonFly does not have aout. When/if they implement a new
20348 # versioning mechanism, adjust this.
20349 if test -x /usr/bin/objformat; then
20350 objformat=`/usr/bin/objformat`
20351 else
20352 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020353 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000020354 *) objformat=elf ;;
20355 esac
20356 fi
20357 version_type=freebsd-$objformat
20358 case $version_type in
20359 freebsd-elf*)
20360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20361 need_version=no
20362 need_lib_prefix=no
20363 ;;
20364 freebsd-*)
20365 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20366 need_version=yes
20367 ;;
20368 esac
20369 shlibpath_var=LD_LIBRARY_PATH
20370 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020371 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000020372 shlibpath_overrides_runpath=yes
20373 ;;
20374 freebsd3.[01]* | freebsdelf3.[01]*)
20375 shlibpath_overrides_runpath=yes
20376 hardcode_into_libs=yes
20377 ;;
20378 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20379 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20380 shlibpath_overrides_runpath=no
20381 hardcode_into_libs=yes
20382 ;;
20383 *) # from 4.6 on, and DragonFly
20384 shlibpath_overrides_runpath=yes
20385 hardcode_into_libs=yes
20386 ;;
20387 esac
20388 ;;
20389
20390gnu*)
cristy99bd5232011-12-07 14:38:20 +000020391 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020392 need_lib_prefix=no
20393 need_version=no
20394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20395 soname_spec='${libname}${release}${shared_ext}$major'
20396 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000020397 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000020398 hardcode_into_libs=yes
20399 ;;
20400
cristy0c60a692010-11-04 01:09:47 +000020401haiku*)
cristy99bd5232011-12-07 14:38:20 +000020402 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000020403 need_lib_prefix=no
20404 need_version=no
20405 dynamic_linker="$host_os runtime_loader"
20406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20407 soname_spec='${libname}${release}${shared_ext}$major'
20408 shlibpath_var=LIBRARY_PATH
20409 shlibpath_overrides_runpath=yes
20410 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
20411 hardcode_into_libs=yes
20412 ;;
20413
cristy73bd4a52010-10-05 11:24:23 +000020414hpux9* | hpux10* | hpux11*)
20415 # Give a soname corresponding to the major version so that dld.sl refuses to
20416 # link against other versions.
20417 version_type=sunos
20418 need_lib_prefix=no
20419 need_version=no
20420 case $host_cpu in
20421 ia64*)
20422 shrext_cmds='.so'
20423 hardcode_into_libs=yes
20424 dynamic_linker="$host_os dld.so"
20425 shlibpath_var=LD_LIBRARY_PATH
20426 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20428 soname_spec='${libname}${release}${shared_ext}$major'
20429 if test "X$HPUX_IA64_MODE" = X32; then
20430 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20431 else
20432 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20433 fi
20434 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20435 ;;
20436 hppa*64*)
20437 shrext_cmds='.sl'
20438 hardcode_into_libs=yes
20439 dynamic_linker="$host_os dld.sl"
20440 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20441 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20443 soname_spec='${libname}${release}${shared_ext}$major'
20444 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20445 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20446 ;;
20447 *)
20448 shrext_cmds='.sl'
20449 dynamic_linker="$host_os dld.sl"
20450 shlibpath_var=SHLIB_PATH
20451 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20453 soname_spec='${libname}${release}${shared_ext}$major'
20454 ;;
20455 esac
cristy0c60a692010-11-04 01:09:47 +000020456 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000020457 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000020458 # or fails outright, so override atomically:
20459 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000020460 ;;
20461
20462interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000020463 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020464 need_lib_prefix=no
20465 need_version=no
20466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20467 soname_spec='${libname}${release}${shared_ext}$major'
20468 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20469 shlibpath_var=LD_LIBRARY_PATH
20470 shlibpath_overrides_runpath=no
20471 hardcode_into_libs=yes
20472 ;;
20473
20474irix5* | irix6* | nonstopux*)
20475 case $host_os in
20476 nonstopux*) version_type=nonstopux ;;
20477 *)
20478 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000020479 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020480 else
20481 version_type=irix
20482 fi ;;
20483 esac
20484 need_lib_prefix=no
20485 need_version=no
20486 soname_spec='${libname}${release}${shared_ext}$major'
20487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20488 case $host_os in
20489 irix5* | nonstopux*)
20490 libsuff= shlibsuff=
20491 ;;
20492 *)
20493 case $LD in # libtool.m4 will add one of these switches to LD
20494 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20495 libsuff= shlibsuff= libmagic=32-bit;;
20496 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20497 libsuff=32 shlibsuff=N32 libmagic=N32;;
20498 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20499 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20500 *) libsuff= shlibsuff= libmagic=never-match;;
20501 esac
20502 ;;
20503 esac
20504 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20505 shlibpath_overrides_runpath=no
20506 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20507 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20508 hardcode_into_libs=yes
20509 ;;
20510
20511# No shared lib support for Linux oldld, aout, or coff.
20512linux*oldld* | linux*aout* | linux*coff*)
20513 dynamic_linker=no
20514 ;;
20515
cristy99bd5232011-12-07 14:38:20 +000020516# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000020517linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000020518 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020519 need_lib_prefix=no
20520 need_version=no
20521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20522 soname_spec='${libname}${release}${shared_ext}$major'
20523 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20524 shlibpath_var=LD_LIBRARY_PATH
20525 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000020526
cristy73bd4a52010-10-05 11:24:23 +000020527 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000020528 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000020529 $as_echo_n "(cached) " >&6
20530else
20531 lt_cv_shlibpath_overrides_runpath=no
20532 save_LDFLAGS=$LDFLAGS
20533 save_libdir=$libdir
20534 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20535 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000020537/* end confdefs.h. */
20538
20539int
20540main ()
20541{
20542
20543 ;
20544 return 0;
20545}
20546_ACEOF
20547if ac_fn_cxx_try_link "$LINENO"; then :
20548 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000020549 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000020550fi
20551fi
20552rm -f core conftest.err conftest.$ac_objext \
20553 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000020554 LDFLAGS=$save_LDFLAGS
20555 libdir=$save_libdir
20556
20557fi
20558
20559 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000020560
20561 # This implies no fast_install, which is unacceptable.
20562 # Some rework will be needed to allow for fast_install
20563 # before this can be enabled.
20564 hardcode_into_libs=yes
20565
20566 # Add ABI-specific directories to the system library path.
20567 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
20568
20569 # Append ld.so.conf contents to the search path
20570 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000020571 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 +000020572 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000020573
cristy73bd4a52010-10-05 11:24:23 +000020574 fi
20575
20576 # We used to test for /lib/ld.so.1 and disable shared libraries on
20577 # powerpc, because MkLinux only supported shared libraries with the
20578 # GNU dynamic linker. Since this was broken with cross compilers,
20579 # most powerpc-linux boxes support dynamic linking these days and
20580 # people can always --disable-shared, the test was removed, and we
20581 # assume the GNU/Linux dynamic linker is in use.
20582 dynamic_linker='GNU/Linux ld.so'
20583 ;;
20584
20585netbsd*)
20586 version_type=sunos
20587 need_lib_prefix=no
20588 need_version=no
20589 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20591 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20592 dynamic_linker='NetBSD (a.out) ld.so'
20593 else
20594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20595 soname_spec='${libname}${release}${shared_ext}$major'
20596 dynamic_linker='NetBSD ld.elf_so'
20597 fi
20598 shlibpath_var=LD_LIBRARY_PATH
20599 shlibpath_overrides_runpath=yes
20600 hardcode_into_libs=yes
20601 ;;
20602
20603newsos6)
cristy99bd5232011-12-07 14:38:20 +000020604 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20606 shlibpath_var=LD_LIBRARY_PATH
20607 shlibpath_overrides_runpath=yes
20608 ;;
20609
20610*nto* | *qnx*)
20611 version_type=qnx
20612 need_lib_prefix=no
20613 need_version=no
20614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20615 soname_spec='${libname}${release}${shared_ext}$major'
20616 shlibpath_var=LD_LIBRARY_PATH
20617 shlibpath_overrides_runpath=no
20618 hardcode_into_libs=yes
20619 dynamic_linker='ldqnx.so'
20620 ;;
20621
20622openbsd*)
20623 version_type=sunos
20624 sys_lib_dlsearch_path_spec="/usr/lib"
20625 need_lib_prefix=no
20626 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20627 case $host_os in
20628 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20629 *) need_version=no ;;
20630 esac
20631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20632 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20633 shlibpath_var=LD_LIBRARY_PATH
20634 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20635 case $host_os in
20636 openbsd2.[89] | openbsd2.[89].*)
20637 shlibpath_overrides_runpath=no
20638 ;;
20639 *)
20640 shlibpath_overrides_runpath=yes
20641 ;;
20642 esac
20643 else
20644 shlibpath_overrides_runpath=yes
20645 fi
20646 ;;
20647
20648os2*)
20649 libname_spec='$name'
20650 shrext_cmds=".dll"
20651 need_lib_prefix=no
20652 library_names_spec='$libname${shared_ext} $libname.a'
20653 dynamic_linker='OS/2 ld.exe'
20654 shlibpath_var=LIBPATH
20655 ;;
20656
20657osf3* | osf4* | osf5*)
20658 version_type=osf
20659 need_lib_prefix=no
20660 need_version=no
20661 soname_spec='${libname}${release}${shared_ext}$major'
20662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20663 shlibpath_var=LD_LIBRARY_PATH
20664 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20665 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20666 ;;
20667
20668rdos*)
20669 dynamic_linker=no
20670 ;;
20671
20672solaris*)
cristy99bd5232011-12-07 14:38:20 +000020673 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020674 need_lib_prefix=no
20675 need_version=no
20676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20677 soname_spec='${libname}${release}${shared_ext}$major'
20678 shlibpath_var=LD_LIBRARY_PATH
20679 shlibpath_overrides_runpath=yes
20680 hardcode_into_libs=yes
20681 # ldd complains unless libraries are executable
20682 postinstall_cmds='chmod +x $lib'
20683 ;;
20684
20685sunos4*)
20686 version_type=sunos
20687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20688 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20689 shlibpath_var=LD_LIBRARY_PATH
20690 shlibpath_overrides_runpath=yes
20691 if test "$with_gnu_ld" = yes; then
20692 need_lib_prefix=no
20693 fi
20694 need_version=yes
20695 ;;
20696
20697sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000020698 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20700 soname_spec='${libname}${release}${shared_ext}$major'
20701 shlibpath_var=LD_LIBRARY_PATH
20702 case $host_vendor in
20703 sni)
20704 shlibpath_overrides_runpath=no
20705 need_lib_prefix=no
20706 runpath_var=LD_RUN_PATH
20707 ;;
20708 siemens)
20709 need_lib_prefix=no
20710 ;;
20711 motorola)
20712 need_lib_prefix=no
20713 need_version=no
20714 shlibpath_overrides_runpath=no
20715 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20716 ;;
20717 esac
20718 ;;
20719
20720sysv4*MP*)
20721 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000020722 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020723 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20724 soname_spec='$libname${shared_ext}.$major'
20725 shlibpath_var=LD_LIBRARY_PATH
20726 fi
20727 ;;
20728
20729sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20730 version_type=freebsd-elf
20731 need_lib_prefix=no
20732 need_version=no
20733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20734 soname_spec='${libname}${release}${shared_ext}$major'
20735 shlibpath_var=LD_LIBRARY_PATH
20736 shlibpath_overrides_runpath=yes
20737 hardcode_into_libs=yes
20738 if test "$with_gnu_ld" = yes; then
20739 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20740 else
20741 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20742 case $host_os in
20743 sco3.2v5*)
20744 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20745 ;;
20746 esac
20747 fi
20748 sys_lib_dlsearch_path_spec='/usr/lib'
20749 ;;
20750
20751tpf*)
20752 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000020753 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020754 need_lib_prefix=no
20755 need_version=no
20756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20757 shlibpath_var=LD_LIBRARY_PATH
20758 shlibpath_overrides_runpath=no
20759 hardcode_into_libs=yes
20760 ;;
20761
20762uts4*)
cristy99bd5232011-12-07 14:38:20 +000020763 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20765 soname_spec='${libname}${release}${shared_ext}$major'
20766 shlibpath_var=LD_LIBRARY_PATH
20767 ;;
20768
20769*)
20770 dynamic_linker=no
20771 ;;
20772esac
20773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20774$as_echo "$dynamic_linker" >&6; }
20775test "$dynamic_linker" = no && can_build_shared=no
20776
20777variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20778if test "$GCC" = yes; then
20779 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20780fi
20781
20782if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20783 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20784fi
20785if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20786 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20787fi
20788
20789
20790
20791
20792
20793
20794
20795
20796
20797
20798
20799
20800
20801
20802
20803
20804
20805
20806
20807
20808
20809
20810
20811
20812
20813
20814
20815
20816
20817
20818
20819
20820
20821
20822
20823
cristy0c60a692010-11-04 01:09:47 +000020824
20825
cristy73bd4a52010-10-05 11:24:23 +000020826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20827$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20828hardcode_action_CXX=
20829if test -n "$hardcode_libdir_flag_spec_CXX" ||
20830 test -n "$runpath_var_CXX" ||
20831 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20832
20833 # We can hardcode non-existent directories.
20834 if test "$hardcode_direct_CXX" != no &&
20835 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20836 # have to relink, otherwise we might link with an installed library
20837 # when we should be linking with a yet-to-be-installed one
20838 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20839 test "$hardcode_minus_L_CXX" != no; then
20840 # Linking always hardcodes the temporary library directory.
20841 hardcode_action_CXX=relink
20842 else
20843 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20844 hardcode_action_CXX=immediate
20845 fi
20846else
20847 # We cannot hardcode anything, or else we can only hardcode existing
20848 # directories.
20849 hardcode_action_CXX=unsupported
20850fi
20851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20852$as_echo "$hardcode_action_CXX" >&6; }
20853
20854if test "$hardcode_action_CXX" = relink ||
20855 test "$inherit_rpath_CXX" = yes; then
20856 # Fast installation is not supported
20857 enable_fast_install=no
20858elif test "$shlibpath_overrides_runpath" = yes ||
20859 test "$enable_shared" = no; then
20860 # Fast installation is not necessary
20861 enable_fast_install=needless
20862fi
20863
20864
20865
20866
20867
20868
20869
20870 fi # test -n "$compiler"
20871
20872 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000020873 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000020874 LDCXX=$LD
20875 LD=$lt_save_LD
20876 GCC=$lt_save_GCC
20877 with_gnu_ld=$lt_save_with_gnu_ld
20878 lt_cv_path_LDCXX=$lt_cv_path_LD
20879 lt_cv_path_LD=$lt_save_path_LD
20880 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20881 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20882fi # test "$_lt_caught_CXX_error" != yes
20883
20884ac_ext=c
20885ac_cpp='$CPP $CPPFLAGS'
20886ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20887ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20888ac_compiler_gnu=$ac_cv_c_compiler_gnu
20889
20890
20891
20892
20893
20894
20895
20896
20897
20898
20899
20900
20901
cristy99bd5232011-12-07 14:38:20 +000020902
20903
cristy73bd4a52010-10-05 11:24:23 +000020904 ac_config_commands="$ac_config_commands libtool"
20905
20906
20907
20908
20909# Only expand once:
20910
20911
20912
cristy3ed852e2009-09-05 21:47:34 +000020913
20914
cristy3ed852e2009-09-05 21:47:34 +000020915# Check to see if building shared libraries
20916libtool_build_shared_libs='no'
20917if test "$enable_shared" = 'yes'; then
20918 libtool_build_shared_libs='yes'
20919fi
20920
20921# Check to see if building static libraries
20922libtool_build_static_libs='no'
20923if test "$enable_static" = 'yes'; then
20924 libtool_build_static_libs='yes'
20925fi
20926
cristy73bd4a52010-10-05 11:24:23 +000020927 if test "${libtool_build_shared_libs}" = 'yes'; then
20928 WITH_SHARED_LIBS_TRUE=
20929 WITH_SHARED_LIBS_FALSE='#'
20930else
20931 WITH_SHARED_LIBS_TRUE='#'
20932 WITH_SHARED_LIBS_FALSE=
20933fi
20934
cristy3ed852e2009-09-05 21:47:34 +000020935#
20936# Enable support for building loadable modules
20937#
cristyaf4cbf32012-10-16 23:47:41 +000020938build_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000020939
20940# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000020941if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020942 withval=$with_modules; with_modules=$withval
20943else
cristy5a1cefd2010-01-06 20:42:35 +000020944 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000020945fi
20946
20947
20948# Only allow building loadable modules if we are building shared libraries
20949if test "$with_modules" != 'no' ; then
20950 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000020951 { $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 +000020952$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
cristyc6722092012-10-14 00:19:31 +000020953 build_modules='no'
20954 else
20955 build_modules='yes'
20956 fi
cristy3ed852e2009-09-05 21:47:34 +000020957fi
cristyc6722092012-10-14 00:19:31 +000020958if test "$build_modules" != 'no' ; then
cristy3ed852e2009-09-05 21:47:34 +000020959
cristy8b350f62009-11-15 23:12:43 +000020960$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020961
cristyfa161182012-12-19 15:45:28 +000020962 MAGICK_FEATURES="$MAGICK_FEATURES Modules"
cristy3ed852e2009-09-05 21:47:34 +000020963fi
cristyc6722092012-10-14 00:19:31 +000020964 if test "$build_modules" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +000020965 WITH_MODULES_TRUE=
20966 WITH_MODULES_FALSE='#'
20967else
20968 WITH_MODULES_TRUE='#'
20969 WITH_MODULES_FALSE=
20970fi
20971
cristy3ed852e2009-09-05 21:47:34 +000020972
cristy3ed852e2009-09-05 21:47:34 +000020973# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000020974# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000020975# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000020976if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020977 enableval=$enable_delegate_build; enable_delegate_build=$enableval
20978else
20979 enable_delegate_build='no'
20980fi
20981
20982
20983# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000020984if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020985 enableval=$enable_deprecated; enable_deprecated=$enableval
20986else
20987 enable_deprecated='no'
20988fi
20989
20990
20991if test "$enable_deprecated" = 'yes'; then
20992
cristy8b350f62009-11-15 23:12:43 +000020993$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020994
20995else
20996 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
20997fi
20998
20999# Build a version of ImageMagick which operates uninstalled.
21000# Used to build distributions located via MAGICK_HOME / executable path
21001# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000021002if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021003 enableval=$enable_installed; enable_installed=$enableval
21004else
21005 enable_installed='yes'
21006fi
21007
21008
21009if test "$enable_installed" = 'yes'; then
21010
cristy8b350f62009-11-15 23:12:43 +000021011$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021012
21013else
21014 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
21015fi
21016
21017# Permit enciphering and deciphering image pixels.
21018# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000021019if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021020 enableval=$enable_cipher; enable_cipher=$enableval
21021else
21022 enable_cipher='yes'
21023fi
21024
21025
21026if test "$enable_cipher" = 'yes'; then
21027
cristy8b350f62009-11-15 23:12:43 +000021028$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021029
21030fi
21031
cristy6e3607c2011-09-13 13:59:17 +000021032# Build a zero-configuration version of ImageMagick.
21033# Check whether --enable-zero-configuration was given.
21034if test "${enable_zero_configuration+set}" = set; then :
21035 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
cristy3ed852e2009-09-05 21:47:34 +000021036else
cristy6e3607c2011-09-13 13:59:17 +000021037 enable_zero_configuration='no'
cristy3ed852e2009-09-05 21:47:34 +000021038fi
21039
21040
cristy6e3607c2011-09-13 13:59:17 +000021041if test "$enable_zero_configuration" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021042
cristy6e3607c2011-09-13 13:59:17 +000021043$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021044
cristy81af5702011-09-13 14:20:58 +000021045 MAGICK_FEATURES="Zero-Configuration $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021046fi
21047
21048# Build a high dynamic range version of ImageMagick.
21049# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000021050if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021051 enableval=$enable_hdri; enable_hdri=$enableval
21052else
cristy191c0b72012-08-12 16:29:52 +000021053 enable_hdri='yes'
cristy3ed852e2009-09-05 21:47:34 +000021054fi
21055
21056
21057MAGICK_HDRI=""
21058if test "$enable_hdri" = 'yes'; then
21059 MAGICK_HDRI="HDRI"
cristye52f12f2012-12-31 15:32:36 +000021060 magick_hdri_enable='1';
cristyfd9dcd42010-08-08 18:07:02 +000021061 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristye52f12f2012-12-31 15:32:36 +000021062else
21063 magick_hdri_enable='0'
cristy3ed852e2009-09-05 21:47:34 +000021064fi
21065
cristye52f12f2012-12-31 15:32:36 +000021066cat >>confdefs.h <<_ACEOF
21067#define HDRI_ENABLE_OBSOLETE_IN_H $magick_hdri_enable
21068_ACEOF
21069
21070MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
21071CFLAGS="$CFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
cristy72062382012-12-31 16:49:52 +000021072CPPFLAGS="$CPPFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
cristye52f12f2012-12-31 15:32:36 +000021073
cristy3ed852e2009-09-05 21:47:34 +000021074# Build a version of ImageMagick with assert statements.
21075# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000021076if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021077 enableval=$enable_assert; enable_assert=$enableval
21078else
21079 enable_assert='yes'
21080fi
21081
21082
21083if test "$enable_assert" = 'no'; then
21084
cristy8b350f62009-11-15 23:12:43 +000021085$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021086
21087fi
21088
cristya448bd22011-10-14 12:38:13 +000021089# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
cristy73bd4a52010-10-05 11:24:23 +000021090
21091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
21092$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
21093 # Check whether --enable-maintainer-mode was given.
21094if test "${enable_maintainer_mode+set}" = set; then :
21095 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
21096else
21097 USE_MAINTAINER_MODE=no
21098fi
21099
21100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
21101$as_echo "$USE_MAINTAINER_MODE" >&6; }
21102 if test $USE_MAINTAINER_MODE = yes; then
21103 MAINTAINER_MODE_TRUE=
21104 MAINTAINER_MODE_FALSE='#'
21105else
21106 MAINTAINER_MODE_TRUE='#'
21107 MAINTAINER_MODE_FALSE=
21108fi
21109
21110 MAINT=$MAINTAINER_MODE_TRUE
21111
21112
cristy3ed852e2009-09-05 21:47:34 +000021113
cristy944e51f2013-04-16 18:45:02 +000021114# Enable hugepages support
21115# Check whether --enable-hugepages was given.
21116if test "${enable_hugepages+set}" = set; then :
21117 enableval=$enable_hugepages; enable_hugepages=$enableval
21118else
21119 enable_hugepages='no'
21120fi
21121
21122
cristy3ed852e2009-09-05 21:47:34 +000021123# Enable ccmalloc memory debugging support
21124# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000021125if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021126 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
21127else
21128 enable_ccmalloc='no'
21129fi
21130
21131
21132# Enable Electric Fence memory debugging support
21133# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000021134if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021135 enableval=$enable_efence; enable_efence=$enableval
21136else
21137 enable_efence='no'
21138fi
21139
21140
21141# Enable prof-based profiling support
21142# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000021143if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021144 enableval=$enable_prof; enable_prof=$enableval
21145else
21146 enable_prof='no'
21147fi
21148
21149
21150# Enable gprof-based profiling support
21151# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000021152if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021153 enableval=$enable_gprof; enable_gprof=$enableval
21154else
21155 enable_gprof='no'
21156fi
21157
21158
21159# Enable gcov-based profiling support
21160# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000021161if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021162 enableval=$enable_gcov; enable_gcov=$enableval
21163else
21164 enable_gcov='no'
21165fi
21166
21167
21168enable_profiling='no'
21169if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21170 enable_profiling='yes'
21171 if test "$libtool_build_shared_libs" = 'yes'; then
21172 echo "Warning: Can not profile code using shared libraries"
21173 fi
21174fi
21175
21176# Magick API method prefix
21177
21178# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000021179if test "${with_method_prefix+set}" = set; then :
cristyfc3d0222012-02-07 15:05:57 +000021180 withval=$with_method_prefix; with_method_prefix=$withval
cristy3ed852e2009-09-05 21:47:34 +000021181else
cristyfc3d0222012-02-07 15:05:57 +000021182 with_method_prefix='no'
cristy3ed852e2009-09-05 21:47:34 +000021183fi
21184
21185
cristyfc3d0222012-02-07 15:05:57 +000021186if test "$with_method_prefix" != 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000021187
21188cat >>confdefs.h <<_ACEOF
21189#define NAMESPACE_PREFIX $with_method_prefix
21190_ACEOF
21191
cristyfc3d0222012-02-07 15:05:57 +000021192 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-method-prefix "
cristy3ed852e2009-09-05 21:47:34 +000021193fi
21194
cristy71d8c202012-03-20 17:05:01 +000021195# Enable legacy support (default no)
21196# Check whether --enable-legacy-support was given.
21197if test "${enable_legacy_support+set}" = set; then :
21198 enableval=$enable_legacy_support; with_legacy_support=$enableval
21199else
21200 with_legacy_support='no'
21201fi
21202
21203 if test "$with_legacy_support" != 'no'; then
21204 LEGACY_SUPPORT_TRUE=
21205 LEGACY_SUPPORT_FALSE='#'
21206else
21207 LEGACY_SUPPORT_TRUE='#'
21208 LEGACY_SUPPORT_FALSE=
21209fi
21210
21211
cristy3ed852e2009-09-05 21:47:34 +000021212# Number of bits in a Quantum
21213
21214# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000021215if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021216 withval=$with_quantum_depth; with_quantum_depth=$withval
21217else
21218 with_quantum_depth=16
21219fi
21220
21221
21222if test "$with_quantum_depth" != '8'; then
21223 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21224fi
21225
21226case "${with_quantum_depth}" in
21227 8 ) ;;
21228 16 ) ;;
21229 32 ) ;;
21230 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000021231 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021232esac
21233QUANTUM_DEPTH="$with_quantum_depth"
21234
21235cat >>confdefs.h <<_ACEOF
cristye52f12f2012-12-31 15:32:36 +000021236#define QUANTUM_DEPTH_OBSOLETE_IN_H $QUANTUM_DEPTH
cristy3ed852e2009-09-05 21:47:34 +000021237_ACEOF
21238
cristya371edf2013-02-06 13:42:17 +000021239MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristye52f12f2012-12-31 15:32:36 +000021240CFLAGS="$CFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristy72062382012-12-31 16:49:52 +000021241CPPFLAGS="$CPPFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristy3ed852e2009-09-05 21:47:34 +000021242
cristy01ff9f32012-12-01 18:15:29 +000021243# define a lib suffix for abi purpose
cristy7a26abd2012-12-03 00:18:59 +000021244MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}"
cristye386d192012-12-01 21:05:20 +000021245if test "$enable_hdri" = 'yes'; then
cristy7a26abd2012-12-03 00:18:59 +000021246 MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}${MAGICK_HDRI}"
cristye386d192012-12-01 21:05:20 +000021247fi
cristy01ff9f32012-12-01 18:15:29 +000021248
21249
cristy3ed852e2009-09-05 21:47:34 +000021250# Set pixel cache threshold
21251
21252# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000021253if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021254 withval=$with_cache; with_cache=$withval
21255else
21256 with_cache=''
21257fi
21258
21259
21260if test "$with_cache" != ''; then
21261
21262cat >>confdefs.h <<_ACEOF
21263#define PixelCacheThreshold $with_cache
21264_ACEOF
21265
21266 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21267fi
21268
21269# Disable/Enable support for full delegate paths
21270
21271# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000021272if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021273 withval=$with_frozenpaths; with_frozenpaths=$withval
21274else
21275 with_frozenpaths='no'
21276fi
21277
21278
21279# Enable build/install of Magick++
21280
21281# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000021282if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021283 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21284else
21285 with_magick_plus_plus='yes'
21286fi
21287
21288
cristy3a75f062012-09-08 23:29:40 +000021289# Encode the this name into the shared library.
21290
21291# Check whether --with-package-release-name was given.
21292if test "${with_package_release_name+set}" = set; then :
21293 withval=$with_package_release_name; MAGICK_LT_RELEASE_OPTS="-release $withval"
21294fi
21295
21296
21297
cristy3ed852e2009-09-05 21:47:34 +000021298# Disable build/install of PerlMagick.
21299
21300# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000021301if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021302 withval=$with_perl; with_perl=$withval
21303else
cristyb5f4e2f2010-04-25 00:49:11 +000021304 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000021305fi
21306
21307
21308# Options to pass when configuring PerlMagick
21309
21310# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000021311if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000021312 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000021313fi
21314
21315
cristy3ed852e2009-09-05 21:47:34 +000021316
21317# Enable umem, object-caching memory allocation library.
21318
21319# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000021320if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021321 withval=$with_umem; with_umem=$withval
21322else
21323 with_umem='no'
21324fi
21325
21326if test "$with_umem" != 'yes' ; then
21327 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
21328fi
21329
21330#
21331# Specify path to shared libstdc++ if not in normal location
21332#
21333
21334# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000021335if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021336 withval=$with_libstdc; with_libstdc=$withval
21337else
21338 with_libstdc=''
21339fi
21340
21341
21342if test "$with_libstdc" != ''; then
21343 if test -d "$with_libstdc"; then
21344 LIBSTDCLDFLAGS="-L$with_libstdc"
21345 fi
21346fi
21347
21348
21349# Does gcc required -traditional?
21350if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000021351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021352$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021353if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021354 $as_echo_n "(cached) " >&6
21355else
21356 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000021357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021358/* end confdefs.h. */
21359#include <sgtty.h>
21360Autoconf TIOCGETP
21361_ACEOF
21362if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021363 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021364 ac_cv_prog_gcc_traditional=yes
21365else
21366 ac_cv_prog_gcc_traditional=no
21367fi
21368rm -f conftest*
21369
21370
21371 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000021372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021373/* end confdefs.h. */
21374#include <termio.h>
21375Autoconf TCGETA
21376_ACEOF
21377if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021378 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021379 ac_cv_prog_gcc_traditional=yes
21380fi
21381rm -f conftest*
21382
21383 fi
21384fi
cristy8b350f62009-11-15 23:12:43 +000021385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021386$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
21387 if test $ac_cv_prog_gcc_traditional = yes; then
21388 CC="$CC -traditional"
21389 fi
21390fi
21391
21392
21393########
21394#
21395# Set defines required to build DLLs and modules using MinGW
21396#
21397########
21398# These options are set for multi-thread DLL module build
21399# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
21400# module: _DLL
21401# executable/Magick++: _DLL _MAGICKMOD_
21402MODULE_EXTRA_CPPFLAGS=''
21403LIBRARY_EXTRA_CPPFLAGS=''
21404if test "${native_win32_build}" = 'yes'; then
21405 if test "${libtool_build_shared_libs}" = 'yes'; then
21406 CPPFLAGS="$CPPFLAGS -D_DLL"
21407 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
21408 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
21409 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
cristyc6722092012-10-14 00:19:31 +000021410 if test "$build_modules" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021411 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
21412 else
21413 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21414 fi
21415 else
21416 CPPFLAGS="$CPPFLAGS -D_LIB"
21417 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
21418 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
21419 fi
21420 if test "$with_threads" = 'yes'; then
21421 CPPFLAGS="$CPPFLAGS -D_MT"
21422 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
21423 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
21424 fi
21425fi
21426
21427
21428
21429# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000021430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000021431$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021432if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021433 $as_echo_n "(cached) " >&6
21434else
cristy8b350f62009-11-15 23:12:43 +000021435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021436/* end confdefs.h. */
21437#include <stdlib.h>
21438#include <stdarg.h>
21439#include <string.h>
21440#include <float.h>
21441
21442int
21443main ()
21444{
21445
21446 ;
21447 return 0;
21448}
21449_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021450if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021451 ac_cv_header_stdc=yes
21452else
cristy8b350f62009-11-15 23:12:43 +000021453 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021454fi
cristy3ed852e2009-09-05 21:47:34 +000021455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21456
21457if test $ac_cv_header_stdc = yes; then
21458 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021460/* end confdefs.h. */
21461#include <string.h>
21462
21463_ACEOF
21464if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021465 $EGREP "memchr" >/dev/null 2>&1; then :
21466
cristy3ed852e2009-09-05 21:47:34 +000021467else
21468 ac_cv_header_stdc=no
21469fi
21470rm -f conftest*
21471
21472fi
21473
21474if test $ac_cv_header_stdc = yes; then
21475 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021477/* end confdefs.h. */
21478#include <stdlib.h>
21479
21480_ACEOF
21481if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021482 $EGREP "free" >/dev/null 2>&1; then :
21483
cristy3ed852e2009-09-05 21:47:34 +000021484else
21485 ac_cv_header_stdc=no
21486fi
21487rm -f conftest*
21488
21489fi
21490
21491if test $ac_cv_header_stdc = yes; then
21492 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000021493 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021494 :
21495else
cristy8b350f62009-11-15 23:12:43 +000021496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021497/* end confdefs.h. */
21498#include <ctype.h>
21499#include <stdlib.h>
21500#if ((' ' & 0x0FF) == 0x020)
21501# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21502# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21503#else
21504# define ISLOWER(c) \
21505 (('a' <= (c) && (c) <= 'i') \
21506 || ('j' <= (c) && (c) <= 'r') \
21507 || ('s' <= (c) && (c) <= 'z'))
21508# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21509#endif
21510
21511#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21512int
21513main ()
21514{
21515 int i;
21516 for (i = 0; i < 256; i++)
21517 if (XOR (islower (i), ISLOWER (i))
21518 || toupper (i) != TOUPPER (i))
21519 return 2;
21520 return 0;
21521}
21522_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021523if ac_fn_c_try_run "$LINENO"; then :
21524
cristy3ed852e2009-09-05 21:47:34 +000021525else
cristy8b350f62009-11-15 23:12:43 +000021526 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021527fi
cristy8b350f62009-11-15 23:12:43 +000021528rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21529 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021530fi
21531
cristy3ed852e2009-09-05 21:47:34 +000021532fi
21533fi
cristy8b350f62009-11-15 23:12:43 +000021534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000021535$as_echo "$ac_cv_header_stdc" >&6; }
21536if test $ac_cv_header_stdc = yes; then
21537
cristy8b350f62009-11-15 23:12:43 +000021538$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021539
21540fi
21541
21542if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000021543 { $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 +000021544 header files. Compilation cannot proceed. Please install the ANSI C
21545 headers and rerun this script." >&5
21546$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
21547 header files. Compilation cannot proceed. Please install the ANSI C
21548 headers and rerun this script." >&2;};
21549fi
cristya0b81c32010-01-22 02:54:33 +000021550
21551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
21552$as_echo_n "checking whether to enable assertions... " >&6; }
21553 # Check whether --enable-assert was given.
21554if test "${enable_assert+set}" = set; then :
21555 enableval=$enable_assert; ac_enable_assert=$enableval
21556 if test "x$enableval" = xno; then :
21557
21558$as_echo "#define NDEBUG 1" >>confdefs.h
21559
21560elif test "x$enableval" != xyes; then :
21561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
21562$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
21563 ac_enable_assert=yes
21564fi
21565else
21566 ac_enable_assert=yes
21567fi
21568
21569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
21570$as_echo "$ac_enable_assert" >&6; }
21571
cristy3ed852e2009-09-05 21:47:34 +000021572ac_header_dirent=no
21573for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21574 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000021575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000021576$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021577if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021578 $as_echo_n "(cached) " >&6
21579else
cristy8b350f62009-11-15 23:12:43 +000021580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021581/* end confdefs.h. */
21582#include <sys/types.h>
21583#include <$ac_hdr>
21584
21585int
21586main ()
21587{
21588if ((DIR *) 0)
21589return 0;
21590 ;
21591 return 0;
21592}
21593_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021594if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021595 eval "$as_ac_Header=yes"
21596else
cristy8b350f62009-11-15 23:12:43 +000021597 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000021598fi
cristy3ed852e2009-09-05 21:47:34 +000021599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21600fi
cristy8b350f62009-11-15 23:12:43 +000021601eval ac_res=\$$as_ac_Header
21602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000021603$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000021604if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021605 cat >>confdefs.h <<_ACEOF
21606#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21607_ACEOF
21608
21609ac_header_dirent=$ac_hdr; break
21610fi
21611
21612done
21613# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21614if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000021615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021616$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021617if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021618 $as_echo_n "(cached) " >&6
21619else
21620 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021621cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021622/* end confdefs.h. */
21623
21624/* Override any GCC internal prototype to avoid an error.
21625 Use char because int might match the return type of a GCC
21626 builtin and then its argument prototype would still apply. */
21627#ifdef __cplusplus
21628extern "C"
21629#endif
21630char opendir ();
21631int
21632main ()
21633{
21634return opendir ();
21635 ;
21636 return 0;
21637}
21638_ACEOF
21639for ac_lib in '' dir; do
21640 if test -z "$ac_lib"; then
21641 ac_res="none required"
21642 else
21643 ac_res=-l$ac_lib
21644 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21645 fi
cristy8b350f62009-11-15 23:12:43 +000021646 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021647 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021648fi
cristy8b350f62009-11-15 23:12:43 +000021649rm -f core conftest.err conftest.$ac_objext \
21650 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021651 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021652 break
21653fi
21654done
cristyda16f162011-02-19 23:52:17 +000021655if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021656
cristy3ed852e2009-09-05 21:47:34 +000021657else
21658 ac_cv_search_opendir=no
21659fi
21660rm conftest.$ac_ext
21661LIBS=$ac_func_search_save_LIBS
21662fi
cristy8b350f62009-11-15 23:12:43 +000021663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021664$as_echo "$ac_cv_search_opendir" >&6; }
21665ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021666if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021667 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21668
21669fi
21670
21671else
cristy8b350f62009-11-15 23:12:43 +000021672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021673$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021674if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021675 $as_echo_n "(cached) " >&6
21676else
21677 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021678cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021679/* end confdefs.h. */
21680
21681/* Override any GCC internal prototype to avoid an error.
21682 Use char because int might match the return type of a GCC
21683 builtin and then its argument prototype would still apply. */
21684#ifdef __cplusplus
21685extern "C"
21686#endif
21687char opendir ();
21688int
21689main ()
21690{
21691return opendir ();
21692 ;
21693 return 0;
21694}
21695_ACEOF
21696for ac_lib in '' x; do
21697 if test -z "$ac_lib"; then
21698 ac_res="none required"
21699 else
21700 ac_res=-l$ac_lib
21701 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21702 fi
cristy8b350f62009-11-15 23:12:43 +000021703 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021704 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021705fi
cristy8b350f62009-11-15 23:12:43 +000021706rm -f core conftest.err conftest.$ac_objext \
21707 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021708 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021709 break
21710fi
21711done
cristyda16f162011-02-19 23:52:17 +000021712if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021713
cristy3ed852e2009-09-05 21:47:34 +000021714else
21715 ac_cv_search_opendir=no
21716fi
21717rm conftest.$ac_ext
21718LIBS=$ac_func_search_save_LIBS
21719fi
cristy8b350f62009-11-15 23:12:43 +000021720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021721$as_echo "$ac_cv_search_opendir" >&6; }
21722ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021723if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021724 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21725
21726fi
21727
21728fi
21729
21730
21731# Check additional headers
cristy03f187e2013-01-24 00:22:19 +000021732for 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 +000021733do :
21734 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21735ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000021736if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021737 cat >>confdefs.h <<_ACEOF
21738#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21739_ACEOF
21740
21741fi
21742
21743done
21744
21745
21746########
21747#
21748# Checks for typedefs, structures, and compiler characteristics.
21749#
21750########
21751
cristy8b350f62009-11-15 23:12:43 +000021752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000021753$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021754if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021755 $as_echo_n "(cached) " >&6
21756else
cristy8b350f62009-11-15 23:12:43 +000021757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021758/* end confdefs.h. */
21759
cristy14fefe52012-05-21 00:59:18 +000021760 #include <stdbool.h>
21761 #ifndef bool
21762 "error: bool is not defined"
21763 #endif
21764 #ifndef false
21765 "error: false is not defined"
21766 #endif
21767 #if false
21768 "error: false is not 0"
21769 #endif
21770 #ifndef true
21771 "error: true is not defined"
21772 #endif
21773 #if true != 1
21774 "error: true is not 1"
21775 #endif
21776 #ifndef __bool_true_false_are_defined
21777 "error: __bool_true_false_are_defined is not defined"
21778 #endif
cristy3ed852e2009-09-05 21:47:34 +000021779
cristy14fefe52012-05-21 00:59:18 +000021780 struct s { _Bool s: 1; _Bool t; } s;
cristy3ed852e2009-09-05 21:47:34 +000021781
cristy14fefe52012-05-21 00:59:18 +000021782 char a[true == 1 ? 1 : -1];
21783 char b[false == 0 ? 1 : -1];
21784 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
21785 char d[(bool) 0.5 == true ? 1 : -1];
21786 /* See body of main program for 'e'. */
21787 char f[(_Bool) 0.0 == false ? 1 : -1];
21788 char g[true];
21789 char h[sizeof (_Bool)];
21790 char i[sizeof s.t];
21791 enum { j = false, k = true, l = false * true, m = true * 256 };
21792 /* The following fails for
21793 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
21794 _Bool n[m];
21795 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
21796 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
21797 /* Catch a bug in an HP-UX C compiler. See
21798 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
21799 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
21800 */
21801 _Bool q = true;
21802 _Bool *pq = &q;
cristy3ed852e2009-09-05 21:47:34 +000021803
21804int
21805main ()
21806{
21807
cristy14fefe52012-05-21 00:59:18 +000021808 bool e = &s;
21809 *pq |= q;
21810 *pq |= ! q;
21811 /* Refer to every declared value, to avoid compiler optimizations. */
21812 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
21813 + !m + !n + !o + !p + !q + !pq);
cristy3ed852e2009-09-05 21:47:34 +000021814
21815 ;
21816 return 0;
21817}
21818_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021819if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021820 ac_cv_header_stdbool_h=yes
21821else
cristy8b350f62009-11-15 23:12:43 +000021822 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000021823fi
cristy3ed852e2009-09-05 21:47:34 +000021824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21825fi
cristy8b350f62009-11-15 23:12:43 +000021826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000021827$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy14fefe52012-05-21 00:59:18 +000021828 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000021829if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000021830
21831cat >>confdefs.h <<_ACEOF
21832#define HAVE__BOOL 1
21833_ACEOF
21834
21835
21836fi
21837
cristy14fefe52012-05-21 00:59:18 +000021838
cristy3ed852e2009-09-05 21:47:34 +000021839if test $ac_cv_header_stdbool_h = yes; then
21840
cristy8b350f62009-11-15 23:12:43 +000021841$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021842
21843fi
21844
cristy8b350f62009-11-15 23:12:43 +000021845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021846$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021847if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021848 $as_echo_n "(cached) " >&6
21849else
cristy8b350f62009-11-15 23:12:43 +000021850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021851/* end confdefs.h. */
21852
21853int
21854main ()
21855{
21856
21857volatile int x;
21858int * volatile y = (int *) 0;
21859return !x && !y;
21860 ;
21861 return 0;
21862}
21863_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021864if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021865 ac_cv_c_volatile=yes
21866else
cristy8b350f62009-11-15 23:12:43 +000021867 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000021868fi
cristy3ed852e2009-09-05 21:47:34 +000021869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21870fi
cristy8b350f62009-11-15 23:12:43 +000021871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021872$as_echo "$ac_cv_c_volatile" >&6; }
21873if test $ac_cv_c_volatile = no; then
21874
cristy8b350f62009-11-15 23:12:43 +000021875$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021876
21877fi
21878
cristy8b350f62009-11-15 23:12:43 +000021879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000021880$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021881if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021882 $as_echo_n "(cached) " >&6
21883else
cristy8b350f62009-11-15 23:12:43 +000021884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021885/* end confdefs.h. */
21886#define x(y) #y
21887
21888char *s = x(teststring);
21889_ACEOF
21890if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021891 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021892 ac_cv_c_stringize=no
21893else
21894 ac_cv_c_stringize=yes
21895fi
21896rm -f conftest*
21897
21898fi
cristy8b350f62009-11-15 23:12:43 +000021899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000021900$as_echo "$ac_cv_c_stringize" >&6; }
21901if test $ac_cv_c_stringize = yes; then
21902
cristy8b350f62009-11-15 23:12:43 +000021903$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021904
21905fi
21906
cristy8b350f62009-11-15 23:12:43 +000021907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021908$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021909if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021910 $as_echo_n "(cached) " >&6
21911else
cristy8b350f62009-11-15 23:12:43 +000021912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021913/* end confdefs.h. */
21914#include <sys/types.h>
21915#include <sys/stat.h>
21916
21917#if defined S_ISBLK && defined S_IFDIR
21918extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21919#endif
21920
21921#if defined S_ISBLK && defined S_IFCHR
21922extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21923#endif
21924
21925#if defined S_ISLNK && defined S_IFREG
21926extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21927#endif
21928
21929#if defined S_ISSOCK && defined S_IFREG
21930extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21931#endif
21932
21933_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021934if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021935 ac_cv_header_stat_broken=no
21936else
cristy8b350f62009-11-15 23:12:43 +000021937 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000021938fi
cristy3ed852e2009-09-05 21:47:34 +000021939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21940fi
cristy8b350f62009-11-15 23:12:43 +000021941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021942$as_echo "$ac_cv_header_stat_broken" >&6; }
21943if test $ac_cv_header_stat_broken = yes; then
21944
cristy8b350f62009-11-15 23:12:43 +000021945$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021946
21947fi
21948
cristy8b350f62009-11-15 23:12:43 +000021949{ $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 +000021950$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021951if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021952 $as_echo_n "(cached) " >&6
21953else
cristy8b350f62009-11-15 23:12:43 +000021954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021955/* end confdefs.h. */
21956#include <sys/types.h>
21957#include <sys/time.h>
21958#include <time.h>
21959
21960int
21961main ()
21962{
21963if ((struct tm *) 0)
21964return 0;
21965 ;
21966 return 0;
21967}
21968_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021969if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021970 ac_cv_header_time=yes
21971else
cristy8b350f62009-11-15 23:12:43 +000021972 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000021973fi
cristy3ed852e2009-09-05 21:47:34 +000021974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21975fi
cristy8b350f62009-11-15 23:12:43 +000021976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000021977$as_echo "$ac_cv_header_time" >&6; }
21978if test $ac_cv_header_time = yes; then
21979
cristy8b350f62009-11-15 23:12:43 +000021980$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021981
21982fi
21983
cristy8b350f62009-11-15 23:12:43 +000021984{ $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 +000021985$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021986if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021987 $as_echo_n "(cached) " >&6
21988else
cristy8b350f62009-11-15 23:12:43 +000021989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021990/* end confdefs.h. */
21991#include <sys/types.h>
21992#include <time.h>
21993
21994int
21995main ()
21996{
21997struct tm tm;
21998 int *p = &tm.tm_sec;
21999 return !p;
22000 ;
22001 return 0;
22002}
22003_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022004if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022005 ac_cv_struct_tm=time.h
22006else
cristy8b350f62009-11-15 23:12:43 +000022007 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000022008fi
cristy3ed852e2009-09-05 21:47:34 +000022009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22010fi
cristy8b350f62009-11-15 23:12:43 +000022011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000022012$as_echo "$ac_cv_struct_tm" >&6; }
22013if test $ac_cv_struct_tm = sys/time.h; then
22014
cristy8b350f62009-11-15 23:12:43 +000022015$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022016
22017fi
22018
cristy92703d82010-04-26 00:18:18 +000022019ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
22020#include <$ac_cv_struct_tm>
22021
22022"
cristyda16f162011-02-19 23:52:17 +000022023if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022024
22025cat >>confdefs.h <<_ACEOF
22026#define HAVE_STRUCT_TM_TM_ZONE 1
22027_ACEOF
22028
22029
22030fi
22031
22032if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22033
22034$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
22035
22036else
22037 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
22038"
cristyda16f162011-02-19 23:52:17 +000022039if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022040 ac_have_decl=1
22041else
22042 ac_have_decl=0
22043fi
22044
22045cat >>confdefs.h <<_ACEOF
22046#define HAVE_DECL_TZNAME $ac_have_decl
22047_ACEOF
22048
22049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
22050$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022051if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000022052 $as_echo_n "(cached) " >&6
22053else
22054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22055/* end confdefs.h. */
22056#include <time.h>
22057#if !HAVE_DECL_TZNAME
22058extern char *tzname[];
22059#endif
22060
22061int
22062main ()
22063{
22064return tzname[0][0];
22065 ;
22066 return 0;
22067}
22068_ACEOF
22069if ac_fn_c_try_link "$LINENO"; then :
22070 ac_cv_var_tzname=yes
22071else
22072 ac_cv_var_tzname=no
22073fi
22074rm -f core conftest.err conftest.$ac_objext \
22075 conftest$ac_exeext conftest.$ac_ext
22076fi
22077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
22078$as_echo "$ac_cv_var_tzname" >&6; }
22079 if test $ac_cv_var_tzname = yes; then
22080
22081$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
22082
22083 fi
22084fi
22085
cristy8b350f62009-11-15 23:12:43 +000022086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000022087$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022088if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022089 $as_echo_n "(cached) " >&6
22090else
22091 echo '#! /bin/cat
22092exit 69
22093' >conftest
22094chmod u+x conftest
22095(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
22096if test $? -ne 69; then
22097 ac_cv_sys_interpreter=yes
22098else
22099 ac_cv_sys_interpreter=no
22100fi
22101rm -f conftest
22102fi
cristy8b350f62009-11-15 23:12:43 +000022103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000022104$as_echo "$ac_cv_sys_interpreter" >&6; }
22105interpval=$ac_cv_sys_interpreter
22106
22107
cristye80f9cb2013-01-09 01:09:31 +000022108#
22109# Checks for language qualifiers and semantics.
22110#
22111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
22112$as_echo_n "checking whether char is unsigned... " >&6; }
22113if ${ac_cv_c_char_unsigned+:} false; then :
22114 $as_echo_n "(cached) " >&6
22115else
22116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22117/* end confdefs.h. */
22118$ac_includes_default
22119int
22120main ()
22121{
22122static int test_array [1 - 2 * !(((char) -1) < 0)];
22123test_array [0] = 0;
22124return test_array [0];
22125
22126 ;
22127 return 0;
22128}
22129_ACEOF
22130if ac_fn_c_try_compile "$LINENO"; then :
22131 ac_cv_c_char_unsigned=no
22132else
22133 ac_cv_c_char_unsigned=yes
22134fi
22135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22136fi
22137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
22138$as_echo "$ac_cv_c_char_unsigned" >&6; }
22139if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
22140 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
22141
22142fi
22143
22144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
22145$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
22146if ${ac_cv_c_const+:} false; then :
22147 $as_echo_n "(cached) " >&6
22148else
22149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22150/* end confdefs.h. */
22151
22152int
22153main ()
22154{
22155
22156#ifndef __cplusplus
22157 /* Ultrix mips cc rejects this sort of thing. */
22158 typedef int charset[2];
22159 const charset cs = { 0, 0 };
22160 /* SunOS 4.1.1 cc rejects this. */
22161 char const *const *pcpcc;
22162 char **ppc;
22163 /* NEC SVR4.0.2 mips cc rejects this. */
22164 struct point {int x, y;};
22165 static struct point const zero = {0,0};
22166 /* AIX XL C 1.02.0.0 rejects this.
22167 It does not let you subtract one const X* pointer from another in
22168 an arm of an if-expression whose if-part is not a constant
22169 expression */
22170 const char *g = "string";
22171 pcpcc = &g + (g ? g-g : 0);
22172 /* HPUX 7.0 cc rejects these. */
22173 ++pcpcc;
22174 ppc = (char**) pcpcc;
22175 pcpcc = (char const *const *) ppc;
22176 { /* SCO 3.2v4 cc rejects this sort of thing. */
22177 char tx;
22178 char *t = &tx;
22179 char const *s = 0 ? (char *) 0 : (char const *) 0;
22180
22181 *t++ = 0;
22182 if (s) return 0;
22183 }
22184 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22185 int x[] = {25, 17};
22186 const int *foo = &x[0];
22187 ++foo;
22188 }
22189 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22190 typedef const int *iptr;
22191 iptr p = 0;
22192 ++p;
22193 }
22194 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
22195 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22196 struct s { int j; const int *ap[3]; } bx;
22197 struct s *b = &bx; b->j = 5;
22198 }
22199 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22200 const int foo = 10;
22201 if (!foo) return 0;
22202 }
22203 return !cs[0] && !zero.x;
22204#endif
22205
22206 ;
22207 return 0;
22208}
22209_ACEOF
22210if ac_fn_c_try_compile "$LINENO"; then :
22211 ac_cv_c_const=yes
22212else
22213 ac_cv_c_const=no
22214fi
22215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22216fi
22217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
22218$as_echo "$ac_cv_c_const" >&6; }
22219if test $ac_cv_c_const = no; then
22220
22221$as_echo "#define const /**/" >>confdefs.h
22222
22223fi
22224
cristy8b350f62009-11-15 23:12:43 +000022225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022226$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022227if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022228 $as_echo_n "(cached) " >&6
22229else
22230 ac_cv_c_inline=no
22231for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000022232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022233/* end confdefs.h. */
22234#ifndef __cplusplus
22235typedef int foo_t;
22236static $ac_kw foo_t static_foo () {return 0; }
22237$ac_kw foo_t foo () {return 0; }
22238#endif
22239
22240_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022241if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022242 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022243fi
cristy3ed852e2009-09-05 21:47:34 +000022244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22245 test "$ac_cv_c_inline" != no && break
22246done
22247
22248fi
cristy8b350f62009-11-15 23:12:43 +000022249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022250$as_echo "$ac_cv_c_inline" >&6; }
22251
cristy3ed852e2009-09-05 21:47:34 +000022252case $ac_cv_c_inline in
22253 inline | yes) ;;
22254 *)
22255 case $ac_cv_c_inline in
22256 no) ac_val=;;
22257 *) ac_val=$ac_cv_c_inline;;
22258 esac
22259 cat >>confdefs.h <<_ACEOF
22260#ifndef __cplusplus
22261#define inline $ac_val
22262#endif
22263_ACEOF
22264 ;;
22265esac
22266
cristy8b350f62009-11-15 23:12:43 +000022267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000022268$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022269if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022270 $as_echo_n "(cached) " >&6
22271else
22272 ac_cv_c_restrict=no
22273 # The order here caters to the fact that C++ does not require restrict.
22274 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000022275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022276/* end confdefs.h. */
22277typedef int * int_ptr;
22278 int foo (int_ptr $ac_kw ip) {
22279 return ip[0];
22280 }
22281int
22282main ()
22283{
22284int s[1];
22285 int * $ac_kw t = s;
22286 t[0] = 0;
22287 return foo(t)
22288 ;
22289 return 0;
22290}
22291_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022292if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022293 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022294fi
cristy3ed852e2009-09-05 21:47:34 +000022295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22296 test "$ac_cv_c_restrict" != no && break
22297 done
22298
22299fi
cristy8b350f62009-11-15 23:12:43 +000022300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000022301$as_echo "$ac_cv_c_restrict" >&6; }
22302
cristy3ed852e2009-09-05 21:47:34 +000022303 case $ac_cv_c_restrict in
22304 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000022305 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022306 ;;
22307 *) cat >>confdefs.h <<_ACEOF
22308#define restrict $ac_cv_c_restrict
22309_ACEOF
22310 ;;
22311 esac
22312
cristye80f9cb2013-01-09 01:09:31 +000022313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
22314$as_echo_n "checking for working volatile... " >&6; }
22315if ${ac_cv_c_volatile+:} false; then :
22316 $as_echo_n "(cached) " >&6
22317else
22318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22319/* end confdefs.h. */
22320
22321int
22322main ()
22323{
22324
22325volatile int x;
22326int * volatile y = (int *) 0;
22327return !x && !y;
22328 ;
22329 return 0;
22330}
22331_ACEOF
22332if ac_fn_c_try_compile "$LINENO"; then :
22333 ac_cv_c_volatile=yes
22334else
22335 ac_cv_c_volatile=no
22336fi
22337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22338fi
22339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
22340$as_echo "$ac_cv_c_volatile" >&6; }
22341if test $ac_cv_c_volatile = no; then
22342
22343$as_echo "#define volatile /**/" >>confdefs.h
22344
22345fi
22346
cristy3ed852e2009-09-05 21:47:34 +000022347
22348# If words are stored with the most significant byte first (like
22349# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000022350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022351$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022352if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022353 $as_echo_n "(cached) " >&6
22354else
22355 ac_cv_c_bigendian=unknown
22356 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000022357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022358/* end confdefs.h. */
22359#ifndef __APPLE_CC__
22360 not a universal capable compiler
22361 #endif
22362 typedef int dummy;
22363
22364_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022365if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022366
22367 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000022368 # there are at least two -arch flags with different values.
22369 ac_arch=
22370 ac_prev=
22371 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22372 if test -n "$ac_prev"; then
22373 case $ac_word in
22374 i?86 | x86_64 | ppc | ppc64)
22375 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22376 ac_arch=$ac_word
22377 else
22378 ac_cv_c_bigendian=universal
22379 break
22380 fi
22381 ;;
22382 esac
22383 ac_prev=
22384 elif test "x$ac_word" = "x-arch"; then
22385 ac_prev=arch
22386 fi
22387 done
cristy3ed852e2009-09-05 21:47:34 +000022388fi
cristy3ed852e2009-09-05 21:47:34 +000022389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22390 if test $ac_cv_c_bigendian = unknown; then
22391 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000022392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022393/* end confdefs.h. */
22394#include <sys/types.h>
22395 #include <sys/param.h>
22396
22397int
22398main ()
22399{
22400#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22401 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22402 && LITTLE_ENDIAN)
22403 bogus endian macros
22404 #endif
22405
22406 ;
22407 return 0;
22408}
22409_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022410if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022411 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022413/* end confdefs.h. */
22414#include <sys/types.h>
22415 #include <sys/param.h>
22416
22417int
22418main ()
22419{
22420#if BYTE_ORDER != BIG_ENDIAN
22421 not big endian
22422 #endif
22423
22424 ;
22425 return 0;
22426}
22427_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022428if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022429 ac_cv_c_bigendian=yes
22430else
cristy8b350f62009-11-15 23:12:43 +000022431 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022432fi
cristy3ed852e2009-09-05 21:47:34 +000022433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022434fi
cristy3ed852e2009-09-05 21:47:34 +000022435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22436 fi
22437 if test $ac_cv_c_bigendian = unknown; then
22438 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000022439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022440/* end confdefs.h. */
22441#include <limits.h>
22442
22443int
22444main ()
22445{
22446#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22447 bogus endian macros
22448 #endif
22449
22450 ;
22451 return 0;
22452}
22453_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022454if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022455 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022457/* end confdefs.h. */
22458#include <limits.h>
22459
22460int
22461main ()
22462{
22463#ifndef _BIG_ENDIAN
22464 not big endian
22465 #endif
22466
22467 ;
22468 return 0;
22469}
22470_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022471if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022472 ac_cv_c_bigendian=yes
22473else
cristy8b350f62009-11-15 23:12:43 +000022474 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022475fi
cristy3ed852e2009-09-05 21:47:34 +000022476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022477fi
cristy3ed852e2009-09-05 21:47:34 +000022478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22479 fi
22480 if test $ac_cv_c_bigendian = unknown; then
22481 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000022482 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022483 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000022484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022485/* end confdefs.h. */
22486short int ascii_mm[] =
22487 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22488 short int ascii_ii[] =
22489 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22490 int use_ascii (int i) {
22491 return ascii_mm[i] + ascii_ii[i];
22492 }
22493 short int ebcdic_ii[] =
22494 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22495 short int ebcdic_mm[] =
22496 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22497 int use_ebcdic (int i) {
22498 return ebcdic_mm[i] + ebcdic_ii[i];
22499 }
22500 extern int foo;
22501
22502int
22503main ()
22504{
22505return use_ascii (foo) == use_ebcdic (foo);
22506 ;
22507 return 0;
22508}
22509_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022510if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022511 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22512 ac_cv_c_bigendian=yes
22513 fi
22514 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22515 if test "$ac_cv_c_bigendian" = unknown; then
22516 ac_cv_c_bigendian=no
22517 else
22518 # finding both strings is unlikely to happen, but who knows?
22519 ac_cv_c_bigendian=unknown
22520 fi
22521 fi
cristy3ed852e2009-09-05 21:47:34 +000022522fi
cristy3ed852e2009-09-05 21:47:34 +000022523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22524else
cristy8b350f62009-11-15 23:12:43 +000022525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022526/* end confdefs.h. */
22527$ac_includes_default
22528int
22529main ()
22530{
22531
22532 /* Are we little or big endian? From Harbison&Steele. */
22533 union
22534 {
22535 long int l;
22536 char c[sizeof (long int)];
22537 } u;
22538 u.l = 1;
22539 return u.c[sizeof (long int) - 1] == 1;
22540
22541 ;
22542 return 0;
22543}
22544_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022545if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022546 ac_cv_c_bigendian=no
22547else
cristy8b350f62009-11-15 23:12:43 +000022548 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000022549fi
cristy8b350f62009-11-15 23:12:43 +000022550rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22551 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022552fi
22553
cristy3ed852e2009-09-05 21:47:34 +000022554 fi
22555fi
cristy8b350f62009-11-15 23:12:43 +000022556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022557$as_echo "$ac_cv_c_bigendian" >&6; }
22558 case $ac_cv_c_bigendian in #(
22559 yes)
cristy8b350f62009-11-15 23:12:43 +000022560 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022561;; #(
22562 no)
22563 ;; #(
22564 universal)
22565
cristy8b350f62009-11-15 23:12:43 +000022566$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022567
22568 ;; #(
22569 *)
cristy98dddb52010-11-04 00:30:15 +000022570 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000022571 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000022572 esac
22573
22574
cristy501c8042011-05-26 17:46:28 +000022575# Define to a suitable type, if standard headers do not define it.
22576ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
22577case $ac_cv_c_int8_t in #(
22578 no|yes) ;; #(
22579 *)
cristy3ed852e2009-09-05 21:47:34 +000022580
22581cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022582#define int8_t $ac_cv_c_int8_t
22583_ACEOF
22584;;
22585esac
22586
22587ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
22588case $ac_cv_c_int16_t in #(
22589 no|yes) ;; #(
22590 *)
22591
22592cat >>confdefs.h <<_ACEOF
22593#define int16_t $ac_cv_c_int16_t
22594_ACEOF
22595;;
22596esac
22597
22598ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
22599case $ac_cv_c_int32_t in #(
22600 no|yes) ;; #(
22601 *)
22602
22603cat >>confdefs.h <<_ACEOF
22604#define int32_t $ac_cv_c_int32_t
22605_ACEOF
22606;;
22607esac
22608
22609ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
22610case $ac_cv_c_int64_t in #(
22611 no|yes) ;; #(
22612 *)
22613
22614cat >>confdefs.h <<_ACEOF
22615#define int64_t $ac_cv_c_int64_t
22616_ACEOF
22617;;
22618esac
22619
22620
cristy045228a2013-06-23 11:00:16 +000022621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
22622$as_echo_n "checking for unsigned long long int... " >&6; }
22623if ${ac_cv_type_unsigned_long_long_int+:} false; then :
cristy501c8042011-05-26 17:46:28 +000022624 $as_echo_n "(cached) " >&6
22625else
cristy045228a2013-06-23 11:00:16 +000022626 ac_cv_type_unsigned_long_long_int=yes
22627 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
22628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000022629/* end confdefs.h. */
22630
22631 /* For now, do not test the preprocessor; as of 2007 there are too many
cristy5ed9c6e2013-07-14 21:20:31 +000022632 implementations with broken preprocessors. Perhaps this can
22633 be revisited in 2012. In the meantime, code should not expect
22634 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000022635 /* Test literals. */
22636 long long int ll = 9223372036854775807ll;
22637 long long int nll = -9223372036854775807LL;
22638 unsigned long long int ull = 18446744073709551615ULL;
22639 /* Test constant expressions. */
22640 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristy5ed9c6e2013-07-14 21:20:31 +000022641 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000022642 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristy5ed9c6e2013-07-14 21:20:31 +000022643 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000022644 int i = 63;
22645int
22646main ()
22647{
22648/* Test availability of runtime routines for shift and division. */
22649 long long int llmax = 9223372036854775807ll;
22650 unsigned long long int ullmax = 18446744073709551615ull;
22651 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristy5ed9c6e2013-07-14 21:20:31 +000022652 | (llmax / ll) | (llmax % ll)
22653 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22654 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000022655 ;
22656 return 0;
22657}
22658
22659_ACEOF
22660if ac_fn_c_try_link "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000022661
22662else
22663 ac_cv_type_unsigned_long_long_int=no
22664fi
22665rm -f core conftest.err conftest.$ac_objext \
22666 conftest$ac_exeext conftest.$ac_ext
22667 fi
22668fi
22669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
22670$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
22671 if test $ac_cv_type_unsigned_long_long_int = yes; then
22672
22673$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
22674
22675 fi
22676
22677
22678
22679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22680$as_echo_n "checking for long long int... " >&6; }
22681if ${ac_cv_type_long_long_int+:} false; then :
22682 $as_echo_n "(cached) " >&6
22683else
cristy501c8042011-05-26 17:46:28 +000022684 ac_cv_type_long_long_int=yes
cristy045228a2013-06-23 11:00:16 +000022685 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
cristy5ed9c6e2013-07-14 21:20:31 +000022686 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
22687 if test $ac_cv_type_long_long_int = yes; then
22688 if test "$cross_compiling" = yes; then :
cristy045228a2013-06-23 11:00:16 +000022689 :
cristy501c8042011-05-26 17:46:28 +000022690else
22691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22692/* end confdefs.h. */
22693#include <limits.h>
cristy5ed9c6e2013-07-14 21:20:31 +000022694 #ifndef LLONG_MAX
22695 # define HALF \
22696 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22697 # define LLONG_MAX (HALF - 1 + HALF)
22698 #endif
cristy501c8042011-05-26 17:46:28 +000022699int
22700main ()
22701{
22702long long int n = 1;
cristy5ed9c6e2013-07-14 21:20:31 +000022703 int i;
22704 for (i = 0; ; i++)
22705 {
22706 long long int m = n << i;
22707 if (m >> i != n)
22708 return 1;
22709 if (LLONG_MAX / 2 < m)
22710 break;
22711 }
22712 return 0;
cristy501c8042011-05-26 17:46:28 +000022713 ;
22714 return 0;
22715}
22716_ACEOF
22717if ac_fn_c_try_run "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000022718
cristy501c8042011-05-26 17:46:28 +000022719else
22720 ac_cv_type_long_long_int=no
22721fi
22722rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22723 conftest.$ac_objext conftest.beam conftest.$ac_ext
22724fi
22725
cristy5ed9c6e2013-07-14 21:20:31 +000022726 fi
cristy045228a2013-06-23 11:00:16 +000022727 fi
cristy501c8042011-05-26 17:46:28 +000022728fi
22729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22730$as_echo "$ac_cv_type_long_long_int" >&6; }
22731 if test $ac_cv_type_long_long_int = yes; then
22732
22733$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22734
22735 fi
22736
22737
22738
22739 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
22740if test "x$ac_cv_type_intmax_t" = xyes; then :
22741
22742$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
22743
22744else
22745 test $ac_cv_type_long_long_int = yes \
22746 && ac_type='long long int' \
22747 || ac_type='long int'
22748
22749cat >>confdefs.h <<_ACEOF
22750#define intmax_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022751_ACEOF
22752
22753fi
22754
22755
cristy501c8042011-05-26 17:46:28 +000022756
22757 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
22758if test "x$ac_cv_type_intptr_t" = xyes; then :
22759
22760$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022761
cristy3ed852e2009-09-05 21:47:34 +000022762else
cristy501c8042011-05-26 17:46:28 +000022763 for ac_type in 'int' 'long int' 'long long int'; do
22764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22765/* end confdefs.h. */
22766$ac_includes_default
22767int
22768main ()
22769{
22770static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000022771test_array [0] = 0;
22772return test_array [0];
cristy501c8042011-05-26 17:46:28 +000022773
22774 ;
22775 return 0;
22776}
22777_ACEOF
22778if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022779
22780cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022781#define intptr_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022782_ACEOF
22783
cristy501c8042011-05-26 17:46:28 +000022784 ac_type=
22785fi
22786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22787 test -z "$ac_type" && break
22788 done
cristy3ed852e2009-09-05 21:47:34 +000022789fi
22790
22791
cristy3ed852e2009-09-05 21:47:34 +000022792
cristy501c8042011-05-26 17:46:28 +000022793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
22794$as_echo_n "checking for long double... " >&6; }
22795if ${ac_cv_type_long_double+:} false; then :
22796 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +000022797else
cristy501c8042011-05-26 17:46:28 +000022798 if test "$GCC" = yes; then
22799 ac_cv_type_long_double=yes
22800 else
22801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22802/* end confdefs.h. */
22803/* The Stardent Vistra knows sizeof (long double), but does
22804 not support it. */
22805 long double foo = 0.0L;
22806int
22807main ()
22808{
22809static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
22810 sizeof (double) <= sizeof (long double))];
cristy14fefe52012-05-21 00:59:18 +000022811test_array [0] = 0;
22812return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000022813
cristy501c8042011-05-26 17:46:28 +000022814 ;
22815 return 0;
22816}
cristy3ed852e2009-09-05 21:47:34 +000022817_ACEOF
cristy501c8042011-05-26 17:46:28 +000022818if ac_fn_c_try_compile "$LINENO"; then :
22819 ac_cv_type_long_double=yes
cristy3ed852e2009-09-05 21:47:34 +000022820else
cristy501c8042011-05-26 17:46:28 +000022821 ac_cv_type_long_double=no
cristy3ed852e2009-09-05 21:47:34 +000022822fi
cristy501c8042011-05-26 17:46:28 +000022823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22824 fi
cristy3ed852e2009-09-05 21:47:34 +000022825fi
cristy501c8042011-05-26 17:46:28 +000022826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
22827$as_echo "$ac_cv_type_long_double" >&6; }
22828 if test $ac_cv_type_long_double = yes; then
cristy3ed852e2009-09-05 21:47:34 +000022829
cristy501c8042011-05-26 17:46:28 +000022830$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022831
cristy501c8042011-05-26 17:46:28 +000022832 fi
22833
cristy3ed852e2009-09-05 21:47:34 +000022834
cristy8b350f62009-11-15 23:12:43 +000022835 { $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 +000022836$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022837if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022838 $as_echo_n "(cached) " >&6
22839else
cristy8b350f62009-11-15 23:12:43 +000022840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022841/* end confdefs.h. */
22842#include <float.h>
22843 long double const a[] =
22844 {
22845 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
22846 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
22847 };
22848 long double
22849 f (long double x)
22850 {
22851 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
22852 + (x ? f (x) : 'c'));
22853 }
22854
22855int
22856main ()
22857{
22858static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
22859 + (DBL_MANT_DIG < LDBL_MANT_DIG)
22860 - (LDBL_MAX_EXP < DBL_MAX_EXP)
22861 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
22862 && (int) LDBL_EPSILON == 0
22863 )];
cristy14fefe52012-05-21 00:59:18 +000022864test_array [0] = 0;
22865return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000022866
22867 ;
22868 return 0;
22869}
22870_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022871if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022872 ac_cv_type_long_double_wider=yes
22873else
cristy8b350f62009-11-15 23:12:43 +000022874 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000022875fi
cristy3ed852e2009-09-05 21:47:34 +000022876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22877fi
cristy8b350f62009-11-15 23:12:43 +000022878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000022879$as_echo "$ac_cv_type_long_double_wider" >&6; }
22880 if test $ac_cv_type_long_double_wider = yes; then
22881
cristy8b350f62009-11-15 23:12:43 +000022882$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022883
22884 fi
22885
22886
cristy045228a2013-06-23 11:00:16 +000022887
cristy501c8042011-05-26 17:46:28 +000022888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22889$as_echo_n "checking for long long int... " >&6; }
22890if ${ac_cv_type_long_long_int+:} false; then :
22891 $as_echo_n "(cached) " >&6
22892else
cristy501c8042011-05-26 17:46:28 +000022893 ac_cv_type_long_long_int=yes
cristy045228a2013-06-23 11:00:16 +000022894 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
cristy5ed9c6e2013-07-14 21:20:31 +000022895 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
22896 if test $ac_cv_type_long_long_int = yes; then
22897 if test "$cross_compiling" = yes; then :
cristy045228a2013-06-23 11:00:16 +000022898 :
cristy501c8042011-05-26 17:46:28 +000022899else
22900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22901/* end confdefs.h. */
22902#include <limits.h>
cristy5ed9c6e2013-07-14 21:20:31 +000022903 #ifndef LLONG_MAX
22904 # define HALF \
22905 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22906 # define LLONG_MAX (HALF - 1 + HALF)
22907 #endif
cristy501c8042011-05-26 17:46:28 +000022908int
22909main ()
22910{
22911long long int n = 1;
cristy5ed9c6e2013-07-14 21:20:31 +000022912 int i;
22913 for (i = 0; ; i++)
22914 {
22915 long long int m = n << i;
22916 if (m >> i != n)
22917 return 1;
22918 if (LLONG_MAX / 2 < m)
22919 break;
22920 }
22921 return 0;
cristy501c8042011-05-26 17:46:28 +000022922 ;
22923 return 0;
22924}
22925_ACEOF
22926if ac_fn_c_try_run "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000022927
cristy501c8042011-05-26 17:46:28 +000022928else
22929 ac_cv_type_long_long_int=no
22930fi
22931rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22932 conftest.$ac_objext conftest.beam conftest.$ac_ext
22933fi
22934
cristy5ed9c6e2013-07-14 21:20:31 +000022935 fi
cristy045228a2013-06-23 11:00:16 +000022936 fi
cristy501c8042011-05-26 17:46:28 +000022937fi
22938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22939$as_echo "$ac_cv_type_long_long_int" >&6; }
22940 if test $ac_cv_type_long_long_int = yes; then
22941
22942$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22943
22944 fi
22945
22946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
22947$as_echo_n "checking for mbstate_t... " >&6; }
22948if ${ac_cv_type_mbstate_t+:} false; then :
22949 $as_echo_n "(cached) " >&6
22950else
22951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22952/* end confdefs.h. */
22953$ac_includes_default
22954# include <wchar.h>
22955int
22956main ()
22957{
22958mbstate_t x; return sizeof x;
22959 ;
22960 return 0;
22961}
22962_ACEOF
22963if ac_fn_c_try_compile "$LINENO"; then :
22964 ac_cv_type_mbstate_t=yes
22965else
22966 ac_cv_type_mbstate_t=no
22967fi
22968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22969fi
22970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
22971$as_echo "$ac_cv_type_mbstate_t" >&6; }
22972 if test $ac_cv_type_mbstate_t = yes; then
22973
22974$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
22975
22976 else
22977
22978$as_echo "#define mbstate_t int" >>confdefs.h
22979
22980 fi
22981ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
22982if test "x$ac_cv_type_mode_t" = xyes; then :
22983
22984else
22985
22986cat >>confdefs.h <<_ACEOF
22987#define mode_t int
22988_ACEOF
22989
22990fi
22991
22992ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
22993if test "x$ac_cv_type_off_t" = xyes; then :
22994
22995else
22996
22997cat >>confdefs.h <<_ACEOF
22998#define off_t long int
22999_ACEOF
23000
23001fi
23002
23003ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
23004if test "x$ac_cv_type_pid_t" = xyes; then :
23005
23006else
23007
23008cat >>confdefs.h <<_ACEOF
23009#define pid_t int
23010_ACEOF
23011
23012fi
23013
23014ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
23015if test "x$ac_cv_type_size_t" = xyes; then :
23016
23017else
23018
23019cat >>confdefs.h <<_ACEOF
23020#define size_t unsigned int
23021_ACEOF
23022
23023fi
23024
23025ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23026if test "x$ac_cv_type_ssize_t" = xyes; then :
23027
23028else
23029
23030cat >>confdefs.h <<_ACEOF
23031#define ssize_t int
23032_ACEOF
23033
23034fi
23035
23036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
23037$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
23038if ${ac_cv_type_uid_t+:} false; then :
23039 $as_echo_n "(cached) " >&6
23040else
23041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23042/* end confdefs.h. */
23043#include <sys/types.h>
23044
23045_ACEOF
23046if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23047 $EGREP "uid_t" >/dev/null 2>&1; then :
23048 ac_cv_type_uid_t=yes
23049else
23050 ac_cv_type_uid_t=no
23051fi
23052rm -f conftest*
23053
23054fi
23055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
23056$as_echo "$ac_cv_type_uid_t" >&6; }
23057if test $ac_cv_type_uid_t = no; then
23058
23059$as_echo "#define uid_t int" >>confdefs.h
23060
23061
23062$as_echo "#define gid_t int" >>confdefs.h
23063
23064fi
23065
23066ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
23067case $ac_cv_c_uint8_t in #(
23068 no|yes) ;; #(
23069 *)
23070
23071$as_echo "#define _UINT8_T 1" >>confdefs.h
23072
23073
23074cat >>confdefs.h <<_ACEOF
23075#define uint8_t $ac_cv_c_uint8_t
23076_ACEOF
23077;;
23078 esac
23079
23080ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
23081case $ac_cv_c_uint16_t in #(
23082 no|yes) ;; #(
23083 *)
23084
23085
23086cat >>confdefs.h <<_ACEOF
23087#define uint16_t $ac_cv_c_uint16_t
23088_ACEOF
23089;;
23090 esac
23091
23092ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
23093case $ac_cv_c_uint32_t in #(
23094 no|yes) ;; #(
23095 *)
23096
23097$as_echo "#define _UINT32_T 1" >>confdefs.h
23098
23099
23100cat >>confdefs.h <<_ACEOF
23101#define uint32_t $ac_cv_c_uint32_t
23102_ACEOF
23103;;
23104 esac
23105
23106ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
23107case $ac_cv_c_uint64_t in #(
23108 no|yes) ;; #(
23109 *)
23110
23111$as_echo "#define _UINT64_T 1" >>confdefs.h
23112
23113
23114cat >>confdefs.h <<_ACEOF
23115#define uint64_t $ac_cv_c_uint64_t
23116_ACEOF
23117;;
23118 esac
23119
23120
cristy501c8042011-05-26 17:46:28 +000023121
23122 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
23123if test "x$ac_cv_type_uintmax_t" = xyes; then :
23124
23125$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
23126
23127else
23128 test $ac_cv_type_unsigned_long_long_int = yes \
23129 && ac_type='unsigned long long int' \
23130 || ac_type='unsigned long int'
23131
23132cat >>confdefs.h <<_ACEOF
23133#define uintmax_t $ac_type
23134_ACEOF
23135
23136fi
23137
23138
23139
23140 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23141if test "x$ac_cv_type_uintptr_t" = xyes; then :
23142
23143$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
23144
23145else
23146 for ac_type in 'unsigned int' 'unsigned long int' \
23147 'unsigned long long int'; do
23148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23149/* end confdefs.h. */
23150$ac_includes_default
23151int
23152main ()
23153{
23154static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000023155test_array [0] = 0;
23156return test_array [0];
cristy501c8042011-05-26 17:46:28 +000023157
23158 ;
23159 return 0;
23160}
23161_ACEOF
23162if ac_fn_c_try_compile "$LINENO"; then :
23163
23164cat >>confdefs.h <<_ACEOF
23165#define uintptr_t $ac_type
23166_ACEOF
23167
23168 ac_type=
23169fi
23170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23171 test -z "$ac_type" && break
23172 done
23173fi
23174
23175
23176
23177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23178$as_echo_n "checking for unsigned long long int... " >&6; }
23179if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23180 $as_echo_n "(cached) " >&6
23181else
cristy045228a2013-06-23 11:00:16 +000023182 ac_cv_type_unsigned_long_long_int=yes
23183 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
23184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000023185/* end confdefs.h. */
23186
23187 /* For now, do not test the preprocessor; as of 2007 there are too many
cristy5ed9c6e2013-07-14 21:20:31 +000023188 implementations with broken preprocessors. Perhaps this can
23189 be revisited in 2012. In the meantime, code should not expect
23190 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000023191 /* Test literals. */
23192 long long int ll = 9223372036854775807ll;
23193 long long int nll = -9223372036854775807LL;
23194 unsigned long long int ull = 18446744073709551615ULL;
23195 /* Test constant expressions. */
23196 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristy5ed9c6e2013-07-14 21:20:31 +000023197 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023198 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristy5ed9c6e2013-07-14 21:20:31 +000023199 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023200 int i = 63;
23201int
23202main ()
23203{
23204/* Test availability of runtime routines for shift and division. */
23205 long long int llmax = 9223372036854775807ll;
23206 unsigned long long int ullmax = 18446744073709551615ull;
23207 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristy5ed9c6e2013-07-14 21:20:31 +000023208 | (llmax / ll) | (llmax % ll)
23209 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23210 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000023211 ;
23212 return 0;
23213}
23214
23215_ACEOF
23216if ac_fn_c_try_link "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000023217
cristy501c8042011-05-26 17:46:28 +000023218else
23219 ac_cv_type_unsigned_long_long_int=no
23220fi
23221rm -f core conftest.err conftest.$ac_objext \
23222 conftest$ac_exeext conftest.$ac_ext
cristy045228a2013-06-23 11:00:16 +000023223 fi
cristy501c8042011-05-26 17:46:28 +000023224fi
23225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23226$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23227 if test $ac_cv_type_unsigned_long_long_int = yes; then
23228
23229$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23230
23231 fi
23232
23233
cristyfec31822013-05-23 12:32:12 +000023234# Float_t and double_t are intended to be the the most efficient type.
23235ac_fn_c_check_type "$LINENO" "float_t" "ac_cv_type_float_t" "#include <math.h>
23236"
23237if test "x$ac_cv_type_float_t" = xyes; then :
23238
23239cat >>confdefs.h <<_ACEOF
23240#define HAVE_FLOAT_T 1
23241_ACEOF
23242
23243
23244fi
23245
23246ac_fn_c_check_type "$LINENO" "double_t" "ac_cv_type_double_t" "#include <math.h>
23247"
23248if test "x$ac_cv_type_double_t" = xyes; then :
23249
23250cat >>confdefs.h <<_ACEOF
23251#define HAVE_DOUBLE_T 1
23252_ACEOF
23253
23254
23255fi
23256
23257# The cast to long int works around a bug in the HP C Compiler
23258# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23259# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23260# This bug is HP SR number 8606223364.
23261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float_t" >&5
23262$as_echo_n "checking size of float_t... " >&6; }
23263if ${ac_cv_sizeof_float_t+:} false; then :
23264 $as_echo_n "(cached) " >&6
23265else
23266 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float_t))" "ac_cv_sizeof_float_t" "#include <math.h>
23267"; then :
23268
23269else
23270 if test "$ac_cv_type_float_t" = yes; then
23271 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23272$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23273as_fn_error 77 "cannot compute sizeof (float_t)
23274See \`config.log' for more details" "$LINENO" 5; }
23275 else
23276 ac_cv_sizeof_float_t=0
23277 fi
23278fi
23279
23280fi
23281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float_t" >&5
23282$as_echo "$ac_cv_sizeof_float_t" >&6; }
23283
23284
23285
23286cat >>confdefs.h <<_ACEOF
23287#define SIZEOF_FLOAT_T $ac_cv_sizeof_float_t
23288_ACEOF
23289
23290
23291# The cast to long int works around a bug in the HP C Compiler
23292# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23293# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23294# This bug is HP SR number 8606223364.
23295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double_t" >&5
23296$as_echo_n "checking size of double_t... " >&6; }
23297if ${ac_cv_sizeof_double_t+:} false; then :
23298 $as_echo_n "(cached) " >&6
23299else
23300 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double_t))" "ac_cv_sizeof_double_t" "#include <math.h>
23301"; then :
23302
23303else
23304 if test "$ac_cv_type_double_t" = yes; then
23305 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23306$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23307as_fn_error 77 "cannot compute sizeof (double_t)
23308See \`config.log' for more details" "$LINENO" 5; }
23309 else
23310 ac_cv_sizeof_double_t=0
23311 fi
23312fi
23313
23314fi
23315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double_t" >&5
23316$as_echo "$ac_cv_sizeof_double_t" >&6; }
23317
23318
23319
23320cat >>confdefs.h <<_ACEOF
23321#define SIZEOF_DOUBLE_T $ac_cv_sizeof_double_t
23322_ACEOF
23323
23324
23325
cristy9b86f202012-11-28 21:55:35 +000023326# Get size of float, double and long double for comparaison.
23327# The cast to long int works around a bug in the HP C Compiler
23328# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23329# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23330# This bug is HP SR number 8606223364.
23331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
23332$as_echo_n "checking size of float... " >&6; }
23333if ${ac_cv_sizeof_float+:} false; then :
23334 $as_echo_n "(cached) " >&6
23335else
23336 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
23337
23338else
23339 if test "$ac_cv_type_float" = yes; then
23340 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23341$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23342as_fn_error 77 "cannot compute sizeof (float)
23343See \`config.log' for more details" "$LINENO" 5; }
23344 else
23345 ac_cv_sizeof_float=0
23346 fi
23347fi
23348
23349fi
23350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
23351$as_echo "$ac_cv_sizeof_float" >&6; }
23352
23353
23354
23355cat >>confdefs.h <<_ACEOF
23356#define SIZEOF_FLOAT $ac_cv_sizeof_float
23357_ACEOF
23358
23359
23360# The cast to long int works around a bug in the HP C Compiler
23361# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23362# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23363# This bug is HP SR number 8606223364.
23364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
23365$as_echo_n "checking size of double... " >&6; }
23366if ${ac_cv_sizeof_double+:} false; then :
23367 $as_echo_n "(cached) " >&6
23368else
23369 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
23370
23371else
23372 if test "$ac_cv_type_double" = yes; then
23373 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23374$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23375as_fn_error 77 "cannot compute sizeof (double)
23376See \`config.log' for more details" "$LINENO" 5; }
23377 else
23378 ac_cv_sizeof_double=0
23379 fi
23380fi
23381
23382fi
23383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
23384$as_echo "$ac_cv_sizeof_double" >&6; }
23385
23386
23387
23388cat >>confdefs.h <<_ACEOF
23389#define SIZEOF_DOUBLE $ac_cv_sizeof_double
23390_ACEOF
23391
23392
cristyfec31822013-05-23 12:32:12 +000023393# The cast to long int works around a bug in the HP C Compiler
23394# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23395# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23396# This bug is HP SR number 8606223364.
23397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
23398$as_echo_n "checking size of long double... " >&6; }
23399if ${ac_cv_sizeof_long_double+:} false; then :
23400 $as_echo_n "(cached) " >&6
23401else
23402 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
23403
23404else
23405 if test "$ac_cv_type_long_double" = yes; then
23406 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23407$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23408as_fn_error 77 "cannot compute sizeof (long double)
23409See \`config.log' for more details" "$LINENO" 5; }
23410 else
23411 ac_cv_sizeof_long_double=0
23412 fi
23413fi
23414
23415fi
23416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
23417$as_echo "$ac_cv_sizeof_long_double" >&6; }
23418
23419
23420
23421cat >>confdefs.h <<_ACEOF
23422#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
23423_ACEOF
23424
23425
cristyf0cf9a22012-10-24 12:05:01 +000023426
cristy3ed852e2009-09-05 21:47:34 +000023427# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
23428# The cast to long int works around a bug in the HP C Compiler
23429# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23430# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23431# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023433$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023434if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023435 $as_echo_n "(cached) " >&6
23436else
cristy8b350f62009-11-15 23:12:43 +000023437 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 +000023438
cristy3ed852e2009-09-05 21:47:34 +000023439else
cristy8b350f62009-11-15 23:12:43 +000023440 if test "$ac_cv_type_signed_short" = yes; then
23441 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023442$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023443as_fn_error 77 "cannot compute sizeof (signed short)
23444See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023445 else
23446 ac_cv_sizeof_signed_short=0
23447 fi
23448fi
cristy8b350f62009-11-15 23:12:43 +000023449
cristy3ed852e2009-09-05 21:47:34 +000023450fi
cristy8b350f62009-11-15 23:12:43 +000023451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023452$as_echo "$ac_cv_sizeof_signed_short" >&6; }
23453
23454
23455
23456cat >>confdefs.h <<_ACEOF
23457#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
23458_ACEOF
23459
23460
23461
23462# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
23463# The cast to long int works around a bug in the HP C Compiler
23464# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23465# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23466# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023468$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023469if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023470 $as_echo_n "(cached) " >&6
23471else
cristy8b350f62009-11-15 23:12:43 +000023472 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 +000023473
cristy3ed852e2009-09-05 21:47:34 +000023474else
cristy8b350f62009-11-15 23:12:43 +000023475 if test "$ac_cv_type_unsigned_short" = yes; then
23476 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023477$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023478as_fn_error 77 "cannot compute sizeof (unsigned short)
23479See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023480 else
23481 ac_cv_sizeof_unsigned_short=0
23482 fi
23483fi
cristy8b350f62009-11-15 23:12:43 +000023484
cristy3ed852e2009-09-05 21:47:34 +000023485fi
cristy8b350f62009-11-15 23:12:43 +000023486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023487$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
23488
23489
23490
23491cat >>confdefs.h <<_ACEOF
23492#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
23493_ACEOF
23494
23495
23496
23497# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
23498# The cast to long int works around a bug in the HP C Compiler
23499# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23500# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23501# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023503$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023504if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023505 $as_echo_n "(cached) " >&6
23506else
cristy8b350f62009-11-15 23:12:43 +000023507 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 +000023508
cristy3ed852e2009-09-05 21:47:34 +000023509else
cristy8b350f62009-11-15 23:12:43 +000023510 if test "$ac_cv_type_signed_int" = yes; then
23511 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023512$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023513as_fn_error 77 "cannot compute sizeof (signed int)
23514See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023515 else
23516 ac_cv_sizeof_signed_int=0
23517 fi
23518fi
cristy8b350f62009-11-15 23:12:43 +000023519
cristy3ed852e2009-09-05 21:47:34 +000023520fi
cristy8b350f62009-11-15 23:12:43 +000023521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023522$as_echo "$ac_cv_sizeof_signed_int" >&6; }
23523
23524
23525
23526cat >>confdefs.h <<_ACEOF
23527#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
23528_ACEOF
23529
23530
23531
23532# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
23533# The cast to long int works around a bug in the HP C Compiler
23534# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23535# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23536# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023538$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023539if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023540 $as_echo_n "(cached) " >&6
23541else
cristy8b350f62009-11-15 23:12:43 +000023542 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 +000023543
cristy3ed852e2009-09-05 21:47:34 +000023544else
cristy8b350f62009-11-15 23:12:43 +000023545 if test "$ac_cv_type_unsigned_int" = yes; then
23546 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023547$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023548as_fn_error 77 "cannot compute sizeof (unsigned int)
23549See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023550 else
23551 ac_cv_sizeof_unsigned_int=0
23552 fi
23553fi
cristy8b350f62009-11-15 23:12:43 +000023554
cristy3ed852e2009-09-05 21:47:34 +000023555fi
cristy8b350f62009-11-15 23:12:43 +000023556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023557$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
23558
23559
23560
23561cat >>confdefs.h <<_ACEOF
23562#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
23563_ACEOF
23564
23565
23566
23567# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
23568# The cast to long int works around a bug in the HP C Compiler
23569# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23570# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23571# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023573$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023574if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023575 $as_echo_n "(cached) " >&6
23576else
cristy8b350f62009-11-15 23:12:43 +000023577 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 +000023578
cristy3ed852e2009-09-05 21:47:34 +000023579else
cristy8b350f62009-11-15 23:12:43 +000023580 if test "$ac_cv_type_signed_long" = yes; then
23581 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023582$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023583as_fn_error 77 "cannot compute sizeof (signed long)
23584See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023585 else
23586 ac_cv_sizeof_signed_long=0
23587 fi
23588fi
cristy8b350f62009-11-15 23:12:43 +000023589
cristy3ed852e2009-09-05 21:47:34 +000023590fi
cristy8b350f62009-11-15 23:12:43 +000023591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023592$as_echo "$ac_cv_sizeof_signed_long" >&6; }
23593
23594
23595
23596cat >>confdefs.h <<_ACEOF
23597#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
23598_ACEOF
23599
23600
23601
23602# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
23603# The cast to long int works around a bug in the HP C Compiler
23604# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23605# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23606# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023608$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023609if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023610 $as_echo_n "(cached) " >&6
23611else
cristy8b350f62009-11-15 23:12:43 +000023612 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 +000023613
cristy3ed852e2009-09-05 21:47:34 +000023614else
cristy8b350f62009-11-15 23:12:43 +000023615 if test "$ac_cv_type_unsigned_long" = yes; then
23616 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023617$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023618as_fn_error 77 "cannot compute sizeof (unsigned long)
23619See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023620 else
23621 ac_cv_sizeof_unsigned_long=0
23622 fi
23623fi
cristy8b350f62009-11-15 23:12:43 +000023624
cristy3ed852e2009-09-05 21:47:34 +000023625fi
cristy8b350f62009-11-15 23:12:43 +000023626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023627$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
23628
23629
23630
23631cat >>confdefs.h <<_ACEOF
23632#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
23633_ACEOF
23634
23635
23636
23637# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
23638# 'signed long long' is not supported then the value defined is zero.
23639# The cast to long int works around a bug in the HP C Compiler
23640# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23641# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23642# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023644$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023645if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023646 $as_echo_n "(cached) " >&6
23647else
cristy8b350f62009-11-15 23:12:43 +000023648 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 +000023649
cristy3ed852e2009-09-05 21:47:34 +000023650else
cristy8b350f62009-11-15 23:12:43 +000023651 if test "$ac_cv_type_signed_long_long" = yes; then
23652 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023653$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023654as_fn_error 77 "cannot compute sizeof (signed long long)
23655See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023656 else
23657 ac_cv_sizeof_signed_long_long=0
23658 fi
23659fi
cristy8b350f62009-11-15 23:12:43 +000023660
cristy3ed852e2009-09-05 21:47:34 +000023661fi
cristy8b350f62009-11-15 23:12:43 +000023662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023663$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
23664
23665
23666
23667cat >>confdefs.h <<_ACEOF
23668#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
23669_ACEOF
23670
23671
23672
23673# Obtain size of a 'unsigned long long' and define as
23674# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
23675# supported then the value defined is zero.
23676# The cast to long int works around a bug in the HP C Compiler
23677# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23678# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23679# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023681$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023682if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023683 $as_echo_n "(cached) " >&6
23684else
cristy8b350f62009-11-15 23:12:43 +000023685 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 +000023686
cristy3ed852e2009-09-05 21:47:34 +000023687else
cristy8b350f62009-11-15 23:12:43 +000023688 if test "$ac_cv_type_unsigned_long_long" = yes; then
23689 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023690$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023691as_fn_error 77 "cannot compute sizeof (unsigned long long)
23692See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023693 else
23694 ac_cv_sizeof_unsigned_long_long=0
23695 fi
23696fi
cristy8b350f62009-11-15 23:12:43 +000023697
cristy3ed852e2009-09-05 21:47:34 +000023698fi
cristy8b350f62009-11-15 23:12:43 +000023699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023700$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
23701
23702
23703
23704cat >>confdefs.h <<_ACEOF
23705#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
23706_ACEOF
23707
23708
23709
cristyfec31822013-05-23 12:32:12 +000023710# Obtain size of off_t and define as SIZEOF_OFF_T
23711# The cast to long int works around a bug in the HP C Compiler
23712# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23713# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23714# This bug is HP SR number 8606223364.
23715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
23716$as_echo_n "checking size of off_t... " >&6; }
23717if ${ac_cv_sizeof_off_t+:} false; then :
23718 $as_echo_n "(cached) " >&6
23719else
23720 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
23721
23722else
23723 if test "$ac_cv_type_off_t" = yes; then
23724 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23725$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23726as_fn_error 77 "cannot compute sizeof (off_t)
23727See \`config.log' for more details" "$LINENO" 5; }
23728 else
23729 ac_cv_sizeof_off_t=0
23730 fi
23731fi
23732
23733fi
23734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
23735$as_echo "$ac_cv_sizeof_off_t" >&6; }
23736
23737
23738
23739cat >>confdefs.h <<_ACEOF
23740#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
23741_ACEOF
23742
23743
23744
23745# Obtain size of size_t and define as SIZEOF_SIZE_T
23746# The cast to long int works around a bug in the HP C Compiler
23747# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23748# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23749# This bug is HP SR number 8606223364.
23750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
23751$as_echo_n "checking size of size_t... " >&6; }
23752if ${ac_cv_sizeof_size_t+:} false; then :
23753 $as_echo_n "(cached) " >&6
23754else
23755 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
23756
23757else
23758 if test "$ac_cv_type_size_t" = yes; then
23759 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23760$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23761as_fn_error 77 "cannot compute sizeof (size_t)
23762See \`config.log' for more details" "$LINENO" 5; }
23763 else
23764 ac_cv_sizeof_size_t=0
23765 fi
23766fi
23767
23768fi
23769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
23770$as_echo "$ac_cv_sizeof_size_t" >&6; }
23771
23772
23773
23774cat >>confdefs.h <<_ACEOF
23775#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
23776_ACEOF
23777
23778
23779
23780# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
23781# The cast to long int works around a bug in the HP C Compiler
23782# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23783# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23784# This bug is HP SR number 8606223364.
23785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
23786$as_echo_n "checking size of ssize_t... " >&6; }
23787if ${ac_cv_sizeof_ssize_t+:} false; then :
23788 $as_echo_n "(cached) " >&6
23789else
23790 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
23791
23792else
23793 if test "$ac_cv_type_ssize_t" = yes; then
23794 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23795$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23796as_fn_error 77 "cannot compute sizeof (ssize_t)
23797See \`config.log' for more details" "$LINENO" 5; }
23798 else
23799 ac_cv_sizeof_ssize_t=0
23800 fi
23801fi
23802
23803fi
23804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
23805$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
23806
23807
23808
23809cat >>confdefs.h <<_ACEOF
23810#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
23811_ACEOF
23812
23813
23814
cristy3ed852e2009-09-05 21:47:34 +000023815# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
23816# The cast to long int works around a bug in the HP C Compiler
23817# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23818# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23819# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000023821$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023822if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023823 $as_echo_n "(cached) " >&6
23824else
cristy8b350f62009-11-15 23:12:43 +000023825 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 +000023826
cristy3ed852e2009-09-05 21:47:34 +000023827else
cristy8b350f62009-11-15 23:12:43 +000023828 if test "$ac_cv_type_unsigned_intp" = yes; then
23829 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023830$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023831as_fn_error 77 "cannot compute sizeof (unsigned int*)
23832See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023833 else
23834 ac_cv_sizeof_unsigned_intp=0
23835 fi
23836fi
cristy8b350f62009-11-15 23:12:43 +000023837
cristy3ed852e2009-09-05 21:47:34 +000023838fi
cristy8b350f62009-11-15 23:12:43 +000023839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000023840$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
23841
23842
23843
23844cat >>confdefs.h <<_ACEOF
23845#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
23846_ACEOF
23847
23848
23849
23850#
23851# Compute sized types for current CPU and compiler options.
23852#
23853
cristy8b350f62009-11-15 23:12:43 +000023854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023855$as_echo_n "checking for signed 8-bit type... " >&6; }
23856INT8_T='signed char'
cristyad38abe2012-12-23 23:03:21 +000023857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
23858$as_echo "$INT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023859
23860
cristy8b350f62009-11-15 23:12:43 +000023861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023862$as_echo_n "checking for unsigned 8-bit type... " >&6; }
23863UINT8_T='unsigned char'
cristyad38abe2012-12-23 23:03:21 +000023864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
23865$as_echo "$UINT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023866
23867
cristy8b350f62009-11-15 23:12:43 +000023868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023869$as_echo_n "checking for signed 16-bit type... " >&6; }
23870INT16_T='signed short'
cristyad38abe2012-12-23 23:03:21 +000023871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
23872$as_echo "$INT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023873
23874
cristy8b350f62009-11-15 23:12:43 +000023875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023876$as_echo_n "checking for unsigned 16-bit type... " >&6; }
23877UINT16_T='unsigned short'
cristyad38abe2012-12-23 23:03:21 +000023878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
23879$as_echo "$UINT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023880
23881
cristy8b350f62009-11-15 23:12:43 +000023882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023883$as_echo_n "checking for signed 32-bit type... " >&6; }
23884INT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023885INT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023886if test $ac_cv_sizeof_signed_int -eq 4; then
23887 INT32_T='signed int'
cristy6d5e20f2011-04-25 13:48:54 +000023888 INT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000023889elif test $ac_cv_sizeof_signed_long -eq 4; then
23890 INT32_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000023891 INT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023892fi
cristyad38abe2012-12-23 23:03:21 +000023893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
23894$as_echo "$INT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023895
23896
cristy6d5e20f2011-04-25 13:48:54 +000023897
cristy8b350f62009-11-15 23:12:43 +000023898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023899$as_echo_n "checking for unsigned 32-bit type... " >&6; }
23900UINT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023901UINT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023902if test $ac_cv_sizeof_unsigned_int -eq 4; then
23903 UINT32_T='unsigned int'
cristy6d5e20f2011-04-25 13:48:54 +000023904 UINT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000023905elif test $ac_cv_sizeof_unsigned_long -eq 4; then
23906 UINT32_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023907 UINT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023908fi
cristyad38abe2012-12-23 23:03:21 +000023909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
23910$as_echo "$UINT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023911
23912
cristy6d5e20f2011-04-25 13:48:54 +000023913
cristy8b350f62009-11-15 23:12:43 +000023914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023915$as_echo_n "checking for signed 64-bit type... " >&6; }
23916INT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023917INT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023918if test $ac_cv_sizeof_signed_long -eq 8; then
23919 INT64_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000023920 INT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023921elif test $ac_cv_sizeof_signed_long_long -eq 8; then
23922 INT64_T='signed long long'
cristy6d5e20f2011-04-25 13:48:54 +000023923 INT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023924fi
cristy3a99dcf2011-12-17 01:29:40 +000023925case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000023926 mingw* )
23927 INT64_F='"I64"'
23928 ;;
23929esac
cristyad38abe2012-12-23 23:03:21 +000023930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
23931$as_echo "$INT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023932
23933
cristy6d5e20f2011-04-25 13:48:54 +000023934
cristy8b350f62009-11-15 23:12:43 +000023935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023936$as_echo_n "checking for unsigned 64-bit type... " >&6; }
23937UINT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023938UINT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023939if test $ac_cv_sizeof_unsigned_long -eq 8; then
23940 UINT64_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023941 UINT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023942elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
23943 UINT64_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000023944 UINT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023945fi
cristy3a99dcf2011-12-17 01:29:40 +000023946case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000023947 mingw* )
23948 UINT64_F='"I64"'
23949 ;;
23950esac
cristyad38abe2012-12-23 23:03:21 +000023951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
23952$as_echo "$UINT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023953
23954
cristy6d5e20f2011-04-25 13:48:54 +000023955
cristy8b350f62009-11-15 23:12:43 +000023956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023957$as_echo_n "checking for unsigned maximum type... " >&6; }
23958UINTMAX_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023959UINTMAX_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023960if test "$UINT64_T" != 'none'; then
23961 UINTMAX_T=$UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +000023962 UINTMAX_F=$UINT64_F
cristy3ed852e2009-09-05 21:47:34 +000023963elif test "$UINT32_T" != 'none'; then
23964 UINTMAX_T=$UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +000023965 UINTMAX_F=$UINT32_F
cristy3ed852e2009-09-05 21:47:34 +000023966fi
cristyad38abe2012-12-23 23:03:21 +000023967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
23968$as_echo "$UINTMAX_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023969
23970
cristy6d5e20f2011-04-25 13:48:54 +000023971
cristy8b350f62009-11-15 23:12:43 +000023972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023973$as_echo_n "checking for pointer difference type... " >&6; }
23974UINTPTR_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023975UINTPTR_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023976if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
23977 UINTPTR_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023978 UINTPTR_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023979elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
23980 UINTPTR_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000023981 UINTPTR_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023982fi
cristyad38abe2012-12-23 23:03:21 +000023983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
23984$as_echo "$UINTPTR_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023985
23986
cristy6d5e20f2011-04-25 13:48:54 +000023987
cristy8b350f62009-11-15 23:12:43 +000023988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000023989$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023990cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023991/* end confdefs.h. */
23992
23993int
23994main ()
23995{
23996{ const char *func = __func__; return(func != 0 ? 0 : 1); }
23997 ;
23998 return 0;
23999}
24000_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024001if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000024002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24003$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024004else
cristyad38abe2012-12-23 23:03:21 +000024005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24006$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000024008$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024010/* end confdefs.h. */
24011
24012int
24013main ()
24014{
24015{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
24016 ;
24017 return 0;
24018}
24019_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024020if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000024021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24022$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024023
cristy8b350f62009-11-15 23:12:43 +000024024$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024025
24026else
cristyad38abe2012-12-23 23:03:21 +000024027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24028$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024029
cristy8b350f62009-11-15 23:12:43 +000024030$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024031
24032fi
cristy3ed852e2009-09-05 21:47:34 +000024033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24034fi
cristy3ed852e2009-09-05 21:47:34 +000024035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24036
24037########
24038#
24039# Check for functions
24040#
24041########
cristy8b350f62009-11-15 23:12:43 +000024042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024043$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024044if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024045 $as_echo_n "(cached) " >&6
24046else
cristy8b350f62009-11-15 23:12:43 +000024047 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024048 ac_cv_func_closedir_void=yes
24049else
cristy8b350f62009-11-15 23:12:43 +000024050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024051/* end confdefs.h. */
24052$ac_includes_default
24053#include <$ac_header_dirent>
24054#ifndef __cplusplus
24055int closedir ();
24056#endif
24057
24058int
24059main ()
24060{
24061return closedir (opendir (".")) != 0;
24062 ;
24063 return 0;
24064}
24065_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024066if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024067 ac_cv_func_closedir_void=no
24068else
cristy8b350f62009-11-15 23:12:43 +000024069 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000024070fi
cristy8b350f62009-11-15 23:12:43 +000024071rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24072 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024073fi
24074
cristy3ed852e2009-09-05 21:47:34 +000024075fi
cristy8b350f62009-11-15 23:12:43 +000024076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024077$as_echo "$ac_cv_func_closedir_void" >&6; }
24078if test $ac_cv_func_closedir_void = yes; then
24079
cristy8b350f62009-11-15 23:12:43 +000024080$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024081
24082fi
24083
cristycd4c5312009-11-22 01:19:08 +000024084
24085
24086
24087 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000024088do :
24089 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000024090ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
24091"
cristy98dddb52010-11-04 00:30:15 +000024092if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024093 cat >>confdefs.h <<_ACEOF
24094#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24095_ACEOF
24096
24097fi
24098
24099done
24100
cristycd4c5312009-11-22 01:19:08 +000024101
24102
24103
24104
24105
24106
24107
cristy3ed852e2009-09-05 21:47:34 +000024108for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000024109do :
24110 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024111if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024112 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024113#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000024114_ACEOF
24115
24116fi
24117done
24118
cristy8b350f62009-11-15 23:12:43 +000024119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000024120$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024121if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024122 $as_echo_n "(cached) " >&6
24123else
cristy8b350f62009-11-15 23:12:43 +000024124 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024125 ac_cv_func_mmap_fixed_mapped=no
24126else
cristy8b350f62009-11-15 23:12:43 +000024127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024128/* end confdefs.h. */
24129$ac_includes_default
24130/* malloc might have been renamed as rpl_malloc. */
24131#undef malloc
24132
24133/* Thanks to Mike Haertel and Jim Avera for this test.
24134 Here is a matrix of mmap possibilities:
24135 mmap private not fixed
24136 mmap private fixed at somewhere currently unmapped
24137 mmap private fixed at somewhere already mapped
24138 mmap shared not fixed
24139 mmap shared fixed at somewhere currently unmapped
24140 mmap shared fixed at somewhere already mapped
24141 For private mappings, we should verify that changes cannot be read()
24142 back from the file, nor mmap's back from the file at a different
24143 address. (There have been systems where private was not correctly
24144 implemented like the infamous i386 svr4.0, and systems where the
24145 VM page cache was not coherent with the file system buffer cache
24146 like early versions of FreeBSD and possibly contemporary NetBSD.)
24147 For shared mappings, we should conversely verify that changes get
24148 propagated back to all the places they're supposed to be.
24149
24150 Grep wants private fixed already mapped.
24151 The main things grep needs to know about mmap are:
24152 * does it exist and is it safe to write into the mmap'd area
24153 * how to use it (BSD variants) */
24154
24155#include <fcntl.h>
24156#include <sys/mman.h>
24157
24158#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24159char *malloc ();
24160#endif
24161
24162/* This mess was copied from the GNU getpagesize.h. */
24163#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000024164# ifdef _SC_PAGESIZE
24165# define getpagesize() sysconf(_SC_PAGESIZE)
24166# else /* no _SC_PAGESIZE */
24167# ifdef HAVE_SYS_PARAM_H
24168# include <sys/param.h>
24169# ifdef EXEC_PAGESIZE
24170# define getpagesize() EXEC_PAGESIZE
24171# else /* no EXEC_PAGESIZE */
24172# ifdef NBPG
24173# define getpagesize() NBPG * CLSIZE
24174# ifndef CLSIZE
24175# define CLSIZE 1
24176# endif /* no CLSIZE */
24177# else /* no NBPG */
24178# ifdef NBPC
24179# define getpagesize() NBPC
24180# else /* no NBPC */
24181# ifdef PAGESIZE
24182# define getpagesize() PAGESIZE
24183# endif /* PAGESIZE */
24184# endif /* no NBPC */
24185# endif /* no NBPG */
24186# endif /* no EXEC_PAGESIZE */
24187# else /* no HAVE_SYS_PARAM_H */
24188# define getpagesize() 8192 /* punt totally */
24189# endif /* no HAVE_SYS_PARAM_H */
24190# endif /* no _SC_PAGESIZE */
24191
24192#endif /* no HAVE_GETPAGESIZE */
24193
24194int
24195main ()
24196{
24197 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000024198 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000024199 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000024200 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000024201
24202 pagesize = getpagesize ();
24203
24204 /* First, make a file with some known garbage in it. */
24205 data = (char *) malloc (pagesize);
24206 if (!data)
24207 return 1;
24208 for (i = 0; i < pagesize; ++i)
24209 *(data + i) = rand ();
24210 umask (0);
24211 fd = creat ("conftest.mmap", 0600);
24212 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024213 return 2;
cristy3ed852e2009-09-05 21:47:34 +000024214 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024215 return 3;
cristy3ed852e2009-09-05 21:47:34 +000024216 close (fd);
24217
cristycd4c5312009-11-22 01:19:08 +000024218 /* Next, check that the tail of a page is zero-filled. File must have
24219 non-zero length, otherwise we risk SIGBUS for entire page. */
24220 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24221 if (fd2 < 0)
24222 return 4;
cristyc54f5d42009-11-27 21:36:31 +000024223 cdata2 = "";
24224 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000024225 return 5;
cristyc54f5d42009-11-27 21:36:31 +000024226 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000024227 if (data2 == MAP_FAILED)
24228 return 6;
24229 for (i = 0; i < pagesize; ++i)
24230 if (*(data2 + i))
24231 return 7;
24232 close (fd2);
24233 if (munmap (data2, pagesize))
24234 return 8;
24235
cristy3ed852e2009-09-05 21:47:34 +000024236 /* Next, try to mmap the file at a fixed address which already has
24237 something else allocated at it. If we can, also make sure that
24238 we see the same garbage. */
24239 fd = open ("conftest.mmap", O_RDWR);
24240 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024241 return 9;
cristy3ed852e2009-09-05 21:47:34 +000024242 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24243 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000024244 return 10;
cristy3ed852e2009-09-05 21:47:34 +000024245 for (i = 0; i < pagesize; ++i)
24246 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000024247 return 11;
cristy3ed852e2009-09-05 21:47:34 +000024248
24249 /* Finally, make sure that changes to the mapped area do not
24250 percolate back to the file as seen by read(). (This is a bug on
24251 some variants of i386 svr4.0.) */
24252 for (i = 0; i < pagesize; ++i)
24253 *(data2 + i) = *(data2 + i) + 1;
24254 data3 = (char *) malloc (pagesize);
24255 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000024256 return 12;
cristy3ed852e2009-09-05 21:47:34 +000024257 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024258 return 13;
cristy3ed852e2009-09-05 21:47:34 +000024259 for (i = 0; i < pagesize; ++i)
24260 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000024261 return 14;
cristy3ed852e2009-09-05 21:47:34 +000024262 close (fd);
24263 return 0;
24264}
24265_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024266if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024267 ac_cv_func_mmap_fixed_mapped=yes
24268else
cristy8b350f62009-11-15 23:12:43 +000024269 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000024270fi
cristy8b350f62009-11-15 23:12:43 +000024271rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24272 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024273fi
24274
cristy3ed852e2009-09-05 21:47:34 +000024275fi
cristy8b350f62009-11-15 23:12:43 +000024276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000024277$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24278if test $ac_cv_func_mmap_fixed_mapped = yes; then
24279
cristy8b350f62009-11-15 23:12:43 +000024280$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024281
24282fi
cristycd4c5312009-11-22 01:19:08 +000024283rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000024284
cristy3ed852e2009-09-05 21:47:34 +000024285for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000024286do :
24287 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000024288if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024289 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024290#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000024291_ACEOF
24292
24293fi
24294
24295done
24296
cristy3ed852e2009-09-05 21:47:34 +000024297for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000024298do :
24299 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24300ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024301if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024302 cat >>confdefs.h <<_ACEOF
24303#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24304_ACEOF
24305
24306fi
24307done
24308
24309if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024311$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024312if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024313 $as_echo_n "(cached) " >&6
24314else
cristy8b350f62009-11-15 23:12:43 +000024315 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024316 ac_cv_func_fork_works=cross
24317else
cristy8b350f62009-11-15 23:12:43 +000024318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024319/* end confdefs.h. */
24320$ac_includes_default
24321int
24322main ()
24323{
24324
24325 /* By Ruediger Kuhlmann. */
24326 return fork () < 0;
24327
24328 ;
24329 return 0;
24330}
24331_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024332if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024333 ac_cv_func_fork_works=yes
24334else
cristy8b350f62009-11-15 23:12:43 +000024335 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024336fi
cristy8b350f62009-11-15 23:12:43 +000024337rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24338 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024339fi
24340
cristy3ed852e2009-09-05 21:47:34 +000024341fi
cristy8b350f62009-11-15 23:12:43 +000024342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024343$as_echo "$ac_cv_func_fork_works" >&6; }
24344
24345else
24346 ac_cv_func_fork_works=$ac_cv_func_fork
24347fi
24348if test "x$ac_cv_func_fork_works" = xcross; then
24349 case $host in
24350 *-*-amigaos* | *-*-msdosdjgpp*)
24351 # Override, as these systems have only a dummy fork() stub
24352 ac_cv_func_fork_works=no
24353 ;;
24354 *)
24355 ac_cv_func_fork_works=yes
24356 ;;
24357 esac
cristy8b350f62009-11-15 23:12:43 +000024358 { $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 +000024359$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24360fi
24361ac_cv_func_vfork_works=$ac_cv_func_vfork
24362if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024364$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024365if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024366 $as_echo_n "(cached) " >&6
24367else
cristy8b350f62009-11-15 23:12:43 +000024368 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024369 ac_cv_func_vfork_works=cross
24370else
cristy8b350f62009-11-15 23:12:43 +000024371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024372/* end confdefs.h. */
24373/* Thanks to Paul Eggert for this test. */
24374$ac_includes_default
24375#include <sys/wait.h>
24376#ifdef HAVE_VFORK_H
24377# include <vfork.h>
24378#endif
24379/* On some sparc systems, changes by the child to local and incoming
24380 argument registers are propagated back to the parent. The compiler
24381 is told about this with #include <vfork.h>, but some compilers
24382 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24383 static variable whose address is put into a register that is
24384 clobbered by the vfork. */
24385static void
24386#ifdef __cplusplus
24387sparc_address_test (int arg)
24388# else
24389sparc_address_test (arg) int arg;
24390#endif
24391{
24392 static pid_t child;
24393 if (!child) {
24394 child = vfork ();
24395 if (child < 0) {
24396 perror ("vfork");
24397 _exit(2);
24398 }
24399 if (!child) {
24400 arg = getpid();
24401 write(-1, "", 0);
24402 _exit (arg);
24403 }
24404 }
24405}
24406
24407int
24408main ()
24409{
24410 pid_t parent = getpid ();
24411 pid_t child;
24412
24413 sparc_address_test (0);
24414
24415 child = vfork ();
24416
24417 if (child == 0) {
24418 /* Here is another test for sparc vfork register problems. This
24419 test uses lots of local variables, at least as many local
24420 variables as main has allocated so far including compiler
24421 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24422 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24423 reuse the register of parent for one of the local variables,
24424 since it will think that parent can't possibly be used any more
24425 in this routine. Assigning to the local variable will thus
24426 munge parent in the parent process. */
24427 pid_t
24428 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24429 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24430 /* Convince the compiler that p..p7 are live; otherwise, it might
24431 use the same hardware register for all 8 local variables. */
24432 if (p != p1 || p != p2 || p != p3 || p != p4
24433 || p != p5 || p != p6 || p != p7)
24434 _exit(1);
24435
24436 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24437 from child file descriptors. If the child closes a descriptor
24438 before it execs or exits, this munges the parent's descriptor
24439 as well. Test for this by closing stdout in the child. */
24440 _exit(close(fileno(stdout)) != 0);
24441 } else {
24442 int status;
24443 struct stat st;
24444
24445 while (wait(&status) != child)
24446 ;
24447 return (
24448 /* Was there some problem with vforking? */
24449 child < 0
24450
24451 /* Did the child fail? (This shouldn't happen.) */
24452 || status
24453
24454 /* Did the vfork/compiler bug occur? */
24455 || parent != getpid()
24456
24457 /* Did the file descriptor bug occur? */
24458 || fstat(fileno(stdout), &st) != 0
24459 );
24460 }
24461}
24462_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024463if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024464 ac_cv_func_vfork_works=yes
24465else
cristy8b350f62009-11-15 23:12:43 +000024466 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024467fi
cristy8b350f62009-11-15 23:12:43 +000024468rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24469 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024470fi
24471
cristy3ed852e2009-09-05 21:47:34 +000024472fi
cristy8b350f62009-11-15 23:12:43 +000024473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024474$as_echo "$ac_cv_func_vfork_works" >&6; }
24475
24476fi;
24477if test "x$ac_cv_func_fork_works" = xcross; then
24478 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000024479 { $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 +000024480$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24481fi
24482
24483if test "x$ac_cv_func_vfork_works" = xyes; then
24484
cristy8b350f62009-11-15 23:12:43 +000024485$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024486
24487else
24488
cristy8b350f62009-11-15 23:12:43 +000024489$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024490
24491fi
24492if test "x$ac_cv_func_fork_works" = xyes; then
24493
cristy8b350f62009-11-15 23:12:43 +000024494$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024495
24496fi
24497
cristy8b350f62009-11-15 23:12:43 +000024498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024499$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024500if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024501 $as_echo_n "(cached) " >&6
24502else
cristy8b350f62009-11-15 23:12:43 +000024503 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024504 ac_cv_func_memcmp_working=no
24505else
cristy8b350f62009-11-15 23:12:43 +000024506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024507/* end confdefs.h. */
24508$ac_includes_default
24509int
24510main ()
24511{
24512
24513 /* Some versions of memcmp are not 8-bit clean. */
24514 char c0 = '\100', c1 = '\200', c2 = '\201';
24515 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24516 return 1;
24517
24518 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
24519 or more and with at least one buffer not starting on a 4-byte boundary.
24520 William Lewis provided this test program. */
24521 {
24522 char foo[21];
24523 char bar[21];
24524 int i;
24525 for (i = 0; i < 4; i++)
24526 {
24527 char *a = foo + i;
24528 char *b = bar + i;
24529 strcpy (a, "--------01111111");
24530 strcpy (b, "--------10000000");
24531 if (memcmp (a, b, 16) >= 0)
24532 return 1;
24533 }
24534 return 0;
24535 }
24536
24537 ;
24538 return 0;
24539}
24540_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024541if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024542 ac_cv_func_memcmp_working=yes
24543else
cristy8b350f62009-11-15 23:12:43 +000024544 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000024545fi
cristy8b350f62009-11-15 23:12:43 +000024546rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24547 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024548fi
24549
cristy3ed852e2009-09-05 21:47:34 +000024550fi
cristy8b350f62009-11-15 23:12:43 +000024551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000024552$as_echo "$ac_cv_func_memcmp_working" >&6; }
24553test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
24554 *" memcmp.$ac_objext "* ) ;;
24555 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
24556 ;;
24557esac
24558
24559
cristy3ed852e2009-09-05 21:47:34 +000024560for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000024561do :
24562 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24563ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000024564if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024565 cat >>confdefs.h <<_ACEOF
24566#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24567_ACEOF
24568
24569fi
24570
24571done
24572
cristy8b350f62009-11-15 23:12:43 +000024573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000024574$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024575if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024576 $as_echo_n "(cached) " >&6
24577else
24578 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
24579 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
24580 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000024581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024582/* end confdefs.h. */
24583$ac_includes_default
24584#ifdef HAVE_SYS_SELECT_H
24585# include <sys/select.h>
24586#endif
24587#ifdef HAVE_SYS_SOCKET_H
24588# include <sys/socket.h>
24589#endif
24590
24591int
24592main ()
24593{
24594extern int select ($ac_arg1,
24595 $ac_arg234, $ac_arg234, $ac_arg234,
24596 $ac_arg5);
24597 ;
24598 return 0;
24599}
24600_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024601if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024602 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000024603fi
cristy3ed852e2009-09-05 21:47:34 +000024604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24605 done
24606 done
24607done
24608# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000024609: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000024610
24611fi
cristy8b350f62009-11-15 23:12:43 +000024612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000024613$as_echo "$ac_cv_func_select_args" >&6; }
24614ac_save_IFS=$IFS; IFS=','
24615set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
24616IFS=$ac_save_IFS
24617shift
24618
24619cat >>confdefs.h <<_ACEOF
24620#define SELECT_TYPE_ARG1 $1
24621_ACEOF
24622
24623
24624cat >>confdefs.h <<_ACEOF
24625#define SELECT_TYPE_ARG234 ($2)
24626_ACEOF
24627
24628
24629cat >>confdefs.h <<_ACEOF
24630#define SELECT_TYPE_ARG5 ($3)
24631_ACEOF
24632
24633rm -f conftest*
24634
cristyda16f162011-02-19 23:52:17 +000024635if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024636 $as_echo_n "(cached) " >&6
24637else
24638 ac_cv_func_setvbuf_reversed=no
24639fi
24640
24641
cristy8b350f62009-11-15 23:12:43 +000024642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000024643$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024644if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024645 $as_echo_n "(cached) " >&6
24646else
cristy8b350f62009-11-15 23:12:43 +000024647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024648/* end confdefs.h. */
24649#include <sys/types.h>
24650#include <signal.h>
24651
24652int
24653main ()
24654{
24655return *(signal (0, 0)) (0) == 1;
24656 ;
24657 return 0;
24658}
24659_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024660if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024661 ac_cv_type_signal=int
24662else
cristy8b350f62009-11-15 23:12:43 +000024663 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000024664fi
cristy3ed852e2009-09-05 21:47:34 +000024665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24666fi
cristy8b350f62009-11-15 23:12:43 +000024667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000024668$as_echo "$ac_cv_type_signal" >&6; }
24669
24670cat >>confdefs.h <<_ACEOF
24671#define RETSIGTYPE $ac_cv_type_signal
24672_ACEOF
24673
24674
cristy8b350f62009-11-15 23:12:43 +000024675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024676$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024677if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024678 $as_echo_n "(cached) " >&6
24679else
cristy8b350f62009-11-15 23:12:43 +000024680 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024681 ac_cv_func_strtod=no
24682else
cristy8b350f62009-11-15 23:12:43 +000024683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024684/* end confdefs.h. */
24685
24686$ac_includes_default
24687#ifndef strtod
24688double strtod ();
24689#endif
24690int
24691main()
24692{
24693 {
24694 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
24695 char *string = " +69";
24696 char *term;
24697 double value;
24698 value = strtod (string, &term);
24699 if (value != 69 || term != (string + 4))
24700 return 1;
24701 }
24702
24703 {
24704 /* Under Solaris 2.4, strtod returns the wrong value for the
24705 terminating character under some conditions. */
24706 char *string = "NaN";
24707 char *term;
24708 strtod (string, &term);
24709 if (term != string && *(term - 1) == 0)
24710 return 1;
24711 }
24712 return 0;
24713}
24714
24715_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024716if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024717 ac_cv_func_strtod=yes
24718else
cristy8b350f62009-11-15 23:12:43 +000024719 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000024720fi
cristy8b350f62009-11-15 23:12:43 +000024721rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24722 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024723fi
24724
cristy3ed852e2009-09-05 21:47:34 +000024725fi
cristy8b350f62009-11-15 23:12:43 +000024726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024727$as_echo "$ac_cv_func_strtod" >&6; }
24728if test $ac_cv_func_strtod = no; then
24729 case " $LIBOBJS " in
24730 *" strtod.$ac_objext "* ) ;;
24731 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
24732 ;;
24733esac
24734
cristy8b350f62009-11-15 23:12:43 +000024735ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000024736if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024737
cristy3ed852e2009-09-05 21:47:34 +000024738fi
24739
cristy3ed852e2009-09-05 21:47:34 +000024740if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000024741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000024742$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024743if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024744 $as_echo_n "(cached) " >&6
24745else
24746 ac_check_lib_save_LIBS=$LIBS
24747LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024748cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024749/* end confdefs.h. */
24750
24751/* Override any GCC internal prototype to avoid an error.
24752 Use char because int might match the return type of a GCC
24753 builtin and then its argument prototype would still apply. */
24754#ifdef __cplusplus
24755extern "C"
24756#endif
24757char pow ();
24758int
24759main ()
24760{
24761return pow ();
24762 ;
24763 return 0;
24764}
24765_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024766if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024767 ac_cv_lib_m_pow=yes
24768else
cristy8b350f62009-11-15 23:12:43 +000024769 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000024770fi
cristy8b350f62009-11-15 23:12:43 +000024771rm -f core conftest.err conftest.$ac_objext \
24772 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024773LIBS=$ac_check_lib_save_LIBS
24774fi
cristy8b350f62009-11-15 23:12:43 +000024775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000024776$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000024777if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024778 POW_LIB=-lm
24779else
cristy8b350f62009-11-15 23:12:43 +000024780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000024781$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
24782fi
24783
24784fi
24785
24786fi
24787
cristy7d4a1d62011-10-13 15:54:12 +000024788ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
24789if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
24790 ac_have_decl=1
24791else
24792 ac_have_decl=0
24793fi
24794
24795cat >>confdefs.h <<_ACEOF
24796#define HAVE_DECL_STRERROR_R $ac_have_decl
24797_ACEOF
24798
24799for ac_func in strerror_r
24800do :
24801 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
24802if test "x$ac_cv_func_strerror_r" = xyes; then :
24803 cat >>confdefs.h <<_ACEOF
24804#define HAVE_STRERROR_R 1
24805_ACEOF
24806
24807fi
24808done
24809
24810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
24811$as_echo_n "checking whether strerror_r returns char *... " >&6; }
24812if ${ac_cv_func_strerror_r_char_p+:} false; then :
24813 $as_echo_n "(cached) " >&6
24814else
24815
24816 ac_cv_func_strerror_r_char_p=no
24817 if test $ac_cv_have_decl_strerror_r = yes; then
24818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24819/* end confdefs.h. */
24820$ac_includes_default
24821int
24822main ()
24823{
24824
24825 char buf[100];
24826 char x = *strerror_r (0, buf, sizeof buf);
24827 char *p = strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000024828 return !p || x;
cristy7d4a1d62011-10-13 15:54:12 +000024829
24830 ;
24831 return 0;
24832}
24833_ACEOF
24834if ac_fn_c_try_compile "$LINENO"; then :
24835 ac_cv_func_strerror_r_char_p=yes
24836fi
24837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24838 else
24839 # strerror_r is not declared. Choose between
24840 # systems that have relatively inaccessible declarations for the
24841 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
24842 # former has a strerror_r that returns char*, while the latter
24843 # has a strerror_r that returns `int'.
24844 # This test should segfault on the DEC system.
24845 if test "$cross_compiling" = yes; then :
24846 :
24847else
24848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24849/* end confdefs.h. */
24850$ac_includes_default
24851 extern char *strerror_r ();
24852int
24853main ()
24854{
24855char buf[100];
24856 char x = *strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000024857 return ! isalpha (x);
cristy7d4a1d62011-10-13 15:54:12 +000024858 ;
24859 return 0;
24860}
24861_ACEOF
24862if ac_fn_c_try_run "$LINENO"; then :
24863 ac_cv_func_strerror_r_char_p=yes
24864fi
24865rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24866 conftest.$ac_objext conftest.beam conftest.$ac_ext
24867fi
24868
24869 fi
24870
24871fi
24872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
24873$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
24874if test $ac_cv_func_strerror_r_char_p = yes; then
24875
24876$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
24877
24878fi
24879
cristy3ed852e2009-09-05 21:47:34 +000024880for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000024881do :
24882 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000024883if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024884 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024885#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000024886_ACEOF
24887
cristy8b350f62009-11-15 23:12:43 +000024888ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000024889if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024890
cristy8b350f62009-11-15 23:12:43 +000024891$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024892
24893fi
24894
24895fi
24896done
24897
24898
24899
cristy161b9262010-03-20 19:34:32 +000024900#
24901# Find math library
24902#
24903MATH_LIBS=''
24904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
24905$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024906if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000024907 $as_echo_n "(cached) " >&6
24908else
24909 ac_check_lib_save_LIBS=$LIBS
24910LIBS="-lm $LIBS"
24911cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24912/* end confdefs.h. */
24913
24914/* Override any GCC internal prototype to avoid an error.
24915 Use char because int might match the return type of a GCC
24916 builtin and then its argument prototype would still apply. */
24917#ifdef __cplusplus
24918extern "C"
24919#endif
24920char sqrt ();
24921int
24922main ()
24923{
24924return sqrt ();
24925 ;
24926 return 0;
24927}
24928_ACEOF
24929if ac_fn_c_try_link "$LINENO"; then :
24930 ac_cv_lib_m_sqrt=yes
24931else
24932 ac_cv_lib_m_sqrt=no
24933fi
24934rm -f core conftest.err conftest.$ac_objext \
24935 conftest$ac_exeext conftest.$ac_ext
24936LIBS=$ac_check_lib_save_LIBS
24937fi
24938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
24939$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000024940if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000024941 MATH_LIBS="-lm"
24942fi
24943
24944LIBS="$MATH_LIBS $LIBS"
24945
24946
cristy85572162013-01-04 19:19:32 +000024947#
24948# Find socket library
24949#
cristy8a5d7f42013-01-06 15:24:33 +000024950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
24951$as_echo_n "checking for library containing gethostbyname... " >&6; }
24952if ${ac_cv_search_gethostbyname+:} false; then :
24953 $as_echo_n "(cached) " >&6
24954else
24955 ac_func_search_save_LIBS=$LIBS
24956cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24957/* end confdefs.h. */
24958
24959/* Override any GCC internal prototype to avoid an error.
24960 Use char because int might match the return type of a GCC
24961 builtin and then its argument prototype would still apply. */
24962#ifdef __cplusplus
24963extern "C"
24964#endif
24965char gethostbyname ();
24966int
24967main ()
24968{
24969return gethostbyname ();
24970 ;
24971 return 0;
24972}
24973_ACEOF
24974for ac_lib in '' resolv nsl; do
24975 if test -z "$ac_lib"; then
24976 ac_res="none required"
24977 else
24978 ac_res=-l$ac_lib
24979 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24980 fi
24981 if ac_fn_c_try_link "$LINENO"; then :
24982 ac_cv_search_gethostbyname=$ac_res
24983fi
24984rm -f core conftest.err conftest.$ac_objext \
24985 conftest$ac_exeext
24986 if ${ac_cv_search_gethostbyname+:} false; then :
24987 break
24988fi
24989done
24990if ${ac_cv_search_gethostbyname+:} false; then :
24991
24992else
24993 ac_cv_search_gethostbyname=no
24994fi
24995rm conftest.$ac_ext
24996LIBS=$ac_func_search_save_LIBS
24997fi
24998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
24999$as_echo "$ac_cv_search_gethostbyname" >&6; }
25000ac_res=$ac_cv_search_gethostbyname
25001if test "$ac_res" != no; then :
25002 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25003
25004fi
25005
cristy85572162013-01-04 19:19:32 +000025006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
25007$as_echo_n "checking for library containing socket... " >&6; }
25008if ${ac_cv_search_socket+:} false; then :
25009 $as_echo_n "(cached) " >&6
25010else
25011 ac_func_search_save_LIBS=$LIBS
25012cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25013/* end confdefs.h. */
25014
25015/* Override any GCC internal prototype to avoid an error.
25016 Use char because int might match the return type of a GCC
25017 builtin and then its argument prototype would still apply. */
25018#ifdef __cplusplus
25019extern "C"
25020#endif
25021char socket ();
25022int
25023main ()
25024{
25025return socket ();
25026 ;
25027 return 0;
25028}
25029_ACEOF
25030for ac_lib in '' socket; do
25031 if test -z "$ac_lib"; then
25032 ac_res="none required"
25033 else
25034 ac_res=-l$ac_lib
25035 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25036 fi
25037 if ac_fn_c_try_link "$LINENO"; then :
25038 ac_cv_search_socket=$ac_res
25039fi
25040rm -f core conftest.err conftest.$ac_objext \
25041 conftest$ac_exeext
25042 if ${ac_cv_search_socket+:} false; then :
25043 break
25044fi
25045done
25046if ${ac_cv_search_socket+:} false; then :
25047
25048else
25049 ac_cv_search_socket=no
25050fi
25051rm conftest.$ac_ext
25052LIBS=$ac_func_search_save_LIBS
25053fi
25054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
25055$as_echo "$ac_cv_search_socket" >&6; }
25056ac_res=$ac_cv_search_socket
25057if test "$ac_res" != no; then :
25058 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25059
cristy85572162013-01-04 19:19:32 +000025060
cristy8a5d7f42013-01-06 15:24:33 +000025061$as_echo "#define HAVE_SOCKET 1" >>confdefs.h
cristy85572162013-01-04 19:19:32 +000025062
cristy03f187e2013-01-24 00:22:19 +000025063 MAGICK_FEATURES="DPC $MAGICK_FEATURES"
cristy85572162013-01-04 19:19:32 +000025064
25065fi
25066
25067
25068for 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 +000025069do :
25070 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25071ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025072if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025073 cat >>confdefs.h <<_ACEOF
25074#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25075_ACEOF
25076
25077fi
25078done
25079
25080
cristye43a45e2009-09-28 14:49:00 +000025081#
25082# Check for clock_gettime().
25083#
cristy8b350f62009-11-15 23:12:43 +000025084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025085$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025086if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025087 $as_echo_n "(cached) " >&6
25088else
25089 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000025090cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025091/* end confdefs.h. */
25092
25093/* Override any GCC internal prototype to avoid an error.
25094 Use char because int might match the return type of a GCC
25095 builtin and then its argument prototype would still apply. */
25096#ifdef __cplusplus
25097extern "C"
25098#endif
25099char clock_gettime ();
25100int
25101main ()
25102{
25103return clock_gettime ();
25104 ;
25105 return 0;
25106}
25107_ACEOF
25108for ac_lib in '' rt; do
25109 if test -z "$ac_lib"; then
25110 ac_res="none required"
25111 else
25112 ac_res=-l$ac_lib
25113 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25114 fi
cristy8b350f62009-11-15 23:12:43 +000025115 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025116 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000025117fi
cristy8b350f62009-11-15 23:12:43 +000025118rm -f core conftest.err conftest.$ac_objext \
25119 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000025120 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025121 break
25122fi
25123done
cristyda16f162011-02-19 23:52:17 +000025124if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000025125
cristye43a45e2009-09-28 14:49:00 +000025126else
25127 ac_cv_search_clock_gettime=no
25128fi
25129rm conftest.$ac_ext
25130LIBS=$ac_func_search_save_LIBS
25131fi
cristy8b350f62009-11-15 23:12:43 +000025132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025133$as_echo "$ac_cv_search_clock_gettime" >&6; }
25134ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000025135if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000025136 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25137
25138
cristy8b350f62009-11-15 23:12:43 +000025139$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025140
cristy8b350f62009-11-15 23:12:43 +000025141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000025142$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025144/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000025145
25146 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000025147int
25148main ()
25149{
25150clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000025151 ;
25152 return 0;
25153}
25154_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025155if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025156
cristyad38abe2012-12-23 23:03:21 +000025157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25158$as_echo "yes" >&6; }
cristye43a45e2009-09-28 14:49:00 +000025159
cristy8b350f62009-11-15 23:12:43 +000025160$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025161
25162
25163else
cristyad38abe2012-12-23 23:03:21 +000025164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25165$as_echo "no" >&6; }
cristye43a45e2009-09-28 14:49:00 +000025166
25167fi
cristye43a45e2009-09-28 14:49:00 +000025168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25169
25170else
25171
cristy8b350f62009-11-15 23:12:43 +000025172 for ac_func in gettimeofday ftime
25173do :
25174 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25175ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025176if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000025177 cat >>confdefs.h <<_ACEOF
25178#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25179_ACEOF
25180 break
25181fi
25182done
25183
25184
25185
25186fi
25187
25188
cristy3ed852e2009-09-05 21:47:34 +000025189########
25190#
25191# Check for function prototypes
25192#
25193########
25194
cristy8b350f62009-11-15 23:12:43 +000025195ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000025196#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025197"
cristyda16f162011-02-19 23:52:17 +000025198if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025199 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025200else
cristy8b350f62009-11-15 23:12:43 +000025201 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025202fi
25203
cristy3ed852e2009-09-05 21:47:34 +000025204cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025205#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025206_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025207ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000025208#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025209"
cristyda16f162011-02-19 23:52:17 +000025210if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025211 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025212else
cristy8b350f62009-11-15 23:12:43 +000025213 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025214fi
25215
cristy3ed852e2009-09-05 21:47:34 +000025216cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025217#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025218_ACEOF
25219
25220
cristy8b350f62009-11-15 23:12:43 +000025221ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000025222#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000025223"
cristyda16f162011-02-19 23:52:17 +000025224if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025225 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025226else
cristy8b350f62009-11-15 23:12:43 +000025227 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025228fi
25229
cristy3ed852e2009-09-05 21:47:34 +000025230cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025231#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025232_ACEOF
25233
25234
cristy8b350f62009-11-15 23:12:43 +000025235ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000025236#include <stdio.h>
25237#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000025238"
cristyda16f162011-02-19 23:52:17 +000025239if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025240 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025241else
cristy8b350f62009-11-15 23:12:43 +000025242 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025243fi
25244
cristy3ed852e2009-09-05 21:47:34 +000025245cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025246#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025247_ACEOF
25248
25249
cristy3ed852e2009-09-05 21:47:34 +000025250########
25251#
25252# C++ Support Tests (For Magick++)
25253#
25254########
25255have_magick_plus_plus='no'
25256if test "$with_magick_plus_plus" = 'yes'; then
25257 OLIBS="$LIBS"
25258 LIBS=''
25259 ac_ext=cpp
25260ac_cpp='$CXXCPP $CPPFLAGS'
25261ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25262ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25263ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25264
25265
25266 # Full set of headers used...
25267 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
25268 # functional iomanip iosfwd iostream iterator list string strstream utility
25269 ac_ext=cpp
25270ac_cpp='$CXXCPP $CPPFLAGS'
25271ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25272ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25273ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25274
25275 ac_ext=cpp
25276ac_cpp='$CXXCPP $CPPFLAGS'
25277ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25278ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25279ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25280if test -z "$CXX"; then
25281 if test -n "$CCC"; then
25282 CXX=$CCC
25283 else
25284 if test -n "$ac_tool_prefix"; then
25285 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25286 do
25287 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
25288set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025290$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025291if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025292 $as_echo_n "(cached) " >&6
25293else
25294 if test -n "$CXX"; then
25295 ac_cv_prog_CXX="$CXX" # Let the user override the test.
25296else
25297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25298for as_dir in $PATH
25299do
25300 IFS=$as_save_IFS
25301 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025302 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025304 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025306 break 2
25307 fi
25308done
cristy8b350f62009-11-15 23:12:43 +000025309 done
cristy3ed852e2009-09-05 21:47:34 +000025310IFS=$as_save_IFS
25311
25312fi
25313fi
25314CXX=$ac_cv_prog_CXX
25315if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025317$as_echo "$CXX" >&6; }
25318else
cristy8b350f62009-11-15 23:12:43 +000025319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025320$as_echo "no" >&6; }
25321fi
25322
25323
25324 test -n "$CXX" && break
25325 done
25326fi
25327if test -z "$CXX"; then
25328 ac_ct_CXX=$CXX
25329 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25330do
25331 # Extract the first word of "$ac_prog", so it can be a program name with args.
25332set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025334$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025335if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025336 $as_echo_n "(cached) " >&6
25337else
25338 if test -n "$ac_ct_CXX"; then
25339 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
25340else
25341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25342for as_dir in $PATH
25343do
25344 IFS=$as_save_IFS
25345 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025346 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025348 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025350 break 2
25351 fi
25352done
cristy8b350f62009-11-15 23:12:43 +000025353 done
cristy3ed852e2009-09-05 21:47:34 +000025354IFS=$as_save_IFS
25355
25356fi
25357fi
25358ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
25359if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025361$as_echo "$ac_ct_CXX" >&6; }
25362else
cristy8b350f62009-11-15 23:12:43 +000025363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025364$as_echo "no" >&6; }
25365fi
25366
25367
25368 test -n "$ac_ct_CXX" && break
25369done
25370
25371 if test "x$ac_ct_CXX" = x; then
25372 CXX="g++"
25373 else
25374 case $cross_compiling:$ac_tool_warned in
25375yes:)
cristy8b350f62009-11-15 23:12:43 +000025376{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025377$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25378ac_tool_warned=yes ;;
25379esac
25380 CXX=$ac_ct_CXX
25381 fi
25382fi
25383
25384 fi
25385fi
25386# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000025387$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000025388set X $ac_compile
25389ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000025390for ac_option in --version -v -V -qversion; do
25391 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000025392case "(($ac_try" in
25393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25394 *) ac_try_echo=$ac_try;;
25395esac
cristy8b350f62009-11-15 23:12:43 +000025396eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
25397$as_echo "$ac_try_echo"; } >&5
25398 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000025399 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025400 if test -s conftest.err; then
25401 sed '10a\
25402... rest of stderr output deleted ...
25403 10q' conftest.err >conftest.er1
25404 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000025405 fi
cristycd4c5312009-11-22 01:19:08 +000025406 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000025407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25408 test $ac_status = 0; }
25409done
cristy3ed852e2009-09-05 21:47:34 +000025410
cristy8b350f62009-11-15 23:12:43 +000025411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000025412$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025413if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025414 $as_echo_n "(cached) " >&6
25415else
cristy8b350f62009-11-15 23:12:43 +000025416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025417/* end confdefs.h. */
25418
25419int
25420main ()
25421{
25422#ifndef __GNUC__
25423 choke me
25424#endif
25425
25426 ;
25427 return 0;
25428}
25429_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025430if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025431 ac_compiler_gnu=yes
25432else
cristy8b350f62009-11-15 23:12:43 +000025433 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000025434fi
cristy3ed852e2009-09-05 21:47:34 +000025435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25436ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
25437
25438fi
cristy8b350f62009-11-15 23:12:43 +000025439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000025440$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
25441if test $ac_compiler_gnu = yes; then
25442 GXX=yes
25443else
25444 GXX=
25445fi
25446ac_test_CXXFLAGS=${CXXFLAGS+set}
25447ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000025448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025449$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025450if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025451 $as_echo_n "(cached) " >&6
25452else
25453 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
25454 ac_cxx_werror_flag=yes
25455 ac_cv_prog_cxx_g=no
25456 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025458/* end confdefs.h. */
25459
25460int
25461main ()
25462{
25463
25464 ;
25465 return 0;
25466}
25467_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025468if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025469 ac_cv_prog_cxx_g=yes
25470else
cristy8b350f62009-11-15 23:12:43 +000025471 CXXFLAGS=""
25472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025473/* end confdefs.h. */
25474
25475int
25476main ()
25477{
25478
25479 ;
25480 return 0;
25481}
25482_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025483if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025484
cristy8b350f62009-11-15 23:12:43 +000025485else
25486 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000025487 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025489/* end confdefs.h. */
25490
25491int
25492main ()
25493{
25494
25495 ;
25496 return 0;
25497}
25498_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025499if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025500 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000025501fi
cristy3ed852e2009-09-05 21:47:34 +000025502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25503fi
cristy3ed852e2009-09-05 21:47:34 +000025504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25505fi
cristy3ed852e2009-09-05 21:47:34 +000025506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25507 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
25508fi
cristy8b350f62009-11-15 23:12:43 +000025509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025510$as_echo "$ac_cv_prog_cxx_g" >&6; }
25511if test "$ac_test_CXXFLAGS" = set; then
25512 CXXFLAGS=$ac_save_CXXFLAGS
25513elif test $ac_cv_prog_cxx_g = yes; then
25514 if test "$GXX" = yes; then
25515 CXXFLAGS="-g -O2"
25516 else
25517 CXXFLAGS="-g"
25518 fi
25519else
25520 if test "$GXX" = yes; then
25521 CXXFLAGS="-O2"
25522 else
25523 CXXFLAGS=
25524 fi
25525fi
25526ac_ext=cpp
25527ac_cpp='$CXXCPP $CPPFLAGS'
25528ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25529ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25530ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25531
cristy73bd4a52010-10-05 11:24:23 +000025532depcc="$CXX" am_compiler_list=
25533
25534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
25535$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025536if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025537 $as_echo_n "(cached) " >&6
25538else
25539 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
25540 # We make a subdir and do the tests there. Otherwise we can end up
25541 # making bogus files that we don't know about and never remove. For
25542 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +000025543 # making a dummy file named 'D' -- because '-MD' means "put the output
25544 # in D".
cristy7247bba2012-02-05 16:37:27 +000025545 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +000025546 mkdir conftest.dir
25547 # Copy depcomp to subdir because otherwise we won't find it if we're
25548 # using a relative directory.
25549 cp "$am_depcomp" conftest.dir
25550 cd conftest.dir
25551 # We will build objects and dependencies in a subdirectory because
25552 # it helps to detect inapplicable dependency modes. For instance
25553 # both Tru64's cc and ICC support -MD to output dependencies as a
25554 # side effect of compilation, but ICC will put the dependencies in
25555 # the current directory while Tru64 will put them in the object
25556 # directory.
25557 mkdir sub
25558
25559 am_cv_CXX_dependencies_compiler_type=none
25560 if test "$am_compiler_list" = ""; then
25561 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
25562 fi
25563 am__universal=false
25564 case " $depcc " in #(
25565 *\ -arch\ *\ -arch\ *) am__universal=true ;;
25566 esac
25567
25568 for depmode in $am_compiler_list; do
25569 # Setup a source with many dependencies, because some compilers
25570 # like to wrap large dependency lists on column 80 (with \), and
25571 # we should not choose a depcomp mode which is confused by this.
25572 #
25573 # We need to recreate these files for each test, as the compiler may
25574 # overwrite some of them when testing with obscure command lines.
25575 # This happens at least with the AIX C compiler.
25576 : > sub/conftest.c
25577 for i in 1 2 3 4 5 6; do
25578 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +000025579 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
25580 # Solaris 10 /bin/sh.
25581 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +000025582 done
25583 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
25584
cristyc0890a62012-07-19 00:18:20 +000025585 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +000025586 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +000025587 # handle '-M -o', and we need to detect this. Also, some Intel
25588 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +000025589 am__obj=sub/conftest.${OBJEXT-o}
25590 am__minus_obj="-o $am__obj"
25591 case $depmode in
25592 gcc)
25593 # This depmode causes a compiler race in universal mode.
25594 test "$am__universal" = false || continue
25595 ;;
25596 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +000025597 # After this tag, mechanisms are not by side-effect, so they'll
25598 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +000025599 if test "x$enable_dependency_tracking" = xyes; then
25600 continue
25601 else
25602 break
25603 fi
25604 ;;
cristy7247bba2012-02-05 16:37:27 +000025605 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +000025606 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +000025607 # not run yet. These depmodes are late enough in the game, and
25608 # so weak that their functioning should not be impacted.
25609 am__obj=conftest.${OBJEXT-o}
25610 am__minus_obj=
25611 ;;
25612 none) break ;;
25613 esac
25614 if depmode=$depmode \
25615 source=sub/conftest.c object=$am__obj \
25616 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
25617 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
25618 >/dev/null 2>conftest.err &&
25619 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
25620 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
25621 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
25622 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
25623 # icc doesn't choke on unknown options, it will just issue warnings
25624 # or remarks (even with -Werror). So we grep stderr for any message
25625 # that says an option was ignored or not supported.
25626 # When given -MP, icc 7.0 and 7.1 complain thusly:
25627 # icc: Command line warning: ignoring option '-M'; no argument required
25628 # The diagnosis changed in icc 8.0:
25629 # icc: Command line remark: option '-MP' not supported
25630 if (grep 'ignoring option' conftest.err ||
25631 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
25632 am_cv_CXX_dependencies_compiler_type=$depmode
25633 break
25634 fi
25635 fi
25636 done
25637
25638 cd ..
25639 rm -rf conftest.dir
25640else
25641 am_cv_CXX_dependencies_compiler_type=none
25642fi
25643
25644fi
25645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
25646$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
25647CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
25648
25649 if
25650 test "x$enable_dependency_tracking" != xno \
25651 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
25652 am__fastdepCXX_TRUE=
25653 am__fastdepCXX_FALSE='#'
25654else
25655 am__fastdepCXX_TRUE='#'
25656 am__fastdepCXX_FALSE=
25657fi
25658
25659
25660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
25661$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025662if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025663 $as_echo_n "(cached) " >&6
25664else
25665
25666 ac_ext=cpp
25667ac_cpp='$CXXCPP $CPPFLAGS'
25668ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25669ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25670ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25671
25672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25673/* end confdefs.h. */
25674
25675int f(int x){return 1;}
25676int f(char x){return 1;}
25677int f(bool x){return 1;}
25678
25679int
25680main ()
25681{
25682bool b = true; return f(b);
25683 ;
25684 return 0;
25685}
25686_ACEOF
25687if ac_fn_cxx_try_compile "$LINENO"; then :
25688 ax_cv_cxx_bool=yes
25689else
25690 ax_cv_cxx_bool=no
25691fi
25692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25693 ac_ext=cpp
25694ac_cpp='$CXXCPP $CPPFLAGS'
25695ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25696ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25697ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25698
25699
25700fi
25701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
25702$as_echo "$ax_cv_cxx_bool" >&6; }
25703if test "$ax_cv_cxx_bool" = yes; then
25704
25705$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
25706
25707fi
25708
25709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
25710$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025711if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025712 $as_echo_n "(cached) " >&6
25713else
25714
25715 ac_ext=cpp
25716ac_cpp='$CXXCPP $CPPFLAGS'
25717ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25718ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25719ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25720
25721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25722/* end confdefs.h. */
25723namespace Outer { namespace Inner { int i = 0; }}
25724int
25725main ()
25726{
25727using namespace Outer::Inner; return i;
25728 ;
25729 return 0;
25730}
25731_ACEOF
25732if ac_fn_cxx_try_compile "$LINENO"; then :
25733 ax_cv_cxx_namespaces=yes
25734else
25735 ax_cv_cxx_namespaces=no
25736fi
25737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25738 ac_ext=cpp
25739ac_cpp='$CXXCPP $CPPFLAGS'
25740ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25741ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25742ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25743
25744
25745fi
25746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
25747$as_echo "$ax_cv_cxx_namespaces" >&6; }
25748if test "$ax_cv_cxx_namespaces" = yes; then
25749
25750$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
25751
25752fi
25753
25754
25755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
25756$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025757if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025758 $as_echo_n "(cached) " >&6
25759else
25760
25761 ac_ext=cpp
25762ac_cpp='$CXXCPP $CPPFLAGS'
25763ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25764ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25765ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25766
25767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25768/* end confdefs.h. */
25769#include <iostream>
25770 std::istream& is = std::cin;
25771int
25772main ()
25773{
25774
25775 ;
25776 return 0;
25777}
25778_ACEOF
25779if ac_fn_cxx_try_compile "$LINENO"; then :
25780 ax_cv_cxx_have_std_namespace=yes
25781else
25782 ax_cv_cxx_have_std_namespace=no
25783fi
25784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25785 ac_ext=cpp
25786ac_cpp='$CXXCPP $CPPFLAGS'
25787ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25788ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25789ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25790
25791
25792fi
25793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
25794$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
25795 if test "$ax_cv_cxx_have_std_namespace" = yes; then
25796
25797$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
25798
25799 fi
25800
25801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
25802$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025803if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025804 $as_echo_n "(cached) " >&6
25805else
25806
25807
25808 ac_ext=cpp
25809ac_cpp='$CXXCPP $CPPFLAGS'
25810ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25811ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25812ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25813
25814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25815/* end confdefs.h. */
25816#include <iostream>
25817#include <map>
25818#include <iomanip>
25819#include <cmath>
25820#ifdef HAVE_NAMESPACES
25821using namespace std;
25822#endif
25823int
25824main ()
25825{
25826return 0;
25827 ;
25828 return 0;
25829}
25830_ACEOF
25831if ac_fn_cxx_try_compile "$LINENO"; then :
25832 ac_cv_cxx_have_std_libs=yes
25833else
25834 ac_cv_cxx_have_std_libs=no
25835fi
25836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25837 ac_ext=cpp
25838ac_cpp='$CXXCPP $CPPFLAGS'
25839ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25840ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25841ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25842
25843
25844fi
25845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
25846$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
25847if test "$ac_cv_cxx_have_std_libs" = yes; then
25848
25849$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
25850
25851fi
25852
cristy3ed852e2009-09-05 21:47:34 +000025853
25854 OPENMP_CXXFLAGS=
25855 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000025856if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025857 enableval=$enable_openmp;
25858fi
25859
25860 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000025861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
25862$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025863if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025864 $as_echo_n "(cached) " >&6
25865else
cristy8b350f62009-11-15 23:12:43 +000025866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25867/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000025868
25869#ifndef _OPENMP
25870 choke me
25871#endif
25872#include <omp.h>
25873int main () { return omp_get_num_threads (); }
25874
25875_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025876if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025877 ac_cv_prog_cxx_openmp='none needed'
25878else
cristy8b350f62009-11-15 23:12:43 +000025879 ac_cv_prog_cxx_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +000025880 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
25881 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +000025882 ac_save_CXXFLAGS=$CXXFLAGS
25883 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000025884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25885/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000025886
25887#ifndef _OPENMP
25888 choke me
25889#endif
25890#include <omp.h>
25891int main () { return omp_get_num_threads (); }
25892
25893_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025894if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025895 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000025896fi
cristy8b350f62009-11-15 23:12:43 +000025897rm -f core conftest.err conftest.$ac_objext \
25898 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025899 CXXFLAGS=$ac_save_CXXFLAGS
25900 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
25901 break
25902 fi
25903 done
25904fi
cristy8b350f62009-11-15 23:12:43 +000025905rm -f core conftest.err conftest.$ac_objext \
25906 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025907fi
cristy8b350f62009-11-15 23:12:43 +000025908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025909$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
25910 case $ac_cv_prog_cxx_openmp in #(
25911 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000025912 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000025913 *)
cristy8b350f62009-11-15 23:12:43 +000025914 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000025915 esac
25916 fi
25917
25918
25919 ac_ext=c
25920ac_cpp='$CPP $CPPFLAGS'
25921ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25922ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25923ac_compiler_gnu=$ac_cv_c_compiler_gnu
25924
25925
cristy8b350f62009-11-15 23:12:43 +000025926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000025927$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
25928 if \
cristy964cb7f2010-04-25 23:18:00 +000025929 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000025930 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000025931 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000025932 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000025933 have_magick_plus_plus='yes'
25934 else
25935 have_magick_plus_plus='no (failed tests)'
25936 fi
cristyad38abe2012-12-23 23:03:21 +000025937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
25938$as_echo "$have_magick_plus_plus" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000025939 LIBS="$OLIBS"
25940fi
cristy73bd4a52010-10-05 11:24:23 +000025941 if test "$have_magick_plus_plus" = 'yes'; then
25942 WITH_MAGICK_PLUS_PLUS_TRUE=
25943 WITH_MAGICK_PLUS_PLUS_FALSE='#'
25944else
25945 WITH_MAGICK_PLUS_PLUS_TRUE='#'
25946 WITH_MAGICK_PLUS_PLUS_FALSE=
25947fi
25948
cristy3ed852e2009-09-05 21:47:34 +000025949
25950# Only check for delegate libraries in subdirectories if requested.
25951if test "$enable_delegate_build" != 'no'; then
25952 # Check for delegate sub-directories and add -I & -L options as required.
25953 # This presumes that delegates are installed as detailed in the ImageMagick
25954 # README. If delegates are installed in a standard location where the
25955 # compiler will automatically find them then these options should not be
25956 # required.
25957
25958 #
25959 # Most delegates have includes in the same directory as the library, but not all...
25960 #
25961 # Includes
cristy2542fc62011-12-06 17:50:25 +000025962 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper/include jbig/libjbig jpeg lcms/include lzma magick png tiff/libtiff ttf/include wand webp wmf/include xml/include zlib; do
cristy3ed852e2009-09-05 21:47:34 +000025963 if test -d "$builddir/$dir"; then
25964 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
25965 else
25966 if test -d "$srcdirfull/$dir"; then
25967 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
25968 fi
25969 fi
25970 done
25971
25972 # Libraries
cristy2542fc62011-12-06 17:50:25 +000025973 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper jbig/libjbig jpeg lcms/src lzma magick png tiff/libtiff ttf/objs wand webp wmf/src xml zlib; do
cristy3ed852e2009-09-05 21:47:34 +000025974 if test -d "$builddir/$dir/.libs"; then
25975 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
25976 else
25977 if test -d "$srcdirfull/$dir/.libs"; then
25978 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
25979 fi
25980 fi
25981 if test -d "$builddir/$dir"; then
25982 LDFLAGS="$LDFLAGS -L$builddir/$dir"
25983 else
25984 if test -d "$srcdirfull/$dir"; then
25985 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
25986 fi
25987 fi
25988 done
25989fi
25990
25991# Assume that delegate headers reside under same directory as ImageMagick
25992# installation prefix.
cristybdabdd62013-03-04 17:43:36 +000025993MAGICK_CPPFLAGS="-I$INCLUDE_DIR/${PACKAGE_NAME}-$MAGICK_MAJOR_VERSION $MAGICK_CPPFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000025994
25995#
25996# Find the X11 RGB database
25997#
cristy8b350f62009-11-15 23:12:43 +000025998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000025999$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026000if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026001 $as_echo_n "(cached) " >&6
26002else
26003 # Look for the header file in a standard set of common directories.
26004# Check X11 before X11Rn because it is often a symlink to the current release.
26005 for ac_dir in \
26006 /lib/usr/lib/X11 \
26007 /usr/X11/lib \
26008 /usr/X11R4/lib \
26009 /usr/X11R5/lib \
26010 /usr/X11R6/lib \
26011 /usr/X11R7/lib \
26012 /usr/X386/lib \
26013 /usr/XFree86/lib/X11 \
26014 /usr/athena/lib \
26015 /usr/lib \
26016 /usr/lib/X11 \
26017 /usr/lib/X11R4 \
26018 /usr/lib/X11R5 \
26019 /usr/lib/X11R6 \
26020 /usr/lib/X11R7 \
26021 /usr/local/X11/lib \
26022 /usr/local/X11R4/lib \
26023 /usr/local/X11R5/lib \
26024 /usr/local/X11R6/lib \
26025 /usr/local/lib \
26026 /usr/local/lib/X11 \
26027 /usr/local/lib/X11R4 \
26028 /usr/local/lib/X11R5 \
26029 /usr/local/lib/X11R6 \
26030 /usr/local/lib/X11R7 \
26031 /usr/local/x11r5/lib \
26032 /usr/lpp/Xamples/lib \
26033 /usr/openwin/lib \
26034 /usr/openwin/share/lib \
26035 /usr/unsupported/lib \
26036 /usr/x386/lib \
26037 ; do
26038 if test -f "$ac_dir/X11/rgb.txt"; then
26039 im_cv_x_configure="$ac_dir/X11/"
26040 break
26041 elif test -f "$ac_dir/rgb.txt"; then
26042 im_cv_x_configure="$ac_dir/"
26043 break
26044 fi
26045
26046 done
26047fi
cristy8b350f62009-11-15 23:12:43 +000026048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000026049$as_echo "$im_cv_x_configure" >&6; }
26050X11_CONFIGURE_PATH="$im_cv_x_configure"
26051case "${build_os}" in
26052 mingw* )
26053 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
26054 ;;
26055esac
26056
26057cat >>confdefs.h <<_ACEOF
26058#define X11_CONFIGURE_PATH "$X11ConfigurePath"
26059_ACEOF
26060
26061
26062#
26063# Find OpenMP library
26064#
26065GOMP_LIBS=''
26066if test "$enable_openmp" != 'no'; then
26067 if test "${GCC}" = "yes"; then
cristy18307f12011-12-30 01:20:16 +000026068 # Open64 (passes for GCC but uses different OpenMP implementation)
26069 if test "x$GOMP_LIBS" = x ; then
26070 if $CC --version 2>&1 | grep Open64 > /dev/null ; then
26071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp_get_num_procs in -lopenmp" >&5
26072$as_echo_n "checking for omp_get_num_procs in -lopenmp... " >&6; }
26073if ${ac_cv_lib_openmp_omp_get_num_procs+:} false; then :
26074 $as_echo_n "(cached) " >&6
26075else
26076 ac_check_lib_save_LIBS=$LIBS
26077LIBS="-lopenmp $LIBS"
26078cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26079/* end confdefs.h. */
26080
26081/* Override any GCC internal prototype to avoid an error.
26082 Use char because int might match the return type of a GCC
26083 builtin and then its argument prototype would still apply. */
26084#ifdef __cplusplus
26085extern "C"
26086#endif
26087char omp_get_num_procs ();
26088int
26089main ()
26090{
26091return omp_get_num_procs ();
26092 ;
26093 return 0;
26094}
26095_ACEOF
26096if ac_fn_c_try_link "$LINENO"; then :
26097 ac_cv_lib_openmp_omp_get_num_procs=yes
26098else
26099 ac_cv_lib_openmp_omp_get_num_procs=no
26100fi
26101rm -f core conftest.err conftest.$ac_objext \
26102 conftest$ac_exeext conftest.$ac_ext
26103LIBS=$ac_check_lib_save_LIBS
26104fi
26105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openmp_omp_get_num_procs" >&5
26106$as_echo "$ac_cv_lib_openmp_omp_get_num_procs" >&6; }
26107if test "x$ac_cv_lib_openmp_omp_get_num_procs" = xyes; then :
26108 GOMP_LIBS="-lopenmp"
26109fi
26110
26111 fi
26112 fi
26113 # GCC
26114 if test "x$GOMP_LIBS" = x ; then
26115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026116$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026117if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026118 $as_echo_n "(cached) " >&6
26119else
26120 ac_check_lib_save_LIBS=$LIBS
26121LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026122cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026123/* end confdefs.h. */
26124
26125/* Override any GCC internal prototype to avoid an error.
26126 Use char because int might match the return type of a GCC
26127 builtin and then its argument prototype would still apply. */
26128#ifdef __cplusplus
26129extern "C"
26130#endif
26131char GOMP_parallel_start ();
26132int
26133main ()
26134{
26135return GOMP_parallel_start ();
26136 ;
26137 return 0;
26138}
26139_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026140if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026141 ac_cv_lib_gomp_GOMP_parallel_start=yes
26142else
cristy8b350f62009-11-15 23:12:43 +000026143 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000026144fi
cristy8b350f62009-11-15 23:12:43 +000026145rm -f core conftest.err conftest.$ac_objext \
26146 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026147LIBS=$ac_check_lib_save_LIBS
26148fi
cristy8b350f62009-11-15 23:12:43 +000026149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000026150$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000026151if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026152 GOMP_LIBS="-lgomp"
26153fi
cristy18307f12011-12-30 01:20:16 +000026154
26155 fi
cristy3ed852e2009-09-05 21:47:34 +000026156 else
cristy18307f12011-12-30 01:20:16 +000026157 # Sun CC
26158 if test "x$GOMP_LIBS" = x ; then
26159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000026160$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026161if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026162 $as_echo_n "(cached) " >&6
26163else
26164 ac_check_lib_save_LIBS=$LIBS
26165LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026166cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026167/* end confdefs.h. */
26168
26169/* Override any GCC internal prototype to avoid an error.
26170 Use char because int might match the return type of a GCC
26171 builtin and then its argument prototype would still apply. */
26172#ifdef __cplusplus
26173extern "C"
26174#endif
26175char sunw_mp_register_warn ();
26176int
26177main ()
26178{
26179return sunw_mp_register_warn ();
26180 ;
26181 return 0;
26182}
26183_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026184if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026185 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
26186else
cristy8b350f62009-11-15 23:12:43 +000026187 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000026188fi
cristy8b350f62009-11-15 23:12:43 +000026189rm -f core conftest.err conftest.$ac_objext \
26190 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026191LIBS=$ac_check_lib_save_LIBS
26192fi
cristy8b350f62009-11-15 23:12:43 +000026193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000026194$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000026195if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026196 GOMP_LIBS="-lmtsk"
26197fi
cristy18307f12011-12-30 01:20:16 +000026198
26199 fi
26200 # AIX xlc
26201 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026203$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026204if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026205 $as_echo_n "(cached) " >&6
26206else
26207 ac_check_lib_save_LIBS=$LIBS
26208LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026209cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026210/* end confdefs.h. */
26211
26212/* Override any GCC internal prototype to avoid an error.
26213 Use char because int might match the return type of a GCC
26214 builtin and then its argument prototype would still apply. */
26215#ifdef __cplusplus
26216extern "C"
26217#endif
26218char _xlsmpFlush ();
26219int
26220main ()
26221{
26222return _xlsmpFlush ();
26223 ;
26224 return 0;
26225}
26226_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026227if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026228 ac_cv_lib_xlsmp__xlsmpFlush=yes
26229else
cristy8b350f62009-11-15 23:12:43 +000026230 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000026231fi
cristy8b350f62009-11-15 23:12:43 +000026232rm -f core conftest.err conftest.$ac_objext \
26233 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026234LIBS=$ac_check_lib_save_LIBS
26235fi
cristy8b350f62009-11-15 23:12:43 +000026236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000026237$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000026238if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026239 GOMP_LIBS="-lxlsmp"
26240fi
cristy18307f12011-12-30 01:20:16 +000026241
26242 fi
26243 # SGI IRIX 6.5 MIPSpro C/C++
26244 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026246$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026247if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026248 $as_echo_n "(cached) " >&6
26249else
26250 ac_check_lib_save_LIBS=$LIBS
26251LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026252cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026253/* end confdefs.h. */
26254
26255/* Override any GCC internal prototype to avoid an error.
26256 Use char because int might match the return type of a GCC
26257 builtin and then its argument prototype would still apply. */
26258#ifdef __cplusplus
26259extern "C"
26260#endif
26261char mp_destroy ();
26262int
26263main ()
26264{
26265return mp_destroy ();
26266 ;
26267 return 0;
26268}
26269_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026270if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026271 ac_cv_lib_mp_mp_destroy=yes
26272else
cristy8b350f62009-11-15 23:12:43 +000026273 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000026274fi
cristy8b350f62009-11-15 23:12:43 +000026275rm -f core conftest.err conftest.$ac_objext \
26276 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026277LIBS=$ac_check_lib_save_LIBS
26278fi
cristy8b350f62009-11-15 23:12:43 +000026279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000026280$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000026281if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026282 GOMP_LIBS="-lmp"
26283fi
cristy18307f12011-12-30 01:20:16 +000026284
26285 fi
cristy3ed852e2009-09-05 21:47:34 +000026286 fi
26287 LIBS="$GOMP_LIBS $LIBS"
26288fi
26289
26290
cristy3ed852e2009-09-05 21:47:34 +000026291
26292
26293#
26294# Check for umem.
26295#
26296have_umem='no'
26297UMEM_LIBS=''
26298if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000026300$as_echo_n "checking for UMEM support ... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000026301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26302$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026303 failed=0
26304 passed=0
cristy8b350f62009-11-15 23:12:43 +000026305 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026306if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026307 passed=`expr $passed + 1`
26308else
26309 failed=`expr $failed + 1`
26310fi
26311
26312
cristy8b350f62009-11-15 23:12:43 +000026313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026314$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026315if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026316 $as_echo_n "(cached) " >&6
26317else
26318 ac_check_lib_save_LIBS=$LIBS
26319LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026320cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026321/* end confdefs.h. */
26322
26323/* Override any GCC internal prototype to avoid an error.
26324 Use char because int might match the return type of a GCC
26325 builtin and then its argument prototype would still apply. */
26326#ifdef __cplusplus
26327extern "C"
26328#endif
26329char umem_alloc ();
26330int
26331main ()
26332{
26333return umem_alloc ();
26334 ;
26335 return 0;
26336}
26337_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026338if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026339 ac_cv_lib_umem_umem_alloc=yes
26340else
cristy8b350f62009-11-15 23:12:43 +000026341 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000026342fi
cristy8b350f62009-11-15 23:12:43 +000026343rm -f core conftest.err conftest.$ac_objext \
26344 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026345LIBS=$ac_check_lib_save_LIBS
26346fi
cristy8b350f62009-11-15 23:12:43 +000026347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026348$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026349if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026350 passed=`expr $passed + 1`
26351else
26352 failed=`expr $failed + 1`
26353fi
26354
cristy8b350f62009-11-15 23:12:43 +000026355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026356$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026357if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026358 $as_echo_n "(cached) " >&6
26359else
26360 ac_check_lib_save_LIBS=$LIBS
26361LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026362cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026363/* end confdefs.h. */
26364
26365/* Override any GCC internal prototype to avoid an error.
26366 Use char because int might match the return type of a GCC
26367 builtin and then its argument prototype would still apply. */
26368#ifdef __cplusplus
26369extern "C"
26370#endif
26371char umem_free ();
26372int
26373main ()
26374{
26375return umem_free ();
26376 ;
26377 return 0;
26378}
26379_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026380if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026381 ac_cv_lib_umem_umem_free=yes
26382else
cristy8b350f62009-11-15 23:12:43 +000026383 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000026384fi
cristy8b350f62009-11-15 23:12:43 +000026385rm -f core conftest.err conftest.$ac_objext \
26386 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026387LIBS=$ac_check_lib_save_LIBS
26388fi
cristy8b350f62009-11-15 23:12:43 +000026389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000026390$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000026391if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026392 passed=`expr $passed + 1`
26393else
26394 failed=`expr $failed + 1`
26395fi
26396
cristy8b350f62009-11-15 23:12:43 +000026397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026398$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
26399 if test $passed -gt 0; then
26400 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000026401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26402$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026403 have_umem='no (failed tests)'
26404 else
26405 UMEM_LIBS='-lumem'
26406 LIBS="$UMEM_LIBS $LIBS"
26407
cristy8b350f62009-11-15 23:12:43 +000026408$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026409
cristyad38abe2012-12-23 23:03:21 +000026410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26411$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026412 have_umem='yes'
26413 fi
26414 else
cristyad38abe2012-12-23 23:03:21 +000026415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26416$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026417 fi
26418fi
cristy73bd4a52010-10-05 11:24:23 +000026419 if test "$have_umem" = 'yes'; then
26420 HasUMEM_TRUE=
26421 HasUMEM_FALSE='#'
26422else
26423 HasUMEM_TRUE='#'
26424 HasUMEM_FALSE=
26425fi
26426
cristy3ed852e2009-09-05 21:47:34 +000026427
26428
26429#
26430# Add support for ccmalloc memory debugging library if requested
26431#
26432have_ccmalloc='no'
26433CCMALLOC_LIBS=''
26434if test "$enable_ccmalloc" = 'yes'; then
26435 # Extract the first word of "ccmalloc", so it can be a program name with args.
26436set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000026437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000026438$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026439if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026440 $as_echo_n "(cached) " >&6
26441else
26442 case $CCMALLOCDelegate in
26443 [\\/]* | ?:[\\/]*)
26444 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
26445 ;;
26446 *)
26447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26448for as_dir in $PATH
26449do
26450 IFS=$as_save_IFS
26451 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000026452 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000026453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000026454 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000026455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026456 break 2
26457 fi
26458done
cristy8b350f62009-11-15 23:12:43 +000026459 done
cristy3ed852e2009-09-05 21:47:34 +000026460IFS=$as_save_IFS
26461
26462 ;;
26463esac
26464fi
26465CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
26466if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000026467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026468$as_echo "$CCMALLOCDelegate" >&6; }
26469else
cristy8b350f62009-11-15 23:12:43 +000026470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026471$as_echo "no" >&6; }
26472fi
26473
26474
26475 if test -n "$CCMALLOCDelegate"; then
26476 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
26477 OLIBS="$LIBS"
26478 # Assume that gcc is used with ccmalloc.
26479 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000026480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026481$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026482if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026483 $as_echo_n "(cached) " >&6
26484else
26485 ac_check_lib_save_LIBS=$LIBS
26486LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026487cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026488/* end confdefs.h. */
26489
26490/* Override any GCC internal prototype to avoid an error.
26491 Use char because int might match the return type of a GCC
26492 builtin and then its argument prototype would still apply. */
26493#ifdef __cplusplus
26494extern "C"
26495#endif
26496char ccmalloc_malloc ();
26497int
26498main ()
26499{
26500return ccmalloc_malloc ();
26501 ;
26502 return 0;
26503}
26504_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026505if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026506 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
26507else
cristy8b350f62009-11-15 23:12:43 +000026508 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000026509fi
cristy8b350f62009-11-15 23:12:43 +000026510rm -f core conftest.err conftest.$ac_objext \
26511 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026512LIBS=$ac_check_lib_save_LIBS
26513fi
cristy8b350f62009-11-15 23:12:43 +000026514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026515$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026516if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026517 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
26518fi
26519
26520 if test -n "$CCMALLOC_LIBS"; then
26521 LIBS="$OLIBS"
26522 LIBS="$LIBS $CCMALLOC_LIBS"
26523 have_ccmalloc='yes'
26524 else
26525 LIBS="$OLIBS"
26526 fi
26527 fi
26528fi
26529
26530#
cristy944e51f2013-04-16 18:45:02 +000026531# Add support for 'huge pages' if requested
26532#
26533if test "x$enable_hugepages" != "xno"; then :
26534
26535
26536$as_echo "#define HAVE_HUGEPAGES 1" >>confdefs.h
26537
26538
26539fi
26540
26541#
cristy3ed852e2009-09-05 21:47:34 +000026542# Add support for efence memory debugging library if requested
26543#
26544if test "$enable_efence" = 'yes'; then
26545 EFENCE_LIBS='-lefence'
26546 LIBS="$EFENCE_LIBS $LIBS"
26547fi
26548
cristy3ed852e2009-09-05 21:47:34 +000026549
26550#
26551# Check for BZLIB
26552#
26553
26554
26555# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000026556if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026557 withval=$with_bzlib; with_bzlib=$withval
26558else
26559 with_bzlib='yes'
26560fi
26561
26562
26563if test "$with_bzlib" != 'yes'; then
26564 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
26565fi
26566
26567have_bzlib='no'
26568if test "$with_bzlib" != 'no'; then
26569 BZLIB_LIBS=''
cristyad38abe2012-12-23 23:03:21 +000026570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26571$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000026573$as_echo_n "checking for BZLIB... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000026574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26575$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026576 failed=0
26577 passed=0
26578 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000026579 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026580if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026581 passed=`expr $passed + 1`
26582else
26583 failed=`expr $failed + 1`
26584fi
26585
26586
cristy8b350f62009-11-15 23:12:43 +000026587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026588$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026589if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026590 $as_echo_n "(cached) " >&6
26591else
26592 ac_check_lib_save_LIBS=$LIBS
26593LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026594cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026595/* end confdefs.h. */
26596
26597/* Override any GCC internal prototype to avoid an error.
26598 Use char because int might match the return type of a GCC
26599 builtin and then its argument prototype would still apply. */
26600#ifdef __cplusplus
26601extern "C"
26602#endif
26603char BZ2_bzDecompress ();
26604int
26605main ()
26606{
26607return BZ2_bzDecompress ();
26608 ;
26609 return 0;
26610}
26611_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026612if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026613 ac_cv_lib_bz2_BZ2_bzDecompress=yes
26614else
cristy8b350f62009-11-15 23:12:43 +000026615 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000026616fi
cristy8b350f62009-11-15 23:12:43 +000026617rm -f core conftest.err conftest.$ac_objext \
26618 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026619LIBS=$ac_check_lib_save_LIBS
26620fi
cristy8b350f62009-11-15 23:12:43 +000026621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026622$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026623if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026624 found_libbz=`expr $found_libbz + 1`
26625fi
26626
26627 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026629$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026630if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026631 $as_echo_n "(cached) " >&6
26632else
26633 ac_check_lib_save_LIBS=$LIBS
26634LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026635cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026636/* end confdefs.h. */
26637
26638/* Override any GCC internal prototype to avoid an error.
26639 Use char because int might match the return type of a GCC
26640 builtin and then its argument prototype would still apply. */
26641#ifdef __cplusplus
26642extern "C"
26643#endif
26644char _imp__BZ2_decompress ();
26645int
26646main ()
26647{
26648return _imp__BZ2_decompress ();
26649 ;
26650 return 0;
26651}
26652_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026653if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026654 ac_cv_lib_bz2__imp__BZ2_decompress=yes
26655else
cristy8b350f62009-11-15 23:12:43 +000026656 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000026657fi
cristy8b350f62009-11-15 23:12:43 +000026658rm -f core conftest.err conftest.$ac_objext \
26659 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026660LIBS=$ac_check_lib_save_LIBS
26661fi
cristy8b350f62009-11-15 23:12:43 +000026662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026663$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026664if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026665 found_libbz=`expr $found_libbz + 1`
26666fi
26667
26668 fi
26669 if test $found_libbz -gt 0; then
26670 passed=`expr $passed + 1`
26671 else
26672 failed=`expr $failed + 1`
26673 fi
cristy8b350f62009-11-15 23:12:43 +000026674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026675$as_echo_n "checking if BZLIB package is complete... " >&6; }
26676 if test $passed -gt 0; then
26677 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000026678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26679$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026680 have_bzlib='no (failed tests)'
26681 else
26682 BZLIB_LIBS='-lbz2'
26683 LIBS="$BZLIB_LIBS $LIBS"
26684
cristy8b350f62009-11-15 23:12:43 +000026685$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026686
cristyad38abe2012-12-23 23:03:21 +000026687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26688$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026689 have_bzlib='yes'
26690 fi
26691 else
cristyad38abe2012-12-23 23:03:21 +000026692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26693$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026694 fi
26695fi
cristy73bd4a52010-10-05 11:24:23 +000026696 if test "$have_bzlib" = 'yes'; then
26697 BZLIB_DELEGATE_TRUE=
26698 BZLIB_DELEGATE_FALSE='#'
26699else
26700 BZLIB_DELEGATE_TRUE='#'
26701 BZLIB_DELEGATE_FALSE=
26702fi
26703
cristy3ed852e2009-09-05 21:47:34 +000026704
26705
26706#
26707# Find the X11 include and library directories.
26708#
26709IPC_LIBS=''
26710X11_LIBS=''
26711XEXT_LIBS=''
26712XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000026713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000026714$as_echo_n "checking for X... " >&6; }
26715
26716
26717# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000026718if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000026719 withval=$with_x;
26720fi
26721
26722# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
26723if test "x$with_x" = xno; then
26724 # The user explicitly disabled X.
26725 have_x=disabled
26726else
26727 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000026728 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000026729 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000026730 $as_echo_n "(cached) " >&6
26731else
26732 # One or both of the vars are not set, and there is no cached value.
26733ac_x_includes=no ac_x_libraries=no
26734rm -f -r conftest.dir
26735if mkdir conftest.dir; then
26736 cd conftest.dir
26737 cat >Imakefile <<'_ACEOF'
26738incroot:
26739 @echo incroot='${INCROOT}'
26740usrlibdir:
26741 @echo usrlibdir='${USRLIBDIR}'
26742libdir:
26743 @echo libdir='${LIBDIR}'
26744_ACEOF
26745 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000026746 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000026747 for ac_var in incroot usrlibdir libdir; do
26748 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
26749 done
26750 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
26751 for ac_extension in a so sl dylib la dll; do
26752 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
26753 test -f "$ac_im_libdir/libX11.$ac_extension"; then
26754 ac_im_usrlibdir=$ac_im_libdir; break
26755 fi
26756 done
26757 # Screen out bogus values from the imake configuration. They are
26758 # bogus both because they are the default anyway, and because
26759 # using them would break gcc on systems where it needs fixed includes.
26760 case $ac_im_incroot in
26761 /usr/include) ac_x_includes= ;;
26762 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
26763 esac
26764 case $ac_im_usrlibdir in
26765 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
26766 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
26767 esac
26768 fi
26769 cd ..
26770 rm -f -r conftest.dir
26771fi
26772
26773# Standard set of common directories for X headers.
26774# Check X11 before X11Rn because it is often a symlink to the current release.
26775ac_x_header_dirs='
26776/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000026777/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000026778/usr/X11R6/include
26779/usr/X11R5/include
26780/usr/X11R4/include
26781
26782/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000026783/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000026784/usr/include/X11R6
26785/usr/include/X11R5
26786/usr/include/X11R4
26787
26788/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000026789/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000026790/usr/local/X11R6/include
26791/usr/local/X11R5/include
26792/usr/local/X11R4/include
26793
26794/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000026795/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000026796/usr/local/include/X11R6
26797/usr/local/include/X11R5
26798/usr/local/include/X11R4
26799
26800/usr/X386/include
26801/usr/x386/include
26802/usr/XFree86/include/X11
26803
26804/usr/include
26805/usr/local/include
26806/usr/unsupported/include
26807/usr/athena/include
26808/usr/local/x11r5/include
26809/usr/lpp/Xamples/include
26810
26811/usr/openwin/include
26812/usr/openwin/share/include'
26813
26814if test "$ac_x_includes" = no; then
26815 # Guess where to find include files, by looking for Xlib.h.
26816 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000026817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026818/* end confdefs.h. */
26819#include <X11/Xlib.h>
26820_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026821if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000026822 # We can compile using X headers with no special include directory.
26823ac_x_includes=
26824else
cristyc7083c12009-10-14 03:16:55 +000026825 for ac_dir in $ac_x_header_dirs; do
26826 if test -r "$ac_dir/X11/Xlib.h"; then
26827 ac_x_includes=$ac_dir
26828 break
26829 fi
26830done
26831fi
cristyda16f162011-02-19 23:52:17 +000026832rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026833fi # $ac_x_includes = no
26834
26835if test "$ac_x_libraries" = no; then
26836 # Check for the libraries.
26837 # See if we find them without any special options.
26838 # Don't add to $LIBS permanently.
26839 ac_save_LIBS=$LIBS
26840 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026842/* end confdefs.h. */
26843#include <X11/Xlib.h>
26844int
26845main ()
26846{
26847XrmInitialize ()
26848 ;
26849 return 0;
26850}
26851_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026852if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000026853 LIBS=$ac_save_LIBS
26854# We can link X programs with no special library path.
26855ac_x_libraries=
26856else
cristy8b350f62009-11-15 23:12:43 +000026857 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000026858for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
26859do
26860 # Don't even attempt the hair of trying to link an X program!
26861 for ac_extension in a so sl dylib la dll; do
26862 if test -r "$ac_dir/libX11.$ac_extension"; then
26863 ac_x_libraries=$ac_dir
26864 break 2
26865 fi
26866 done
26867done
26868fi
cristy8b350f62009-11-15 23:12:43 +000026869rm -f core conftest.err conftest.$ac_objext \
26870 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026871fi # $ac_x_libraries = no
26872
26873case $ac_x_includes,$ac_x_libraries in #(
26874 no,* | *,no | *\'*)
26875 # Didn't find X, or a directory has "'" in its name.
26876 ac_cv_have_x="have_x=no";; #(
26877 *)
26878 # Record where we found X for the cache.
26879 ac_cv_have_x="have_x=yes\
26880 ac_x_includes='$ac_x_includes'\
26881 ac_x_libraries='$ac_x_libraries'"
26882esac
26883fi
26884;; #(
26885 *) have_x=yes;;
26886 esac
26887 eval "$ac_cv_have_x"
26888fi # $with_x != no
26889
26890if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000026891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000026892$as_echo "$have_x" >&6; }
26893 no_x=yes
26894else
26895 # If each of the values was on the command line, it overrides each guess.
26896 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
26897 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
26898 # Update the cache value to reflect the command line values.
26899 ac_cv_have_x="have_x=yes\
26900 ac_x_includes='$x_includes'\
26901 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000026902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000026903$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
26904fi
26905
cristy3ed852e2009-09-05 21:47:34 +000026906if test "$no_x" = yes; then
26907 # Not all programs may use this symbol, but it does not hurt to define it.
26908
cristy8b350f62009-11-15 23:12:43 +000026909$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026910
26911 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
26912else
26913 if test -n "$x_includes"; then
26914 X_CFLAGS="$X_CFLAGS -I$x_includes"
26915 fi
26916
26917 # It would also be nice to do this for all -L options, not just this one.
26918 if test -n "$x_libraries"; then
26919 X_LIBS="$X_LIBS -L$x_libraries"
26920 # For Solaris; some versions of Sun CC require a space after -R and
26921 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000026922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000026923$as_echo_n "checking whether -R must be followed by a space... " >&6; }
26924 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
26925 ac_xsave_c_werror_flag=$ac_c_werror_flag
26926 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000026927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026928/* end confdefs.h. */
26929
26930int
26931main ()
26932{
26933
26934 ;
26935 return 0;
26936}
26937_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026938if ac_fn_c_try_link "$LINENO"; then :
26939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026940$as_echo "no" >&6; }
26941 X_LIBS="$X_LIBS -R$x_libraries"
26942else
cristy8b350f62009-11-15 23:12:43 +000026943 LIBS="$ac_xsave_LIBS -R $x_libraries"
26944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026945/* end confdefs.h. */
26946
26947int
26948main ()
26949{
26950
26951 ;
26952 return 0;
26953}
26954_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026955if ac_fn_c_try_link "$LINENO"; then :
26956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026957$as_echo "yes" >&6; }
26958 X_LIBS="$X_LIBS -R $x_libraries"
26959else
cristy8b350f62009-11-15 23:12:43 +000026960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000026961$as_echo "neither works" >&6; }
26962fi
cristy8b350f62009-11-15 23:12:43 +000026963rm -f core conftest.err conftest.$ac_objext \
26964 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026965fi
cristy8b350f62009-11-15 23:12:43 +000026966rm -f core conftest.err conftest.$ac_objext \
26967 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026968 ac_c_werror_flag=$ac_xsave_c_werror_flag
26969 LIBS=$ac_xsave_LIBS
26970 fi
26971
26972 # Check for system-dependent libraries X programs must link with.
26973 # Do this before checking for the system-independent R6 libraries
26974 # (-lICE), since we may need -lsocket or whatever for X linking.
26975
26976 if test "$ISC" = yes; then
26977 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
26978 else
26979 # Martyn Johnson says this is needed for Ultrix, if the X
26980 # libraries were built with DECnet support. And Karl Berry says
26981 # the Alpha needs dnet_stub (dnet does not exist).
26982 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000026983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026984/* end confdefs.h. */
26985
26986/* Override any GCC internal prototype to avoid an error.
26987 Use char because int might match the return type of a GCC
26988 builtin and then its argument prototype would still apply. */
26989#ifdef __cplusplus
26990extern "C"
26991#endif
26992char XOpenDisplay ();
26993int
26994main ()
26995{
26996return XOpenDisplay ();
26997 ;
26998 return 0;
26999}
27000_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027001if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027002
cristy8b350f62009-11-15 23:12:43 +000027003else
27004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000027005$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027006if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027007 $as_echo_n "(cached) " >&6
27008else
27009 ac_check_lib_save_LIBS=$LIBS
27010LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027011cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027012/* end confdefs.h. */
27013
27014/* Override any GCC internal prototype to avoid an error.
27015 Use char because int might match the return type of a GCC
27016 builtin and then its argument prototype would still apply. */
27017#ifdef __cplusplus
27018extern "C"
27019#endif
27020char dnet_ntoa ();
27021int
27022main ()
27023{
27024return dnet_ntoa ();
27025 ;
27026 return 0;
27027}
27028_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027029if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027030 ac_cv_lib_dnet_dnet_ntoa=yes
27031else
cristy8b350f62009-11-15 23:12:43 +000027032 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027033fi
cristy8b350f62009-11-15 23:12:43 +000027034rm -f core conftest.err conftest.$ac_objext \
27035 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027036LIBS=$ac_check_lib_save_LIBS
27037fi
cristy8b350f62009-11-15 23:12:43 +000027038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027039$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027040if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027041 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
27042fi
27043
27044 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000027045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000027046$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027047if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027048 $as_echo_n "(cached) " >&6
27049else
27050 ac_check_lib_save_LIBS=$LIBS
27051LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027052cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027053/* end confdefs.h. */
27054
27055/* Override any GCC internal prototype to avoid an error.
27056 Use char because int might match the return type of a GCC
27057 builtin and then its argument prototype would still apply. */
27058#ifdef __cplusplus
27059extern "C"
27060#endif
27061char dnet_ntoa ();
27062int
27063main ()
27064{
27065return dnet_ntoa ();
27066 ;
27067 return 0;
27068}
27069_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027070if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027071 ac_cv_lib_dnet_stub_dnet_ntoa=yes
27072else
cristy8b350f62009-11-15 23:12:43 +000027073 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027074fi
cristy8b350f62009-11-15 23:12:43 +000027075rm -f core conftest.err conftest.$ac_objext \
27076 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027077LIBS=$ac_check_lib_save_LIBS
27078fi
cristy8b350f62009-11-15 23:12:43 +000027079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027080$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027081if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027082 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
27083fi
27084
27085 fi
27086fi
cristy8b350f62009-11-15 23:12:43 +000027087rm -f core conftest.err conftest.$ac_objext \
27088 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027089 LIBS="$ac_xsave_LIBS"
27090
27091 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27092 # to get the SysV transport functions.
27093 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27094 # needs -lnsl.
27095 # The nsl library prevents programs from opening the X display
27096 # on Irix 5.2, according to T.E. Dickey.
27097 # The functions gethostbyname, getservbyname, and inet_addr are
27098 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000027099 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000027100if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027101
cristy3ed852e2009-09-05 21:47:34 +000027102fi
27103
cristy3ed852e2009-09-05 21:47:34 +000027104 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027106$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027107if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027108 $as_echo_n "(cached) " >&6
27109else
27110 ac_check_lib_save_LIBS=$LIBS
27111LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027112cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027113/* end confdefs.h. */
27114
27115/* Override any GCC internal prototype to avoid an error.
27116 Use char because int might match the return type of a GCC
27117 builtin and then its argument prototype would still apply. */
27118#ifdef __cplusplus
27119extern "C"
27120#endif
27121char gethostbyname ();
27122int
27123main ()
27124{
27125return gethostbyname ();
27126 ;
27127 return 0;
27128}
27129_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027130if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027131 ac_cv_lib_nsl_gethostbyname=yes
27132else
cristy8b350f62009-11-15 23:12:43 +000027133 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027134fi
cristy8b350f62009-11-15 23:12:43 +000027135rm -f core conftest.err conftest.$ac_objext \
27136 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027137LIBS=$ac_check_lib_save_LIBS
27138fi
cristy8b350f62009-11-15 23:12:43 +000027139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027140$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027141if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027142 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
27143fi
27144
27145 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000027147$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027148if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027149 $as_echo_n "(cached) " >&6
27150else
27151 ac_check_lib_save_LIBS=$LIBS
27152LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027153cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027154/* end confdefs.h. */
27155
27156/* Override any GCC internal prototype to avoid an error.
27157 Use char because int might match the return type of a GCC
27158 builtin and then its argument prototype would still apply. */
27159#ifdef __cplusplus
27160extern "C"
27161#endif
27162char gethostbyname ();
27163int
27164main ()
27165{
27166return gethostbyname ();
27167 ;
27168 return 0;
27169}
27170_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027171if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027172 ac_cv_lib_bsd_gethostbyname=yes
27173else
cristy8b350f62009-11-15 23:12:43 +000027174 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027175fi
cristy8b350f62009-11-15 23:12:43 +000027176rm -f core conftest.err conftest.$ac_objext \
27177 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027178LIBS=$ac_check_lib_save_LIBS
27179fi
cristy8b350f62009-11-15 23:12:43 +000027180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027181$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027182if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027183 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27184fi
27185
27186 fi
27187 fi
27188
27189 # lieder@skyler.mavd.honeywell.com says without -lsocket,
27190 # socket/setsockopt and other routines are undefined under SCO ODT
27191 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
27192 # on later versions), says Simon Leinen: it contains gethostby*
27193 # variants that don't use the name server (or something). -lsocket
27194 # must be given before -lnsl if both are needed. We assume that
27195 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000027196 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000027197if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027198
cristy3ed852e2009-09-05 21:47:34 +000027199fi
27200
cristy3ed852e2009-09-05 21:47:34 +000027201 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000027202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000027203$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027204if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027205 $as_echo_n "(cached) " >&6
27206else
27207 ac_check_lib_save_LIBS=$LIBS
27208LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027209cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027210/* end confdefs.h. */
27211
27212/* Override any GCC internal prototype to avoid an error.
27213 Use char because int might match the return type of a GCC
27214 builtin and then its argument prototype would still apply. */
27215#ifdef __cplusplus
27216extern "C"
27217#endif
27218char connect ();
27219int
27220main ()
27221{
27222return connect ();
27223 ;
27224 return 0;
27225}
27226_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027227if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027228 ac_cv_lib_socket_connect=yes
27229else
cristy8b350f62009-11-15 23:12:43 +000027230 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000027231fi
cristy8b350f62009-11-15 23:12:43 +000027232rm -f core conftest.err conftest.$ac_objext \
27233 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027234LIBS=$ac_check_lib_save_LIBS
27235fi
cristy8b350f62009-11-15 23:12:43 +000027236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000027237$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000027238if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027239 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27240fi
27241
27242 fi
27243
27244 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000027245 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000027246if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027247
cristy3ed852e2009-09-05 21:47:34 +000027248fi
27249
cristy3ed852e2009-09-05 21:47:34 +000027250 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000027251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000027252$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027253if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027254 $as_echo_n "(cached) " >&6
27255else
27256 ac_check_lib_save_LIBS=$LIBS
27257LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027258cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027259/* end confdefs.h. */
27260
27261/* Override any GCC internal prototype to avoid an error.
27262 Use char because int might match the return type of a GCC
27263 builtin and then its argument prototype would still apply. */
27264#ifdef __cplusplus
27265extern "C"
27266#endif
27267char remove ();
27268int
27269main ()
27270{
27271return remove ();
27272 ;
27273 return 0;
27274}
27275_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027276if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027277 ac_cv_lib_posix_remove=yes
27278else
cristy8b350f62009-11-15 23:12:43 +000027279 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000027280fi
cristy8b350f62009-11-15 23:12:43 +000027281rm -f core conftest.err conftest.$ac_objext \
27282 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027283LIBS=$ac_check_lib_save_LIBS
27284fi
cristy8b350f62009-11-15 23:12:43 +000027285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000027286$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000027287if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027288 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27289fi
27290
27291 fi
27292
27293 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000027294 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000027295if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027296
cristy3ed852e2009-09-05 21:47:34 +000027297fi
27298
cristy3ed852e2009-09-05 21:47:34 +000027299 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000027300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027301$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027302if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027303 $as_echo_n "(cached) " >&6
27304else
27305 ac_check_lib_save_LIBS=$LIBS
27306LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027307cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027308/* end confdefs.h. */
27309
27310/* Override any GCC internal prototype to avoid an error.
27311 Use char because int might match the return type of a GCC
27312 builtin and then its argument prototype would still apply. */
27313#ifdef __cplusplus
27314extern "C"
27315#endif
27316char shmat ();
27317int
27318main ()
27319{
27320return shmat ();
27321 ;
27322 return 0;
27323}
27324_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027325if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027326 ac_cv_lib_ipc_shmat=yes
27327else
cristy8b350f62009-11-15 23:12:43 +000027328 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000027329fi
cristy8b350f62009-11-15 23:12:43 +000027330rm -f core conftest.err conftest.$ac_objext \
27331 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027332LIBS=$ac_check_lib_save_LIBS
27333fi
cristy8b350f62009-11-15 23:12:43 +000027334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000027335$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000027336if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027337 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27338fi
27339
27340 fi
27341 fi
27342
27343 # Check for libraries that X11R6 Xt/Xaw programs need.
27344 ac_save_LDFLAGS=$LDFLAGS
27345 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27346 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27347 # check for ICE first), but we must link in the order -lSM -lICE or
27348 # we get undefined symbols. So assume we have SM if we have ICE.
27349 # These have to be linked with before -lX11, unlike the other
27350 # libraries we check for below, so use a different variable.
27351 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000027352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000027353$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027354if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027355 $as_echo_n "(cached) " >&6
27356else
27357 ac_check_lib_save_LIBS=$LIBS
27358LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027359cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027360/* end confdefs.h. */
27361
27362/* Override any GCC internal prototype to avoid an error.
27363 Use char because int might match the return type of a GCC
27364 builtin and then its argument prototype would still apply. */
27365#ifdef __cplusplus
27366extern "C"
27367#endif
27368char IceConnectionNumber ();
27369int
27370main ()
27371{
27372return IceConnectionNumber ();
27373 ;
27374 return 0;
27375}
27376_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027377if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027378 ac_cv_lib_ICE_IceConnectionNumber=yes
27379else
cristy8b350f62009-11-15 23:12:43 +000027380 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000027381fi
cristy8b350f62009-11-15 23:12:43 +000027382rm -f core conftest.err conftest.$ac_objext \
27383 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027384LIBS=$ac_check_lib_save_LIBS
27385fi
cristy8b350f62009-11-15 23:12:43 +000027386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000027387$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000027388if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027389 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27390fi
27391
27392 LDFLAGS=$ac_save_LDFLAGS
27393
27394fi
27395
27396if test "$no_x" != 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000027397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27398$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000027400$as_echo_n "checking for X11... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27402$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027403 LDFLAGS="$LDFLAGS $X_LIBS"
27404 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
27405 LIBS="$X11_LIBS $LIBS"
27406 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
27407
27408
cristy8b350f62009-11-15 23:12:43 +000027409$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027410
27411 #
27412 # Check for X11 shared memory extension
27413 #
27414 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000027415 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000027416if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027417 have_shmctl='yes'
27418fi
27419
27420 if test "$have_shmctl" != 'yes'; then
27421 PERSIST_LIBS=$LIBS
27422 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000027423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027424/* end confdefs.h. */
27425
27426/* Override any GCC internal prototype to avoid an error.
27427 Use char because int might match the return type of a GCC
27428 builtin and then its argument prototype would still apply. */
27429#ifdef __cplusplus
27430extern "C"
27431#endif
27432char shmctl ();
27433int
27434main ()
27435{
27436return shmctl ();
27437 ;
27438 return 0;
27439}
27440_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027441if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027442 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000027443fi
cristy8b350f62009-11-15 23:12:43 +000027444rm -f core conftest.err conftest.$ac_objext \
27445 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027446 LIBS=$PERSIST_LIBS
27447 fi
27448
27449 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027451$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027452if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027453 $as_echo_n "(cached) " >&6
27454else
27455 ac_check_lib_save_LIBS=$LIBS
27456LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027457cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027458/* end confdefs.h. */
27459
27460/* Override any GCC internal prototype to avoid an error.
27461 Use char because int might match the return type of a GCC
27462 builtin and then its argument prototype would still apply. */
27463#ifdef __cplusplus
27464extern "C"
27465#endif
27466char XShmAttach ();
27467int
27468main ()
27469{
27470return XShmAttach ();
27471 ;
27472 return 0;
27473}
27474_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027475if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027476 ac_cv_lib_Xext_XShmAttach=yes
27477else
cristy8b350f62009-11-15 23:12:43 +000027478 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000027479fi
cristy8b350f62009-11-15 23:12:43 +000027480rm -f core conftest.err conftest.$ac_objext \
27481 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027482LIBS=$ac_check_lib_save_LIBS
27483fi
cristy8b350f62009-11-15 23:12:43 +000027484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000027485$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000027486if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027487 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027488$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027489
27490fi
27491
27492 fi
27493
27494 #
27495 # Check for X11 shape extension
27496 #
cristy8b350f62009-11-15 23:12:43 +000027497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027498$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027499if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027500 $as_echo_n "(cached) " >&6
27501else
27502 ac_check_lib_save_LIBS=$LIBS
27503LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027504cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027505/* end confdefs.h. */
27506
27507/* Override any GCC internal prototype to avoid an error.
27508 Use char because int might match the return type of a GCC
27509 builtin and then its argument prototype would still apply. */
27510#ifdef __cplusplus
27511extern "C"
27512#endif
27513char XShapeCombineMask ();
27514int
27515main ()
27516{
27517return XShapeCombineMask ();
27518 ;
27519 return 0;
27520}
27521_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027522if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027523 ac_cv_lib_Xext_XShapeCombineMask=yes
27524else
cristy8b350f62009-11-15 23:12:43 +000027525 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000027526fi
cristy8b350f62009-11-15 23:12:43 +000027527rm -f core conftest.err conftest.$ac_objext \
27528 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027529LIBS=$ac_check_lib_save_LIBS
27530fi
cristy8b350f62009-11-15 23:12:43 +000027531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000027532$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000027533if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027534 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027535$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027536
27537fi
27538
cristy8b350f62009-11-15 23:12:43 +000027539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000027540$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027541if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027542 $as_echo_n "(cached) " >&6
27543else
27544 ac_check_lib_save_LIBS=$LIBS
27545LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027546cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027547/* end confdefs.h. */
27548
27549/* Override any GCC internal prototype to avoid an error.
27550 Use char because int might match the return type of a GCC
27551 builtin and then its argument prototype would still apply. */
27552#ifdef __cplusplus
27553extern "C"
27554#endif
27555char XtSetEventDispatcher ();
27556int
27557main ()
27558{
27559return XtSetEventDispatcher ();
27560 ;
27561 return 0;
27562}
27563_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027564if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027565 ac_cv_lib_Xt_XtSetEventDispatcher=yes
27566else
cristy8b350f62009-11-15 23:12:43 +000027567 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000027568fi
cristy8b350f62009-11-15 23:12:43 +000027569rm -f core conftest.err conftest.$ac_objext \
27570 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027571LIBS=$ac_check_lib_save_LIBS
27572fi
cristy8b350f62009-11-15 23:12:43 +000027573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000027574$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000027575if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027576 XT_LIBS='-lXt'
27577fi
27578
27579 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
27580fi
27581if test "$no_x" != 'yes'; then
27582 have_x='yes'
27583else
27584 have_x='no'
27585fi
cristy73bd4a52010-10-05 11:24:23 +000027586 if test "$have_x" = 'yes'; then
27587 X11_DELEGATE_TRUE=
27588 X11_DELEGATE_FALSE='#'
27589else
27590 X11_DELEGATE_TRUE='#'
27591 X11_DELEGATE_FALSE=
27592fi
27593
cristy3ed852e2009-09-05 21:47:34 +000027594
27595
27596
27597
27598#
27599# Check for ZLIB
27600#
27601
27602# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000027603if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027604 withval=$with_zlib; with_zlib=$withval
27605else
27606 with_zlib='yes'
27607fi
27608
27609
27610if test "$with_zlib" != 'yes'; then
27611 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
27612fi
27613
27614have_zlib='no'
27615ZLIB_LIBS=''
27616if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000027617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27618$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000027620$as_echo_n "checking for ZLIB... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27622$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027623 ZLIB_LIBS=''
27624 failed=0
27625 passed=0
cristy8b350f62009-11-15 23:12:43 +000027626 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027627if test "x$ac_cv_header_zconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027628 passed=`expr $passed + 1`
27629else
27630 failed=`expr $failed + 1`
27631fi
27632
27633
cristy8b350f62009-11-15 23:12:43 +000027634 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027635if test "x$ac_cv_header_zlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027636 passed=`expr $passed + 1`
27637else
27638 failed=`expr $failed + 1`
27639fi
27640
27641
cristy8b350f62009-11-15 23:12:43 +000027642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027643$as_echo_n "checking for compress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027644if ${ac_cv_lib_z_compress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027645 $as_echo_n "(cached) " >&6
27646else
27647 ac_check_lib_save_LIBS=$LIBS
27648LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027649cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027650/* end confdefs.h. */
27651
27652/* Override any GCC internal prototype to avoid an error.
27653 Use char because int might match the return type of a GCC
27654 builtin and then its argument prototype would still apply. */
27655#ifdef __cplusplus
27656extern "C"
27657#endif
27658char compress ();
27659int
27660main ()
27661{
27662return compress ();
27663 ;
27664 return 0;
27665}
27666_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027667if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027668 ac_cv_lib_z_compress=yes
27669else
cristy8b350f62009-11-15 23:12:43 +000027670 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000027671fi
cristy8b350f62009-11-15 23:12:43 +000027672rm -f core conftest.err conftest.$ac_objext \
27673 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027674LIBS=$ac_check_lib_save_LIBS
27675fi
cristy8b350f62009-11-15 23:12:43 +000027676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027677$as_echo "$ac_cv_lib_z_compress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027678if test "x$ac_cv_lib_z_compress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027679 passed=`expr $passed + 1`
27680else
27681 failed=`expr $failed + 1`
27682fi
27683
cristy8b350f62009-11-15 23:12:43 +000027684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027685$as_echo_n "checking for uncompress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027686if ${ac_cv_lib_z_uncompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027687 $as_echo_n "(cached) " >&6
27688else
27689 ac_check_lib_save_LIBS=$LIBS
27690LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027691cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027692/* end confdefs.h. */
27693
27694/* Override any GCC internal prototype to avoid an error.
27695 Use char because int might match the return type of a GCC
27696 builtin and then its argument prototype would still apply. */
27697#ifdef __cplusplus
27698extern "C"
27699#endif
27700char uncompress ();
27701int
27702main ()
27703{
27704return uncompress ();
27705 ;
27706 return 0;
27707}
27708_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027709if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027710 ac_cv_lib_z_uncompress=yes
27711else
cristy8b350f62009-11-15 23:12:43 +000027712 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000027713fi
cristy8b350f62009-11-15 23:12:43 +000027714rm -f core conftest.err conftest.$ac_objext \
27715 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027716LIBS=$ac_check_lib_save_LIBS
27717fi
cristy8b350f62009-11-15 23:12:43 +000027718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027719$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027720if test "x$ac_cv_lib_z_uncompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027721 passed=`expr $passed + 1`
27722else
27723 failed=`expr $failed + 1`
27724fi
27725
cristy8b350f62009-11-15 23:12:43 +000027726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027727$as_echo_n "checking for deflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027728if ${ac_cv_lib_z_deflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027729 $as_echo_n "(cached) " >&6
27730else
27731 ac_check_lib_save_LIBS=$LIBS
27732LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027733cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027734/* end confdefs.h. */
27735
27736/* Override any GCC internal prototype to avoid an error.
27737 Use char because int might match the return type of a GCC
27738 builtin and then its argument prototype would still apply. */
27739#ifdef __cplusplus
27740extern "C"
27741#endif
27742char deflate ();
27743int
27744main ()
27745{
27746return deflate ();
27747 ;
27748 return 0;
27749}
27750_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027751if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027752 ac_cv_lib_z_deflate=yes
27753else
cristy8b350f62009-11-15 23:12:43 +000027754 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000027755fi
cristy8b350f62009-11-15 23:12:43 +000027756rm -f core conftest.err conftest.$ac_objext \
27757 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027758LIBS=$ac_check_lib_save_LIBS
27759fi
cristy8b350f62009-11-15 23:12:43 +000027760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027761$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000027762if test "x$ac_cv_lib_z_deflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027763 passed=`expr $passed + 1`
27764else
27765 failed=`expr $failed + 1`
27766fi
27767
cristy8b350f62009-11-15 23:12:43 +000027768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027769$as_echo_n "checking for inflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027770if ${ac_cv_lib_z_inflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027771 $as_echo_n "(cached) " >&6
27772else
27773 ac_check_lib_save_LIBS=$LIBS
27774LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027775cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027776/* end confdefs.h. */
27777
27778/* Override any GCC internal prototype to avoid an error.
27779 Use char because int might match the return type of a GCC
27780 builtin and then its argument prototype would still apply. */
27781#ifdef __cplusplus
27782extern "C"
27783#endif
27784char inflate ();
27785int
27786main ()
27787{
27788return inflate ();
27789 ;
27790 return 0;
27791}
27792_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027793if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027794 ac_cv_lib_z_inflate=yes
27795else
cristy8b350f62009-11-15 23:12:43 +000027796 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000027797fi
cristy8b350f62009-11-15 23:12:43 +000027798rm -f core conftest.err conftest.$ac_objext \
27799 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027800LIBS=$ac_check_lib_save_LIBS
27801fi
cristy8b350f62009-11-15 23:12:43 +000027802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027803$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000027804if test "x$ac_cv_lib_z_inflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027805 passed=`expr $passed + 1`
27806else
27807 failed=`expr $failed + 1`
27808fi
27809
cristy8b350f62009-11-15 23:12:43 +000027810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027811$as_echo_n "checking for gzseek in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027812if ${ac_cv_lib_z_gzseek+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027813 $as_echo_n "(cached) " >&6
27814else
27815 ac_check_lib_save_LIBS=$LIBS
27816LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027817cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027818/* end confdefs.h. */
27819
27820/* Override any GCC internal prototype to avoid an error.
27821 Use char because int might match the return type of a GCC
27822 builtin and then its argument prototype would still apply. */
27823#ifdef __cplusplus
27824extern "C"
27825#endif
27826char gzseek ();
27827int
27828main ()
27829{
27830return gzseek ();
27831 ;
27832 return 0;
27833}
27834_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027835if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027836 ac_cv_lib_z_gzseek=yes
27837else
cristy8b350f62009-11-15 23:12:43 +000027838 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000027839fi
cristy8b350f62009-11-15 23:12:43 +000027840rm -f core conftest.err conftest.$ac_objext \
27841 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027842LIBS=$ac_check_lib_save_LIBS
27843fi
cristy8b350f62009-11-15 23:12:43 +000027844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000027845$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristyda16f162011-02-19 23:52:17 +000027846if test "x$ac_cv_lib_z_gzseek" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027847 passed=`expr $passed + 1`
27848else
27849 failed=`expr $failed + 1`
27850fi
27851
cristy8b350f62009-11-15 23:12:43 +000027852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027853$as_echo_n "checking for gztell in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027854if ${ac_cv_lib_z_gztell+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027855 $as_echo_n "(cached) " >&6
27856else
27857 ac_check_lib_save_LIBS=$LIBS
27858LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027859cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027860/* end confdefs.h. */
27861
27862/* Override any GCC internal prototype to avoid an error.
27863 Use char because int might match the return type of a GCC
27864 builtin and then its argument prototype would still apply. */
27865#ifdef __cplusplus
27866extern "C"
27867#endif
27868char gztell ();
27869int
27870main ()
27871{
27872return gztell ();
27873 ;
27874 return 0;
27875}
27876_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027877if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027878 ac_cv_lib_z_gztell=yes
27879else
cristy8b350f62009-11-15 23:12:43 +000027880 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000027881fi
cristy8b350f62009-11-15 23:12:43 +000027882rm -f core conftest.err conftest.$ac_objext \
27883 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027884LIBS=$ac_check_lib_save_LIBS
27885fi
cristy8b350f62009-11-15 23:12:43 +000027886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000027887$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristyda16f162011-02-19 23:52:17 +000027888if test "x$ac_cv_lib_z_gztell" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027889 passed=`expr $passed + 1`
27890else
27891 failed=`expr $failed + 1`
27892fi
27893
cristy8b350f62009-11-15 23:12:43 +000027894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027895$as_echo_n "checking if ZLIB package is complete... " >&6; }
27896 if test $passed -gt 0; then
27897 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000027898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27899$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027900 have_zlib='no (failed tests)'
27901 else
27902 ZLIB_LIBS='-lz'
27903 LIBS="$ZLIB_LIBS $LIBS"
27904
cristy8b350f62009-11-15 23:12:43 +000027905$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027906
cristyad38abe2012-12-23 23:03:21 +000027907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27908$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027909 have_zlib='yes'
27910 fi
27911 else
cristyad38abe2012-12-23 23:03:21 +000027912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27913$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027914 fi
27915fi
cristy73bd4a52010-10-05 11:24:23 +000027916 if test "$have_zlib" = 'yes'; then
27917 ZLIB_DELEGATE_TRUE=
27918 ZLIB_DELEGATE_FALSE='#'
27919else
27920 ZLIB_DELEGATE_TRUE='#'
27921 ZLIB_DELEGATE_FALSE=
27922fi
27923
cristy3ed852e2009-09-05 21:47:34 +000027924
27925
cristy5eef09f2012-10-16 12:08:28 +000027926# whether modules are built or not.
27927with_ltdl='yes'
27928have_ltdl='no'
27929LTDL_LIBS=''
27930if test "$build_modules" != 'no' ; then
cristyad38abe2012-12-23 23:03:21 +000027931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27932$as_echo "-------------------------------------------------------------" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000027933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libltdl" >&5
27934$as_echo_n "checking for libltdl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27936$as_echo "" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000027937 failed=0
27938 passed=0
27939 ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
27940if test "x$ac_cv_header_ltdl_h" = xyes; then :
27941 passed=`expr $passed + 1`
27942else
27943 failed=`expr $failed + 1`
27944fi
27945
27946
27947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
27948$as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
27949if ${ac_cv_lib_ltdl_lt_dlinit+:} false; then :
27950 $as_echo_n "(cached) " >&6
27951else
27952 ac_check_lib_save_LIBS=$LIBS
27953LIBS="-lltdl $LIBS"
27954cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27955/* end confdefs.h. */
27956
27957/* Override any GCC internal prototype to avoid an error.
27958 Use char because int might match the return type of a GCC
27959 builtin and then its argument prototype would still apply. */
27960#ifdef __cplusplus
27961extern "C"
27962#endif
27963char lt_dlinit ();
27964int
27965main ()
27966{
27967return lt_dlinit ();
27968 ;
27969 return 0;
27970}
27971_ACEOF
27972if ac_fn_c_try_link "$LINENO"; then :
27973 ac_cv_lib_ltdl_lt_dlinit=yes
27974else
27975 ac_cv_lib_ltdl_lt_dlinit=no
27976fi
27977rm -f core conftest.err conftest.$ac_objext \
27978 conftest$ac_exeext conftest.$ac_ext
27979LIBS=$ac_check_lib_save_LIBS
27980fi
27981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
27982$as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
27983if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes; then :
27984 passed=`expr $passed + 1`
27985else
27986 failed=`expr $failed + 1`
27987fi
27988
27989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libltdl package is complete" >&5
27990$as_echo_n "checking if libltdl package is complete... " >&6; }
27991 if test $passed -gt 0 ; then
27992 if test $failed -gt 0 ; then
27993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27994$as_echo "no -- some components failed test" >&6; }
27995 have_ltdl='no (failed tests)'
27996 else
27997 LTDL_LIBS='-lltdl'
27998 LIBS="$LTDL_LIBS $LIBS"
27999
28000$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
28001
28002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28003$as_echo "yes" >&6; }
28004 have_ltdl='yes'
28005 fi
28006 else
28007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28008$as_echo "no" >&6; }
28009 fi
cristyaf4cbf32012-10-16 23:47:41 +000028010 if test "$have_ltdl" != 'yes' ; then
28011 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28012$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28013as_fn_error 1 "libltdl is required for modules build
28014See \`config.log' for more details" "$LINENO" 5; }
28015 fi
cristy5eef09f2012-10-16 12:08:28 +000028016fi
28017 if test "$have_ltdl" != 'no'; then
28018 WITH_LTDL_TRUE=
28019 WITH_LTDL_FALSE='#'
28020else
28021 WITH_LTDL_TRUE='#'
28022 WITH_LTDL_FALSE=
28023fi
28024
28025
cristy3ed852e2009-09-05 21:47:34 +000028026#
28027# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
28028#
28029LIB_DL=''
28030if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000028032$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028033if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028034 $as_echo_n "(cached) " >&6
28035else
28036 ac_check_lib_save_LIBS=$LIBS
28037LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028038cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028039/* end confdefs.h. */
28040
28041/* Override any GCC internal prototype to avoid an error.
28042 Use char because int might match the return type of a GCC
28043 builtin and then its argument prototype would still apply. */
28044#ifdef __cplusplus
28045extern "C"
28046#endif
28047char dlopen ();
28048int
28049main ()
28050{
28051return dlopen ();
28052 ;
28053 return 0;
28054}
28055_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028056if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028057 ac_cv_lib_dl_dlopen=yes
28058else
cristy8b350f62009-11-15 23:12:43 +000028059 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000028060fi
cristy8b350f62009-11-15 23:12:43 +000028061rm -f core conftest.err conftest.$ac_objext \
28062 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028063LIBS=$ac_check_lib_save_LIBS
28064fi
cristy8b350f62009-11-15 23:12:43 +000028065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028066$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000028067if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028068 LIB_DL='-ldl'
28069fi
28070
28071 LIBS="$LIB_DL $LIBS"
28072fi
28073
28074
28075
28076#
28077# Check for Autotrace delegate library.
28078#
28079
28080# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000028081if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028082 withval=$with_autotrace; with_autotrace=$withval
28083else
28084 with_autotrace='no'
28085fi
28086
28087
28088if test "$with_autotrace" != 'yes'; then
28089 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
28090fi
28091
28092have_autotrace='no'
28093AUTOTRACE_CFLAGS=""
28094AUTOTRACE_LIBS=""
28095AUTOTRACE_PKG=""
28096if test "x$with_autotrace" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000028097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28098$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028099
28100pkg_failed=no
28101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
28102$as_echo_n "checking for AUTOTRACE... " >&6; }
28103
28104if test -n "$AUTOTRACE_CFLAGS"; then
28105 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
28106 elif test -n "$PKG_CONFIG"; then
28107 if test -n "$PKG_CONFIG" && \
28108 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28109 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28110 ac_status=$?
28111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28112 test $ac_status = 0; }; then
28113 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
28114else
28115 pkg_failed=yes
28116fi
28117 else
28118 pkg_failed=untried
28119fi
28120if test -n "$AUTOTRACE_LIBS"; then
28121 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
28122 elif test -n "$PKG_CONFIG"; then
28123 if test -n "$PKG_CONFIG" && \
28124 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28125 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28126 ac_status=$?
28127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28128 test $ac_status = 0; }; then
28129 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
28130else
28131 pkg_failed=yes
28132fi
28133 else
28134 pkg_failed=untried
28135fi
28136
28137
28138
28139if test $pkg_failed = yes; then
28140
28141if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28142 _pkg_short_errors_supported=yes
28143else
28144 _pkg_short_errors_supported=no
28145fi
28146 if test $_pkg_short_errors_supported = yes; then
28147 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
28148 else
28149 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
28150 fi
28151 # Put the nasty error message in config.log where it belongs
28152 echo "$AUTOTRACE_PKG_ERRORS" >&5
28153
28154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28155$as_echo "no" >&6; }
28156 have_autotrace=no
28157elif test $pkg_failed = untried; then
28158 have_autotrace=no
28159else
28160 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
28161 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
28162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28163$as_echo "yes" >&6; }
28164 have_autotrace=yes
28165fi
cristyad38abe2012-12-23 23:03:21 +000028166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28167$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028168fi
28169
28170if test "$have_autotrace" = 'yes'; then
28171 failed=0
28172
cristy8b350f62009-11-15 23:12:43 +000028173$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028174
cristyc6722092012-10-14 00:19:31 +000028175 if test "$build_modules" = 'no'; then
cristyfa161182012-12-19 15:45:28 +000028176 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000028177 fi
28178fi
28179
cristy73bd4a52010-10-05 11:24:23 +000028180 if test "$have_autotrace" = 'yes'; then
28181 AUTOTRACE_DELEGATE_TRUE=
28182 AUTOTRACE_DELEGATE_FALSE='#'
28183else
28184 AUTOTRACE_DELEGATE_TRUE='#'
28185 AUTOTRACE_DELEGATE_FALSE=
28186fi
28187
cristy3ed852e2009-09-05 21:47:34 +000028188
28189
28190
28191
28192#
28193# Check for Display Postscript delegate library.
28194#
28195
28196# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000028197if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028198 withval=$with_dps; with_dps=$withval
28199else
28200 with_dps='yes'
28201fi
28202
28203
28204if test "$with_dps" != 'yes'; then
28205 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
28206fi
28207
28208have_dps='no'
28209DPS_LIBS=''
28210if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28212$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000028214$as_echo_n "checking for DPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28216$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028217 failed=0
28218 passed=0
28219 PERSIST_CPPFLAGS="$CPPFLAGS"
28220 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000028221 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 +000028222if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028223 passed=`expr $passed + 1`
28224else
28225 failed=`expr $failed + 1`
28226fi
28227
28228
28229 # DPS issues:
28230 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
28231 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
28232 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
28233 # ImageMagick itself doesn't use -lXt.
28234 have_libdps='no'
28235 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000028236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028237$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028238if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028239 $as_echo_n "(cached) " >&6
28240else
28241 ac_check_lib_save_LIBS=$LIBS
28242LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028243cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028244/* end confdefs.h. */
28245
28246/* Override any GCC internal prototype to avoid an error.
28247 Use char because int might match the return type of a GCC
28248 builtin and then its argument prototype would still apply. */
28249#ifdef __cplusplus
28250extern "C"
28251#endif
28252char DPSInitialize ();
28253int
28254main ()
28255{
28256return DPSInitialize ();
28257 ;
28258 return 0;
28259}
28260_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028261if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028262 ac_cv_lib_dps_DPSInitialize=yes
28263else
cristy8b350f62009-11-15 23:12:43 +000028264 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028265fi
cristy8b350f62009-11-15 23:12:43 +000028266rm -f core conftest.err conftest.$ac_objext \
28267 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028268LIBS=$ac_check_lib_save_LIBS
28269fi
cristy8b350f62009-11-15 23:12:43 +000028270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028271$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028272if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028273 have_libdps='yes'
28274else
28275 have_libdps='no'
28276fi
28277
28278 if test "$have_libdps" != 'yes'; then
28279 # Unset cache variable so we can try again.
28280 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000028281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028282$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028283if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028284 $as_echo_n "(cached) " >&6
28285else
28286 ac_check_lib_save_LIBS=$LIBS
28287LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028288cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028289/* end confdefs.h. */
28290
28291/* Override any GCC internal prototype to avoid an error.
28292 Use char because int might match the return type of a GCC
28293 builtin and then its argument prototype would still apply. */
28294#ifdef __cplusplus
28295extern "C"
28296#endif
28297char DPSInitialize ();
28298int
28299main ()
28300{
28301return DPSInitialize ();
28302 ;
28303 return 0;
28304}
28305_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028306if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028307 ac_cv_lib_dps_DPSInitialize=yes
28308else
cristy8b350f62009-11-15 23:12:43 +000028309 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028310fi
cristy8b350f62009-11-15 23:12:43 +000028311rm -f core conftest.err conftest.$ac_objext \
28312 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028313LIBS=$ac_check_lib_save_LIBS
28314fi
cristy8b350f62009-11-15 23:12:43 +000028315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028316$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028317if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028318 have_libdps='yes'
28319else
28320 have_libdps='no'
28321fi
28322
28323 if test "$have_libdps" = 'yes'; then
28324 LIBDPS_XT='-lXt'
28325 fi
28326 fi
28327 if test "$have_libdps" = 'yes'; then
28328 passed=`expr $passed + 1`
28329 else
28330 failed=`expr $failed + 1`
28331 fi
cristy8b350f62009-11-15 23:12:43 +000028332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000028333$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028334if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028335 $as_echo_n "(cached) " >&6
28336else
28337 ac_check_lib_save_LIBS=$LIBS
28338LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028339cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028340/* end confdefs.h. */
28341
28342/* Override any GCC internal prototype to avoid an error.
28343 Use char because int might match the return type of a GCC
28344 builtin and then its argument prototype would still apply. */
28345#ifdef __cplusplus
28346extern "C"
28347#endif
28348char XDPSPixelsPerPoint ();
28349int
28350main ()
28351{
28352return XDPSPixelsPerPoint ();
28353 ;
28354 return 0;
28355}
28356_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028357if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028358 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
28359else
cristy8b350f62009-11-15 23:12:43 +000028360 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000028361fi
cristy8b350f62009-11-15 23:12:43 +000028362rm -f core conftest.err conftest.$ac_objext \
28363 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028364LIBS=$ac_check_lib_save_LIBS
28365fi
cristy8b350f62009-11-15 23:12:43 +000028366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000028367$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000028368if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028369 passed=`expr $passed + 1`
28370else
28371 failed=`expr $failed + 1`
28372fi
28373
cristy8b350f62009-11-15 23:12:43 +000028374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028375$as_echo_n "checking if DPS package is complete... " >&6; }
28376 if test $passed -gt 0; then
28377 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28379$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028380 have_dps='no (failed tests)'
28381 CPPFLAGS="$PERSIST_CPPFLAGS"
28382 else
28383 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
28384 LIBS="$DPS_LIBS $LIBS"
28385
cristy8b350f62009-11-15 23:12:43 +000028386$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028387
cristyad38abe2012-12-23 23:03:21 +000028388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28389$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028390 have_dps='yes'
28391 fi
28392 else
cristyad38abe2012-12-23 23:03:21 +000028393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28394$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028395 CPPFLAGS=$PERSIST_CPPFLAGS
28396 fi
28397fi
cristy73bd4a52010-10-05 11:24:23 +000028398 if test "$have_dps" = 'yes'; then
28399 DPS_DELEGATE_TRUE=
28400 DPS_DELEGATE_FALSE='#'
28401else
28402 DPS_DELEGATE_TRUE='#'
28403 DPS_DELEGATE_FALSE=
28404fi
28405
cristy3ed852e2009-09-05 21:47:34 +000028406
28407
28408
28409#
28410# Check for DJVU delegate library.
28411#
28412
28413# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000028414if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028415 withval=$with_djvu; with_djvu=$withval
28416else
28417 with_djvu='yes'
28418fi
28419
28420
28421if test "$with_djvu" != 'yes'; then
28422 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
28423fi
28424
28425have_djvu='no'
28426DJVU_LIBS=''
28427if test "$with_djvu" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28429$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000028431$as_echo_n "checking for DJVU... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28433$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028434 failed=0
28435 passed=0
cristy8b350f62009-11-15 23:12:43 +000028436 ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028437if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028438 passed=`expr $passed + 1`
28439else
28440 failed=`expr $failed + 1`
28441fi
28442
28443
cristy8b350f62009-11-15 23:12:43 +000028444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000028445$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028446if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028447 $as_echo_n "(cached) " >&6
28448else
28449 ac_check_lib_save_LIBS=$LIBS
28450LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028451cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028452/* end confdefs.h. */
28453
28454/* Override any GCC internal prototype to avoid an error.
28455 Use char because int might match the return type of a GCC
28456 builtin and then its argument prototype would still apply. */
28457#ifdef __cplusplus
28458extern "C"
28459#endif
28460char ddjvu_context_create ();
28461int
28462main ()
28463{
28464return ddjvu_context_create ();
28465 ;
28466 return 0;
28467}
28468_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028469if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028470 ac_cv_lib_djvulibre_ddjvu_context_create=yes
28471else
cristy8b350f62009-11-15 23:12:43 +000028472 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000028473fi
cristy8b350f62009-11-15 23:12:43 +000028474rm -f core conftest.err conftest.$ac_objext \
28475 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028476LIBS=$ac_check_lib_save_LIBS
28477fi
cristy8b350f62009-11-15 23:12:43 +000028478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000028479$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristyda16f162011-02-19 23:52:17 +000028480if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028481 passed=`expr $passed + 1`
28482else
28483 failed=`expr $failed + 1`
28484fi
28485
cristy8b350f62009-11-15 23:12:43 +000028486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028487$as_echo_n "checking if DJVU package is complete... " >&6; }
28488 if test $passed -gt 0; then
28489 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28491$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028492 have_djvu='no (failed tests)'
28493 else
28494 DJVU_LIBS='-ldjvulibre'
28495 LIBS="$DJVU_LIBS $LIBS"
28496
cristy8b350f62009-11-15 23:12:43 +000028497$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028498
cristyad38abe2012-12-23 23:03:21 +000028499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28500$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028501 have_djvu='yes'
28502 fi
28503 else
cristyad38abe2012-12-23 23:03:21 +000028504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28505$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028506 fi
28507fi
cristy73bd4a52010-10-05 11:24:23 +000028508 if test "$have_djvu" = 'yes'; then
28509 DJVU_DELEGATE_TRUE=
28510 DJVU_DELEGATE_FALSE='#'
28511else
28512 DJVU_DELEGATE_TRUE='#'
28513 DJVU_DELEGATE_FALSE=
28514fi
28515
cristy3ed852e2009-09-05 21:47:34 +000028516
28517
28518
28519#
cristy430a7312010-01-21 20:44:04 +000028520# Set DejaVu font directory.
28521#
28522
28523# Check whether --with-dejavu-font-dir was given.
28524if test "${with_dejavu_font_dir+set}" = set; then :
28525 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
28526else
28527 with_dejavu_font_dir='default'
28528fi
28529
28530
28531if test "$with_dejavu_font_dir" != 'default'; then
28532 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
28533fi
28534
28535
28536#
cristy3ed852e2009-09-05 21:47:34 +000028537# Check for FFTW delegate library.
28538#
28539
28540# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000028541if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028542 withval=$with_fftw; with_fftw=$withval
28543else
28544 with_fftw='yes'
28545fi
28546
28547
28548if test "$with_fftw" != 'yes'; then
28549 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
28550fi
28551
cristy81beccd2011-10-03 18:17:24 +000028552have_fftw='no'
28553FFTW_LIBS=''
28554if test "$with_fftw" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28556$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
28558$as_echo_n "checking for FFTW... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28560$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028561 failed=0
28562 passed=0
28563 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
28564if test "x$ac_cv_header_fftw3_h" = xyes; then :
28565 passed=`expr $passed + 1`
28566else
28567 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028568fi
28569
cristy81beccd2011-10-03 18:17:24 +000028570
28571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
28572$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
28573if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
28574 $as_echo_n "(cached) " >&6
28575else
28576 ac_check_lib_save_LIBS=$LIBS
28577LIBS="-lfftw3 $LIBS"
28578cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28579/* end confdefs.h. */
28580
28581/* Override any GCC internal prototype to avoid an error.
28582 Use char because int might match the return type of a GCC
28583 builtin and then its argument prototype would still apply. */
28584#ifdef __cplusplus
28585extern "C"
28586#endif
28587char fftw_execute ();
28588int
28589main ()
28590{
28591return fftw_execute ();
28592 ;
28593 return 0;
28594}
28595_ACEOF
28596if ac_fn_c_try_link "$LINENO"; then :
28597 ac_cv_lib_fftw3_fftw_execute=yes
28598else
28599 ac_cv_lib_fftw3_fftw_execute=no
28600fi
28601rm -f core conftest.err conftest.$ac_objext \
28602 conftest$ac_exeext conftest.$ac_ext
28603LIBS=$ac_check_lib_save_LIBS
28604fi
28605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
28606$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
28607if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
28608 passed=`expr $passed + 1`
28609else
28610 failed=`expr $failed + 1`
28611fi
28612
28613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
28614$as_echo_n "checking if FFTW package is complete... " >&6; }
28615 if test $passed -gt 0; then
28616 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28618$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028619 have_fftw='no (failed tests)'
28620 else
28621 FFTW_LIBS='-lfftw3'
28622 LIBS="$FFTW_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000028623
cristy8b350f62009-11-15 23:12:43 +000028624$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028625
cristyad38abe2012-12-23 23:03:21 +000028626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28627$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028628 have_fftw='yes'
28629 fi
28630 else
cristyad38abe2012-12-23 23:03:21 +000028631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28632$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028633 fi
28634fi
cristy73bd4a52010-10-05 11:24:23 +000028635 if test "$have_fftw" = 'yes'; then
28636 FFTW_DELEGATE_TRUE=
28637 FFTW_DELEGATE_FALSE='#'
28638else
28639 FFTW_DELEGATE_TRUE='#'
28640 FFTW_DELEGATE_FALSE=
28641fi
28642
cristy3ed852e2009-09-05 21:47:34 +000028643
28644
28645
28646#
28647# Check for FlashPIX delegate library.
28648#
28649
28650# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000028651if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028652 withval=$with_fpx; with_fpx=$withval
28653else
28654 with_fpx='yes'
28655fi
28656
28657
28658if test "$with_fpx" != 'yes'; then
28659 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
28660fi
28661
28662have_fpx='no'
28663FPX_LIBS=''
28664if test "$with_fpx" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28666$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000028668$as_echo_n "checking for FlashPIX... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28670$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028671 failed=0
28672 passed=0
28673 ac_ext=cpp
28674ac_cpp='$CXXCPP $CPPFLAGS'
28675ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28676ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28677ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28678
28679
cristy8b350f62009-11-15 23:12:43 +000028680ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028681if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028682 passed=`expr $passed + 1`
28683else
28684 failed=`expr $failed + 1`
28685fi
28686
28687
cristy8b350f62009-11-15 23:12:43 +000028688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000028689$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028690if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028691 $as_echo_n "(cached) " >&6
28692else
28693 ac_check_lib_save_LIBS=$LIBS
28694LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028695cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028696/* end confdefs.h. */
28697
28698/* Override any GCC internal prototype to avoid an error.
28699 Use char because int might match the return type of a GCC
28700 builtin and then its argument prototype would still apply. */
28701#ifdef __cplusplus
28702extern "C"
28703#endif
28704char FPX_OpenImageByFilename ();
28705int
28706main ()
28707{
28708return FPX_OpenImageByFilename ();
28709 ;
28710 return 0;
28711}
28712_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028713if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028714 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
28715else
cristy8b350f62009-11-15 23:12:43 +000028716 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000028717fi
cristy8b350f62009-11-15 23:12:43 +000028718rm -f core conftest.err conftest.$ac_objext \
28719 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028720LIBS=$ac_check_lib_save_LIBS
28721fi
cristy8b350f62009-11-15 23:12:43 +000028722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000028723$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000028724if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028725 passed=`expr $passed + 1`
28726else
28727 failed=`expr $failed + 1`
28728fi
28729
28730 ac_ext=c
28731ac_cpp='$CPP $CPPFLAGS'
28732ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28733ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28734ac_compiler_gnu=$ac_cv_c_compiler_gnu
28735
cristy8b350f62009-11-15 23:12:43 +000028736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028737$as_echo_n "checking if FlashPIX package is complete... " >&6; }
28738 if test $passed -gt 0; then
28739 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28741$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028742 have_fpx='no (failed tests)'
28743 else
28744 FPX_LIBS='-lfpx'
28745
cristy8b350f62009-11-15 23:12:43 +000028746$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028747
cristyad38abe2012-12-23 23:03:21 +000028748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28749$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028750 have_fpx='yes'
28751 PERLMAINCC="$CXX"
28752 fi
28753 else
cristyad38abe2012-12-23 23:03:21 +000028754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28755$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028756 fi
28757fi
cristy73bd4a52010-10-05 11:24:23 +000028758 if test "$have_fpx" = 'yes'; then
28759 FPX_DELEGATE_TRUE=
28760 FPX_DELEGATE_FALSE='#'
28761else
28762 FPX_DELEGATE_TRUE='#'
28763 FPX_DELEGATE_FALSE=
28764fi
28765
cristy3ed852e2009-09-05 21:47:34 +000028766
28767
28768
28769#
28770# Check for fontconfig delegate library.
28771#
28772
28773# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000028774if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028775 withval=$with_fontconfig; with_fontconfig=$withval
28776else
cristyfc3d0222012-02-07 15:05:57 +000028777 with_fontconfig='yes'
cristy3ed852e2009-09-05 21:47:34 +000028778fi
28779
28780
28781if test "$with_fontconfig" != 'yes'; then
28782 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
28783fi
28784
28785have_fontconfig='no'
28786FONTCONFIG_CFLAGS=""
28787FONTCONFIG_LIBS=""
28788FONTCONFIG_PKG=""
28789if test "x$with_fontconfig" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000028790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28791$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028792
28793pkg_failed=no
28794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
28795$as_echo_n "checking for FONTCONFIG... " >&6; }
28796
28797if test -n "$FONTCONFIG_CFLAGS"; then
28798 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
28799 elif test -n "$PKG_CONFIG"; then
28800 if test -n "$PKG_CONFIG" && \
28801 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28802 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28803 ac_status=$?
28804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28805 test $ac_status = 0; }; then
28806 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
28807else
28808 pkg_failed=yes
28809fi
28810 else
28811 pkg_failed=untried
28812fi
28813if test -n "$FONTCONFIG_LIBS"; then
28814 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
28815 elif test -n "$PKG_CONFIG"; then
28816 if test -n "$PKG_CONFIG" && \
28817 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28818 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28819 ac_status=$?
28820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28821 test $ac_status = 0; }; then
28822 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
28823else
28824 pkg_failed=yes
28825fi
28826 else
28827 pkg_failed=untried
28828fi
28829
28830
28831
28832if test $pkg_failed = yes; then
28833
28834if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28835 _pkg_short_errors_supported=yes
28836else
28837 _pkg_short_errors_supported=no
28838fi
28839 if test $_pkg_short_errors_supported = yes; then
28840 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
28841 else
28842 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
28843 fi
28844 # Put the nasty error message in config.log where it belongs
28845 echo "$FONTCONFIG_PKG_ERRORS" >&5
28846
28847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28848$as_echo "no" >&6; }
28849 have_fontconfig=no
28850elif test $pkg_failed = untried; then
28851 have_fontconfig=no
28852else
28853 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
28854 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
28855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28856$as_echo "yes" >&6; }
28857 have_fontconfig=yes
28858fi
cristyad38abe2012-12-23 23:03:21 +000028859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28860$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028861fi
28862
28863if test "$have_fontconfig" = 'yes'; then
28864
cristy8b350f62009-11-15 23:12:43 +000028865$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028866
cristyc6722092012-10-14 00:19:31 +000028867 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000028868 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000028869 fi
cristy3ed852e2009-09-05 21:47:34 +000028870fi
28871
cristy73bd4a52010-10-05 11:24:23 +000028872 if test "$have_fontconfig" = 'yes'; then
28873 FONTCONFIG_DELEGATE_TRUE=
28874 FONTCONFIG_DELEGATE_FALSE='#'
28875else
28876 FONTCONFIG_DELEGATE_TRUE='#'
28877 FONTCONFIG_DELEGATE_FALSE=
28878fi
28879
cristy3ed852e2009-09-05 21:47:34 +000028880
28881
28882
28883
28884#
cristy03f187e2013-01-24 00:22:19 +000028885# Check for the Freetype delegate library.
cristy3ed852e2009-09-05 21:47:34 +000028886#
28887
28888# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000028889if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028890 withval=$with_freetype; with_freetype=$withval
28891else
28892 with_freetype='yes'
28893fi
28894
28895
cristy3ed852e2009-09-05 21:47:34 +000028896if test "$with_freetype" != 'yes'; then
28897 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
28898fi
28899
cristy81beccd2011-10-03 18:17:24 +000028900have_freetype='no'
cristy03f187e2013-01-24 00:22:19 +000028901FREETYPE_CFLAGS=""
28902FREETYPE_LIBS=""
28903FREETYPE_PKG=""
28904if test "x$with_freetype" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000028905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28906$as_echo "-------------------------------------------------------------" >&6; }
cristy03f187e2013-01-24 00:22:19 +000028907
28908pkg_failed=no
28909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
28910$as_echo_n "checking for FREETYPE... " >&6; }
28911
28912if test -n "$FREETYPE_CFLAGS"; then
28913 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
28914 elif test -n "$PKG_CONFIG"; then
28915 if test -n "$PKG_CONFIG" && \
28916 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
28917 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
28918 ac_status=$?
28919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28920 test $ac_status = 0; }; then
28921 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
28922else
28923 pkg_failed=yes
28924fi
28925 else
28926 pkg_failed=untried
28927fi
28928if test -n "$FREETYPE_LIBS"; then
28929 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
28930 elif test -n "$PKG_CONFIG"; then
28931 if test -n "$PKG_CONFIG" && \
28932 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
28933 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
28934 ac_status=$?
28935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28936 test $ac_status = 0; }; then
28937 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
28938else
28939 pkg_failed=yes
28940fi
28941 else
28942 pkg_failed=untried
28943fi
28944
28945
28946
28947if test $pkg_failed = yes; then
28948
28949if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28950 _pkg_short_errors_supported=yes
28951else
28952 _pkg_short_errors_supported=no
28953fi
28954 if test $_pkg_short_errors_supported = yes; then
28955 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1`
28956 else
28957 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1`
28958 fi
28959 # Put the nasty error message in config.log where it belongs
28960 echo "$FREETYPE_PKG_ERRORS" >&5
28961
28962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28963$as_echo "no" >&6; }
28964 have_freetype=no
28965elif test $pkg_failed = untried; then
28966 have_freetype=no
28967else
28968 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
28969 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
28970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28971$as_echo "yes" >&6; }
28972 have_freetype=yes
28973fi
cristyad38abe2012-12-23 23:03:21 +000028974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28975$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028976fi
28977
cristy03f187e2013-01-24 00:22:19 +000028978if test "$have_freetype" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000028979
cristy8b350f62009-11-15 23:12:43 +000028980$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028981
cristy03f187e2013-01-24 00:22:19 +000028982 CFLAGS="$FREETYPE_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000028983fi
cristy03f187e2013-01-24 00:22:19 +000028984
cristy73bd4a52010-10-05 11:24:23 +000028985 if test "$have_freetype" = 'yes'; then
28986 FREETYPE_DELEGATE_TRUE=
28987 FREETYPE_DELEGATE_FALSE='#'
28988else
28989 FREETYPE_DELEGATE_TRUE='#'
28990 FREETYPE_DELEGATE_FALSE=
28991fi
28992
cristy3ed852e2009-09-05 21:47:34 +000028993
28994
28995
cristy03f187e2013-01-24 00:22:19 +000028996
cristy3ed852e2009-09-05 21:47:34 +000028997#
28998# Check for Ghostscript library or framework.
28999#
29000# Test for iapi.h & test for gsapi_new_instance in -lgs
29001# or -framework Ghostscript
29002
29003
29004# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000029005if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029006 withval=$with_gslib; with_gslib=$withval
29007else
29008 with_gslib='no'
29009fi
29010
29011
cristyb7931f12009-09-25 10:22:21 +000029012gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000029013if test "$with_gslib" != 'yes'; then
29014 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
29015fi
29016
29017have_gslib='no'
29018GS_LIBS=''
29019if test "$with_gslib" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29021$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000029023$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29025$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000029026 framework=0
cristy3ed852e2009-09-05 21:47:34 +000029027 failed=0
29028 passed=0
cristy8b350f62009-11-15 23:12:43 +000029029 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 +000029030if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029031 passed=`expr $passed + 1`
29032else
29033 failed=`expr $failed + 1`
29034fi
29035
29036
cristy8b350f62009-11-15 23:12:43 +000029037 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 +000029038if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029039 passed=`expr $passed + 1`
29040else
29041 failed=`expr $failed + 1`
29042fi
29043
29044
cristy73bd4a52010-10-05 11:24:23 +000029045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
29046$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029047if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000029048 $as_echo_n "(cached) " >&6
29049else
29050 ac_check_framework_save_LIBS=$LIBS
29051LIBS="-framework Ghostscript $LIBS"
29052cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29053/* end confdefs.h. */
29054
29055/* Override any GCC internal prototype to avoid an error.
29056 Use char because int might match the return type of a GCC
29057 builtin and then its argument prototype would still apply. */
29058#ifdef __cplusplus
29059extern "C"
29060#endif
29061char gsapi_new_instance ();
29062int
29063main ()
29064{
29065return gsapi_new_instance ();
29066 ;
29067 return 0;
29068}
29069_ACEOF
29070if ac_fn_c_try_link "$LINENO"; then :
29071 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
29072else
29073 ac_cv_framework_Ghostscript_gsapi_new_instance=no
29074fi
29075rm -f core conftest.err conftest.$ac_objext \
29076 conftest$ac_exeext conftest.$ac_ext
29077LIBS=$ac_check_framework_save_LIBS
29078fi
29079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
29080$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
29081if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
29082 framework=`expr $framework + 1`
29083else
29084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029085$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029086if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029087 $as_echo_n "(cached) " >&6
29088else
29089 ac_check_lib_save_LIBS=$LIBS
29090LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029091cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029092/* end confdefs.h. */
29093
29094/* Override any GCC internal prototype to avoid an error.
29095 Use char because int might match the return type of a GCC
29096 builtin and then its argument prototype would still apply. */
29097#ifdef __cplusplus
29098extern "C"
29099#endif
29100char gsapi_new_instance ();
29101int
29102main ()
29103{
29104return gsapi_new_instance ();
29105 ;
29106 return 0;
29107}
29108_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029109if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029110 ac_cv_lib_gs_gsapi_new_instance=yes
29111else
cristy8b350f62009-11-15 23:12:43 +000029112 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000029113fi
cristy8b350f62009-11-15 23:12:43 +000029114rm -f core conftest.err conftest.$ac_objext \
29115 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029116LIBS=$ac_check_lib_save_LIBS
29117fi
cristy8b350f62009-11-15 23:12:43 +000029118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000029119$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000029120if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029121 passed=`expr $passed + 1`
29122else
29123 failed=`expr $failed + 1`
29124fi
cristy73bd4a52010-10-05 11:24:23 +000029125
29126fi
cristy8b350f62009-11-15 23:12:43 +000029127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029128$as_echo_n "checking if Ghostscript package is complete... " >&6; }
29129 if test $passed -gt 0; then
29130 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29132$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029133 have_gslib='no (failed tests)'
29134 else
29135 if test $framework -gt 0; then
29136 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000029137 gslib_framework='yes'
cristyad38abe2012-12-23 23:03:21 +000029138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
29139$as_echo "yes, using framework." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029140 else
cristyad38abe2012-12-23 23:03:21 +000029141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
29142$as_echo "yes, using library." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029143 GS_LIBS='-lgs'
29144 fi
29145 LIBS="$GS_LIBS $LIBS"
29146
cristy8b350f62009-11-15 23:12:43 +000029147$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029148
29149 have_gslib='yes'
29150 fi
29151 else
cristyad38abe2012-12-23 23:03:21 +000029152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29153$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029154 fi
29155fi
cristy73bd4a52010-10-05 11:24:23 +000029156 if test "$have_gslib" = 'yes'; then
29157 GS_DELEGATE_TRUE=
29158 GS_DELEGATE_FALSE='#'
29159else
29160 GS_DELEGATE_TRUE='#'
29161 GS_DELEGATE_FALSE=
29162fi
29163
cristy3ed852e2009-09-05 21:47:34 +000029164
29165
29166# Set default font search path
29167
29168# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000029169if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029170 withval=$with_fontpath; with_fontpath=$withval
29171else
29172 with_fontpath=''
29173fi
29174
29175
29176if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
29177 with_fontpath=''
29178else
29179
29180cat >>confdefs.h <<_ACEOF
29181#define MAGICK_FONT_PATH "$with_fontpath"
29182_ACEOF
29183
29184fi
29185if test "$with_fontpath=" != ''; then
29186 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
29187fi
29188
29189# Set Ghostscript font directory
29190
29191# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029192if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029193 withval=$with_gs_font_dir; with_gs_font_dir=$withval
29194else
29195 with_gs_font_dir='default'
29196fi
29197
29198
29199if test "$with_gs_font_dir" != 'default'; then
29200 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
29201fi
29202
29203
29204#
29205# Check for GVC delegate library.
29206#
29207
29208# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000029209if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029210 withval=$with_gvc; with_gvc=$withval
29211else
cristy1b70dc82012-07-01 23:15:05 +000029212 with_gvc='no'
cristy3ed852e2009-09-05 21:47:34 +000029213fi
29214
29215
29216if test "$with_gvc" != 'yes'; then
29217 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
29218fi
29219
29220GVC_PKG=""
29221if test "x$with_gvc" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29223$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029224
29225pkg_failed=no
29226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
29227$as_echo_n "checking for GVC... " >&6; }
29228
29229if test -n "$GVC_CFLAGS"; then
29230 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
29231 elif test -n "$PKG_CONFIG"; then
29232 if test -n "$PKG_CONFIG" && \
29233 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29234 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29235 ac_status=$?
29236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29237 test $ac_status = 0; }; then
29238 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
29239else
29240 pkg_failed=yes
29241fi
29242 else
29243 pkg_failed=untried
29244fi
29245if test -n "$GVC_LIBS"; then
29246 pkg_cv_GVC_LIBS="$GVC_LIBS"
29247 elif test -n "$PKG_CONFIG"; then
29248 if test -n "$PKG_CONFIG" && \
29249 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29250 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29251 ac_status=$?
29252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29253 test $ac_status = 0; }; then
29254 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
29255else
29256 pkg_failed=yes
29257fi
29258 else
29259 pkg_failed=untried
29260fi
29261
29262
29263
29264if test $pkg_failed = yes; then
29265
29266if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29267 _pkg_short_errors_supported=yes
29268else
29269 _pkg_short_errors_supported=no
29270fi
29271 if test $_pkg_short_errors_supported = yes; then
29272 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
29273 else
29274 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
29275 fi
29276 # Put the nasty error message in config.log where it belongs
29277 echo "$GVC_PKG_ERRORS" >&5
29278
29279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29280$as_echo "no" >&6; }
29281 have_gvc=no
29282elif test $pkg_failed = untried; then
29283 have_gvc=no
29284else
29285 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
29286 GVC_LIBS=$pkg_cv_GVC_LIBS
29287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29288$as_echo "yes" >&6; }
29289 have_gvc=yes
29290fi
cristyad38abe2012-12-23 23:03:21 +000029291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29292$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029293fi
29294
29295if test "$have_gvc" = 'yes'; then
29296
cristy8b350f62009-11-15 23:12:43 +000029297$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029298
cristyc6722092012-10-14 00:19:31 +000029299 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000029300 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
29301 fi
29302fi
29303
cristy73bd4a52010-10-05 11:24:23 +000029304 if test "$have_gvc" = 'yes'; then
29305 GVC_DELEGATE_TRUE=
29306 GVC_DELEGATE_FALSE='#'
29307else
29308 GVC_DELEGATE_TRUE='#'
29309 GVC_DELEGATE_FALSE=
29310fi
29311
cristy3ed852e2009-09-05 21:47:34 +000029312
29313
29314
29315
29316#
29317# Check for JBIG delegate library.
29318#
29319
29320
29321# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000029322if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029323 withval=$with_jbig; with_jbig=$withval
29324else
29325 with_jbig='yes'
29326fi
29327
29328
29329have_jbig='no'
29330JBIG_LIBS=''
29331if test "$with_jbig" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29333$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029335$as_echo_n "checking for JBIG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29337$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029338 failed=0
29339 passed=0
cristy8b350f62009-11-15 23:12:43 +000029340 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029341if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029342 passed=`expr $passed + 1`
29343else
29344 failed=`expr $failed + 1`
29345fi
29346
29347
cristy8b350f62009-11-15 23:12:43 +000029348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000029349$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029350if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029351 $as_echo_n "(cached) " >&6
29352else
29353 ac_check_lib_save_LIBS=$LIBS
29354LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029355cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029356/* end confdefs.h. */
29357
29358/* Override any GCC internal prototype to avoid an error.
29359 Use char because int might match the return type of a GCC
29360 builtin and then its argument prototype would still apply. */
29361#ifdef __cplusplus
29362extern "C"
29363#endif
29364char jbg_dec_init ();
29365int
29366main ()
29367{
29368return jbg_dec_init ();
29369 ;
29370 return 0;
29371}
29372_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029373if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029374 ac_cv_lib_jbig_jbg_dec_init=yes
29375else
cristy8b350f62009-11-15 23:12:43 +000029376 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000029377fi
cristy8b350f62009-11-15 23:12:43 +000029378rm -f core conftest.err conftest.$ac_objext \
29379 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029380LIBS=$ac_check_lib_save_LIBS
29381fi
cristy8b350f62009-11-15 23:12:43 +000029382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000029383$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000029384if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029385 passed=`expr $passed + 1`
29386else
29387 failed=`expr $failed + 1`
29388fi
29389
cristy8b350f62009-11-15 23:12:43 +000029390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029391$as_echo_n "checking if JBIG package is complete... " >&6; }
29392 if test $passed -gt 0; then
29393 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29395$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029396 have_jbig='no (failed tests)'
29397 else
29398 JBIG_LIBS='-ljbig'
29399 LIBS="$JBIG_LIBS $LIBS"
29400
cristy8b350f62009-11-15 23:12:43 +000029401$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029402
cristyad38abe2012-12-23 23:03:21 +000029403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29404$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029405 have_jbig='yes'
29406 fi
29407 else
cristyad38abe2012-12-23 23:03:21 +000029408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29409$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029410 fi
29411fi
cristy73bd4a52010-10-05 11:24:23 +000029412 if test "$have_jbig" = 'yes'; then
29413 JBIG_DELEGATE_TRUE=
29414 JBIG_DELEGATE_FALSE='#'
29415else
29416 JBIG_DELEGATE_TRUE='#'
29417 JBIG_DELEGATE_FALSE=
29418fi
29419
cristy3ed852e2009-09-05 21:47:34 +000029420
29421
29422
29423#
29424# Check for JPEG delegate library.
29425#
29426
29427# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000029428if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029429 withval=$with_jpeg; with_jpeg=$withval
29430else
29431 with_jpeg='yes'
29432fi
29433
29434
29435if test "$with_jpeg" != 'yes'; then
29436 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
29437fi
29438
29439have_jpeg='no'
29440JPEG_LIBS=''
29441if test "$with_jpeg" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29443$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029445$as_echo_n "checking for JPEG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29447$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029448 failed=0
29449 passed=0
cristy8b350f62009-11-15 23:12:43 +000029450 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029451if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029452 passed=`expr $passed + 1`
29453else
29454 failed=`expr $failed + 1`
29455fi
29456
29457
cristy8b350f62009-11-15 23:12:43 +000029458 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029459if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029460 passed=`expr $passed + 1`
29461else
29462 failed=`expr $failed + 1`
29463fi
29464
29465
cristy8b350f62009-11-15 23:12:43 +000029466 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029467if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029468 passed=`expr $passed + 1`
29469else
29470 failed=`expr $failed + 1`
29471fi
29472
29473
cristy8b350f62009-11-15 23:12:43 +000029474 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029475if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029476 passed=`expr $passed + 1`
29477else
29478 failed=`expr $failed + 1`
29479fi
29480
29481
cristy8b350f62009-11-15 23:12:43 +000029482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000029483$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029484if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029485 $as_echo_n "(cached) " >&6
29486else
29487 ac_check_lib_save_LIBS=$LIBS
29488LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029489cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029490/* end confdefs.h. */
29491
29492/* Override any GCC internal prototype to avoid an error.
29493 Use char because int might match the return type of a GCC
29494 builtin and then its argument prototype would still apply. */
29495#ifdef __cplusplus
29496extern "C"
29497#endif
29498char jpeg_read_header ();
29499int
29500main ()
29501{
29502return jpeg_read_header ();
29503 ;
29504 return 0;
29505}
29506_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029507if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029508 ac_cv_lib_jpeg_jpeg_read_header=yes
29509else
cristy8b350f62009-11-15 23:12:43 +000029510 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000029511fi
cristy8b350f62009-11-15 23:12:43 +000029512rm -f core conftest.err conftest.$ac_objext \
29513 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029514LIBS=$ac_check_lib_save_LIBS
29515fi
cristy8b350f62009-11-15 23:12:43 +000029516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000029517$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000029518if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029519 passed=`expr $passed + 1`
29520else
29521 failed=`expr $failed + 1`
29522fi
29523
29524
29525# Test for compatible JPEG library
29526if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000029527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000029528$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029529if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029530 $as_echo_n "(cached) " >&6
29531else
cristy8b350f62009-11-15 23:12:43 +000029532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029533/* end confdefs.h. */
29534#include <stdio.h>
29535#include <stdlib.h>
29536#include <jpeglib.h>
29537
29538int
29539main ()
29540{
29541
29542#if JPEG_LIB_VERSION < 62
29543#error IJG JPEG library must be version 6b or newer!
29544#endif
29545return 0;
29546
29547 ;
29548 return 0;
29549}
29550_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029551if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029552 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
29553else
cristy8b350f62009-11-15 23:12:43 +000029554 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029555fi
cristy3ed852e2009-09-05 21:47:34 +000029556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29557fi
cristy8b350f62009-11-15 23:12:43 +000029558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000029559$as_echo "$ac_cv_jpeg_version_ok" >&6; }
29560fi
cristy8b350f62009-11-15 23:12:43 +000029561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029562$as_echo_n "checking if JPEG package is complete... " >&6; }
29563 if test $passed -gt 0; then
29564 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29566$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029567 have_jpeg='no (failed tests)'
29568 else
29569 JPEG_LIBS='-ljpeg'
29570 LIBS="$JPEG_LIBS $LIBS"
29571
cristy8b350f62009-11-15 23:12:43 +000029572$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029573
cristyad38abe2012-12-23 23:03:21 +000029574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29575$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029576 have_jpeg='yes'
29577 fi
29578 else
cristyad38abe2012-12-23 23:03:21 +000029579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29580$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029581 fi
29582fi
cristy73bd4a52010-10-05 11:24:23 +000029583 if test "$have_jpeg" = 'yes'; then
29584 JPEG_DELEGATE_TRUE=
29585 JPEG_DELEGATE_FALSE='#'
29586else
29587 JPEG_DELEGATE_TRUE='#'
29588 JPEG_DELEGATE_FALSE=
29589fi
29590
cristy3ed852e2009-09-05 21:47:34 +000029591
29592
29593
29594#
29595# Check for JPEG Version 2 delegate library.
29596#
29597
29598# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000029599if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029600 withval=$with_jp2; with_jp2=$withval
29601else
29602 with_jp2='yes'
29603fi
29604
29605
29606if test "$with_jp2" != 'yes'; then
29607 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
29608fi
29609
29610have_jp2='no'
29611JP2_LIBS=''
29612if test "$with_jp2" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29614$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000029616$as_echo_n "checking for JPEG Version 2... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29618$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029619 failed=0
29620 passed=0
cristy8b350f62009-11-15 23:12:43 +000029621 ac_fn_c_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029622if test "x$ac_cv_header_jasper_jasper_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029623 passed=`expr $passed + 1`
29624else
29625 failed=`expr $failed + 1`
29626fi
29627
29628
cristy8b350f62009-11-15 23:12:43 +000029629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000029630$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029631if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029632 $as_echo_n "(cached) " >&6
29633else
29634 ac_check_lib_save_LIBS=$LIBS
29635LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029636cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029637/* end confdefs.h. */
29638
29639/* Override any GCC internal prototype to avoid an error.
29640 Use char because int might match the return type of a GCC
29641 builtin and then its argument prototype would still apply. */
29642#ifdef __cplusplus
29643extern "C"
29644#endif
29645char jas_stream_fopen ();
29646int
29647main ()
29648{
29649return jas_stream_fopen ();
29650 ;
29651 return 0;
29652}
29653_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029654if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029655 ac_cv_lib_jasper_jas_stream_fopen=yes
29656else
cristy8b350f62009-11-15 23:12:43 +000029657 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000029658fi
cristy8b350f62009-11-15 23:12:43 +000029659rm -f core conftest.err conftest.$ac_objext \
29660 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029661LIBS=$ac_check_lib_save_LIBS
29662fi
cristy8b350f62009-11-15 23:12:43 +000029663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000029664$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000029665if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029666 passed=`expr $passed + 1`
29667else
29668 failed=`expr $failed + 1`
29669fi
29670
cristy8b350f62009-11-15 23:12:43 +000029671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029672$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
29673 if test $passed -gt 0; then
29674 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29676$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029677 have_jp2='no (failed tests)'
29678 else
29679 JP2_LIBS='-ljasper'
29680 LIBS="$JP2_LIBS $LIBS"
29681
cristy8b350f62009-11-15 23:12:43 +000029682$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029683
cristyad38abe2012-12-23 23:03:21 +000029684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29685$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029686 have_jp2='yes'
29687 fi
29688 else
cristyad38abe2012-12-23 23:03:21 +000029689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29690$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029691 fi
29692fi
cristy73bd4a52010-10-05 11:24:23 +000029693 if test "$have_jp2" = 'yes'; then
29694 JP2_DELEGATE_TRUE=
29695 JP2_DELEGATE_FALSE='#'
29696else
29697 JP2_DELEGATE_TRUE='#'
29698 JP2_DELEGATE_FALSE=
29699fi
29700
cristy3ed852e2009-09-05 21:47:34 +000029701
29702
29703
29704#
29705# Check for LCMS delegate library.
29706#
cristy71203402010-06-18 13:12:03 +000029707# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000029708
29709# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000029710if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029711 withval=$with_lcms; with_lcms=$withval
29712else
29713 with_lcms='yes'
29714fi
29715
cristy71203402010-06-18 13:12:03 +000029716if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000029717 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
29718fi
29719
cristy71203402010-06-18 13:12:03 +000029720# Disable LCMS2.
29721
29722# Check whether --with-lcms2 was given.
29723if test "${with_lcms2+set}" = set; then :
29724 withval=$with_lcms2; with_lcms2=$withval
29725else
29726 with_lcms2='yes'
29727fi
29728
29729if test "$with_lcms2" != 'yes' ; then
29730 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
29731fi
29732
29733have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000029734LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000029735if test "$with_lcms2" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29737$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000029738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
29739$as_echo_n "checking for LCMS v2... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29741$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029742 failed=0
29743 passed=0
29744 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029745
29746 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000029747 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029748if test "x$ac_cv_header_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029749 have_lcms_header='yes'
29750fi
29751
29752
29753 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000029754
29755$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
29756
cristy71203402010-06-18 13:12:03 +000029757 passed=`expr $passed + 1`
29758 fi
29759
29760 # Check for <lcms2/lcms2.h)
29761 if test "$have_lcms_header" != 'yes'; then
29762 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 +000029763if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029764 have_lcms_header='yes'
29765fi
29766
29767
cristy71203402010-06-18 13:12:03 +000029768 if test "$have_lcms_header" = 'yes'; then
29769 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000029770
cristy71203402010-06-18 13:12:03 +000029771$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000029772
cristy71203402010-06-18 13:12:03 +000029773 fi
cristyd09bcf92010-03-25 03:04:45 +000029774 fi
cristy71203402010-06-18 13:12:03 +000029775
29776 # Failed to find lcms header?
29777 if test "$have_lcms_header" != 'yes'; then
29778 failed=`expr $failed + 1`
29779 fi
29780
29781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
29782$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029783if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
cristyd09bcf92010-03-25 03:04:45 +000029784 $as_echo_n "(cached) " >&6
29785else
29786 ac_check_lib_save_LIBS=$LIBS
29787LIBS="-llcms2 $LIBS"
29788cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29789/* end confdefs.h. */
29790
29791/* Override any GCC internal prototype to avoid an error.
29792 Use char because int might match the return type of a GCC
29793 builtin and then its argument prototype would still apply. */
29794#ifdef __cplusplus
29795extern "C"
29796#endif
cristy71203402010-06-18 13:12:03 +000029797char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000029798int
29799main ()
29800{
cristy71203402010-06-18 13:12:03 +000029801return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000029802 ;
29803 return 0;
29804}
29805_ACEOF
29806if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000029807 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000029808else
cristy71203402010-06-18 13:12:03 +000029809 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000029810fi
29811rm -f core conftest.err conftest.$ac_objext \
29812 conftest$ac_exeext conftest.$ac_ext
29813LIBS=$ac_check_lib_save_LIBS
29814fi
cristy71203402010-06-18 13:12:03 +000029815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
29816$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000029817if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029818 passed=`expr $passed + 1`
29819else
29820 failed=`expr $failed + 1`
29821fi
29822
cristy71203402010-06-18 13:12:03 +000029823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
29824$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000029825 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000029826 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29828$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000029829 have_lcms2='no (failed tests)'
29830 else
29831 LCMS_LIBS='-llcms2'
29832 LIBS="$LCMS_LIBS $LIBS"
cristyad38abe2012-12-23 23:03:21 +000029833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29834$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000029835 have_lcms2='yes'
29836 fi
cristyd09bcf92010-03-25 03:04:45 +000029837 else
cristyad38abe2012-12-23 23:03:21 +000029838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29839$as_echo "no" >&6; }
cristyd09bcf92010-03-25 03:04:45 +000029840 fi
29841fi
29842
cristy71203402010-06-18 13:12:03 +000029843#
29844# Check for LCMS v1 (1.11 or later)
29845#
29846if test $have_lcms2 = 'yes'; then
29847 with_lcms='no'
29848fi
29849
29850have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000029851if test "$with_lcms" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29853$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000029854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
29855$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29857$as_echo "" >&6; }
cristyd09bcf92010-03-25 03:04:45 +000029858 failed=0
29859 passed=0
29860 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029861
29862 # Check for <lcms.h>
29863 if test "$have_lcms_header" != 'yes'; then
29864 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029865if test "x$ac_cv_header_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029866 have_lcms_header='yes'
29867fi
29868
29869
cristy71203402010-06-18 13:12:03 +000029870 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029871 passed=`expr $passed + 1`
29872
cristy8b350f62009-11-15 23:12:43 +000029873$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029874
cristy71203402010-06-18 13:12:03 +000029875 fi
29876 fi
29877
29878 # Check for <lcms/lcms.h>
29879 if test "$have_lcms_header" != 'yes'; then
29880 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 +000029881if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029882 have_lcms_header='yes'
29883fi
29884
29885
cristy71203402010-06-18 13:12:03 +000029886 if test "$have_lcms_header" = 'yes'; then
29887 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029888
cristy8b350f62009-11-15 23:12:43 +000029889$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029890
cristy71203402010-06-18 13:12:03 +000029891 fi
cristy3ed852e2009-09-05 21:47:34 +000029892 fi
cristy71203402010-06-18 13:12:03 +000029893
29894 # Failed to find lcms header?
29895 if test "$have_lcms_header" != 'yes'; then
29896 failed=`expr $failed + 1`
29897 fi
29898
29899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
29900$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029901if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029902 $as_echo_n "(cached) " >&6
29903else
29904 ac_check_lib_save_LIBS=$LIBS
29905LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029906cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029907/* end confdefs.h. */
29908
29909/* Override any GCC internal prototype to avoid an error.
29910 Use char because int might match the return type of a GCC
29911 builtin and then its argument prototype would still apply. */
29912#ifdef __cplusplus
29913extern "C"
29914#endif
cristy71203402010-06-18 13:12:03 +000029915char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000029916int
29917main ()
29918{
cristy71203402010-06-18 13:12:03 +000029919return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000029920 ;
29921 return 0;
29922}
29923_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029924if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000029925 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000029926else
cristy71203402010-06-18 13:12:03 +000029927 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000029928fi
cristy8b350f62009-11-15 23:12:43 +000029929rm -f core conftest.err conftest.$ac_objext \
29930 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029931LIBS=$ac_check_lib_save_LIBS
29932fi
cristy71203402010-06-18 13:12:03 +000029933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
29934$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000029935if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029936 passed=`expr $passed + 1`
29937else
29938 failed=`expr $failed + 1`
29939fi
29940
cristy8b350f62009-11-15 23:12:43 +000029941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029942$as_echo_n "checking if LCMS package is complete... " >&6; }
29943 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000029944 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29946$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000029947 have_lcms='no (failed tests)'
29948 else
29949 LCMS_LIBS='-llcms'
29950 LIBS="$LCMS_LIBS $LIBS"
cristyad38abe2012-12-23 23:03:21 +000029951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29952$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000029953 have_lcms='yes'
29954 fi
cristy3ed852e2009-09-05 21:47:34 +000029955 else
cristyad38abe2012-12-23 23:03:21 +000029956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29957$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029958 fi
29959fi
cristy71203402010-06-18 13:12:03 +000029960
cristy73bd4a52010-10-05 11:24:23 +000029961 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
29962 LCMS_DELEGATE_TRUE=
29963 LCMS_DELEGATE_FALSE='#'
29964else
29965 LCMS_DELEGATE_TRUE='#'
29966 LCMS_DELEGATE_FALSE=
29967fi
29968
cristy71203402010-06-18 13:12:03 +000029969if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
29970
29971$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
29972
29973fi
29974
cristy3ed852e2009-09-05 21:47:34 +000029975
29976
29977
29978#
29979# Check for the LQR (Liquid Rescale) delegate library.
29980#
29981
29982# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000029983if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029984 withval=$with_lqr; with_lqr=$withval
29985else
29986 with_lqr='yes'
29987fi
29988
29989
29990if test "$with_lqr" != 'yes'; then
29991 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
29992fi
29993
29994have_lqr='no'
29995LQR_CFLAGS=""
29996LQR_LIBS=""
29997LQR_PKG=""
29998if test "x$with_lqr" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30000$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030001
30002pkg_failed=no
30003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
30004$as_echo_n "checking for LQR... " >&6; }
30005
30006if test -n "$LQR_CFLAGS"; then
30007 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
30008 elif test -n "$PKG_CONFIG"; then
30009 if test -n "$PKG_CONFIG" && \
30010 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30011 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30012 ac_status=$?
30013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30014 test $ac_status = 0; }; then
30015 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
30016else
30017 pkg_failed=yes
30018fi
30019 else
30020 pkg_failed=untried
30021fi
30022if test -n "$LQR_LIBS"; then
30023 pkg_cv_LQR_LIBS="$LQR_LIBS"
30024 elif test -n "$PKG_CONFIG"; then
30025 if test -n "$PKG_CONFIG" && \
30026 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30027 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30028 ac_status=$?
30029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30030 test $ac_status = 0; }; then
30031 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
30032else
30033 pkg_failed=yes
30034fi
30035 else
30036 pkg_failed=untried
30037fi
30038
30039
30040
30041if test $pkg_failed = yes; then
30042
30043if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30044 _pkg_short_errors_supported=yes
30045else
30046 _pkg_short_errors_supported=no
30047fi
30048 if test $_pkg_short_errors_supported = yes; then
30049 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
30050 else
30051 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
30052 fi
30053 # Put the nasty error message in config.log where it belongs
30054 echo "$LQR_PKG_ERRORS" >&5
30055
30056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30057$as_echo "no" >&6; }
30058 have_lqr=no
30059elif test $pkg_failed = untried; then
30060 have_lqr=no
30061else
30062 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
30063 LQR_LIBS=$pkg_cv_LQR_LIBS
30064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30065$as_echo "yes" >&6; }
30066 have_lqr=yes
30067fi
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 +000030070fi
30071
30072if test "$have_lqr" = 'yes'; then
30073
cristy8b350f62009-11-15 23:12:43 +000030074$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030075
30076 CFLAGS="$LQR_CFLAGS $CFLAGS"
30077fi
30078
cristy73bd4a52010-10-05 11:24:23 +000030079 if test "$have_lqr" = 'yes'; then
30080 LQR_DELEGATE_TRUE=
30081 LQR_DELEGATE_FALSE='#'
30082else
30083 LQR_DELEGATE_TRUE='#'
30084 LQR_DELEGATE_FALSE=
30085fi
30086
cristy3ed852e2009-09-05 21:47:34 +000030087
30088
30089
30090
cristy81beccd2011-10-03 18:17:24 +000030091# Disable LZMA (lzma library)
cristyfbb0ef02010-12-19 02:32:11 +000030092
30093# Check whether --with-lzma was given.
30094if test "${with_lzma+set}" = set; then :
30095 withval=$with_lzma; with_lzma=$withval
30096else
30097 with_lzma='yes'
30098fi
30099
cristy81beccd2011-10-03 18:17:24 +000030100if test "$with_lzma" != 'yes' ; then
cristyfbb0ef02010-12-19 02:32:11 +000030101 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
30102fi
30103
cristyb94e5002011-11-14 13:20:10 +000030104LZMA_PKG=""
30105if test "x$with_lzma" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30107$as_echo "-------------------------------------------------------------" >&6; }
cristyb94e5002011-11-14 13:20:10 +000030108
30109pkg_failed=no
30110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
cristyfbb0ef02010-12-19 02:32:11 +000030111$as_echo_n "checking for LZMA... " >&6; }
cristyb94e5002011-11-14 13:20:10 +000030112
30113if test -n "$LZMA_CFLAGS"; then
30114 pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
30115 elif test -n "$PKG_CONFIG"; then
30116 if test -n "$PKG_CONFIG" && \
30117 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30118 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30119 ac_status=$?
30120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30121 test $ac_status = 0; }; then
30122 pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null`
30123else
30124 pkg_failed=yes
30125fi
30126 else
30127 pkg_failed=untried
30128fi
30129if test -n "$LZMA_LIBS"; then
30130 pkg_cv_LZMA_LIBS="$LZMA_LIBS"
30131 elif test -n "$PKG_CONFIG"; then
30132 if test -n "$PKG_CONFIG" && \
30133 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30134 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30135 ac_status=$?
30136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30137 test $ac_status = 0; }; then
30138 pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null`
30139else
30140 pkg_failed=yes
30141fi
30142 else
30143 pkg_failed=untried
30144fi
30145
30146
30147
30148if test $pkg_failed = yes; then
30149
30150if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30151 _pkg_short_errors_supported=yes
30152else
30153 _pkg_short_errors_supported=no
30154fi
30155 if test $_pkg_short_errors_supported = yes; then
30156 LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "liblzma >= 2.9.0" 2>&1`
30157 else
30158 LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors "liblzma >= 2.9.0" 2>&1`
30159 fi
30160 # Put the nasty error message in config.log where it belongs
30161 echo "$LZMA_PKG_ERRORS" >&5
30162
30163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30164$as_echo "no" >&6; }
30165 have_lzma=no
30166elif test $pkg_failed = untried; then
30167 have_lzma=no
30168else
30169 LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
30170 LZMA_LIBS=$pkg_cv_LZMA_LIBS
30171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30172$as_echo "yes" >&6; }
30173 have_lzma=yes
30174fi
cristyad38abe2012-12-23 23:03:21 +000030175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30176$as_echo "" >&6; }
cristyfbb0ef02010-12-19 02:32:11 +000030177fi
30178
cristyb94e5002011-11-14 13:20:10 +000030179if test "$have_lzma" = 'yes'; then
cristyfbb0ef02010-12-19 02:32:11 +000030180
30181$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
30182
cristyc6722092012-10-14 00:19:31 +000030183 if test "$build_modules" = 'no'; then
cristyb94e5002011-11-14 13:20:10 +000030184 CPPFLAGS="$LZMA_CFLAGS $CPPFLAGS"
cristyfbb0ef02010-12-19 02:32:11 +000030185 fi
cristyfbb0ef02010-12-19 02:32:11 +000030186fi
cristyb94e5002011-11-14 13:20:10 +000030187
cristyfbb0ef02010-12-19 02:32:11 +000030188 if test "$have_lzma" = 'yes'; then
30189 LZMA_DELEGATE_TRUE=
30190 LZMA_DELEGATE_FALSE='#'
30191else
30192 LZMA_DELEGATE_TRUE='#'
30193 LZMA_DELEGATE_FALSE=
30194fi
30195
30196
30197
30198
cristyb94e5002011-11-14 13:20:10 +000030199
cristy3ed852e2009-09-05 21:47:34 +000030200#
30201# Check for the OpenEXR delegate library.
30202#
30203
30204# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000030205if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030206 withval=$with_openexr; with_openexr=$withval
30207else
30208 with_openexr='yes'
30209fi
30210
30211
30212if test "$with_openexr" != 'yes'; then
30213 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
30214fi
30215
30216have_openexr='no'
30217OPENEXR_CFLAGS=""
30218OPENEXR_LIBS=""
30219OPENEXR_PKG=""
30220if test "x$with_openexr" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30222$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030223
30224pkg_failed=no
30225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
30226$as_echo_n "checking for OPENEXR... " >&6; }
30227
30228if test -n "$OPENEXR_CFLAGS"; then
30229 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
30230 elif test -n "$PKG_CONFIG"; then
30231 if test -n "$PKG_CONFIG" && \
30232 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30233 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30234 ac_status=$?
30235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30236 test $ac_status = 0; }; then
30237 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
30238else
30239 pkg_failed=yes
30240fi
30241 else
30242 pkg_failed=untried
30243fi
30244if test -n "$OPENEXR_LIBS"; then
30245 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
30246 elif test -n "$PKG_CONFIG"; then
30247 if test -n "$PKG_CONFIG" && \
30248 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30249 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30250 ac_status=$?
30251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30252 test $ac_status = 0; }; then
30253 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
30254else
30255 pkg_failed=yes
30256fi
30257 else
30258 pkg_failed=untried
30259fi
30260
30261
30262
30263if test $pkg_failed = yes; then
30264
30265if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30266 _pkg_short_errors_supported=yes
30267else
30268 _pkg_short_errors_supported=no
30269fi
30270 if test $_pkg_short_errors_supported = yes; then
30271 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
30272 else
30273 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
30274 fi
30275 # Put the nasty error message in config.log where it belongs
30276 echo "$OPENEXR_PKG_ERRORS" >&5
30277
30278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30279$as_echo "no" >&6; }
30280 have_openexr=no
30281elif test $pkg_failed = untried; then
30282 have_openexr=no
30283else
30284 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
30285 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
30286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30287$as_echo "yes" >&6; }
30288 have_openexr=yes
30289fi
cristyad38abe2012-12-23 23:03:21 +000030290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30291$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030292fi
30293
30294if test "$have_openexr" = 'yes'; then
30295
cristy8b350f62009-11-15 23:12:43 +000030296$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030297
cristyc6722092012-10-14 00:19:31 +000030298 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000030299 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
30300 fi
30301fi
30302
cristy73bd4a52010-10-05 11:24:23 +000030303 if test "$have_openexr" = 'yes'; then
30304 OPENEXR_DELEGATE_TRUE=
30305 OPENEXR_DELEGATE_FALSE='#'
30306else
30307 OPENEXR_DELEGATE_TRUE='#'
30308 OPENEXR_DELEGATE_FALSE=
30309fi
30310
cristy3ed852e2009-09-05 21:47:34 +000030311
30312
30313
30314
30315#
cristy41cbe8a2011-10-27 01:35:18 +000030316# Check for PANGO delegate library.
30317#
30318
30319# Check whether --with-pango was given.
30320if test "${with_pango+set}" = set; then :
30321 withval=$with_pango; with_pango=$withval
30322else
cristyfc3d0222012-02-07 15:05:57 +000030323 with_pango='yes'
cristy41cbe8a2011-10-27 01:35:18 +000030324fi
30325
30326
30327if test "$with_pango" != 'yes'; then
30328 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
30329fi
30330
30331have_pango='no'
cristya054b762012-03-26 23:16:00 +000030332have_pangocairo='no'
cristy41cbe8a2011-10-27 01:35:18 +000030333PANGO_CFLAGS=""
30334PANGO_LIBS=""
30335PANGO_PKG=""
30336if test "x$with_pango" = "xyes"; then
30337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30338$as_echo "-------------------------------------------------------------" >&6; }
30339
30340pkg_failed=no
30341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30342$as_echo_n "checking for PANGO... " >&6; }
30343
30344if test -n "$PANGO_CFLAGS"; then
30345 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30346 elif test -n "$PKG_CONFIG"; then
30347 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030348 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30349 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030350 ac_status=$?
30351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30352 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030353 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030354else
30355 pkg_failed=yes
30356fi
30357 else
30358 pkg_failed=untried
30359fi
30360if test -n "$PANGO_LIBS"; then
30361 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30362 elif test -n "$PKG_CONFIG"; then
30363 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030364 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30365 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030366 ac_status=$?
30367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30368 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030369 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030370else
30371 pkg_failed=yes
30372fi
30373 else
30374 pkg_failed=untried
30375fi
30376
30377
30378
30379if test $pkg_failed = yes; then
30380
30381if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30382 _pkg_short_errors_supported=yes
30383else
30384 _pkg_short_errors_supported=no
30385fi
30386 if test $_pkg_short_errors_supported = yes; then
cristya054b762012-03-26 23:16:00 +000030387 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030388 else
cristya054b762012-03-26 23:16:00 +000030389 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030390 fi
30391 # Put the nasty error message in config.log where it belongs
30392 echo "$PANGO_PKG_ERRORS" >&5
30393
30394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30395$as_echo "no" >&6; }
cristya054b762012-03-26 23:16:00 +000030396 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000030397elif test $pkg_failed = untried; then
cristya054b762012-03-26 23:16:00 +000030398 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000030399else
30400 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30401 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30403$as_echo "yes" >&6; }
cristya054b762012-03-26 23:16:00 +000030404 have_pangocairo=yes
cristy41cbe8a2011-10-27 01:35:18 +000030405fi
30406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30407$as_echo "" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000030408
30409pkg_failed=no
30410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30411$as_echo_n "checking for PANGO... " >&6; }
30412
30413if test -n "$PANGO_CFLAGS"; then
30414 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30415 elif test -n "$PKG_CONFIG"; then
30416 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030417 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30418 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030419 ac_status=$?
30420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30421 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030422 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030423else
30424 pkg_failed=yes
30425fi
30426 else
30427 pkg_failed=untried
30428fi
30429if test -n "$PANGO_LIBS"; then
30430 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30431 elif test -n "$PKG_CONFIG"; then
30432 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030433 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30434 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030435 ac_status=$?
30436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30437 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030438 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030439else
30440 pkg_failed=yes
30441fi
30442 else
30443 pkg_failed=untried
30444fi
30445
30446
30447
30448if test $pkg_failed = yes; then
30449
30450if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30451 _pkg_short_errors_supported=yes
30452else
30453 _pkg_short_errors_supported=no
30454fi
30455 if test $_pkg_short_errors_supported = yes; then
cristy2542fc62011-12-06 17:50:25 +000030456 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030457 else
cristy2542fc62011-12-06 17:50:25 +000030458 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030459 fi
30460 # Put the nasty error message in config.log where it belongs
30461 echo "$PANGO_PKG_ERRORS" >&5
30462
30463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30464$as_echo "no" >&6; }
30465 have_pango=no
30466elif test $pkg_failed = untried; then
30467 have_pango=no
30468else
30469 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30470 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30472$as_echo "yes" >&6; }
30473 have_pango=yes
30474fi
30475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30476$as_echo "" >&6; }
cristy41cbe8a2011-10-27 01:35:18 +000030477fi
30478
30479if test "$have_pango" = 'yes'; then
30480
30481$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h
30482
cristyc6722092012-10-14 00:19:31 +000030483 if test "$build_modules" = 'no'; then
cristy41cbe8a2011-10-27 01:35:18 +000030484 CPPFLAGS="$PANGO_CFLAGS $CPPFLAGS"
30485 fi
30486fi
30487
cristya054b762012-03-26 23:16:00 +000030488if test "$have_pangocairo" = 'yes'; then
cristy41cbe8a2011-10-27 01:35:18 +000030489
cristya054b762012-03-26 23:16:00 +000030490$as_echo "#define PANGOCAIRO_DELEGATE 1" >>confdefs.h
cristy41cbe8a2011-10-27 01:35:18 +000030491
cristyc6722092012-10-14 00:19:31 +000030492 if test "$build_modules" = 'no'; then
cristya054b762012-03-26 23:16:00 +000030493 CPPFLAGS="$PANGOCAIRO_CFLAGS $CPPFLAGS"
cristy41cbe8a2011-10-27 01:35:18 +000030494 fi
30495fi
30496
30497 if test "$have_pango" = 'yes'; then
30498 PANGO_DELEGATE_TRUE=
30499 PANGO_DELEGATE_FALSE='#'
30500else
30501 PANGO_DELEGATE_TRUE='#'
30502 PANGO_DELEGATE_FALSE=
30503fi
30504
cristya054b762012-03-26 23:16:00 +000030505 if test "$have_pangocairo" = 'yes'; then
30506 PANGOCAIRO_DELEGATE_TRUE=
30507 PANGOCAIRO_DELEGATE_FALSE='#'
cristy41cbe8a2011-10-27 01:35:18 +000030508else
cristya054b762012-03-26 23:16:00 +000030509 PANGOCAIRO_DELEGATE_TRUE='#'
30510 PANGOCAIRO_DELEGATE_FALSE=
cristy41cbe8a2011-10-27 01:35:18 +000030511fi
30512
30513
30514
30515
30516
30517#
cristy3ed852e2009-09-05 21:47:34 +000030518# Check for PNG delegate library.
30519#
30520
30521# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000030522if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030523 withval=$with_png; with_png=$withval
30524else
30525 with_png='yes'
30526fi
30527
30528
30529if test "$with_png" != 'yes'; then
30530 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
30531fi
30532
cristy81beccd2011-10-03 18:17:24 +000030533have_png='no'
30534PNG_LIBS=''
30535
30536if test "$with_png" != 'no' -a "$have_zlib" != 'no' ; then
cristyad38abe2012-12-23 23:03:21 +000030537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30538$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5
30540$as_echo_n "checking for PNG support ... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30542$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030543 failed=0
30544 passed=0
30545 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
30546if test "x$ac_cv_header_png_h" = xyes; then :
30547 passed=`expr $passed + 1`
30548else
30549 failed=`expr $failed + 1`
cristy64877302011-08-23 19:10:31 +000030550fi
30551
cristy81beccd2011-10-03 18:17:24 +000030552
30553
30554 if test $passed -gt 0; then
glennrp3fc1c212013-01-10 01:52:32 +000030555 for var in 7 6 5 4 2 '' ; do
cristy0615f0e2011-10-12 11:36:46 +000030556 if test "$have_png" = 'no' ; then
30557 if test "x${var}" = 'x' ; then
cristy81beccd2011-10-03 18:17:24 +000030558 pnglib='png'
30559 else
30560 pnglib="png1${var}"
30561 fi
30562
30563# Test for compatible LIBPNG library
30564 failed=0
30565 passed=0
cristy0615f0e2011-10-12 11:36:46 +000030566 if test "$with_png" = 'yes' -o "$with_png" = "libpng1${var}" ; then
cristy81beccd2011-10-03 18:17:24 +000030567 if test "${pnglib}" != 'png' ; then
30568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5
30569$as_echo_n "checking for LIBPNG1${var} support ... " >&6; }
30570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30571/* end confdefs.h. */
30572#include <stdio.h>
30573#include <stdlib.h>
30574#include <png.h>
30575
30576int
30577main ()
30578{
30579
30580#if PNG_LIBPNG_VER_MINOR != ${var}
30581#error LIBPNG library must be version 1${var}!
30582Kaboom, Kaboom
30583#endif
30584return 0;
30585
30586 ;
30587 return 0;
30588}
30589_ACEOF
30590if ac_fn_c_try_compile "$LINENO"; then :
30591 ac_cv_libpng_ok='yes'
30592else
30593 ac_cv_libpng_ok='no'
30594fi
30595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30596 if test "$ac_cv_libpng_ok" = 'yes' ; then
30597 passed=`expr $passed + 1`
cristyad38abe2012-12-23 23:03:21 +000030598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30599$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030600 else
30601 failed=`expr $failed + 1`
cristyad38abe2012-12-23 23:03:21 +000030602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30603$as_echo "no" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030604 fi
30605 else
30606 passed=`expr $passed + 1`
cristyad38abe2012-12-23 23:03:21 +000030607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30608$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030609 fi
30610 fi
30611
30612 if test $passed -gt 0 -a $failed -le 0; then
cristy03f187e2013-01-24 00:22:19 +000030613 if test "1${var}" = '17' ; then
30614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng17" >&5
30615$as_echo_n "checking for png_get_io_ptr in -lpng17... " >&6; }
30616if ${ac_cv_lib_png17_png_get_io_ptr+:} false; then :
30617 $as_echo_n "(cached) " >&6
30618else
30619 ac_check_lib_save_LIBS=$LIBS
30620LIBS="-lpng17 $LIBS"
30621cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30622/* end confdefs.h. */
30623
30624/* Override any GCC internal prototype to avoid an error.
30625 Use char because int might match the return type of a GCC
30626 builtin and then its argument prototype would still apply. */
30627#ifdef __cplusplus
30628extern "C"
30629#endif
30630char png_get_io_ptr ();
30631int
30632main ()
30633{
30634return png_get_io_ptr ();
30635 ;
30636 return 0;
30637}
30638_ACEOF
30639if ac_fn_c_try_link "$LINENO"; then :
30640 ac_cv_lib_png17_png_get_io_ptr=yes
30641else
30642 ac_cv_lib_png17_png_get_io_ptr=no
30643fi
30644rm -f core conftest.err conftest.$ac_objext \
30645 conftest$ac_exeext conftest.$ac_ext
30646LIBS=$ac_check_lib_save_LIBS
30647fi
30648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png17_png_get_io_ptr" >&5
30649$as_echo "$ac_cv_lib_png17_png_get_io_ptr" >&6; }
30650if test "x$ac_cv_lib_png17_png_get_io_ptr" = xyes; then :
30651 passed=`expr $passed + 1`
30652else
30653 failed=`expr $failed + 1`
30654fi
30655
30656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng17" >&5
30657$as_echo_n "checking for png_longjmp in -lpng17... " >&6; }
30658if ${ac_cv_lib_png17_png_longjmp+:} false; then :
30659 $as_echo_n "(cached) " >&6
30660else
30661 ac_check_lib_save_LIBS=$LIBS
30662LIBS="-lpng17 $LIBS"
30663cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30664/* end confdefs.h. */
30665
30666/* Override any GCC internal prototype to avoid an error.
30667 Use char because int might match the return type of a GCC
30668 builtin and then its argument prototype would still apply. */
30669#ifdef __cplusplus
30670extern "C"
30671#endif
30672char png_longjmp ();
30673int
30674main ()
30675{
30676return png_longjmp ();
30677 ;
30678 return 0;
30679}
30680_ACEOF
30681if ac_fn_c_try_link "$LINENO"; then :
30682 ac_cv_lib_png17_png_longjmp=yes
30683else
30684 ac_cv_lib_png17_png_longjmp=no
30685fi
30686rm -f core conftest.err conftest.$ac_objext \
30687 conftest$ac_exeext conftest.$ac_ext
30688LIBS=$ac_check_lib_save_LIBS
30689fi
30690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png17_png_longjmp" >&5
30691$as_echo "$ac_cv_lib_png17_png_longjmp" >&6; }
30692if test "x$ac_cv_lib_png17_png_longjmp" = xyes; then :
30693 passed=`expr $passed + 1`
30694else
30695 failed=`expr $failed + 1`
30696fi
30697
30698 fi
30699 if test "1${var}" = '16' ; then
30700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng16" >&5
30701$as_echo_n "checking for png_get_io_ptr in -lpng16... " >&6; }
30702if ${ac_cv_lib_png16_png_get_io_ptr+:} false; then :
30703 $as_echo_n "(cached) " >&6
30704else
30705 ac_check_lib_save_LIBS=$LIBS
30706LIBS="-lpng16 $LIBS"
30707cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30708/* end confdefs.h. */
30709
30710/* Override any GCC internal prototype to avoid an error.
30711 Use char because int might match the return type of a GCC
30712 builtin and then its argument prototype would still apply. */
30713#ifdef __cplusplus
30714extern "C"
30715#endif
30716char png_get_io_ptr ();
30717int
30718main ()
30719{
30720return png_get_io_ptr ();
30721 ;
30722 return 0;
30723}
30724_ACEOF
30725if ac_fn_c_try_link "$LINENO"; then :
30726 ac_cv_lib_png16_png_get_io_ptr=yes
30727else
30728 ac_cv_lib_png16_png_get_io_ptr=no
30729fi
30730rm -f core conftest.err conftest.$ac_objext \
30731 conftest$ac_exeext conftest.$ac_ext
30732LIBS=$ac_check_lib_save_LIBS
30733fi
30734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png16_png_get_io_ptr" >&5
30735$as_echo "$ac_cv_lib_png16_png_get_io_ptr" >&6; }
30736if test "x$ac_cv_lib_png16_png_get_io_ptr" = xyes; then :
30737 passed=`expr $passed + 1`
30738else
30739 failed=`expr $failed + 1`
30740fi
30741
30742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng16" >&5
30743$as_echo_n "checking for png_longjmp in -lpng16... " >&6; }
30744if ${ac_cv_lib_png16_png_longjmp+:} false; then :
30745 $as_echo_n "(cached) " >&6
30746else
30747 ac_check_lib_save_LIBS=$LIBS
30748LIBS="-lpng16 $LIBS"
30749cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30750/* end confdefs.h. */
30751
30752/* Override any GCC internal prototype to avoid an error.
30753 Use char because int might match the return type of a GCC
30754 builtin and then its argument prototype would still apply. */
30755#ifdef __cplusplus
30756extern "C"
30757#endif
30758char png_longjmp ();
30759int
30760main ()
30761{
30762return png_longjmp ();
30763 ;
30764 return 0;
30765}
30766_ACEOF
30767if ac_fn_c_try_link "$LINENO"; then :
30768 ac_cv_lib_png16_png_longjmp=yes
30769else
30770 ac_cv_lib_png16_png_longjmp=no
30771fi
30772rm -f core conftest.err conftest.$ac_objext \
30773 conftest$ac_exeext conftest.$ac_ext
30774LIBS=$ac_check_lib_save_LIBS
30775fi
30776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png16_png_longjmp" >&5
30777$as_echo "$ac_cv_lib_png16_png_longjmp" >&6; }
30778if test "x$ac_cv_lib_png16_png_longjmp" = xyes; then :
30779 passed=`expr $passed + 1`
30780else
30781 failed=`expr $failed + 1`
30782fi
30783
30784 fi
cristy81beccd2011-10-03 18:17:24 +000030785 if test "1${var}" = '15' ; then
30786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5
30787$as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; }
30788if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then :
30789 $as_echo_n "(cached) " >&6
30790else
30791 ac_check_lib_save_LIBS=$LIBS
30792LIBS="-lpng15 $LIBS"
30793cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30794/* end confdefs.h. */
30795
30796/* Override any GCC internal prototype to avoid an error.
30797 Use char because int might match the return type of a GCC
30798 builtin and then its argument prototype would still apply. */
30799#ifdef __cplusplus
30800extern "C"
30801#endif
30802char png_get_io_ptr ();
30803int
30804main ()
30805{
30806return png_get_io_ptr ();
30807 ;
30808 return 0;
30809}
30810_ACEOF
30811if ac_fn_c_try_link "$LINENO"; then :
30812 ac_cv_lib_png15_png_get_io_ptr=yes
30813else
30814 ac_cv_lib_png15_png_get_io_ptr=no
30815fi
30816rm -f core conftest.err conftest.$ac_objext \
30817 conftest$ac_exeext conftest.$ac_ext
30818LIBS=$ac_check_lib_save_LIBS
30819fi
30820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5
30821$as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; }
30822if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then :
30823 passed=`expr $passed + 1`
30824else
30825 failed=`expr $failed + 1`
30826fi
30827
30828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5
30829$as_echo_n "checking for png_longjmp in -lpng15... " >&6; }
30830if ${ac_cv_lib_png15_png_longjmp+:} false; then :
30831 $as_echo_n "(cached) " >&6
30832else
30833 ac_check_lib_save_LIBS=$LIBS
30834LIBS="-lpng15 $LIBS"
30835cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30836/* end confdefs.h. */
30837
30838/* Override any GCC internal prototype to avoid an error.
30839 Use char because int might match the return type of a GCC
30840 builtin and then its argument prototype would still apply. */
30841#ifdef __cplusplus
30842extern "C"
30843#endif
30844char png_longjmp ();
30845int
30846main ()
30847{
30848return png_longjmp ();
30849 ;
30850 return 0;
30851}
30852_ACEOF
30853if ac_fn_c_try_link "$LINENO"; then :
30854 ac_cv_lib_png15_png_longjmp=yes
30855else
30856 ac_cv_lib_png15_png_longjmp=no
30857fi
30858rm -f core conftest.err conftest.$ac_objext \
30859 conftest$ac_exeext conftest.$ac_ext
30860LIBS=$ac_check_lib_save_LIBS
30861fi
30862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5
30863$as_echo "$ac_cv_lib_png15_png_longjmp" >&6; }
30864if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then :
30865 passed=`expr $passed + 1`
30866else
30867 failed=`expr $failed + 1`
30868fi
30869
30870 fi
30871 if test "1${var}" = '14' ; then
30872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5
30873$as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; }
30874if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then :
30875 $as_echo_n "(cached) " >&6
30876else
30877 ac_check_lib_save_LIBS=$LIBS
30878LIBS="-lpng14 $LIBS"
30879cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30880/* end confdefs.h. */
30881
30882/* Override any GCC internal prototype to avoid an error.
30883 Use char because int might match the return type of a GCC
30884 builtin and then its argument prototype would still apply. */
30885#ifdef __cplusplus
30886extern "C"
30887#endif
30888char png_get_io_ptr ();
30889int
30890main ()
30891{
30892return png_get_io_ptr ();
30893 ;
30894 return 0;
30895}
30896_ACEOF
30897if ac_fn_c_try_link "$LINENO"; then :
30898 ac_cv_lib_png14_png_get_io_ptr=yes
30899else
30900 ac_cv_lib_png14_png_get_io_ptr=no
30901fi
30902rm -f core conftest.err conftest.$ac_objext \
30903 conftest$ac_exeext conftest.$ac_ext
30904LIBS=$ac_check_lib_save_LIBS
30905fi
30906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5
30907$as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; }
30908if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then :
30909 passed=`expr $passed + 1`
30910else
30911 failed=`expr $failed + 1`
30912fi
30913
30914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5
30915$as_echo_n "checking for png_get_io_state in -lpng14... " >&6; }
30916if ${ac_cv_lib_png14_png_get_io_state+:} false; then :
30917 $as_echo_n "(cached) " >&6
30918else
30919 ac_check_lib_save_LIBS=$LIBS
30920LIBS="-lpng14 $LIBS"
30921cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30922/* end confdefs.h. */
30923
30924/* Override any GCC internal prototype to avoid an error.
30925 Use char because int might match the return type of a GCC
30926 builtin and then its argument prototype would still apply. */
30927#ifdef __cplusplus
30928extern "C"
30929#endif
30930char png_get_io_state ();
30931int
30932main ()
30933{
30934return png_get_io_state ();
30935 ;
30936 return 0;
30937}
30938_ACEOF
30939if ac_fn_c_try_link "$LINENO"; then :
30940 ac_cv_lib_png14_png_get_io_state=yes
30941else
30942 ac_cv_lib_png14_png_get_io_state=no
30943fi
30944rm -f core conftest.err conftest.$ac_objext \
30945 conftest$ac_exeext conftest.$ac_ext
30946LIBS=$ac_check_lib_save_LIBS
30947fi
30948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5
30949$as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; }
30950if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then :
30951 passed=`expr $passed + 1`
30952else
30953 failed=`expr $failed + 1`
30954fi
30955
30956 fi
30957 if test "1${var}" = '12' ; then
30958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5
30959$as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; }
30960if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then :
30961 $as_echo_n "(cached) " >&6
30962else
30963 ac_check_lib_save_LIBS=$LIBS
30964LIBS="-lpng12 $LIBS"
30965cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30966/* end confdefs.h. */
30967
30968/* Override any GCC internal prototype to avoid an error.
30969 Use char because int might match the return type of a GCC
30970 builtin and then its argument prototype would still apply. */
30971#ifdef __cplusplus
30972extern "C"
30973#endif
30974char png_get_io_ptr ();
30975int
30976main ()
30977{
30978return png_get_io_ptr ();
30979 ;
30980 return 0;
30981}
30982_ACEOF
30983if ac_fn_c_try_link "$LINENO"; then :
30984 ac_cv_lib_png12_png_get_io_ptr=yes
30985else
30986 ac_cv_lib_png12_png_get_io_ptr=no
30987fi
30988rm -f core conftest.err conftest.$ac_objext \
30989 conftest$ac_exeext conftest.$ac_ext
30990LIBS=$ac_check_lib_save_LIBS
30991fi
30992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5
30993$as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; }
30994if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then :
30995 passed=`expr $passed + 1`
30996else
30997 failed=`expr $failed + 1`
30998fi
30999
31000 fi
31001 if test "1${var}" = '1' ; then
31002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
31003$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
31004if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
31005 $as_echo_n "(cached) " >&6
31006else
31007 ac_check_lib_save_LIBS=$LIBS
31008LIBS="-lpng $LIBS"
31009cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31010/* end confdefs.h. */
31011
31012/* Override any GCC internal prototype to avoid an error.
31013 Use char because int might match the return type of a GCC
31014 builtin and then its argument prototype would still apply. */
31015#ifdef __cplusplus
31016extern "C"
31017#endif
31018char png_get_io_ptr ();
31019int
31020main ()
31021{
31022return png_get_io_ptr ();
31023 ;
31024 return 0;
31025}
31026_ACEOF
31027if ac_fn_c_try_link "$LINENO"; then :
31028 ac_cv_lib_png_png_get_io_ptr=yes
31029else
31030 ac_cv_lib_png_png_get_io_ptr=no
31031fi
31032rm -f core conftest.err conftest.$ac_objext \
31033 conftest$ac_exeext conftest.$ac_ext
31034LIBS=$ac_check_lib_save_LIBS
31035fi
31036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
31037$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
31038if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
31039 passed=`expr $passed + 1`
31040else
31041 failed=`expr $failed + 1`
31042fi
31043
31044 fi
31045 if test $passed -gt 0 -a $failed -le 0 ; then
31046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5
31047$as_echo_n "checking if ${pnglib} package is complete... " >&6; }
31048 if test $passed -gt 0 ; then
31049 if test $failed -gt 0 ; then
cristyad38abe2012-12-23 23:03:21 +000031050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31051$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031052 have_png='no (failed tests)'
31053 else
31054 PNG_LIBS="-l${pnglib}"
31055 LIBS="$PNG_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031056
cristy8b350f62009-11-15 23:12:43 +000031057$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031058
cristyad38abe2012-12-23 23:03:21 +000031059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31060$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031061 have_png='yes'
31062 fi
31063 fi
31064 fi
31065 fi
31066 fi
31067 done
31068 fi
cristy3ed852e2009-09-05 21:47:34 +000031069fi
cristy64877302011-08-23 19:10:31 +000031070
cristy73bd4a52010-10-05 11:24:23 +000031071 if test "$have_png" = 'yes'; then
31072 PNG_DELEGATE_TRUE=
31073 PNG_DELEGATE_FALSE='#'
31074else
31075 PNG_DELEGATE_TRUE='#'
31076 PNG_DELEGATE_FALSE=
31077fi
31078
cristy3ed852e2009-09-05 21:47:34 +000031079
cristy50d3f5c2011-09-10 20:09:06 +000031080
cristy3ed852e2009-09-05 21:47:34 +000031081
31082
31083#
31084# Check for RSVG delegate library.
31085#
31086
31087# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000031088if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031089 withval=$with_rsvg; with_rsvg=$withval
31090else
cristy1164d5f2012-08-15 00:58:25 +000031091 with_rsvg='no'
cristy3ed852e2009-09-05 21:47:34 +000031092fi
31093
31094
31095if test "$with_rsvg" != 'yes'; then
31096 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
31097fi
31098
31099have_rsvg='no'
31100have_cairo='no'
31101RSVG_CFLAGS=""
31102RSVG_LIBS=""
31103RSVG_PKG=""
31104if test "x$with_rsvg" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000031105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31106$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031107
31108pkg_failed=no
31109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
31110$as_echo_n "checking for RSVG... " >&6; }
31111
31112if test -n "$RSVG_CFLAGS"; then
31113 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
31114 elif test -n "$PKG_CONFIG"; then
31115 if test -n "$PKG_CONFIG" && \
31116 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31117 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31118 ac_status=$?
31119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31120 test $ac_status = 0; }; then
31121 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31122else
31123 pkg_failed=yes
31124fi
31125 else
31126 pkg_failed=untried
31127fi
31128if test -n "$RSVG_LIBS"; then
31129 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
31130 elif test -n "$PKG_CONFIG"; then
31131 if test -n "$PKG_CONFIG" && \
31132 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31133 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31134 ac_status=$?
31135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31136 test $ac_status = 0; }; then
31137 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31138else
31139 pkg_failed=yes
31140fi
31141 else
31142 pkg_failed=untried
31143fi
31144
31145
31146
31147if test $pkg_failed = yes; then
31148
31149if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31150 _pkg_short_errors_supported=yes
31151else
31152 _pkg_short_errors_supported=no
31153fi
31154 if test $_pkg_short_errors_supported = yes; then
31155 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31156 else
31157 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31158 fi
31159 # Put the nasty error message in config.log where it belongs
31160 echo "$RSVG_PKG_ERRORS" >&5
31161
31162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31163$as_echo "no" >&6; }
31164 have_rsvg=no
31165elif test $pkg_failed = untried; then
31166 have_rsvg=no
31167else
31168 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
31169 RSVG_LIBS=$pkg_cv_RSVG_LIBS
31170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31171$as_echo "yes" >&6; }
31172 have_rsvg=yes
31173fi
cristyad38abe2012-12-23 23:03:21 +000031174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31175$as_echo "" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031176
31177pkg_failed=no
31178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
31179$as_echo_n "checking for CAIRO_SVG... " >&6; }
31180
31181if test -n "$CAIRO_SVG_CFLAGS"; then
31182 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
31183 elif test -n "$PKG_CONFIG"; then
31184 if test -n "$PKG_CONFIG" && \
31185 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31186 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31187 ac_status=$?
31188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31189 test $ac_status = 0; }; then
31190 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
31191else
31192 pkg_failed=yes
31193fi
31194 else
31195 pkg_failed=untried
31196fi
31197if test -n "$CAIRO_SVG_LIBS"; then
31198 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
31199 elif test -n "$PKG_CONFIG"; then
31200 if test -n "$PKG_CONFIG" && \
31201 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31202 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31203 ac_status=$?
31204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31205 test $ac_status = 0; }; then
31206 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
31207else
31208 pkg_failed=yes
31209fi
31210 else
31211 pkg_failed=untried
31212fi
31213
31214
31215
31216if test $pkg_failed = yes; then
31217
31218if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31219 _pkg_short_errors_supported=yes
31220else
31221 _pkg_short_errors_supported=no
31222fi
31223 if test $_pkg_short_errors_supported = yes; then
31224 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
31225 else
31226 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
31227 fi
31228 # Put the nasty error message in config.log where it belongs
31229 echo "$CAIRO_SVG_PKG_ERRORS" >&5
31230
31231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31232$as_echo "no" >&6; }
31233 have_cairo=no
31234elif test $pkg_failed = untried; then
31235 have_cairo=no
31236else
31237 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
31238 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
31239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31240$as_echo "yes" >&6; }
31241 have_cairo=yes
31242fi
cristyad38abe2012-12-23 23:03:21 +000031243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31244$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031245fi
31246
31247if test "$have_rsvg" = 'yes'; then
31248
cristy8b350f62009-11-15 23:12:43 +000031249$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031250
cristyc6722092012-10-14 00:19:31 +000031251 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000031252 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
31253 fi
31254fi
31255
31256if test "$have_cairo" = 'yes'; then
31257
cristy8b350f62009-11-15 23:12:43 +000031258$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031259
cristyc6722092012-10-14 00:19:31 +000031260 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000031261 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
31262 fi
31263fi
31264
cristy73bd4a52010-10-05 11:24:23 +000031265 if test "$have_rsvg" = 'yes'; then
31266 RSVG_DELEGATE_TRUE=
31267 RSVG_DELEGATE_FALSE='#'
31268else
31269 RSVG_DELEGATE_TRUE='#'
31270 RSVG_DELEGATE_FALSE=
31271fi
31272
31273 if test "$have_cairo" = 'yes'; then
31274 CAIRO_DELEGATE_TRUE=
31275 CAIRO_DELEGATE_FALSE='#'
31276else
31277 CAIRO_DELEGATE_TRUE='#'
31278 CAIRO_DELEGATE_FALSE=
31279fi
31280
cristy3ed852e2009-09-05 21:47:34 +000031281
31282
31283
31284
31285#
31286# Check for TIFF delegate library.
31287#
31288
31289# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000031290if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031291 withval=$with_tiff; with_tiff=$withval
31292else
31293 with_tiff='yes'
31294fi
31295
31296
31297if test "$with_tiff" != 'yes'; then
31298 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
31299fi
31300
31301have_tiff='no'
31302TIFF_LIBS=''
31303if test "$with_tiff" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000031304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31305$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031307$as_echo_n "checking for TIFF... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000031308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31309$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031310 failed=0
31311 passed=0
cristy8b350f62009-11-15 23:12:43 +000031312 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031313if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031314 passed=`expr $passed + 1`
31315else
31316 failed=`expr $failed + 1`
31317fi
31318
31319
cristy8b350f62009-11-15 23:12:43 +000031320 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031321if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031322 passed=`expr $passed + 1`
31323else
31324 failed=`expr $failed + 1`
31325fi
31326
31327
cristy8b350f62009-11-15 23:12:43 +000031328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031329$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031330if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031331 $as_echo_n "(cached) " >&6
31332else
31333 ac_check_lib_save_LIBS=$LIBS
31334LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031335cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031336/* end confdefs.h. */
31337
31338/* Override any GCC internal prototype to avoid an error.
31339 Use char because int might match the return type of a GCC
31340 builtin and then its argument prototype would still apply. */
31341#ifdef __cplusplus
31342extern "C"
31343#endif
31344char TIFFOpen ();
31345int
31346main ()
31347{
31348return TIFFOpen ();
31349 ;
31350 return 0;
31351}
31352_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031353if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031354 ac_cv_lib_tiff_TIFFOpen=yes
31355else
cristy8b350f62009-11-15 23:12:43 +000031356 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031357fi
cristy8b350f62009-11-15 23:12:43 +000031358rm -f core conftest.err conftest.$ac_objext \
31359 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031360LIBS=$ac_check_lib_save_LIBS
31361fi
cristy8b350f62009-11-15 23:12:43 +000031362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031363$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031364if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031365 passed=`expr $passed + 1`
31366else
31367 failed=`expr $failed + 1`
31368fi
31369
cristy8b350f62009-11-15 23:12:43 +000031370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031371$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031372if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031373 $as_echo_n "(cached) " >&6
31374else
31375 ac_check_lib_save_LIBS=$LIBS
31376LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031377cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031378/* end confdefs.h. */
31379
31380/* Override any GCC internal prototype to avoid an error.
31381 Use char because int might match the return type of a GCC
31382 builtin and then its argument prototype would still apply. */
31383#ifdef __cplusplus
31384extern "C"
31385#endif
31386char TIFFClientOpen ();
31387int
31388main ()
31389{
31390return TIFFClientOpen ();
31391 ;
31392 return 0;
31393}
31394_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031395if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031396 ac_cv_lib_tiff_TIFFClientOpen=yes
31397else
cristy8b350f62009-11-15 23:12:43 +000031398 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031399fi
cristy8b350f62009-11-15 23:12:43 +000031400rm -f core conftest.err conftest.$ac_objext \
31401 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031402LIBS=$ac_check_lib_save_LIBS
31403fi
cristy8b350f62009-11-15 23:12:43 +000031404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031405$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031406if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031407 passed=`expr $passed + 1`
31408else
31409 failed=`expr $failed + 1`
31410fi
31411
cristy8b350f62009-11-15 23:12:43 +000031412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031413$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031414if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031415 $as_echo_n "(cached) " >&6
31416else
31417 ac_check_lib_save_LIBS=$LIBS
31418LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031419cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031420/* end confdefs.h. */
31421
31422/* Override any GCC internal prototype to avoid an error.
31423 Use char because int might match the return type of a GCC
31424 builtin and then its argument prototype would still apply. */
31425#ifdef __cplusplus
31426extern "C"
31427#endif
31428char TIFFIsByteSwapped ();
31429int
31430main ()
31431{
31432return TIFFIsByteSwapped ();
31433 ;
31434 return 0;
31435}
31436_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031437if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031438 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
31439else
cristy8b350f62009-11-15 23:12:43 +000031440 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000031441fi
cristy8b350f62009-11-15 23:12:43 +000031442rm -f core conftest.err conftest.$ac_objext \
31443 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031444LIBS=$ac_check_lib_save_LIBS
31445fi
cristy8b350f62009-11-15 23:12:43 +000031446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000031447$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000031448if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031449 passed=`expr $passed + 1`
31450else
31451 failed=`expr $failed + 1`
31452fi
31453
cristy8b350f62009-11-15 23:12:43 +000031454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031455$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031456if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031457 $as_echo_n "(cached) " >&6
31458else
31459 ac_check_lib_save_LIBS=$LIBS
31460LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031461cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031462/* end confdefs.h. */
31463
31464/* Override any GCC internal prototype to avoid an error.
31465 Use char because int might match the return type of a GCC
31466 builtin and then its argument prototype would still apply. */
31467#ifdef __cplusplus
31468extern "C"
31469#endif
31470char TIFFReadRGBATile ();
31471int
31472main ()
31473{
31474return TIFFReadRGBATile ();
31475 ;
31476 return 0;
31477}
31478_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031479if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031480 ac_cv_lib_tiff_TIFFReadRGBATile=yes
31481else
cristy8b350f62009-11-15 23:12:43 +000031482 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000031483fi
cristy8b350f62009-11-15 23:12:43 +000031484rm -f core conftest.err conftest.$ac_objext \
31485 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031486LIBS=$ac_check_lib_save_LIBS
31487fi
cristy8b350f62009-11-15 23:12:43 +000031488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000031489$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000031490if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031491 passed=`expr $passed + 1`
31492else
31493 failed=`expr $failed + 1`
31494fi
31495
cristy8b350f62009-11-15 23:12:43 +000031496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031497$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031498if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031499 $as_echo_n "(cached) " >&6
31500else
31501 ac_check_lib_save_LIBS=$LIBS
31502LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031503cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031504/* end confdefs.h. */
31505
31506/* Override any GCC internal prototype to avoid an error.
31507 Use char because int might match the return type of a GCC
31508 builtin and then its argument prototype would still apply. */
31509#ifdef __cplusplus
31510extern "C"
31511#endif
31512char TIFFReadRGBAStrip ();
31513int
31514main ()
31515{
31516return TIFFReadRGBAStrip ();
31517 ;
31518 return 0;
31519}
31520_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031521if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031522 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
31523else
cristy8b350f62009-11-15 23:12:43 +000031524 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000031525fi
cristy8b350f62009-11-15 23:12:43 +000031526rm -f core conftest.err conftest.$ac_objext \
31527 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031528LIBS=$ac_check_lib_save_LIBS
31529fi
cristy8b350f62009-11-15 23:12:43 +000031530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000031531$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000031532if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031533 passed=`expr $passed + 1`
31534else
31535 failed=`expr $failed + 1`
31536fi
31537
cristy8b350f62009-11-15 23:12:43 +000031538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000031539$as_echo_n "checking if TIFF package is complete... " >&6; }
31540 if test $passed -gt 0; then
31541 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000031542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31543$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031544 have_tiff='no (failed tests)'
31545 else
31546 TIFF_LIBS='-ltiff'
31547 LIBS="$TIFF_LIBS $LIBS"
31548
cristy8b350f62009-11-15 23:12:43 +000031549$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031550
cristyad38abe2012-12-23 23:03:21 +000031551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31552$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031553 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000031554 for ac_header in tiffconf.h
31555do :
31556 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031557if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031558 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031559#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000031560_ACEOF
31561
31562fi
31563
31564done
31565
cristy8b350f62009-11-15 23:12:43 +000031566 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3f590e52011-11-14 14:29:44 +000031567 TIFFIsBigEndian TIFFReadEXIFDirectory TIFFSetErrorHandlerExt \
31568 TIFFSetTagExtender TIFFSetWarningHandlerExt \
31569 TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000031570do :
31571 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31572ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000031573if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000031574 cat >>confdefs.h <<_ACEOF
31575#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31576_ACEOF
31577
31578fi
31579done
31580
31581 fi
31582 else
cristyad38abe2012-12-23 23:03:21 +000031583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31584$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031585 fi
31586fi
cristy73bd4a52010-10-05 11:24:23 +000031587 if test "$have_tiff" = 'yes'; then
31588 TIFF_DELEGATE_TRUE=
31589 TIFF_DELEGATE_FALSE='#'
31590else
31591 TIFF_DELEGATE_TRUE='#'
31592 TIFF_DELEGATE_FALSE=
31593fi
31594
cristy3ed852e2009-09-05 21:47:34 +000031595
31596
31597
31598#
cristyb1860752011-03-14 00:27:46 +000031599# Check for WEBP delegate library.
31600#
31601
31602# Check whether --with-webp was given.
31603if test "${with_webp+set}" = set; then :
31604 withval=$with_webp; with_webp=$withval
31605else
31606 with_webp='yes'
31607fi
31608
31609
31610if test "$with_webp" != 'yes'; then
31611 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
31612fi
31613
31614have_webp='no'
31615WEBP_LIBS=''
31616if test "$with_webp" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000031617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31618$as_echo "-------------------------------------------------------------" >&6; }
cristyb1860752011-03-14 00:27:46 +000031619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
31620$as_echo_n "checking for WEBP... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000031621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31622$as_echo "" >&6; }
cristyb1860752011-03-14 00:27:46 +000031623 failed=0
31624 passed=0
31625 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
31626if test "x$ac_cv_header_webp_decode_h" = xyes; then :
31627 passed=`expr $passed + 1`
31628else
31629 failed=`expr $failed + 1`
31630fi
31631
31632
cristy6d670312013-03-22 23:23:01 +000031633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPPictureInitInternal in -lwebp" >&5
31634$as_echo_n "checking for WebPPictureInitInternal in -lwebp... " >&6; }
31635if ${ac_cv_lib_webp_WebPPictureInitInternal+:} false; then :
cristyb1860752011-03-14 00:27:46 +000031636 $as_echo_n "(cached) " >&6
31637else
31638 ac_check_lib_save_LIBS=$LIBS
31639LIBS="-lwebp $LIBS"
31640cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31641/* end confdefs.h. */
31642
31643/* Override any GCC internal prototype to avoid an error.
31644 Use char because int might match the return type of a GCC
31645 builtin and then its argument prototype would still apply. */
31646#ifdef __cplusplus
31647extern "C"
31648#endif
cristy6d670312013-03-22 23:23:01 +000031649char WebPPictureInitInternal ();
cristyb1860752011-03-14 00:27:46 +000031650int
31651main ()
31652{
cristy6d670312013-03-22 23:23:01 +000031653return WebPPictureInitInternal ();
cristyb1860752011-03-14 00:27:46 +000031654 ;
31655 return 0;
31656}
31657_ACEOF
31658if ac_fn_c_try_link "$LINENO"; then :
cristy6d670312013-03-22 23:23:01 +000031659 ac_cv_lib_webp_WebPPictureInitInternal=yes
cristyb1860752011-03-14 00:27:46 +000031660else
cristy6d670312013-03-22 23:23:01 +000031661 ac_cv_lib_webp_WebPPictureInitInternal=no
cristyb1860752011-03-14 00:27:46 +000031662fi
31663rm -f core conftest.err conftest.$ac_objext \
31664 conftest$ac_exeext conftest.$ac_ext
31665LIBS=$ac_check_lib_save_LIBS
31666fi
cristy6d670312013-03-22 23:23:01 +000031667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPPictureInitInternal" >&5
31668$as_echo "$ac_cv_lib_webp_WebPPictureInitInternal" >&6; }
31669if test "x$ac_cv_lib_webp_WebPPictureInitInternal" = xyes; then :
cristyb1860752011-03-14 00:27:46 +000031670 passed=`expr $passed + 1`
31671else
31672 failed=`expr $failed + 1`
31673fi
31674
31675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
31676$as_echo_n "checking if WEBP package is complete... " >&6; }
31677 if test $passed -gt 0; then
31678 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000031679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31680$as_echo "no -- some components failed test" >&6; }
cristyb1860752011-03-14 00:27:46 +000031681 have_webp='no (failed tests)'
31682 else
31683 WEBP_LIBS='-lwebp'
31684 LIBS="$WEBP_LIBS $LIBS"
31685
31686$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
31687
cristyad38abe2012-12-23 23:03:21 +000031688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31689$as_echo "yes" >&6; }
cristyb1860752011-03-14 00:27:46 +000031690 have_webp='yes'
31691 fi
31692 else
cristyad38abe2012-12-23 23:03:21 +000031693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31694$as_echo "no" >&6; }
cristyb1860752011-03-14 00:27:46 +000031695 fi
31696fi
31697 if test "$have_webp" = 'yes'; then
31698 WEBP_DELEGATE_TRUE=
31699 WEBP_DELEGATE_FALSE='#'
31700else
31701 WEBP_DELEGATE_TRUE='#'
31702 WEBP_DELEGATE_FALSE=
31703fi
31704
31705
31706
31707
31708#
cristy3ed852e2009-09-05 21:47:34 +000031709# Set Windows font directory.
31710#
31711
31712# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000031713if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031714 withval=$with_windows_font_dir; with_windows_font_dir=$withval
31715else
31716 with_windows_font_dir=''
31717fi
31718
31719if test "$with_windows_font_dir" != '' ; then
31720 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
31721fi
31722
31723
31724#
31725# Check for WMF delegate library.
31726#
31727
31728# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000031729if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031730 withval=$with_wmf; with_wmf=$withval
31731else
cristyfc3d0222012-02-07 15:05:57 +000031732 with_wmf='no'
cristy3ed852e2009-09-05 21:47:34 +000031733fi
31734
31735
31736if test "$with_wmf" != 'yes'; then
31737 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
31738fi
31739
31740have_wmf='no'
31741WMF_LIBS=''
cristy03f7cf92011-12-15 01:40:41 +000031742WMF_LIBS_DEPS=''
31743OLIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031744if test "$with_wmf" != 'no'; then
cristy03f7cf92011-12-15 01:40:41 +000031745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31746$as_echo "-------------------------------------------------------------" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000031747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031748$as_echo_n "checking for WMF... " >&6; }
cristy03f7cf92011-12-15 01:40:41 +000031749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31750$as_echo "" >&6; }
31751 have_libwmf='no'
31752 have_libwmflite='no'
31753 have_libwmf_ipa_h='no'
31754
31755 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
31756"
31757if test "x$ac_cv_header_libwmf_ipa_h" = xyes; then :
31758 have_libwmf_ipa_h='yes'
cristy3ed852e2009-09-05 21:47:34 +000031759fi
31760
31761
cristy03f7cf92011-12-15 01:40:41 +000031762 if test "$have_libwmf_ipa_h" = 'yes'; then
31763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
31764$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
31765if ${ac_cv_lib_wmflite_wmf_lite_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031766 $as_echo_n "(cached) " >&6
31767else
31768 ac_check_lib_save_LIBS=$LIBS
cristy03f7cf92011-12-15 01:40:41 +000031769LIBS="-lwmflite $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031770cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031771/* end confdefs.h. */
31772
31773/* Override any GCC internal prototype to avoid an error.
31774 Use char because int might match the return type of a GCC
31775 builtin and then its argument prototype would still apply. */
31776#ifdef __cplusplus
31777extern "C"
31778#endif
cristy03f7cf92011-12-15 01:40:41 +000031779char wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000031780int
31781main ()
31782{
cristy03f7cf92011-12-15 01:40:41 +000031783return wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000031784 ;
31785 return 0;
31786}
31787_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031788if ac_fn_c_try_link "$LINENO"; then :
cristy03f7cf92011-12-15 01:40:41 +000031789 ac_cv_lib_wmflite_wmf_lite_create=yes
cristy3ed852e2009-09-05 21:47:34 +000031790else
cristy03f7cf92011-12-15 01:40:41 +000031791 ac_cv_lib_wmflite_wmf_lite_create=no
cristy3ed852e2009-09-05 21:47:34 +000031792fi
cristy8b350f62009-11-15 23:12:43 +000031793rm -f core conftest.err conftest.$ac_objext \
31794 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031795LIBS=$ac_check_lib_save_LIBS
31796fi
cristy03f7cf92011-12-15 01:40:41 +000031797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
31798$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
31799if test "x$ac_cv_lib_wmflite_wmf_lite_create" = xyes; then :
31800 have_libwmflite='yes'
cristy9243a2d2011-08-22 17:32:32 +000031801fi
31802
cristy03f7cf92011-12-15 01:40:41 +000031803 if test "$have_libwmflite" = 'yes'; then
31804
31805$as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h
31806
31807 WMF_LIBS='-lwmflite'
glennrp33e524b2011-08-24 17:41:57 +000031808 LIBS="$WMF_LIBS $LIBS"
cristy03f7cf92011-12-15 01:40:41 +000031809 have_wmf='yes'
31810 else
31811 WMF_LIBS_DEPS=''
31812 WMF_CONFIG_LIBS=`libwmf-config --libs`
31813 for lib in xml2 expat freetype jpeg png z; do
31814 testlib="-l${lib}"
31815 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
31816 done
31817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5
31818$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
31819if ${ac_cv_lib_wmf_wmf_api_create+:} false; then :
31820 $as_echo_n "(cached) " >&6
31821else
31822 ac_check_lib_save_LIBS=$LIBS
31823LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
31824cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31825/* end confdefs.h. */
31826
31827/* Override any GCC internal prototype to avoid an error.
31828 Use char because int might match the return type of a GCC
31829 builtin and then its argument prototype would still apply. */
31830#ifdef __cplusplus
31831extern "C"
31832#endif
31833char wmf_api_create ();
31834int
31835main ()
31836{
31837return wmf_api_create ();
31838 ;
31839 return 0;
31840}
31841_ACEOF
31842if ac_fn_c_try_link "$LINENO"; then :
31843 ac_cv_lib_wmf_wmf_api_create=yes
31844else
31845 ac_cv_lib_wmf_wmf_api_create=no
31846fi
31847rm -f core conftest.err conftest.$ac_objext \
31848 conftest$ac_exeext conftest.$ac_ext
31849LIBS=$ac_check_lib_save_LIBS
31850fi
31851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5
31852$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
31853if test "x$ac_cv_lib_wmf_wmf_api_create" = xyes; then :
31854 have_libwmf='yes'
31855fi
31856
31857 if test "$have_libwmf" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000031858
cristy8b350f62009-11-15 23:12:43 +000031859$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031860
cristy03f7cf92011-12-15 01:40:41 +000031861 WMF_LIBS='-lwmf'
31862 LIBS="$WMF_LIBS $LIBS"
31863 have_wmf='yes'
31864 else
31865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31866$as_echo "no -- some components failed test" >&6; }
31867 have_wmf='no (failed tests)'
31868 have_wmflite='no (failed tests)'
31869 LIBS="$OLIBS"
31870 WMF_LIBS=''
31871 fi
glennrp33e524b2011-08-24 17:41:57 +000031872 fi
cristy03f7cf92011-12-15 01:40:41 +000031873 fi
31874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
31875$as_echo_n "checking if WMF package is complete... " >&6; }
31876 if test "$have_wmf" = 'yes'; then
31877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31878$as_echo "yes" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000031879 else
cristy03f7cf92011-12-15 01:40:41 +000031880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31881$as_echo "no" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000031882 fi
cristy3ed852e2009-09-05 21:47:34 +000031883fi
cristy73bd4a52010-10-05 11:24:23 +000031884 if test "$have_wmf" = 'yes'; then
31885 WMF_DELEGATE_TRUE=
31886 WMF_DELEGATE_FALSE='#'
31887else
31888 WMF_DELEGATE_TRUE='#'
31889 WMF_DELEGATE_FALSE=
31890fi
31891
cristy3ed852e2009-09-05 21:47:34 +000031892
31893
31894
cristy81beccd2011-10-03 18:17:24 +000031895
31896
cristy3ed852e2009-09-05 21:47:34 +000031897#
31898# Check for XML delegate library.
31899#
31900
31901# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000031902if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031903 withval=$with_xml; with_xml=$withval
31904else
cristyfc3d0222012-02-07 15:05:57 +000031905 with_xml='yes'
cristy3ed852e2009-09-05 21:47:34 +000031906fi
31907
31908
cristy81beccd2011-10-03 18:17:24 +000031909if test "$with_xml" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000031910 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
31911fi
31912
cristy81beccd2011-10-03 18:17:24 +000031913have_xml='no'
31914XML_LIBS=''
31915if test "$with_xml" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000031916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31917$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
31919$as_echo_n "checking for XML... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000031920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31921$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031922 PERSIST_LDFLAGS=$LDFLAGS
31923 PERSIST_CPPFLAGS=$CPPFLAGS
31924 xml2_config=''
31925 # Extract the first word of "xml2-config", so it can be a program name with args.
31926set dummy xml2-config; ac_word=$2
31927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31928$as_echo_n "checking for $ac_word... " >&6; }
31929if ${ac_cv_path_xml2_config+:} false; then :
31930 $as_echo_n "(cached) " >&6
31931else
31932 case $xml2_config in
31933 [\\/]* | ?:[\\/]*)
31934 ac_cv_path_xml2_config="$xml2_config" # Let the user override the test with a path.
31935 ;;
31936 *)
31937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31938for as_dir in $PATH
31939do
31940 IFS=$as_save_IFS
31941 test -z "$as_dir" && as_dir=.
31942 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000031943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy81beccd2011-10-03 18:17:24 +000031944 ac_cv_path_xml2_config="$as_dir/$ac_word$ac_exec_ext"
31945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31946 break 2
31947 fi
31948done
31949 done
31950IFS=$as_save_IFS
31951
31952 ;;
31953esac
31954fi
31955xml2_config=$ac_cv_path_xml2_config
31956if test -n "$xml2_config"; then
31957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
31958$as_echo "$xml2_config" >&6; }
31959else
31960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31961$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031962fi
31963
cristy81beccd2011-10-03 18:17:24 +000031964 if test -n "$xml2_config"; then
31965 # Debian installs libxml headers under /usr/include/libxml2/libxml with
31966 # the shared library installed under /usr/lib, whereas the package
31967 # installs itself under $prefix/libxml and $prefix/lib.
31968 xml2_prefix=`xml2-config --prefix`
31969 if test -d "${xml2_prefix}/include/libxml2"; then
31970 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
31971 fi
31972 if test "${xml2_prefix}" != '/usr'; then
31973 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
31974 fi
31975 fi
31976 failed=0
31977 passed=0
31978 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
31979if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
31980 passed=`expr $passed + 1`
31981else
31982 failed=`expr $failed + 1`
31983fi
31984
31985
31986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSAXVersion in -lxml2" >&5
31987$as_echo_n "checking for xmlSAXVersion in -lxml2... " >&6; }
31988if ${ac_cv_lib_xml2_xmlSAXVersion+:} false; then :
31989 $as_echo_n "(cached) " >&6
31990else
31991 ac_check_lib_save_LIBS=$LIBS
31992LIBS="-lxml2 $LIBS"
31993cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31994/* end confdefs.h. */
31995
31996/* Override any GCC internal prototype to avoid an error.
31997 Use char because int might match the return type of a GCC
31998 builtin and then its argument prototype would still apply. */
31999#ifdef __cplusplus
32000extern "C"
32001#endif
32002char xmlSAXVersion ();
32003int
32004main ()
32005{
32006return xmlSAXVersion ();
32007 ;
32008 return 0;
32009}
32010_ACEOF
32011if ac_fn_c_try_link "$LINENO"; then :
32012 ac_cv_lib_xml2_xmlSAXVersion=yes
32013else
32014 ac_cv_lib_xml2_xmlSAXVersion=no
32015fi
32016rm -f core conftest.err conftest.$ac_objext \
32017 conftest$ac_exeext conftest.$ac_ext
32018LIBS=$ac_check_lib_save_LIBS
32019fi
32020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSAXVersion" >&5
32021$as_echo "$ac_cv_lib_xml2_xmlSAXVersion" >&6; }
32022if test "x$ac_cv_lib_xml2_xmlSAXVersion" = xyes; then :
32023 passed=`expr $passed + 1`
32024else
32025 failed=`expr $failed + 1`
32026fi
32027
32028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseChunk in -lxml2" >&5
32029$as_echo_n "checking for xmlParseChunk in -lxml2... " >&6; }
32030if ${ac_cv_lib_xml2_xmlParseChunk+:} false; then :
32031 $as_echo_n "(cached) " >&6
32032else
32033 ac_check_lib_save_LIBS=$LIBS
32034LIBS="-lxml2 $LIBS"
32035cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32036/* end confdefs.h. */
32037
32038/* Override any GCC internal prototype to avoid an error.
32039 Use char because int might match the return type of a GCC
32040 builtin and then its argument prototype would still apply. */
32041#ifdef __cplusplus
32042extern "C"
32043#endif
32044char xmlParseChunk ();
32045int
32046main ()
32047{
32048return xmlParseChunk ();
32049 ;
32050 return 0;
32051}
32052_ACEOF
32053if ac_fn_c_try_link "$LINENO"; then :
32054 ac_cv_lib_xml2_xmlParseChunk=yes
32055else
32056 ac_cv_lib_xml2_xmlParseChunk=no
32057fi
32058rm -f core conftest.err conftest.$ac_objext \
32059 conftest$ac_exeext conftest.$ac_ext
32060LIBS=$ac_check_lib_save_LIBS
32061fi
32062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseChunk" >&5
32063$as_echo "$ac_cv_lib_xml2_xmlParseChunk" >&6; }
32064if test "x$ac_cv_lib_xml2_xmlParseChunk" = xyes; then :
32065 passed=`expr $passed + 1`
32066else
32067 failed=`expr $failed + 1`
32068fi
32069
32070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlCreatePushParserCtxt in -lxml2" >&5
32071$as_echo_n "checking for xmlCreatePushParserCtxt in -lxml2... " >&6; }
32072if ${ac_cv_lib_xml2_xmlCreatePushParserCtxt+:} false; then :
32073 $as_echo_n "(cached) " >&6
32074else
32075 ac_check_lib_save_LIBS=$LIBS
32076LIBS="-lxml2 $LIBS"
32077cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32078/* end confdefs.h. */
32079
32080/* Override any GCC internal prototype to avoid an error.
32081 Use char because int might match the return type of a GCC
32082 builtin and then its argument prototype would still apply. */
32083#ifdef __cplusplus
32084extern "C"
32085#endif
32086char xmlCreatePushParserCtxt ();
32087int
32088main ()
32089{
32090return xmlCreatePushParserCtxt ();
32091 ;
32092 return 0;
32093}
32094_ACEOF
32095if ac_fn_c_try_link "$LINENO"; then :
32096 ac_cv_lib_xml2_xmlCreatePushParserCtxt=yes
32097else
32098 ac_cv_lib_xml2_xmlCreatePushParserCtxt=no
32099fi
32100rm -f core conftest.err conftest.$ac_objext \
32101 conftest$ac_exeext conftest.$ac_ext
32102LIBS=$ac_check_lib_save_LIBS
32103fi
32104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&5
32105$as_echo "$ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&6; }
32106if test "x$ac_cv_lib_xml2_xmlCreatePushParserCtxt" = xyes; then :
32107 passed=`expr $passed + 1`
32108else
32109 failed=`expr $failed + 1`
32110fi
32111
32112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
32113$as_echo_n "checking if XML package is complete... " >&6; }
32114 if test $passed -gt 0; then
32115 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000032116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32117$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032118 have_xml='no (failed tests)'
32119 LDFLAGS="$PERSIST_LDFLAGS"
32120 CPPFLAGS="$PERSIST_CPPFLAGS"
32121 else
32122 XML_LIBS='-lxml2'
32123 LIBS="$XML_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032124
cristy8b350f62009-11-15 23:12:43 +000032125$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032126
cristyad38abe2012-12-23 23:03:21 +000032127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32128$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032129 have_xml='yes'
32130 fi
32131 else
cristyad38abe2012-12-23 23:03:21 +000032132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32133$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032134 fi
32135fi
cristy73bd4a52010-10-05 11:24:23 +000032136 if test "$have_xml" = 'yes'; then
32137 XML_DELEGATE_TRUE=
32138 XML_DELEGATE_FALSE='#'
32139else
32140 XML_DELEGATE_TRUE='#'
32141 XML_DELEGATE_FALSE=
32142fi
32143
cristy3ed852e2009-09-05 21:47:34 +000032144
32145
32146
32147# Substitute compiler name to build/link PerlMagick
32148#
32149
32150
32151#
32152# Configure install Paths
32153#
cristy7def36a2011-10-28 19:04:41 +000032154
cristy2a11bef2011-10-28 18:33:11 +000032155# Path to ImageMagick header files
cristybdabdd62013-03-04 17:43:36 +000032156INCLUDE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristye52f12f2012-12-31 15:32:36 +000032157INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}"
32158DEFINE_INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}/"
cristy2a11bef2011-10-28 18:33:11 +000032159case "${build_os}" in
32160 mingw* )
32161 DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1`
32162 ;;
32163esac
32164
32165cat >>confdefs.h <<_ACEOF
32166#define INCLUDE_PATH "$DEFINE_INCLUDE_PATH"
32167_ACEOF
32168
32169
cristy3ed852e2009-09-05 21:47:34 +000032170
cristye52f12f2012-12-31 15:32:36 +000032171# Path to ImageMagick header files (arch part)
32172INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}"
32173DEFINE_INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/"
32174case "${build_os}" in
32175 mingw* )
32176 DEFINE_INCLUDEARCH_PATH=`$WinPathScript "$DEFINE_INCLUDEARCH_PATH" 1`
32177 ;;
32178esac
32179
32180cat >>confdefs.h <<_ACEOF
32181#define INCLUDEARCH_PATH "$DEFINE_INCLUDE_PATH"
32182_ACEOF
32183
32184
32185
cristy3ed852e2009-09-05 21:47:34 +000032186# Subdirectory under lib to place ImageMagick lib files
32187LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
32188
32189cat >>confdefs.h <<_ACEOF
32190#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
32191_ACEOF
32192
32193
32194# Path to ImageMagick bin directory
32195EXECUTABLE_PATH="${BIN_DIR}"
32196DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
32197case "${build_os}" in
32198 mingw* )
32199 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
32200 ;;
32201esac
32202
32203cat >>confdefs.h <<_ACEOF
32204#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
32205_ACEOF
32206
32207
32208
32209# Path to ImageMagick lib
32210LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
32211DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
32212case "${build_os}" in
32213 mingw* )
32214 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
32215 ;;
32216esac
32217
32218cat >>confdefs.h <<_ACEOF
32219#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
32220_ACEOF
32221
32222
32223
cristy3ed852e2009-09-05 21:47:34 +000032224#
cristy8d0ff762013-03-10 20:33:28 +000032225# path to local binaries
32226if test "x$LIB_BIN_BASEDIRNAME" = "x"; then
32227 LIB_BIN_BASEDIRNAME="bin"
32228fi
32229
32230cat >>confdefs.h <<_ACEOF
32231#define LIB_BIN_BASEDIRNAME "$LIB_BIN_BASEDIRNAME"
32232_ACEOF
32233
32234
32235
32236if test "x$LIB_BIN_DIR" = "x"; then
32237 LIB_BIN_DIR=${LIB_BIN_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32238fi
32239
32240
32241LIB_BIN_DIR_RELATIVE_PATH=$LIB_BIN_DIR
32242
32243LIB_BIN_DIR_PATH="${LIBRARY_PATH}/${LIB_BIN_DIR_RELATIVE_PATH}"
32244
32245
32246#
cristy01ff9f32012-12-01 18:15:29 +000032247# path to modules lib
32248if test "x$MODULES_BASEDIRNAME" = "x"; then
32249 MODULES_BASEDIRNAME="modules"
32250fi
cristy3ed852e2009-09-05 21:47:34 +000032251
32252cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032253#define MODULES_BASEDIRNAME "$MODULES_BASEDIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032254_ACEOF
32255
cristy01ff9f32012-12-01 18:15:29 +000032256
32257
32258if test "x$MODULES_DIRNAME" = "x"; then
cristy4bdbd342012-12-03 18:41:18 +000032259 MODULES_DIRNAME=${MODULES_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32260else
cristy3ed852e2009-09-05 21:47:34 +000032261
32262cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032263#define MODULES_DIRNAME "$MODULES_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032264_ACEOF
32265
cristycf4a3c22012-12-02 21:47:25 +000032266fi
cristy01ff9f32012-12-01 18:15:29 +000032267
32268
cristy371d4812012-12-01 19:48:10 +000032269MODULES_RELATIVE_PATH="${MODULES_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032270
32271MODULES_PATH="${LIBRARY_PATH}/${MODULES_RELATIVE_PATH}"
32272
32273
32274#
32275# path to coders lib
32276if test "x$CODER_DIRNAME" = "x"; then
32277 CODER_DIRNAME="coders"
32278fi
32279
32280cat >>confdefs.h <<_ACEOF
32281#define CODER_DIRNAME "$CODER_DIRNAME"
32282_ACEOF
32283
32284
32285
cristy371d4812012-12-01 19:48:10 +000032286CODER_RELATIVE_PATH="${CODER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032287CODER_PATH="${MODULES_PATH}/${CODER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000032288
32289
32290#
32291# Subdirectory under lib to place ImageMagick filter module files
cristy01ff9f32012-12-01 18:15:29 +000032292#
32293# path to coders lib
32294if test "x$FILTER_DIRNAME" = "x"; then
32295 FILTER_DIRNAME="filters"
32296fi
cristy3ed852e2009-09-05 21:47:34 +000032297
32298cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032299#define FILTER_DIRNAME "$FILTER_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032300_ACEOF
32301
cristy3ed852e2009-09-05 21:47:34 +000032302
cristy3ed852e2009-09-05 21:47:34 +000032303
cristy371d4812012-12-01 19:48:10 +000032304FILTER_RELATIVE_PATH="${FILTER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032305FILTER_PATH="${MODULES_PATH}/${FILTER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000032306
32307
32308#
32309# Path to ImageMagick documentation files
cristybdabdd62013-03-04 17:43:36 +000032310DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristyd55889c2011-03-27 00:50:24 +000032311DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
32312DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032313case "${build_os}" in
32314 mingw* )
32315 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
32316 ;;
32317esac
32318
32319cat >>confdefs.h <<_ACEOF
32320#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
32321_ACEOF
32322
32323
32324
cristy2a11bef2011-10-28 18:33:11 +000032325# Subdirectory to place architecture-dependent configuration files
cristybdabdd62013-03-04 17:43:36 +000032326CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristy45dbd322011-03-27 16:40:38 +000032327
32328cat >>confdefs.h <<_ACEOF
32329#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
32330_ACEOF
32331
cristy7def36a2011-10-28 19:04:41 +000032332CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
cristy45dbd322011-03-27 16:40:38 +000032333DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
32334case "${build_os}" in
32335 mingw* )
32336 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
32337 ;;
32338esac
32339
32340cat >>confdefs.h <<_ACEOF
32341#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
32342_ACEOF
32343
32344
32345
cristy2a11bef2011-10-28 18:33:11 +000032346# Subdirectory to place architecture-independent configuration files
cristybdabdd62013-03-04 17:43:36 +000032347SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristy3ed852e2009-09-05 21:47:34 +000032348
32349cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032350#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032351_ACEOF
32352
cristy670aa3c2011-11-03 00:54:00 +000032353SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
cristy4f820712011-04-01 12:35:43 +000032354DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032355case "${build_os}" in
32356 mingw* )
cristy4f820712011-04-01 12:35:43 +000032357 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000032358 ;;
32359esac
32360
32361cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032362#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032363_ACEOF
32364
32365
32366
cristy54378032012-12-04 15:52:20 +000032367#
32368# Subdirectory to place architecture-dependent configuration files.
32369if test "x$SHAREARCH_BASEDIRNAME" = "x"; then
32370 SHAREARCH_BASEDIRNAME="config"
32371fi
cristy670aa3c2011-11-03 00:54:00 +000032372
32373cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000032374#define SHAREARCH_BASEDIRNAME "$SHAREARCH_BASEDIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000032375_ACEOF
32376
cristy54378032012-12-04 15:52:20 +000032377
32378
32379if test "x$SHAREARCH_DIRNAME" = "x"; then
32380 SHAREARCH_DIRNAME=${SHAREARCH_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32381else
cristy670aa3c2011-11-03 00:54:00 +000032382
32383cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000032384#define SHAREARCH_DIRNAME "$SHAREARCH_DIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000032385_ACEOF
32386
cristy54378032012-12-04 15:52:20 +000032387fi
32388
32389
32390SHAREARCH_RELATIVE_PATH="${SHAREARCH_DIRNAME}"
32391
32392SHAREARCH_PATH="${LIBRARY_PATH}/${SHAREARCH_RELATIVE_PATH}"
cristy670aa3c2011-11-03 00:54:00 +000032393
32394
cristy3ed852e2009-09-05 21:47:34 +000032395#
32396# program_transform_name is formed for use in a Makefile, so create a
32397# modified version for use in a shell script.
32398configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
32399
32400# Default delegate definitions
cristyad38abe2012-12-23 23:03:21 +000032401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32402$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000032404$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32406$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032407AutotraceDecodeDelegateDefault='autotrace'
cristy3d7f8062009-09-24 20:45:35 +000032408BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000032409BZIPDelegateDefault='bzip2'
32410BrowseDelegateDefault='xdg-open'
32411CGMDecodeDelegateDefault='ralcgm'
32412CatDelegateDefault='cat'
32413DNGDecodeDelegateDefault='ufraw-batch'
32414GVCDecodeDelegateDefault='dot'
32415DVIDecodeDelegateDefault='dvips'
32416EchoDelegateDefault='echo'
32417EditorDelegateDefault='xterm'
32418FIGDecodeDelegateDefault='fig2dev'
32419ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
32420DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
32421MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
32422GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000032423HPGLDecodeDelegateDefault='hp2xx'
32424HTMLDecodeDelegateDefault='html2ps'
32425ILBMDecodeDelegateDefault='ilbmtoppm'
32426ILBMEncodeDelegateDefault='ppmtoilbm'
cristy71f53d52013-04-27 13:33:59 +000032427JXRDecodeDelegateDefault='JxrDecApp'
32428JXREncodeDelegateDefault='JxrEncApp'
cristy3ed852e2009-09-05 21:47:34 +000032429LPDelegateDefault='lp'
32430LPRDelegateDefault='lpr'
cristy3ed852e2009-09-05 21:47:34 +000032431LaunchDelegateDefault='gimp'
32432MANDelegateDefault='groff'
32433MPEGDecodeDelegateDefault='ffmpeg'
32434MPEGEncodeDelegateDefault='ffmpeg'
cristy935c86e2010-06-05 23:50:07 +000032435MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000032436MVDelegateDefault='mv'
32437PCLDelegateDefault='pcl6'
32438PGPDecodeDelegateDefault='pgpv'
32439POVDelegateDefault='povray'
32440if test "$native_win32_build" = 'yes'; then
32441 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000032442elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032443 PSDelegateDefault='gsc'
32444else
32445 PSDelegateDefault='gs'
32446fi
32447RLEEncodeDelegateDefault='rawtorle'
32448RMDelegateDefault='rm'
cristy5281e322012-02-09 21:12:45 +000032449RSVGDecodeDelegateDefault='rsvg-convert'
cristy3ed852e2009-09-05 21:47:34 +000032450SCANDecodeDelegateDefault='scanimage'
cristyec6934f2012-08-14 18:38:40 +000032451SVGDecodeDelegateDefault='inkscape'
cristy3ed852e2009-09-05 21:47:34 +000032452TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000032453UniconvertorDelegateDefault='uniconvertor'
cristy86e86092013-08-04 17:43:57 +000032454WebPDecodeDelegateDefault='dwebp'
32455WebPEncodeDelegateDefault='cwebp'
cristy3ed852e2009-09-05 21:47:34 +000032456WMFDecodeDelegateDefault='wmf2eps'
32457WWWDecodeDelegateDefault='curl'
32458XPSDelegateDefault='gxps'
32459ZipDelegateDefault='gzip'
32460
32461# Search for delegates
32462# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
32463set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032465$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032466if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032467 $as_echo_n "(cached) " >&6
32468else
32469 case $AutotraceDecodeDelegate in
32470 [\\/]* | ?:[\\/]*)
32471 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
32472 ;;
32473 *)
32474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32475for as_dir in $PATH
32476do
32477 IFS=$as_save_IFS
32478 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032479 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032481 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032483 break 2
32484 fi
32485done
cristy8b350f62009-11-15 23:12:43 +000032486 done
cristy3ed852e2009-09-05 21:47:34 +000032487IFS=$as_save_IFS
32488
32489 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
32490 ;;
32491esac
32492fi
32493AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
32494if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032496$as_echo "$AutotraceDecodeDelegate" >&6; }
32497else
cristy8b350f62009-11-15 23:12:43 +000032498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032499$as_echo "no" >&6; }
32500fi
32501
32502
cristy3ed852e2009-09-05 21:47:34 +000032503# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
32504set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032506$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032507if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032508 $as_echo_n "(cached) " >&6
32509else
32510 case $BlenderDecodeDelegate in
32511 [\\/]* | ?:[\\/]*)
32512 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
32513 ;;
32514 *)
32515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32516for as_dir in $PATH
32517do
32518 IFS=$as_save_IFS
32519 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032520 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032522 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032524 break 2
32525 fi
32526done
cristy8b350f62009-11-15 23:12:43 +000032527 done
cristy3ed852e2009-09-05 21:47:34 +000032528IFS=$as_save_IFS
32529
32530 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
32531 ;;
32532esac
32533fi
32534BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
32535if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032537$as_echo "$BlenderDecodeDelegate" >&6; }
32538else
cristy8b350f62009-11-15 23:12:43 +000032539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032540$as_echo "no" >&6; }
32541fi
32542
32543
32544# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
32545set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032547$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032548if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032549 $as_echo_n "(cached) " >&6
32550else
32551 case $BZIPDelegate in
32552 [\\/]* | ?:[\\/]*)
32553 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
32554 ;;
32555 *)
32556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32557for as_dir in $PATH
32558do
32559 IFS=$as_save_IFS
32560 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032561 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032563 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032565 break 2
32566 fi
32567done
cristy8b350f62009-11-15 23:12:43 +000032568 done
cristy3ed852e2009-09-05 21:47:34 +000032569IFS=$as_save_IFS
32570
32571 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
32572 ;;
32573esac
32574fi
32575BZIPDelegate=$ac_cv_path_BZIPDelegate
32576if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032578$as_echo "$BZIPDelegate" >&6; }
32579else
cristy8b350f62009-11-15 23:12:43 +000032580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032581$as_echo "no" >&6; }
32582fi
32583
32584
cristyc59f0e72012-08-27 12:59:33 +000032585for ac_prog in "$BrowseDelegateDefault" google-chrome firefox konqueror mozilla lynx
32586do
32587 # Extract the first word of "$ac_prog", so it can be a program name with args.
32588set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032590$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032591if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032592 $as_echo_n "(cached) " >&6
32593else
32594 case $BrowseDelegate in
32595 [\\/]* | ?:[\\/]*)
32596 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
32597 ;;
32598 *)
32599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32600for as_dir in $PATH
32601do
32602 IFS=$as_save_IFS
32603 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032604 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032606 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032608 break 2
32609 fi
32610done
cristy8b350f62009-11-15 23:12:43 +000032611 done
cristy3ed852e2009-09-05 21:47:34 +000032612IFS=$as_save_IFS
32613
cristy3ed852e2009-09-05 21:47:34 +000032614 ;;
32615esac
32616fi
32617BrowseDelegate=$ac_cv_path_BrowseDelegate
32618if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032620$as_echo "$BrowseDelegate" >&6; }
32621else
cristy8b350f62009-11-15 23:12:43 +000032622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032623$as_echo "no" >&6; }
32624fi
32625
32626
cristyc59f0e72012-08-27 12:59:33 +000032627 test -n "$BrowseDelegate" && break
32628done
32629test -n "$BrowseDelegate" || BrowseDelegate=""$BrowseDelegateDefault""
32630
cristy3ed852e2009-09-05 21:47:34 +000032631# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
32632set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032634$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032635if ${ac_cv_path_CGMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032636 $as_echo_n "(cached) " >&6
32637else
32638 case $CGMDecodeDelegate in
32639 [\\/]* | ?:[\\/]*)
32640 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
32641 ;;
32642 *)
32643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32644for as_dir in $PATH
32645do
32646 IFS=$as_save_IFS
32647 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032648 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032650 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032652 break 2
32653 fi
32654done
cristy8b350f62009-11-15 23:12:43 +000032655 done
cristy3ed852e2009-09-05 21:47:34 +000032656IFS=$as_save_IFS
32657
32658 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
32659 ;;
32660esac
32661fi
32662CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
32663if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032665$as_echo "$CGMDecodeDelegate" >&6; }
32666else
cristy8b350f62009-11-15 23:12:43 +000032667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032668$as_echo "no" >&6; }
32669fi
32670
32671
32672# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
32673set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032675$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032676if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032677 $as_echo_n "(cached) " >&6
32678else
32679 case $CatDelegate in
32680 [\\/]* | ?:[\\/]*)
32681 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
32682 ;;
32683 *)
32684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32685for as_dir in $PATH
32686do
32687 IFS=$as_save_IFS
32688 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032689 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032691 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032693 break 2
32694 fi
32695done
cristy8b350f62009-11-15 23:12:43 +000032696 done
cristy3ed852e2009-09-05 21:47:34 +000032697IFS=$as_save_IFS
32698
32699 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
32700 ;;
32701esac
32702fi
32703CatDelegate=$ac_cv_path_CatDelegate
32704if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032706$as_echo "$CatDelegate" >&6; }
32707else
cristy8b350f62009-11-15 23:12:43 +000032708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032709$as_echo "no" >&6; }
32710fi
32711
32712
32713# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
32714set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032716$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032717if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032718 $as_echo_n "(cached) " >&6
32719else
32720 case $DNGDecodeDelegate in
32721 [\\/]* | ?:[\\/]*)
32722 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
32723 ;;
32724 *)
32725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32726for as_dir in $PATH
32727do
32728 IFS=$as_save_IFS
32729 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032730 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032732 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032734 break 2
32735 fi
32736done
cristy8b350f62009-11-15 23:12:43 +000032737 done
cristy3ed852e2009-09-05 21:47:34 +000032738IFS=$as_save_IFS
32739
32740 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
32741 ;;
32742esac
32743fi
32744DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
32745if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032747$as_echo "$DNGDecodeDelegate" >&6; }
32748else
cristy8b350f62009-11-15 23:12:43 +000032749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032750$as_echo "no" >&6; }
32751fi
32752
32753
32754# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
32755set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032757$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032758if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032759 $as_echo_n "(cached) " >&6
32760else
32761 case $GVCDecodeDelegate in
32762 [\\/]* | ?:[\\/]*)
32763 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
32764 ;;
32765 *)
32766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32767for as_dir in $PATH
32768do
32769 IFS=$as_save_IFS
32770 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032771 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032773 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032775 break 2
32776 fi
32777done
cristy8b350f62009-11-15 23:12:43 +000032778 done
cristy3ed852e2009-09-05 21:47:34 +000032779IFS=$as_save_IFS
32780
32781 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
32782 ;;
32783esac
32784fi
32785GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
32786if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032788$as_echo "$GVCDecodeDelegate" >&6; }
32789else
cristy8b350f62009-11-15 23:12:43 +000032790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032791$as_echo "no" >&6; }
32792fi
32793
32794
32795# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
32796set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032798$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032799if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032800 $as_echo_n "(cached) " >&6
32801else
32802 case $DVIDecodeDelegate in
32803 [\\/]* | ?:[\\/]*)
32804 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
32805 ;;
32806 *)
32807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32808for as_dir in $PATH
32809do
32810 IFS=$as_save_IFS
32811 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032812 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032814 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032816 break 2
32817 fi
32818done
cristy8b350f62009-11-15 23:12:43 +000032819 done
cristy3ed852e2009-09-05 21:47:34 +000032820IFS=$as_save_IFS
32821
32822 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
32823 ;;
32824esac
32825fi
32826DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
32827if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032829$as_echo "$DVIDecodeDelegate" >&6; }
32830else
cristy8b350f62009-11-15 23:12:43 +000032831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032832$as_echo "no" >&6; }
32833fi
32834
32835
32836# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
32837set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032839$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032840if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032841 $as_echo_n "(cached) " >&6
32842else
32843 case $EchoDelegate in
32844 [\\/]* | ?:[\\/]*)
32845 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
32846 ;;
32847 *)
32848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32849for as_dir in $PATH
32850do
32851 IFS=$as_save_IFS
32852 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032853 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032855 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032857 break 2
32858 fi
32859done
cristy8b350f62009-11-15 23:12:43 +000032860 done
cristy3ed852e2009-09-05 21:47:34 +000032861IFS=$as_save_IFS
32862
32863 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
32864 ;;
32865esac
32866fi
32867EchoDelegate=$ac_cv_path_EchoDelegate
32868if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032870$as_echo "$EchoDelegate" >&6; }
32871else
cristy8b350f62009-11-15 23:12:43 +000032872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032873$as_echo "no" >&6; }
32874fi
32875
32876
32877# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
32878set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032880$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032881if ${ac_cv_path_EditorDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032882 $as_echo_n "(cached) " >&6
32883else
32884 case $EditorDelegate in
32885 [\\/]* | ?:[\\/]*)
32886 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
32887 ;;
32888 *)
32889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32890for as_dir in $PATH
32891do
32892 IFS=$as_save_IFS
32893 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032894 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032896 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032898 break 2
32899 fi
32900done
cristy8b350f62009-11-15 23:12:43 +000032901 done
cristy3ed852e2009-09-05 21:47:34 +000032902IFS=$as_save_IFS
32903
32904 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
32905 ;;
32906esac
32907fi
32908EditorDelegate=$ac_cv_path_EditorDelegate
32909if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032911$as_echo "$EditorDelegate" >&6; }
32912else
cristy8b350f62009-11-15 23:12:43 +000032913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032914$as_echo "no" >&6; }
32915fi
32916
32917
32918# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
32919set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032921$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032922if ${ac_cv_path_FIGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032923 $as_echo_n "(cached) " >&6
32924else
32925 case $FIGDecodeDelegate in
32926 [\\/]* | ?:[\\/]*)
32927 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
32928 ;;
32929 *)
32930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32931for as_dir in $PATH
32932do
32933 IFS=$as_save_IFS
32934 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032935 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032937 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032939 break 2
32940 fi
32941done
cristy8b350f62009-11-15 23:12:43 +000032942 done
cristy3ed852e2009-09-05 21:47:34 +000032943IFS=$as_save_IFS
32944
32945 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
32946 ;;
32947esac
32948fi
32949FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
32950if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032952$as_echo "$FIGDecodeDelegate" >&6; }
32953else
cristy8b350f62009-11-15 23:12:43 +000032954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032955$as_echo "no" >&6; }
32956fi
32957
32958
32959# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
32960set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032962$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032963if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032964 $as_echo_n "(cached) " >&6
32965else
32966 case $ConvertDelegate in
32967 [\\/]* | ?:[\\/]*)
32968 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
32969 ;;
32970 *)
32971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32972for as_dir in $PATH
32973do
32974 IFS=$as_save_IFS
32975 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032976 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032978 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032980 break 2
32981 fi
32982done
cristy8b350f62009-11-15 23:12:43 +000032983 done
cristy3ed852e2009-09-05 21:47:34 +000032984IFS=$as_save_IFS
32985
32986 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
32987 ;;
32988esac
32989fi
32990ConvertDelegate=$ac_cv_path_ConvertDelegate
32991if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032993$as_echo "$ConvertDelegate" >&6; }
32994else
cristy8b350f62009-11-15 23:12:43 +000032995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032996$as_echo "no" >&6; }
32997fi
32998
32999
33000# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
33001set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033003$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033004if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033005 $as_echo_n "(cached) " >&6
33006else
33007 case $DisplayDelegate in
33008 [\\/]* | ?:[\\/]*)
33009 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
33010 ;;
33011 *)
33012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33013for as_dir in $PATH
33014do
33015 IFS=$as_save_IFS
33016 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033017 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033019 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033021 break 2
33022 fi
33023done
cristy8b350f62009-11-15 23:12:43 +000033024 done
cristy3ed852e2009-09-05 21:47:34 +000033025IFS=$as_save_IFS
33026
33027 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
33028 ;;
33029esac
33030fi
33031DisplayDelegate=$ac_cv_path_DisplayDelegate
33032if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033034$as_echo "$DisplayDelegate" >&6; }
33035else
cristy8b350f62009-11-15 23:12:43 +000033036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033037$as_echo "no" >&6; }
33038fi
33039
33040
33041# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
33042set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033044$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033045if ${ac_cv_path_MogrifyDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033046 $as_echo_n "(cached) " >&6
33047else
33048 case $MogrifyDelegate in
33049 [\\/]* | ?:[\\/]*)
33050 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
33051 ;;
33052 *)
33053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33054for as_dir in $PATH
33055do
33056 IFS=$as_save_IFS
33057 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033058 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033060 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033062 break 2
33063 fi
33064done
cristy8b350f62009-11-15 23:12:43 +000033065 done
cristy3ed852e2009-09-05 21:47:34 +000033066IFS=$as_save_IFS
33067
33068 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
33069 ;;
33070esac
33071fi
33072MogrifyDelegate=$ac_cv_path_MogrifyDelegate
33073if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033075$as_echo "$MogrifyDelegate" >&6; }
33076else
cristy8b350f62009-11-15 23:12:43 +000033077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033078$as_echo "no" >&6; }
33079fi
33080
33081
33082# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
33083set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033085$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033086if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033087 $as_echo_n "(cached) " >&6
33088else
33089 case $GnuplotDecodeDelegate in
33090 [\\/]* | ?:[\\/]*)
33091 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
33092 ;;
33093 *)
33094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33095for as_dir in $PATH
33096do
33097 IFS=$as_save_IFS
33098 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033099 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033101 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033103 break 2
33104 fi
33105done
cristy8b350f62009-11-15 23:12:43 +000033106 done
cristy3ed852e2009-09-05 21:47:34 +000033107IFS=$as_save_IFS
33108
33109 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
33110 ;;
33111esac
33112fi
33113GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
33114if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033116$as_echo "$GnuplotDecodeDelegate" >&6; }
33117else
cristy8b350f62009-11-15 23:12:43 +000033118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033119$as_echo "no" >&6; }
33120fi
33121
33122
cristy3ed852e2009-09-05 21:47:34 +000033123# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
33124set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033126$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033127if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033128 $as_echo_n "(cached) " >&6
33129else
33130 case $HPGLDecodeDelegate in
33131 [\\/]* | ?:[\\/]*)
33132 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
33133 ;;
33134 *)
33135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33136for as_dir in $PATH
33137do
33138 IFS=$as_save_IFS
33139 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033140 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033142 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033144 break 2
33145 fi
33146done
cristy8b350f62009-11-15 23:12:43 +000033147 done
cristy3ed852e2009-09-05 21:47:34 +000033148IFS=$as_save_IFS
33149
33150 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
33151 ;;
33152esac
33153fi
33154HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
33155if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033157$as_echo "$HPGLDecodeDelegate" >&6; }
33158else
cristy8b350f62009-11-15 23:12:43 +000033159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033160$as_echo "no" >&6; }
33161fi
33162
33163
33164# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
33165set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033167$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033168if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033169 $as_echo_n "(cached) " >&6
33170else
33171 case $HTMLDecodeDelegate in
33172 [\\/]* | ?:[\\/]*)
33173 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
33174 ;;
33175 *)
33176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33177for as_dir in $PATH
33178do
33179 IFS=$as_save_IFS
33180 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033181 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033183 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033185 break 2
33186 fi
33187done
cristy8b350f62009-11-15 23:12:43 +000033188 done
cristy3ed852e2009-09-05 21:47:34 +000033189IFS=$as_save_IFS
33190
33191 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
33192 ;;
33193esac
33194fi
33195HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
33196if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033198$as_echo "$HTMLDecodeDelegate" >&6; }
33199else
cristy8b350f62009-11-15 23:12:43 +000033200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033201$as_echo "no" >&6; }
33202fi
33203
33204
33205# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
33206set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033208$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033209if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033210 $as_echo_n "(cached) " >&6
33211else
33212 case $ILBMDecodeDelegate in
33213 [\\/]* | ?:[\\/]*)
33214 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
33215 ;;
33216 *)
33217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33218for as_dir in $PATH
33219do
33220 IFS=$as_save_IFS
33221 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033222 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033224 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033226 break 2
33227 fi
33228done
cristy8b350f62009-11-15 23:12:43 +000033229 done
cristy3ed852e2009-09-05 21:47:34 +000033230IFS=$as_save_IFS
33231
33232 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
33233 ;;
33234esac
33235fi
33236ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
33237if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033239$as_echo "$ILBMDecodeDelegate" >&6; }
33240else
cristy8b350f62009-11-15 23:12:43 +000033241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033242$as_echo "no" >&6; }
33243fi
33244
33245
33246# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
33247set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033249$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033250if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033251 $as_echo_n "(cached) " >&6
33252else
33253 case $ILBMEncodeDelegate in
33254 [\\/]* | ?:[\\/]*)
33255 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
33256 ;;
33257 *)
33258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33259for as_dir in $PATH
33260do
33261 IFS=$as_save_IFS
33262 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033263 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033265 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033267 break 2
33268 fi
33269done
cristy8b350f62009-11-15 23:12:43 +000033270 done
cristy3ed852e2009-09-05 21:47:34 +000033271IFS=$as_save_IFS
33272
33273 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
33274 ;;
33275esac
33276fi
33277ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
33278if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033280$as_echo "$ILBMEncodeDelegate" >&6; }
33281else
cristy8b350f62009-11-15 23:12:43 +000033282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033283$as_echo "no" >&6; }
33284fi
33285
33286
cristy71f53d52013-04-27 13:33:59 +000033287# Extract the first word of ""$JXRDecodeDelegateDefault"", so it can be a program name with args.
33288set dummy "$JXRDecodeDelegateDefault"; ac_word=$2
33289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33290$as_echo_n "checking for $ac_word... " >&6; }
33291if ${ac_cv_path_JXRDecodeDelegate+:} false; then :
33292 $as_echo_n "(cached) " >&6
33293else
33294 case $JXRDecodeDelegate in
33295 [\\/]* | ?:[\\/]*)
33296 ac_cv_path_JXRDecodeDelegate="$JXRDecodeDelegate" # Let the user override the test with a path.
33297 ;;
33298 *)
33299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33300for as_dir in $PATH
33301do
33302 IFS=$as_save_IFS
33303 test -z "$as_dir" && as_dir=.
33304 for ac_exec_ext in '' $ac_executable_extensions; do
33305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33306 ac_cv_path_JXRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33308 break 2
33309 fi
33310done
33311 done
33312IFS=$as_save_IFS
33313
33314 test -z "$ac_cv_path_JXRDecodeDelegate" && ac_cv_path_JXRDecodeDelegate=""$JXRDecodeDelegateDefault""
33315 ;;
33316esac
33317fi
33318JXRDecodeDelegate=$ac_cv_path_JXRDecodeDelegate
33319if test -n "$JXRDecodeDelegate"; then
33320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXRDecodeDelegate" >&5
33321$as_echo "$JXRDecodeDelegate" >&6; }
33322else
33323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33324$as_echo "no" >&6; }
33325fi
33326
33327
33328# Extract the first word of ""$JXREncodeDelegateDefault"", so it can be a program name with args.
33329set dummy "$JXREncodeDelegateDefault"; ac_word=$2
33330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33331$as_echo_n "checking for $ac_word... " >&6; }
33332if ${ac_cv_path_JXREncodeDelegate+:} false; then :
33333 $as_echo_n "(cached) " >&6
33334else
33335 case $JXREncodeDelegate in
33336 [\\/]* | ?:[\\/]*)
33337 ac_cv_path_JXREncodeDelegate="$JXREncodeDelegate" # Let the user override the test with a path.
33338 ;;
33339 *)
33340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33341for as_dir in $PATH
33342do
33343 IFS=$as_save_IFS
33344 test -z "$as_dir" && as_dir=.
33345 for ac_exec_ext in '' $ac_executable_extensions; do
33346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33347 ac_cv_path_JXREncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33349 break 2
33350 fi
33351done
33352 done
33353IFS=$as_save_IFS
33354
33355 test -z "$ac_cv_path_JXREncodeDelegate" && ac_cv_path_JXREncodeDelegate=""$JXREncodeDelegateDefault""
33356 ;;
33357esac
33358fi
33359JXREncodeDelegate=$ac_cv_path_JXREncodeDelegate
33360if test -n "$JXREncodeDelegate"; then
33361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXREncodeDelegate" >&5
33362$as_echo "$JXREncodeDelegate" >&6; }
33363else
33364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33365$as_echo "no" >&6; }
33366fi
33367
33368
cristy3ed852e2009-09-05 21:47:34 +000033369# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
33370set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033372$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033373if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033374 $as_echo_n "(cached) " >&6
33375else
33376 case $LPDelegate in
33377 [\\/]* | ?:[\\/]*)
33378 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
33379 ;;
33380 *)
33381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33382for as_dir in $PATH
33383do
33384 IFS=$as_save_IFS
33385 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033386 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033388 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033390 break 2
33391 fi
33392done
cristy8b350f62009-11-15 23:12:43 +000033393 done
cristy3ed852e2009-09-05 21:47:34 +000033394IFS=$as_save_IFS
33395
33396 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
33397 ;;
33398esac
33399fi
33400LPDelegate=$ac_cv_path_LPDelegate
33401if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033403$as_echo "$LPDelegate" >&6; }
33404else
cristy8b350f62009-11-15 23:12:43 +000033405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033406$as_echo "no" >&6; }
33407fi
33408
33409
33410# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
33411set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033413$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033414if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033415 $as_echo_n "(cached) " >&6
33416else
33417 case $LPRDelegate in
33418 [\\/]* | ?:[\\/]*)
33419 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
33420 ;;
33421 *)
33422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33423for as_dir in $PATH
33424do
33425 IFS=$as_save_IFS
33426 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033427 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033429 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033431 break 2
33432 fi
33433done
cristy8b350f62009-11-15 23:12:43 +000033434 done
cristy3ed852e2009-09-05 21:47:34 +000033435IFS=$as_save_IFS
33436
33437 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
33438 ;;
33439esac
33440fi
33441LPRDelegate=$ac_cv_path_LPRDelegate
33442if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033444$as_echo "$LPRDelegate" >&6; }
33445else
cristy8b350f62009-11-15 23:12:43 +000033446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033447$as_echo "no" >&6; }
33448fi
33449
33450
cristy3ed852e2009-09-05 21:47:34 +000033451# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
33452set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033454$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033455if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033456 $as_echo_n "(cached) " >&6
33457else
33458 case $LaunchDelegate in
33459 [\\/]* | ?:[\\/]*)
33460 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
33461 ;;
33462 *)
33463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33464for as_dir in $PATH
33465do
33466 IFS=$as_save_IFS
33467 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033468 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033470 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033472 break 2
33473 fi
33474done
cristy8b350f62009-11-15 23:12:43 +000033475 done
cristy3ed852e2009-09-05 21:47:34 +000033476IFS=$as_save_IFS
33477
33478 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
33479 ;;
33480esac
33481fi
33482LaunchDelegate=$ac_cv_path_LaunchDelegate
33483if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033485$as_echo "$LaunchDelegate" >&6; }
33486else
cristy8b350f62009-11-15 23:12:43 +000033487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033488$as_echo "no" >&6; }
33489fi
33490
33491
33492# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
33493set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033495$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033496if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033497 $as_echo_n "(cached) " >&6
33498else
33499 case $MANDelegate in
33500 [\\/]* | ?:[\\/]*)
33501 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
33502 ;;
33503 *)
33504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33505for as_dir in $PATH
33506do
33507 IFS=$as_save_IFS
33508 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033509 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033511 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033513 break 2
33514 fi
33515done
cristy8b350f62009-11-15 23:12:43 +000033516 done
cristy3ed852e2009-09-05 21:47:34 +000033517IFS=$as_save_IFS
33518
33519 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
33520 ;;
33521esac
33522fi
33523MANDelegate=$ac_cv_path_MANDelegate
33524if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033526$as_echo "$MANDelegate" >&6; }
33527else
cristy8b350f62009-11-15 23:12:43 +000033528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033529$as_echo "no" >&6; }
33530fi
33531
33532
33533# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33534set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033536$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033537if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033538 $as_echo_n "(cached) " >&6
33539else
33540 case $MPEGDecodeDelegate in
33541 [\\/]* | ?:[\\/]*)
33542 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
33543 ;;
33544 *)
33545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33546for as_dir in $PATH
33547do
33548 IFS=$as_save_IFS
33549 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033550 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033552 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033554 break 2
33555 fi
33556done
cristy8b350f62009-11-15 23:12:43 +000033557 done
cristy3ed852e2009-09-05 21:47:34 +000033558IFS=$as_save_IFS
33559
33560 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
33561 ;;
33562esac
33563fi
33564MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
33565if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033567$as_echo "$MPEGDecodeDelegate" >&6; }
33568else
cristy8b350f62009-11-15 23:12:43 +000033569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033570$as_echo "no" >&6; }
33571fi
33572
33573
33574# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
33575set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033577$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033578if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033579 $as_echo_n "(cached) " >&6
33580else
33581 case $MPEGEncodeDelegate in
33582 [\\/]* | ?:[\\/]*)
33583 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
33584 ;;
33585 *)
33586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33587for as_dir in $PATH
33588do
33589 IFS=$as_save_IFS
33590 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033591 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033593 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033595 break 2
33596 fi
33597done
cristy8b350f62009-11-15 23:12:43 +000033598 done
cristy3ed852e2009-09-05 21:47:34 +000033599IFS=$as_save_IFS
33600
33601 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
33602 ;;
33603esac
33604fi
33605MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
33606if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033608$as_echo "$MPEGEncodeDelegate" >&6; }
33609else
cristy8b350f62009-11-15 23:12:43 +000033610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033611$as_echo "no" >&6; }
33612fi
33613
33614
cristy935c86e2010-06-05 23:50:07 +000033615# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
33616set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
33617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33618$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033619if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000033620 $as_echo_n "(cached) " >&6
33621else
33622 case $MrSIDDecodeDelegate in
33623 [\\/]* | ?:[\\/]*)
33624 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
33625 ;;
33626 *)
33627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33628for as_dir in $PATH
33629do
33630 IFS=$as_save_IFS
33631 test -z "$as_dir" && as_dir=.
33632 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy935c86e2010-06-05 23:50:07 +000033634 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33636 break 2
33637 fi
33638done
33639 done
33640IFS=$as_save_IFS
33641
33642 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
33643 ;;
33644esac
33645fi
33646MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
33647if test -n "$MrSIDDecodeDelegate"; then
33648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
33649$as_echo "$MrSIDDecodeDelegate" >&6; }
33650else
33651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33652$as_echo "no" >&6; }
33653fi
33654
33655
cristy3ed852e2009-09-05 21:47:34 +000033656# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
33657set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033659$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033660if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033661 $as_echo_n "(cached) " >&6
33662else
33663 case $MVDelegate in
33664 [\\/]* | ?:[\\/]*)
33665 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
33666 ;;
33667 *)
33668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33669for as_dir in $PATH
33670do
33671 IFS=$as_save_IFS
33672 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033673 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033675 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033677 break 2
33678 fi
33679done
cristy8b350f62009-11-15 23:12:43 +000033680 done
cristy3ed852e2009-09-05 21:47:34 +000033681IFS=$as_save_IFS
33682
33683 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
33684 ;;
33685esac
33686fi
33687MVDelegate=$ac_cv_path_MVDelegate
33688if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033690$as_echo "$MVDelegate" >&6; }
33691else
cristy8b350f62009-11-15 23:12:43 +000033692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033693$as_echo "no" >&6; }
33694fi
33695
33696
33697# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
33698set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033700$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033701if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033702 $as_echo_n "(cached) " >&6
33703else
33704 case $PCLDelegate in
33705 [\\/]* | ?:[\\/]*)
33706 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
33707 ;;
33708 *)
33709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33710for as_dir in $PATH
33711do
33712 IFS=$as_save_IFS
33713 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033714 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033716 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033718 break 2
33719 fi
33720done
cristy8b350f62009-11-15 23:12:43 +000033721 done
cristy3ed852e2009-09-05 21:47:34 +000033722IFS=$as_save_IFS
33723
33724 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
33725 ;;
33726esac
33727fi
33728PCLDelegate=$ac_cv_path_PCLDelegate
33729if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033731$as_echo "$PCLDelegate" >&6; }
33732else
cristy8b350f62009-11-15 23:12:43 +000033733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033734$as_echo "no" >&6; }
33735fi
33736
33737
33738# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
33739set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033741$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033742if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033743 $as_echo_n "(cached) " >&6
33744else
33745 case $PGPDecodeDelegate in
33746 [\\/]* | ?:[\\/]*)
33747 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
33748 ;;
33749 *)
33750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33751for as_dir in $PATH
33752do
33753 IFS=$as_save_IFS
33754 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033755 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033757 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033759 break 2
33760 fi
33761done
cristy8b350f62009-11-15 23:12:43 +000033762 done
cristy3ed852e2009-09-05 21:47:34 +000033763IFS=$as_save_IFS
33764
33765 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
33766 ;;
33767esac
33768fi
33769PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
33770if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033772$as_echo "$PGPDecodeDelegate" >&6; }
33773else
cristy8b350f62009-11-15 23:12:43 +000033774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033775$as_echo "no" >&6; }
33776fi
33777
33778
33779# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
33780set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033782$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033783if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033784 $as_echo_n "(cached) " >&6
33785else
33786 case $POVDelegate in
33787 [\\/]* | ?:[\\/]*)
33788 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
33789 ;;
33790 *)
33791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33792for as_dir in $PATH
33793do
33794 IFS=$as_save_IFS
33795 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033796 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033798 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033800 break 2
33801 fi
33802done
cristy8b350f62009-11-15 23:12:43 +000033803 done
cristy3ed852e2009-09-05 21:47:34 +000033804IFS=$as_save_IFS
33805
33806 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
33807 ;;
33808esac
33809fi
33810POVDelegate=$ac_cv_path_POVDelegate
33811if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033813$as_echo "$POVDelegate" >&6; }
33814else
cristy8b350f62009-11-15 23:12:43 +000033815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033816$as_echo "no" >&6; }
33817fi
33818
33819
33820for ac_prog in gsx gsc "$PSDelegateDefault"
33821do
33822 # Extract the first word of "$ac_prog", so it can be a program name with args.
33823set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033825$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033826if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033827 $as_echo_n "(cached) " >&6
33828else
33829 case $PSDelegate in
33830 [\\/]* | ?:[\\/]*)
33831 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
33832 ;;
33833 *)
33834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33835for as_dir in $PATH
33836do
33837 IFS=$as_save_IFS
33838 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033839 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033841 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033843 break 2
33844 fi
33845done
cristy8b350f62009-11-15 23:12:43 +000033846 done
cristy3ed852e2009-09-05 21:47:34 +000033847IFS=$as_save_IFS
33848
33849 ;;
33850esac
33851fi
33852PSDelegate=$ac_cv_path_PSDelegate
33853if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033855$as_echo "$PSDelegate" >&6; }
33856else
cristy8b350f62009-11-15 23:12:43 +000033857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033858$as_echo "no" >&6; }
33859fi
33860
33861
33862 test -n "$PSDelegate" && break
33863done
33864test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
33865
33866# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
33867set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033869$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033870if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033871 $as_echo_n "(cached) " >&6
33872else
33873 case $RLEEncodeDelegate in
33874 [\\/]* | ?:[\\/]*)
33875 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
33876 ;;
33877 *)
33878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33879for as_dir in $PATH
33880do
33881 IFS=$as_save_IFS
33882 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033883 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033885 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033887 break 2
33888 fi
33889done
cristy8b350f62009-11-15 23:12:43 +000033890 done
cristy3ed852e2009-09-05 21:47:34 +000033891IFS=$as_save_IFS
33892
33893 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
33894 ;;
33895esac
33896fi
33897RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
33898if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033900$as_echo "$RLEEncodeDelegate" >&6; }
33901else
cristy8b350f62009-11-15 23:12:43 +000033902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033903$as_echo "no" >&6; }
33904fi
33905
33906
33907# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
33908set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033910$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033911if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033912 $as_echo_n "(cached) " >&6
33913else
33914 case $RMDelegate in
33915 [\\/]* | ?:[\\/]*)
33916 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
33917 ;;
33918 *)
33919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33920for as_dir in $PATH
33921do
33922 IFS=$as_save_IFS
33923 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033924 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033926 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033928 break 2
33929 fi
33930done
cristy8b350f62009-11-15 23:12:43 +000033931 done
cristy3ed852e2009-09-05 21:47:34 +000033932IFS=$as_save_IFS
33933
33934 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
33935 ;;
33936esac
33937fi
33938RMDelegate=$ac_cv_path_RMDelegate
33939if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033941$as_echo "$RMDelegate" >&6; }
33942else
cristy8b350f62009-11-15 23:12:43 +000033943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033944$as_echo "no" >&6; }
33945fi
33946
33947
cristy4689cf02010-02-17 21:15:45 +000033948# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
33949set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
33950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33951$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033952if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000033953 $as_echo_n "(cached) " >&6
33954else
33955 case $RSVGDecodeDelegate in
33956 [\\/]* | ?:[\\/]*)
33957 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
33958 ;;
33959 *)
33960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33961for as_dir in $PATH
33962do
33963 IFS=$as_save_IFS
33964 test -z "$as_dir" && as_dir=.
33965 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy4689cf02010-02-17 21:15:45 +000033967 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33969 break 2
33970 fi
33971done
33972 done
33973IFS=$as_save_IFS
33974
33975 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
33976 ;;
33977esac
33978fi
33979RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
33980if test -n "$RSVGDecodeDelegate"; then
33981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
33982$as_echo "$RSVGDecodeDelegate" >&6; }
33983else
33984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33985$as_echo "no" >&6; }
33986fi
33987
33988
cristy3ed852e2009-09-05 21:47:34 +000033989# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
33990set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033992$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033993if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033994 $as_echo_n "(cached) " >&6
33995else
33996 case $SCANDecodeDelegate in
33997 [\\/]* | ?:[\\/]*)
33998 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
33999 ;;
34000 *)
34001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34002for as_dir in $PATH
34003do
34004 IFS=$as_save_IFS
34005 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034006 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034008 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034010 break 2
34011 fi
34012done
cristy8b350f62009-11-15 23:12:43 +000034013 done
cristy3ed852e2009-09-05 21:47:34 +000034014IFS=$as_save_IFS
34015
34016 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
34017 ;;
34018esac
34019fi
34020SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
34021if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034023$as_echo "$SCANDecodeDelegate" >&6; }
34024else
cristy8b350f62009-11-15 23:12:43 +000034025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034026$as_echo "no" >&6; }
34027fi
34028
34029
cristyec6934f2012-08-14 18:38:40 +000034030# Extract the first word of ""$SVGDecodeDelegateDefault"", so it can be a program name with args.
34031set dummy "$SVGDecodeDelegateDefault"; ac_word=$2
34032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34033$as_echo_n "checking for $ac_word... " >&6; }
34034if ${ac_cv_path_SVGDecodeDelegate+:} false; then :
34035 $as_echo_n "(cached) " >&6
34036else
34037 case $SVGDecodeDelegate in
34038 [\\/]* | ?:[\\/]*)
34039 ac_cv_path_SVGDecodeDelegate="$SVGDecodeDelegate" # Let the user override the test with a path.
34040 ;;
34041 *)
34042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34043for as_dir in $PATH
34044do
34045 IFS=$as_save_IFS
34046 test -z "$as_dir" && as_dir=.
34047 for ac_exec_ext in '' $ac_executable_extensions; do
34048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34049 ac_cv_path_SVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34051 break 2
34052 fi
34053done
34054 done
34055IFS=$as_save_IFS
34056
34057 test -z "$ac_cv_path_SVGDecodeDelegate" && ac_cv_path_SVGDecodeDelegate=""$SVGDecodeDelegateDefault""
34058 ;;
34059esac
34060fi
34061SVGDecodeDelegate=$ac_cv_path_SVGDecodeDelegate
34062if test -n "$SVGDecodeDelegate"; then
34063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVGDecodeDelegate" >&5
34064$as_echo "$SVGDecodeDelegate" >&6; }
34065else
34066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34067$as_echo "no" >&6; }
34068fi
34069
34070
cristy3ed852e2009-09-05 21:47:34 +000034071# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
34072set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034074$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034075if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034076 $as_echo_n "(cached) " >&6
34077else
34078 case $TXTDelegate in
34079 [\\/]* | ?:[\\/]*)
34080 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
34081 ;;
34082 *)
34083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34084for as_dir in $PATH
34085do
34086 IFS=$as_save_IFS
34087 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034088 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034090 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034092 break 2
34093 fi
34094done
cristy8b350f62009-11-15 23:12:43 +000034095 done
cristy3ed852e2009-09-05 21:47:34 +000034096IFS=$as_save_IFS
34097
34098 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
34099 ;;
34100esac
34101fi
34102TXTDelegate=$ac_cv_path_TXTDelegate
34103if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034105$as_echo "$TXTDelegate" >&6; }
34106else
cristy8b350f62009-11-15 23:12:43 +000034107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034108$as_echo "no" >&6; }
34109fi
34110
34111
cristy5ac9ac82010-07-29 13:24:24 +000034112# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
34113set dummy "$UniconvertorDelegateDefault"; ac_word=$2
34114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34115$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034116if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000034117 $as_echo_n "(cached) " >&6
34118else
34119 case $UniconvertorDelegate in
34120 [\\/]* | ?:[\\/]*)
34121 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
34122 ;;
34123 *)
34124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34125for as_dir in $PATH
34126do
34127 IFS=$as_save_IFS
34128 test -z "$as_dir" && as_dir=.
34129 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy5ac9ac82010-07-29 13:24:24 +000034131 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
34132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34133 break 2
34134 fi
34135done
34136 done
34137IFS=$as_save_IFS
34138
34139 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
34140 ;;
34141esac
34142fi
34143UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
34144if test -n "$UniconvertorDelegate"; then
34145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
34146$as_echo "$UniconvertorDelegate" >&6; }
34147else
34148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34149$as_echo "no" >&6; }
34150fi
34151
34152
cristy86e86092013-08-04 17:43:57 +000034153# Extract the first word of ""$WebPDecodeDelegateDefault"", so it can be a program name with args.
34154set dummy "$WebPDecodeDelegateDefault"; ac_word=$2
34155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34156$as_echo_n "checking for $ac_word... " >&6; }
34157if ${ac_cv_path_WebPDecodeDelegate+:} false; then :
34158 $as_echo_n "(cached) " >&6
34159else
34160 case $WebPDecodeDelegate in
34161 [\\/]* | ?:[\\/]*)
34162 ac_cv_path_WebPDecodeDelegate="$WebPDecodeDelegate" # Let the user override the test with a path.
34163 ;;
34164 *)
34165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34166for as_dir in $PATH
34167do
34168 IFS=$as_save_IFS
34169 test -z "$as_dir" && as_dir=.
34170 for ac_exec_ext in '' $ac_executable_extensions; do
34171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34172 ac_cv_path_WebPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34174 break 2
34175 fi
34176done
34177 done
34178IFS=$as_save_IFS
34179
34180 test -z "$ac_cv_path_WebPDecodeDelegate" && ac_cv_path_WebPDecodeDelegate=""$WebPDecodeDelegateDefault""
34181 ;;
34182esac
34183fi
34184WebPDecodeDelegate=$ac_cv_path_WebPDecodeDelegate
34185if test -n "$WebPDecodeDelegate"; then
34186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WebPDecodeDelegate" >&5
34187$as_echo "$WebPDecodeDelegate" >&6; }
34188else
34189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34190$as_echo "no" >&6; }
34191fi
34192
34193
34194# Extract the first word of ""$WebPEncodeDelegateDefault"", so it can be a program name with args.
34195set dummy "$WebPEncodeDelegateDefault"; ac_word=$2
34196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34197$as_echo_n "checking for $ac_word... " >&6; }
34198if ${ac_cv_path_WebPEncodeDelegate+:} false; then :
34199 $as_echo_n "(cached) " >&6
34200else
34201 case $WebPEncodeDelegate in
34202 [\\/]* | ?:[\\/]*)
34203 ac_cv_path_WebPEncodeDelegate="$WebPEncodeDelegate" # Let the user override the test with a path.
34204 ;;
34205 *)
34206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34207for as_dir in $PATH
34208do
34209 IFS=$as_save_IFS
34210 test -z "$as_dir" && as_dir=.
34211 for ac_exec_ext in '' $ac_executable_extensions; do
34212 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34213 ac_cv_path_WebPEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34215 break 2
34216 fi
34217done
34218 done
34219IFS=$as_save_IFS
34220
34221 test -z "$ac_cv_path_WebPEncodeDelegate" && ac_cv_path_WebPEncodeDelegate=""$WebPEncodeDelegateDefault""
34222 ;;
34223esac
34224fi
34225WebPEncodeDelegate=$ac_cv_path_WebPEncodeDelegate
34226if test -n "$WebPEncodeDelegate"; then
34227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WebPEncodeDelegate" >&5
34228$as_echo "$WebPEncodeDelegate" >&6; }
34229else
34230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34231$as_echo "no" >&6; }
34232fi
34233
34234
cristy3ed852e2009-09-05 21:47:34 +000034235# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
34236set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034238$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034239if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034240 $as_echo_n "(cached) " >&6
34241else
34242 case $WMFDecodeDelegate in
34243 [\\/]* | ?:[\\/]*)
34244 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
34245 ;;
34246 *)
34247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34248for as_dir in $PATH
34249do
34250 IFS=$as_save_IFS
34251 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034252 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034254 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034256 break 2
34257 fi
34258done
cristy8b350f62009-11-15 23:12:43 +000034259 done
cristy3ed852e2009-09-05 21:47:34 +000034260IFS=$as_save_IFS
34261
34262 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
34263 ;;
34264esac
34265fi
34266WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
34267if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034269$as_echo "$WMFDecodeDelegate" >&6; }
34270else
cristy8b350f62009-11-15 23:12:43 +000034271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034272$as_echo "no" >&6; }
34273fi
34274
34275
34276# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
34277set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034279$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034280if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034281 $as_echo_n "(cached) " >&6
34282else
34283 case $WWWDecodeDelegate in
34284 [\\/]* | ?:[\\/]*)
34285 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
34286 ;;
34287 *)
34288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34289for as_dir in $PATH
34290do
34291 IFS=$as_save_IFS
34292 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034293 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034295 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034297 break 2
34298 fi
34299done
cristy8b350f62009-11-15 23:12:43 +000034300 done
cristy3ed852e2009-09-05 21:47:34 +000034301IFS=$as_save_IFS
34302
34303 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
34304 ;;
34305esac
34306fi
34307WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
34308if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034310$as_echo "$WWWDecodeDelegate" >&6; }
34311else
cristy8b350f62009-11-15 23:12:43 +000034312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034313$as_echo "no" >&6; }
34314fi
34315
34316
34317# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
34318set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034320$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034321if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034322 $as_echo_n "(cached) " >&6
34323else
34324 case $XPSDelegate in
34325 [\\/]* | ?:[\\/]*)
34326 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
34327 ;;
34328 *)
34329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34330for as_dir in $PATH
34331do
34332 IFS=$as_save_IFS
34333 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034334 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034336 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034338 break 2
34339 fi
34340done
cristy8b350f62009-11-15 23:12:43 +000034341 done
cristy3ed852e2009-09-05 21:47:34 +000034342IFS=$as_save_IFS
34343
34344 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
34345 ;;
34346esac
34347fi
34348XPSDelegate=$ac_cv_path_XPSDelegate
34349if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034351$as_echo "$XPSDelegate" >&6; }
34352else
cristy8b350f62009-11-15 23:12:43 +000034353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034354$as_echo "no" >&6; }
34355fi
34356
34357
34358# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
34359set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034361$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034362if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034363 $as_echo_n "(cached) " >&6
34364else
34365 case $ZipDelegate in
34366 [\\/]* | ?:[\\/]*)
34367 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
34368 ;;
34369 *)
34370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34371for as_dir in $PATH
34372do
34373 IFS=$as_save_IFS
34374 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034375 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034377 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034379 break 2
34380 fi
34381done
cristy8b350f62009-11-15 23:12:43 +000034382 done
cristy3ed852e2009-09-05 21:47:34 +000034383IFS=$as_save_IFS
34384
34385 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
34386 ;;
34387esac
34388fi
34389ZipDelegate=$ac_cv_path_ZipDelegate
34390if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034392$as_echo "$ZipDelegate" >&6; }
34393else
cristy8b350f62009-11-15 23:12:43 +000034394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034395$as_echo "no" >&6; }
34396fi
34397
34398
34399
34400# Prefer lpr to lp; lp needs options tacked on.
34401if test "$LPRDelegate" != no; then
34402 PrintDelegate="$LPRDelegate"
34403else
34404 PrintDelegate="$LPDelegate -c -s"
34405fi
34406
34407
34408# Installed ImageMagick utiltity paths
34409ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
34410DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
34411MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
34412
34413# Set delegate booleans
34414have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
34415have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
34416have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
34417have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
34418have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000034419have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034420have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
34421have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034422have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
34423have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
34424
34425#
34426# Test for font directories
34427#
34428type_include_files=''
34429
cristy430a7312010-01-21 20:44:04 +000034430# Dejavu fonts.
34431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
34432$as_echo_n "checking for Dejavu fonts directory... " >&6; }
34433dejavu_font_dir=''
34434if test "${with_dejavu_font_dir}" != 'default'; then
34435 dejavu_font_dir="${with_dejavu_font_dir}/"
34436else
34437 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
34438 if test -f "${font_dir}DejaVuSerif.ttf"; then
34439 dejavu_font_dir="${font_dir}"
34440 break 1
34441 fi
34442 done
34443fi
34444if test "${dejavu_font_dir}x" != 'x'; then
34445 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
cristyad38abe2012-12-23 23:03:21 +000034446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
34447$as_echo "$dejavu_font_dir" >&6; }
cristy430a7312010-01-21 20:44:04 +000034448else
cristyad38abe2012-12-23 23:03:21 +000034449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
34450$as_echo "not found!" >&6; };
cristy430a7312010-01-21 20:44:04 +000034451fi
34452
34453
cristy3ed852e2009-09-05 21:47:34 +000034454# Windows
34455windows_font_dir=''
34456if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
34457 windows_font_dir="${with_windows_font_dir}/"
34458fi
cristy430a7312010-01-21 20:44:04 +000034459if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034460 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
34461 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
34462 fi
34463 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
34464 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
34465 fi
34466 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
34467 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
34468 fi
34469fi
cristy430a7312010-01-21 20:44:04 +000034470if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034471 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
34472fi
34473
34474
34475# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000034476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000034477$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
34478ghostscript_font_dir=''
34479if test "${with_gs_font_dir}" != 'default'; then
34480 ghostscript_font_dir="${with_gs_font_dir}/"
34481else
34482 if test "${native_win32_build}" = 'yes'; then
34483 # Native Windows Build
34484 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
34485 if test -f "${font_dir}a010013l.pfb"; then
34486 ghostscript_font_dir="$font_dir"
34487 break 1
34488 fi
34489 done
34490 if test "${PSDelegate}" != 'gswin32c'; then
34491 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
34492 fi
34493 else
34494 # Linux / Mac OS X / Unix Build
34495 for font_dir in "${prefix}/share/ghostscript/fonts/" '/usr/share/fonts/default/Type1/' '/usr/share/ghostscript/fonts/' '/usr/share/fonts/ghostscript/' '/usr/share/fonts/type1/gsfonts/' '/opt/local/share/ghostscript/fonts/' '/sw/share/ghostscript/fonts/' '/System/Library/Frameworks/Ghostscript.framework/Resources/fonts/'; do
34496 if test -f "${font_dir}a010013l.pfb"; then
34497 ghostscript_font_dir="${font_dir}"
34498 break 1
34499 fi
34500 done
34501 if test "${ghostscript_font_dir}x" = 'x'; then
34502 if test "$PSDelegate" != 'gs'; then
34503 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
34504 fi
34505 fi
34506 fi
34507fi
34508if test "${ghostscript_font_dir}x" != 'x'; then
34509 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristyad38abe2012-12-23 23:03:21 +000034510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
34511$as_echo "$ghostscript_font_dir" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034512else
cristyad38abe2012-12-23 23:03:21 +000034513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
34514$as_echo "not found!" >&6; };
cristy3ed852e2009-09-05 21:47:34 +000034515fi
34516
34517case "${build_os}" in
34518 mingw* )
34519 PSDelegate=`$WinPathScript "$PSDelegate" 1`
34520 ;;
34521esac
34522
34523
34524
34525#
34526# Handle case where user doesn't want frozen paths
34527#
34528if test "$with_frozenpaths" != 'yes'; then
34529 # Re-set delegate definitions to default (no paths)
34530 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034531 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
34532 BZIPDelegate="$BZIPDelegateDefault"
34533 BrowseDelegate="$BrowseDelegateDefault"
34534 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
34535 CatDelegate="$CatDelegateDefault"
34536 ConvertDelegate="$ConvertDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000034537 DisplayDelegate="$DisplayDelegateDefault"
34538 DNGDecodeDelegate="$DNGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034539 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
34540 EchoDelegate="$EchoDelegateDefault"
34541 EditorDelegate="$EditorDelegateDefault"
34542 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
34543 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000034544 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034545 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
34546 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
34547 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
34548 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000034549 JXRDecodeDelegate="$JXRDecodeDelegateDefault"
34550 JXREncodeDelegate="$JXREncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034551 LPDelegate="$LPDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034552 LaunchDelegate="$LaunchDelegateDefault"
34553 MANDelegate="$MANDelegateDefault"
34554 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
34555 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034556 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000034557 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
34558 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034559 PCLDelegate="$PCLDelegateDefault"
34560 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
34561 POVDelegate="$POVDelegateDefault"
34562 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034563 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
34564 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000034565 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034566 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
cristyec6934f2012-08-14 18:38:40 +000034567 SVGDecodeDelegate="$SVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034568 ShowImageDelegate="$ShowImageDelegateDefault"
34569 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000034570 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy86e86092013-08-04 17:43:57 +000034571 WebPDecodeDelegate="$WebPDecodeDelegateDefault"
34572 WebPEncodeDelegate="$WebPEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034573 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
34574 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
34575 XPSDelegate="$XPSDelegateDefault"
34576 ZipDelegate="$ZipDelegateDefault"
34577fi
34578
34579# Delegate substitutions
34580
34581
34582
34583
34584
34585
34586
34587
34588
34589
34590
34591
34592
34593
34594
34595
34596
34597
34598
34599
34600
34601
34602
34603
34604
34605
34606
34607
34608
34609
34610
34611
34612
34613
34614
34615
34616
34617
34618
34619
cristy71f53d52013-04-27 13:33:59 +000034620
34621
cristy86e86092013-08-04 17:43:57 +000034622
34623
cristy3ed852e2009-09-05 21:47:34 +000034624#
34625# RPM support.
34626#
34627RPM=''
34628for ac_prog in gnutar gtar tar
34629do
34630 # Extract the first word of "$ac_prog", so it can be a program name with args.
34631set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034633$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034634if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034635 $as_echo_n "(cached) " >&6
34636else
34637 if test -n "$TAR"; then
34638 ac_cv_prog_TAR="$TAR" # Let the user override the test.
34639else
34640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34641for as_dir in $PATH
34642do
34643 IFS=$as_save_IFS
34644 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034645 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034647 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034649 break 2
34650 fi
34651done
cristy8b350f62009-11-15 23:12:43 +000034652 done
cristy3ed852e2009-09-05 21:47:34 +000034653IFS=$as_save_IFS
34654
34655fi
34656fi
34657TAR=$ac_cv_prog_TAR
34658if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000034659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000034660$as_echo "$TAR" >&6; }
34661else
cristy8b350f62009-11-15 23:12:43 +000034662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034663$as_echo "no" >&6; }
34664fi
34665
34666
34667 test -n "$TAR" && break
34668done
34669
34670for ac_prog in perl
34671do
34672 # Extract the first word of "$ac_prog", so it can be a program name with args.
34673set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034675$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034676if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034677 $as_echo_n "(cached) " >&6
34678else
34679 if test -n "$PERL"; then
34680 ac_cv_prog_PERL="$PERL" # Let the user override the test.
34681else
34682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34683for as_dir in $PATH
34684do
34685 IFS=$as_save_IFS
34686 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034687 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034689 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034691 break 2
34692 fi
34693done
cristy8b350f62009-11-15 23:12:43 +000034694 done
cristy3ed852e2009-09-05 21:47:34 +000034695IFS=$as_save_IFS
34696
34697fi
34698fi
34699PERL=$ac_cv_prog_PERL
34700if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000034701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034702$as_echo "$PERL" >&6; }
34703else
cristy8b350f62009-11-15 23:12:43 +000034704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034705$as_echo "no" >&6; }
34706fi
34707
34708
34709 test -n "$PERL" && break
34710done
34711
34712for ac_prog in rpmbuild rpm
34713do
34714 # Extract the first word of "$ac_prog", so it can be a program name with args.
34715set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034717$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034718if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034719 $as_echo_n "(cached) " >&6
34720else
34721 if test -n "$RPM"; then
34722 ac_cv_prog_RPM="$RPM" # Let the user override the test.
34723else
34724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34725for as_dir in $PATH
34726do
34727 IFS=$as_save_IFS
34728 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034729 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034731 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034733 break 2
34734 fi
34735done
cristy8b350f62009-11-15 23:12:43 +000034736 done
cristy3ed852e2009-09-05 21:47:34 +000034737IFS=$as_save_IFS
34738
34739fi
34740fi
34741RPM=$ac_cv_prog_RPM
34742if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000034743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000034744$as_echo "$RPM" >&6; }
34745else
cristy8b350f62009-11-15 23:12:43 +000034746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034747$as_echo "no" >&6; }
34748fi
34749
34750
34751 test -n "$RPM" && break
34752done
34753
34754
cristy73bd4a52010-10-05 11:24:23 +000034755ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
34756
34757
34758AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
34759
34760
34761AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
34762
34763
34764AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
34765
34766
34767 if test "x$RPM" != "x" ; then
34768 RPM_DELEGATE_TRUE=
34769 RPM_DELEGATE_FALSE='#'
34770else
34771 RPM_DELEGATE_TRUE='#'
34772 RPM_DELEGATE_FALSE=
34773fi
34774
cristy3ed852e2009-09-05 21:47:34 +000034775
34776#
34777# 7ZIP support (http://p7zip.sourceforge.net/)
34778#
34779P7ZIP=''
34780for ac_prog in 7za
34781do
34782 # Extract the first word of "$ac_prog", so it can be a program name with args.
34783set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034785$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034786if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034787 $as_echo_n "(cached) " >&6
34788else
34789 if test -n "$P7ZIP"; then
34790 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
34791else
34792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34793for as_dir in $PATH
34794do
34795 IFS=$as_save_IFS
34796 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034797 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034799 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034801 break 2
34802 fi
34803done
cristy8b350f62009-11-15 23:12:43 +000034804 done
cristy3ed852e2009-09-05 21:47:34 +000034805IFS=$as_save_IFS
34806
34807fi
34808fi
34809P7ZIP=$ac_cv_prog_P7ZIP
34810if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000034811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000034812$as_echo "$P7ZIP" >&6; }
34813else
cristy8b350f62009-11-15 23:12:43 +000034814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034815$as_echo "no" >&6; }
34816fi
34817
34818
34819 test -n "$P7ZIP" && break
34820done
34821
34822
cristy73bd4a52010-10-05 11:24:23 +000034823 if test "x$P7ZIP" != "x" ; then
34824 P7ZIP_DELEGATE_TRUE=
34825 P7ZIP_DELEGATE_FALSE='#'
34826else
34827 P7ZIP_DELEGATE_TRUE='#'
34828 P7ZIP_DELEGATE_FALSE=
34829fi
34830
cristy3ed852e2009-09-05 21:47:34 +000034831
34832#
34833# ZIP support (http://www.info-zip.org/Zip.html)
34834#
34835ZIP=''
34836for ac_prog in zip
34837do
34838 # Extract the first word of "$ac_prog", so it can be a program name with args.
34839set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034841$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034842if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034843 $as_echo_n "(cached) " >&6
34844else
34845 if test -n "$ZIP"; then
34846 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
34847else
34848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34849for as_dir in $PATH
34850do
34851 IFS=$as_save_IFS
34852 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034853 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034855 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034857 break 2
34858 fi
34859done
cristy8b350f62009-11-15 23:12:43 +000034860 done
cristy3ed852e2009-09-05 21:47:34 +000034861IFS=$as_save_IFS
34862
34863fi
34864fi
34865ZIP=$ac_cv_prog_ZIP
34866if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000034867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000034868$as_echo "$ZIP" >&6; }
34869else
cristy8b350f62009-11-15 23:12:43 +000034870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034871$as_echo "no" >&6; }
34872fi
34873
34874
34875 test -n "$ZIP" && break
34876done
34877
34878
cristy73bd4a52010-10-05 11:24:23 +000034879 if test "x$ZIP" != "x" ; then
34880 ZIP_DELEGATE_TRUE=
34881 ZIP_DELEGATE_FALSE='#'
34882else
34883 ZIP_DELEGATE_TRUE='#'
34884 ZIP_DELEGATE_FALSE=
34885fi
34886
cristy3ed852e2009-09-05 21:47:34 +000034887
34888#
34889# GhostPCL related configuration.
34890#
34891PCLColorDevice=ppmraw
cristy8bc84082011-09-07 13:57:00 +000034892PCLCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000034893PCLMonoDevice=pbmraw
34894if test -z "$PCLVersion"; then
34895 PCLVersion='unknown'
34896fi
34897if test $have_pcl = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000034898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
34899$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000034900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034901$as_echo_n "checking for PCL... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000034902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
34903$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034904 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000034905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034906$as_echo_n "checking for pcl color device... " >&6; }
34907 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34908 :
34909 else
34910 PCLColorDevice=ppmraw
34911 fi
cristyad38abe2012-12-23 23:03:21 +000034912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
34913$as_echo "$PCLColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034914
34915 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034917$as_echo_n "checking for pcl CMYK device... " >&6; }
34918 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34919 :
34920 else
34921 PCLCMYKDevice=$PCLColorDevice
34922 fi
cristyad38abe2012-12-23 23:03:21 +000034923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
34924$as_echo "$PCLCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034925
34926 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034928$as_echo_n "checking for pcl mono device... " >&6; }
34929 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34930 :
34931 else
34932 PCLMonoDevice=$PCLColorDevice
34933 fi
cristyad38abe2012-12-23 23:03:21 +000034934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
34935$as_echo "$PCLMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034936fi
34937
34938
34939
34940
34941
34942
34943#
34944# GhostXPS related configuration.
34945#
34946XPSColorDevice=ppmraw
34947XPSCMYKDevice=bmpsep8
34948XPSMonoDevice=pbmraw
34949if test -z "$XPSVersion"; then
34950 XPSVersion='unknown'
34951fi
34952if test $have_xps = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000034953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
34954$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000034955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000034956$as_echo_n "checking for XPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000034957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
34958$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034959 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000034960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034961$as_echo_n "checking for xps color device... " >&6; }
34962 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34963 :
34964 else
34965 XPSColorDevice=ppmraw
34966 fi
cristyad38abe2012-12-23 23:03:21 +000034967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
34968$as_echo "$XPSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034969
34970 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034972$as_echo_n "checking for xps CMYK device... " >&6; }
34973 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34974 :
34975 else
34976 XPSCMYKDevice=$XPSColorDevice
34977 fi
cristyad38abe2012-12-23 23:03:21 +000034978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
34979$as_echo "$XPSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034980
34981 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034983$as_echo_n "checking for xps mono device... " >&6; }
34984 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34985 :
34986 else
34987 XPSMonoDevice=$XPSColorDevice
34988 fi
cristyad38abe2012-12-23 23:03:21 +000034989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
34990$as_echo "$XPSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034991fi
34992
34993
34994
34995
34996
34997
34998#
34999# Ghostscript related configuration.
35000#
cristya97426c2011-02-04 01:41:27 +000035001GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000035002GSColorDevice=pnmraw
35003GSCMYKDevice=pam
35004GSMonoDevice=pbmraw
35005GSPDFDevice=pdfwrite
35006GSPSDevice=pswrite
35007GSEPSDevice=epswrite
35008GSVersion='unknown'
35009if test $have_gs = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35011$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000035013$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35015$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000035017$as_echo_n "checking for Ghostscript version... " >&6; }
35018 if GSVersion=`$PSDelegate --version`; then
35019 :
35020 else
35021 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
35022 fi
cristyad38abe2012-12-23 23:03:21 +000035023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
35024$as_echo "$GSVersion" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035025
35026 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000035027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035028$as_echo_n "checking for gs alpha device... " >&6; }
35029 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35030 :
35031 else
35032 GSAlphaDevice=pnmraw
35033 fi
cristyad38abe2012-12-23 23:03:21 +000035034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
35035$as_echo "$GSAlphaDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035036
35037 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035039$as_echo_n "checking for gs color device... " >&6; }
35040 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35041 :
35042 else
35043 GSColorDevice=pnmraw
35044 fi
cristyad38abe2012-12-23 23:03:21 +000035045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
35046$as_echo "$GSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035047
35048 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035050$as_echo_n "checking for gs CMYK device... " >&6; }
35051 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35052 :
35053 else
35054 GSCMYKDevice=bmpsep8
35055 fi
cristyad38abe2012-12-23 23:03:21 +000035056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
35057$as_echo "$GSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035058
35059 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035061$as_echo_n "checking for gs mono device... " >&6; }
35062 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35063 :
35064 else
35065 GSMonoDevice=$GSColorDevice
35066 fi
cristyad38abe2012-12-23 23:03:21 +000035067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
35068$as_echo "$GSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035069
35070 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000035071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035072$as_echo_n "checking for gs PDF writing device... " >&6; }
35073 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35074 :
35075 else
35076 GSPDFDevice=nodevice
35077 fi
cristyad38abe2012-12-23 23:03:21 +000035078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
35079$as_echo "$GSPDFDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035080
35081 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000035082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035083$as_echo_n "checking for gs PS writing device... " >&6; }
35084 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35085 :
35086 else
35087 GSPSDevice=nodevice
35088 fi
cristyad38abe2012-12-23 23:03:21 +000035089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
35090$as_echo "$GSPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035091
35092 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000035093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035094$as_echo_n "checking for gs EPS writing device... " >&6; }
35095 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35096 :
35097 else
35098 GSEPSDevice=nodevice
35099 fi
cristyad38abe2012-12-23 23:03:21 +000035100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
35101$as_echo "$GSEPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035102fi
35103
35104
35105
35106
35107
35108
35109
35110
35111
35112
35113#
35114# PerlMagick-related configuration
35115#
35116
35117# Look for PERL if PerlMagick requested
35118# If name/path of desired PERL interpreter is specified, look for that one first
35119have_perl='no'
35120if test "$with_perl" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000035121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35122$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035124$as_echo_n "checking for Perl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35126$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035127 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035129$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035130if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035131 $as_echo_n "(cached) " >&6
35132else
35133 ac_cv_path_PERL="$with_perl"
35134fi
cristy8b350f62009-11-15 23:12:43 +000035135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035136$as_echo "$ac_cv_path_PERL" >&6; };
35137 PERL=$ac_cv_path_PERL
35138 have_perl="$ac_cv_path_PERL"
35139 else
35140 for ac_prog in perl perl5
35141do
35142 # Extract the first word of "$ac_prog", so it can be a program name with args.
35143set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035145$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035146if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035147 $as_echo_n "(cached) " >&6
35148else
35149 case $PERL in
35150 [\\/]* | ?:[\\/]*)
35151 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
35152 ;;
35153 *)
35154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35155for as_dir in $PATH
35156do
35157 IFS=$as_save_IFS
35158 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035159 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035161 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035163 break 2
35164 fi
35165done
cristy8b350f62009-11-15 23:12:43 +000035166 done
cristy3ed852e2009-09-05 21:47:34 +000035167IFS=$as_save_IFS
35168
35169 ;;
35170esac
35171fi
35172PERL=$ac_cv_path_PERL
35173if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000035174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035175$as_echo "$PERL" >&6; }
35176else
cristy8b350f62009-11-15 23:12:43 +000035177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035178$as_echo "no" >&6; }
35179fi
35180
35181
35182 test -n "$PERL" && break
35183done
35184 if test "$ac_cv_path_PERL"; then
35185 have_perl="$ac_cv_path_PERL"
35186 fi
35187 fi
35188fi
35189
cristy949301e2010-01-06 01:38:40 +000035190if test "$with_perl" != 'yes' ; then
35191 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
35192fi
35193
35194PERL_SUPPORTS_DESTDIR='no'
35195
cristy3ed852e2009-09-05 21:47:34 +000035196with_perl_static='no'
35197with_perl_dynamic='no'
35198if test "$have_perl" != 'no'; then
35199 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
35200 with_perl_static='yes'
35201 fi
35202 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
35203 with_perl_dynamic='yes'
35204 fi
35205 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000035206
35207
35208
35209
35210 if test -n "$PERL"; then :
35211
35212 ax_perl_version="5.8.1"
35213
35214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
35215$as_echo_n "checking for perl version... " >&6; }
35216
35217 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
35218
35219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
35220$as_echo "$perl_version" >&6; }
35221
35222 PERL_VERSION=$perl_version
35223
35224
35225
35226
35227
35228 # Used to indicate true or false condition
35229 ax_compare_version=false
35230
35231 # Convert the two version strings to be compared into a format that
35232 # allows a simple string comparison. The end result is that a version
35233 # string of the form 1.12.5-r617 will be converted to the form
35234 # 0001001200050617. In other words, each number is zero padded to four
35235 # digits, and non digits are removed.
35236
35237 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35238 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35239 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35240 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35241 -e 's/[^0-9]//g'`
35242
35243
35244 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35245 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35246 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35247 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35248 -e 's/[^0-9]//g'`
35249
35250
35251 ax_compare_version=`echo "x$ax_compare_version_A
35252x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
35253
35254
35255
35256 if test "$ax_compare_version" = "true" ; then
35257
35258 :
35259 PERL_SUPPORTS_DESTDIR='yes'
35260
35261 else
35262 :
35263 PERL_SUPPORTS_DESTDIR='no'
35264
35265 fi
35266
35267
35268else
35269
35270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
35271$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
35272 PERL_SUPPORTS_DESTDIR='no'
35273
cristy3ed852e2009-09-05 21:47:34 +000035274fi
cristy73bd4a52010-10-05 11:24:23 +000035275
35276fi
35277 if test "$have_perl" != 'no'; then
35278 WITH_PERL_TRUE=
35279 WITH_PERL_FALSE='#'
35280else
35281 WITH_PERL_TRUE='#'
35282 WITH_PERL_FALSE=
35283fi
35284
35285 if test $with_perl_static = 'yes'; then
35286 WITH_PERL_STATIC_TRUE=
35287 WITH_PERL_STATIC_FALSE='#'
35288else
35289 WITH_PERL_STATIC_TRUE='#'
35290 WITH_PERL_STATIC_FALSE=
35291fi
35292
35293 if test $with_perl_dynamic = 'yes'; then
35294 WITH_PERL_DYNAMIC_TRUE=
35295 WITH_PERL_DYNAMIC_FALSE='#'
35296else
35297 WITH_PERL_DYNAMIC_TRUE='#'
35298 WITH_PERL_DYNAMIC_FALSE=
35299fi
35300
cristy3ed852e2009-09-05 21:47:34 +000035301
35302
35303# Determine path to pick up MagickCore library from for use with building PerlMagick
35304MAGICKCORE_PATH="${LIB_DIR}"
35305if test $with_perl_static = 'yes'; then
35306 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
35307 libtool_objdir=$objdir
35308
35309 # Linker search path to library, followed by -lMagickCore
cristy4c08aed2011-07-01 19:47:50 +000035310 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
cristy3ed852e2009-09-05 21:47:34 +000035311fi
35312
35313
cristy2a3eb392012-12-17 13:39:20 +000035314# Create a simple string containing format names for all delegate libraries.
cristy422d5502012-12-22 22:20:57 +000035315MAGICK_DELEGATES=''
cristy2a3eb392012-12-17 13:39:20 +000035316if test "$have_autotrace" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035317 MAGICK_DELEGATES="$MAGICK_DELEGATES autotrace"
cristy3ed852e2009-09-05 21:47:34 +000035318fi
cristy2a3eb392012-12-17 13:39:20 +000035319if test "$have_bzlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035320 MAGICK_DELEGATES="$MAGICK_DELEGATES bzlib"
cristy2a3eb392012-12-17 13:39:20 +000035321fi
35322if test "$have_dps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035323 MAGICK_DELEGATES="$MAGICK_DELEGATES dps"
cristy2a3eb392012-12-17 13:39:20 +000035324fi
35325if test "$have_djvu" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035326 MAGICK_DELEGATES="$MAGICK_DELEGATES djvu"
cristy2a3eb392012-12-17 13:39:20 +000035327fi
35328if test "$have_ffmpeg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035329 MAGICK_DELEGATES="$MAGICK_DELEGATES mpeg"
cristy2a3eb392012-12-17 13:39:20 +000035330fi
35331if test "$have_fftw" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035332 MAGICK_DELEGATES="$MAGICK_DELEGATES fftw"
cristy2a3eb392012-12-17 13:39:20 +000035333fi
35334if test "$have_fig2dev" = 'yes' && test "$have_ps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035335 MAGICK_DELEGATES="$MAGICK_DELEGATES xfig"
cristy2a3eb392012-12-17 13:39:20 +000035336fi
35337if test "$have_fpx" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035338 MAGICK_DELEGATES="$MAGICK_DELEGATES fpx"
cristy2a3eb392012-12-17 13:39:20 +000035339fi
35340if test "$have_fontconfig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035341 MAGICK_DELEGATES="$MAGICK_DELEGATES fontconfig"
cristy2a3eb392012-12-17 13:39:20 +000035342fi
35343if test "$have_freetype" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035344 MAGICK_DELEGATES="$MAGICK_DELEGATES freetype"
cristy2a3eb392012-12-17 13:39:20 +000035345fi
35346if test "$have_gslib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035347 MAGICK_DELEGATES="$MAGICK_DELEGATES gslib"
cristy2a3eb392012-12-17 13:39:20 +000035348fi
35349if test "$have_jbig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035350 MAGICK_DELEGATES="$MAGICK_DELEGATES jbig"
cristy2a3eb392012-12-17 13:39:20 +000035351fi
35352if test "$have_png$have_jpeg" = 'yesyes' ; then
cristy422d5502012-12-22 22:20:57 +000035353 MAGICK_DELEGATES="$MAGICK_DELEGATES jng"
cristy2a3eb392012-12-17 13:39:20 +000035354fi
35355if test "$have_jp2" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035356 MAGICK_DELEGATES="$MAGICK_DELEGATES jp2"
cristy2a3eb392012-12-17 13:39:20 +000035357fi
35358if test "$have_jpeg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035359 MAGICK_DELEGATES="$MAGICK_DELEGATES jpeg"
cristy2a3eb392012-12-17 13:39:20 +000035360fi
35361if test "$have_lcms" = 'yes' || test "$have_lcms2" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035362 MAGICK_DELEGATES="$MAGICK_DELEGATES lcms"
cristy2a3eb392012-12-17 13:39:20 +000035363fi
35364if test "$have_lqr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035365 MAGICK_DELEGATES="$MAGICK_DELEGATES lqr"
cristy2a3eb392012-12-17 13:39:20 +000035366fi
35367if test "$have_lzma" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035368 MAGICK_DELEGATES="$MAGICK_DELEGATES lzma"
cristy2a3eb392012-12-17 13:39:20 +000035369fi
35370if test "$have_openexr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035371 MAGICK_DELEGATES="$MAGICK_DELEGATES openexr"
cristy2a3eb392012-12-17 13:39:20 +000035372fi
35373if test "$have_pango" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035374 MAGICK_DELEGATES="$MAGICK_DELEGATES pango"
cristy2a3eb392012-12-17 13:39:20 +000035375fi
35376if test "$have_png" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035377 MAGICK_DELEGATES="$MAGICK_DELEGATES png"
cristy2a3eb392012-12-17 13:39:20 +000035378fi
35379have_ps='no'
35380if test "$have_dps" = 'yes' || \
35381 test "$have_gs" = 'yes' || \
35382 test "${native_win32_build}" = 'yes' ; then
35383 have_ps='yes'
35384fi
35385if test "$have_ps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035386 MAGICK_DELEGATES="$MAGICK_DELEGATES ps"
cristy2a3eb392012-12-17 13:39:20 +000035387fi
35388if test "$have_ralcgm" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035389 MAGICK_DELEGATES="$MAGICK_DELEGATES cgm"
cristy2a3eb392012-12-17 13:39:20 +000035390fi
35391if test "$have_ra_ppm" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035392 MAGICK_DELEGATES="$MAGICK_DELEGATES rad"
cristy2a3eb392012-12-17 13:39:20 +000035393fi
35394if test "$have_rsvg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035395 MAGICK_DELEGATES="$MAGICK_DELEGATES rsvg"
cristy2a3eb392012-12-17 13:39:20 +000035396fi
35397if test "$have_tiff" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035398 MAGICK_DELEGATES="$MAGICK_DELEGATES tiff"
cristy2a3eb392012-12-17 13:39:20 +000035399fi
35400if test "$have_ttf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035401 MAGICK_DELEGATES="$MAGICK_DELEGATES ttf"
cristy2a3eb392012-12-17 13:39:20 +000035402fi
cristy3b640ed2013-07-29 00:27:59 +000035403if test "$have_webp" = 'yes' ; then
35404 MAGICK_DELEGATES="$MAGICK_DELEGATES webp"
35405fi
cristy2a3eb392012-12-17 13:39:20 +000035406if test "$have_wmf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035407 MAGICK_DELEGATES="$MAGICK_DELEGATES wmf"
cristy2a3eb392012-12-17 13:39:20 +000035408fi
35409if test "$have_x" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035410 MAGICK_DELEGATES="$MAGICK_DELEGATES x"
cristy2a3eb392012-12-17 13:39:20 +000035411fi
35412if test "$have_xml" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035413 MAGICK_DELEGATES="$MAGICK_DELEGATES xml"
cristy2a3eb392012-12-17 13:39:20 +000035414fi
35415if test "$have_zlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035416 MAGICK_DELEGATES="$MAGICK_DELEGATES zlib"
cristy2a3eb392012-12-17 13:39:20 +000035417fi
cristy2a3eb392012-12-17 13:39:20 +000035418# Remove extraneous spaces from output variables (asthetic)
cristy422d5502012-12-22 22:20:57 +000035419MAGICK_DELEGATES=`echo $MAGICK_DELEGATES | sed -e 's/ */ /g'`
cristy2a3eb392012-12-17 13:39:20 +000035420MAGICK_FEATURES=`echo $MAGICK_FEATURES | sed -e 's/ */ /g'`
cristy3ed852e2009-09-05 21:47:34 +000035421
35422
cristyfa161182012-12-19 15:45:28 +000035423
cristy3ed852e2009-09-05 21:47:34 +000035424#
35425# Handle special compiler flags
35426#
35427
35428# Add '-p' if prof source profiling support enabled
35429if test "$enable_prof" = 'yes'; then
35430 CFLAGS="-p $CFLAGS"
35431 CXXFLAGS="-p $CXXFLAGS"
35432 LDFLAGS="-p $LDFLAGS"
35433fi
35434
35435# Add '-pg' if gprof source profiling support enabled
35436if test "$enable_gprof" = 'yes'; then
35437 CFLAGS="-pg $CFLAGS"
35438 CXXFLAGS="-pg $CXXFLAGS"
35439 LDFLAGS="-pg $LDFLAGS"
35440fi
35441
35442# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
35443# This is a gcc-specific feature
35444if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035446$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035447if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035448 $as_echo_n "(cached) " >&6
35449else
35450 ac_check_lib_save_LIBS=$LIBS
35451LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035452cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035453/* end confdefs.h. */
35454
35455/* Override any GCC internal prototype to avoid an error.
35456 Use char because int might match the return type of a GCC
35457 builtin and then its argument prototype would still apply. */
35458#ifdef __cplusplus
35459extern "C"
35460#endif
35461char _gcov_init ();
35462int
35463main ()
35464{
35465return _gcov_init ();
35466 ;
35467 return 0;
35468}
35469_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035470if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035471 ac_cv_lib_gcov__gcov_init=yes
35472else
cristy8b350f62009-11-15 23:12:43 +000035473 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035474fi
cristy8b350f62009-11-15 23:12:43 +000035475rm -f core conftest.err conftest.$ac_objext \
35476 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035477LIBS=$ac_check_lib_save_LIBS
35478fi
cristy8b350f62009-11-15 23:12:43 +000035479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035480$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035481if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035482 cat >>confdefs.h <<_ACEOF
35483#define HAVE_LIBGCOV 1
35484_ACEOF
35485
35486 LIBS="-lgcov $LIBS"
35487
35488fi
35489
cristy8b350f62009-11-15 23:12:43 +000035490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035491$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035492if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035493 $as_echo_n "(cached) " >&6
35494else
35495 ac_check_lib_save_LIBS=$LIBS
35496LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035497cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035498/* end confdefs.h. */
35499
35500/* Override any GCC internal prototype to avoid an error.
35501 Use char because int might match the return type of a GCC
35502 builtin and then its argument prototype would still apply. */
35503#ifdef __cplusplus
35504extern "C"
35505#endif
35506char __gcov_init ();
35507int
35508main ()
35509{
35510return __gcov_init ();
35511 ;
35512 return 0;
35513}
35514_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035515if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035516 ac_cv_lib_gcov___gcov_init=yes
35517else
cristy8b350f62009-11-15 23:12:43 +000035518 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035519fi
cristy8b350f62009-11-15 23:12:43 +000035520rm -f core conftest.err conftest.$ac_objext \
35521 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035522LIBS=$ac_check_lib_save_LIBS
35523fi
cristy8b350f62009-11-15 23:12:43 +000035524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035525$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035526if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035527 cat >>confdefs.h <<_ACEOF
35528#define HAVE_LIBGCOV 1
35529_ACEOF
35530
35531 LIBS="-lgcov $LIBS"
35532
35533fi
35534
35535 case "$target_os" in
35536 darwin*)
35537 OSX_GCOV_LDFLAG="-Wl,-single_module"
35538 ;;
35539 *)
35540 OSX_GCOV_LDFLAG=""
35541 ;;
35542 esac
35543
35544 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
35545 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
35546 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
35547fi
35548
35549#
35550# Build library dependency list for libMagickCore
35551#
35552
cristyc6722092012-10-14 00:19:31 +000035553if test "$build_modules" != 'no'; then
cristy5eef09f2012-10-16 12:08:28 +000035554 MAGICK_DEP_LIBS="$LCMS_LIBS $FREETYPE_LIBS $LQR_LIBS $FFTW_LIBS $FONTCONFIG_LIBS $XEXT_LIBS $IPC_LIBS $X11_LIBS $XT_LIBS $LZMA_LIBS $BZLIB_LIBS $ZLIB_LIBS $LTDL_LIBS $GDI32_LIBS $MATH_LIBS $GOMP_LIBS $CL_LIBS $UMEM_LIBS $THREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000035555else
cristy3a75f062012-09-08 23:29:40 +000035556 MAGICK_DEP_LIBS="$JBIG_LIBS $LCMS_LIBS $TIFF_LIBS $FREETYPE_LIBS $JP2_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 $PANGO_LIBS $RSVG_LIBS $XML_LIBS $GVC_LIBS $ZLIB_LIBS $GDI32_LIBS $MATH_LIBS $GOMP_LIBS $CL_LIBS $UMEM_LIBS $THREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000035557fi
35558
35559
35560#
35561# Remove extraneous spaces from output variables (asthetic)
35562#
35563X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
35564X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
35565X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
35566X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
35567
35568CC=`echo $CC | sed -e 's/ */ /g'`
35569CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
35570CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
35571CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
cristy3ed852e2009-09-05 21:47:34 +000035572DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
35573LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
35574TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35575MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
35576#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35577
35578# Pass only user-provided LIBS as "global" libraries
35579LIBS=$USER_LIBS
35580
35581#AC_SUBST(CPPFLAGS)
35582
35583#AC_SUBST(LDFLAGS)
35584#AC_SUBST(X_PRE_LIBS)
35585#AC_SUBST(X_LIBS)
35586#AC_SUBST(X_EXTRA_LIBS)
35587
35588MAGICK_CFLAGS=$CFLAGS
35589MAGICK_CXXFLAGS="$CXXFLAGS"
35590MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
35591MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
35592MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
cristyc6722092012-10-14 00:19:31 +000035593MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000035594
35595
35596
35597
35598
35599
35600
35601
35602# Set configured scripts to executable.
35603ac_config_commands="$ac_config_commands default"
35604
cristy2bd4b6e2012-07-22 15:29:11 +000035605ac_config_commands="$ac_config_commands magick.sh.in"
35606
cristy3ed852e2009-09-05 21:47:34 +000035607ac_config_commands="$ac_config_commands MagickCore-config.in"
35608
cristy3ed852e2009-09-05 21:47:34 +000035609ac_config_commands="$ac_config_commands MagickWand-config.in"
35610
cristy3ed852e2009-09-05 21:47:34 +000035611ac_config_commands="$ac_config_commands Magick++-config.in"
35612
35613ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
35614
35615
cristyad38abe2012-12-23 23:03:21 +000035616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35617$as_echo "-------------------------------------------------------------" >&6; }
35618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
35619$as_echo "Update ImageMagick configuration" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035620cat >confcache <<\_ACEOF
35621# This file is a shell script that caches the results of configure
35622# tests run on this system so they can be shared between configure
35623# scripts and configure runs, see configure's option --config-cache.
35624# It is not useful on other systems. If it contains results you don't
35625# want to keep, you may remove or edit it.
35626#
35627# config.status only pays attention to the cache file if you give it
35628# the --recheck option to rerun configure.
35629#
35630# `ac_cv_env_foo' variables (set or unset) will be overridden when
35631# loading this file, other *unset* `ac_cv_foo' will be assigned the
35632# following values.
35633
35634_ACEOF
35635
35636# The following way of writing the cache mishandles newlines in values,
35637# but we know of no workaround that is simple, portable, and efficient.
35638# So, we kill variables containing newlines.
35639# Ultrix sh set writes to stderr and can't be redirected directly,
35640# and sets the high bit in the cache file unless we assign to the vars.
35641(
35642 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35643 eval ac_val=\$$ac_var
35644 case $ac_val in #(
35645 *${as_nl}*)
35646 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000035647 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000035648$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
35649 esac
35650 case $ac_var in #(
35651 _ | IFS | as_nl) ;; #(
35652 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000035653 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000035654 esac ;;
35655 esac
35656 done
35657
35658 (set) 2>&1 |
35659 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35660 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000035661 # `set' does not quote correctly, so add quotes: double-quote
35662 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000035663 sed -n \
35664 "s/'/'\\\\''/g;
35665 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35666 ;; #(
35667 *)
35668 # `set' quotes correctly as required by POSIX, so do not add quotes.
35669 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35670 ;;
35671 esac |
35672 sort
35673) |
35674 sed '
35675 /^ac_cv_env_/b end
35676 t clear
35677 :clear
35678 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35679 t end
35680 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35681 :end' >>confcache
35682if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35683 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000035684 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000035685 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035686$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000035687 if test ! -f "$cache_file" || test -h "$cache_file"; then
35688 cat confcache >"$cache_file"
35689 else
35690 case $cache_file in #(
35691 */* | ?:*)
35692 mv -f confcache "$cache_file"$$ &&
35693 mv -f "$cache_file"$$ "$cache_file" ;; #(
35694 *)
35695 mv -f confcache "$cache_file" ;;
35696 esac
35697 fi
35698 fi
cristy3ed852e2009-09-05 21:47:34 +000035699 else
cristy8b350f62009-11-15 23:12:43 +000035700 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035701$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35702 fi
35703fi
35704rm -f confcache
35705
35706test "x$prefix" = xNONE && prefix=$ac_default_prefix
35707# Let make expand exec_prefix.
35708test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35709
35710DEFS=-DHAVE_CONFIG_H
35711
35712ac_libobjs=
35713ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000035714U=
cristy3ed852e2009-09-05 21:47:34 +000035715for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35716 # 1. Remove the extension, and $U if already installed.
35717 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35718 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
35719 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35720 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000035721 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35722 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000035723done
35724LIBOBJS=$ac_libobjs
35725
35726LTLIBOBJS=$ac_ltlibobjs
35727
35728
cristyc0890a62012-07-19 00:18:20 +000035729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
35730$as_echo_n "checking that generated files are newer than configure... " >&6; }
35731 if test -n "$am_sleep_pid"; then
35732 # Hide warnings about reused PIDs.
35733 wait $am_sleep_pid 2>/dev/null
35734 fi
35735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
35736$as_echo "done" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000035737 if test -n "$EXEEXT"; then
35738 am__EXEEXT_TRUE=
35739 am__EXEEXT_FALSE='#'
35740else
35741 am__EXEEXT_TRUE='#'
35742 am__EXEEXT_FALSE=
35743fi
cristy3ed852e2009-09-05 21:47:34 +000035744
cristy73bd4a52010-10-05 11:24:23 +000035745if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035746 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035747Usually this means the macro was only invoked conditionally." "$LINENO" 5
35748fi
35749if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035750 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035751Usually this means the macro was only invoked conditionally." "$LINENO" 5
35752fi
35753if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035754 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035755Usually this means the macro was only invoked conditionally." "$LINENO" 5
35756fi
35757if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035758 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035759Usually this means the macro was only invoked conditionally." "$LINENO" 5
35760fi
cristy9b86f202012-11-28 21:55:35 +000035761if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
35762 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
35763Usually this means the macro was only invoked conditionally." "$LINENO" 5
35764fi
cristy73bd4a52010-10-05 11:24:23 +000035765if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035766 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035767Usually this means the macro was only invoked conditionally." "$LINENO" 5
35768fi
35769if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035770 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035771Usually this means the macro was only invoked conditionally." "$LINENO" 5
35772fi
35773if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035774 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035775Usually this means the macro was only invoked conditionally." "$LINENO" 5
35776fi
35777if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035778 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035779Usually this means the macro was only invoked conditionally." "$LINENO" 5
35780fi
cristy73bd4a52010-10-05 11:24:23 +000035781if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035782 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035783Usually this means the macro was only invoked conditionally." "$LINENO" 5
35784fi
35785if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035786 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035787Usually this means the macro was only invoked conditionally." "$LINENO" 5
35788fi
cristy73bd4a52010-10-05 11:24:23 +000035789if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035790 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035791Usually this means the macro was only invoked conditionally." "$LINENO" 5
35792fi
cristy71d8c202012-03-20 17:05:01 +000035793if test -z "${LEGACY_SUPPORT_TRUE}" && test -z "${LEGACY_SUPPORT_FALSE}"; then
35794 as_fn_error $? "conditional \"LEGACY_SUPPORT\" was never defined.
35795Usually this means the macro was only invoked conditionally." "$LINENO" 5
35796fi
cristy73bd4a52010-10-05 11:24:23 +000035797
35798if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035799 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035800Usually this means the macro was only invoked conditionally." "$LINENO" 5
35801fi
35802if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035803 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035804Usually this means the macro was only invoked conditionally." "$LINENO" 5
35805fi
35806if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035807 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035808Usually this means the macro was only invoked conditionally." "$LINENO" 5
35809fi
35810if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035811 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035812Usually this means the macro was only invoked conditionally." "$LINENO" 5
35813fi
35814if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035815 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035816Usually this means the macro was only invoked conditionally." "$LINENO" 5
35817fi
35818if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035819 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035820Usually this means the macro was only invoked conditionally." "$LINENO" 5
35821fi
cristy5eef09f2012-10-16 12:08:28 +000035822if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
35823 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
35824Usually this means the macro was only invoked conditionally." "$LINENO" 5
35825fi
cristy73bd4a52010-10-05 11:24:23 +000035826if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035827 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035828Usually this means the macro was only invoked conditionally." "$LINENO" 5
35829fi
35830if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035831 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035832Usually this means the macro was only invoked conditionally." "$LINENO" 5
35833fi
35834if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035835 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035836Usually this means the macro was only invoked conditionally." "$LINENO" 5
35837fi
35838if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035839 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035840Usually this means the macro was only invoked conditionally." "$LINENO" 5
35841fi
35842if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035843 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035844Usually this means the macro was only invoked conditionally." "$LINENO" 5
35845fi
35846if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035847 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035848Usually this means the macro was only invoked conditionally." "$LINENO" 5
35849fi
35850if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035851 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035852Usually this means the macro was only invoked conditionally." "$LINENO" 5
35853fi
35854if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035855 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035856Usually this means the macro was only invoked conditionally." "$LINENO" 5
35857fi
35858if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035859 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035860Usually this means the macro was only invoked conditionally." "$LINENO" 5
35861fi
35862if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035863 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035864Usually this means the macro was only invoked conditionally." "$LINENO" 5
35865fi
35866if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035867 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035868Usually this means the macro was only invoked conditionally." "$LINENO" 5
35869fi
35870if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035871 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035872Usually this means the macro was only invoked conditionally." "$LINENO" 5
35873fi
35874if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035875 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035876Usually this means the macro was only invoked conditionally." "$LINENO" 5
35877fi
35878if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035879 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035880Usually this means the macro was only invoked conditionally." "$LINENO" 5
35881fi
cristyfbb0ef02010-12-19 02:32:11 +000035882if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
35883 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
35884Usually this means the macro was only invoked conditionally." "$LINENO" 5
35885fi
cristy73bd4a52010-10-05 11:24:23 +000035886if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035887 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035888Usually this means the macro was only invoked conditionally." "$LINENO" 5
35889fi
cristy41cbe8a2011-10-27 01:35:18 +000035890if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
35891 as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
35892Usually this means the macro was only invoked conditionally." "$LINENO" 5
35893fi
cristya054b762012-03-26 23:16:00 +000035894if test -z "${PANGOCAIRO_DELEGATE_TRUE}" && test -z "${PANGOCAIRO_DELEGATE_FALSE}"; then
35895 as_fn_error $? "conditional \"PANGOCAIRO_DELEGATE\" was never defined.
cristy41cbe8a2011-10-27 01:35:18 +000035896Usually this means the macro was only invoked conditionally." "$LINENO" 5
35897fi
cristy73bd4a52010-10-05 11:24:23 +000035898if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035899 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035900Usually this means the macro was only invoked conditionally." "$LINENO" 5
35901fi
35902if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035903 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035904Usually this means the macro was only invoked conditionally." "$LINENO" 5
35905fi
35906if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035907 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035908Usually this means the macro was only invoked conditionally." "$LINENO" 5
35909fi
35910if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035911 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035912Usually this means the macro was only invoked conditionally." "$LINENO" 5
35913fi
cristyb1860752011-03-14 00:27:46 +000035914if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
35915 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
35916Usually this means the macro was only invoked conditionally." "$LINENO" 5
35917fi
cristy73bd4a52010-10-05 11:24:23 +000035918if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035919 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035920Usually this means the macro was only invoked conditionally." "$LINENO" 5
35921fi
35922if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035923 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035924Usually this means the macro was only invoked conditionally." "$LINENO" 5
35925fi
35926if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035927 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035928Usually this means the macro was only invoked conditionally." "$LINENO" 5
35929fi
35930if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035931 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035932Usually this means the macro was only invoked conditionally." "$LINENO" 5
35933fi
35934if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035935 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035936Usually this means the macro was only invoked conditionally." "$LINENO" 5
35937fi
35938if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035939 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035940Usually this means the macro was only invoked conditionally." "$LINENO" 5
35941fi
35942if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035943 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035944Usually this means the macro was only invoked conditionally." "$LINENO" 5
35945fi
35946if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035947 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035948Usually this means the macro was only invoked conditionally." "$LINENO" 5
35949fi
cristy3ed852e2009-09-05 21:47:34 +000035950
cristyda16f162011-02-19 23:52:17 +000035951: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000035952ac_write_fail=0
35953ac_clean_files_save=$ac_clean_files
35954ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000035955{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000035956$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035957as_write_fail=0
35958cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000035959#! $SHELL
35960# Generated by $as_me.
35961# Run this file to recreate the current configuration.
35962# Compiler output produced by configure, useful for debugging
35963# configure, is in config.log if it exists.
35964
35965debug=false
35966ac_cs_recheck=false
35967ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000035968
cristy8b350f62009-11-15 23:12:43 +000035969SHELL=\${CONFIG_SHELL-$SHELL}
35970export SHELL
35971_ASEOF
35972cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
35973## -------------------- ##
35974## M4sh Initialization. ##
35975## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000035976
35977# Be more Bourne compatible
35978DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000035979if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000035980 emulate sh
35981 NULLCMD=:
35982 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
35983 # is contrary to our usage. Disable this feature.
35984 alias -g '${1+"$@"}'='"$@"'
35985 setopt NO_GLOB_SUBST
35986else
cristy8b350f62009-11-15 23:12:43 +000035987 case `(set -o) 2>/dev/null` in #(
35988 *posix*) :
35989 set -o posix ;; #(
35990 *) :
35991 ;;
cristy3ed852e2009-09-05 21:47:34 +000035992esac
cristy3ed852e2009-09-05 21:47:34 +000035993fi
35994
35995
cristy3ed852e2009-09-05 21:47:34 +000035996as_nl='
35997'
35998export as_nl
35999# Printing a long string crashes Solaris 7 /usr/bin/printf.
36000as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
36001as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
36002as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000036003# Prefer a ksh shell builtin over an external printf program on Solaris,
36004# but without wasting forks for bash or zsh.
36005if test -z "$BASH_VERSION$ZSH_VERSION" \
36006 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
36007 as_echo='print -r --'
36008 as_echo_n='print -rn --'
36009elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000036010 as_echo='printf %s\n'
36011 as_echo_n='printf %s'
36012else
36013 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
36014 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
36015 as_echo_n='/usr/ucb/echo -n'
36016 else
36017 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
36018 as_echo_n_body='eval
36019 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000036020 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000036021 *"$as_nl"*)
36022 expr "X$arg" : "X\\(.*\\)$as_nl";
36023 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
36024 esac;
36025 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
36026 '
36027 export as_echo_n_body
36028 as_echo_n='sh -c $as_echo_n_body as_echo'
36029 fi
36030 export as_echo_body
36031 as_echo='sh -c $as_echo_body as_echo'
36032fi
36033
36034# The user is always right.
36035if test "${PATH_SEPARATOR+set}" != set; then
36036 PATH_SEPARATOR=:
36037 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
36038 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
36039 PATH_SEPARATOR=';'
36040 }
36041fi
36042
cristy3ed852e2009-09-05 21:47:34 +000036043
36044# IFS
36045# We need space, tab and new line, in precisely that order. Quoting is
36046# there to prevent editors from complaining about space-tab.
36047# (If _AS_PATH_WALK were called with IFS unset, it would disable word
36048# splitting by setting IFS to empty value.)
36049IFS=" "" $as_nl"
36050
36051# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000036052as_myself=
cristy8b350f62009-11-15 23:12:43 +000036053case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000036054 *[\\/]* ) as_myself=$0 ;;
36055 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36056for as_dir in $PATH
36057do
36058 IFS=$as_save_IFS
36059 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000036060 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
36061 done
cristy3ed852e2009-09-05 21:47:34 +000036062IFS=$as_save_IFS
36063
36064 ;;
36065esac
36066# We did not find ourselves, most probably we were run as `sh COMMAND'
36067# in which case we are not to be found in the path.
36068if test "x$as_myself" = x; then
36069 as_myself=$0
36070fi
36071if test ! -f "$as_myself"; then
36072 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000036073 exit 1
cristy3ed852e2009-09-05 21:47:34 +000036074fi
36075
cristy8b350f62009-11-15 23:12:43 +000036076# Unset variables that we do not need and which cause bugs (e.g. in
36077# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
36078# suppresses any "Segmentation fault" message there. '((' could
36079# trigger a bug in pdksh 5.2.14.
36080for as_var in BASH_ENV ENV MAIL MAILPATH
36081do eval test x\${$as_var+set} = xset \
36082 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000036083done
36084PS1='$ '
36085PS2='> '
36086PS4='+ '
36087
36088# NLS nuisances.
36089LC_ALL=C
36090export LC_ALL
36091LANGUAGE=C
36092export LANGUAGE
36093
cristy8b350f62009-11-15 23:12:43 +000036094# CDPATH.
36095(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36096
36097
cristy98dddb52010-11-04 00:30:15 +000036098# as_fn_error STATUS ERROR [LINENO LOG_FD]
36099# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000036100# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
36101# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000036102# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000036103as_fn_error ()
36104{
cristy98dddb52010-11-04 00:30:15 +000036105 as_status=$1; test $as_status -eq 0 && as_status=1
36106 if test "$4"; then
36107 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
36108 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000036109 fi
cristy98dddb52010-11-04 00:30:15 +000036110 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000036111 as_fn_exit $as_status
36112} # as_fn_error
36113
36114
36115# as_fn_set_status STATUS
36116# -----------------------
36117# Set $? to STATUS, without forking.
36118as_fn_set_status ()
36119{
36120 return $1
36121} # as_fn_set_status
36122
36123# as_fn_exit STATUS
36124# -----------------
36125# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
36126as_fn_exit ()
36127{
36128 set +e
36129 as_fn_set_status $1
36130 exit $1
36131} # as_fn_exit
36132
36133# as_fn_unset VAR
36134# ---------------
36135# Portably unset VAR.
36136as_fn_unset ()
36137{
36138 { eval $1=; unset $1;}
36139}
36140as_unset=as_fn_unset
36141# as_fn_append VAR VALUE
36142# ----------------------
36143# Append the text in VALUE to the end of the definition contained in VAR. Take
36144# advantage of any shell optimizations that allow amortized linear growth over
36145# repeated appends, instead of the typical quadratic growth present in naive
36146# implementations.
36147if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
36148 eval 'as_fn_append ()
36149 {
36150 eval $1+=\$2
36151 }'
36152else
36153 as_fn_append ()
36154 {
36155 eval $1=\$$1\$2
36156 }
36157fi # as_fn_append
36158
36159# as_fn_arith ARG...
36160# ------------------
36161# Perform arithmetic evaluation on the ARGs, and store the result in the
36162# global $as_val. Take advantage of shells that can avoid forks. The arguments
36163# must be portable across $(()) and expr.
36164if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
36165 eval 'as_fn_arith ()
36166 {
36167 as_val=$(( $* ))
36168 }'
36169else
36170 as_fn_arith ()
36171 {
36172 as_val=`expr "$@" || test $? -eq 1`
36173 }
36174fi # as_fn_arith
36175
36176
cristy3ed852e2009-09-05 21:47:34 +000036177if expr a : '\(a\)' >/dev/null 2>&1 &&
36178 test "X`expr 00001 : '.*\(...\)'`" = X001; then
36179 as_expr=expr
36180else
36181 as_expr=false
36182fi
36183
36184if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
36185 as_basename=basename
36186else
36187 as_basename=false
36188fi
36189
cristy8b350f62009-11-15 23:12:43 +000036190if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
36191 as_dirname=dirname
36192else
36193 as_dirname=false
36194fi
cristy3ed852e2009-09-05 21:47:34 +000036195
cristy3ed852e2009-09-05 21:47:34 +000036196as_me=`$as_basename -- "$0" ||
36197$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
36198 X"$0" : 'X\(//\)$' \| \
36199 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
36200$as_echo X/"$0" |
36201 sed '/^.*\/\([^/][^/]*\)\/*$/{
36202 s//\1/
36203 q
36204 }
36205 /^X\/\(\/\/\)$/{
36206 s//\1/
36207 q
36208 }
36209 /^X\/\(\/\).*/{
36210 s//\1/
36211 q
36212 }
36213 s/.*/./; q'`
36214
cristy8b350f62009-11-15 23:12:43 +000036215# Avoid depending upon Character Ranges.
36216as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36217as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36218as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36219as_cr_digits='0123456789'
36220as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000036221
36222ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000036223case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000036224-n*)
cristy8b350f62009-11-15 23:12:43 +000036225 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000036226 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000036227 xy) ECHO_C='\c';;
36228 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
36229 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000036230 esac;;
36231*)
36232 ECHO_N='-n';;
36233esac
cristy3ed852e2009-09-05 21:47:34 +000036234
36235rm -f conf$$ conf$$.exe conf$$.file
36236if test -d conf$$.dir; then
36237 rm -f conf$$.dir/conf$$.file
36238else
36239 rm -f conf$$.dir
36240 mkdir conf$$.dir 2>/dev/null
36241fi
36242if (echo >conf$$.file) 2>/dev/null; then
36243 if ln -s conf$$.file conf$$ 2>/dev/null; then
36244 as_ln_s='ln -s'
36245 # ... but there are two gotchas:
36246 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
36247 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cristy14fefe52012-05-21 00:59:18 +000036248 # In both cases, we have to default to `cp -pR'.
cristy3ed852e2009-09-05 21:47:34 +000036249 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cristy14fefe52012-05-21 00:59:18 +000036250 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036251 elif ln conf$$.file conf$$ 2>/dev/null; then
36252 as_ln_s=ln
36253 else
cristy14fefe52012-05-21 00:59:18 +000036254 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036255 fi
36256else
cristy14fefe52012-05-21 00:59:18 +000036257 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036258fi
36259rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
36260rmdir conf$$.dir 2>/dev/null
36261
cristy8b350f62009-11-15 23:12:43 +000036262
36263# as_fn_mkdir_p
36264# -------------
36265# Create "$as_dir" as a directory, including parents if necessary.
36266as_fn_mkdir_p ()
36267{
36268
36269 case $as_dir in #(
36270 -*) as_dir=./$as_dir;;
36271 esac
36272 test -d "$as_dir" || eval $as_mkdir_p || {
36273 as_dirs=
36274 while :; do
36275 case $as_dir in #(
36276 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
36277 *) as_qdir=$as_dir;;
36278 esac
36279 as_dirs="'$as_qdir' $as_dirs"
36280 as_dir=`$as_dirname -- "$as_dir" ||
36281$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36282 X"$as_dir" : 'X\(//\)[^/]' \| \
36283 X"$as_dir" : 'X\(//\)$' \| \
36284 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36285$as_echo X"$as_dir" |
36286 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36287 s//\1/
36288 q
36289 }
36290 /^X\(\/\/\)[^/].*/{
36291 s//\1/
36292 q
36293 }
36294 /^X\(\/\/\)$/{
36295 s//\1/
36296 q
36297 }
36298 /^X\(\/\).*/{
36299 s//\1/
36300 q
36301 }
36302 s/.*/./; q'`
36303 test -d "$as_dir" && break
36304 done
36305 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000036306 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000036307
36308
36309} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000036310if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000036311 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000036312else
36313 test -d ./-p && rmdir ./-p
36314 as_mkdir_p=false
36315fi
36316
cristy14fefe52012-05-21 00:59:18 +000036317
36318# as_fn_executable_p FILE
36319# -----------------------
36320# Test if FILE is an executable regular file.
36321as_fn_executable_p ()
36322{
36323 test -f "$1" && test -x "$1"
36324} # as_fn_executable_p
36325as_test_x='test -x'
36326as_executable_p=as_fn_executable_p
cristy3ed852e2009-09-05 21:47:34 +000036327
36328# Sed expression to map a string onto a valid CPP name.
36329as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
36330
36331# Sed expression to map a string onto a valid variable name.
36332as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
36333
36334
36335exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000036336## ----------------------------------- ##
36337## Main body of $CONFIG_STATUS script. ##
36338## ----------------------------------- ##
36339_ASEOF
36340test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036341
cristy8b350f62009-11-15 23:12:43 +000036342cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36343# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000036344# report actual input values of CONFIG_FILES etc. instead of their
36345# values after options handling.
36346ac_log="
cristy29eb34e2011-10-16 00:46:08 +000036347This file was extended by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +000036348generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000036349
36350 CONFIG_FILES = $CONFIG_FILES
36351 CONFIG_HEADERS = $CONFIG_HEADERS
36352 CONFIG_LINKS = $CONFIG_LINKS
36353 CONFIG_COMMANDS = $CONFIG_COMMANDS
36354 $ $0 $@
36355
36356on `(hostname || uname -n) 2>/dev/null | sed 1q`
36357"
36358
36359_ACEOF
36360
36361case $ac_config_files in *"
36362"*) set x $ac_config_files; shift; ac_config_files=$*;;
36363esac
36364
36365case $ac_config_headers in *"
36366"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
36367esac
36368
36369
36370cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36371# Files that config.status was made for.
36372config_files="$ac_config_files"
36373config_headers="$ac_config_headers"
36374config_commands="$ac_config_commands"
36375
36376_ACEOF
36377
36378cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36379ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000036380\`$as_me' instantiates files and other configuration actions
36381from templates according to the current configuration. Unless the files
36382and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000036383
cristy8b350f62009-11-15 23:12:43 +000036384Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000036385
36386 -h, --help print this help, then exit
36387 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000036388 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000036389 -q, --quiet, --silent
36390 do not print progress messages
36391 -d, --debug don't remove temporary files
36392 --recheck update $as_me by reconfiguring in the same conditions
36393 --file=FILE[:TEMPLATE]
36394 instantiate the configuration file FILE
36395 --header=FILE[:TEMPLATE]
36396 instantiate the configuration header FILE
36397
36398Configuration files:
36399$config_files
36400
36401Configuration headers:
36402$config_headers
36403
36404Configuration commands:
36405$config_commands
36406
cristy8b350f62009-11-15 23:12:43 +000036407Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000036408
36409_ACEOF
36410cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000036411ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000036412ac_cs_version="\\
cristy29eb34e2011-10-16 00:46:08 +000036413ImageMagick config.status 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +000036414configured by $0, generated by GNU Autoconf 2.69,
cristycd4c5312009-11-22 01:19:08 +000036415 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000036416
cristy14fefe52012-05-21 00:59:18 +000036417Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000036418This config.status script is free software; the Free Software Foundation
36419gives unlimited permission to copy, distribute and modify it."
36420
36421ac_pwd='$ac_pwd'
36422srcdir='$srcdir'
36423INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000036424MKDIR_P='$MKDIR_P'
36425AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000036426test -n "\$AWK" || AWK=awk
36427_ACEOF
36428
36429cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36430# The default lists apply if the user does not specify any file.
36431ac_need_defaults=:
36432while test $# != 0
36433do
36434 case $1 in
cristyda16f162011-02-19 23:52:17 +000036435 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000036436 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36437 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
36438 ac_shift=:
36439 ;;
cristyda16f162011-02-19 23:52:17 +000036440 --*=)
36441 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36442 ac_optarg=
36443 ac_shift=:
36444 ;;
cristy3ed852e2009-09-05 21:47:34 +000036445 *)
36446 ac_option=$1
36447 ac_optarg=$2
36448 ac_shift=shift
36449 ;;
36450 esac
36451
36452 case $ac_option in
36453 # Handling of the options.
36454 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
36455 ac_cs_recheck=: ;;
36456 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
36457 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000036458 --config | --confi | --conf | --con | --co | --c )
36459 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000036460 --debug | --debu | --deb | --de | --d | -d )
36461 debug=: ;;
36462 --file | --fil | --fi | --f )
36463 $ac_shift
36464 case $ac_optarg in
36465 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000036466 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000036467 esac
cristy8b350f62009-11-15 23:12:43 +000036468 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036469 ac_need_defaults=false;;
36470 --header | --heade | --head | --hea )
36471 $ac_shift
36472 case $ac_optarg in
36473 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
36474 esac
cristy8b350f62009-11-15 23:12:43 +000036475 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036476 ac_need_defaults=false;;
36477 --he | --h)
36478 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000036479 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036480Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000036481 --help | --hel | -h )
36482 $as_echo "$ac_cs_usage"; exit ;;
36483 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
36484 | -silent | --silent | --silen | --sile | --sil | --si | --s)
36485 ac_cs_silent=: ;;
36486
36487 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000036488 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036489Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000036490
cristy8b350f62009-11-15 23:12:43 +000036491 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000036492 ac_need_defaults=false ;;
36493
36494 esac
36495 shift
36496done
36497
36498ac_configure_extra_args=
36499
36500if $ac_cs_silent; then
36501 exec 6>/dev/null
36502 ac_configure_extra_args="$ac_configure_extra_args --silent"
36503fi
36504
36505_ACEOF
36506cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36507if \$ac_cs_recheck; then
cristy14fefe52012-05-21 00:59:18 +000036508 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
cristy3ed852e2009-09-05 21:47:34 +000036509 shift
36510 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
36511 CONFIG_SHELL='$SHELL'
36512 export CONFIG_SHELL
36513 exec "\$@"
36514fi
36515
36516_ACEOF
36517cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36518exec 5>>config.log
36519{
36520 echo
36521 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36522## Running $as_me. ##
36523_ASBOX
36524 $as_echo "$ac_log"
36525} >&5
36526
36527_ACEOF
36528cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000036529#
36530# INIT-COMMANDS
36531#
36532PACKAGE="$PACKAGE"
36533AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
36534
36535
36536# The HP-UX ksh and POSIX shell print the target directory to stdout
36537# if CDPATH is set.
36538(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36539
36540sed_quote_subst='$sed_quote_subst'
36541double_quote_subst='$double_quote_subst'
36542delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000036543SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
36544Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
36545GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
36546EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
36547FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
36548SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
36549ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
36550LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
36551macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
36552macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
36553AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
36554DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
36555OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
36556enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
36557enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
36558pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
36559enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
cristy99bd5232011-12-07 14:38:20 +000036560PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036561host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
36562host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
36563host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
36564build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
36565build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
36566build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
36567NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
36568LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
36569max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
36570ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
36571exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
36572lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
36573lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
36574lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036575lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
36576lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036577reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
36578reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
36579deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
36580file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036581file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
36582want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
36583sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036584AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
36585AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036586archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036587STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
36588RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
36589old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36590old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36591old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
36592lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
36593CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
36594CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
36595compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
36596GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
36597lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
36598lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
36599lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
36600lt_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 +000036601nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
36602lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036603objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
36604MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
36605lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036606lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036607lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036608lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
36609lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
36610need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036611MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036612DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
36613NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
36614LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
36615OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
36616OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
36617libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
36618shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
36619extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36620archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
36621enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
36622export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
36623whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
36624compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
36625old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
36626old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36627archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
36628archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36629module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
36630module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36631with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
36632allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
36633no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
36634hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036635hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
36636hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
36637hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
36638hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
36639hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
36640hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
36641inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
36642link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036643always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
36644export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
36645exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
36646include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
36647prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036648postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036649file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
36650variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
36651need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
36652need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
36653version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
36654runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
36655shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
36656shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
36657libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
36658library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
36659soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
36660install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
36661postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36662postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36663finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
36664finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
36665hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
36666sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
36667sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
36668hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
36669enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
36670enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
36671enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
36672old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
36673striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
36674compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
36675predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
36676postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
36677predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
36678postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
36679compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
36680LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
36681reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
36682reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36683old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36684compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
36685GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
36686lt_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 +000036687lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036688lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036689lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
36690lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
36691archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
36692enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
36693export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36694whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36695compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
36696old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36697old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36698archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36699archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36700module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36701module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36702with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
36703allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36704no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36705hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036706hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
36707hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
36708hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
36709hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
36710hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
36711hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
36712inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
36713link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036714always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
36715export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36716exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36717include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36718prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036719postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036720file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
36721hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
36722compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
36723predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36724postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36725predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
36726postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
36727compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000036728
36729LTCC='$LTCC'
36730LTCFLAGS='$LTCFLAGS'
36731compiler='$compiler_DEFAULT'
36732
cristy0c60a692010-11-04 01:09:47 +000036733# A function that is used when there is no print builtin or printf.
36734func_fallback_echo ()
36735{
36736 eval 'cat <<_LTECHO_EOF
36737\$1
36738_LTECHO_EOF'
36739}
36740
cristy73bd4a52010-10-05 11:24:23 +000036741# Quote evaled strings.
36742for var in SED \
36743GREP \
36744EGREP \
36745FGREP \
cristy0c60a692010-11-04 01:09:47 +000036746SHELL \
36747ECHO \
cristy73bd4a52010-10-05 11:24:23 +000036748LD \
cristy0c60a692010-11-04 01:09:47 +000036749AS \
36750DLLTOOL \
36751OBJDUMP \
cristy99bd5232011-12-07 14:38:20 +000036752PATH_SEPARATOR \
cristy73bd4a52010-10-05 11:24:23 +000036753NM \
36754LN_S \
36755lt_SP2NL \
36756lt_NL2SP \
36757reload_flag \
36758deplibs_check_method \
36759file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000036760file_magic_glob \
36761want_nocaseglob \
36762sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000036763AR \
36764AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000036765archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036766STRIP \
36767RANLIB \
36768CC \
36769CFLAGS \
36770compiler \
36771lt_cv_sys_global_symbol_pipe \
36772lt_cv_sys_global_symbol_to_cdecl \
36773lt_cv_sys_global_symbol_to_c_name_address \
36774lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000036775nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036776lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000036777lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000036778lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000036779lt_prog_compiler_static \
36780lt_cv_prog_compiler_c_o \
36781need_locks \
cristyda16f162011-02-19 23:52:17 +000036782MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000036783DSYMUTIL \
36784NMEDIT \
36785LIPO \
36786OTOOL \
36787OTOOL64 \
36788shrext_cmds \
36789export_dynamic_flag_spec \
36790whole_archive_flag_spec \
36791compiler_needs_object \
36792with_gnu_ld \
36793allow_undefined_flag \
36794no_undefined_flag \
36795hardcode_libdir_flag_spec \
cristy73bd4a52010-10-05 11:24:23 +000036796hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000036797exclude_expsyms \
36798include_expsyms \
36799file_list_spec \
36800variables_saved_for_relink \
36801libname_spec \
36802library_names_spec \
36803soname_spec \
cristy0c60a692010-11-04 01:09:47 +000036804install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000036805finish_eval \
36806old_striplib \
36807striplib \
36808compiler_lib_search_dirs \
36809predep_objects \
36810postdep_objects \
36811predeps \
36812postdeps \
36813compiler_lib_search_path \
36814LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000036815reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036816compiler_CXX \
36817lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036818lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000036819lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036820lt_prog_compiler_static_CXX \
36821lt_cv_prog_compiler_c_o_CXX \
36822export_dynamic_flag_spec_CXX \
36823whole_archive_flag_spec_CXX \
36824compiler_needs_object_CXX \
36825with_gnu_ld_CXX \
36826allow_undefined_flag_CXX \
36827no_undefined_flag_CXX \
36828hardcode_libdir_flag_spec_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036829hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036830exclude_expsyms_CXX \
36831include_expsyms_CXX \
36832file_list_spec_CXX \
36833compiler_lib_search_dirs_CXX \
36834predep_objects_CXX \
36835postdep_objects_CXX \
36836predeps_CXX \
36837postdeps_CXX \
36838compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000036839 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000036840 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000036841 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000036842 ;;
36843 *)
36844 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
36845 ;;
36846 esac
36847done
36848
36849# Double-quote double-evaled strings.
36850for var in reload_cmds \
36851old_postinstall_cmds \
36852old_postuninstall_cmds \
36853old_archive_cmds \
36854extract_expsyms_cmds \
36855old_archive_from_new_cmds \
36856old_archive_from_expsyms_cmds \
36857archive_cmds \
36858archive_expsym_cmds \
36859module_cmds \
36860module_expsym_cmds \
36861export_symbols_cmds \
36862prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000036863postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000036864postinstall_cmds \
36865postuninstall_cmds \
36866finish_cmds \
36867sys_lib_search_path_spec \
36868sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000036869reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036870old_archive_cmds_CXX \
36871old_archive_from_new_cmds_CXX \
36872old_archive_from_expsyms_cmds_CXX \
36873archive_cmds_CXX \
36874archive_expsym_cmds_CXX \
36875module_cmds_CXX \
36876module_expsym_cmds_CXX \
36877export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000036878prelink_cmds_CXX \
36879postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000036880 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000036881 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000036882 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000036883 ;;
36884 *)
36885 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
36886 ;;
36887 esac
36888done
36889
cristy73bd4a52010-10-05 11:24:23 +000036890ac_aux_dir='$ac_aux_dir'
36891xsi_shell='$xsi_shell'
36892lt_shell_append='$lt_shell_append'
36893
36894# See if we are running on zsh, and set the options which allow our
36895# commands through without removal of \ escapes INIT.
36896if test -n "\${ZSH_VERSION+set}" ; then
36897 setopt NO_GLOB_SUBST
36898fi
36899
36900
36901 PACKAGE='$PACKAGE'
36902 VERSION='$VERSION'
36903 TIMESTAMP='$TIMESTAMP'
36904 RM='$RM'
36905 ofile='$ofile'
36906
36907
36908
36909
36910
36911
cristy3ed852e2009-09-05 21:47:34 +000036912_ACEOF
36913
36914cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36915
36916# Handling of arguments.
36917for ac_config_target in $ac_config_targets
36918do
36919 case $ac_config_target in
36920 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy01ff9f32012-12-01 18:15:29 +000036921 "MagickCore/magick-baseconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-baseconfig.h" ;;
cristy305c5dd2012-09-13 00:30:13 +000036922 "common.shi") CONFIG_FILES="$CONFIG_FILES common.shi" ;;
cristy3ed852e2009-09-05 21:47:34 +000036923 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
36924 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
36925 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
36926 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
36927 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy2df32802012-09-17 01:15:28 +000036928 "config/Magick++.dox") CONFIG_FILES="$CONFIG_FILES config/Magick++.dox" ;;
cristy430a7312010-01-21 20:44:04 +000036929 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000036930 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
36931 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
36932 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
36933 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
36934 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
cristy4c08aed2011-07-01 19:47:50 +000036935 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000036936 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
cristy4c08aed2011-07-01 19:47:50 +000036937 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
36938 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
36939 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000036940 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
36941 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
cristy3ed852e2009-09-05 21:47:34 +000036942 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
cristy8d0ff762013-03-10 20:33:28 +000036943 "PerlMagick/default/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Magick.pm" ;;
cristy3e049f82013-02-13 13:26:53 +000036944 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
cristy8d0ff762013-03-10 20:33:28 +000036945 "PerlMagick/default/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Makefile.PL" ;;
cristycf0cbcc2013-02-13 23:32:58 +000036946 "PerlMagick/quantum/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/Makefile.PL" ;;
36947 "PerlMagick/quantum/quantum.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.pm" ;;
36948 "PerlMagick/quantum/quantum.xs") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.xs" ;;
36949 "PerlMagick/quantum/typemap") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/typemap" ;;
cristy3ed852e2009-09-05 21:47:34 +000036950 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
36951 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
36952 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
36953 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
36954 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
36955 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
36956 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
36957 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
36958 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
36959 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
36960 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
36961 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
cristy4c08aed2011-07-01 19:47:50 +000036962 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
36963 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
cristy73bd4a52010-10-05 11:24:23 +000036964 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
36965 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cristy3ed852e2009-09-05 21:47:34 +000036966 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
cristy2bd4b6e2012-07-22 15:29:11 +000036967 "magick.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS magick.sh.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000036968 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000036969 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000036970 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
36971 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
36972
cristy98dddb52010-11-04 00:30:15 +000036973 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000036974 esac
36975done
36976
36977
36978# If the user did not use the arguments to specify the items to instantiate,
36979# then the envvar interface is used. Set only those that are not.
36980# We use the long form for the default assignment because of an extremely
36981# bizarre bug on SunOS 4.1.3.
36982if $ac_need_defaults; then
36983 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
36984 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
36985 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
36986fi
36987
36988# Have a temporary directory for convenience. Make it in the build tree
36989# simply because there is no reason against having it here, and in addition,
36990# creating and moving files from /tmp can sometimes cause problems.
36991# Hook for its removal unless debugging.
36992# Note that there is a small window in which the directory will not be cleaned:
36993# after its creation but before its name has been assigned to `$tmp'.
36994$debug ||
36995{
cristyda16f162011-02-19 23:52:17 +000036996 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000036997 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000036998 : "${ac_tmp:=$tmp}"
36999 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000037000' 0
cristy8b350f62009-11-15 23:12:43 +000037001 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000037002}
37003# Create a (secure) tmp directory for tmp files.
37004
37005{
37006 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000037007 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000037008} ||
37009{
37010 tmp=./conf$$-$RANDOM
37011 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000037012} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037013ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000037014
37015# Set up the scripts for CONFIG_FILES section.
37016# No need to generate them if there are no CONFIG_FILES.
37017# This happens for instance with `./config.status config.h'.
37018if test -n "$CONFIG_FILES"; then
37019
37020
cristy8b350f62009-11-15 23:12:43 +000037021ac_cr=`echo X | tr X '\015'`
37022# On cygwin, bash can eat \r inside `` if the user requested igncr.
37023# But we know of no other shell where ac_cr would be empty at this
37024# point, so we can use a bashism as a fallback.
37025if test "x$ac_cr" = x; then
37026 eval ac_cr=\$\'\\r\'
37027fi
cristy3ed852e2009-09-05 21:47:34 +000037028ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
37029if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000037030 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000037031else
37032 ac_cs_awk_cr=$ac_cr
37033fi
37034
cristyda16f162011-02-19 23:52:17 +000037035echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000037036_ACEOF
37037
37038
37039{
37040 echo "cat >conf$$subs.awk <<_ACEOF" &&
37041 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
37042 echo "_ACEOF"
37043} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037044 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
37045ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000037046ac_delim='%!_!# '
37047for ac_last_try in false false false false false :; do
37048 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037049 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037050
37051 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
37052 if test $ac_delim_n = $ac_delim_num; then
37053 break
37054 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037055 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037056 else
37057 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37058 fi
37059done
37060rm -f conf$$subs.sh
37061
37062cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000037063cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037064_ACEOF
37065sed -n '
37066h
37067s/^/S["/; s/!.*/"]=/
37068p
37069g
37070s/^[^!]*!//
37071:repl
37072t repl
37073s/'"$ac_delim"'$//
37074t delim
37075:nl
37076h
cristycd4c5312009-11-22 01:19:08 +000037077s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037078t more1
37079s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
37080p
37081n
37082b repl
37083:more1
37084s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37085p
37086g
37087s/.\{148\}//
37088t nl
37089:delim
37090h
cristycd4c5312009-11-22 01:19:08 +000037091s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037092t more2
37093s/["\\]/\\&/g; s/^/"/; s/$/"/
37094p
37095b
37096:more2
37097s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37098p
37099g
37100s/.\{148\}//
37101t delim
37102' <conf$$subs.awk | sed '
37103/^[^""]/{
37104 N
37105 s/\n//
37106}
37107' >>$CONFIG_STATUS || ac_write_fail=1
37108rm -f conf$$subs.awk
37109cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37110_ACAWK
cristyda16f162011-02-19 23:52:17 +000037111cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037112 for (key in S) S_is_set[key] = 1
37113 FS = ""
37114
37115}
37116{
37117 line = $ 0
37118 nfields = split(line, field, "@")
37119 substed = 0
37120 len = length(field[1])
37121 for (i = 2; i < nfields; i++) {
37122 key = field[i]
37123 keylen = length(key)
37124 if (S_is_set[key]) {
37125 value = S[key]
37126 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
37127 len += length(value) + length(field[++i])
37128 substed = 1
37129 } else
37130 len += 1 + keylen
37131 }
37132
37133 print line
37134}
37135
37136_ACAWK
37137_ACEOF
37138cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37139if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
37140 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
37141else
37142 cat
cristyda16f162011-02-19 23:52:17 +000037143fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000037144 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037145_ACEOF
37146
cristy98dddb52010-11-04 00:30:15 +000037147# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
37148# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000037149# trailing colons and then remove the whole line if VPATH becomes empty
37150# (actually we leave an empty line to preserve line numbers).
37151if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000037152 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
37153h
37154s///
37155s/^/:/
37156s/[ ]*$/:/
37157s/:\$(srcdir):/:/g
37158s/:\${srcdir}:/:/g
37159s/:@srcdir@:/:/g
37160s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000037161s/:*$//
cristy98dddb52010-11-04 00:30:15 +000037162x
37163s/\(=[ ]*\).*/\1/
37164G
37165s/\n//
cristy3ed852e2009-09-05 21:47:34 +000037166s/^[^=]*=[ ]*$//
37167}'
37168fi
37169
37170cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37171fi # test -n "$CONFIG_FILES"
37172
37173# Set up the scripts for CONFIG_HEADERS section.
37174# No need to generate them if there are no CONFIG_HEADERS.
37175# This happens for instance with `./config.status Makefile'.
37176if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000037177cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000037178BEGIN {
37179_ACEOF
37180
37181# Transform confdefs.h into an awk script `defines.awk', embedded as
37182# here-document in config.status, that substitutes the proper values into
37183# config.h.in to produce config.h.
37184
37185# Create a delimiter string that does not exist in confdefs.h, to ease
37186# handling of long lines.
37187ac_delim='%!_!# '
37188for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000037189 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
37190 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000037191 break
37192 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037193 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037194 else
37195 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37196 fi
37197done
37198
37199# For the awk script, D is an array of macro values keyed by name,
37200# likewise P contains macro parameters if any. Preserve backslash
37201# newline sequences.
37202
37203ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
37204sed -n '
37205s/.\{148\}/&'"$ac_delim"'/g
37206t rset
37207:rset
37208s/^[ ]*#[ ]*define[ ][ ]*/ /
37209t def
37210d
37211:def
37212s/\\$//
37213t bsnl
37214s/["\\]/\\&/g
37215s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37216D["\1"]=" \3"/p
37217s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
37218d
37219:bsnl
37220s/["\\]/\\&/g
37221s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37222D["\1"]=" \3\\\\\\n"\\/p
37223t cont
37224s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
37225t cont
37226d
37227:cont
37228n
37229s/.\{148\}/&'"$ac_delim"'/g
37230t clear
37231:clear
37232s/\\$//
37233t bsnlc
37234s/["\\]/\\&/g; s/^/"/; s/$/"/p
37235d
37236:bsnlc
37237s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
37238b cont
37239' <confdefs.h | sed '
37240s/'"$ac_delim"'/"\\\
37241"/g' >>$CONFIG_STATUS || ac_write_fail=1
37242
37243cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37244 for (key in D) D_is_set[key] = 1
37245 FS = ""
37246}
37247/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
37248 line = \$ 0
37249 split(line, arg, " ")
37250 if (arg[1] == "#") {
37251 defundef = arg[2]
37252 mac1 = arg[3]
37253 } else {
37254 defundef = substr(arg[1], 2)
37255 mac1 = arg[2]
37256 }
37257 split(mac1, mac2, "(") #)
37258 macro = mac2[1]
37259 prefix = substr(line, 1, index(line, defundef) - 1)
37260 if (D_is_set[macro]) {
37261 # Preserve the white space surrounding the "#".
37262 print prefix "define", macro P[macro] D[macro]
37263 next
37264 } else {
37265 # Replace #undef with comments. This is necessary, for example,
37266 # in the case of _POSIX_SOURCE, which is predefined and required
37267 # on some systems where configure will not decide to define it.
37268 if (defundef == "undef") {
37269 print "/*", prefix defundef, macro, "*/"
37270 next
37271 }
37272 }
37273}
37274{ print }
37275_ACAWK
37276_ACEOF
37277cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000037278 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037279fi # test -n "$CONFIG_HEADERS"
37280
37281
37282eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
37283shift
37284for ac_tag
37285do
37286 case $ac_tag in
37287 :[FHLC]) ac_mode=$ac_tag; continue;;
37288 esac
37289 case $ac_mode$ac_tag in
37290 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000037291 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037292 :[FH]-) ac_tag=-:-;;
37293 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
37294 esac
37295 ac_save_IFS=$IFS
37296 IFS=:
37297 set x $ac_tag
37298 IFS=$ac_save_IFS
37299 shift
37300 ac_file=$1
37301 shift
37302
37303 case $ac_mode in
37304 :L) ac_source=$1;;
37305 :[FH])
37306 ac_file_inputs=
37307 for ac_f
37308 do
37309 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000037310 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000037311 *) # Look for the file first in the build tree, then in the source tree
37312 # (if the path is not absolute). The absolute path cannot be DOS-style,
37313 # because $ac_f cannot contain `:'.
37314 test -f "$ac_f" ||
37315 case $ac_f in
37316 [\\/$]*) false;;
37317 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
37318 esac ||
cristy98dddb52010-11-04 00:30:15 +000037319 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037320 esac
37321 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000037322 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000037323 done
37324
37325 # Let's still pretend it is `configure' which instantiates (i.e., don't
37326 # use $as_me), people would be surprised to read:
37327 # /* config.h. Generated by config.status. */
37328 configure_input='Generated from '`
37329 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
37330 `' by configure.'
37331 if test x"$ac_file" != x-; then
37332 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000037333 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000037334$as_echo "$as_me: creating $ac_file" >&6;}
37335 fi
37336 # Neutralize special characters interpreted by sed in replacement strings.
37337 case $configure_input in #(
37338 *\&* | *\|* | *\\* )
37339 ac_sed_conf_input=`$as_echo "$configure_input" |
37340 sed 's/[\\\\&|]/\\\\&/g'`;; #(
37341 *) ac_sed_conf_input=$configure_input;;
37342 esac
37343
37344 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000037345 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000037346 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000037347 esac
37348 ;;
37349 esac
37350
37351 ac_dir=`$as_dirname -- "$ac_file" ||
37352$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37353 X"$ac_file" : 'X\(//\)[^/]' \| \
37354 X"$ac_file" : 'X\(//\)$' \| \
37355 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
37356$as_echo X"$ac_file" |
37357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37358 s//\1/
37359 q
37360 }
37361 /^X\(\/\/\)[^/].*/{
37362 s//\1/
37363 q
37364 }
37365 /^X\(\/\/\)$/{
37366 s//\1/
37367 q
37368 }
37369 /^X\(\/\).*/{
37370 s//\1/
37371 q
37372 }
37373 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000037374 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000037375 ac_builddir=.
37376
37377case "$ac_dir" in
37378.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
37379*)
37380 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
37381 # A ".." for each directory in $ac_dir_suffix.
37382 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
37383 case $ac_top_builddir_sub in
37384 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
37385 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
37386 esac ;;
37387esac
37388ac_abs_top_builddir=$ac_pwd
37389ac_abs_builddir=$ac_pwd$ac_dir_suffix
37390# for backward compatibility:
37391ac_top_builddir=$ac_top_build_prefix
37392
37393case $srcdir in
37394 .) # We are building in place.
37395 ac_srcdir=.
37396 ac_top_srcdir=$ac_top_builddir_sub
37397 ac_abs_top_srcdir=$ac_pwd ;;
37398 [\\/]* | ?:[\\/]* ) # Absolute name.
37399 ac_srcdir=$srcdir$ac_dir_suffix;
37400 ac_top_srcdir=$srcdir
37401 ac_abs_top_srcdir=$srcdir ;;
37402 *) # Relative name.
37403 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
37404 ac_top_srcdir=$ac_top_build_prefix$srcdir
37405 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
37406esac
37407ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
37408
37409
37410 case $ac_mode in
37411 :F)
37412 #
37413 # CONFIG_FILE
37414 #
37415
37416 case $INSTALL in
37417 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
37418 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
37419 esac
cristy73bd4a52010-10-05 11:24:23 +000037420 ac_MKDIR_P=$MKDIR_P
37421 case $MKDIR_P in
37422 [\\/$]* | ?:[\\/]* ) ;;
37423 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
37424 esac
cristy3ed852e2009-09-05 21:47:34 +000037425_ACEOF
37426
37427cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37428# If the template does not know about datarootdir, expand it.
37429# FIXME: This hack should be removed a few years after 2.60.
37430ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000037431ac_sed_dataroot='
37432/datarootdir/ {
37433 p
37434 q
37435}
37436/@datadir@/p
37437/@docdir@/p
37438/@infodir@/p
37439/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000037440/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000037441case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
37442*datarootdir*) ac_datarootdir_seen=yes;;
37443*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000037444 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000037445$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
37446_ACEOF
37447cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37448 ac_datarootdir_hack='
37449 s&@datadir@&$datadir&g
37450 s&@docdir@&$docdir&g
37451 s&@infodir@&$infodir&g
37452 s&@localedir@&$localedir&g
37453 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000037454 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000037455esac
37456_ACEOF
37457
37458# Neutralize VPATH when `$srcdir' = `.'.
37459# Shell code in configure.ac might set extrasub.
37460# FIXME: do we really want to maintain this feature?
37461cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37462ac_sed_extra="$ac_vpsub
37463$extrasub
37464_ACEOF
37465cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37466:t
37467/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
37468s|@configure_input@|$ac_sed_conf_input|;t t
37469s&@top_builddir@&$ac_top_builddir_sub&;t t
37470s&@top_build_prefix@&$ac_top_build_prefix&;t t
37471s&@srcdir@&$ac_srcdir&;t t
37472s&@abs_srcdir@&$ac_abs_srcdir&;t t
37473s&@top_srcdir@&$ac_top_srcdir&;t t
37474s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
37475s&@builddir@&$ac_builddir&;t t
37476s&@abs_builddir@&$ac_abs_builddir&;t t
37477s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
37478s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000037479s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000037480$ac_datarootdir_hack
37481"
cristyda16f162011-02-19 23:52:17 +000037482eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
37483 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037484
37485test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000037486 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
37487 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
37488 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000037489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037490which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000037491$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037492which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000037493
cristyda16f162011-02-19 23:52:17 +000037494 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000037495 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000037496 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
37497 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000037498 esac \
cristy98dddb52010-11-04 00:30:15 +000037499 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037500 ;;
37501 :H)
37502 #
37503 # CONFIG_HEADER
37504 #
37505 if test x"$ac_file" != x-; then
37506 {
37507 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037508 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
37509 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000037510 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037511 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000037512 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000037513$as_echo "$as_me: $ac_file is unchanged" >&6;}
37514 else
37515 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000037516 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000037517 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037518 fi
37519 else
37520 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037521 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000037522 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037523 fi
cristy73bd4a52010-10-05 11:24:23 +000037524# Compute "$ac_file"'s index in $config_headers.
37525_am_arg="$ac_file"
37526_am_stamp_count=1
37527for _am_header in $config_headers :; do
37528 case $_am_header in
37529 $_am_arg | $_am_arg:* )
37530 break ;;
37531 * )
37532 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
37533 esac
37534done
37535echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
37536$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37537 X"$_am_arg" : 'X\(//\)[^/]' \| \
37538 X"$_am_arg" : 'X\(//\)$' \| \
37539 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
37540$as_echo X"$_am_arg" |
37541 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37542 s//\1/
37543 q
37544 }
37545 /^X\(\/\/\)[^/].*/{
37546 s//\1/
37547 q
37548 }
37549 /^X\(\/\/\)$/{
37550 s//\1/
37551 q
37552 }
37553 /^X\(\/\).*/{
37554 s//\1/
37555 q
37556 }
37557 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000037558 ;;
37559
cristy8b350f62009-11-15 23:12:43 +000037560 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000037561$as_echo "$as_me: executing $ac_file commands" >&6;}
37562 ;;
37563 esac
37564
37565
37566 case $ac_file$ac_mode in
cristy01ff9f32012-12-01 18:15:29 +000037567 "MagickCore/magick-baseconfig.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-baseconfig.h`
cristy73bd4a52010-10-05 11:24:23 +000037568ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
37569ac_prefix_conf_PKG=`echo MagickCore`
37570ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
37571ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
37572ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
37573if test ".$ac_prefix_conf_INP" = "."; then
37574 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
37575 case "$ac_file" in
37576 *.h) ac_prefix_conf_INP=$ac_file ;;
37577 *)
37578 esac
37579 test ".$ac_prefix_conf_INP" != "." && break
37580 done
37581fi
37582if test ".$ac_prefix_conf_INP" = "."; then
37583 case "$ac_prefix_conf_OUT" in
37584 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
37585 ;;
37586 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
37587 ;;
37588 *) ac_prefix_conf_INP=config.h
37589 ;;
37590 esac
37591fi
37592if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000037593 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000037594else
37595 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
37596 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
37597 fi fi
37598 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
37599$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
37600 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000037601 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
37602 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
37603 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
37604 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
37605 $as_echo "#endif/" >> conftest.prefix
37606 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
37607 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
37608 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000037609 # now executing _script on _DEF input to create _OUT output file
37610 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
37611 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
37612 echo ' ' >>$tmp/pconfig.h
37613 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
37614
37615 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
37616 echo ' ' >>$tmp/pconfig.h
37617 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
37618 echo "#endif" >>$tmp/pconfig.h
37619 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
37620 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
37621$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
37622 else
37623 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
37624$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37625 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
37626 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
37627 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
37628$as_echo X"$ac_prefix_conf_OUT" |
37629 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37630 s//\1/
37631 q
37632 }
37633 /^X\(\/\/\)[^/].*/{
37634 s//\1/
37635 q
37636 }
37637 /^X\(\/\/\)$/{
37638 s//\1/
37639 q
37640 }
37641 /^X\(\/\).*/{
37642 s//\1/
37643 q
37644 }
37645 s/.*/./; q'`
37646 as_dir="$ac_dir"; as_fn_mkdir_p
37647 rm -f "$ac_prefix_conf_OUT"
37648 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
37649 fi
37650 cp conftest.prefix _configs.sed
37651 else
cristy98dddb52010-11-04 00:30:15 +000037652 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 +000037653 fi
37654 rm -f conftest.*
37655fi
37656 ;;
37657 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
cristy58d34aa2013-01-24 15:11:54 +000037658 # Older Autoconf quotes --file arguments for eval, but not when files
cristy73bd4a52010-10-05 11:24:23 +000037659 # are listed without --file. Let's play safe and only enable the eval
37660 # if we detect the quoting.
37661 case $CONFIG_FILES in
37662 *\'*) eval set x "$CONFIG_FILES" ;;
37663 *) set x $CONFIG_FILES ;;
37664 esac
37665 shift
37666 for mf
37667 do
37668 # Strip MF so we end up with the name of the file.
37669 mf=`echo "$mf" | sed -e 's/:.*$//'`
37670 # Check whether this is an Automake generated Makefile or not.
cristyc0890a62012-07-19 00:18:20 +000037671 # We used to match only the files named 'Makefile.in', but
cristy73bd4a52010-10-05 11:24:23 +000037672 # some people rename them; so instead we look at the file content.
37673 # Grep'ing the first line is not enough: some people post-process
37674 # each Makefile.in and add a new line on top of each file to say so.
37675 # Grep'ing the whole file is not good either: AIX grep has a line
37676 # limit of 2048, but all sed's we know have understand at least 4000.
37677 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
37678 dirpart=`$as_dirname -- "$mf" ||
37679$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37680 X"$mf" : 'X\(//\)[^/]' \| \
37681 X"$mf" : 'X\(//\)$' \| \
37682 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
37683$as_echo X"$mf" |
37684 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37685 s//\1/
37686 q
37687 }
37688 /^X\(\/\/\)[^/].*/{
37689 s//\1/
37690 q
37691 }
37692 /^X\(\/\/\)$/{
37693 s//\1/
37694 q
37695 }
37696 /^X\(\/\).*/{
37697 s//\1/
37698 q
37699 }
37700 s/.*/./; q'`
37701 else
37702 continue
37703 fi
37704 # Extract the definition of DEPDIR, am__include, and am__quote
cristyc0890a62012-07-19 00:18:20 +000037705 # from the Makefile without running 'make'.
cristy73bd4a52010-10-05 11:24:23 +000037706 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
37707 test -z "$DEPDIR" && continue
37708 am__include=`sed -n 's/^am__include = //p' < "$mf"`
cristybced8142013-05-31 01:23:57 +000037709 test -z "$am__include" && continue
cristy73bd4a52010-10-05 11:24:23 +000037710 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
cristy73bd4a52010-10-05 11:24:23 +000037711 # Find all dependency output files, they are included files with
37712 # $(DEPDIR) in their names. We invoke sed twice because it is the
37713 # simplest approach to changing $(DEPDIR) to its actual value in the
37714 # expansion.
37715 for file in `sed -n "
37716 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
cristyc0890a62012-07-19 00:18:20 +000037717 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
cristy73bd4a52010-10-05 11:24:23 +000037718 # Make sure the directory exists.
37719 test -f "$dirpart/$file" && continue
37720 fdir=`$as_dirname -- "$file" ||
37721$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37722 X"$file" : 'X\(//\)[^/]' \| \
37723 X"$file" : 'X\(//\)$' \| \
37724 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
37725$as_echo X"$file" |
37726 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37727 s//\1/
37728 q
37729 }
37730 /^X\(\/\/\)[^/].*/{
37731 s//\1/
37732 q
37733 }
37734 /^X\(\/\/\)$/{
37735 s//\1/
37736 q
37737 }
37738 /^X\(\/\).*/{
37739 s//\1/
37740 q
37741 }
37742 s/.*/./; q'`
37743 as_dir=$dirpart/$fdir; as_fn_mkdir_p
37744 # echo "creating $dirpart/$file"
37745 echo '# dummy' > "$dirpart/$file"
37746 done
37747 done
37748}
37749 ;;
37750 "libtool":C)
37751
37752 # See if we are running on zsh, and set the options which allow our
37753 # commands through without removal of \ escapes.
37754 if test -n "${ZSH_VERSION+set}" ; then
37755 setopt NO_GLOB_SUBST
37756 fi
37757
37758 cfgfile="${ofile}T"
37759 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
37760 $RM "$cfgfile"
37761
37762 cat <<_LT_EOF >> "$cfgfile"
37763#! $SHELL
37764
37765# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
37766# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
37767# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
37768# NOTE: Changes made to this file will be lost: look at ltmain.sh.
37769#
37770# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy99bd5232011-12-07 14:38:20 +000037771# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
37772# Foundation, Inc.
cristy73bd4a52010-10-05 11:24:23 +000037773# Written by Gordon Matzigkeit, 1996
37774#
37775# This file is part of GNU Libtool.
37776#
37777# GNU Libtool is free software; you can redistribute it and/or
37778# modify it under the terms of the GNU General Public License as
37779# published by the Free Software Foundation; either version 2 of
37780# the License, or (at your option) any later version.
37781#
37782# As a special exception to the GNU General Public License,
37783# if you distribute this file as part of a program or library that
37784# is built using GNU Libtool, you may include this file under the
37785# same distribution terms that you use for the rest of that program.
37786#
37787# GNU Libtool is distributed in the hope that it will be useful,
37788# but WITHOUT ANY WARRANTY; without even the implied warranty of
37789# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
37790# GNU General Public License for more details.
37791#
37792# You should have received a copy of the GNU General Public License
37793# along with GNU Libtool; see the file COPYING. If not, a copy
37794# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
37795# obtained by writing to the Free Software Foundation, Inc.,
37796# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
37797
37798
37799# The names of the tagged configurations supported by this script.
37800available_tags="CXX "
37801
37802# ### BEGIN LIBTOOL CONFIG
37803
37804# A sed program that does not truncate output.
37805SED=$lt_SED
37806
37807# Sed that helps us avoid accidentally triggering echo(1) options like -n.
37808Xsed="\$SED -e 1s/^X//"
37809
37810# A grep program that handles long lines.
37811GREP=$lt_GREP
37812
37813# An ERE matcher.
37814EGREP=$lt_EGREP
37815
37816# A literal string matcher.
37817FGREP=$lt_FGREP
37818
cristy0c60a692010-11-04 01:09:47 +000037819# Shell to use when invoking shell scripts.
37820SHELL=$lt_SHELL
37821
37822# An echo program that protects backslashes.
37823ECHO=$lt_ECHO
37824
cristy73bd4a52010-10-05 11:24:23 +000037825# Which release of libtool.m4 was used?
37826macro_version=$macro_version
37827macro_revision=$macro_revision
37828
37829# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000037830AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000037831
37832# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000037833DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000037834
37835# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000037836OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000037837
37838# Whether or not to build shared libraries.
37839build_libtool_libs=$enable_shared
37840
37841# Whether or not to build static libraries.
37842build_old_libs=$enable_static
37843
37844# What type of objects to build.
37845pic_mode=$pic_mode
37846
37847# Whether or not to optimize for fast installation.
37848fast_install=$enable_fast_install
37849
cristy99bd5232011-12-07 14:38:20 +000037850# The PATH separator for the build system.
37851PATH_SEPARATOR=$lt_PATH_SEPARATOR
37852
cristy73bd4a52010-10-05 11:24:23 +000037853# The host system.
37854host_alias=$host_alias
37855host=$host
37856host_os=$host_os
37857
37858# The build system.
37859build_alias=$build_alias
37860build=$build
37861build_os=$build_os
37862
37863# A BSD- or MS-compatible name lister.
37864NM=$lt_NM
37865
37866# Whether we need soft or hard links.
37867LN_S=$lt_LN_S
37868
37869# What is the maximum length of a command?
37870max_cmd_len=$max_cmd_len
37871
37872# Object file suffix (normally "o").
37873objext=$ac_objext
37874
37875# Executable file suffix (normally "").
37876exeext=$exeext
37877
37878# whether the shell understands "unset".
37879lt_unset=$lt_unset
37880
37881# turn spaces into newlines.
37882SP2NL=$lt_lt_SP2NL
37883
37884# turn newlines into spaces.
37885NL2SP=$lt_lt_NL2SP
37886
cristyda16f162011-02-19 23:52:17 +000037887# convert \$build file names to \$host format.
37888to_host_file_cmd=$lt_cv_to_host_file_cmd
37889
37890# convert \$build files to toolchain format.
37891to_tool_file_cmd=$lt_cv_to_tool_file_cmd
37892
cristy73bd4a52010-10-05 11:24:23 +000037893# Method to check whether dependent libraries are shared objects.
37894deplibs_check_method=$lt_deplibs_check_method
37895
cristyda16f162011-02-19 23:52:17 +000037896# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000037897file_magic_cmd=$lt_file_magic_cmd
37898
cristyda16f162011-02-19 23:52:17 +000037899# How to find potential files when deplibs_check_method = "file_magic".
37900file_magic_glob=$lt_file_magic_glob
37901
37902# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
37903want_nocaseglob=$lt_want_nocaseglob
37904
37905# Command to associate shared and link libraries.
37906sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
37907
cristy73bd4a52010-10-05 11:24:23 +000037908# The archiver.
37909AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000037910
37911# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000037912AR_FLAGS=$lt_AR_FLAGS
37913
cristyda16f162011-02-19 23:52:17 +000037914# How to feed a file listing to the archiver.
37915archiver_list_spec=$lt_archiver_list_spec
37916
cristy73bd4a52010-10-05 11:24:23 +000037917# A symbol stripping program.
37918STRIP=$lt_STRIP
37919
37920# Commands used to install an old-style archive.
37921RANLIB=$lt_RANLIB
37922old_postinstall_cmds=$lt_old_postinstall_cmds
37923old_postuninstall_cmds=$lt_old_postuninstall_cmds
37924
cristy0c60a692010-11-04 01:09:47 +000037925# Whether to use a lock for old archive extraction.
37926lock_old_archive_extraction=$lock_old_archive_extraction
37927
cristy73bd4a52010-10-05 11:24:23 +000037928# A C compiler.
37929LTCC=$lt_CC
37930
37931# LTCC compiler flags.
37932LTCFLAGS=$lt_CFLAGS
37933
37934# Take the output of nm and produce a listing of raw symbols and C names.
37935global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
37936
37937# Transform the output of nm in a proper C declaration.
37938global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
37939
37940# Transform the output of nm in a C name address pair.
37941global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
37942
37943# Transform the output of nm in a C name address pair when lib prefix is needed.
37944global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
37945
cristyda16f162011-02-19 23:52:17 +000037946# Specify filename containing input files for \$NM.
37947nm_file_list_spec=$lt_nm_file_list_spec
37948
37949# The root where to search for dependent libraries,and in which our libraries should be installed.
37950lt_sysroot=$lt_sysroot
37951
cristy73bd4a52010-10-05 11:24:23 +000037952# The name of the directory that contains temporary libtool files.
37953objdir=$objdir
37954
cristy73bd4a52010-10-05 11:24:23 +000037955# Used to examine libraries when file_magic_cmd begins with "file".
37956MAGIC_CMD=$MAGIC_CMD
37957
37958# Must we lock files when doing compilation?
37959need_locks=$lt_need_locks
37960
cristyda16f162011-02-19 23:52:17 +000037961# Manifest tool.
37962MANIFEST_TOOL=$lt_MANIFEST_TOOL
37963
cristy73bd4a52010-10-05 11:24:23 +000037964# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
37965DSYMUTIL=$lt_DSYMUTIL
37966
37967# Tool to change global to local symbols on Mac OS X.
37968NMEDIT=$lt_NMEDIT
37969
37970# Tool to manipulate fat objects and archives on Mac OS X.
37971LIPO=$lt_LIPO
37972
37973# ldd/readelf like tool for Mach-O binaries on Mac OS X.
37974OTOOL=$lt_OTOOL
37975
37976# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
37977OTOOL64=$lt_OTOOL64
37978
37979# Old archive suffix (normally "a").
37980libext=$libext
37981
37982# Shared library suffix (normally ".so").
37983shrext_cmds=$lt_shrext_cmds
37984
37985# The commands to extract the exported symbol list from a shared archive.
37986extract_expsyms_cmds=$lt_extract_expsyms_cmds
37987
37988# Variables whose values should be saved in libtool wrapper scripts and
37989# restored at link time.
37990variables_saved_for_relink=$lt_variables_saved_for_relink
37991
37992# Do we need the "lib" prefix for modules?
37993need_lib_prefix=$need_lib_prefix
37994
37995# Do we need a version for libraries?
37996need_version=$need_version
37997
37998# Library versioning type.
37999version_type=$version_type
38000
38001# Shared library runtime path variable.
38002runpath_var=$runpath_var
38003
38004# Shared library path variable.
38005shlibpath_var=$shlibpath_var
38006
38007# Is shlibpath searched before the hard-coded library search path?
38008shlibpath_overrides_runpath=$shlibpath_overrides_runpath
38009
38010# Format of library name prefix.
38011libname_spec=$lt_libname_spec
38012
38013# List of archive names. First name is the real one, the rest are links.
38014# The last name is the one that the linker finds with -lNAME
38015library_names_spec=$lt_library_names_spec
38016
38017# The coded name of the library, if different from the real name.
38018soname_spec=$lt_soname_spec
38019
cristy0c60a692010-11-04 01:09:47 +000038020# Permission mode override for installation of shared libraries.
38021install_override_mode=$lt_install_override_mode
38022
cristy73bd4a52010-10-05 11:24:23 +000038023# Command to use after installation of a shared archive.
38024postinstall_cmds=$lt_postinstall_cmds
38025
38026# Command to use after uninstallation of a shared archive.
38027postuninstall_cmds=$lt_postuninstall_cmds
38028
38029# Commands used to finish a libtool library installation in a directory.
38030finish_cmds=$lt_finish_cmds
38031
38032# As "finish_cmds", except a single script fragment to be evaled but
38033# not shown.
38034finish_eval=$lt_finish_eval
38035
38036# Whether we should hardcode library paths into libraries.
38037hardcode_into_libs=$hardcode_into_libs
38038
38039# Compile-time system search path for libraries.
38040sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
38041
38042# Run-time system search path for libraries.
38043sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
38044
38045# Whether dlopen is supported.
38046dlopen_support=$enable_dlopen
38047
38048# Whether dlopen of programs is supported.
38049dlopen_self=$enable_dlopen_self
38050
38051# Whether dlopen of statically linked programs is supported.
38052dlopen_self_static=$enable_dlopen_self_static
38053
38054# Commands to strip libraries.
38055old_striplib=$lt_old_striplib
38056striplib=$lt_striplib
38057
38058
38059# The linker used to build libraries.
38060LD=$lt_LD
38061
cristy0c60a692010-11-04 01:09:47 +000038062# How to create reloadable object files.
38063reload_flag=$lt_reload_flag
38064reload_cmds=$lt_reload_cmds
38065
cristy73bd4a52010-10-05 11:24:23 +000038066# Commands used to build an old-style archive.
38067old_archive_cmds=$lt_old_archive_cmds
38068
38069# A language specific compiler.
38070CC=$lt_compiler
38071
38072# Is the compiler the GNU compiler?
38073with_gcc=$GCC
38074
38075# Compiler flag to turn off builtin functions.
38076no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
38077
cristy73bd4a52010-10-05 11:24:23 +000038078# Additional compiler flags for building library objects.
38079pic_flag=$lt_lt_prog_compiler_pic
38080
cristyda16f162011-02-19 23:52:17 +000038081# How to pass a linker flag through the compiler.
38082wl=$lt_lt_prog_compiler_wl
38083
cristy73bd4a52010-10-05 11:24:23 +000038084# Compiler flag to prevent dynamic linking.
38085link_static_flag=$lt_lt_prog_compiler_static
38086
38087# Does compiler simultaneously support -c and -o options?
38088compiler_c_o=$lt_lt_cv_prog_compiler_c_o
38089
38090# Whether or not to add -lc for building shared libraries.
38091build_libtool_need_lc=$archive_cmds_need_lc
38092
38093# Whether or not to disallow shared libs when runtime libs are static.
38094allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
38095
38096# Compiler flag to allow reflexive dlopens.
38097export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
38098
38099# Compiler flag to generate shared objects directly from archives.
38100whole_archive_flag_spec=$lt_whole_archive_flag_spec
38101
38102# Whether the compiler copes with passing no objects directly.
38103compiler_needs_object=$lt_compiler_needs_object
38104
38105# Create an old-style archive from a shared archive.
38106old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
38107
38108# Create a temporary old-style archive to link instead of a shared archive.
38109old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
38110
38111# Commands used to build a shared archive.
38112archive_cmds=$lt_archive_cmds
38113archive_expsym_cmds=$lt_archive_expsym_cmds
38114
38115# Commands used to build a loadable module if different from building
38116# a shared archive.
38117module_cmds=$lt_module_cmds
38118module_expsym_cmds=$lt_module_expsym_cmds
38119
38120# Whether we are building with GNU ld or not.
38121with_gnu_ld=$lt_with_gnu_ld
38122
38123# Flag that allows shared libraries with undefined symbols to be built.
38124allow_undefined_flag=$lt_allow_undefined_flag
38125
38126# Flag that enforces no undefined symbols.
38127no_undefined_flag=$lt_no_undefined_flag
38128
38129# Flag to hardcode \$libdir into a binary during linking.
38130# This must work even if \$libdir does not exist
38131hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
38132
cristy73bd4a52010-10-05 11:24:23 +000038133# Whether we need a single "-rpath" flag with a separated argument.
38134hardcode_libdir_separator=$lt_hardcode_libdir_separator
38135
38136# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38137# DIR into the resulting binary.
38138hardcode_direct=$hardcode_direct
38139
38140# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38141# DIR into the resulting binary and the resulting library dependency is
38142# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38143# library is relocated.
38144hardcode_direct_absolute=$hardcode_direct_absolute
38145
38146# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38147# into the resulting binary.
38148hardcode_minus_L=$hardcode_minus_L
38149
38150# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38151# into the resulting binary.
38152hardcode_shlibpath_var=$hardcode_shlibpath_var
38153
38154# Set to "yes" if building a shared library automatically hardcodes DIR
38155# into the library and all subsequent libraries and executables linked
38156# against it.
38157hardcode_automatic=$hardcode_automatic
38158
38159# Set to yes if linker adds runtime paths of dependent libraries
38160# to runtime path list.
38161inherit_rpath=$inherit_rpath
38162
38163# Whether libtool must link a program against all its dependency libraries.
38164link_all_deplibs=$link_all_deplibs
38165
cristy73bd4a52010-10-05 11:24:23 +000038166# Set to "yes" if exported symbols are required.
38167always_export_symbols=$always_export_symbols
38168
38169# The commands to list exported symbols.
38170export_symbols_cmds=$lt_export_symbols_cmds
38171
38172# Symbols that should not be listed in the preloaded symbols.
38173exclude_expsyms=$lt_exclude_expsyms
38174
38175# Symbols that must always be exported.
38176include_expsyms=$lt_include_expsyms
38177
38178# Commands necessary for linking programs (against libraries) with templates.
38179prelink_cmds=$lt_prelink_cmds
38180
cristyda16f162011-02-19 23:52:17 +000038181# Commands necessary for finishing linking programs.
38182postlink_cmds=$lt_postlink_cmds
38183
cristy73bd4a52010-10-05 11:24:23 +000038184# Specify filename containing input files.
38185file_list_spec=$lt_file_list_spec
38186
38187# How to hardcode a shared library path into an executable.
38188hardcode_action=$hardcode_action
38189
38190# The directories searched by this compiler when creating a shared library.
38191compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
38192
38193# Dependencies to place before and after the objects being linked to
38194# create a shared library.
38195predep_objects=$lt_predep_objects
38196postdep_objects=$lt_postdep_objects
38197predeps=$lt_predeps
38198postdeps=$lt_postdeps
38199
38200# The library search path used internally by the compiler when linking
38201# a shared library.
38202compiler_lib_search_path=$lt_compiler_lib_search_path
38203
38204# ### END LIBTOOL CONFIG
38205
38206_LT_EOF
38207
38208 case $host_os in
38209 aix3*)
38210 cat <<\_LT_EOF >> "$cfgfile"
38211# AIX sometimes has problems with the GCC collect2 program. For some
38212# reason, if we set the COLLECT_NAMES environment variable, the problems
38213# vanish in a puff of smoke.
38214if test "X${COLLECT_NAMES+set}" != Xset; then
38215 COLLECT_NAMES=
38216 export COLLECT_NAMES
38217fi
38218_LT_EOF
38219 ;;
38220 esac
38221
38222
38223ltmain="$ac_aux_dir/ltmain.sh"
38224
38225
38226 # We use sed instead of cat because bash on DJGPP gets confused if
38227 # if finds mixed CR/LF and LF-only lines. Since sed operates in
38228 # text mode, it properly converts lines to CR/LF. This bash problem
38229 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000038230 sed '$q' "$ltmain" >> "$cfgfile" \
38231 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000038232
cristyda16f162011-02-19 23:52:17 +000038233 if test x"$xsi_shell" = xyes; then
38234 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
38235func_dirname ()\
38236{\
38237\ case ${1} in\
38238\ */*) func_dirname_result="${1%/*}${2}" ;;\
38239\ * ) func_dirname_result="${3}" ;;\
38240\ esac\
38241} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
38242 && mv -f "$cfgfile.tmp" "$cfgfile" \
38243 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38244test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038245
38246
cristyda16f162011-02-19 23:52:17 +000038247 sed -e '/^func_basename ()$/,/^} # func_basename /c\
38248func_basename ()\
38249{\
38250\ func_basename_result="${1##*/}"\
38251} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
38252 && mv -f "$cfgfile.tmp" "$cfgfile" \
38253 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38254test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038255
38256
cristyda16f162011-02-19 23:52:17 +000038257 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
38258func_dirname_and_basename ()\
38259{\
38260\ case ${1} in\
38261\ */*) func_dirname_result="${1%/*}${2}" ;;\
38262\ * ) func_dirname_result="${3}" ;;\
38263\ esac\
38264\ func_basename_result="${1##*/}"\
38265} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
38266 && mv -f "$cfgfile.tmp" "$cfgfile" \
38267 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38268test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038269
cristyda16f162011-02-19 23:52:17 +000038270
38271 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
38272func_stripname ()\
38273{\
38274\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
38275\ # positional parameters, so assign one to ordinary parameter first.\
38276\ func_stripname_result=${3}\
38277\ func_stripname_result=${func_stripname_result#"${1}"}\
38278\ func_stripname_result=${func_stripname_result%"${2}"}\
38279} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
38280 && mv -f "$cfgfile.tmp" "$cfgfile" \
38281 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38282test 0 -eq $? || _lt_function_replace_fail=:
38283
38284
38285 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
38286func_split_long_opt ()\
38287{\
38288\ func_split_long_opt_name=${1%%=*}\
38289\ func_split_long_opt_arg=${1#*=}\
38290} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
38291 && mv -f "$cfgfile.tmp" "$cfgfile" \
38292 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38293test 0 -eq $? || _lt_function_replace_fail=:
38294
38295
38296 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
38297func_split_short_opt ()\
38298{\
38299\ func_split_short_opt_arg=${1#??}\
38300\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
38301} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
38302 && mv -f "$cfgfile.tmp" "$cfgfile" \
38303 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38304test 0 -eq $? || _lt_function_replace_fail=:
38305
38306
38307 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
38308func_lo2o ()\
38309{\
38310\ case ${1} in\
38311\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
38312\ *) func_lo2o_result=${1} ;;\
38313\ esac\
38314} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
38315 && mv -f "$cfgfile.tmp" "$cfgfile" \
38316 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38317test 0 -eq $? || _lt_function_replace_fail=:
38318
38319
38320 sed -e '/^func_xform ()$/,/^} # func_xform /c\
38321func_xform ()\
38322{\
38323 func_xform_result=${1%.*}.lo\
38324} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
38325 && mv -f "$cfgfile.tmp" "$cfgfile" \
38326 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38327test 0 -eq $? || _lt_function_replace_fail=:
38328
38329
38330 sed -e '/^func_arith ()$/,/^} # func_arith /c\
38331func_arith ()\
38332{\
38333 func_arith_result=$(( $* ))\
38334} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
38335 && mv -f "$cfgfile.tmp" "$cfgfile" \
38336 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38337test 0 -eq $? || _lt_function_replace_fail=:
38338
38339
38340 sed -e '/^func_len ()$/,/^} # func_len /c\
38341func_len ()\
38342{\
38343 func_len_result=${#1}\
38344} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
38345 && mv -f "$cfgfile.tmp" "$cfgfile" \
38346 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38347test 0 -eq $? || _lt_function_replace_fail=:
38348
38349fi
38350
38351if test x"$lt_shell_append" = xyes; then
38352 sed -e '/^func_append ()$/,/^} # func_append /c\
38353func_append ()\
38354{\
38355 eval "${1}+=\\${2}"\
38356} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
38357 && mv -f "$cfgfile.tmp" "$cfgfile" \
38358 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38359test 0 -eq $? || _lt_function_replace_fail=:
38360
38361
38362 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
38363func_append_quoted ()\
38364{\
38365\ func_quote_for_eval "${2}"\
38366\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
38367} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
38368 && mv -f "$cfgfile.tmp" "$cfgfile" \
38369 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38370test 0 -eq $? || _lt_function_replace_fail=:
38371
38372
38373 # Save a `func_append' function call where possible by direct use of '+='
38374 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
38375 && mv -f "$cfgfile.tmp" "$cfgfile" \
38376 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38377 test 0 -eq $? || _lt_function_replace_fail=:
38378else
38379 # Save a `func_append' function call even when '+=' is not available
38380 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
38381 && mv -f "$cfgfile.tmp" "$cfgfile" \
38382 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38383 test 0 -eq $? || _lt_function_replace_fail=:
38384fi
38385
38386if test x"$_lt_function_replace_fail" = x":"; then
38387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
38388$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
38389fi
38390
38391
38392 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000038393 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
38394 chmod +x "$ofile"
38395
38396
38397 cat <<_LT_EOF >> "$ofile"
38398
38399# ### BEGIN LIBTOOL TAG CONFIG: CXX
38400
38401# The linker used to build libraries.
38402LD=$lt_LD_CXX
38403
cristy0c60a692010-11-04 01:09:47 +000038404# How to create reloadable object files.
38405reload_flag=$lt_reload_flag_CXX
38406reload_cmds=$lt_reload_cmds_CXX
38407
cristy73bd4a52010-10-05 11:24:23 +000038408# Commands used to build an old-style archive.
38409old_archive_cmds=$lt_old_archive_cmds_CXX
38410
38411# A language specific compiler.
38412CC=$lt_compiler_CXX
38413
38414# Is the compiler the GNU compiler?
38415with_gcc=$GCC_CXX
38416
38417# Compiler flag to turn off builtin functions.
38418no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
38419
cristy73bd4a52010-10-05 11:24:23 +000038420# Additional compiler flags for building library objects.
38421pic_flag=$lt_lt_prog_compiler_pic_CXX
38422
cristyda16f162011-02-19 23:52:17 +000038423# How to pass a linker flag through the compiler.
38424wl=$lt_lt_prog_compiler_wl_CXX
38425
cristy73bd4a52010-10-05 11:24:23 +000038426# Compiler flag to prevent dynamic linking.
38427link_static_flag=$lt_lt_prog_compiler_static_CXX
38428
38429# Does compiler simultaneously support -c and -o options?
38430compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
38431
38432# Whether or not to add -lc for building shared libraries.
38433build_libtool_need_lc=$archive_cmds_need_lc_CXX
38434
38435# Whether or not to disallow shared libs when runtime libs are static.
38436allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
38437
38438# Compiler flag to allow reflexive dlopens.
38439export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
38440
38441# Compiler flag to generate shared objects directly from archives.
38442whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
38443
38444# Whether the compiler copes with passing no objects directly.
38445compiler_needs_object=$lt_compiler_needs_object_CXX
38446
38447# Create an old-style archive from a shared archive.
38448old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
38449
38450# Create a temporary old-style archive to link instead of a shared archive.
38451old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
38452
38453# Commands used to build a shared archive.
38454archive_cmds=$lt_archive_cmds_CXX
38455archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
38456
38457# Commands used to build a loadable module if different from building
38458# a shared archive.
38459module_cmds=$lt_module_cmds_CXX
38460module_expsym_cmds=$lt_module_expsym_cmds_CXX
38461
38462# Whether we are building with GNU ld or not.
38463with_gnu_ld=$lt_with_gnu_ld_CXX
38464
38465# Flag that allows shared libraries with undefined symbols to be built.
38466allow_undefined_flag=$lt_allow_undefined_flag_CXX
38467
38468# Flag that enforces no undefined symbols.
38469no_undefined_flag=$lt_no_undefined_flag_CXX
38470
38471# Flag to hardcode \$libdir into a binary during linking.
38472# This must work even if \$libdir does not exist
38473hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
38474
cristy73bd4a52010-10-05 11:24:23 +000038475# Whether we need a single "-rpath" flag with a separated argument.
38476hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
38477
38478# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38479# DIR into the resulting binary.
38480hardcode_direct=$hardcode_direct_CXX
38481
38482# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38483# DIR into the resulting binary and the resulting library dependency is
38484# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38485# library is relocated.
38486hardcode_direct_absolute=$hardcode_direct_absolute_CXX
38487
38488# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38489# into the resulting binary.
38490hardcode_minus_L=$hardcode_minus_L_CXX
38491
38492# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38493# into the resulting binary.
38494hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
38495
38496# Set to "yes" if building a shared library automatically hardcodes DIR
38497# into the library and all subsequent libraries and executables linked
38498# against it.
38499hardcode_automatic=$hardcode_automatic_CXX
38500
38501# Set to yes if linker adds runtime paths of dependent libraries
38502# to runtime path list.
38503inherit_rpath=$inherit_rpath_CXX
38504
38505# Whether libtool must link a program against all its dependency libraries.
38506link_all_deplibs=$link_all_deplibs_CXX
38507
cristy73bd4a52010-10-05 11:24:23 +000038508# Set to "yes" if exported symbols are required.
38509always_export_symbols=$always_export_symbols_CXX
38510
38511# The commands to list exported symbols.
38512export_symbols_cmds=$lt_export_symbols_cmds_CXX
38513
38514# Symbols that should not be listed in the preloaded symbols.
38515exclude_expsyms=$lt_exclude_expsyms_CXX
38516
38517# Symbols that must always be exported.
38518include_expsyms=$lt_include_expsyms_CXX
38519
38520# Commands necessary for linking programs (against libraries) with templates.
38521prelink_cmds=$lt_prelink_cmds_CXX
38522
cristyda16f162011-02-19 23:52:17 +000038523# Commands necessary for finishing linking programs.
38524postlink_cmds=$lt_postlink_cmds_CXX
38525
cristy73bd4a52010-10-05 11:24:23 +000038526# Specify filename containing input files.
38527file_list_spec=$lt_file_list_spec_CXX
38528
38529# How to hardcode a shared library path into an executable.
38530hardcode_action=$hardcode_action_CXX
38531
38532# The directories searched by this compiler when creating a shared library.
38533compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
38534
38535# Dependencies to place before and after the objects being linked to
38536# create a shared library.
38537predep_objects=$lt_predep_objects_CXX
38538postdep_objects=$lt_postdep_objects_CXX
38539predeps=$lt_predeps_CXX
38540postdeps=$lt_postdeps_CXX
38541
38542# The library search path used internally by the compiler when linking
38543# a shared library.
38544compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
38545
38546# ### END LIBTOOL TAG CONFIG: CXX
38547_LT_EOF
38548
38549 ;;
cristy2bd4b6e2012-07-22 15:29:11 +000038550 "magick.sh.in":C) chmod +x magick.sh ;;
cristy4c08aed2011-07-01 19:47:50 +000038551 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
cristy4c08aed2011-07-01 19:47:50 +000038552 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
cristy3ed852e2009-09-05 21:47:34 +000038553 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
38554 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
38555
38556 esac
38557done # for ac_tag
38558
38559
cristy8b350f62009-11-15 23:12:43 +000038560as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000038561_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000038562ac_clean_files=$ac_clean_files_save
38563
38564test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000038565 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038566
38567
38568# configure is writing to config.log, and then calls config.status.
38569# config.status does its own redirection, appending to config.log.
38570# Unfortunately, on DOS this fails, as config.log is still kept open
38571# by configure, so config.status won't be able to write to it; its
38572# output is simply discarded. So we exec the FD to /dev/null,
38573# effectively closing config.log, so it can be properly (re)opened and
38574# appended to by config.status. When coming back to configure, we
38575# need to make the FD available again.
38576if test "$no_create" != yes; then
38577 ac_cs_success=:
38578 ac_config_status_args=
38579 test "$silent" = yes &&
38580 ac_config_status_args="$ac_config_status_args --quiet"
38581 exec 5>/dev/null
38582 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
38583 exec 5>>config.log
38584 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
38585 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000038586 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000038587fi
38588if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000038589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000038590$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
38591fi
38592
38593
38594rm -f magick-version
38595
cristy430a7312010-01-21 20:44:04 +000038596result_dejavu_font_dir='none'
38597if test "${dejavu_font_dir}x" != 'x'; then
38598 result_dejavu_font_dir=$dejavu_font_dir
38599fi
38600
cristy3ed852e2009-09-05 21:47:34 +000038601result_ghostscript_font_dir='none'
38602if test "${ghostscript_font_dir}x" != 'x'; then
38603 result_ghostscript_font_dir=$ghostscript_font_dir
38604fi
38605
38606result_windows_font_dir='none'
38607if test "${windows_font_dir}x" != 'x'; then
38608 result_windows_font_dir=${windows_font_dir}
38609fi
38610
cristyad38abe2012-12-23 23:03:21 +000038611{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
cristy3ed852e2009-09-05 21:47:34 +000038612ImageMagick is configured as follows. Please verify that this configuration
38613matches your expectations.
38614
38615Host system type: $host
38616Build system type: $build
38617
38618 Option Value
38619-------------------------------------------------------------------------------
38620Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38621Static libraries --enable-static=$enable_static $libtool_build_static_libs
cristyc6722092012-10-14 00:19:31 +000038622Module support --with-modules=$build_modules $build_modules
cristy3ed852e2009-09-05 21:47:34 +000038623GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38624Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38625High Dynamic Range Imagery
38626 --enable-hdri=$enable_hdri $enable_hdri
38627
38628Delegate Configuration:
38629BZLIB --with-bzlib=$with_bzlib $have_bzlib
38630Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038631Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038632DJVU --with-djvu=$with_djvu $have_djvu
38633DPS --with-dps=$with_dps $have_dps
38634FFTW --with-fftw=$with_fftw $have_fftw
38635FlashPIX --with-fpx=$with_fpx $have_fpx
38636FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38637FreeType --with-freetype=$with_freetype $have_freetype
38638GhostPCL None $PCLDelegate ($PCLVersion)
38639GhostXPS None $XPSDelegate ($XPSVersion)
38640Ghostscript None $PSDelegate ($GSVersion)
38641Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38642Ghostscript lib --with-gslib=$with_gslib $have_gslib
38643Graphviz --with-gvc=$with_gvc $have_gvc
38644JBIG --with-jbig=$with_jbig $have_jbig
38645JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38646JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038647LCMS v1 --with-lcms=$with_lcms $have_lcms
38648LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038649LQR --with-lqr=$with_lqr $have_lqr
cristy5eef09f2012-10-16 12:08:28 +000038650LTDL --with-ltdl=$with_ltdl $have_ltdl
cristyfbb0ef02010-12-19 02:32:11 +000038651LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038652Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38653OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038654PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038655PERL --with-perl=$with_perl $have_perl
38656PNG --with-png=$with_png $have_png
38657RSVG --with-rsvg=$with_rsvg $have_rsvg
38658TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038659WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038660Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy01ff9f32012-12-01 18:15:29 +000038661WMF --with-wmf=$with_wmf $have_wmf
cristy3ed852e2009-09-05 21:47:34 +000038662X11 --with-x=$with_x $have_x
38663XML --with-xml=$with_xml $have_xml
38664ZLIB --with-zlib=$with_zlib $have_zlib
38665
38666X11 Configuration:
38667 X_CFLAGS = $X_CFLAGS
38668 X_PRE_LIBS = $X_PRE_LIBS
38669 X_LIBS = $X_LIBS
38670 X_EXTRA_LIBS = $X_EXTRA_LIBS
38671
38672Options used to compile and link:
38673 PREFIX = $PREFIX_DIR
38674 EXEC-PREFIX = $EXEC_PREFIX_DIR
38675 VERSION = $PACKAGE_VERSION
38676 CC = $CC
38677 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038678 CPPFLAGS = $MAGICK_CPPFLAGS
38679 PCFLAGS = $MAGICK_PCFLAGS
38680 DEFS = $DEFS
38681 LDFLAGS = $LDFLAGS
38682 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38683 LIBS = $MAGICK_LIBS
38684 CXX = $CXX
38685 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038686 FEATURES = $MAGICK_FEATURES
cristy422d5502012-12-22 22:20:57 +000038687 DELEGATES = $MAGICK_DELEGATES
cristy3ed852e2009-09-05 21:47:34 +000038688" >&5
cristyad38abe2012-12-23 23:03:21 +000038689$as_echo "
cristy3ed852e2009-09-05 21:47:34 +000038690ImageMagick is configured as follows. Please verify that this configuration
38691matches your expectations.
38692
38693Host system type: $host
38694Build system type: $build
38695
38696 Option Value
38697-------------------------------------------------------------------------------
38698Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38699Static libraries --enable-static=$enable_static $libtool_build_static_libs
cristyc6722092012-10-14 00:19:31 +000038700Module support --with-modules=$build_modules $build_modules
cristy3ed852e2009-09-05 21:47:34 +000038701GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38702Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38703High Dynamic Range Imagery
38704 --enable-hdri=$enable_hdri $enable_hdri
38705
38706Delegate Configuration:
38707BZLIB --with-bzlib=$with_bzlib $have_bzlib
38708Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038709Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038710DJVU --with-djvu=$with_djvu $have_djvu
38711DPS --with-dps=$with_dps $have_dps
38712FFTW --with-fftw=$with_fftw $have_fftw
38713FlashPIX --with-fpx=$with_fpx $have_fpx
38714FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38715FreeType --with-freetype=$with_freetype $have_freetype
38716GhostPCL None $PCLDelegate ($PCLVersion)
38717GhostXPS None $XPSDelegate ($XPSVersion)
38718Ghostscript None $PSDelegate ($GSVersion)
38719Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38720Ghostscript lib --with-gslib=$with_gslib $have_gslib
38721Graphviz --with-gvc=$with_gvc $have_gvc
38722JBIG --with-jbig=$with_jbig $have_jbig
38723JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38724JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038725LCMS v1 --with-lcms=$with_lcms $have_lcms
38726LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038727LQR --with-lqr=$with_lqr $have_lqr
cristy5eef09f2012-10-16 12:08:28 +000038728LTDL --with-ltdl=$with_ltdl $have_ltdl
cristyfbb0ef02010-12-19 02:32:11 +000038729LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038730Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38731OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038732PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038733PERL --with-perl=$with_perl $have_perl
38734PNG --with-png=$with_png $have_png
38735RSVG --with-rsvg=$with_rsvg $have_rsvg
38736TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038737WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038738Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy01ff9f32012-12-01 18:15:29 +000038739WMF --with-wmf=$with_wmf $have_wmf
cristy3ed852e2009-09-05 21:47:34 +000038740X11 --with-x=$with_x $have_x
38741XML --with-xml=$with_xml $have_xml
38742ZLIB --with-zlib=$with_zlib $have_zlib
38743
38744X11 Configuration:
38745 X_CFLAGS = $X_CFLAGS
38746 X_PRE_LIBS = $X_PRE_LIBS
38747 X_LIBS = $X_LIBS
38748 X_EXTRA_LIBS = $X_EXTRA_LIBS
38749
38750Options used to compile and link:
38751 PREFIX = $PREFIX_DIR
38752 EXEC-PREFIX = $EXEC_PREFIX_DIR
38753 VERSION = $PACKAGE_VERSION
38754 CC = $CC
38755 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038756 CPPFLAGS = $MAGICK_CPPFLAGS
38757 PCFLAGS = $MAGICK_PCFLAGS
38758 DEFS = $DEFS
38759 LDFLAGS = $LDFLAGS
38760 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38761 LIBS = $MAGICK_LIBS
38762 CXX = $CXX
38763 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038764 FEATURES = $MAGICK_FEATURES
cristy422d5502012-12-22 22:20:57 +000038765 DELEGATES = $MAGICK_DELEGATES
cristyad38abe2012-12-23 23:03:21 +000038766" >&6; }