blob: e7c62d10213a9a1618933e3045cbb70f71e9db02 [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
cristy5ac9ac82010-07-29 13:24:24 +0000695UniconvertorDelegate
cristy3ed852e2009-09-05 21:47:34 +0000696TXTDelegate
cristyec6934f2012-08-14 18:38:40 +0000697SVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000698SCANDecodeDelegate
cristy4689cf02010-02-17 21:15:45 +0000699RSVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000700RMDelegate
701RLEEncodeDelegate
702PSDelegate
703POVDelegate
704PGPDecodeDelegate
705PCLDelegate
706MVDelegate
cristy935c86e2010-06-05 23:50:07 +0000707MrSIDDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000708MPEGEncodeDelegate
709MPEGDecodeDelegate
710MANDelegate
711LaunchDelegate
cristy3ed852e2009-09-05 21:47:34 +0000712LPRDelegate
713LPDelegate
714ILBMEncodeDelegate
715ILBMDecodeDelegate
716HTMLDecodeDelegate
717HPGLDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000718GnuplotDecodeDelegate
719MogrifyDelegate
720DisplayDelegate
721ConvertDelegate
722FIGDecodeDelegate
723EditorDelegate
724EchoDelegate
725DVIDecodeDelegate
726GVCDecodeDelegate
727DNGDecodeDelegate
728CatDelegate
729CGMDecodeDelegate
730BrowseDelegate
731BZIPDelegate
732BlenderDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000733AutotraceDecodeDelegate
cristy670aa3c2011-11-03 00:54:00 +0000734SHAREARCH_PATH
cristy54378032012-12-04 15:52:20 +0000735SHAREARCH_RELATIVE_PATH
736SHAREARCH_DIRNAME
737SHAREARCH_BASEDIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000738SHARE_PATH
cristy4f820712011-04-01 12:35:43 +0000739CONFIGURE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000740DOCUMENTATION_PATH
741FILTER_PATH
cristy01ff9f32012-12-01 18:15:29 +0000742FILTER_DIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000743CODER_PATH
cristy01ff9f32012-12-01 18:15:29 +0000744CODER_DIRNAME
745MODULES_PATH
746MODULES_RELATIVE_PATH
747MODULES_DIRNAME
748MODULES_BASEDIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000749LIBRARY_PATH
750EXECUTABLE_PATH
cristye52f12f2012-12-31 15:32:36 +0000751INCLUDEARCH_PATH
cristy2a11bef2011-10-28 18:33:11 +0000752INCLUDE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000753PERLMAINCC
754XML_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000755XML_DELEGATE_FALSE
756XML_DELEGATE_TRUE
cristy81beccd2011-10-03 18:17:24 +0000757xml2_config
cristy03f7cf92011-12-15 01:40:41 +0000758WMF_LIBS_DEPS
cristy3ed852e2009-09-05 21:47:34 +0000759WMF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000760WMF_DELEGATE_FALSE
761WMF_DELEGATE_TRUE
cristyb1860752011-03-14 00:27:46 +0000762WEBP_LIBS
763WEBP_DELEGATE_FALSE
764WEBP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000765TIFF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000766TIFF_DELEGATE_FALSE
767TIFF_DELEGATE_TRUE
768CAIRO_DELEGATE_FALSE
769CAIRO_DELEGATE_TRUE
770RSVG_DELEGATE_FALSE
771RSVG_DELEGATE_TRUE
772CAIRO_SVG_LIBS
773CAIRO_SVG_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000774RSVG_LIBS
775RSVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +0000776PNG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000777PNG_DELEGATE_FALSE
778PNG_DELEGATE_TRUE
cristya054b762012-03-26 23:16:00 +0000779PANGOCAIRO_DELEGATE_FALSE
780PANGOCAIRO_DELEGATE_TRUE
cristy41cbe8a2011-10-27 01:35:18 +0000781PANGO_DELEGATE_FALSE
782PANGO_DELEGATE_TRUE
783PANGO_LIBS
784PANGO_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000785OPENEXR_DELEGATE_FALSE
786OPENEXR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000787OPENEXR_LIBS
788OPENEXR_CFLAGS
cristyfbb0ef02010-12-19 02:32:11 +0000789LZMA_DELEGATE_FALSE
790LZMA_DELEGATE_TRUE
cristyb94e5002011-11-14 13:20:10 +0000791LZMA_LIBS
792LZMA_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000793LQR_DELEGATE_FALSE
794LQR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000795LQR_LIBS
796LQR_CFLAGS
797LCMS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000798LCMS_DELEGATE_FALSE
799LCMS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000800JP2_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000801JP2_DELEGATE_FALSE
802JP2_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000803JPEG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000804JPEG_DELEGATE_FALSE
805JPEG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000806JBIG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000807JBIG_DELEGATE_FALSE
808JBIG_DELEGATE_TRUE
809GVC_DELEGATE_FALSE
810GVC_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000811GVC_LIBS
812GVC_CFLAGS
813GS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000814GS_DELEGATE_FALSE
815GS_DELEGATE_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000816FREETYPE_DELEGATE_FALSE
817FREETYPE_DELEGATE_TRUE
cristy03f187e2013-01-24 00:22:19 +0000818FREETYPE_LIBS
819FREETYPE_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000820FONTCONFIG_DELEGATE_FALSE
821FONTCONFIG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000822FONTCONFIG_LIBS
823FONTCONFIG_CFLAGS
824FPX_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000825FPX_DELEGATE_FALSE
826FPX_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000827FFTW_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000828FFTW_DELEGATE_FALSE
829FFTW_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000830DJVU_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000831DJVU_DELEGATE_FALSE
832DJVU_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000833DPS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000834DPS_DELEGATE_FALSE
835DPS_DELEGATE_TRUE
836AUTOTRACE_DELEGATE_FALSE
837AUTOTRACE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000838AUTOTRACE_LIBS
839AUTOTRACE_CFLAGS
840LIB_DL
cristy5eef09f2012-10-16 12:08:28 +0000841WITH_LTDL_FALSE
842WITH_LTDL_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000843ZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000844ZLIB_DELEGATE_FALSE
845ZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000846XEXT_LIBS
847X11_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000848X11_DELEGATE_FALSE
849X11_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000850X_EXTRA_LIBS
851X_LIBS
852X_PRE_LIBS
853X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000854XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000855BZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000856BZLIB_DELEGATE_FALSE
857BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000858CCMALLOCDelegate
859UMEM_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000860HasUMEM_FALSE
861HasUMEM_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000862THREAD_LIBS
863GOMP_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000864WITH_MAGICK_PLUS_PLUS_FALSE
865WITH_MAGICK_PLUS_PLUS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000866OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000867MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000868POW_LIB
869LIBOBJS
cristy6d5e20f2011-04-25 13:48:54 +0000870UINTPTR_F
cristy3ed852e2009-09-05 21:47:34 +0000871UINTPTR_T
cristy6d5e20f2011-04-25 13:48:54 +0000872UINTMAX_F
cristy3ed852e2009-09-05 21:47:34 +0000873UINTMAX_T
cristy6d5e20f2011-04-25 13:48:54 +0000874UINT64_F
cristy3ed852e2009-09-05 21:47:34 +0000875UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000876INT64_F
cristy3ed852e2009-09-05 21:47:34 +0000877INT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000878UINT32_F
cristy3ed852e2009-09-05 21:47:34 +0000879UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +0000880INT32_F
cristy3ed852e2009-09-05 21:47:34 +0000881INT32_T
882UINT16_T
883INT16_T
884UINT8_T
885INT8_T
886LIBRARY_EXTRA_CPPFLAGS
887MODULE_EXTRA_CPPFLAGS
888LIBSTDCLDFLAGS
889PERL_MAKE_OPTIONS
cristy3a75f062012-09-08 23:29:40 +0000890MAGICK_LT_RELEASE_OPTS
cristy7a26abd2012-12-03 00:18:59 +0000891MAGICK_ABI_SUFFIX
cristy3ed852e2009-09-05 21:47:34 +0000892QUANTUM_DEPTH
cristy71d8c202012-03-20 17:05:01 +0000893LEGACY_SUPPORT_FALSE
894LEGACY_SUPPORT_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000895MAINT
896MAINTAINER_MODE_FALSE
897MAINTAINER_MODE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000898MAGICK_HDRI
cristy73bd4a52010-10-05 11:24:23 +0000899WITH_MODULES_FALSE
900WITH_MODULES_TRUE
901WITH_SHARED_LIBS_FALSE
902WITH_SHARED_LIBS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000903LIBTOOL_DEPS
cristy73bd4a52010-10-05 11:24:23 +0000904CXXCPP
905OTOOL64
906OTOOL
907LIPO
908NMEDIT
909DSYMUTIL
cristyda16f162011-02-19 23:52:17 +0000910MANIFEST_TOOL
cristy73bd4a52010-10-05 11:24:23 +0000911RANLIB
cristyda16f162011-02-19 23:52:17 +0000912ac_ct_AR
cristy73bd4a52010-10-05 11:24:23 +0000913AR
914NM
915ac_ct_DUMPBIN
916DUMPBIN
917LIBTOOL
918OBJDUMP
919DLLTOOL
920AS
cristy3ed852e2009-09-05 21:47:34 +0000921LFS_CPPFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000922CL_LIBS
cristy736173a2009-09-20 21:18:22 +0000923CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000924OPENMP_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000925PTHREAD_CFLAGS
926PTHREAD_LIBS
927PTHREAD_CC
928ax_pthread_config
cristy2ec87cc2013-02-18 17:46:50 +0000929pkgconfigdir
cristy670aa3c2011-11-03 00:54:00 +0000930SHAREARCH_DIR
931INCLUDEARCH_DIR
cristy3ed852e2009-09-05 21:47:34 +0000932WinPathScript
cristy73bd4a52010-10-05 11:24:23 +0000933USING_CL_FALSE
934USING_CL_TRUE
935CYGWIN_BUILD_FALSE
936CYGWIN_BUILD_TRUE
937WIN32_NATIVE_BUILD_FALSE
938WIN32_NATIVE_BUILD_TRUE
939WINGDI32_DELEGATE_FALSE
940WINGDI32_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000941GDI32_LIBS
cristy9b86f202012-11-28 21:55:35 +0000942HAVE_LD_VERSION_SCRIPT_FALSE
943HAVE_LD_VERSION_SCRIPT_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000944PKG_CONFIG
cristy37110d62012-03-01 18:38:20 +0000945PRTDIAG
cristy3ed852e2009-09-05 21:47:34 +0000946LN_S
cristy3ed852e2009-09-05 21:47:34 +0000947LD
cristy73bd4a52010-10-05 11:24:23 +0000948FGREP
949SED
950am__fastdepCXX_FALSE
951am__fastdepCXX_TRUE
952CXXDEPMODE
cristy95646052009-11-28 23:05:30 +0000953ac_ct_CXX
954CXXFLAGS
955CXX
cristya0b81c32010-01-22 02:54:33 +0000956EGREP
957GREP
958CPP
cristy73bd4a52010-10-05 11:24:23 +0000959am__fastdepCC_FALSE
960am__fastdepCC_TRUE
961CCDEPMODE
cristy7247bba2012-02-05 16:37:27 +0000962am__nodep
cristy73bd4a52010-10-05 11:24:23 +0000963AMDEPBACKSLASH
964AMDEP_FALSE
965AMDEP_TRUE
966am__quote
967am__include
968DEPDIR
cristy3ed852e2009-09-05 21:47:34 +0000969OBJEXT
970EXEEXT
971ac_ct_CC
972CPPFLAGS
973LDFLAGS
974CFLAGS
975CC
976DIRSEP
977MAGICK_FILTER_MODULE_PATH
978MAGICK_CONFIGURE_BUILD_PATH
979MAGICK_CONFIGURE_SRC_PATH
980MAGICK_CODER_MODULE_PATH
981MAN_DIR
982INFO_DIR
983PERSISTINCLUDE_DIR
984INCLUDE_DIR
985LIB_DIR
986LOCALSTATE_DIR
987SHAREDSTATE_DIR
988SYSCONF_DIR
cristyd55889c2011-03-27 00:50:24 +0000989DOC_DIR
cristy3ed852e2009-09-05 21:47:34 +0000990DATA_DIR
991LIBEXEC_DIR
992SBIN_DIR
993BIN_DIR
994EXEC_PREFIX_DIR
995PREFIX_DIR
996CONFIG_STATUS_DEPENDENCIES
997MAGICK_LIB_VERSION_NUMBER
998MAGICK_LIB_VERSION_TEXT
999MAGICK_LIB_VERSION
cristy73bd4a52010-10-05 11:24:23 +00001000AM_BACKSLASH
1001AM_DEFAULT_VERBOSITY
cristyc3fb77b2012-02-06 01:49:41 +00001002AM_DEFAULT_V
1003AM_V
cristy73bd4a52010-10-05 11:24:23 +00001004am__untar
1005am__tar
1006AMTAR
1007am__leading_dot
1008SET_MAKE
1009AWK
1010mkdir_p
1011MKDIR_P
1012INSTALL_STRIP_PROGRAM
1013STRIP
1014install_sh
1015MAKEINFO
1016AUTOHEADER
1017AUTOMAKE
1018AUTOCONF
1019ACLOCAL
1020VERSION
1021PACKAGE
1022CYGPATH_W
1023am__isrc
1024INSTALL_DATA
1025INSTALL_SCRIPT
1026INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +00001027PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +00001028PACKAGE_RELEASE_DATE
1029PACKAGE_LIB_VERSION_NUMBER
1030PACKAGE_LIB_VERSION
1031PACKAGE_CHANGE_DATE
1032PACKAGE_RELEASE
cristy878c2f12011-08-19 00:25:19 +00001033PACKAGE_PERL_VERSION
cristybab87c32010-02-09 20:54:22 +00001034MAGICK_LIBRARY_VERSION_INFO
1035MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +00001036MAGICK_LIBRARY_AGE
1037MAGICK_LIBRARY_REVISION
1038MAGICK_LIBRARY_CURRENT
cristy37442762013-02-10 21:07:23 +00001039MAGICK_SVN_REVISION
1040MAGICK_VERSION
1041MAGICK_PATCHLEVEL_VERSION
1042MAGICK_MICRO_VERSION
1043MAGICK_MINOR_VERSION
1044MAGICK_MAJOR_VERSION
cristy3225a072010-04-17 01:47:28 +00001045MAGICK_TARGET_OS
1046MAGICK_TARGET_VENDOR
1047MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +00001048target_os
1049target_vendor
1050target_cpu
1051target
1052host_os
1053host_vendor
1054host_cpu
1055host
1056build_os
1057build_vendor
1058build_cpu
1059build
1060CONFIGURE_ARGS
1061DISTCHECK_CONFIG_FLAGS
1062target_alias
1063host_alias
1064build_alias
1065LIBS
1066ECHO_T
1067ECHO_N
1068ECHO_C
1069DEFS
1070mandir
1071localedir
1072libdir
1073psdir
1074pdfdir
1075dvidir
1076htmldir
1077infodir
1078docdir
1079oldincludedir
1080includedir
1081localstatedir
1082sharedstatedir
1083sysconfdir
1084datadir
1085datarootdir
1086libexecdir
1087sbindir
1088bindir
1089program_transform_name
1090prefix
1091exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001092PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001093PACKAGE_BUGREPORT
1094PACKAGE_STRING
1095PACKAGE_VERSION
1096PACKAGE_TARNAME
1097PACKAGE_NAME
1098PATH_SEPARATOR
1099SHELL'
1100ac_subst_files=''
1101ac_user_opts='
1102enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001103enable_silent_rules
1104enable_dependency_tracking
1105with_gnu_ld
1106with_dmalloc
cristy37110d62012-03-01 18:38:20 +00001107with_gcc_arch
cristy9b86f202012-11-28 21:55:35 +00001108enable_ld_version_script
cristy3ed852e2009-09-05 21:47:34 +00001109enable_bounds_checking
1110enable_osx_universal_binary
cristy670aa3c2011-11-03 00:54:00 +00001111with_includearch_dir
1112with_sharearch_dir
cristy2ec87cc2013-02-18 17:46:50 +00001113with_pkgconfigdir
cristy3ed852e2009-09-05 21:47:34 +00001114with_threads
1115enable_openmp
cristy73bd4a52010-10-05 11:24:23 +00001116enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001117enable_largefile
cristy73bd4a52010-10-05 11:24:23 +00001118enable_shared
1119enable_static
1120with_pic
1121enable_fast_install
cristyda16f162011-02-19 23:52:17 +00001122with_sysroot
cristy73bd4a52010-10-05 11:24:23 +00001123enable_libtool_lock
cristy3ed852e2009-09-05 21:47:34 +00001124with_modules
1125enable_delegate_build
1126enable_deprecated
1127enable_installed
1128enable_cipher
cristy6e3607c2011-09-13 13:59:17 +00001129enable_zero_configuration
cristy3ed852e2009-09-05 21:47:34 +00001130enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001131enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001132enable_maintainer_mode
cristy3ed852e2009-09-05 21:47:34 +00001133enable_ccmalloc
1134enable_efence
1135enable_prof
1136enable_gprof
1137enable_gcov
1138with_method_prefix
cristy71d8c202012-03-20 17:05:01 +00001139enable_legacy_support
cristy3ed852e2009-09-05 21:47:34 +00001140with_quantum_depth
1141with_cache
1142with_frozenpaths
1143with_magick_plus_plus
cristy3a75f062012-09-08 23:29:40 +00001144with_package_release_name
cristy3ed852e2009-09-05 21:47:34 +00001145with_perl
1146with_perl_options
1147with_umem
1148with_libstdc
1149with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001150with_x
cristy3ed852e2009-09-05 21:47:34 +00001151with_zlib
1152with_autotrace
1153with_dps
1154with_djvu
cristy430a7312010-01-21 20:44:04 +00001155with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001156with_fftw
1157with_fpx
1158with_fontconfig
1159with_freetype
1160with_gslib
1161with_fontpath
1162with_gs_font_dir
1163with_gvc
1164with_jbig
1165with_jpeg
1166with_jp2
1167with_lcms
cristy71203402010-06-18 13:12:03 +00001168with_lcms2
cristy3ed852e2009-09-05 21:47:34 +00001169with_lqr
cristyfbb0ef02010-12-19 02:32:11 +00001170with_lzma
cristy3ed852e2009-09-05 21:47:34 +00001171with_openexr
cristy41cbe8a2011-10-27 01:35:18 +00001172with_pango
cristy3ed852e2009-09-05 21:47:34 +00001173with_png
1174with_rsvg
1175with_tiff
cristyb1860752011-03-14 00:27:46 +00001176with_webp
cristy3ed852e2009-09-05 21:47:34 +00001177with_windows_font_dir
1178with_wmf
1179with_xml
1180'
1181 ac_precious_vars='build_alias
1182host_alias
1183target_alias
1184CC
1185CFLAGS
1186LDFLAGS
1187LIBS
1188CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001189CPP
cristy3ed852e2009-09-05 21:47:34 +00001190CXX
1191CXXFLAGS
1192CCC
cristy73bd4a52010-10-05 11:24:23 +00001193PKG_CONFIG
1194CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001195XMKMF
cristy73bd4a52010-10-05 11:24:23 +00001196AUTOTRACE_CFLAGS
1197AUTOTRACE_LIBS
1198FONTCONFIG_CFLAGS
1199FONTCONFIG_LIBS
cristy03f187e2013-01-24 00:22:19 +00001200FREETYPE_CFLAGS
1201FREETYPE_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001202GVC_CFLAGS
1203GVC_LIBS
1204LQR_CFLAGS
1205LQR_LIBS
cristyb94e5002011-11-14 13:20:10 +00001206LZMA_CFLAGS
1207LZMA_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001208OPENEXR_CFLAGS
1209OPENEXR_LIBS
cristy41cbe8a2011-10-27 01:35:18 +00001210PANGO_CFLAGS
1211PANGO_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001212RSVG_CFLAGS
1213RSVG_LIBS
1214CAIRO_SVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +00001215CAIRO_SVG_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001216
1217
1218# Initialize some variables set by options.
1219ac_init_help=
1220ac_init_version=false
1221ac_unrecognized_opts=
1222ac_unrecognized_sep=
1223# The variables have the same names as the options, with
1224# dashes changed to underlines.
1225cache_file=/dev/null
1226exec_prefix=NONE
1227no_create=
1228no_recursion=
1229prefix=NONE
1230program_prefix=NONE
1231program_suffix=NONE
1232program_transform_name=s,x,x,
1233silent=
1234site=
1235srcdir=
1236verbose=
1237x_includes=NONE
1238x_libraries=NONE
1239
1240# Installation directory options.
1241# These are left unexpanded so users can "make install exec_prefix=/foo"
1242# and all the variables that are supposed to be based on exec_prefix
1243# by default will actually change.
1244# Use braces instead of parens because sh, perl, etc. also accept them.
1245# (The list follows the same order as the GNU Coding Standards.)
1246bindir='${exec_prefix}/bin'
1247sbindir='${exec_prefix}/sbin'
1248libexecdir='${exec_prefix}/libexec'
1249datarootdir='${prefix}/share'
1250datadir='${datarootdir}'
1251sysconfdir='${prefix}/etc'
1252sharedstatedir='${prefix}/com'
1253localstatedir='${prefix}/var'
1254includedir='${prefix}/include'
1255oldincludedir='/usr/include'
1256docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1257infodir='${datarootdir}/info'
1258htmldir='${docdir}'
1259dvidir='${docdir}'
1260pdfdir='${docdir}'
1261psdir='${docdir}'
1262libdir='${exec_prefix}/lib'
1263localedir='${datarootdir}/locale'
1264mandir='${datarootdir}/man'
1265
1266ac_prev=
1267ac_dashdash=
1268for ac_option
1269do
1270 # If the previous option needs an argument, assign it.
1271 if test -n "$ac_prev"; then
1272 eval $ac_prev=\$ac_option
1273 ac_prev=
1274 continue
1275 fi
1276
1277 case $ac_option in
cristyda16f162011-02-19 23:52:17 +00001278 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1279 *=) ac_optarg= ;;
1280 *) ac_optarg=yes ;;
cristy3ed852e2009-09-05 21:47:34 +00001281 esac
1282
1283 # Accept the important Cygnus configure options, so we can diagnose typos.
1284
1285 case $ac_dashdash$ac_option in
1286 --)
1287 ac_dashdash=yes ;;
1288
1289 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1290 ac_prev=bindir ;;
1291 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1292 bindir=$ac_optarg ;;
1293
1294 -build | --build | --buil | --bui | --bu)
1295 ac_prev=build_alias ;;
1296 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1297 build_alias=$ac_optarg ;;
1298
1299 -cache-file | --cache-file | --cache-fil | --cache-fi \
1300 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1301 ac_prev=cache_file ;;
1302 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1303 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1304 cache_file=$ac_optarg ;;
1305
1306 --config-cache | -C)
1307 cache_file=config.cache ;;
1308
1309 -datadir | --datadir | --datadi | --datad)
1310 ac_prev=datadir ;;
1311 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1312 datadir=$ac_optarg ;;
1313
1314 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1315 | --dataroo | --dataro | --datar)
1316 ac_prev=datarootdir ;;
1317 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1318 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1319 datarootdir=$ac_optarg ;;
1320
1321 -disable-* | --disable-*)
1322 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1323 # Reject names that are not valid shell variable names.
1324 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001325 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001326 ac_useropt_orig=$ac_useropt
1327 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1328 case $ac_user_opts in
1329 *"
1330"enable_$ac_useropt"
1331"*) ;;
1332 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1333 ac_unrecognized_sep=', ';;
1334 esac
1335 eval enable_$ac_useropt=no ;;
1336
1337 -docdir | --docdir | --docdi | --doc | --do)
1338 ac_prev=docdir ;;
1339 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1340 docdir=$ac_optarg ;;
1341
1342 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1343 ac_prev=dvidir ;;
1344 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1345 dvidir=$ac_optarg ;;
1346
1347 -enable-* | --enable-*)
1348 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1349 # Reject names that are not valid shell variable names.
1350 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001351 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001352 ac_useropt_orig=$ac_useropt
1353 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1354 case $ac_user_opts in
1355 *"
1356"enable_$ac_useropt"
1357"*) ;;
1358 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1359 ac_unrecognized_sep=', ';;
1360 esac
1361 eval enable_$ac_useropt=\$ac_optarg ;;
1362
1363 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1364 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1365 | --exec | --exe | --ex)
1366 ac_prev=exec_prefix ;;
1367 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1368 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1369 | --exec=* | --exe=* | --ex=*)
1370 exec_prefix=$ac_optarg ;;
1371
1372 -gas | --gas | --ga | --g)
1373 # Obsolete; use --with-gas.
1374 with_gas=yes ;;
1375
1376 -help | --help | --hel | --he | -h)
1377 ac_init_help=long ;;
1378 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1379 ac_init_help=recursive ;;
1380 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1381 ac_init_help=short ;;
1382
1383 -host | --host | --hos | --ho)
1384 ac_prev=host_alias ;;
1385 -host=* | --host=* | --hos=* | --ho=*)
1386 host_alias=$ac_optarg ;;
1387
1388 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1389 ac_prev=htmldir ;;
1390 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1391 | --ht=*)
1392 htmldir=$ac_optarg ;;
1393
1394 -includedir | --includedir | --includedi | --included | --include \
1395 | --includ | --inclu | --incl | --inc)
1396 ac_prev=includedir ;;
1397 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1398 | --includ=* | --inclu=* | --incl=* | --inc=*)
1399 includedir=$ac_optarg ;;
1400
1401 -infodir | --infodir | --infodi | --infod | --info | --inf)
1402 ac_prev=infodir ;;
1403 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1404 infodir=$ac_optarg ;;
1405
1406 -libdir | --libdir | --libdi | --libd)
1407 ac_prev=libdir ;;
1408 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1409 libdir=$ac_optarg ;;
1410
1411 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1412 | --libexe | --libex | --libe)
1413 ac_prev=libexecdir ;;
1414 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1415 | --libexe=* | --libex=* | --libe=*)
1416 libexecdir=$ac_optarg ;;
1417
1418 -localedir | --localedir | --localedi | --localed | --locale)
1419 ac_prev=localedir ;;
1420 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1421 localedir=$ac_optarg ;;
1422
1423 -localstatedir | --localstatedir | --localstatedi | --localstated \
1424 | --localstate | --localstat | --localsta | --localst | --locals)
1425 ac_prev=localstatedir ;;
1426 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1427 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1428 localstatedir=$ac_optarg ;;
1429
1430 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1431 ac_prev=mandir ;;
1432 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1433 mandir=$ac_optarg ;;
1434
1435 -nfp | --nfp | --nf)
1436 # Obsolete; use --without-fp.
1437 with_fp=no ;;
1438
1439 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1440 | --no-cr | --no-c | -n)
1441 no_create=yes ;;
1442
1443 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1444 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1445 no_recursion=yes ;;
1446
1447 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1448 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1449 | --oldin | --oldi | --old | --ol | --o)
1450 ac_prev=oldincludedir ;;
1451 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1452 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1453 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1454 oldincludedir=$ac_optarg ;;
1455
1456 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1457 ac_prev=prefix ;;
1458 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1459 prefix=$ac_optarg ;;
1460
1461 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1462 | --program-pre | --program-pr | --program-p)
1463 ac_prev=program_prefix ;;
1464 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1465 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1466 program_prefix=$ac_optarg ;;
1467
1468 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1469 | --program-suf | --program-su | --program-s)
1470 ac_prev=program_suffix ;;
1471 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1472 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1473 program_suffix=$ac_optarg ;;
1474
1475 -program-transform-name | --program-transform-name \
1476 | --program-transform-nam | --program-transform-na \
1477 | --program-transform-n | --program-transform- \
1478 | --program-transform | --program-transfor \
1479 | --program-transfo | --program-transf \
1480 | --program-trans | --program-tran \
1481 | --progr-tra | --program-tr | --program-t)
1482 ac_prev=program_transform_name ;;
1483 -program-transform-name=* | --program-transform-name=* \
1484 | --program-transform-nam=* | --program-transform-na=* \
1485 | --program-transform-n=* | --program-transform-=* \
1486 | --program-transform=* | --program-transfor=* \
1487 | --program-transfo=* | --program-transf=* \
1488 | --program-trans=* | --program-tran=* \
1489 | --progr-tra=* | --program-tr=* | --program-t=*)
1490 program_transform_name=$ac_optarg ;;
1491
1492 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1493 ac_prev=pdfdir ;;
1494 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1495 pdfdir=$ac_optarg ;;
1496
1497 -psdir | --psdir | --psdi | --psd | --ps)
1498 ac_prev=psdir ;;
1499 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1500 psdir=$ac_optarg ;;
1501
1502 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1503 | -silent | --silent | --silen | --sile | --sil)
1504 silent=yes ;;
1505
1506 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1507 ac_prev=sbindir ;;
1508 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1509 | --sbi=* | --sb=*)
1510 sbindir=$ac_optarg ;;
1511
1512 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1513 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1514 | --sharedst | --shareds | --shared | --share | --shar \
1515 | --sha | --sh)
1516 ac_prev=sharedstatedir ;;
1517 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1518 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1519 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1520 | --sha=* | --sh=*)
1521 sharedstatedir=$ac_optarg ;;
1522
1523 -site | --site | --sit)
1524 ac_prev=site ;;
1525 -site=* | --site=* | --sit=*)
1526 site=$ac_optarg ;;
1527
1528 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1529 ac_prev=srcdir ;;
1530 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1531 srcdir=$ac_optarg ;;
1532
1533 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1534 | --syscon | --sysco | --sysc | --sys | --sy)
1535 ac_prev=sysconfdir ;;
1536 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1537 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1538 sysconfdir=$ac_optarg ;;
1539
1540 -target | --target | --targe | --targ | --tar | --ta | --t)
1541 ac_prev=target_alias ;;
1542 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1543 target_alias=$ac_optarg ;;
1544
1545 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1546 verbose=yes ;;
1547
1548 -version | --version | --versio | --versi | --vers | -V)
1549 ac_init_version=: ;;
1550
1551 -with-* | --with-*)
1552 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1553 # Reject names that are not valid shell variable names.
1554 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001555 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001556 ac_useropt_orig=$ac_useropt
1557 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1558 case $ac_user_opts in
1559 *"
1560"with_$ac_useropt"
1561"*) ;;
1562 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1563 ac_unrecognized_sep=', ';;
1564 esac
1565 eval with_$ac_useropt=\$ac_optarg ;;
1566
1567 -without-* | --without-*)
1568 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
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--without-$ac_useropt_orig"
1579 ac_unrecognized_sep=', ';;
1580 esac
1581 eval with_$ac_useropt=no ;;
1582
1583 --x)
1584 # Obsolete; use --with-x.
1585 with_x=yes ;;
1586
1587 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1588 | --x-incl | --x-inc | --x-in | --x-i)
1589 ac_prev=x_includes ;;
1590 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1591 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1592 x_includes=$ac_optarg ;;
1593
1594 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1595 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1596 ac_prev=x_libraries ;;
1597 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1598 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1599 x_libraries=$ac_optarg ;;
1600
cristy98dddb52010-11-04 00:30:15 +00001601 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1602Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001603 ;;
1604
1605 *=*)
1606 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1607 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001608 case $ac_envvar in #(
1609 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001610 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001611 esac
cristy3ed852e2009-09-05 21:47:34 +00001612 eval $ac_envvar=\$ac_optarg
1613 export $ac_envvar ;;
1614
1615 *)
1616 # FIXME: should be removed in autoconf 3.0.
1617 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1618 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1619 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cristyda16f162011-02-19 23:52:17 +00001620 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cristy3ed852e2009-09-05 21:47:34 +00001621 ;;
1622
1623 esac
1624done
1625
1626if test -n "$ac_prev"; then
1627 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001628 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001629fi
1630
1631if test -n "$ac_unrecognized_opts"; then
1632 case $enable_option_checking in
1633 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001634 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001635 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1636 esac
1637fi
1638
1639# Check all directory arguments for consistency.
1640for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1641 datadir sysconfdir sharedstatedir localstatedir includedir \
1642 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1643 libdir localedir mandir
1644do
1645 eval ac_val=\$$ac_var
1646 # Remove trailing slashes.
1647 case $ac_val in
1648 */ )
1649 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1650 eval $ac_var=\$ac_val;;
1651 esac
1652 # Be sure to have absolute directory names.
1653 case $ac_val in
1654 [\\/$]* | ?:[\\/]* ) continue;;
1655 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1656 esac
cristy98dddb52010-11-04 00:30:15 +00001657 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001658done
1659
1660# There might be people who depend on the old broken behavior: `$host'
1661# used to hold the argument of --host etc.
1662# FIXME: To remove some day.
1663build=$build_alias
1664host=$host_alias
1665target=$target_alias
1666
1667# FIXME: To remove some day.
1668if test "x$host_alias" != x; then
1669 if test "x$build_alias" = x; then
1670 cross_compiling=maybe
cristy3ed852e2009-09-05 21:47:34 +00001671 elif test "x$build_alias" != "x$host_alias"; then
1672 cross_compiling=yes
1673 fi
1674fi
1675
1676ac_tool_prefix=
1677test -n "$host_alias" && ac_tool_prefix=$host_alias-
1678
1679test "$silent" = yes && exec 6>/dev/null
1680
1681
1682ac_pwd=`pwd` && test -n "$ac_pwd" &&
1683ac_ls_di=`ls -di .` &&
1684ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001685 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001686test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001687 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001688
1689
1690# Find the source files, if location was not specified.
1691if test -z "$srcdir"; then
1692 ac_srcdir_defaulted=yes
1693 # Try the directory containing this script, then the parent directory.
1694 ac_confdir=`$as_dirname -- "$as_myself" ||
1695$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1696 X"$as_myself" : 'X\(//\)[^/]' \| \
1697 X"$as_myself" : 'X\(//\)$' \| \
1698 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1699$as_echo X"$as_myself" |
1700 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1701 s//\1/
1702 q
1703 }
1704 /^X\(\/\/\)[^/].*/{
1705 s//\1/
1706 q
1707 }
1708 /^X\(\/\/\)$/{
1709 s//\1/
1710 q
1711 }
1712 /^X\(\/\).*/{
1713 s//\1/
1714 q
1715 }
1716 s/.*/./; q'`
1717 srcdir=$ac_confdir
1718 if test ! -r "$srcdir/$ac_unique_file"; then
1719 srcdir=..
1720 fi
1721else
1722 ac_srcdir_defaulted=no
1723fi
1724if test ! -r "$srcdir/$ac_unique_file"; then
1725 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001726 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001727fi
1728ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1729ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001730 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001731 pwd)`
1732# When building in place, set srcdir=.
1733if test "$ac_abs_confdir" = "$ac_pwd"; then
1734 srcdir=.
1735fi
1736# Remove unnecessary trailing slashes from srcdir.
1737# Double slashes in file names in object file debugging info
1738# mess up M-x gdb in Emacs.
1739case $srcdir in
1740*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1741esac
1742for ac_var in $ac_precious_vars; do
1743 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1744 eval ac_env_${ac_var}_value=\$${ac_var}
1745 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1746 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1747done
1748
1749#
1750# Report the --help message.
1751#
1752if test "$ac_init_help" = "long"; then
1753 # Omit some internal or obsolete options to make the list less imposing.
1754 # This message is too long to be a string in the A/UX 3.1 sh.
1755 cat <<_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00001756\`configure' configures ImageMagick 7.0.0-0 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001757
1758Usage: $0 [OPTION]... [VAR=VALUE]...
1759
1760To assign environment variables (e.g., CC, CFLAGS...), specify them as
1761VAR=VALUE. See below for descriptions of some of the useful variables.
1762
1763Defaults for the options are specified in brackets.
1764
1765Configuration:
1766 -h, --help display this help and exit
1767 --help=short display options specific to this package
1768 --help=recursive display the short help of all the included packages
1769 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001770 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001771 --cache-file=FILE cache test results in FILE [disabled]
1772 -C, --config-cache alias for \`--cache-file=config.cache'
1773 -n, --no-create do not create output files
1774 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1775
1776Installation directories:
1777 --prefix=PREFIX install architecture-independent files in PREFIX
1778 [$ac_default_prefix]
1779 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1780 [PREFIX]
1781
1782By default, \`make install' will install all the files in
1783\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1784an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1785for instance \`--prefix=\$HOME'.
1786
1787For better control, use the options below.
1788
1789Fine tuning of the installation directories:
1790 --bindir=DIR user executables [EPREFIX/bin]
1791 --sbindir=DIR system admin executables [EPREFIX/sbin]
1792 --libexecdir=DIR program executables [EPREFIX/libexec]
1793 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1794 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1795 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1796 --libdir=DIR object code libraries [EPREFIX/lib]
1797 --includedir=DIR C header files [PREFIX/include]
1798 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1799 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1800 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1801 --infodir=DIR info documentation [DATAROOTDIR/info]
1802 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1803 --mandir=DIR man documentation [DATAROOTDIR/man]
cristy09b53e12011-10-14 12:47:22 +00001804 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
cristy3ed852e2009-09-05 21:47:34 +00001805 --htmldir=DIR html documentation [DOCDIR]
1806 --dvidir=DIR dvi documentation [DOCDIR]
1807 --pdfdir=DIR pdf documentation [DOCDIR]
1808 --psdir=DIR ps documentation [DOCDIR]
1809_ACEOF
1810
1811 cat <<\_ACEOF
1812
cristy73bd4a52010-10-05 11:24:23 +00001813Program names:
1814 --program-prefix=PREFIX prepend PREFIX to installed program names
1815 --program-suffix=SUFFIX append SUFFIX to installed program names
1816 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1817
cristy3ed852e2009-09-05 21:47:34 +00001818X features:
1819 --x-includes=DIR X include files are in DIR
1820 --x-libraries=DIR X library files are in DIR
1821
1822System types:
1823 --build=BUILD configure for building on BUILD [guessed]
1824 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1825 --target=TARGET configure for building compilers for TARGET [HOST]
1826_ACEOF
1827fi
1828
1829if test -n "$ac_init_help"; then
1830 case $ac_init_help in
cristy29eb34e2011-10-16 00:46:08 +00001831 short | recursive ) echo "Configuration of ImageMagick 7.0.0-0:";;
cristy3ed852e2009-09-05 21:47:34 +00001832 esac
1833 cat <<\_ACEOF
1834
1835Optional Features:
1836 --disable-option-checking ignore unrecognized --enable/--with options
1837 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1838 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristyc0890a62012-07-19 00:18:20 +00001839 --enable-silent-rules less verbose build output (undo: "make V=1")
1840 --disable-silent-rules verbose build output (undo: "make V=0")
1841 --enable-dependency-tracking
1842 do not reject slow dependency extractors
1843 --disable-dependency-tracking
1844 speeds up one-time build
cristy9b86f202012-11-28 21:55:35 +00001845 --enable-ld-version-script
1846 enable linker version script (default is enabled
1847 when possible)
cristya3824692012-03-30 17:22:07 +00001848 --enable-bounds-checking
1849 enable run-time bounds-checking
cristy3ed852e2009-09-05 21:47:34 +00001850 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001851 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001852 --disable-openmp do not use OpenMP
cristy48794642012-09-02 15:19:08 +00001853 --enable-opencl enable OpenCL support
cristy3ed852e2009-09-05 21:47:34 +00001854 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001855 --enable-shared[=PKGS] build shared libraries [default=yes]
1856 --enable-static[=PKGS] build static libraries [default=yes]
1857 --enable-fast-install[=PKGS]
1858 optimize for fast installation [default=yes]
1859 --disable-libtool-lock avoid locking (might break parallel builds)
cristy3ed852e2009-09-05 21:47:34 +00001860 --enable-delegate-build look for delegate libraries in build directory
1861 --disable-deprecated exclude deprecated methods in MagickCore and
cristy3a75f062012-09-08 23:29:40 +00001862 MagickWand APIs
cristy3ed852e2009-09-05 21:47:34 +00001863 --disable-installed Formally install ImageMagick under PREFIX
1864 --disable-cipher disable enciphering and deciphering image pixels
cristy6e3607c2011-09-13 13:59:17 +00001865 --enable-zero-configuration
1866 enable self-contained, embeddable,
cristy3ed852e2009-09-05 21:47:34 +00001867 zero-configuration ImageMagick
cristyf314dbd2012-11-15 13:35:28 +00001868 --enable-hdri accurately represent the wide range of intensity
cristy3ed852e2009-09-05 21:47:34 +00001869 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001870 --disable-assert disable assert() statements in build
cristyc0890a62012-07-19 00:18:20 +00001871 --enable-maintainer-mode
1872 enable make rules and dependencies not useful (and
1873 sometimes confusing) to the casual installer
cristy3ed852e2009-09-05 21:47:34 +00001874 --enable-ccmalloc enable 'ccmalloc' memory debug support
1875 --enable-efence enable 'efence' memory debug support
1876 --enable-prof enable 'prof' profiling support
1877 --enable-gprof enable 'gprof' profiling support
1878 --enable-gcov enable 'gcov' profiling support
cristy71d8c202012-03-20 17:05:01 +00001879 --enable-legacy-support install legacy command-line utilities (default disabled)
cristya0b81c32010-01-22 02:54:33 +00001880 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001881
1882Optional Packages:
1883 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1884 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001885 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
cristy7247bba2012-02-05 16:37:27 +00001886 --with-dmalloc use dmalloc, as in http://www.dmalloc.com
cristy37110d62012-03-01 18:38:20 +00001887 --with-gcc-arch=<arch> use architecture <arch> for gcc -march/-mtune,
1888 instead of guessing
cristy670aa3c2011-11-03 00:54:00 +00001889 --includearch-dir=DIR ARCH specific include directory
1890 --sharearch-dir=DIR ARCH specific config directory
cristy2ec87cc2013-02-18 17:46:50 +00001891 --with-pkgconfigdir=DIR Path to the pkgconfig directory [LIBDIR/pkgconfig]
cristy3ed852e2009-09-05 21:47:34 +00001892 --without-threads disable threads support
cristy99bd5232011-12-07 14:38:20 +00001893 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
cristy73bd4a52010-10-05 11:24:23 +00001894 both]
cristyda16f162011-02-19 23:52:17 +00001895 --with-sysroot=DIR Search for dependent libraries within DIR
1896 (or the compiler's sysroot if not specified).
cristy3ed852e2009-09-05 21:47:34 +00001897 --with-modules enable building dynamically loadable modules
1898 --with-method-prefix=PREFIX
1899 prefix MagickCore API methods
1900 --with-quantum-depth=DEPTH
1901 number of bits in a pixel quantum (default 16)
1902 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1903 memory)
1904 --with-frozenpaths freeze delegate paths
1905 --without-magick-plus-plus
1906 disable build/install of Magick++
cristy3a75f062012-09-08 23:29:40 +00001907 --with-package-release-name=NAME
1908 encode this name into the shared library
cristy3ed852e2009-09-05 21:47:34 +00001909 --with-perl enable build/install of PerlMagick
1910 --with-perl-options=OPTIONS
1911 options to pass on command-line when generating
cristyfc3d0222012-02-07 15:05:57 +00001912 PerlMagick build file
cristy3ed852e2009-09-05 21:47:34 +00001913 --with-umem enable umem memory allocation library support
1914 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1915 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001916 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001917 --without-zlib disable ZLIB support
1918 --with-autotrace enable autotrace support
1919 --without-dps disable Display Postscript support
1920 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001921 --with-dejavu-font-dir=DIR
1922 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001923 --without-fftw disable FFTW support
1924 --without-fpx disable FlashPIX support
1925 --without-fontconfig disable fontconfig support
cristy81beccd2011-10-03 18:17:24 +00001926 --without-freetype disable Freetype support
cristybdabdd62013-03-04 17:43:36 +00001927 --with-gslib enable Ghostscript library support
cristy3ed852e2009-09-05 21:47:34 +00001928 --with-fontpath=DIR prepend to default font search path
1929 --with-gs-font-dir=DIR Ghostscript font directory
cristybdabdd62013-03-04 17:43:36 +00001930 --with-gvc enable GVC support
cristy3ed852e2009-09-05 21:47:34 +00001931 --without-jbig disable JBIG support
1932 --without-jpeg disable JPEG support
1933 --without-jp2 disable JPEG-2000 support
cristy71203402010-06-18 13:12:03 +00001934 --without-lcms disable lcms (v1.1X) support
1935 --without-lcms2 disable lcms (v2.X) support
cristyf0c78232010-03-15 12:53:40 +00001936 --without-lqr disable Liquid Rescale support
cristyfbb0ef02010-12-19 02:32:11 +00001937 --without-lzma disable LZMA support
cristy3ed852e2009-09-05 21:47:34 +00001938 --without-openexr disable OpenEXR support
cristy41cbe8a2011-10-27 01:35:18 +00001939 --without-pango disable PANGO support
cristy3ed852e2009-09-05 21:47:34 +00001940 --without-png disable PNG support
cristy1164d5f2012-08-15 00:58:25 +00001941 --without-rsvg enable RSVG support
cristy3ed852e2009-09-05 21:47:34 +00001942 --without-tiff disable TIFF support
cristyb1860752011-03-14 00:27:46 +00001943 --without-webp disable WEBP support
cristy3ed852e2009-09-05 21:47:34 +00001944 --with-windows-font-dir=DIR
1945 directory containing MS-Windows fonts
cristyde3fc5d2012-02-12 15:40:47 +00001946 --with-wmf enable WMF support
cristy3ed852e2009-09-05 21:47:34 +00001947 --without-xml disable XML support
1948
1949Some influential environment variables:
1950 CC C compiler command
1951 CFLAGS C compiler flags
1952 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1953 nonstandard directory <lib dir>
1954 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001955 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001956 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001957 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001958 CXX C++ compiler command
1959 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00001960 PKG_CONFIG path to pkg-config utility
nicolas6237c462010-10-05 06:11:49 +00001961 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00001962 XMKMF Path to xmkmf, Makefile generator for X Window System
1963 AUTOTRACE_CFLAGS
1964 C compiler flags for AUTOTRACE, overriding pkg-config
1965 AUTOTRACE_LIBS
1966 linker flags for AUTOTRACE, overriding pkg-config
1967 FONTCONFIG_CFLAGS
1968 C compiler flags for FONTCONFIG, overriding pkg-config
1969 FONTCONFIG_LIBS
1970 linker flags for FONTCONFIG, overriding pkg-config
cristy03f187e2013-01-24 00:22:19 +00001971 FREETYPE_CFLAGS
1972 C compiler flags for FREETYPE, overriding pkg-config
1973 FREETYPE_LIBS
1974 linker flags for FREETYPE, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001975 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
1976 GVC_LIBS linker flags for GVC, overriding pkg-config
1977 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
1978 LQR_LIBS linker flags for LQR, overriding pkg-config
cristyb94e5002011-11-14 13:20:10 +00001979 LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config
1980 LZMA_LIBS linker flags for LZMA, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001981 OPENEXR_CFLAGS
1982 C compiler flags for OPENEXR, overriding pkg-config
1983 OPENEXR_LIBS
1984 linker flags for OPENEXR, overriding pkg-config
cristy41cbe8a2011-10-27 01:35:18 +00001985 PANGO_CFLAGS
1986 C compiler flags for PANGO, overriding pkg-config
1987 PANGO_LIBS linker flags for PANGO, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001988 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
1989 RSVG_LIBS linker flags for RSVG, overriding pkg-config
1990 CAIRO_SVG_CFLAGS
1991 C compiler flags for CAIRO_SVG, overriding pkg-config
1992 CAIRO_SVG_LIBS
1993 linker flags for CAIRO_SVG, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00001994
1995Use these variables to override the choices made by `configure' or to help
1996it to find libraries and programs with nonstandard names/locations.
1997
1998Report bugs to <http://www.imagemagick.org>.
1999_ACEOF
2000ac_status=$?
2001fi
2002
2003if test "$ac_init_help" = "recursive"; then
2004 # If there are subdirs, report their specific --help.
2005 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2006 test -d "$ac_dir" ||
2007 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2008 continue
2009 ac_builddir=.
2010
2011case "$ac_dir" in
2012.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2013*)
2014 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2015 # A ".." for each directory in $ac_dir_suffix.
2016 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2017 case $ac_top_builddir_sub in
2018 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2019 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2020 esac ;;
2021esac
2022ac_abs_top_builddir=$ac_pwd
2023ac_abs_builddir=$ac_pwd$ac_dir_suffix
2024# for backward compatibility:
2025ac_top_builddir=$ac_top_build_prefix
2026
2027case $srcdir in
2028 .) # We are building in place.
2029 ac_srcdir=.
2030 ac_top_srcdir=$ac_top_builddir_sub
2031 ac_abs_top_srcdir=$ac_pwd ;;
2032 [\\/]* | ?:[\\/]* ) # Absolute name.
2033 ac_srcdir=$srcdir$ac_dir_suffix;
2034 ac_top_srcdir=$srcdir
2035 ac_abs_top_srcdir=$srcdir ;;
2036 *) # Relative name.
2037 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2038 ac_top_srcdir=$ac_top_build_prefix$srcdir
2039 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2040esac
2041ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2042
2043 cd "$ac_dir" || { ac_status=$?; continue; }
2044 # Check for guested configure.
2045 if test -f "$ac_srcdir/configure.gnu"; then
2046 echo &&
2047 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2048 elif test -f "$ac_srcdir/configure"; then
2049 echo &&
2050 $SHELL "$ac_srcdir/configure" --help=recursive
2051 else
2052 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2053 fi || ac_status=$?
2054 cd "$ac_pwd" || { ac_status=$?; break; }
2055 done
2056fi
2057
2058test -n "$ac_init_help" && exit $ac_status
2059if $ac_init_version; then
2060 cat <<\_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00002061ImageMagick configure 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +00002062generated by GNU Autoconf 2.69
cristy3ed852e2009-09-05 21:47:34 +00002063
cristy14fefe52012-05-21 00:59:18 +00002064Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002065This configure script is free software; the Free Software Foundation
2066gives unlimited permission to copy, distribute and modify it.
2067_ACEOF
2068 exit
2069fi
cristy8b350f62009-11-15 23:12:43 +00002070
2071## ------------------------ ##
2072## Autoconf initialization. ##
2073## ------------------------ ##
2074
2075# ac_fn_c_try_compile LINENO
2076# --------------------------
2077# Try to compile conftest.$ac_ext, and return whether this succeeded.
2078ac_fn_c_try_compile ()
2079{
2080 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2081 rm -f conftest.$ac_objext
2082 if { { ac_try="$ac_compile"
2083case "(($ac_try" in
2084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2085 *) ac_try_echo=$ac_try;;
2086esac
2087eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2088$as_echo "$ac_try_echo"; } >&5
2089 (eval "$ac_compile") 2>conftest.err
2090 ac_status=$?
2091 if test -s conftest.err; then
2092 grep -v '^ *+' conftest.err >conftest.er1
2093 cat conftest.er1 >&5
2094 mv -f conftest.er1 conftest.err
2095 fi
2096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2097 test $ac_status = 0; } && {
2098 test -z "$ac_c_werror_flag" ||
2099 test ! -s conftest.err
2100 } && test -s conftest.$ac_objext; then :
2101 ac_retval=0
2102else
2103 $as_echo "$as_me: failed program was:" >&5
2104sed 's/^/| /' conftest.$ac_ext >&5
2105
2106 ac_retval=1
2107fi
cristyda16f162011-02-19 23:52:17 +00002108 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002109 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002110
2111} # ac_fn_c_try_compile
2112
cristy95646052009-11-28 23:05:30 +00002113# ac_fn_c_try_cpp LINENO
2114# ----------------------
2115# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2116ac_fn_c_try_cpp ()
2117{
2118 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2119 if { { ac_try="$ac_cpp conftest.$ac_ext"
2120case "(($ac_try" in
2121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2122 *) ac_try_echo=$ac_try;;
2123esac
2124eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2125$as_echo "$ac_try_echo"; } >&5
2126 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2127 ac_status=$?
2128 if test -s conftest.err; then
2129 grep -v '^ *+' conftest.err >conftest.er1
2130 cat conftest.er1 >&5
2131 mv -f conftest.er1 conftest.err
2132 fi
2133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002134 test $ac_status = 0; } > conftest.i && {
cristy95646052009-11-28 23:05:30 +00002135 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2136 test ! -s conftest.err
2137 }; then :
2138 ac_retval=0
2139else
2140 $as_echo "$as_me: failed program was:" >&5
2141sed 's/^/| /' conftest.$ac_ext >&5
2142
2143 ac_retval=1
2144fi
cristyda16f162011-02-19 23:52:17 +00002145 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy95646052009-11-28 23:05:30 +00002146 as_fn_set_status $ac_retval
2147
2148} # ac_fn_c_try_cpp
2149
cristy8b350f62009-11-15 23:12:43 +00002150# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2151# -------------------------------------------------------
2152# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2153# the include files in INCLUDES and setting the cache variable VAR
2154# accordingly.
2155ac_fn_c_check_header_mongrel ()
2156{
2157 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002158 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2160$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002161if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002162 $as_echo_n "(cached) " >&6
2163fi
2164eval ac_res=\$$3
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2166$as_echo "$ac_res" >&6; }
2167else
2168 # Is the header compilable?
2169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2170$as_echo_n "checking $2 usability... " >&6; }
2171cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2172/* end confdefs.h. */
2173$4
2174#include <$2>
2175_ACEOF
2176if ac_fn_c_try_compile "$LINENO"; then :
2177 ac_header_compiler=yes
2178else
2179 ac_header_compiler=no
2180fi
2181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2183$as_echo "$ac_header_compiler" >&6; }
2184
2185# Is the header present?
2186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2187$as_echo_n "checking $2 presence... " >&6; }
2188cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2189/* end confdefs.h. */
2190#include <$2>
2191_ACEOF
2192if ac_fn_c_try_cpp "$LINENO"; then :
2193 ac_header_preproc=yes
2194else
2195 ac_header_preproc=no
2196fi
cristyda16f162011-02-19 23:52:17 +00002197rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2199$as_echo "$ac_header_preproc" >&6; }
2200
2201# So? What about this header?
2202case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2203 yes:no: )
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2205$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2207$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2208 ;;
2209 no:yes:* )
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2211$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2213$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2215$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2217$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2219$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002220( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002221## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002222## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002223 ) | sed "s/^/$as_me: WARNING: /" >&2
2224 ;;
2225esac
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2227$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002228if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002229 $as_echo_n "(cached) " >&6
2230else
2231 eval "$3=\$ac_header_compiler"
2232fi
2233eval ac_res=\$$3
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2235$as_echo "$ac_res" >&6; }
2236fi
cristyda16f162011-02-19 23:52:17 +00002237 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002238
2239} # ac_fn_c_check_header_mongrel
2240
2241# ac_fn_c_try_run LINENO
2242# ----------------------
2243# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2244# that executables *can* be run.
2245ac_fn_c_try_run ()
2246{
2247 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2248 if { { ac_try="$ac_link"
2249case "(($ac_try" in
2250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2251 *) ac_try_echo=$ac_try;;
2252esac
2253eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2254$as_echo "$ac_try_echo"; } >&5
2255 (eval "$ac_link") 2>&5
2256 ac_status=$?
2257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2258 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2259 { { case "(($ac_try" in
2260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2261 *) ac_try_echo=$ac_try;;
2262esac
2263eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2264$as_echo "$ac_try_echo"; } >&5
2265 (eval "$ac_try") 2>&5
2266 ac_status=$?
2267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2268 test $ac_status = 0; }; }; then :
2269 ac_retval=0
2270else
2271 $as_echo "$as_me: program exited with status $ac_status" >&5
2272 $as_echo "$as_me: failed program was:" >&5
2273sed 's/^/| /' conftest.$ac_ext >&5
2274
2275 ac_retval=$ac_status
2276fi
2277 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002278 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002279 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002280
2281} # ac_fn_c_try_run
2282
2283# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2284# -------------------------------------------------------
2285# Tests whether HEADER exists and can be compiled using the include files in
2286# INCLUDES, setting the cache variable VAR accordingly.
2287ac_fn_c_check_header_compile ()
2288{
2289 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2291$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002292if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002293 $as_echo_n "(cached) " >&6
2294else
2295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2296/* end confdefs.h. */
2297$4
2298#include <$2>
2299_ACEOF
2300if ac_fn_c_try_compile "$LINENO"; then :
2301 eval "$3=yes"
2302else
2303 eval "$3=no"
2304fi
2305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2306fi
2307eval ac_res=\$$3
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2309$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002310 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002311
2312} # ac_fn_c_check_header_compile
2313
cristya0b81c32010-01-22 02:54:33 +00002314# ac_fn_cxx_try_compile LINENO
2315# ----------------------------
2316# Try to compile conftest.$ac_ext, and return whether this succeeded.
2317ac_fn_cxx_try_compile ()
2318{
2319 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2320 rm -f conftest.$ac_objext
2321 if { { ac_try="$ac_compile"
2322case "(($ac_try" in
2323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2324 *) ac_try_echo=$ac_try;;
2325esac
2326eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2327$as_echo "$ac_try_echo"; } >&5
2328 (eval "$ac_compile") 2>conftest.err
2329 ac_status=$?
2330 if test -s conftest.err; then
2331 grep -v '^ *+' conftest.err >conftest.er1
2332 cat conftest.er1 >&5
2333 mv -f conftest.er1 conftest.err
2334 fi
2335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2336 test $ac_status = 0; } && {
2337 test -z "$ac_cxx_werror_flag" ||
2338 test ! -s conftest.err
2339 } && test -s conftest.$ac_objext; then :
2340 ac_retval=0
2341else
2342 $as_echo "$as_me: failed program was:" >&5
2343sed 's/^/| /' conftest.$ac_ext >&5
2344
2345 ac_retval=1
2346fi
cristyda16f162011-02-19 23:52:17 +00002347 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristya0b81c32010-01-22 02:54:33 +00002348 as_fn_set_status $ac_retval
2349
2350} # ac_fn_cxx_try_compile
2351
cristy8b350f62009-11-15 23:12:43 +00002352# ac_fn_c_try_link LINENO
2353# -----------------------
2354# Try to link conftest.$ac_ext, and return whether this succeeded.
2355ac_fn_c_try_link ()
2356{
2357 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2358 rm -f conftest.$ac_objext conftest$ac_exeext
2359 if { { ac_try="$ac_link"
2360case "(($ac_try" in
2361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2362 *) ac_try_echo=$ac_try;;
2363esac
2364eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2365$as_echo "$ac_try_echo"; } >&5
2366 (eval "$ac_link") 2>conftest.err
2367 ac_status=$?
2368 if test -s conftest.err; then
2369 grep -v '^ *+' conftest.err >conftest.er1
2370 cat conftest.er1 >&5
2371 mv -f conftest.er1 conftest.err
2372 fi
2373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2374 test $ac_status = 0; } && {
2375 test -z "$ac_c_werror_flag" ||
2376 test ! -s conftest.err
2377 } && test -s conftest$ac_exeext && {
2378 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002379 test -x conftest$ac_exeext
cristy8b350f62009-11-15 23:12:43 +00002380 }; then :
2381 ac_retval=0
2382else
2383 $as_echo "$as_me: failed program was:" >&5
2384sed 's/^/| /' conftest.$ac_ext >&5
2385
2386 ac_retval=1
2387fi
2388 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2389 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2390 # interfere with the next link command; also delete a directory that is
2391 # left behind by Apple's compiler. We do this before executing the actions.
2392 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002393 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002394 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002395
2396} # ac_fn_c_try_link
2397
cristy73bd4a52010-10-05 11:24:23 +00002398# ac_fn_c_check_func LINENO FUNC VAR
2399# ----------------------------------
2400# Tests whether FUNC exists, setting the cache variable VAR accordingly
2401ac_fn_c_check_func ()
2402{
2403 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2405$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002406if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002407 $as_echo_n "(cached) " >&6
2408else
2409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2410/* end confdefs.h. */
2411/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2412 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2413#define $2 innocuous_$2
2414
2415/* System header to define __stub macros and hopefully few prototypes,
2416 which can conflict with char $2 (); below.
2417 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2418 <limits.h> exists even on freestanding compilers. */
2419
2420#ifdef __STDC__
2421# include <limits.h>
2422#else
2423# include <assert.h>
2424#endif
2425
2426#undef $2
2427
2428/* Override any GCC internal prototype to avoid an error.
2429 Use char because int might match the return type of a GCC
2430 builtin and then its argument prototype would still apply. */
2431#ifdef __cplusplus
2432extern "C"
2433#endif
2434char $2 ();
2435/* The GNU C library defines this for functions which it implements
2436 to always fail with ENOSYS. Some functions are actually named
2437 something starting with __ and the normal name is an alias. */
2438#if defined __stub_$2 || defined __stub___$2
2439choke me
2440#endif
2441
2442int
2443main ()
2444{
2445return $2 ();
2446 ;
2447 return 0;
2448}
2449_ACEOF
2450if ac_fn_c_try_link "$LINENO"; then :
2451 eval "$3=yes"
2452else
2453 eval "$3=no"
2454fi
2455rm -f core conftest.err conftest.$ac_objext \
2456 conftest$ac_exeext conftest.$ac_ext
2457fi
2458eval ac_res=\$$3
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2460$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002461 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002462
2463} # ac_fn_c_check_func
2464
2465# ac_fn_cxx_try_cpp LINENO
2466# ------------------------
2467# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2468ac_fn_cxx_try_cpp ()
2469{
2470 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2471 if { { ac_try="$ac_cpp conftest.$ac_ext"
2472case "(($ac_try" in
2473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2474 *) ac_try_echo=$ac_try;;
2475esac
2476eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2477$as_echo "$ac_try_echo"; } >&5
2478 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2479 ac_status=$?
2480 if test -s conftest.err; then
2481 grep -v '^ *+' conftest.err >conftest.er1
2482 cat conftest.er1 >&5
2483 mv -f conftest.er1 conftest.err
2484 fi
2485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002486 test $ac_status = 0; } > conftest.i && {
cristy73bd4a52010-10-05 11:24:23 +00002487 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2488 test ! -s conftest.err
2489 }; then :
2490 ac_retval=0
2491else
2492 $as_echo "$as_me: failed program was:" >&5
2493sed 's/^/| /' conftest.$ac_ext >&5
2494
2495 ac_retval=1
2496fi
cristyda16f162011-02-19 23:52:17 +00002497 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002498 as_fn_set_status $ac_retval
2499
2500} # ac_fn_cxx_try_cpp
2501
2502# ac_fn_cxx_try_link LINENO
2503# -------------------------
2504# Try to link conftest.$ac_ext, and return whether this succeeded.
2505ac_fn_cxx_try_link ()
2506{
2507 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2508 rm -f conftest.$ac_objext conftest$ac_exeext
2509 if { { ac_try="$ac_link"
2510case "(($ac_try" in
2511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2512 *) ac_try_echo=$ac_try;;
2513esac
2514eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2515$as_echo "$ac_try_echo"; } >&5
2516 (eval "$ac_link") 2>conftest.err
2517 ac_status=$?
2518 if test -s conftest.err; then
2519 grep -v '^ *+' conftest.err >conftest.er1
2520 cat conftest.er1 >&5
2521 mv -f conftest.er1 conftest.err
2522 fi
2523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2524 test $ac_status = 0; } && {
2525 test -z "$ac_cxx_werror_flag" ||
2526 test ! -s conftest.err
2527 } && test -s conftest$ac_exeext && {
2528 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002529 test -x conftest$ac_exeext
cristy73bd4a52010-10-05 11:24:23 +00002530 }; then :
2531 ac_retval=0
2532else
2533 $as_echo "$as_me: failed program was:" >&5
2534sed 's/^/| /' conftest.$ac_ext >&5
2535
2536 ac_retval=1
2537fi
2538 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2539 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2540 # interfere with the next link command; also delete a directory that is
2541 # left behind by Apple's compiler. We do this before executing the actions.
2542 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002543 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002544 as_fn_set_status $ac_retval
2545
2546} # ac_fn_cxx_try_link
2547
cristy8b350f62009-11-15 23:12:43 +00002548# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2549# -------------------------------------------
2550# Tests whether TYPE exists after having included INCLUDES, setting cache
2551# variable VAR accordingly.
2552ac_fn_c_check_type ()
2553{
2554 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2556$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002557if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002558 $as_echo_n "(cached) " >&6
2559else
2560 eval "$3=no"
2561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2562/* end confdefs.h. */
2563$4
2564int
2565main ()
2566{
2567if (sizeof ($2))
2568 return 0;
2569 ;
2570 return 0;
2571}
2572_ACEOF
2573if ac_fn_c_try_compile "$LINENO"; then :
2574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2575/* end confdefs.h. */
2576$4
2577int
2578main ()
2579{
2580if (sizeof (($2)))
2581 return 0;
2582 ;
2583 return 0;
2584}
2585_ACEOF
2586if ac_fn_c_try_compile "$LINENO"; then :
2587
2588else
2589 eval "$3=yes"
2590fi
2591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2592fi
2593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2594fi
2595eval ac_res=\$$3
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2597$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002598 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002599
2600} # ac_fn_c_check_type
2601
cristy92703d82010-04-26 00:18:18 +00002602# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2603# ----------------------------------------------------
2604# Tries to find if the field MEMBER exists in type AGGR, after including
2605# INCLUDES, setting cache variable VAR accordingly.
2606ac_fn_c_check_member ()
2607{
2608 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2610$as_echo_n "checking for $2.$3... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002611if eval \${$4+:} false; then :
cristy92703d82010-04-26 00:18:18 +00002612 $as_echo_n "(cached) " >&6
2613else
2614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2615/* end confdefs.h. */
2616$5
2617int
2618main ()
2619{
2620static $2 ac_aggr;
2621if (ac_aggr.$3)
2622return 0;
2623 ;
2624 return 0;
2625}
2626_ACEOF
2627if ac_fn_c_try_compile "$LINENO"; then :
2628 eval "$4=yes"
2629else
2630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2631/* end confdefs.h. */
2632$5
2633int
2634main ()
2635{
2636static $2 ac_aggr;
2637if (sizeof ac_aggr.$3)
2638return 0;
2639 ;
2640 return 0;
2641}
2642_ACEOF
2643if ac_fn_c_try_compile "$LINENO"; then :
2644 eval "$4=yes"
2645else
2646 eval "$4=no"
2647fi
2648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2649fi
2650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2651fi
2652eval ac_res=\$$4
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2654$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002655 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy92703d82010-04-26 00:18:18 +00002656
2657} # ac_fn_c_check_member
2658
cristy5eef09f2012-10-16 12:08:28 +00002659# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2660# ---------------------------------------------
2661# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2662# accordingly.
2663ac_fn_c_check_decl ()
2664{
2665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2666 as_decl_name=`echo $2|sed 's/ *(.*//'`
2667 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2669$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2670if eval \${$3+:} false; then :
2671 $as_echo_n "(cached) " >&6
2672else
2673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2674/* end confdefs.h. */
2675$4
2676int
2677main ()
2678{
2679#ifndef $as_decl_name
2680#ifdef __cplusplus
2681 (void) $as_decl_use;
2682#else
2683 (void) $as_decl_name;
2684#endif
2685#endif
2686
2687 ;
2688 return 0;
2689}
2690_ACEOF
2691if ac_fn_c_try_compile "$LINENO"; then :
2692 eval "$3=yes"
2693else
2694 eval "$3=no"
2695fi
2696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2697fi
2698eval ac_res=\$$3
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2700$as_echo "$ac_res" >&6; }
2701 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2702
2703} # ac_fn_c_check_decl
2704
cristy501c8042011-05-26 17:46:28 +00002705# ac_fn_c_find_intX_t LINENO BITS VAR
2706# -----------------------------------
2707# Finds a signed integer type with width BITS, setting cache variable VAR
2708# accordingly.
2709ac_fn_c_find_intX_t ()
2710{
2711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2713$as_echo_n "checking for int$2_t... " >&6; }
2714if eval \${$3+:} false; then :
2715 $as_echo_n "(cached) " >&6
2716else
2717 eval "$3=no"
2718 # Order is important - never check a type that is potentially smaller
2719 # than half of the expected target width.
2720 for ac_type in int$2_t 'int' 'long int' \
2721 'long long int' 'short int' 'signed char'; do
2722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2723/* end confdefs.h. */
2724$ac_includes_default
2725 enum { N = $2 / 2 - 1 };
2726int
2727main ()
2728{
2729static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
cristy14fefe52012-05-21 00:59:18 +00002730test_array [0] = 0;
2731return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002732
2733 ;
2734 return 0;
2735}
2736_ACEOF
2737if ac_fn_c_try_compile "$LINENO"; then :
2738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2739/* end confdefs.h. */
2740$ac_includes_default
2741 enum { N = $2 / 2 - 1 };
2742int
2743main ()
2744{
2745static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2746 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
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
2756else
2757 case $ac_type in #(
2758 int$2_t) :
2759 eval "$3=yes" ;; #(
2760 *) :
2761 eval "$3=\$ac_type" ;;
2762esac
2763fi
2764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2765fi
2766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2767 if eval test \"x\$"$3"\" = x"no"; then :
2768
2769else
2770 break
2771fi
2772 done
2773fi
2774eval ac_res=\$$3
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2776$as_echo "$ac_res" >&6; }
2777 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2778
2779} # ac_fn_c_find_intX_t
2780
2781# ac_fn_c_find_uintX_t LINENO BITS VAR
2782# ------------------------------------
2783# Finds an unsigned integer type with width BITS, setting cache variable VAR
2784# accordingly.
2785ac_fn_c_find_uintX_t ()
2786{
2787 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2789$as_echo_n "checking for uint$2_t... " >&6; }
2790if eval \${$3+:} false; then :
2791 $as_echo_n "(cached) " >&6
2792else
2793 eval "$3=no"
2794 # Order is important - never check a type that is potentially smaller
2795 # than half of the expected target width.
2796 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2797 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2799/* end confdefs.h. */
2800$ac_includes_default
2801int
2802main ()
2803{
2804static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
cristy14fefe52012-05-21 00:59:18 +00002805test_array [0] = 0;
2806return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002807
2808 ;
2809 return 0;
2810}
2811_ACEOF
2812if ac_fn_c_try_compile "$LINENO"; then :
2813 case $ac_type in #(
2814 uint$2_t) :
2815 eval "$3=yes" ;; #(
2816 *) :
2817 eval "$3=\$ac_type" ;;
2818esac
2819fi
2820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2821 if eval test \"x\$"$3"\" = x"no"; then :
2822
2823else
2824 break
2825fi
2826 done
2827fi
2828eval ac_res=\$$3
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2830$as_echo "$ac_res" >&6; }
2831 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2832
2833} # ac_fn_c_find_uintX_t
2834
cristy8b350f62009-11-15 23:12:43 +00002835# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2836# --------------------------------------------
2837# Tries to find the compile-time value of EXPR in a program that includes
2838# INCLUDES, setting VAR accordingly. Returns whether the value could be
2839# computed
2840ac_fn_c_compute_int ()
2841{
2842 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2843 if test "$cross_compiling" = yes; then
2844 # Depending upon the size, compute the lo and hi bounds.
2845cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2846/* end confdefs.h. */
2847$4
2848int
2849main ()
2850{
2851static int test_array [1 - 2 * !(($2) >= 0)];
cristy14fefe52012-05-21 00:59:18 +00002852test_array [0] = 0;
2853return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002854
2855 ;
2856 return 0;
2857}
2858_ACEOF
2859if ac_fn_c_try_compile "$LINENO"; then :
2860 ac_lo=0 ac_mid=0
2861 while :; do
2862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2863/* end confdefs.h. */
2864$4
2865int
2866main ()
2867{
2868static int test_array [1 - 2 * !(($2) <= $ac_mid)];
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_hi=$ac_mid; break
2878else
2879 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2880 if test $ac_lo -le $ac_mid; then
2881 ac_lo= ac_hi=
2882 break
2883 fi
2884 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2885fi
2886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2887 done
2888else
2889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2890/* end confdefs.h. */
2891$4
2892int
2893main ()
2894{
2895static int test_array [1 - 2 * !(($2) < 0)];
cristy14fefe52012-05-21 00:59:18 +00002896test_array [0] = 0;
2897return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002898
2899 ;
2900 return 0;
2901}
2902_ACEOF
2903if ac_fn_c_try_compile "$LINENO"; then :
2904 ac_hi=-1 ac_mid=-1
2905 while :; do
2906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2907/* end confdefs.h. */
2908$4
2909int
2910main ()
2911{
2912static int test_array [1 - 2 * !(($2) >= $ac_mid)];
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_lo=$ac_mid; break
2922else
2923 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2924 if test $ac_mid -le $ac_hi; then
2925 ac_lo= ac_hi=
2926 break
2927 fi
2928 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2929fi
2930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2931 done
2932else
2933 ac_lo= ac_hi=
2934fi
2935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2936fi
2937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2938# Binary search between lo and hi bounds.
2939while test "x$ac_lo" != "x$ac_hi"; do
2940 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2942/* end confdefs.h. */
2943$4
2944int
2945main ()
2946{
2947static int test_array [1 - 2 * !(($2) <= $ac_mid)];
cristy14fefe52012-05-21 00:59:18 +00002948test_array [0] = 0;
2949return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002950
2951 ;
2952 return 0;
2953}
2954_ACEOF
2955if ac_fn_c_try_compile "$LINENO"; then :
2956 ac_hi=$ac_mid
2957else
2958 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2959fi
2960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2961done
2962case $ac_lo in #((
2963?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2964'') ac_retval=1 ;;
2965esac
2966 else
2967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2968/* end confdefs.h. */
2969$4
2970static long int longval () { return $2; }
2971static unsigned long int ulongval () { return $2; }
2972#include <stdio.h>
2973#include <stdlib.h>
2974int
2975main ()
2976{
2977
2978 FILE *f = fopen ("conftest.val", "w");
2979 if (! f)
2980 return 1;
2981 if (($2) < 0)
2982 {
2983 long int i = longval ();
2984 if (i != ($2))
2985 return 1;
2986 fprintf (f, "%ld", i);
2987 }
2988 else
2989 {
2990 unsigned long int i = ulongval ();
2991 if (i != ($2))
2992 return 1;
2993 fprintf (f, "%lu", i);
2994 }
2995 /* Do not output a trailing newline, as this causes \r\n confusion
2996 on some platforms. */
2997 return ferror (f) || fclose (f) != 0;
2998
2999 ;
3000 return 0;
3001}
3002_ACEOF
3003if ac_fn_c_try_run "$LINENO"; then :
3004 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
3005else
3006 ac_retval=1
3007fi
3008rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3009 conftest.$ac_objext conftest.beam conftest.$ac_ext
3010rm -f conftest.val
3011
3012 fi
cristyda16f162011-02-19 23:52:17 +00003013 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00003014 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00003015
3016} # ac_fn_c_compute_int
3017
3018# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
3019# ---------------------------------------------------------
3020# Tests whether HEADER exists, giving a warning if it cannot be compiled using
3021# the include files in INCLUDES and setting the cache variable VAR
3022# accordingly.
3023ac_fn_cxx_check_header_mongrel ()
3024{
3025 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00003026 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3028$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003029if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003030 $as_echo_n "(cached) " >&6
3031fi
3032eval ac_res=\$$3
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3034$as_echo "$ac_res" >&6; }
3035else
3036 # Is the header compilable?
3037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
3038$as_echo_n "checking $2 usability... " >&6; }
3039cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3040/* end confdefs.h. */
3041$4
3042#include <$2>
3043_ACEOF
3044if ac_fn_cxx_try_compile "$LINENO"; then :
3045 ac_header_compiler=yes
3046else
3047 ac_header_compiler=no
3048fi
3049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3051$as_echo "$ac_header_compiler" >&6; }
3052
3053# Is the header present?
3054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3055$as_echo_n "checking $2 presence... " >&6; }
3056cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3057/* end confdefs.h. */
3058#include <$2>
3059_ACEOF
3060if ac_fn_cxx_try_cpp "$LINENO"; then :
3061 ac_header_preproc=yes
3062else
3063 ac_header_preproc=no
3064fi
cristyda16f162011-02-19 23:52:17 +00003065rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00003066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3067$as_echo "$ac_header_preproc" >&6; }
3068
3069# So? What about this header?
3070case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3071 yes:no: )
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3073$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3075$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3076 ;;
3077 no:yes:* )
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3079$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3081$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3083$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3085$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3087$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003088( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00003089## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00003090## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00003091 ) | sed "s/^/$as_me: WARNING: /" >&2
3092 ;;
3093esac
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3095$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003096if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003097 $as_echo_n "(cached) " >&6
3098else
3099 eval "$3=\$ac_header_compiler"
3100fi
3101eval ac_res=\$$3
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3103$as_echo "$ac_res" >&6; }
3104fi
cristyda16f162011-02-19 23:52:17 +00003105 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00003106
3107} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00003108cat >config.log <<_ACEOF
3109This file contains any messages produced by compilers while
3110running configure, to aid debugging if configure makes a mistake.
3111
cristy29eb34e2011-10-16 00:46:08 +00003112It was created by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +00003113generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00003114
3115 $ $0 $@
3116
3117_ACEOF
3118exec 5>>config.log
3119{
3120cat <<_ASUNAME
3121## --------- ##
3122## Platform. ##
3123## --------- ##
3124
3125hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3126uname -m = `(uname -m) 2>/dev/null || echo unknown`
3127uname -r = `(uname -r) 2>/dev/null || echo unknown`
3128uname -s = `(uname -s) 2>/dev/null || echo unknown`
3129uname -v = `(uname -v) 2>/dev/null || echo unknown`
3130
3131/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3132/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3133
3134/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3135/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3136/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3137/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3138/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3139/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3140/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3141
3142_ASUNAME
3143
3144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3145for as_dir in $PATH
3146do
3147 IFS=$as_save_IFS
3148 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003149 $as_echo "PATH: $as_dir"
3150 done
cristy3ed852e2009-09-05 21:47:34 +00003151IFS=$as_save_IFS
3152
3153} >&5
3154
3155cat >&5 <<_ACEOF
3156
3157
3158## ----------- ##
3159## Core tests. ##
3160## ----------- ##
3161
3162_ACEOF
3163
3164
3165# Keep a trace of the command line.
3166# Strip out --no-create and --no-recursion so they do not pile up.
3167# Strip out --silent because we don't want to record it for future runs.
3168# Also quote any args containing shell meta-characters.
3169# Make two passes to allow for proper duplicate-argument suppression.
3170ac_configure_args=
3171ac_configure_args0=
3172ac_configure_args1=
3173ac_must_keep_next=false
3174for ac_pass in 1 2
3175do
3176 for ac_arg
3177 do
3178 case $ac_arg in
3179 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3180 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3181 | -silent | --silent | --silen | --sile | --sil)
3182 continue ;;
3183 *\'*)
3184 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3185 esac
3186 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003187 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003188 2)
cristy8b350f62009-11-15 23:12:43 +00003189 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003190 if test $ac_must_keep_next = true; then
3191 ac_must_keep_next=false # Got value, back to normal.
3192 else
3193 case $ac_arg in
3194 *=* | --config-cache | -C | -disable-* | --disable-* \
3195 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3196 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3197 | -with-* | --with-* | -without-* | --without-* | --x)
3198 case "$ac_configure_args0 " in
3199 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3200 esac
3201 ;;
3202 -* ) ac_must_keep_next=true ;;
3203 esac
3204 fi
cristy8b350f62009-11-15 23:12:43 +00003205 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003206 ;;
3207 esac
3208 done
3209done
cristy8b350f62009-11-15 23:12:43 +00003210{ ac_configure_args0=; unset ac_configure_args0;}
3211{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003212
3213# When interrupted or exit'd, cleanup temporary files, and complete
3214# config.log. We remove comments because anyway the quotes in there
3215# would cause problems or look ugly.
3216# WARNING: Use '\'' to represent an apostrophe within the trap.
3217# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3218trap 'exit_status=$?
3219 # Save into config.log some information that might help in debugging.
3220 {
3221 echo
3222
cristy98dddb52010-11-04 00:30:15 +00003223 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003224## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003225## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003226 echo
3227 # The following way of writing the cache mishandles newlines in values,
3228(
3229 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3230 eval ac_val=\$$ac_var
3231 case $ac_val in #(
3232 *${as_nl}*)
3233 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003234 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003235$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3236 esac
3237 case $ac_var in #(
3238 _ | IFS | as_nl) ;; #(
3239 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003240 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003241 esac ;;
3242 esac
3243 done
3244 (set) 2>&1 |
3245 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3246 *${as_nl}ac_space=\ *)
3247 sed -n \
3248 "s/'\''/'\''\\\\'\'''\''/g;
3249 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3250 ;; #(
3251 *)
3252 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3253 ;;
3254 esac |
3255 sort
3256)
3257 echo
3258
cristy98dddb52010-11-04 00:30:15 +00003259 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003260## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003261## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003262 echo
3263 for ac_var in $ac_subst_vars
3264 do
3265 eval ac_val=\$$ac_var
3266 case $ac_val in
3267 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3268 esac
3269 $as_echo "$ac_var='\''$ac_val'\''"
3270 done | sort
3271 echo
3272
3273 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003274 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003275## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003276## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003277 echo
3278 for ac_var in $ac_subst_files
3279 do
3280 eval ac_val=\$$ac_var
3281 case $ac_val in
3282 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3283 esac
3284 $as_echo "$ac_var='\''$ac_val'\''"
3285 done | sort
3286 echo
3287 fi
3288
3289 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003290 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003291## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003292## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003293 echo
3294 cat confdefs.h
3295 echo
3296 fi
3297 test "$ac_signal" != 0 &&
3298 $as_echo "$as_me: caught signal $ac_signal"
3299 $as_echo "$as_me: exit $exit_status"
3300 } >&5
3301 rm -f core *.core core.conftest.* &&
3302 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3303 exit $exit_status
3304' 0
3305for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003306 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003307done
3308ac_signal=0
3309
3310# confdefs.h avoids OS command line length limits that DEFS can exceed.
3311rm -f -r conftest* confdefs.h
3312
cristy8b350f62009-11-15 23:12:43 +00003313$as_echo "/* confdefs.h */" > confdefs.h
3314
cristy3ed852e2009-09-05 21:47:34 +00003315# Predefined preprocessor variables.
3316
3317cat >>confdefs.h <<_ACEOF
3318#define PACKAGE_NAME "$PACKAGE_NAME"
3319_ACEOF
3320
cristy3ed852e2009-09-05 21:47:34 +00003321cat >>confdefs.h <<_ACEOF
3322#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3323_ACEOF
3324
cristy3ed852e2009-09-05 21:47:34 +00003325cat >>confdefs.h <<_ACEOF
3326#define PACKAGE_VERSION "$PACKAGE_VERSION"
3327_ACEOF
3328
cristy3ed852e2009-09-05 21:47:34 +00003329cat >>confdefs.h <<_ACEOF
3330#define PACKAGE_STRING "$PACKAGE_STRING"
3331_ACEOF
3332
cristy3ed852e2009-09-05 21:47:34 +00003333cat >>confdefs.h <<_ACEOF
3334#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3335_ACEOF
3336
cristy8b350f62009-11-15 23:12:43 +00003337cat >>confdefs.h <<_ACEOF
3338#define PACKAGE_URL "$PACKAGE_URL"
3339_ACEOF
3340
cristy3ed852e2009-09-05 21:47:34 +00003341
3342# Let the site file select an alternate cache file if it wants to.
3343# Prefer an explicitly selected file to automatically selected ones.
3344ac_site_file1=NONE
3345ac_site_file2=NONE
3346if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003347 # We do not want a PATH search for config.site.
3348 case $CONFIG_SITE in #((
3349 -*) ac_site_file1=./$CONFIG_SITE;;
3350 */*) ac_site_file1=$CONFIG_SITE;;
3351 *) ac_site_file1=./$CONFIG_SITE;;
3352 esac
cristy3ed852e2009-09-05 21:47:34 +00003353elif test "x$prefix" != xNONE; then
3354 ac_site_file1=$prefix/share/config.site
3355 ac_site_file2=$prefix/etc/config.site
3356else
3357 ac_site_file1=$ac_default_prefix/share/config.site
3358 ac_site_file2=$ac_default_prefix/etc/config.site
3359fi
3360for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3361do
3362 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003363 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003364 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003365$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3366 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003367 . "$ac_site_file" \
3368 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3369$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3370as_fn_error $? "failed to load site script $ac_site_file
3371See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003372 fi
3373done
3374
3375if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003376 # Some versions of bash will fail to source /dev/null (special files
3377 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3378 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003379 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003380$as_echo "$as_me: loading cache $cache_file" >&6;}
3381 case $cache_file in
3382 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3383 *) . "./$cache_file";;
3384 esac
3385 fi
3386else
cristy8b350f62009-11-15 23:12:43 +00003387 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003388$as_echo "$as_me: creating cache $cache_file" >&6;}
3389 >$cache_file
3390fi
3391
cristycd4c5312009-11-22 01:19:08 +00003392as_fn_append ac_header_list " stdlib.h"
3393as_fn_append ac_header_list " unistd.h"
3394as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003395# Check that the precious variables saved in the cache have kept the same
3396# value.
3397ac_cache_corrupted=false
3398for ac_var in $ac_precious_vars; do
3399 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3400 eval ac_new_set=\$ac_env_${ac_var}_set
3401 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3402 eval ac_new_val=\$ac_env_${ac_var}_value
3403 case $ac_old_set,$ac_new_set in
3404 set,)
cristy8b350f62009-11-15 23:12:43 +00003405 { $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 +00003406$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3407 ac_cache_corrupted=: ;;
3408 ,set)
cristy8b350f62009-11-15 23:12:43 +00003409 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003410$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3411 ac_cache_corrupted=: ;;
3412 ,);;
3413 *)
3414 if test "x$ac_old_val" != "x$ac_new_val"; then
3415 # differences in whitespace do not lead to failure.
3416 ac_old_val_w=`echo x $ac_old_val`
3417 ac_new_val_w=`echo x $ac_new_val`
3418 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003419 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003420$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3421 ac_cache_corrupted=:
3422 else
cristy8b350f62009-11-15 23:12:43 +00003423 { $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 +00003424$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3425 eval $ac_var=\$ac_old_val
3426 fi
cristy8b350f62009-11-15 23:12:43 +00003427 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003428$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003429 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003430$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3431 fi;;
3432 esac
3433 # Pass precious variables to config.status.
3434 if test "$ac_new_set" = set; then
3435 case $ac_new_val in
3436 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3437 *) ac_arg=$ac_var=$ac_new_val ;;
3438 esac
3439 case " $ac_configure_args " in
3440 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003441 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003442 esac
3443 fi
3444done
3445if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003446 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003447$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003448 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003449$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003450 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003451fi
cristy8b350f62009-11-15 23:12:43 +00003452## -------------------- ##
3453## Main body of script. ##
3454## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003455
3456ac_ext=c
3457ac_cpp='$CPP $CPPFLAGS'
3458ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3459ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3460ac_compiler_gnu=$ac_cv_c_compiler_gnu
3461
3462
3463
3464ac_aux_dir=
3465for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003466 if test -f "$ac_dir/install-sh"; then
3467 ac_aux_dir=$ac_dir
3468 ac_install_sh="$ac_aux_dir/install-sh -c"
3469 break
3470 elif test -f "$ac_dir/install.sh"; then
3471 ac_aux_dir=$ac_dir
3472 ac_install_sh="$ac_aux_dir/install.sh -c"
3473 break
3474 elif test -f "$ac_dir/shtool"; then
3475 ac_aux_dir=$ac_dir
3476 ac_install_sh="$ac_aux_dir/shtool install -c"
3477 break
3478 fi
cristy3ed852e2009-09-05 21:47:34 +00003479done
3480if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003481 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003482fi
3483
3484# These three variables are undocumented and unsupported,
3485# and are intended to be withdrawn in a future Autoconf release.
3486# They can cause serious problems if a builder's source tree is in a directory
3487# whose full name contains unusual characters.
3488ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3489ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3490ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3491
3492
3493
3494
3495ac_config_headers="$ac_config_headers config/config.h"
3496
cristy24fc1fe2010-10-23 21:13:01 +00003497
cristy01ff9f32012-12-01 18:15:29 +00003498ac_config_commands="$ac_config_commands MagickCore/magick-baseconfig.h"
cristy73bd4a52010-10-05 11:24:23 +00003499
cristycf0cbcc2013-02-13 23:32:58 +00003500ac_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/Makefile.PL PerlMagick/quantum/Makefile.PL PerlMagick/quantum/quantum.pm PerlMagick/quantum/quantum.xs PerlMagick/quantum/typemap PerlMagick/Magick.pm 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 +00003501
3502
3503#
3504# Save initial user-tunable values
3505#
3506USER_LIBS=$LIBS
3507for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3508 eval isset=\${$var+set}
3509 if test "$isset" = 'set'; then
3510 eval val=$`echo $var`
3511 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3512 fi
3513done
3514
3515
3516CONFIGURE_ARGS="$0 ${ac_configure_args}"
3517
3518
3519# Source file containing package/library versioning information.
3520. ${srcdir}/version.sh
3521
cristy15a88782010-01-31 23:24:49 +00003522echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003523# Make sure we can run config.sub.
3524$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003525 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003526
cristy8b350f62009-11-15 23:12:43 +00003527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003528$as_echo_n "checking build system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003529if ${ac_cv_build+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003530 $as_echo_n "(cached) " >&6
3531else
3532 ac_build_alias=$build_alias
3533test "x$ac_build_alias" = x &&
3534 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3535test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003536 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003537ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003538 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003539
3540fi
cristy8b350f62009-11-15 23:12:43 +00003541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003542$as_echo "$ac_cv_build" >&6; }
3543case $ac_cv_build in
3544*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003545*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003546esac
3547build=$ac_cv_build
3548ac_save_IFS=$IFS; IFS='-'
3549set x $ac_cv_build
3550shift
3551build_cpu=$1
3552build_vendor=$2
3553shift; shift
3554# Remember, the first character of IFS is used to create $*,
3555# except with old shells:
3556build_os=$*
3557IFS=$ac_save_IFS
3558case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3559
3560
cristy8b350f62009-11-15 23:12:43 +00003561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003562$as_echo_n "checking host system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003563if ${ac_cv_host+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003564 $as_echo_n "(cached) " >&6
3565else
3566 if test "x$host_alias" = x; then
3567 ac_cv_host=$ac_cv_build
3568else
3569 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003570 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003571fi
3572
3573fi
cristy8b350f62009-11-15 23:12:43 +00003574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003575$as_echo "$ac_cv_host" >&6; }
3576case $ac_cv_host in
3577*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003578*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003579esac
3580host=$ac_cv_host
3581ac_save_IFS=$IFS; IFS='-'
3582set x $ac_cv_host
3583shift
3584host_cpu=$1
3585host_vendor=$2
3586shift; shift
3587# Remember, the first character of IFS is used to create $*,
3588# except with old shells:
3589host_os=$*
3590IFS=$ac_save_IFS
3591case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3592
3593
cristy8b350f62009-11-15 23:12:43 +00003594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003595$as_echo_n "checking target system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003596if ${ac_cv_target+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003597 $as_echo_n "(cached) " >&6
3598else
3599 if test "x$target_alias" = x; then
3600 ac_cv_target=$ac_cv_host
3601else
3602 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003603 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003604fi
3605
3606fi
cristy8b350f62009-11-15 23:12:43 +00003607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003608$as_echo "$ac_cv_target" >&6; }
3609case $ac_cv_target in
3610*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003611*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003612esac
3613target=$ac_cv_target
3614ac_save_IFS=$IFS; IFS='-'
3615set x $ac_cv_target
3616shift
3617target_cpu=$1
3618target_vendor=$2
3619shift; shift
3620# Remember, the first character of IFS is used to create $*,
3621# except with old shells:
3622target_os=$*
3623IFS=$ac_save_IFS
3624case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3625
3626
3627# The aliases save the names the user supplied, while $host etc.
3628# will get canonicalized.
3629test -n "$target_alias" &&
3630 test "$program_prefix$program_suffix$program_transform_name" = \
3631 NONENONEs,x,x, &&
3632 program_prefix=${target_alias}-
3633
cristy837d6dc2010-02-27 01:16:57 +00003634
3635
3636
cristy8be34142012-06-17 14:07:18 +00003637
cristy19615b82011-04-13 20:02:01 +00003638MAGICK_TARGET_CPU=$host_cpu
cristy3225a072010-04-17 01:47:28 +00003639
3640
cristy27d53d62012-07-29 23:30:07 +00003641cat >>confdefs.h <<_ACEOF
3642#define MAGICK_TARGET_CPU $MAGICK_TARGET_CPU
3643_ACEOF
3644
3645
cristy19615b82011-04-13 20:02:01 +00003646MAGICK_TARGET_VENDOR=$host_vendor
cristy3225a072010-04-17 01:47:28 +00003647
3648
cristy27d53d62012-07-29 23:30:07 +00003649cat >>confdefs.h <<_ACEOF
3650#define MAGICK_TARGET_VENDOR $MAGICK_TARGET_VENDOR
3651_ACEOF
3652
3653
cristy19615b82011-04-13 20:02:01 +00003654MAGICK_TARGET_OS=$host_os
cristy3225a072010-04-17 01:47:28 +00003655
3656
cristy27d53d62012-07-29 23:30:07 +00003657cat >>confdefs.h <<_ACEOF
3658#define MAGICK_TARGET_OS $MAGICK_TARGET_OS
3659_ACEOF
3660
3661
cristy37442762013-02-10 21:07:23 +00003662
3663# Substitute versioning
3664MAGICK_MAJOR_VERSION=7
3665
3666MAGICK_MINOR_VERSION=0
3667
3668MAGICK_MICRO_VERSION=0
3669
3670MAGICK_PATCHLEVEL_VERSION=0
3671
3672MAGICK_VERSION=7.0.0-0
3673
cristybdabdd62013-03-04 17:43:36 +00003674MAGICK_SVN_REVISION=11231:11245M
cristy37442762013-02-10 21:07:23 +00003675
3676
cristy3ed852e2009-09-05 21:47:34 +00003677# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003678MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3679
3680MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3681
cristy37442762013-02-10 21:07:23 +00003682
cristyd694ca32011-03-27 21:42:54 +00003683
cristy3ed852e2009-09-05 21:47:34 +00003684# Ensure that make can run correctly
cristy73bd4a52010-10-05 11:24:23 +00003685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3686$as_echo_n "checking whether build environment is sane... " >&6; }
cristy73bd4a52010-10-05 11:24:23 +00003687# Reject unsafe characters in $srcdir or the absolute working directory
3688# name. Accept space and tab only in the latter.
3689am_lf='
3690'
3691case `pwd` in
3692 *[\\\"\#\$\&\'\`$am_lf]*)
cristy98dddb52010-11-04 00:30:15 +00003693 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003694esac
3695case $srcdir in
3696 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristyc0890a62012-07-19 00:18:20 +00003697 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003698esac
cristy3ed852e2009-09-05 21:47:34 +00003699
cristyc0890a62012-07-19 00:18:20 +00003700# Do 'set' in a subshell so we don't clobber the current shell's
cristy73bd4a52010-10-05 11:24:23 +00003701# arguments. Must try -L first in case configure is actually a
3702# symlink; some systems play weird games with the mod time of symlinks
3703# (eg FreeBSD returns the mod time of the symlink's containing
3704# directory).
3705if (
cristyc0890a62012-07-19 00:18:20 +00003706 am_has_slept=no
3707 for am_try in 1 2; do
3708 echo "timestamp, slept: $am_has_slept" > conftest.file
3709 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3710 if test "$*" = "X"; then
3711 # -L didn't work.
3712 set X `ls -t "$srcdir/configure" conftest.file`
3713 fi
3714 if test "$*" != "X $srcdir/configure conftest.file" \
3715 && test "$*" != "X conftest.file $srcdir/configure"; then
cristy73bd4a52010-10-05 11:24:23 +00003716
cristyc0890a62012-07-19 00:18:20 +00003717 # If neither matched, then we have a broken ls. This can happen
3718 # if, for instance, CONFIG_SHELL is bash and it inherits a
3719 # broken ls alias from the environment. This has actually
3720 # happened. Such a system could not be considered "sane".
3721 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3722 alias in your environment" "$LINENO" 5
3723 fi
3724 if test "$2" = conftest.file || test $am_try -eq 2; then
3725 break
3726 fi
3727 # Just in case.
3728 sleep 1
3729 am_has_slept=yes
3730 done
cristy73bd4a52010-10-05 11:24:23 +00003731 test "$2" = conftest.file
3732 )
3733then
3734 # Ok.
3735 :
3736else
cristy98dddb52010-11-04 00:30:15 +00003737 as_fn_error $? "newly created file is older than distributed files!
cristy73bd4a52010-10-05 11:24:23 +00003738Check your system clock" "$LINENO" 5
3739fi
3740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3741$as_echo "yes" >&6; }
cristyc0890a62012-07-19 00:18:20 +00003742# If we didn't sleep, we still need to ensure time stamps of config.status and
3743# generated files are strictly newer.
3744am_sleep_pid=
3745if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3746 ( sleep 1 ) &
3747 am_sleep_pid=$!
3748fi
cristy73bd4a52010-10-05 11:24:23 +00003749
cristyc0890a62012-07-19 00:18:20 +00003750rm -f conftest.file
3751
3752
cristy58d34aa2013-01-24 15:11:54 +00003753am__api_version='1.13'
cristy73bd4a52010-10-05 11:24:23 +00003754
3755# Find a good install program. We prefer a C program (faster),
3756# so one script is as good as another. But avoid the broken or
3757# incompatible versions:
3758# SysV /etc/install, /usr/sbin/install
3759# SunOS /usr/etc/install
3760# IRIX /sbin/install
3761# AIX /bin/install
3762# AmigaOS /C/install, which installs bootblocks on floppy discs
3763# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3764# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3765# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3766# OS/2's system install, which has a completely different semantic
3767# ./install, which can be erroneously created by make from ./install.sh.
3768# Reject install programs that cannot install multiple files.
3769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3770$as_echo_n "checking for a BSD-compatible install... " >&6; }
3771if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003772if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003773 $as_echo_n "(cached) " >&6
3774else
3775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3776for as_dir in $PATH
3777do
3778 IFS=$as_save_IFS
3779 test -z "$as_dir" && as_dir=.
3780 # Account for people who put trailing slashes in PATH elements.
3781case $as_dir/ in #((
3782 ./ | .// | /[cC]/* | \
3783 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3784 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3785 /usr/ucb/* ) ;;
3786 *)
3787 # OSF1 and SCO ODT 3.0 have their own names for install.
3788 # Don't use installbsd from OSF since it installs stuff as root
3789 # by default.
3790 for ac_prog in ginstall scoinst install; do
3791 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003792 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003793 if test $ac_prog = install &&
3794 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3795 # AIX install. It has an incompatible calling convention.
3796 :
3797 elif test $ac_prog = install &&
3798 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3799 # program-specific install script used by HP pwplus--don't use.
3800 :
3801 else
3802 rm -rf conftest.one conftest.two conftest.dir
3803 echo one > conftest.one
3804 echo two > conftest.two
3805 mkdir conftest.dir
3806 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3807 test -s conftest.one && test -s conftest.two &&
3808 test -s conftest.dir/conftest.one &&
3809 test -s conftest.dir/conftest.two
3810 then
3811 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3812 break 3
3813 fi
3814 fi
3815 fi
3816 done
3817 done
3818 ;;
3819esac
3820
3821 done
3822IFS=$as_save_IFS
3823
3824rm -rf conftest.one conftest.two conftest.dir
3825
3826fi
3827 if test "${ac_cv_path_install+set}" = set; then
3828 INSTALL=$ac_cv_path_install
3829 else
3830 # As a last resort, use the slow shell script. Don't cache a
3831 # value for INSTALL within a source directory, because that will
3832 # break other packages using the cache if that directory is
3833 # removed, or if the value is a relative name.
3834 INSTALL=$ac_install_sh
3835 fi
3836fi
3837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3838$as_echo "$INSTALL" >&6; }
3839
3840# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3841# It thinks the first close brace ends the variable substitution.
3842test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3843
3844test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3845
3846test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3847
3848test "$program_prefix" != NONE &&
3849 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3850# Use a double $ so make ignores it.
3851test "$program_suffix" != NONE &&
3852 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3853# Double any \ or $.
3854# By default was `s,x,x', remove it if useless.
3855ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3856program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3857
3858# expand $ac_aux_dir to an absolute path
3859am_aux_dir=`cd $ac_aux_dir && pwd`
3860
3861if test x"${MISSING+set}" != xset; then
3862 case $am_aux_dir in
3863 *\ * | *\ *)
3864 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3865 *)
3866 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3867 esac
3868fi
3869# Use eval to expand $SHELL
cristy58d34aa2013-01-24 15:11:54 +00003870if eval "$MISSING --is-lightweight"; then
3871 am_missing_run="$MISSING "
cristy73bd4a52010-10-05 11:24:23 +00003872else
3873 am_missing_run=
cristyc0890a62012-07-19 00:18:20 +00003874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3875$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
cristy73bd4a52010-10-05 11:24:23 +00003876fi
3877
3878if test x"${install_sh}" != xset; then
3879 case $am_aux_dir in
3880 *\ * | *\ *)
3881 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3882 *)
3883 install_sh="\${SHELL} $am_aux_dir/install-sh"
3884 esac
3885fi
3886
cristyc0890a62012-07-19 00:18:20 +00003887# Installed binaries are usually stripped using 'strip' when the user
3888# run "make install-strip". However 'strip' might not be the right
cristy73bd4a52010-10-05 11:24:23 +00003889# tool to use in cross-compilation environments, therefore Automake
cristyc0890a62012-07-19 00:18:20 +00003890# will honor the 'STRIP' environment variable to overrule this program.
cristy73bd4a52010-10-05 11:24:23 +00003891if test "$cross_compiling" != no; then
3892 if test -n "$ac_tool_prefix"; then
3893 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3894set dummy ${ac_tool_prefix}strip; ac_word=$2
3895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3896$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003897if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003898 $as_echo_n "(cached) " >&6
3899else
3900 if test -n "$STRIP"; then
3901 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3902else
3903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3904for as_dir in $PATH
3905do
3906 IFS=$as_save_IFS
3907 test -z "$as_dir" && as_dir=.
3908 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003910 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3912 break 2
3913 fi
3914done
3915 done
3916IFS=$as_save_IFS
3917
3918fi
3919fi
3920STRIP=$ac_cv_prog_STRIP
3921if test -n "$STRIP"; then
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3923$as_echo "$STRIP" >&6; }
3924else
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3926$as_echo "no" >&6; }
3927fi
3928
3929
3930fi
3931if test -z "$ac_cv_prog_STRIP"; then
3932 ac_ct_STRIP=$STRIP
3933 # Extract the first word of "strip", so it can be a program name with args.
3934set dummy strip; ac_word=$2
3935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3936$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003937if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003938 $as_echo_n "(cached) " >&6
3939else
3940 if test -n "$ac_ct_STRIP"; then
3941 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3942else
3943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3944for as_dir in $PATH
3945do
3946 IFS=$as_save_IFS
3947 test -z "$as_dir" && as_dir=.
3948 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003950 ac_cv_prog_ac_ct_STRIP="strip"
3951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3952 break 2
3953 fi
3954done
3955 done
3956IFS=$as_save_IFS
3957
3958fi
3959fi
3960ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3961if test -n "$ac_ct_STRIP"; then
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3963$as_echo "$ac_ct_STRIP" >&6; }
3964else
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3966$as_echo "no" >&6; }
3967fi
3968
3969 if test "x$ac_ct_STRIP" = x; then
3970 STRIP=":"
3971 else
3972 case $cross_compiling:$ac_tool_warned in
3973yes:)
3974{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3975$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3976ac_tool_warned=yes ;;
3977esac
3978 STRIP=$ac_ct_STRIP
3979 fi
3980else
3981 STRIP="$ac_cv_prog_STRIP"
3982fi
3983
3984fi
3985INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3986
3987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3988$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3989if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00003990 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003991 $as_echo_n "(cached) " >&6
3992else
3993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3994for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3995do
3996 IFS=$as_save_IFS
3997 test -z "$as_dir" && as_dir=.
3998 for ac_prog in mkdir gmkdir; do
3999 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004000 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
cristy73bd4a52010-10-05 11:24:23 +00004001 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4002 'mkdir (GNU coreutils) '* | \
4003 'mkdir (coreutils) '* | \
4004 'mkdir (fileutils) '4.1*)
4005 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4006 break 3;;
4007 esac
4008 done
4009 done
4010 done
4011IFS=$as_save_IFS
4012
4013fi
4014
4015 test -d ./--version && rmdir ./--version
4016 if test "${ac_cv_path_mkdir+set}" = set; then
4017 MKDIR_P="$ac_cv_path_mkdir -p"
4018 else
4019 # As a last resort, use the slow shell script. Don't cache a
4020 # value for MKDIR_P within a source directory, because that will
4021 # break other packages using the cache if that directory is
4022 # removed, or if the value is a relative name.
4023 MKDIR_P="$ac_install_sh -d"
4024 fi
4025fi
4026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4027$as_echo "$MKDIR_P" >&6; }
4028
cristy73bd4a52010-10-05 11:24:23 +00004029for ac_prog in gawk mawk nawk awk
4030do
4031 # Extract the first word of "$ac_prog", so it can be a program name with args.
4032set dummy $ac_prog; ac_word=$2
4033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4034$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004035if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004036 $as_echo_n "(cached) " >&6
4037else
4038 if test -n "$AWK"; then
4039 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4040else
4041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4042for as_dir in $PATH
4043do
4044 IFS=$as_save_IFS
4045 test -z "$as_dir" && as_dir=.
4046 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00004048 ac_cv_prog_AWK="$ac_prog"
4049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4050 break 2
4051 fi
4052done
4053 done
4054IFS=$as_save_IFS
4055
4056fi
4057fi
4058AWK=$ac_cv_prog_AWK
4059if test -n "$AWK"; then
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4061$as_echo "$AWK" >&6; }
4062else
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4064$as_echo "no" >&6; }
4065fi
4066
4067
4068 test -n "$AWK" && break
4069done
4070
4071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4072$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4073set x ${MAKE-make}
4074ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00004075if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004076 $as_echo_n "(cached) " >&6
4077else
4078 cat >conftest.make <<\_ACEOF
4079SHELL = /bin/sh
4080all:
4081 @echo '@@@%%%=$(MAKE)=@@@%%%'
4082_ACEOF
cristy98dddb52010-11-04 00:30:15 +00004083# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00004084case `${MAKE-make} -f conftest.make 2>/dev/null` in
4085 *@@@%%%=?*=@@@%%%*)
4086 eval ac_cv_prog_make_${ac_make}_set=yes;;
4087 *)
4088 eval ac_cv_prog_make_${ac_make}_set=no;;
4089esac
4090rm -f conftest.make
4091fi
4092if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4094$as_echo "yes" >&6; }
4095 SET_MAKE=
4096else
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4098$as_echo "no" >&6; }
4099 SET_MAKE="MAKE=${MAKE-make}"
4100fi
4101
4102rm -rf .tst 2>/dev/null
4103mkdir .tst 2>/dev/null
4104if test -d .tst; then
4105 am__leading_dot=.
4106else
4107 am__leading_dot=_
4108fi
4109rmdir .tst 2>/dev/null
4110
cristya448bd22011-10-14 12:38:13 +00004111# Check whether --enable-silent-rules was given.
4112if test "${enable_silent_rules+set}" = set; then :
4113 enableval=$enable_silent_rules;
4114fi
4115
cristyc0890a62012-07-19 00:18:20 +00004116case $enable_silent_rules in # (((
4117 yes) AM_DEFAULT_VERBOSITY=0;;
4118 no) AM_DEFAULT_VERBOSITY=1;;
4119 *) AM_DEFAULT_VERBOSITY=1;;
cristya448bd22011-10-14 12:38:13 +00004120esac
cristyc3fb77b2012-02-06 01:49:41 +00004121am_make=${MAKE-make}
4122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4123$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4124if ${am_cv_make_support_nested_variables+:} false; then :
4125 $as_echo_n "(cached) " >&6
4126else
4127 if $as_echo 'TRUE=$(BAR$(V))
4128BAR0=false
4129BAR1=true
4130V=1
4131am__doit:
4132 @$(TRUE)
4133.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4134 am_cv_make_support_nested_variables=yes
4135else
4136 am_cv_make_support_nested_variables=no
4137fi
4138fi
4139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4140$as_echo "$am_cv_make_support_nested_variables" >&6; }
4141if test $am_cv_make_support_nested_variables = yes; then
4142 AM_V='$(V)'
4143 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4144else
4145 AM_V=$AM_DEFAULT_VERBOSITY
4146 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4147fi
cristya448bd22011-10-14 12:38:13 +00004148AM_BACKSLASH='\'
4149
cristy73bd4a52010-10-05 11:24:23 +00004150if test "`cd $srcdir && pwd`" != "`pwd`"; then
4151 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4152 # is not polluted with repeated "-I."
4153 am__isrc=' -I$(srcdir)'
4154 # test to see if srcdir already configured
4155 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00004156 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00004157 fi
4158fi
4159
4160# test whether we have cygpath
4161if test -z "$CYGPATH_W"; then
4162 if (cygpath --version) >/dev/null 2>/dev/null; then
4163 CYGPATH_W='cygpath -w'
4164 else
4165 CYGPATH_W=echo
4166 fi
4167fi
4168
4169
4170# Define the identity of the package.
cristy09b53e12011-10-14 12:47:22 +00004171 PACKAGE='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +00004172 VERSION='7.0.0-0'
cristy73bd4a52010-10-05 11:24:23 +00004173
4174
cristya448bd22011-10-14 12:38:13 +00004175cat >>confdefs.h <<_ACEOF
4176#define PACKAGE "$PACKAGE"
4177_ACEOF
4178
4179
4180cat >>confdefs.h <<_ACEOF
4181#define VERSION "$VERSION"
4182_ACEOF
4183
cristy73bd4a52010-10-05 11:24:23 +00004184# Some tools Automake needs.
4185
4186ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4187
4188
4189AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4190
4191
4192AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4193
4194
4195AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4196
4197
4198MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4199
cristyc0890a62012-07-19 00:18:20 +00004200# For better backward compatibility. To be removed once Automake 1.9.x
4201# dies out for good. For more background, see:
4202# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4203# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4204mkdir_p='$(MKDIR_P)'
4205
cristy73bd4a52010-10-05 11:24:23 +00004206# We need awk for the "check" target. The system "awk" is bad on
4207# some platforms.
cristyc3fb77b2012-02-06 01:49:41 +00004208# Always define AMTAR for backward compatibility. Yes, it's still used
4209# in the wild :-( We should find a proper way to deprecate it ...
4210AMTAR='$${TAR-tar}'
cristy73bd4a52010-10-05 11:24:23 +00004211
cristyc3fb77b2012-02-06 01:49:41 +00004212am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
cristy73bd4a52010-10-05 11:24:23 +00004213
4214
4215
4216
4217
cristy3ed852e2009-09-05 21:47:34 +00004218
4219# Enable support for silent build rules
cristy73bd4a52010-10-05 11:24:23 +00004220# Check whether --enable-silent-rules was given.
4221if test "${enable_silent_rules+set}" = set; then :
4222 enableval=$enable_silent_rules;
4223fi
4224
cristyc0890a62012-07-19 00:18:20 +00004225case $enable_silent_rules in # (((
4226 yes) AM_DEFAULT_VERBOSITY=0;;
4227 no) AM_DEFAULT_VERBOSITY=1;;
4228 *) AM_DEFAULT_VERBOSITY=0;;
cristy73bd4a52010-10-05 11:24:23 +00004229esac
cristyc3fb77b2012-02-06 01:49:41 +00004230am_make=${MAKE-make}
4231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4232$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4233if ${am_cv_make_support_nested_variables+:} false; then :
4234 $as_echo_n "(cached) " >&6
4235else
4236 if $as_echo 'TRUE=$(BAR$(V))
4237BAR0=false
4238BAR1=true
4239V=1
4240am__doit:
4241 @$(TRUE)
4242.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4243 am_cv_make_support_nested_variables=yes
4244else
4245 am_cv_make_support_nested_variables=no
4246fi
4247fi
4248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4249$as_echo "$am_cv_make_support_nested_variables" >&6; }
4250if test $am_cv_make_support_nested_variables = yes; then
4251 AM_V='$(V)'
4252 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4253else
4254 AM_V=$AM_DEFAULT_VERBOSITY
4255 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4256fi
cristy73bd4a52010-10-05 11:24:23 +00004257AM_BACKSLASH='\'
4258
cristy3ed852e2009-09-05 21:47:34 +00004259
4260MAGICK_LIB_VERSION="0x"
4261if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4262 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4263fi
4264MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4265if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4266 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4267fi
4268MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4269if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4270 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4271fi
4272MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4273
4274
4275# Definition used to define MagickLibVersionText in version.h
4276MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4277
4278
4279# Definition used to define MagickLibVersionNumber in version.h
4280MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4281
4282
4283# Regenerate config.status if ChangeLog or version.sh is updated.
4284CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4285
4286
4287PERLMAINCC=$CC
4288
4289MAGICK_CFLAGS=''
4290MAGICK_CPPFLAGS=$CPPFLAGS_USER
4291MAGICK_PCFLAGS=$CPPFLAGS_USER
4292MAGICK_LDFLAGS=''
4293MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00004294MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00004295
4296#
4297# Evaluate shell variable equivalents to Makefile directory variables
4298#
4299if test "x$prefix" = xNONE; then
4300 prefix=$ac_default_prefix
4301fi
4302# Let make expand exec_prefix.
4303if test "x$exec_prefix" = xNONE; then
4304 exec_prefix='${prefix}'
4305fi
4306
4307#
4308eval "eval PREFIX_DIR=${prefix}"
4309
4310eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4311
4312eval "eval BIN_DIR=$bindir"
4313
4314eval "eval SBIN_DIR=$sbindir"
4315
4316eval "eval LIBEXEC_DIR=$libexecdir"
4317
4318eval "eval DATA_DIR=$datadir"
4319
cristy4e65ec22012-04-08 01:33:27 +00004320eval "eval DOC_DIR=$datadir/doc"
cristyd55889c2011-03-27 00:50:24 +00004321
cristy3ed852e2009-09-05 21:47:34 +00004322eval "eval SYSCONF_DIR=$sysconfdir"
4323
4324eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4325
4326eval "eval LOCALSTATE_DIR=$localstatedir"
4327
4328eval "eval LIB_DIR=$libdir"
4329
4330eval "eval INCLUDE_DIR=$includedir"
4331
4332eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4333
4334eval "eval INFO_DIR=$infodir"
4335
4336eval "eval MAN_DIR=$mandir"
4337
4338
4339# Get full paths to source and build directories
4340srcdirfull="`cd $srcdir && pwd`"
4341builddir="`pwd`"
4342
4343#
4344# Compute variables useful for running uninstalled software.
4345#
4346MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4347MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4348MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4349MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4350DIRSEP=':'
4351case "${build_os}" in
4352 mingw* )
4353 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4354 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4355 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4356 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4357 DIRSEP=';'
4358 ;;
4359esac
4360case "${host_os}" in
4361 mingw* )
4362 DIRSEP=';'
4363 ;;
4364esac
4365
4366
4367
4368
4369
4370
cristya0b81c32010-01-22 02:54:33 +00004371
4372#
4373# Enable OS features.
4374#
cristy73bd4a52010-10-05 11:24:23 +00004375DEPDIR="${am__leading_dot}deps"
4376
4377ac_config_commands="$ac_config_commands depfiles"
4378
4379
4380am_make=${MAKE-make}
4381cat > confinc << 'END'
4382am__doit:
4383 @echo this is the am__doit target
4384.PHONY: am__doit
4385END
4386# If we don't find an include directive, just comment out the code.
4387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4388$as_echo_n "checking for style of include used by $am_make... " >&6; }
4389am__include="#"
4390am__quote=
4391_am_result=none
4392# First try GNU make style include.
4393echo "include confinc" > confmf
cristyc0890a62012-07-19 00:18:20 +00004394# Ignore all kinds of additional output from 'make'.
cristy73bd4a52010-10-05 11:24:23 +00004395case `$am_make -s -f confmf 2> /dev/null` in #(
4396*the\ am__doit\ target*)
4397 am__include=include
4398 am__quote=
4399 _am_result=GNU
4400 ;;
4401esac
4402# Now try BSD make style include.
4403if test "$am__include" = "#"; then
4404 echo '.include "confinc"' > confmf
4405 case `$am_make -s -f confmf 2> /dev/null` in #(
4406 *the\ am__doit\ target*)
4407 am__include=.include
4408 am__quote="\""
4409 _am_result=BSD
4410 ;;
4411 esac
4412fi
4413
4414
4415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4416$as_echo "$_am_result" >&6; }
4417rm -f confinc confmf
4418
4419# Check whether --enable-dependency-tracking was given.
4420if test "${enable_dependency_tracking+set}" = set; then :
4421 enableval=$enable_dependency_tracking;
4422fi
4423
4424if test "x$enable_dependency_tracking" != xno; then
4425 am_depcomp="$ac_aux_dir/depcomp"
4426 AMDEPBACKSLASH='\'
cristy7247bba2012-02-05 16:37:27 +00004427 am__nodep='_no'
cristy73bd4a52010-10-05 11:24:23 +00004428fi
4429 if test "x$enable_dependency_tracking" != xno; then
4430 AMDEP_TRUE=
4431 AMDEP_FALSE='#'
4432else
4433 AMDEP_TRUE='#'
4434 AMDEP_FALSE=
4435fi
4436
4437
cristy3ed852e2009-09-05 21:47:34 +00004438ac_ext=c
4439ac_cpp='$CPP $CPPFLAGS'
4440ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4441ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4442ac_compiler_gnu=$ac_cv_c_compiler_gnu
4443if test -n "$ac_tool_prefix"; then
4444 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4445set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004447$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004448if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004449 $as_echo_n "(cached) " >&6
4450else
4451 if test -n "$CC"; then
4452 ac_cv_prog_CC="$CC" # Let the user override the test.
4453else
4454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4455for as_dir in $PATH
4456do
4457 IFS=$as_save_IFS
4458 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004459 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004461 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004463 break 2
4464 fi
4465done
cristy8b350f62009-11-15 23:12:43 +00004466 done
cristy3ed852e2009-09-05 21:47:34 +00004467IFS=$as_save_IFS
4468
4469fi
4470fi
4471CC=$ac_cv_prog_CC
4472if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004474$as_echo "$CC" >&6; }
4475else
cristy8b350f62009-11-15 23:12:43 +00004476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004477$as_echo "no" >&6; }
4478fi
4479
4480
4481fi
4482if test -z "$ac_cv_prog_CC"; then
4483 ac_ct_CC=$CC
4484 # Extract the first word of "gcc", so it can be a program name with args.
4485set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004487$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004488if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004489 $as_echo_n "(cached) " >&6
4490else
4491 if test -n "$ac_ct_CC"; then
4492 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4493else
4494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4495for as_dir in $PATH
4496do
4497 IFS=$as_save_IFS
4498 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004499 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004501 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004503 break 2
4504 fi
4505done
cristy8b350f62009-11-15 23:12:43 +00004506 done
cristy3ed852e2009-09-05 21:47:34 +00004507IFS=$as_save_IFS
4508
4509fi
4510fi
4511ac_ct_CC=$ac_cv_prog_ac_ct_CC
4512if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004514$as_echo "$ac_ct_CC" >&6; }
4515else
cristy8b350f62009-11-15 23:12:43 +00004516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004517$as_echo "no" >&6; }
4518fi
4519
4520 if test "x$ac_ct_CC" = x; then
4521 CC=""
4522 else
4523 case $cross_compiling:$ac_tool_warned in
4524yes:)
cristy8b350f62009-11-15 23:12:43 +00004525{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004526$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4527ac_tool_warned=yes ;;
4528esac
4529 CC=$ac_ct_CC
4530 fi
4531else
4532 CC="$ac_cv_prog_CC"
4533fi
4534
4535if test -z "$CC"; then
4536 if test -n "$ac_tool_prefix"; then
4537 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4538set dummy ${ac_tool_prefix}cc; 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_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004542 $as_echo_n "(cached) " >&6
4543else
4544 if test -n "$CC"; then
4545 ac_cv_prog_CC="$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_CC="${ac_tool_prefix}cc"
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
4564CC=$ac_cv_prog_CC
4565if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004567$as_echo "$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
4574 fi
4575fi
4576if test -z "$CC"; then
4577 # Extract the first word of "cc", so it can be a program name with args.
4578set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004580$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004581if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004582 $as_echo_n "(cached) " >&6
4583else
4584 if test -n "$CC"; then
4585 ac_cv_prog_CC="$CC" # Let the user override the test.
4586else
4587 ac_prog_rejected=no
4588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4589for as_dir in $PATH
4590do
4591 IFS=$as_save_IFS
4592 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004593 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004595 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4596 ac_prog_rejected=yes
4597 continue
4598 fi
4599 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004601 break 2
4602 fi
4603done
cristy8b350f62009-11-15 23:12:43 +00004604 done
cristy3ed852e2009-09-05 21:47:34 +00004605IFS=$as_save_IFS
4606
4607if test $ac_prog_rejected = yes; then
4608 # We found a bogon in the path, so make sure we never use it.
4609 set dummy $ac_cv_prog_CC
4610 shift
4611 if test $# != 0; then
4612 # We chose a different compiler from the bogus one.
4613 # However, it has the same basename, so the bogon will be chosen
4614 # first if we set CC to just the basename; use the full file name.
4615 shift
4616 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4617 fi
4618fi
4619fi
4620fi
4621CC=$ac_cv_prog_CC
4622if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004624$as_echo "$CC" >&6; }
4625else
cristy8b350f62009-11-15 23:12:43 +00004626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004627$as_echo "no" >&6; }
4628fi
4629
4630
4631fi
4632if test -z "$CC"; then
4633 if test -n "$ac_tool_prefix"; then
4634 for ac_prog in cl.exe
4635 do
4636 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4637set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004639$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004640if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004641 $as_echo_n "(cached) " >&6
4642else
4643 if test -n "$CC"; then
4644 ac_cv_prog_CC="$CC" # Let the user override the test.
4645else
4646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4647for as_dir in $PATH
4648do
4649 IFS=$as_save_IFS
4650 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004651 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004653 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004655 break 2
4656 fi
4657done
cristy8b350f62009-11-15 23:12:43 +00004658 done
cristy3ed852e2009-09-05 21:47:34 +00004659IFS=$as_save_IFS
4660
4661fi
4662fi
4663CC=$ac_cv_prog_CC
4664if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004666$as_echo "$CC" >&6; }
4667else
cristy8b350f62009-11-15 23:12:43 +00004668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004669$as_echo "no" >&6; }
4670fi
4671
4672
4673 test -n "$CC" && break
4674 done
4675fi
4676if test -z "$CC"; then
4677 ac_ct_CC=$CC
4678 for ac_prog in cl.exe
4679do
4680 # Extract the first word of "$ac_prog", so it can be a program name with args.
4681set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004683$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004684if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004685 $as_echo_n "(cached) " >&6
4686else
4687 if test -n "$ac_ct_CC"; then
4688 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4689else
4690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4691for as_dir in $PATH
4692do
4693 IFS=$as_save_IFS
4694 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004695 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004697 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004699 break 2
4700 fi
4701done
cristy8b350f62009-11-15 23:12:43 +00004702 done
cristy3ed852e2009-09-05 21:47:34 +00004703IFS=$as_save_IFS
4704
4705fi
4706fi
4707ac_ct_CC=$ac_cv_prog_ac_ct_CC
4708if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004710$as_echo "$ac_ct_CC" >&6; }
4711else
cristy8b350f62009-11-15 23:12:43 +00004712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004713$as_echo "no" >&6; }
4714fi
4715
4716
4717 test -n "$ac_ct_CC" && break
4718done
4719
4720 if test "x$ac_ct_CC" = x; then
4721 CC=""
4722 else
4723 case $cross_compiling:$ac_tool_warned in
4724yes:)
cristy8b350f62009-11-15 23:12:43 +00004725{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004726$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4727ac_tool_warned=yes ;;
4728esac
4729 CC=$ac_ct_CC
4730 fi
4731fi
4732
4733fi
4734
4735
cristy8b350f62009-11-15 23:12:43 +00004736test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004737$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004738as_fn_error $? "no acceptable C compiler found in \$PATH
4739See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004740
4741# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004742$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004743set X $ac_compile
4744ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004745for ac_option in --version -v -V -qversion; do
4746 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004747case "(($ac_try" in
4748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4749 *) ac_try_echo=$ac_try;;
4750esac
cristy8b350f62009-11-15 23:12:43 +00004751eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4752$as_echo "$ac_try_echo"; } >&5
4753 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004754 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004755 if test -s conftest.err; then
4756 sed '10a\
4757... rest of stderr output deleted ...
4758 10q' conftest.err >conftest.er1
4759 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004760 fi
cristycd4c5312009-11-22 01:19:08 +00004761 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4763 test $ac_status = 0; }
4764done
cristy3ed852e2009-09-05 21:47:34 +00004765
cristy8b350f62009-11-15 23:12:43 +00004766cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004767/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004768
cristy3ed852e2009-09-05 21:47:34 +00004769int
4770main ()
4771{
4772
4773 ;
4774 return 0;
4775}
4776_ACEOF
4777ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004778ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004779# Try to create an executable without -o first, disregard a.out.
4780# It will help us diagnose broken compilers, and finding out an intuition
4781# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4783$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004784ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4785
4786# The possible output files:
4787ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4788
4789ac_rmfiles=
4790for ac_file in $ac_files
4791do
4792 case $ac_file in
4793 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4794 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4795 esac
4796done
4797rm -f $ac_rmfiles
4798
cristy8b350f62009-11-15 23:12:43 +00004799if { { ac_try="$ac_link_default"
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
cristy3ed852e2009-09-05 21:47:34 +00004806 (eval "$ac_link_default") 2>&5
4807 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4809 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004810 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4811# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4812# in a Makefile. We should not override ac_cv_exeext if it was cached,
4813# so that the user can short-circuit this test for compilers unknown to
4814# Autoconf.
4815for ac_file in $ac_files ''
4816do
4817 test -f "$ac_file" || continue
4818 case $ac_file in
4819 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4820 ;;
4821 [ab].out )
4822 # We found the default executable, but exeext='' is most
4823 # certainly right.
4824 break;;
4825 *.* )
cristy8b350f62009-11-15 23:12:43 +00004826 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004827 then :; else
4828 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4829 fi
4830 # We set ac_cv_exeext here because the later test for it is not
4831 # safe: cross compilers may not add the suffix if given an `-o'
4832 # argument, so we may need to know it at that point already.
4833 # Even if this section looks crufty: it has the advantage of
4834 # actually working.
4835 break;;
4836 * )
4837 break;;
4838 esac
4839done
4840test "$ac_cv_exeext" = no && ac_cv_exeext=
4841
4842else
4843 ac_file=''
4844fi
cristy8b350f62009-11-15 23:12:43 +00004845if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4847$as_echo "no" >&6; }
4848$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004849sed 's/^/| /' conftest.$ac_ext >&5
4850
cristy8b350f62009-11-15 23:12:43 +00004851{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004852$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004853as_fn_error 77 "C compiler cannot create executables
4854See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004855else
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4857$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004858fi
cristycd4c5312009-11-22 01:19:08 +00004859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4860$as_echo_n "checking for C compiler default output file name... " >&6; }
4861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4862$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004863ac_exeext=$ac_cv_exeext
4864
cristycd4c5312009-11-22 01:19:08 +00004865rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004866ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004868$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004869if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004870case "(($ac_try" in
4871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4872 *) ac_try_echo=$ac_try;;
4873esac
cristy8b350f62009-11-15 23:12:43 +00004874eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4875$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004876 (eval "$ac_link") 2>&5
4877 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4879 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004880 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4881# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4882# work properly (i.e., refer to `conftest.exe'), while it won't with
4883# `rm'.
4884for ac_file in conftest.exe conftest conftest.*; do
4885 test -f "$ac_file" || continue
4886 case $ac_file in
4887 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4888 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4889 break;;
4890 * ) break;;
4891 esac
4892done
4893else
cristy8b350f62009-11-15 23:12:43 +00004894 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004895$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004896as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4897See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004898fi
cristycd4c5312009-11-22 01:19:08 +00004899rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004901$as_echo "$ac_cv_exeext" >&6; }
4902
4903rm -f conftest.$ac_ext
4904EXEEXT=$ac_cv_exeext
4905ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004906cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4907/* end confdefs.h. */
4908#include <stdio.h>
4909int
4910main ()
4911{
4912FILE *f = fopen ("conftest.out", "w");
4913 return ferror (f) || fclose (f) != 0;
4914
4915 ;
4916 return 0;
4917}
4918_ACEOF
4919ac_clean_files="$ac_clean_files conftest.out"
4920# Check that the compiler produces executables we can run. If not, either
4921# the compiler is broken, or we cross compile.
4922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4923$as_echo_n "checking whether we are cross compiling... " >&6; }
4924if test "$cross_compiling" != yes; then
4925 { { ac_try="$ac_link"
4926case "(($ac_try" in
4927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4928 *) ac_try_echo=$ac_try;;
4929esac
4930eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4931$as_echo "$ac_try_echo"; } >&5
4932 (eval "$ac_link") 2>&5
4933 ac_status=$?
4934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4935 test $ac_status = 0; }
4936 if { ac_try='./conftest$ac_cv_exeext'
4937 { { case "(($ac_try" in
4938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4939 *) ac_try_echo=$ac_try;;
4940esac
4941eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4942$as_echo "$ac_try_echo"; } >&5
4943 (eval "$ac_try") 2>&5
4944 ac_status=$?
4945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4946 test $ac_status = 0; }; }; then
4947 cross_compiling=no
4948 else
4949 if test "$cross_compiling" = maybe; then
4950 cross_compiling=yes
4951 else
4952 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4953$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004954as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00004955If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00004956See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004957 fi
4958 fi
4959fi
4960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4961$as_echo "$cross_compiling" >&6; }
4962
4963rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4964ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004966$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004967if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004968 $as_echo_n "(cached) " >&6
4969else
cristy8b350f62009-11-15 23:12:43 +00004970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004971/* end confdefs.h. */
4972
4973int
4974main ()
4975{
4976
4977 ;
4978 return 0;
4979}
4980_ACEOF
4981rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004982if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004983case "(($ac_try" in
4984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4985 *) ac_try_echo=$ac_try;;
4986esac
cristy8b350f62009-11-15 23:12:43 +00004987eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4988$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004989 (eval "$ac_compile") 2>&5
4990 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4992 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004993 for ac_file in conftest.o conftest.obj conftest.*; do
4994 test -f "$ac_file" || continue;
4995 case $ac_file in
4996 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4997 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4998 break;;
4999 esac
5000done
5001else
5002 $as_echo "$as_me: failed program was:" >&5
5003sed 's/^/| /' conftest.$ac_ext >&5
5004
cristy8b350f62009-11-15 23:12:43 +00005005{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005006$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005007as_fn_error $? "cannot compute suffix of object files: cannot compile
5008See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00005009fi
cristy3ed852e2009-09-05 21:47:34 +00005010rm -f conftest.$ac_cv_objext conftest.$ac_ext
5011fi
cristy8b350f62009-11-15 23:12:43 +00005012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00005013$as_echo "$ac_cv_objext" >&6; }
5014OBJEXT=$ac_cv_objext
5015ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00005016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00005017$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005018if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005019 $as_echo_n "(cached) " >&6
5020else
cristy8b350f62009-11-15 23:12:43 +00005021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005022/* end confdefs.h. */
5023
5024int
5025main ()
5026{
5027#ifndef __GNUC__
5028 choke me
5029#endif
5030
5031 ;
5032 return 0;
5033}
5034_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005035if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005036 ac_compiler_gnu=yes
5037else
cristy8b350f62009-11-15 23:12:43 +00005038 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00005039fi
cristy3ed852e2009-09-05 21:47:34 +00005040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5041ac_cv_c_compiler_gnu=$ac_compiler_gnu
5042
5043fi
cristy8b350f62009-11-15 23:12:43 +00005044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00005045$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5046if test $ac_compiler_gnu = yes; then
5047 GCC=yes
5048else
5049 GCC=
5050fi
5051ac_test_CFLAGS=${CFLAGS+set}
5052ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00005053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005054$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005055if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005056 $as_echo_n "(cached) " >&6
5057else
5058 ac_save_c_werror_flag=$ac_c_werror_flag
5059 ac_c_werror_flag=yes
5060 ac_cv_prog_cc_g=no
5061 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005063/* end confdefs.h. */
5064
5065int
5066main ()
5067{
5068
5069 ;
5070 return 0;
5071}
5072_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005073if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005074 ac_cv_prog_cc_g=yes
5075else
cristy8b350f62009-11-15 23:12:43 +00005076 CFLAGS=""
5077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005078/* end confdefs.h. */
5079
5080int
5081main ()
5082{
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
cristy8b350f62009-11-15 23:12:43 +00005090else
5091 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00005092 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005094/* end confdefs.h. */
5095
5096int
5097main ()
5098{
5099
5100 ;
5101 return 0;
5102}
5103_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005104if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005105 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00005106fi
cristy3ed852e2009-09-05 21:47:34 +00005107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5108fi
cristy3ed852e2009-09-05 21:47:34 +00005109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5110fi
cristy3ed852e2009-09-05 21:47:34 +00005111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5112 ac_c_werror_flag=$ac_save_c_werror_flag
5113fi
cristy8b350f62009-11-15 23:12:43 +00005114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005115$as_echo "$ac_cv_prog_cc_g" >&6; }
5116if test "$ac_test_CFLAGS" = set; then
5117 CFLAGS=$ac_save_CFLAGS
5118elif test $ac_cv_prog_cc_g = yes; then
5119 if test "$GCC" = yes; then
5120 CFLAGS="-g -O2"
5121 else
5122 CFLAGS="-g"
5123 fi
5124else
5125 if test "$GCC" = yes; then
5126 CFLAGS="-O2"
5127 else
5128 CFLAGS=
5129 fi
5130fi
cristy8b350f62009-11-15 23:12:43 +00005131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005132$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005133if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005134 $as_echo_n "(cached) " >&6
5135else
5136 ac_cv_prog_cc_c89=no
5137ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00005138cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005139/* end confdefs.h. */
5140#include <stdarg.h>
5141#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00005142struct stat;
cristy3ed852e2009-09-05 21:47:34 +00005143/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5144struct buf { int x; };
5145FILE * (*rcsopen) (struct buf *, struct stat *, int);
5146static char *e (p, i)
5147 char **p;
5148 int i;
5149{
5150 return p[i];
5151}
5152static char *f (char * (*g) (char **, int), char **p, ...)
5153{
5154 char *s;
5155 va_list v;
5156 va_start (v,p);
5157 s = g (p, va_arg (v,int));
5158 va_end (v);
5159 return s;
5160}
5161
5162/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5163 function prototypes and stuff, but not '\xHH' hex character constants.
5164 These don't provoke an error unfortunately, instead are silently treated
5165 as 'x'. The following induces an error, until -std is added to get
5166 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5167 array size at least. It's necessary to write '\x00'==0 to get something
5168 that's true only with -std. */
5169int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5170
5171/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5172 inside strings and character constants. */
5173#define FOO(x) 'x'
5174int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5175
5176int test (int i, double x);
5177struct s1 {int (*f) (int a);};
5178struct s2 {int (*f) (double a);};
5179int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5180int argc;
5181char **argv;
5182int
5183main ()
5184{
5185return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5186 ;
5187 return 0;
5188}
5189_ACEOF
5190for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5191 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5192do
5193 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005194 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005195 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005196fi
cristy3ed852e2009-09-05 21:47:34 +00005197rm -f core conftest.err conftest.$ac_objext
5198 test "x$ac_cv_prog_cc_c89" != "xno" && break
5199done
5200rm -f conftest.$ac_ext
5201CC=$ac_save_CC
5202
5203fi
5204# AC_CACHE_VAL
5205case "x$ac_cv_prog_cc_c89" in
5206 x)
cristy8b350f62009-11-15 23:12:43 +00005207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005208$as_echo "none needed" >&6; } ;;
5209 xno)
cristy8b350f62009-11-15 23:12:43 +00005210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005211$as_echo "unsupported" >&6; } ;;
5212 *)
5213 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005215$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5216esac
cristy8b350f62009-11-15 23:12:43 +00005217if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005218
cristy8b350f62009-11-15 23:12:43 +00005219fi
cristy3ed852e2009-09-05 21:47:34 +00005220
5221ac_ext=c
5222ac_cpp='$CPP $CPPFLAGS'
5223ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5224ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5225ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005226
cristy73bd4a52010-10-05 11:24:23 +00005227depcc="$CC" am_compiler_list=
5228
5229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5230$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005231if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00005232 $as_echo_n "(cached) " >&6
5233else
5234 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5235 # We make a subdir and do the tests there. Otherwise we can end up
5236 # making bogus files that we don't know about and never remove. For
5237 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00005238 # making a dummy file named 'D' -- because '-MD' means "put the output
5239 # in D".
cristy7247bba2012-02-05 16:37:27 +00005240 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00005241 mkdir conftest.dir
5242 # Copy depcomp to subdir because otherwise we won't find it if we're
5243 # using a relative directory.
5244 cp "$am_depcomp" conftest.dir
5245 cd conftest.dir
5246 # We will build objects and dependencies in a subdirectory because
5247 # it helps to detect inapplicable dependency modes. For instance
5248 # both Tru64's cc and ICC support -MD to output dependencies as a
5249 # side effect of compilation, but ICC will put the dependencies in
5250 # the current directory while Tru64 will put them in the object
5251 # directory.
5252 mkdir sub
5253
5254 am_cv_CC_dependencies_compiler_type=none
5255 if test "$am_compiler_list" = ""; then
5256 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5257 fi
5258 am__universal=false
5259 case " $depcc " in #(
5260 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5261 esac
5262
5263 for depmode in $am_compiler_list; do
5264 # Setup a source with many dependencies, because some compilers
5265 # like to wrap large dependency lists on column 80 (with \), and
5266 # we should not choose a depcomp mode which is confused by this.
5267 #
5268 # We need to recreate these files for each test, as the compiler may
5269 # overwrite some of them when testing with obscure command lines.
5270 # This happens at least with the AIX C compiler.
5271 : > sub/conftest.c
5272 for i in 1 2 3 4 5 6; do
5273 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00005274 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5275 # Solaris 10 /bin/sh.
5276 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00005277 done
5278 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5279
cristyc0890a62012-07-19 00:18:20 +00005280 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00005281 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00005282 # handle '-M -o', and we need to detect this. Also, some Intel
5283 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00005284 am__obj=sub/conftest.${OBJEXT-o}
5285 am__minus_obj="-o $am__obj"
5286 case $depmode in
5287 gcc)
5288 # This depmode causes a compiler race in universal mode.
5289 test "$am__universal" = false || continue
5290 ;;
5291 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00005292 # After this tag, mechanisms are not by side-effect, so they'll
5293 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00005294 if test "x$enable_dependency_tracking" = xyes; then
5295 continue
5296 else
5297 break
5298 fi
5299 ;;
cristy7247bba2012-02-05 16:37:27 +00005300 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00005301 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00005302 # not run yet. These depmodes are late enough in the game, and
5303 # so weak that their functioning should not be impacted.
5304 am__obj=conftest.${OBJEXT-o}
5305 am__minus_obj=
5306 ;;
5307 none) break ;;
5308 esac
5309 if depmode=$depmode \
5310 source=sub/conftest.c object=$am__obj \
5311 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5312 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5313 >/dev/null 2>conftest.err &&
5314 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5315 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5316 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5317 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5318 # icc doesn't choke on unknown options, it will just issue warnings
5319 # or remarks (even with -Werror). So we grep stderr for any message
5320 # that says an option was ignored or not supported.
5321 # When given -MP, icc 7.0 and 7.1 complain thusly:
5322 # icc: Command line warning: ignoring option '-M'; no argument required
5323 # The diagnosis changed in icc 8.0:
5324 # icc: Command line remark: option '-MP' not supported
5325 if (grep 'ignoring option' conftest.err ||
5326 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5327 am_cv_CC_dependencies_compiler_type=$depmode
5328 break
5329 fi
5330 fi
5331 done
5332
5333 cd ..
5334 rm -rf conftest.dir
5335else
5336 am_cv_CC_dependencies_compiler_type=none
5337fi
5338
5339fi
5340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5341$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5342CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5343
5344 if
5345 test "x$enable_dependency_tracking" != xno \
5346 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5347 am__fastdepCC_TRUE=
5348 am__fastdepCC_FALSE='#'
5349else
5350 am__fastdepCC_TRUE='#'
5351 am__fastdepCC_FALSE=
5352fi
5353
5354
cristy3ed852e2009-09-05 21:47:34 +00005355
cristya0b81c32010-01-22 02:54:33 +00005356ac_ext=c
5357ac_cpp='$CPP $CPPFLAGS'
5358ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5359ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5360ac_compiler_gnu=$ac_cv_c_compiler_gnu
5361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5362$as_echo_n "checking how to run the C preprocessor... " >&6; }
5363# On Suns, sometimes $CPP names a directory.
5364if test -n "$CPP" && test -d "$CPP"; then
5365 CPP=
5366fi
5367if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005368 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005369 $as_echo_n "(cached) " >&6
5370else
5371 # Double quotes because CPP needs to be expanded
5372 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5373 do
5374 ac_preproc_ok=false
5375for ac_c_preproc_warn_flag in '' yes
5376do
5377 # Use a header file that comes with gcc, so configuring glibc
5378 # with a fresh cross-compiler works.
5379 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5380 # <limits.h> exists even on freestanding compilers.
5381 # On the NeXT, cc -E runs the code through the compiler's parser,
5382 # not just through cpp. "Syntax error" is here to catch this case.
5383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5384/* end confdefs.h. */
5385#ifdef __STDC__
5386# include <limits.h>
5387#else
5388# include <assert.h>
5389#endif
5390 Syntax error
5391_ACEOF
5392if ac_fn_c_try_cpp "$LINENO"; then :
5393
5394else
5395 # Broken: fails on valid input.
5396continue
5397fi
cristyda16f162011-02-19 23:52:17 +00005398rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005399
5400 # OK, works on sane cases. Now check whether nonexistent headers
5401 # can be detected and how.
5402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5403/* end confdefs.h. */
5404#include <ac_nonexistent.h>
5405_ACEOF
5406if ac_fn_c_try_cpp "$LINENO"; then :
5407 # Broken: success on invalid input.
5408continue
5409else
5410 # Passes both tests.
5411ac_preproc_ok=:
5412break
5413fi
cristyda16f162011-02-19 23:52:17 +00005414rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005415
5416done
5417# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005418rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005419if $ac_preproc_ok; then :
5420 break
5421fi
5422
5423 done
5424 ac_cv_prog_CPP=$CPP
5425
5426fi
5427 CPP=$ac_cv_prog_CPP
5428else
5429 ac_cv_prog_CPP=$CPP
5430fi
5431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5432$as_echo "$CPP" >&6; }
5433ac_preproc_ok=false
5434for ac_c_preproc_warn_flag in '' yes
5435do
5436 # Use a header file that comes with gcc, so configuring glibc
5437 # with a fresh cross-compiler works.
5438 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5439 # <limits.h> exists even on freestanding compilers.
5440 # On the NeXT, cc -E runs the code through the compiler's parser,
5441 # not just through cpp. "Syntax error" is here to catch this case.
5442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5443/* end confdefs.h. */
5444#ifdef __STDC__
5445# include <limits.h>
5446#else
5447# include <assert.h>
5448#endif
5449 Syntax error
5450_ACEOF
5451if ac_fn_c_try_cpp "$LINENO"; then :
5452
5453else
5454 # Broken: fails on valid input.
5455continue
5456fi
cristyda16f162011-02-19 23:52:17 +00005457rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005458
5459 # OK, works on sane cases. Now check whether nonexistent headers
5460 # can be detected and how.
5461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5462/* end confdefs.h. */
5463#include <ac_nonexistent.h>
5464_ACEOF
5465if ac_fn_c_try_cpp "$LINENO"; then :
5466 # Broken: success on invalid input.
5467continue
5468else
5469 # Passes both tests.
5470ac_preproc_ok=:
5471break
5472fi
cristyda16f162011-02-19 23:52:17 +00005473rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005474
5475done
5476# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005477rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005478if $ac_preproc_ok; then :
5479
5480else
5481 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5482$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005483as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5484See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005485fi
5486
5487ac_ext=c
5488ac_cpp='$CPP $CPPFLAGS'
5489ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5490ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5491ac_compiler_gnu=$ac_cv_c_compiler_gnu
5492
5493
5494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5495$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005496if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005497 $as_echo_n "(cached) " >&6
5498else
5499 if test -z "$GREP"; then
5500 ac_path_GREP_found=false
5501 # Loop through the user's path and test for each of PROGNAME-LIST
5502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5503for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5504do
5505 IFS=$as_save_IFS
5506 test -z "$as_dir" && as_dir=.
5507 for ac_prog in grep ggrep; do
5508 for ac_exec_ext in '' $ac_executable_extensions; do
5509 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005510 as_fn_executable_p "$ac_path_GREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005511# Check for GNU ac_path_GREP and select it if it is found.
5512 # Check for GNU $ac_path_GREP
5513case `"$ac_path_GREP" --version 2>&1` in
5514*GNU*)
5515 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5516*)
5517 ac_count=0
5518 $as_echo_n 0123456789 >"conftest.in"
5519 while :
5520 do
5521 cat "conftest.in" "conftest.in" >"conftest.tmp"
5522 mv "conftest.tmp" "conftest.in"
5523 cp "conftest.in" "conftest.nl"
5524 $as_echo 'GREP' >> "conftest.nl"
5525 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5526 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5527 as_fn_arith $ac_count + 1 && ac_count=$as_val
5528 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5529 # Best one so far, save it but keep looking for a better one
5530 ac_cv_path_GREP="$ac_path_GREP"
5531 ac_path_GREP_max=$ac_count
5532 fi
5533 # 10*(2^10) chars as input seems more than enough
5534 test $ac_count -gt 10 && break
5535 done
5536 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5537esac
5538
5539 $ac_path_GREP_found && break 3
5540 done
5541 done
5542 done
5543IFS=$as_save_IFS
5544 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005545 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005546 fi
5547else
5548 ac_cv_path_GREP=$GREP
5549fi
5550
5551fi
5552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5553$as_echo "$ac_cv_path_GREP" >&6; }
5554 GREP="$ac_cv_path_GREP"
5555
5556
5557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5558$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005559if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005560 $as_echo_n "(cached) " >&6
5561else
5562 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5563 then ac_cv_path_EGREP="$GREP -E"
5564 else
5565 if test -z "$EGREP"; then
5566 ac_path_EGREP_found=false
5567 # Loop through the user's path and test for each of PROGNAME-LIST
5568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5569for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5570do
5571 IFS=$as_save_IFS
5572 test -z "$as_dir" && as_dir=.
5573 for ac_prog in egrep; do
5574 for ac_exec_ext in '' $ac_executable_extensions; do
5575 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005576 as_fn_executable_p "$ac_path_EGREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005577# Check for GNU ac_path_EGREP and select it if it is found.
5578 # Check for GNU $ac_path_EGREP
5579case `"$ac_path_EGREP" --version 2>&1` in
5580*GNU*)
5581 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5582*)
5583 ac_count=0
5584 $as_echo_n 0123456789 >"conftest.in"
5585 while :
5586 do
5587 cat "conftest.in" "conftest.in" >"conftest.tmp"
5588 mv "conftest.tmp" "conftest.in"
5589 cp "conftest.in" "conftest.nl"
5590 $as_echo 'EGREP' >> "conftest.nl"
5591 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5592 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5593 as_fn_arith $ac_count + 1 && ac_count=$as_val
5594 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5595 # Best one so far, save it but keep looking for a better one
5596 ac_cv_path_EGREP="$ac_path_EGREP"
5597 ac_path_EGREP_max=$ac_count
5598 fi
5599 # 10*(2^10) chars as input seems more than enough
5600 test $ac_count -gt 10 && break
5601 done
5602 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5603esac
5604
5605 $ac_path_EGREP_found && break 3
5606 done
5607 done
5608 done
5609IFS=$as_save_IFS
5610 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005611 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005612 fi
5613else
5614 ac_cv_path_EGREP=$EGREP
5615fi
5616
5617 fi
5618fi
5619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5620$as_echo "$ac_cv_path_EGREP" >&6; }
5621 EGREP="$ac_cv_path_EGREP"
5622
5623
5624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5625$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005626if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005627 $as_echo_n "(cached) " >&6
5628else
5629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5630/* end confdefs.h. */
5631#include <stdlib.h>
5632#include <stdarg.h>
5633#include <string.h>
5634#include <float.h>
5635
5636int
5637main ()
5638{
5639
5640 ;
5641 return 0;
5642}
5643_ACEOF
5644if ac_fn_c_try_compile "$LINENO"; then :
5645 ac_cv_header_stdc=yes
5646else
5647 ac_cv_header_stdc=no
5648fi
5649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5650
5651if test $ac_cv_header_stdc = yes; then
5652 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5654/* end confdefs.h. */
5655#include <string.h>
5656
5657_ACEOF
5658if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5659 $EGREP "memchr" >/dev/null 2>&1; then :
5660
5661else
5662 ac_cv_header_stdc=no
5663fi
5664rm -f conftest*
5665
5666fi
5667
5668if test $ac_cv_header_stdc = yes; then
5669 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5671/* end confdefs.h. */
5672#include <stdlib.h>
5673
5674_ACEOF
5675if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5676 $EGREP "free" >/dev/null 2>&1; then :
5677
5678else
5679 ac_cv_header_stdc=no
5680fi
5681rm -f conftest*
5682
5683fi
5684
5685if test $ac_cv_header_stdc = yes; then
5686 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5687 if test "$cross_compiling" = yes; then :
5688 :
5689else
5690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5691/* end confdefs.h. */
5692#include <ctype.h>
5693#include <stdlib.h>
5694#if ((' ' & 0x0FF) == 0x020)
5695# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5696# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5697#else
5698# define ISLOWER(c) \
5699 (('a' <= (c) && (c) <= 'i') \
5700 || ('j' <= (c) && (c) <= 'r') \
5701 || ('s' <= (c) && (c) <= 'z'))
5702# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5703#endif
5704
5705#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5706int
5707main ()
5708{
5709 int i;
5710 for (i = 0; i < 256; i++)
5711 if (XOR (islower (i), ISLOWER (i))
5712 || toupper (i) != TOUPPER (i))
5713 return 2;
5714 return 0;
5715}
5716_ACEOF
5717if ac_fn_c_try_run "$LINENO"; then :
5718
5719else
5720 ac_cv_header_stdc=no
5721fi
5722rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5723 conftest.$ac_objext conftest.beam conftest.$ac_ext
5724fi
5725
5726fi
5727fi
5728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5729$as_echo "$ac_cv_header_stdc" >&6; }
5730if test $ac_cv_header_stdc = yes; then
5731
5732$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5733
5734fi
5735
5736# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5737for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5738 inttypes.h stdint.h unistd.h
5739do :
5740 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5741ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5742"
cristy98dddb52010-11-04 00:30:15 +00005743if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005744 cat >>confdefs.h <<_ACEOF
5745#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5746_ACEOF
5747
5748fi
5749
5750done
5751
5752
5753
5754 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 +00005755if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00005756 MINIX=yes
5757else
5758 MINIX=
5759fi
5760
5761
5762 if test "$MINIX" = yes; then
5763
5764$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5765
5766
5767$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5768
5769
5770$as_echo "#define _MINIX 1" >>confdefs.h
5771
5772 fi
5773
5774
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5776$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005777if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005778 $as_echo_n "(cached) " >&6
5779else
5780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5781/* end confdefs.h. */
5782
cristy14fefe52012-05-21 00:59:18 +00005783# define __EXTENSIONS__ 1
5784 $ac_includes_default
cristya0b81c32010-01-22 02:54:33 +00005785int
5786main ()
5787{
5788
5789 ;
5790 return 0;
5791}
5792_ACEOF
5793if ac_fn_c_try_compile "$LINENO"; then :
5794 ac_cv_safe_to_define___extensions__=yes
5795else
5796 ac_cv_safe_to_define___extensions__=no
5797fi
5798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5799fi
5800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5801$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5802 test $ac_cv_safe_to_define___extensions__ = yes &&
5803 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5804
5805 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5806
5807 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5808
5809 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5810
5811 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5812
5813
5814
5815# Check for programs
5816ac_ext=c
5817ac_cpp='$CPP $CPPFLAGS'
5818ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5819ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5820ac_compiler_gnu=$ac_cv_c_compiler_gnu
5821if test -n "$ac_tool_prefix"; then
5822 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5823set dummy ${ac_tool_prefix}gcc; ac_word=$2
5824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5825$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005826if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005827 $as_echo_n "(cached) " >&6
5828else
5829 if test -n "$CC"; then
5830 ac_cv_prog_CC="$CC" # Let the user override the test.
5831else
5832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5833for as_dir in $PATH
5834do
5835 IFS=$as_save_IFS
5836 test -z "$as_dir" && as_dir=.
5837 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005839 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5841 break 2
5842 fi
5843done
5844 done
5845IFS=$as_save_IFS
5846
5847fi
5848fi
5849CC=$ac_cv_prog_CC
5850if test -n "$CC"; then
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5852$as_echo "$CC" >&6; }
5853else
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5855$as_echo "no" >&6; }
5856fi
5857
5858
5859fi
5860if test -z "$ac_cv_prog_CC"; then
5861 ac_ct_CC=$CC
5862 # Extract the first word of "gcc", so it can be a program name with args.
5863set dummy gcc; ac_word=$2
5864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5865$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005866if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005867 $as_echo_n "(cached) " >&6
5868else
5869 if test -n "$ac_ct_CC"; then
5870 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5871else
5872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5873for as_dir in $PATH
5874do
5875 IFS=$as_save_IFS
5876 test -z "$as_dir" && as_dir=.
5877 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005879 ac_cv_prog_ac_ct_CC="gcc"
5880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5881 break 2
5882 fi
5883done
5884 done
5885IFS=$as_save_IFS
5886
5887fi
5888fi
5889ac_ct_CC=$ac_cv_prog_ac_ct_CC
5890if test -n "$ac_ct_CC"; then
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5892$as_echo "$ac_ct_CC" >&6; }
5893else
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5895$as_echo "no" >&6; }
5896fi
5897
5898 if test "x$ac_ct_CC" = x; then
5899 CC=""
5900 else
5901 case $cross_compiling:$ac_tool_warned in
5902yes:)
5903{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5904$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5905ac_tool_warned=yes ;;
5906esac
5907 CC=$ac_ct_CC
5908 fi
5909else
5910 CC="$ac_cv_prog_CC"
5911fi
5912
5913if test -z "$CC"; then
5914 if test -n "$ac_tool_prefix"; then
5915 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5916set dummy ${ac_tool_prefix}cc; 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_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005920 $as_echo_n "(cached) " >&6
5921else
5922 if test -n "$CC"; then
5923 ac_cv_prog_CC="$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_CC="${ac_tool_prefix}cc"
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
5942CC=$ac_cv_prog_CC
5943if test -n "$CC"; then
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5945$as_echo "$CC" >&6; }
5946else
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5948$as_echo "no" >&6; }
5949fi
5950
5951
5952 fi
5953fi
5954if test -z "$CC"; then
5955 # Extract the first word of "cc", so it can be a program name with args.
5956set dummy cc; ac_word=$2
5957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5958$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005959if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005960 $as_echo_n "(cached) " >&6
5961else
5962 if test -n "$CC"; then
5963 ac_cv_prog_CC="$CC" # Let the user override the test.
5964else
5965 ac_prog_rejected=no
5966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5967for as_dir in $PATH
5968do
5969 IFS=$as_save_IFS
5970 test -z "$as_dir" && as_dir=.
5971 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005973 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5974 ac_prog_rejected=yes
5975 continue
5976 fi
5977 ac_cv_prog_CC="cc"
5978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5979 break 2
5980 fi
5981done
5982 done
5983IFS=$as_save_IFS
5984
5985if test $ac_prog_rejected = yes; then
5986 # We found a bogon in the path, so make sure we never use it.
5987 set dummy $ac_cv_prog_CC
5988 shift
5989 if test $# != 0; then
5990 # We chose a different compiler from the bogus one.
5991 # However, it has the same basename, so the bogon will be chosen
5992 # first if we set CC to just the basename; use the full file name.
5993 shift
5994 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5995 fi
5996fi
5997fi
5998fi
5999CC=$ac_cv_prog_CC
6000if test -n "$CC"; then
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6002$as_echo "$CC" >&6; }
6003else
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6005$as_echo "no" >&6; }
6006fi
6007
6008
6009fi
6010if test -z "$CC"; then
6011 if test -n "$ac_tool_prefix"; then
6012 for ac_prog in cl.exe
6013 do
6014 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6015set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6017$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006018if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006019 $as_echo_n "(cached) " >&6
6020else
6021 if test -n "$CC"; then
6022 ac_cv_prog_CC="$CC" # Let the user override the test.
6023else
6024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6025for as_dir in $PATH
6026do
6027 IFS=$as_save_IFS
6028 test -z "$as_dir" && as_dir=.
6029 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006031 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6033 break 2
6034 fi
6035done
6036 done
6037IFS=$as_save_IFS
6038
6039fi
6040fi
6041CC=$ac_cv_prog_CC
6042if test -n "$CC"; then
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6044$as_echo "$CC" >&6; }
6045else
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6047$as_echo "no" >&6; }
6048fi
6049
6050
6051 test -n "$CC" && break
6052 done
6053fi
6054if test -z "$CC"; then
6055 ac_ct_CC=$CC
6056 for ac_prog in cl.exe
6057do
6058 # Extract the first word of "$ac_prog", so it can be a program name with args.
6059set dummy $ac_prog; ac_word=$2
6060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6061$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006062if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006063 $as_echo_n "(cached) " >&6
6064else
6065 if test -n "$ac_ct_CC"; then
6066 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6067else
6068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6069for as_dir in $PATH
6070do
6071 IFS=$as_save_IFS
6072 test -z "$as_dir" && as_dir=.
6073 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006075 ac_cv_prog_ac_ct_CC="$ac_prog"
6076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6077 break 2
6078 fi
6079done
6080 done
6081IFS=$as_save_IFS
6082
6083fi
6084fi
6085ac_ct_CC=$ac_cv_prog_ac_ct_CC
6086if test -n "$ac_ct_CC"; then
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6088$as_echo "$ac_ct_CC" >&6; }
6089else
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6091$as_echo "no" >&6; }
6092fi
6093
6094
6095 test -n "$ac_ct_CC" && break
6096done
6097
6098 if test "x$ac_ct_CC" = x; then
6099 CC=""
6100 else
6101 case $cross_compiling:$ac_tool_warned in
6102yes:)
6103{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6104$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6105ac_tool_warned=yes ;;
6106esac
6107 CC=$ac_ct_CC
6108 fi
6109fi
6110
6111fi
6112
6113
6114test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6115$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00006116as_fn_error $? "no acceptable C compiler found in \$PATH
6117See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00006118
6119# Provide some information about the compiler.
6120$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6121set X $ac_compile
6122ac_compiler=$2
6123for ac_option in --version -v -V -qversion; do
6124 { { ac_try="$ac_compiler $ac_option >&5"
6125case "(($ac_try" in
6126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6127 *) ac_try_echo=$ac_try;;
6128esac
6129eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6130$as_echo "$ac_try_echo"; } >&5
6131 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6132 ac_status=$?
6133 if test -s conftest.err; then
6134 sed '10a\
6135... rest of stderr output deleted ...
6136 10q' conftest.err >conftest.er1
6137 cat conftest.er1 >&5
6138 fi
6139 rm -f conftest.er1 conftest.err
6140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6141 test $ac_status = 0; }
6142done
6143
6144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6145$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006146if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006147 $as_echo_n "(cached) " >&6
6148else
6149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6150/* end confdefs.h. */
6151
6152int
6153main ()
6154{
6155#ifndef __GNUC__
6156 choke me
6157#endif
6158
6159 ;
6160 return 0;
6161}
6162_ACEOF
6163if ac_fn_c_try_compile "$LINENO"; then :
6164 ac_compiler_gnu=yes
6165else
6166 ac_compiler_gnu=no
6167fi
6168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6169ac_cv_c_compiler_gnu=$ac_compiler_gnu
6170
6171fi
6172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6173$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6174if test $ac_compiler_gnu = yes; then
6175 GCC=yes
6176else
6177 GCC=
6178fi
6179ac_test_CFLAGS=${CFLAGS+set}
6180ac_save_CFLAGS=$CFLAGS
6181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6182$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006183if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006184 $as_echo_n "(cached) " >&6
6185else
6186 ac_save_c_werror_flag=$ac_c_werror_flag
6187 ac_c_werror_flag=yes
6188 ac_cv_prog_cc_g=no
6189 CFLAGS="-g"
6190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6191/* end confdefs.h. */
6192
6193int
6194main ()
6195{
6196
6197 ;
6198 return 0;
6199}
6200_ACEOF
6201if ac_fn_c_try_compile "$LINENO"; then :
6202 ac_cv_prog_cc_g=yes
6203else
6204 CFLAGS=""
6205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6206/* end confdefs.h. */
6207
6208int
6209main ()
6210{
6211
6212 ;
6213 return 0;
6214}
6215_ACEOF
6216if ac_fn_c_try_compile "$LINENO"; then :
6217
6218else
6219 ac_c_werror_flag=$ac_save_c_werror_flag
6220 CFLAGS="-g"
6221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6222/* end confdefs.h. */
6223
6224int
6225main ()
6226{
6227
6228 ;
6229 return 0;
6230}
6231_ACEOF
6232if ac_fn_c_try_compile "$LINENO"; then :
6233 ac_cv_prog_cc_g=yes
6234fi
6235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6236fi
6237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6238fi
6239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6240 ac_c_werror_flag=$ac_save_c_werror_flag
6241fi
6242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6243$as_echo "$ac_cv_prog_cc_g" >&6; }
6244if test "$ac_test_CFLAGS" = set; then
6245 CFLAGS=$ac_save_CFLAGS
6246elif test $ac_cv_prog_cc_g = yes; then
6247 if test "$GCC" = yes; then
6248 CFLAGS="-g -O2"
6249 else
6250 CFLAGS="-g"
6251 fi
6252else
6253 if test "$GCC" = yes; then
6254 CFLAGS="-O2"
6255 else
6256 CFLAGS=
6257 fi
6258fi
6259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6260$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006261if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006262 $as_echo_n "(cached) " >&6
6263else
6264 ac_cv_prog_cc_c89=no
6265ac_save_CC=$CC
6266cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6267/* end confdefs.h. */
6268#include <stdarg.h>
6269#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00006270struct stat;
cristya0b81c32010-01-22 02:54:33 +00006271/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6272struct buf { int x; };
6273FILE * (*rcsopen) (struct buf *, struct stat *, int);
6274static char *e (p, i)
6275 char **p;
6276 int i;
6277{
6278 return p[i];
6279}
6280static char *f (char * (*g) (char **, int), char **p, ...)
6281{
6282 char *s;
6283 va_list v;
6284 va_start (v,p);
6285 s = g (p, va_arg (v,int));
6286 va_end (v);
6287 return s;
6288}
6289
6290/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6291 function prototypes and stuff, but not '\xHH' hex character constants.
6292 These don't provoke an error unfortunately, instead are silently treated
6293 as 'x'. The following induces an error, until -std is added to get
6294 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6295 array size at least. It's necessary to write '\x00'==0 to get something
6296 that's true only with -std. */
6297int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6298
6299/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6300 inside strings and character constants. */
6301#define FOO(x) 'x'
6302int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6303
6304int test (int i, double x);
6305struct s1 {int (*f) (int a);};
6306struct s2 {int (*f) (double a);};
6307int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6308int argc;
6309char **argv;
6310int
6311main ()
6312{
6313return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6314 ;
6315 return 0;
6316}
6317_ACEOF
6318for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6319 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6320do
6321 CC="$ac_save_CC $ac_arg"
6322 if ac_fn_c_try_compile "$LINENO"; then :
6323 ac_cv_prog_cc_c89=$ac_arg
6324fi
6325rm -f core conftest.err conftest.$ac_objext
6326 test "x$ac_cv_prog_cc_c89" != "xno" && break
6327done
6328rm -f conftest.$ac_ext
6329CC=$ac_save_CC
6330
6331fi
6332# AC_CACHE_VAL
6333case "x$ac_cv_prog_cc_c89" in
6334 x)
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6336$as_echo "none needed" >&6; } ;;
6337 xno)
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6339$as_echo "unsupported" >&6; } ;;
6340 *)
6341 CC="$CC $ac_cv_prog_cc_c89"
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6343$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6344esac
6345if test "x$ac_cv_prog_cc_c89" != xno; then :
6346
6347fi
6348
6349ac_ext=c
6350ac_cpp='$CPP $CPPFLAGS'
6351ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6352ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6353ac_compiler_gnu=$ac_cv_c_compiler_gnu
6354
cristy73bd4a52010-10-05 11:24:23 +00006355depcc="$CC" am_compiler_list=
6356
6357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6358$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006359if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006360 $as_echo_n "(cached) " >&6
6361else
6362 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6363 # We make a subdir and do the tests there. Otherwise we can end up
6364 # making bogus files that we don't know about and never remove. For
6365 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006366 # making a dummy file named 'D' -- because '-MD' means "put the output
6367 # in D".
cristy7247bba2012-02-05 16:37:27 +00006368 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006369 mkdir conftest.dir
6370 # Copy depcomp to subdir because otherwise we won't find it if we're
6371 # using a relative directory.
6372 cp "$am_depcomp" conftest.dir
6373 cd conftest.dir
6374 # We will build objects and dependencies in a subdirectory because
6375 # it helps to detect inapplicable dependency modes. For instance
6376 # both Tru64's cc and ICC support -MD to output dependencies as a
6377 # side effect of compilation, but ICC will put the dependencies in
6378 # the current directory while Tru64 will put them in the object
6379 # directory.
6380 mkdir sub
6381
6382 am_cv_CC_dependencies_compiler_type=none
6383 if test "$am_compiler_list" = ""; then
6384 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6385 fi
6386 am__universal=false
6387 case " $depcc " in #(
6388 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6389 esac
6390
6391 for depmode in $am_compiler_list; do
6392 # Setup a source with many dependencies, because some compilers
6393 # like to wrap large dependency lists on column 80 (with \), and
6394 # we should not choose a depcomp mode which is confused by this.
6395 #
6396 # We need to recreate these files for each test, as the compiler may
6397 # overwrite some of them when testing with obscure command lines.
6398 # This happens at least with the AIX C compiler.
6399 : > sub/conftest.c
6400 for i in 1 2 3 4 5 6; do
6401 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00006402 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6403 # Solaris 10 /bin/sh.
6404 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00006405 done
6406 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6407
cristyc0890a62012-07-19 00:18:20 +00006408 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00006409 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00006410 # handle '-M -o', and we need to detect this. Also, some Intel
6411 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00006412 am__obj=sub/conftest.${OBJEXT-o}
6413 am__minus_obj="-o $am__obj"
6414 case $depmode in
6415 gcc)
6416 # This depmode causes a compiler race in universal mode.
6417 test "$am__universal" = false || continue
6418 ;;
6419 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00006420 # After this tag, mechanisms are not by side-effect, so they'll
6421 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00006422 if test "x$enable_dependency_tracking" = xyes; then
6423 continue
6424 else
6425 break
6426 fi
6427 ;;
cristy7247bba2012-02-05 16:37:27 +00006428 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00006429 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00006430 # not run yet. These depmodes are late enough in the game, and
6431 # so weak that their functioning should not be impacted.
6432 am__obj=conftest.${OBJEXT-o}
6433 am__minus_obj=
6434 ;;
6435 none) break ;;
6436 esac
6437 if depmode=$depmode \
6438 source=sub/conftest.c object=$am__obj \
6439 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6440 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6441 >/dev/null 2>conftest.err &&
6442 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6443 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6444 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6445 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6446 # icc doesn't choke on unknown options, it will just issue warnings
6447 # or remarks (even with -Werror). So we grep stderr for any message
6448 # that says an option was ignored or not supported.
6449 # When given -MP, icc 7.0 and 7.1 complain thusly:
6450 # icc: Command line warning: ignoring option '-M'; no argument required
6451 # The diagnosis changed in icc 8.0:
6452 # icc: Command line remark: option '-MP' not supported
6453 if (grep 'ignoring option' conftest.err ||
6454 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6455 am_cv_CC_dependencies_compiler_type=$depmode
6456 break
6457 fi
6458 fi
6459 done
6460
6461 cd ..
6462 rm -rf conftest.dir
6463else
6464 am_cv_CC_dependencies_compiler_type=none
6465fi
6466
6467fi
6468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6469$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6470CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6471
6472 if
6473 test "x$enable_dependency_tracking" != xno \
6474 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6475 am__fastdepCC_TRUE=
6476 am__fastdepCC_FALSE='#'
6477else
6478 am__fastdepCC_TRUE='#'
6479 am__fastdepCC_FALSE=
6480fi
6481
6482
cristy95646052009-11-28 23:05:30 +00006483ac_ext=cpp
6484ac_cpp='$CXXCPP $CPPFLAGS'
6485ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6486ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6487ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6488if test -z "$CXX"; then
6489 if test -n "$CCC"; then
6490 CXX=$CCC
6491 else
6492 if test -n "$ac_tool_prefix"; then
6493 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6494 do
6495 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6496set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6498$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006499if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006500 $as_echo_n "(cached) " >&6
6501else
6502 if test -n "$CXX"; then
6503 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6504else
6505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6506for as_dir in $PATH
6507do
6508 IFS=$as_save_IFS
6509 test -z "$as_dir" && as_dir=.
6510 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006512 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6514 break 2
6515 fi
6516done
6517 done
6518IFS=$as_save_IFS
6519
6520fi
6521fi
6522CXX=$ac_cv_prog_CXX
6523if test -n "$CXX"; then
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6525$as_echo "$CXX" >&6; }
6526else
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6528$as_echo "no" >&6; }
6529fi
6530
6531
6532 test -n "$CXX" && break
6533 done
6534fi
6535if test -z "$CXX"; then
6536 ac_ct_CXX=$CXX
6537 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6538do
6539 # Extract the first word of "$ac_prog", so it can be a program name with args.
6540set dummy $ac_prog; ac_word=$2
6541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6542$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006543if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006544 $as_echo_n "(cached) " >&6
6545else
6546 if test -n "$ac_ct_CXX"; then
6547 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6548else
6549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6550for as_dir in $PATH
6551do
6552 IFS=$as_save_IFS
6553 test -z "$as_dir" && as_dir=.
6554 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006556 ac_cv_prog_ac_ct_CXX="$ac_prog"
6557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6558 break 2
6559 fi
6560done
6561 done
6562IFS=$as_save_IFS
6563
6564fi
6565fi
6566ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6567if test -n "$ac_ct_CXX"; then
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6569$as_echo "$ac_ct_CXX" >&6; }
6570else
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6572$as_echo "no" >&6; }
6573fi
6574
6575
6576 test -n "$ac_ct_CXX" && break
6577done
6578
6579 if test "x$ac_ct_CXX" = x; then
6580 CXX="g++"
6581 else
6582 case $cross_compiling:$ac_tool_warned in
6583yes:)
6584{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6585$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6586ac_tool_warned=yes ;;
6587esac
6588 CXX=$ac_ct_CXX
6589 fi
6590fi
6591
6592 fi
6593fi
6594# Provide some information about the compiler.
6595$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6596set X $ac_compile
6597ac_compiler=$2
6598for ac_option in --version -v -V -qversion; do
6599 { { ac_try="$ac_compiler $ac_option >&5"
6600case "(($ac_try" in
6601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6602 *) ac_try_echo=$ac_try;;
6603esac
6604eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6605$as_echo "$ac_try_echo"; } >&5
6606 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6607 ac_status=$?
6608 if test -s conftest.err; then
6609 sed '10a\
6610... rest of stderr output deleted ...
6611 10q' conftest.err >conftest.er1
6612 cat conftest.er1 >&5
6613 fi
6614 rm -f conftest.er1 conftest.err
6615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6616 test $ac_status = 0; }
6617done
6618
6619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6620$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006621if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00006622 $as_echo_n "(cached) " >&6
6623else
6624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6625/* end confdefs.h. */
6626
6627int
6628main ()
6629{
6630#ifndef __GNUC__
6631 choke me
6632#endif
6633
6634 ;
6635 return 0;
6636}
6637_ACEOF
6638if ac_fn_cxx_try_compile "$LINENO"; then :
6639 ac_compiler_gnu=yes
6640else
6641 ac_compiler_gnu=no
6642fi
6643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6644ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6645
6646fi
6647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6648$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6649if test $ac_compiler_gnu = yes; then
6650 GXX=yes
6651else
6652 GXX=
6653fi
6654ac_test_CXXFLAGS=${CXXFLAGS+set}
6655ac_save_CXXFLAGS=$CXXFLAGS
6656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6657$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006658if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00006659 $as_echo_n "(cached) " >&6
6660else
6661 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6662 ac_cxx_werror_flag=yes
6663 ac_cv_prog_cxx_g=no
6664 CXXFLAGS="-g"
6665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6666/* end confdefs.h. */
6667
6668int
6669main ()
6670{
6671
6672 ;
6673 return 0;
6674}
6675_ACEOF
6676if ac_fn_cxx_try_compile "$LINENO"; then :
6677 ac_cv_prog_cxx_g=yes
6678else
6679 CXXFLAGS=""
6680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6681/* end confdefs.h. */
6682
6683int
6684main ()
6685{
6686
6687 ;
6688 return 0;
6689}
6690_ACEOF
6691if ac_fn_cxx_try_compile "$LINENO"; then :
6692
6693else
6694 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6695 CXXFLAGS="-g"
6696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6697/* end confdefs.h. */
6698
6699int
6700main ()
6701{
6702
6703 ;
6704 return 0;
6705}
6706_ACEOF
6707if ac_fn_cxx_try_compile "$LINENO"; then :
6708 ac_cv_prog_cxx_g=yes
6709fi
6710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6711fi
6712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6713fi
6714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6715 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6716fi
6717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6718$as_echo "$ac_cv_prog_cxx_g" >&6; }
6719if test "$ac_test_CXXFLAGS" = set; then
6720 CXXFLAGS=$ac_save_CXXFLAGS
6721elif test $ac_cv_prog_cxx_g = yes; then
6722 if test "$GXX" = yes; then
6723 CXXFLAGS="-g -O2"
6724 else
6725 CXXFLAGS="-g"
6726 fi
6727else
6728 if test "$GXX" = yes; then
6729 CXXFLAGS="-O2"
6730 else
6731 CXXFLAGS=
6732 fi
6733fi
6734ac_ext=c
6735ac_cpp='$CPP $CPPFLAGS'
6736ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6737ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6738ac_compiler_gnu=$ac_cv_c_compiler_gnu
6739
cristy73bd4a52010-10-05 11:24:23 +00006740depcc="$CXX" am_compiler_list=
6741
6742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6743$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006744if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006745 $as_echo_n "(cached) " >&6
6746else
6747 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6748 # We make a subdir and do the tests there. Otherwise we can end up
6749 # making bogus files that we don't know about and never remove. For
6750 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006751 # making a dummy file named 'D' -- because '-MD' means "put the output
6752 # in D".
cristy7247bba2012-02-05 16:37:27 +00006753 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006754 mkdir conftest.dir
6755 # Copy depcomp to subdir because otherwise we won't find it if we're
6756 # using a relative directory.
6757 cp "$am_depcomp" conftest.dir
6758 cd conftest.dir
6759 # We will build objects and dependencies in a subdirectory because
6760 # it helps to detect inapplicable dependency modes. For instance
6761 # both Tru64's cc and ICC support -MD to output dependencies as a
6762 # side effect of compilation, but ICC will put the dependencies in
6763 # the current directory while Tru64 will put them in the object
6764 # directory.
6765 mkdir sub
6766
6767 am_cv_CXX_dependencies_compiler_type=none
6768 if test "$am_compiler_list" = ""; then
6769 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6770 fi
6771 am__universal=false
6772 case " $depcc " in #(
6773 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6774 esac
6775
6776 for depmode in $am_compiler_list; do
6777 # Setup a source with many dependencies, because some compilers
6778 # like to wrap large dependency lists on column 80 (with \), and
6779 # we should not choose a depcomp mode which is confused by this.
6780 #
6781 # We need to recreate these files for each test, as the compiler may
6782 # overwrite some of them when testing with obscure command lines.
6783 # This happens at least with the AIX C compiler.
6784 : > sub/conftest.c
6785 for i in 1 2 3 4 5 6; do
6786 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00006787 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6788 # Solaris 10 /bin/sh.
6789 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00006790 done
6791 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6792
cristyc0890a62012-07-19 00:18:20 +00006793 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00006794 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00006795 # handle '-M -o', and we need to detect this. Also, some Intel
6796 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00006797 am__obj=sub/conftest.${OBJEXT-o}
6798 am__minus_obj="-o $am__obj"
6799 case $depmode in
6800 gcc)
6801 # This depmode causes a compiler race in universal mode.
6802 test "$am__universal" = false || continue
6803 ;;
6804 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00006805 # After this tag, mechanisms are not by side-effect, so they'll
6806 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00006807 if test "x$enable_dependency_tracking" = xyes; then
6808 continue
6809 else
6810 break
6811 fi
6812 ;;
cristy7247bba2012-02-05 16:37:27 +00006813 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00006814 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00006815 # not run yet. These depmodes are late enough in the game, and
6816 # so weak that their functioning should not be impacted.
6817 am__obj=conftest.${OBJEXT-o}
6818 am__minus_obj=
6819 ;;
6820 none) break ;;
6821 esac
6822 if depmode=$depmode \
6823 source=sub/conftest.c object=$am__obj \
6824 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6825 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6826 >/dev/null 2>conftest.err &&
6827 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6828 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6829 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6830 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6831 # icc doesn't choke on unknown options, it will just issue warnings
6832 # or remarks (even with -Werror). So we grep stderr for any message
6833 # that says an option was ignored or not supported.
6834 # When given -MP, icc 7.0 and 7.1 complain thusly:
6835 # icc: Command line warning: ignoring option '-M'; no argument required
6836 # The diagnosis changed in icc 8.0:
6837 # icc: Command line remark: option '-MP' not supported
6838 if (grep 'ignoring option' conftest.err ||
6839 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6840 am_cv_CXX_dependencies_compiler_type=$depmode
6841 break
6842 fi
6843 fi
6844 done
6845
6846 cd ..
6847 rm -rf conftest.dir
6848else
6849 am_cv_CXX_dependencies_compiler_type=none
6850fi
6851
6852fi
6853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6854$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6855CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6856
6857 if
6858 test "x$enable_dependency_tracking" != xno \
6859 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6860 am__fastdepCXX_TRUE=
6861 am__fastdepCXX_FALSE='#'
6862else
6863 am__fastdepCXX_TRUE='#'
6864 am__fastdepCXX_FALSE=
6865fi
6866
6867
cristy8b350f62009-11-15 23:12:43 +00006868 case $ac_cv_prog_cc_stdc in #(
6869 no) :
6870 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6871 *) :
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006873$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006874if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006875 $as_echo_n "(cached) " >&6
6876else
6877 ac_cv_prog_cc_c99=no
6878ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006879cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006880/* end confdefs.h. */
6881#include <stdarg.h>
6882#include <stdbool.h>
6883#include <stdlib.h>
6884#include <wchar.h>
6885#include <stdio.h>
6886
6887// Check varargs macros. These examples are taken from C99 6.10.3.5.
6888#define debug(...) fprintf (stderr, __VA_ARGS__)
6889#define showlist(...) puts (#__VA_ARGS__)
6890#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6891static void
6892test_varargs_macros (void)
6893{
6894 int x = 1234;
6895 int y = 5678;
6896 debug ("Flag");
6897 debug ("X = %d\n", x);
6898 showlist (The first, second, and third items.);
6899 report (x>y, "x is %d but y is %d", x, y);
6900}
6901
6902// Check long long types.
6903#define BIG64 18446744073709551615ull
6904#define BIG32 4294967295ul
6905#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6906#if !BIG_OK
6907 your preprocessor is broken;
6908#endif
6909#if BIG_OK
6910#else
6911 your preprocessor is broken;
6912#endif
6913static long long int bignum = -9223372036854775807LL;
6914static unsigned long long int ubignum = BIG64;
6915
6916struct incomplete_array
6917{
6918 int datasize;
6919 double data[];
6920};
6921
6922struct named_init {
6923 int number;
6924 const wchar_t *name;
6925 double average;
6926};
6927
6928typedef const char *ccp;
6929
6930static inline int
6931test_restrict (ccp restrict text)
6932{
6933 // See if C++-style comments work.
6934 // Iterate through items via the restricted pointer.
6935 // Also check for declarations in for loops.
6936 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6937 continue;
6938 return 0;
6939}
6940
6941// Check varargs and va_copy.
6942static void
6943test_varargs (const char *format, ...)
6944{
6945 va_list args;
6946 va_start (args, format);
6947 va_list args_copy;
6948 va_copy (args_copy, args);
6949
6950 const char *str;
6951 int number;
6952 float fnumber;
6953
6954 while (*format)
6955 {
6956 switch (*format++)
6957 {
6958 case 's': // string
6959 str = va_arg (args_copy, const char *);
6960 break;
6961 case 'd': // int
6962 number = va_arg (args_copy, int);
6963 break;
6964 case 'f': // float
6965 fnumber = va_arg (args_copy, double);
6966 break;
6967 default:
6968 break;
6969 }
6970 }
6971 va_end (args_copy);
6972 va_end (args);
6973}
6974
6975int
6976main ()
6977{
6978
6979 // Check bool.
6980 _Bool success = false;
6981
6982 // Check restrict.
6983 if (test_restrict ("String literal") == 0)
6984 success = true;
6985 char *restrict newvar = "Another string";
6986
6987 // Check varargs.
6988 test_varargs ("s, d' f .", "string", 65, 34.234);
6989 test_varargs_macros ();
6990
6991 // Check flexible array members.
6992 struct incomplete_array *ia =
6993 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6994 ia->datasize = 10;
6995 for (int i = 0; i < ia->datasize; ++i)
6996 ia->data[i] = i * 1.234;
6997
6998 // Check named initializers.
6999 struct named_init ni = {
7000 .number = 34,
7001 .name = L"Test wide string",
7002 .average = 543.34343,
7003 };
7004
7005 ni.number = 58;
7006
7007 int dynamic_array[ni.number];
7008 dynamic_array[ni.number - 1] = 543;
7009
7010 // work around unused variable warnings
7011 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7012 || dynamic_array[ni.number - 1] != 543);
7013
7014 ;
7015 return 0;
7016}
7017_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007018for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy3ed852e2009-09-05 21:47:34 +00007019do
7020 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007021 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007022 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007023fi
cristy3ed852e2009-09-05 21:47:34 +00007024rm -f core conftest.err conftest.$ac_objext
7025 test "x$ac_cv_prog_cc_c99" != "xno" && break
7026done
7027rm -f conftest.$ac_ext
7028CC=$ac_save_CC
7029
7030fi
7031# AC_CACHE_VAL
7032case "x$ac_cv_prog_cc_c99" in
7033 x)
cristy8b350f62009-11-15 23:12:43 +00007034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007035$as_echo "none needed" >&6; } ;;
7036 xno)
cristy8b350f62009-11-15 23:12:43 +00007037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007038$as_echo "unsupported" >&6; } ;;
7039 *)
7040 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00007041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00007042$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7043esac
cristy8b350f62009-11-15 23:12:43 +00007044if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007045 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7046else
cristy8b350f62009-11-15 23:12:43 +00007047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007048$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007049if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007050 $as_echo_n "(cached) " >&6
7051else
7052 ac_cv_prog_cc_c89=no
7053ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00007054cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007055/* end confdefs.h. */
7056#include <stdarg.h>
7057#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00007058struct stat;
cristy3ed852e2009-09-05 21:47:34 +00007059/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7060struct buf { int x; };
7061FILE * (*rcsopen) (struct buf *, struct stat *, int);
7062static char *e (p, i)
7063 char **p;
7064 int i;
7065{
7066 return p[i];
7067}
7068static char *f (char * (*g) (char **, int), char **p, ...)
7069{
7070 char *s;
7071 va_list v;
7072 va_start (v,p);
7073 s = g (p, va_arg (v,int));
7074 va_end (v);
7075 return s;
7076}
7077
7078/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7079 function prototypes and stuff, but not '\xHH' hex character constants.
7080 These don't provoke an error unfortunately, instead are silently treated
7081 as 'x'. The following induces an error, until -std is added to get
7082 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7083 array size at least. It's necessary to write '\x00'==0 to get something
7084 that's true only with -std. */
7085int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7086
7087/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7088 inside strings and character constants. */
7089#define FOO(x) 'x'
7090int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7091
7092int test (int i, double x);
7093struct s1 {int (*f) (int a);};
7094struct s2 {int (*f) (double a);};
7095int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7096int argc;
7097char **argv;
7098int
7099main ()
7100{
7101return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7102 ;
7103 return 0;
7104}
7105_ACEOF
7106for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7107 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7108do
7109 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007110 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007111 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007112fi
cristy3ed852e2009-09-05 21:47:34 +00007113rm -f core conftest.err conftest.$ac_objext
7114 test "x$ac_cv_prog_cc_c89" != "xno" && break
7115done
7116rm -f conftest.$ac_ext
7117CC=$ac_save_CC
7118
7119fi
7120# AC_CACHE_VAL
7121case "x$ac_cv_prog_cc_c89" in
7122 x)
cristy8b350f62009-11-15 23:12:43 +00007123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007124$as_echo "none needed" >&6; } ;;
7125 xno)
cristy8b350f62009-11-15 23:12:43 +00007126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007127$as_echo "unsupported" >&6; } ;;
7128 *)
7129 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00007130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007131$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7132esac
cristy8b350f62009-11-15 23:12:43 +00007133if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007134 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7135else
7136 ac_cv_prog_cc_stdc=no
7137fi
7138
cristy3ed852e2009-09-05 21:47:34 +00007139fi
cristy3ed852e2009-09-05 21:47:34 +00007140 ;;
7141esac
cristy8b350f62009-11-15 23:12:43 +00007142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00007143$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007144 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007145 $as_echo_n "(cached) " >&6
7146fi
7147
cristy8b350f62009-11-15 23:12:43 +00007148 case $ac_cv_prog_cc_stdc in #(
7149 no) :
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7151$as_echo "unsupported" >&6; } ;; #(
7152 '') :
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7154$as_echo "none needed" >&6; } ;; #(
7155 *) :
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00007157$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7158esac
7159
cristy3ed852e2009-09-05 21:47:34 +00007160ac_ext=c
7161ac_cpp='$CPP $CPPFLAGS'
7162ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7163ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7164ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00007165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00007166$as_echo_n "checking how to run the C preprocessor... " >&6; }
7167# On Suns, sometimes $CPP names a directory.
7168if test -n "$CPP" && test -d "$CPP"; then
7169 CPP=
7170fi
7171if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00007172 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007173 $as_echo_n "(cached) " >&6
7174else
7175 # Double quotes because CPP needs to be expanded
7176 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7177 do
7178 ac_preproc_ok=false
7179for ac_c_preproc_warn_flag in '' yes
7180do
7181 # Use a header file that comes with gcc, so configuring glibc
7182 # with a fresh cross-compiler works.
7183 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7184 # <limits.h> exists even on freestanding compilers.
7185 # On the NeXT, cc -E runs the code through the compiler's parser,
7186 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007188/* end confdefs.h. */
7189#ifdef __STDC__
7190# include <limits.h>
7191#else
7192# include <assert.h>
7193#endif
7194 Syntax error
7195_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007196if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007197
cristy8b350f62009-11-15 23:12:43 +00007198else
cristy3ed852e2009-09-05 21:47:34 +00007199 # Broken: fails on valid input.
7200continue
7201fi
cristyda16f162011-02-19 23:52:17 +00007202rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007203
7204 # OK, works on sane cases. Now check whether nonexistent headers
7205 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007207/* end confdefs.h. */
7208#include <ac_nonexistent.h>
7209_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007210if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007211 # Broken: success on invalid input.
7212continue
7213else
cristy3ed852e2009-09-05 21:47:34 +00007214 # Passes both tests.
7215ac_preproc_ok=:
7216break
7217fi
cristyda16f162011-02-19 23:52:17 +00007218rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007219
7220done
7221# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007222rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007223if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007224 break
7225fi
7226
7227 done
7228 ac_cv_prog_CPP=$CPP
7229
7230fi
7231 CPP=$ac_cv_prog_CPP
7232else
7233 ac_cv_prog_CPP=$CPP
7234fi
cristy8b350f62009-11-15 23:12:43 +00007235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007236$as_echo "$CPP" >&6; }
7237ac_preproc_ok=false
7238for ac_c_preproc_warn_flag in '' yes
7239do
7240 # Use a header file that comes with gcc, so configuring glibc
7241 # with a fresh cross-compiler works.
7242 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7243 # <limits.h> exists even on freestanding compilers.
7244 # On the NeXT, cc -E runs the code through the compiler's parser,
7245 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007247/* end confdefs.h. */
7248#ifdef __STDC__
7249# include <limits.h>
7250#else
7251# include <assert.h>
7252#endif
7253 Syntax error
7254_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007255if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007256
cristy8b350f62009-11-15 23:12:43 +00007257else
cristy3ed852e2009-09-05 21:47:34 +00007258 # Broken: fails on valid input.
7259continue
7260fi
cristyda16f162011-02-19 23:52:17 +00007261rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007262
7263 # OK, works on sane cases. Now check whether nonexistent headers
7264 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007266/* end confdefs.h. */
7267#include <ac_nonexistent.h>
7268_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007269if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007270 # Broken: success on invalid input.
7271continue
7272else
cristy3ed852e2009-09-05 21:47:34 +00007273 # Passes both tests.
7274ac_preproc_ok=:
7275break
7276fi
cristyda16f162011-02-19 23:52:17 +00007277rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007278
7279done
7280# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007281rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007282if $ac_preproc_ok; then :
7283
cristy3ed852e2009-09-05 21:47:34 +00007284else
cristy8b350f62009-11-15 23:12:43 +00007285 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007286$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00007287as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7288See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007289fi
7290
7291ac_ext=c
7292ac_cpp='$CPP $CPPFLAGS'
7293ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7294ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7295ac_compiler_gnu=$ac_cv_c_compiler_gnu
7296
cristy73bd4a52010-10-05 11:24:23 +00007297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7298$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007299if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007300 $as_echo_n "(cached) " >&6
7301else
7302 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7303 for ac_i in 1 2 3 4 5 6 7; do
7304 ac_script="$ac_script$as_nl$ac_script"
7305 done
7306 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7307 { ac_script=; unset ac_script;}
7308 if test -z "$SED"; then
7309 ac_path_SED_found=false
7310 # Loop through the user's path and test for each of PROGNAME-LIST
7311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7312for as_dir in $PATH
7313do
7314 IFS=$as_save_IFS
7315 test -z "$as_dir" && as_dir=.
7316 for ac_prog in sed gsed; do
7317 for ac_exec_ext in '' $ac_executable_extensions; do
7318 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007319 as_fn_executable_p "$ac_path_SED" || continue
cristy73bd4a52010-10-05 11:24:23 +00007320# Check for GNU ac_path_SED and select it if it is found.
7321 # Check for GNU $ac_path_SED
7322case `"$ac_path_SED" --version 2>&1` in
7323*GNU*)
7324 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7325*)
7326 ac_count=0
7327 $as_echo_n 0123456789 >"conftest.in"
7328 while :
7329 do
7330 cat "conftest.in" "conftest.in" >"conftest.tmp"
7331 mv "conftest.tmp" "conftest.in"
7332 cp "conftest.in" "conftest.nl"
7333 $as_echo '' >> "conftest.nl"
7334 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7335 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7336 as_fn_arith $ac_count + 1 && ac_count=$as_val
7337 if test $ac_count -gt ${ac_path_SED_max-0}; then
7338 # Best one so far, save it but keep looking for a better one
7339 ac_cv_path_SED="$ac_path_SED"
7340 ac_path_SED_max=$ac_count
7341 fi
7342 # 10*(2^10) chars as input seems more than enough
7343 test $ac_count -gt 10 && break
7344 done
7345 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7346esac
7347
7348 $ac_path_SED_found && break 3
7349 done
7350 done
7351 done
7352IFS=$as_save_IFS
7353 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007354 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007355 fi
7356else
7357 ac_cv_path_SED=$SED
7358fi
7359
7360fi
7361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7362$as_echo "$ac_cv_path_SED" >&6; }
7363 SED="$ac_cv_path_SED"
7364 rm -f conftest.sed
7365
7366test -z "$SED" && SED=sed
7367Xsed="$SED -e 1s/^X//"
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7380$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007381if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007382 $as_echo_n "(cached) " >&6
7383else
7384 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7385 then ac_cv_path_FGREP="$GREP -F"
7386 else
7387 if test -z "$FGREP"; then
7388 ac_path_FGREP_found=false
7389 # Loop through the user's path and test for each of PROGNAME-LIST
7390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7391for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7392do
7393 IFS=$as_save_IFS
7394 test -z "$as_dir" && as_dir=.
7395 for ac_prog in fgrep; do
7396 for ac_exec_ext in '' $ac_executable_extensions; do
7397 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007398 as_fn_executable_p "$ac_path_FGREP" || continue
cristy73bd4a52010-10-05 11:24:23 +00007399# Check for GNU ac_path_FGREP and select it if it is found.
7400 # Check for GNU $ac_path_FGREP
7401case `"$ac_path_FGREP" --version 2>&1` in
7402*GNU*)
7403 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7404*)
7405 ac_count=0
7406 $as_echo_n 0123456789 >"conftest.in"
7407 while :
7408 do
7409 cat "conftest.in" "conftest.in" >"conftest.tmp"
7410 mv "conftest.tmp" "conftest.in"
7411 cp "conftest.in" "conftest.nl"
7412 $as_echo 'FGREP' >> "conftest.nl"
7413 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7414 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7415 as_fn_arith $ac_count + 1 && ac_count=$as_val
7416 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7417 # Best one so far, save it but keep looking for a better one
7418 ac_cv_path_FGREP="$ac_path_FGREP"
7419 ac_path_FGREP_max=$ac_count
7420 fi
7421 # 10*(2^10) chars as input seems more than enough
7422 test $ac_count -gt 10 && break
7423 done
7424 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7425esac
7426
7427 $ac_path_FGREP_found && break 3
7428 done
7429 done
7430 done
7431IFS=$as_save_IFS
7432 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007433 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007434 fi
7435else
7436 ac_cv_path_FGREP=$FGREP
7437fi
7438
7439 fi
7440fi
7441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7442$as_echo "$ac_cv_path_FGREP" >&6; }
7443 FGREP="$ac_cv_path_FGREP"
7444
7445
7446test -z "$GREP" && GREP=grep
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
cristy0c60a692010-11-04 01:09:47 +00007464ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7465ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7466ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7467
7468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7469$as_echo_n "checking how to print strings... " >&6; }
7470# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00007471if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00007472 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7473 ECHO='print -r --'
7474elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7475 ECHO='printf %s\n'
7476else
7477 # Use this function as a fallback that always works.
7478 func_fallback_echo ()
7479 {
7480 eval 'cat <<_LTECHO_EOF
7481$1
7482_LTECHO_EOF'
7483 }
7484 ECHO='func_fallback_echo'
7485fi
7486
7487# func_echo_all arg...
7488# Invoke $ECHO with all args, space-separated.
7489func_echo_all ()
7490{
7491 $ECHO ""
7492}
7493
7494case "$ECHO" in
7495 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7496$as_echo "printf" >&6; } ;;
7497 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7498$as_echo "print -r" >&6; } ;;
7499 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7500$as_echo "cat" >&6; } ;;
7501esac
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
cristy73bd4a52010-10-05 11:24:23 +00007516
7517
7518# Check whether --with-gnu-ld was given.
7519if test "${with_gnu_ld+set}" = set; then :
7520 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7521else
7522 with_gnu_ld=no
7523fi
7524
7525ac_prog=ld
7526if test "$GCC" = yes; then
7527 # Check if gcc -print-prog-name=ld gives a path.
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7529$as_echo_n "checking for ld used by $CC... " >&6; }
7530 case $host in
7531 *-*-mingw*)
7532 # gcc leaves a trailing carriage return which upsets mingw
7533 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7534 *)
7535 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7536 esac
7537 case $ac_prog in
7538 # Accept absolute paths.
7539 [\\/]* | ?:[\\/]*)
7540 re_direlt='/[^/][^/]*/\.\./'
7541 # Canonicalize the pathname of ld
7542 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7543 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7544 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7545 done
7546 test -z "$LD" && LD="$ac_prog"
7547 ;;
7548 "")
7549 # If it fails, then pretend we aren't using GCC.
7550 ac_prog=ld
7551 ;;
7552 *)
7553 # If it is relative, then search for the first ld in PATH.
7554 with_gnu_ld=unknown
7555 ;;
7556 esac
7557elif test "$with_gnu_ld" = yes; then
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7559$as_echo_n "checking for GNU ld... " >&6; }
7560else
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7562$as_echo_n "checking for non-GNU ld... " >&6; }
7563fi
cristyda16f162011-02-19 23:52:17 +00007564if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007565 $as_echo_n "(cached) " >&6
7566else
7567 if test -z "$LD"; then
7568 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7569 for ac_dir in $PATH; do
7570 IFS="$lt_save_ifs"
7571 test -z "$ac_dir" && ac_dir=.
7572 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7573 lt_cv_path_LD="$ac_dir/$ac_prog"
7574 # Check to see if the program is GNU ld. I'd rather use --version,
7575 # but apparently some variants of GNU ld only accept -v.
7576 # Break only if it was the GNU/non-GNU ld that we prefer.
7577 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7578 *GNU* | *'with BFD'*)
7579 test "$with_gnu_ld" != no && break
7580 ;;
7581 *)
7582 test "$with_gnu_ld" != yes && break
7583 ;;
7584 esac
7585 fi
7586 done
7587 IFS="$lt_save_ifs"
7588else
7589 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7590fi
7591fi
7592
7593LD="$lt_cv_path_LD"
7594if test -n "$LD"; then
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7596$as_echo "$LD" >&6; }
7597else
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7599$as_echo "no" >&6; }
7600fi
cristy98dddb52010-11-04 00:30:15 +00007601test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7603$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007604if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007605 $as_echo_n "(cached) " >&6
7606else
7607 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7608case `$LD -v 2>&1 </dev/null` in
7609*GNU* | *'with BFD'*)
7610 lt_cv_prog_gnu_ld=yes
7611 ;;
7612*)
7613 lt_cv_prog_gnu_ld=no
7614 ;;
7615esac
7616fi
7617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7618$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7619with_gnu_ld=$lt_cv_prog_gnu_ld
7620
7621
7622
7623
7624
7625
7626
7627
7628
cristy3ed852e2009-09-05 21:47:34 +00007629
cristy837d6dc2010-02-27 01:16:57 +00007630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7631$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007632if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00007633 $as_echo_n "(cached) " >&6
7634else
7635 ac_cv_prog_cc_c99=no
7636ac_save_CC=$CC
7637cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7638/* end confdefs.h. */
7639#include <stdarg.h>
7640#include <stdbool.h>
7641#include <stdlib.h>
7642#include <wchar.h>
7643#include <stdio.h>
7644
7645// Check varargs macros. These examples are taken from C99 6.10.3.5.
7646#define debug(...) fprintf (stderr, __VA_ARGS__)
7647#define showlist(...) puts (#__VA_ARGS__)
7648#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7649static void
7650test_varargs_macros (void)
7651{
7652 int x = 1234;
7653 int y = 5678;
7654 debug ("Flag");
7655 debug ("X = %d\n", x);
7656 showlist (The first, second, and third items.);
7657 report (x>y, "x is %d but y is %d", x, y);
7658}
7659
7660// Check long long types.
7661#define BIG64 18446744073709551615ull
7662#define BIG32 4294967295ul
7663#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7664#if !BIG_OK
7665 your preprocessor is broken;
7666#endif
7667#if BIG_OK
7668#else
7669 your preprocessor is broken;
7670#endif
7671static long long int bignum = -9223372036854775807LL;
7672static unsigned long long int ubignum = BIG64;
7673
7674struct incomplete_array
7675{
7676 int datasize;
7677 double data[];
7678};
7679
7680struct named_init {
7681 int number;
7682 const wchar_t *name;
7683 double average;
7684};
7685
7686typedef const char *ccp;
7687
7688static inline int
7689test_restrict (ccp restrict text)
7690{
7691 // See if C++-style comments work.
7692 // Iterate through items via the restricted pointer.
7693 // Also check for declarations in for loops.
7694 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7695 continue;
7696 return 0;
7697}
7698
7699// Check varargs and va_copy.
7700static void
7701test_varargs (const char *format, ...)
7702{
7703 va_list args;
7704 va_start (args, format);
7705 va_list args_copy;
7706 va_copy (args_copy, args);
7707
7708 const char *str;
7709 int number;
7710 float fnumber;
7711
7712 while (*format)
7713 {
7714 switch (*format++)
7715 {
7716 case 's': // string
7717 str = va_arg (args_copy, const char *);
7718 break;
7719 case 'd': // int
7720 number = va_arg (args_copy, int);
7721 break;
7722 case 'f': // float
7723 fnumber = va_arg (args_copy, double);
7724 break;
7725 default:
7726 break;
7727 }
7728 }
7729 va_end (args_copy);
7730 va_end (args);
7731}
7732
7733int
7734main ()
7735{
7736
7737 // Check bool.
7738 _Bool success = false;
7739
7740 // Check restrict.
7741 if (test_restrict ("String literal") == 0)
7742 success = true;
7743 char *restrict newvar = "Another string";
7744
7745 // Check varargs.
7746 test_varargs ("s, d' f .", "string", 65, 34.234);
7747 test_varargs_macros ();
7748
7749 // Check flexible array members.
7750 struct incomplete_array *ia =
7751 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7752 ia->datasize = 10;
7753 for (int i = 0; i < ia->datasize; ++i)
7754 ia->data[i] = i * 1.234;
7755
7756 // Check named initializers.
7757 struct named_init ni = {
7758 .number = 34,
7759 .name = L"Test wide string",
7760 .average = 543.34343,
7761 };
7762
7763 ni.number = 58;
7764
7765 int dynamic_array[ni.number];
7766 dynamic_array[ni.number - 1] = 543;
7767
7768 // work around unused variable warnings
7769 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7770 || dynamic_array[ni.number - 1] != 543);
7771
7772 ;
7773 return 0;
7774}
7775_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007776for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy837d6dc2010-02-27 01:16:57 +00007777do
7778 CC="$ac_save_CC $ac_arg"
7779 if ac_fn_c_try_compile "$LINENO"; then :
7780 ac_cv_prog_cc_c99=$ac_arg
7781fi
7782rm -f core conftest.err conftest.$ac_objext
7783 test "x$ac_cv_prog_cc_c99" != "xno" && break
7784done
7785rm -f conftest.$ac_ext
7786CC=$ac_save_CC
7787
7788fi
7789# AC_CACHE_VAL
7790case "x$ac_cv_prog_cc_c99" in
7791 x)
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7793$as_echo "none needed" >&6; } ;;
7794 xno)
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7796$as_echo "unsupported" >&6; } ;;
7797 *)
7798 CC="$CC $ac_cv_prog_cc_c99"
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7800$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7801esac
7802if test "x$ac_cv_prog_cc_c99" != xno; then :
7803
7804fi
7805
7806
cristy73bd4a52010-10-05 11:24:23 +00007807if test "x$CC" != xcc; then
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7809$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7810else
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7812$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7813fi
7814set dummy $CC; ac_cc=`$as_echo "$2" |
7815 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristyda16f162011-02-19 23:52:17 +00007816if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007817 $as_echo_n "(cached) " >&6
7818else
cristy73bd4a52010-10-05 11:24:23 +00007819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7820/* end confdefs.h. */
7821
7822int
7823main ()
7824{
7825
7826 ;
7827 return 0;
7828}
7829_ACEOF
7830# Make sure it works both with $CC and with simple cc.
7831# We do the test twice because some compilers refuse to overwrite an
7832# existing .o file with -o, though they will create one.
7833ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7834rm -f conftest2.*
7835if { { case "(($ac_try" in
7836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7837 *) ac_try_echo=$ac_try;;
7838esac
7839eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7840$as_echo "$ac_try_echo"; } >&5
7841 (eval "$ac_try") 2>&5
7842 ac_status=$?
7843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7844 test $ac_status = 0; } &&
7845 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7847 *) ac_try_echo=$ac_try;;
7848esac
7849eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7850$as_echo "$ac_try_echo"; } >&5
7851 (eval "$ac_try") 2>&5
7852 ac_status=$?
7853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7854 test $ac_status = 0; };
7855then
7856 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7857 if test "x$CC" != xcc; then
7858 # Test first that cc exists at all.
7859 if { ac_try='cc -c conftest.$ac_ext >&5'
7860 { { case "(($ac_try" in
7861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7862 *) ac_try_echo=$ac_try;;
7863esac
7864eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7865$as_echo "$ac_try_echo"; } >&5
7866 (eval "$ac_try") 2>&5
7867 ac_status=$?
7868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7869 test $ac_status = 0; }; }; then
7870 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7871 rm -f conftest2.*
7872 if { { case "(($ac_try" in
7873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7874 *) ac_try_echo=$ac_try;;
7875esac
7876eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7877$as_echo "$ac_try_echo"; } >&5
7878 (eval "$ac_try") 2>&5
7879 ac_status=$?
7880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7881 test $ac_status = 0; } &&
7882 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7884 *) ac_try_echo=$ac_try;;
7885esac
7886eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7887$as_echo "$ac_try_echo"; } >&5
7888 (eval "$ac_try") 2>&5
7889 ac_status=$?
7890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7891 test $ac_status = 0; };
7892 then
7893 # cc works too.
7894 :
7895 else
7896 # cc exists but doesn't like -o.
7897 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7898 fi
7899 fi
7900 fi
7901else
7902 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7903fi
7904rm -f core conftest*
7905
7906fi
7907if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7909$as_echo "yes" >&6; }
7910else
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7912$as_echo "no" >&6; }
7913
7914$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7915
7916fi
7917
7918# FIXME: we rely on the cache variable name because
7919# there is no other way.
7920set dummy $CC
7921am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7922eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7923if test "$am_t" != yes; then
7924 # Losing compiler, so override with the script.
7925 # FIXME: It is wrong to rewrite CC.
7926 # But if we don't then we get into trouble of one sort or another.
7927 # A longer-term fix would be to have automake use am__CC in this case,
7928 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7929 CC="$am_aux_dir/compile $CC"
7930fi
7931
7932
7933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7934$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007935if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007936 $as_echo_n "(cached) " >&6
7937else
7938 ac_cv_cflags_warn_all="no, unknown"
cristy73bd4a52010-10-05 11:24:23 +00007939 ac_ext=c
7940ac_cpp='$CPP $CPPFLAGS'
7941ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7942ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7943ac_compiler_gnu=$ac_cv_c_compiler_gnu
7944
7945 ac_save_CFLAGS="$CFLAGS"
7946for 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" #
7947do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7949/* end confdefs.h. */
7950
7951int
7952main ()
7953{
cristy24fc1fe2010-10-23 21:13:01 +00007954
cristy73bd4a52010-10-05 11:24:23 +00007955 ;
7956 return 0;
7957}
7958_ACEOF
7959if ac_fn_c_try_compile "$LINENO"; then :
7960 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
7961fi
7962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7963done
7964 CFLAGS="$ac_save_CFLAGS"
7965 ac_ext=c
7966ac_cpp='$CPP $CPPFLAGS'
7967ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7968ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7969ac_compiler_gnu=$ac_cv_c_compiler_gnu
7970
7971
7972fi
7973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7974$as_echo "$ac_cv_cflags_warn_all" >&6; }
7975case ".$ac_cv_cflags_warn_all" in
7976 .ok|.ok,*) ;;
7977 .|.no|.no,*)
7978 ;;
7979 *)
7980 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7981 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7982 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7983 ac_status=$?
7984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7985 test $ac_status = 0; }
7986 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7987 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7988 ac_status=$?
7989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7990 test $ac_status = 0; }
7991 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7992 fi
7993 ;;
nicolas6237c462010-10-05 06:11:49 +00007994esac
cristy3ed852e2009-09-05 21:47:34 +00007995
cristy016e8b82012-12-26 12:11:06 +00007996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
7997$as_echo_n "checking for C compiler vendor... " >&6; }
7998if ${ax_cv_c_compiler_vendor+:} false; then :
7999 $as_echo_n "(cached) " >&6
8000else
8001 # note: don't check for gcc first since some other compilers define __GNUC__
8002 vendors="intel: __ICC,__ECC,__INTEL_COMPILER
8003 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__
8004 pathscale: __PATHCC__,__PATHSCALE__
8005 clang: __clang__
8006 gnu: __GNUC__
8007 sun: __SUNPRO_C,__SUNPRO_CC
8008 hp: __HP_cc,__HP_aCC
8009 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
8010 borland: __BORLANDC__,__TURBOC__
8011 comeau: __COMO__
8012 cray: _CRAYC
8013 kai: __KCC
8014 lcc: __LCC__
8015 sgi: __sgi,sgi
8016 microsoft: _MSC_VER
8017 metrowerks: __MWERKS__
8018 watcom: __WATCOMC__
8019 portland: __PGI
8020 unknown: UNKNOWN"
8021 for ventest in $vendors; do
8022 case $ventest in
8023 *:) vendor=$ventest; continue ;;
8024 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
8025 esac
8026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8027/* end confdefs.h. */
8028
8029int
8030main ()
8031{
8032
8033 #if !($vencpp)
8034 thisisanerror;
8035 #endif
8036
8037 ;
8038 return 0;
8039}
8040_ACEOF
8041if ac_fn_c_try_compile "$LINENO"; then :
8042 break
8043fi
8044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8045 done
8046 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
8047
8048fi
8049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
8050$as_echo "$ax_cv_c_compiler_vendor" >&6; }
8051
cristya0b81c32010-01-22 02:54:33 +00008052
8053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8054$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8055set x ${MAKE-make}
8056ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00008057if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00008058 $as_echo_n "(cached) " >&6
8059else
8060 cat >conftest.make <<\_ACEOF
8061SHELL = /bin/sh
8062all:
8063 @echo '@@@%%%=$(MAKE)=@@@%%%'
8064_ACEOF
cristy98dddb52010-11-04 00:30:15 +00008065# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00008066case `${MAKE-make} -f conftest.make 2>/dev/null` in
8067 *@@@%%%=?*=@@@%%%*)
8068 eval ac_cv_prog_make_${ac_make}_set=yes;;
8069 *)
8070 eval ac_cv_prog_make_${ac_make}_set=no;;
8071esac
8072rm -f conftest.make
8073fi
8074if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8076$as_echo "yes" >&6; }
8077 SET_MAKE=
8078else
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8080$as_echo "no" >&6; }
8081 SET_MAKE="MAKE=${MAKE-make}"
8082fi
8083
cristy8b350f62009-11-15 23:12:43 +00008084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00008085$as_echo_n "checking whether ln -s works... " >&6; }
8086LN_S=$as_ln_s
8087if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00008088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00008089$as_echo "yes" >&6; }
8090else
cristy8b350f62009-11-15 23:12:43 +00008091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00008092$as_echo "no, using $LN_S" >&6; }
8093fi
8094
cristybc556452012-08-17 19:44:03 +00008095for ac_prog in gawk mawk nawk awk
8096do
8097 # Extract the first word of "$ac_prog", so it can be a program name with args.
8098set dummy $ac_prog; ac_word=$2
8099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8100$as_echo_n "checking for $ac_word... " >&6; }
8101if ${ac_cv_prog_AWK+:} false; then :
8102 $as_echo_n "(cached) " >&6
8103else
8104 if test -n "$AWK"; then
8105 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8106else
8107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8108for as_dir in $PATH
8109do
8110 IFS=$as_save_IFS
8111 test -z "$as_dir" && as_dir=.
8112 for ac_exec_ext in '' $ac_executable_extensions; do
8113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8114 ac_cv_prog_AWK="$ac_prog"
8115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8116 break 2
8117 fi
8118done
8119 done
8120IFS=$as_save_IFS
8121
8122fi
8123fi
8124AWK=$ac_cv_prog_AWK
8125if test -n "$AWK"; then
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8127$as_echo "$AWK" >&6; }
8128else
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8130$as_echo "no" >&6; }
8131fi
8132
8133
8134 test -n "$AWK" && break
8135done
8136
cristy73bd4a52010-10-05 11:24:23 +00008137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
8138$as_echo_n "checking if malloc debugging is wanted... " >&6; }
8139
8140# Check whether --with-dmalloc was given.
8141if test "${with_dmalloc+set}" = set; then :
8142 withval=$with_dmalloc; if test "$withval" = yes; then
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8144$as_echo "yes" >&6; }
8145
8146$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
8147
8148 LIBS="$LIBS -ldmalloc"
8149 LDFLAGS="$LDFLAGS -g"
8150else
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8152$as_echo "no" >&6; }
8153fi
8154else
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8156$as_echo "no" >&6; }
8157fi
8158
8159
8160
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
8162$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008163if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008164 $as_echo_n "(cached) " >&6
8165else
8166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8167/* end confdefs.h. */
8168#include <stdlib.h>
cristy73380532012-02-18 20:26:28 +00008169 static void foo(void) __attribute__ ((__unused__));
cristy73bd4a52010-10-05 11:24:23 +00008170 static void
8171 foo(void) {
8172 exit(1);
8173 }
8174
8175int
8176main ()
8177{
8178
8179 ;
8180 return 0;
8181}
8182_ACEOF
8183if ac_fn_c_try_compile "$LINENO"; then :
8184 ax_cv___attribute__=yes
8185else
8186 ax_cv___attribute__=no
8187
8188fi
8189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8190
8191fi
8192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
8193$as_echo "$ax_cv___attribute__" >&6; }
8194 if test "$ax_cv___attribute__" = "yes"; then
8195
8196$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
8197
8198 fi
8199
8200
8201
cristy37110d62012-03-01 18:38:20 +00008202
8203
8204# Check whether --with-gcc-arch was given.
8205if test "${with_gcc_arch+set}" = set; then :
8206 withval=$with_gcc_arch; ax_gcc_arch=$withval
8207else
cristya32d1812012-03-02 19:24:21 +00008208 ax_gcc_arch=no
cristy37110d62012-03-01 18:38:20 +00008209fi
8210
8211
8212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8213$as_echo_n "checking for gcc architecture flag... " >&6; }
8214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
8215$as_echo "" >&6; }
8216if ${ax_cv_gcc_archflag+:} false; then :
8217 $as_echo_n "(cached) " >&6
8218else
8219
8220ax_cv_gcc_archflag="unknown"
8221
8222if test "$GCC" = yes; then
8223
8224if test "x$ax_gcc_arch" = xyes; then
8225ax_gcc_arch=""
8226if test "$cross_compiling" = no; then
8227case $host_cpu in
8228 i[3456]86*|x86_64*) # use cpuid codes
8229
8230ac_ext=c
8231ac_cpp='$CPP $CPPFLAGS'
8232ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8233ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8234ac_compiler_gnu=$ac_cv_c_compiler_gnu
8235
8236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
8237$as_echo_n "checking for x86 cpuid 0 output... " >&6; }
8238if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
8239 $as_echo_n "(cached) " >&6
8240else
8241 if test "$cross_compiling" = yes; then :
8242 ax_cv_gcc_x86_cpuid_0=unknown
8243else
8244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8245/* end confdefs.h. */
8246#include <stdio.h>
8247int
8248main ()
8249{
8250
8251 int op = 0, eax, ebx, ecx, edx;
8252 FILE *f;
8253 __asm__("cpuid"
8254 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8255 : "a" (op));
8256 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8257 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8258 fclose(f);
8259 return 0;
8260
8261 ;
8262 return 0;
8263}
8264_ACEOF
8265if ac_fn_c_try_run "$LINENO"; then :
8266 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
8267else
8268 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
8269fi
8270rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8271 conftest.$ac_objext conftest.beam conftest.$ac_ext
8272fi
8273
8274fi
8275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
8276$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
8277ac_ext=c
8278ac_cpp='$CPP $CPPFLAGS'
8279ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8280ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8281ac_compiler_gnu=$ac_cv_c_compiler_gnu
8282
8283
8284
8285ac_ext=c
8286ac_cpp='$CPP $CPPFLAGS'
8287ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8288ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8289ac_compiler_gnu=$ac_cv_c_compiler_gnu
8290
8291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
8292$as_echo_n "checking for x86 cpuid 1 output... " >&6; }
8293if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
8294 $as_echo_n "(cached) " >&6
8295else
8296 if test "$cross_compiling" = yes; then :
8297 ax_cv_gcc_x86_cpuid_1=unknown
8298else
8299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8300/* end confdefs.h. */
8301#include <stdio.h>
8302int
8303main ()
8304{
8305
8306 int op = 1, eax, ebx, ecx, edx;
8307 FILE *f;
8308 __asm__("cpuid"
8309 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8310 : "a" (op));
8311 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8312 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8313 fclose(f);
8314 return 0;
8315
8316 ;
8317 return 0;
8318}
8319_ACEOF
8320if ac_fn_c_try_run "$LINENO"; then :
8321 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
8322else
8323 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
8324fi
8325rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8326 conftest.$ac_objext conftest.beam conftest.$ac_ext
8327fi
8328
8329fi
8330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
8331$as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
8332ac_ext=c
8333ac_cpp='$CPP $CPPFLAGS'
8334ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8335ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8336ac_compiler_gnu=$ac_cv_c_compiler_gnu
8337
8338
8339 case $ax_cv_gcc_x86_cpuid_0 in
8340 *:756e6547:*:*) # Intel
8341 case $ax_cv_gcc_x86_cpuid_1 in
8342 *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
8343 *5??:*:*:*) ax_gcc_arch=pentium ;;
8344 *0?6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8345 *0?6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8346 *0?6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8347 *0?6[9de]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
8348 *0?6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8349 *0?6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
8350 *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
8351 *1?6[aef]?:*:*:*|*2?6[5cef]?:*:*:*) ax_gcc_arch="corei7 core2 pentium-m pentium3 pentiumpro" ;;
8352 *1?6c?:*:*:*|*[23]?66?:*:*:*) ax_gcc_arch="atom core2 pentium-m pentium3 pentiumpro" ;;
8353 *2?6[ad]?:*:*:*) ax_gcc_arch="corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8354 *0?6??:*:*:*) ax_gcc_arch=pentiumpro ;;
8355 *6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
8356 ?000?f3[347]:*:*:*|?000?f41347:*:*:*|?000?f6?:*:*:*)
8357 case $host_cpu in
8358 x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;;
8359 *) ax_gcc_arch="prescott pentium4 pentiumpro" ;;
8360 esac ;;
8361 ?000?f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";;
8362 esac ;;
8363 *:68747541:*:*) # AMD
8364 case $ax_cv_gcc_x86_cpuid_1 in
8365 *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
8366 *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
8367 *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
8368 *60?:*:*:*) ax_gcc_arch=k7 ;;
8369 *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
8370 *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
8371 *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;;
8372 *6[68a]?:*:*:*)
8373
8374ac_ext=c
8375ac_cpp='$CPP $CPPFLAGS'
8376ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8377ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8378ac_compiler_gnu=$ac_cv_c_compiler_gnu
8379
8380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000006 output" >&5
8381$as_echo_n "checking for x86 cpuid 0x80000006 output... " >&6; }
8382if ${ax_cv_gcc_x86_cpuid_0x80000006+:} false; then :
8383 $as_echo_n "(cached) " >&6
8384else
8385 if test "$cross_compiling" = yes; then :
8386 ax_cv_gcc_x86_cpuid_0x80000006=unknown
8387else
8388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8389/* end confdefs.h. */
8390#include <stdio.h>
8391int
8392main ()
8393{
8394
8395 int op = 0x80000006, eax, ebx, ecx, edx;
8396 FILE *f;
8397 __asm__("cpuid"
8398 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8399 : "a" (op));
8400 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8401 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8402 fclose(f);
8403 return 0;
8404
8405 ;
8406 return 0;
8407}
8408_ACEOF
8409if ac_fn_c_try_run "$LINENO"; then :
8410 ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid
8411else
8412 ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid
8413fi
8414rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8415 conftest.$ac_objext conftest.beam conftest.$ac_ext
8416fi
8417
8418fi
8419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5
8420$as_echo "$ax_cv_gcc_x86_cpuid_0x80000006" >&6; }
8421ac_ext=c
8422ac_cpp='$CPP $CPPFLAGS'
8423ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8424ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8425ac_compiler_gnu=$ac_cv_c_compiler_gnu
8426
8427 # L2 cache size
8428 case $ax_cv_gcc_x86_cpuid_0x80000006 in
8429 *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256
8430 ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
8431 *) ax_gcc_arch="athlon-4 athlon k7" ;;
8432 esac ;;
8433 ?00??f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
8434 ?00??f5?:*:*:*) ax_gcc_arch="opteron k8" ;;
8435 ?00??f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;;
8436 ?00??f??:*:*:*) ax_gcc_arch="k8" ;;
8437 ?05??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
8438 ?06??f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
8439 *f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
8440 esac ;;
8441 *:746e6543:*:*) # IDT
8442 case $ax_cv_gcc_x86_cpuid_1 in
8443 *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
8444 *58?:*:*:*) ax_gcc_arch=winchip2 ;;
8445 *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
8446 *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
8447 esac ;;
8448 esac
8449 if test x"$ax_gcc_arch" = x; then # fallback
8450 case $host_cpu in
8451 i586*) ax_gcc_arch=pentium ;;
8452 i686*) ax_gcc_arch=pentiumpro ;;
8453 esac
8454 fi
8455 ;;
8456
8457 sparc*)
8458 # Extract the first word of "prtdiag", so it can be a program name with args.
8459set dummy prtdiag; ac_word=$2
8460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8461$as_echo_n "checking for $ac_word... " >&6; }
8462if ${ac_cv_path_PRTDIAG+:} false; then :
8463 $as_echo_n "(cached) " >&6
8464else
8465 case $PRTDIAG in
8466 [\\/]* | ?:[\\/]*)
8467 ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
8468 ;;
8469 *)
8470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8471as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
8472for as_dir in $as_dummy
8473do
8474 IFS=$as_save_IFS
8475 test -z "$as_dir" && as_dir=.
8476 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy37110d62012-03-01 18:38:20 +00008478 ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
8479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8480 break 2
8481 fi
8482done
8483 done
8484IFS=$as_save_IFS
8485
8486 test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
8487 ;;
8488esac
8489fi
8490PRTDIAG=$ac_cv_path_PRTDIAG
8491if test -n "$PRTDIAG"; then
8492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
8493$as_echo "$PRTDIAG" >&6; }
8494else
8495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8496$as_echo "no" >&6; }
8497fi
8498
8499
8500 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`
8501 cputype=`echo "$cputype" | tr -d ' -' |tr $as_cr_LETTERS $as_cr_letters`
8502 case $cputype in
8503 *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
8504 *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
8505 *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
8506 *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
8507 *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
8508 *cypress*) ax_gcc_arch=cypress ;;
8509 esac ;;
8510
8511 alphaev5) ax_gcc_arch=ev5 ;;
8512 alphaev56) ax_gcc_arch=ev56 ;;
8513 alphapca56) ax_gcc_arch="pca56 ev56" ;;
8514 alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
8515 alphaev6) ax_gcc_arch=ev6 ;;
8516 alphaev67) ax_gcc_arch=ev67 ;;
8517 alphaev68) ax_gcc_arch="ev68 ev67" ;;
8518 alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
8519 alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
8520 alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
8521
8522 powerpc*)
8523 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`
8524 cputype=`echo $cputype | sed -e 's/ppc//g;s/ *//g'`
8525 case $cputype in
8526 *750*) ax_gcc_arch="750 G3" ;;
8527 *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
8528 *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
8529 *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
8530 *970*) ax_gcc_arch="970 G5 power4";;
8531 *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
8532 *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
8533 603ev|8240) ax_gcc_arch="$cputype 603e 603";;
8534 *) ax_gcc_arch=$cputype ;;
8535 esac
8536 ax_gcc_arch="$ax_gcc_arch powerpc"
8537 ;;
8538esac
8539fi # not cross-compiling
8540fi # guess arch
8541
8542if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
8543for arch in $ax_gcc_arch; do
cristya32d1812012-03-02 19:24:21 +00008544 if test "xno" = xyes; then # if we require portable code
cristy37110d62012-03-01 18:38:20 +00008545 flags="-mtune=$arch"
8546 # -mcpu=$arch and m$arch generate nonportable code on every arch except
8547 # x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr.
8548 case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac
8549 else
8550 flags="-march=$arch -mcpu=$arch -m$arch"
8551 fi
8552 for flag in $flags; do
8553 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
8554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
8555$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
8556if eval \${$as_CACHEVAR+:} false; then :
8557 $as_echo_n "(cached) " >&6
8558else
8559
8560 ax_check_save_flags=$CFLAGS
8561 CFLAGS="$CFLAGS $flag"
8562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8563/* end confdefs.h. */
8564
8565int
8566main ()
8567{
8568
8569 ;
8570 return 0;
8571}
8572_ACEOF
8573if ac_fn_c_try_compile "$LINENO"; then :
8574 eval "$as_CACHEVAR=yes"
8575else
8576 eval "$as_CACHEVAR=no"
8577fi
8578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8579 CFLAGS=$ax_check_save_flags
8580fi
8581eval ac_res=\$$as_CACHEVAR
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8583$as_echo "$ac_res" >&6; }
8584if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
8585 ax_cv_gcc_archflag=$flag; break
8586else
8587 :
8588fi
8589
8590 done
8591 test "x$ax_cv_gcc_archflag" = xunknown || break
8592done
8593fi
8594
8595fi # $GCC=yes
8596
8597fi
8598
8599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8600$as_echo_n "checking for gcc architecture flag... " >&6; }
8601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
8602$as_echo "$ax_cv_gcc_archflag" >&6; }
8603if test "x$ax_cv_gcc_archflag" = xunknown; then
8604 :
8605else
8606 CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
8607fi
8608
8609
8610
cristy73bd4a52010-10-05 11:24:23 +00008611if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8612 if test -n "$ac_tool_prefix"; then
8613 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8614set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8616$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008617if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008618 $as_echo_n "(cached) " >&6
8619else
8620 case $PKG_CONFIG in
8621 [\\/]* | ?:[\\/]*)
8622 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8623 ;;
8624 *)
8625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8626for as_dir in $PATH
8627do
8628 IFS=$as_save_IFS
8629 test -z "$as_dir" && as_dir=.
8630 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008632 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8634 break 2
8635 fi
8636done
8637 done
8638IFS=$as_save_IFS
8639
8640 ;;
8641esac
8642fi
8643PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8644if test -n "$PKG_CONFIG"; then
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8646$as_echo "$PKG_CONFIG" >&6; }
8647else
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8649$as_echo "no" >&6; }
8650fi
8651
8652
8653fi
8654if test -z "$ac_cv_path_PKG_CONFIG"; then
8655 ac_pt_PKG_CONFIG=$PKG_CONFIG
8656 # Extract the first word of "pkg-config", so it can be a program name with args.
8657set dummy pkg-config; ac_word=$2
8658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8659$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008660if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008661 $as_echo_n "(cached) " >&6
8662else
8663 case $ac_pt_PKG_CONFIG in
8664 [\\/]* | ?:[\\/]*)
8665 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8666 ;;
8667 *)
8668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8669for as_dir in $PATH
8670do
8671 IFS=$as_save_IFS
8672 test -z "$as_dir" && as_dir=.
8673 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008675 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8677 break 2
8678 fi
8679done
8680 done
8681IFS=$as_save_IFS
8682
8683 ;;
8684esac
8685fi
8686ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8687if test -n "$ac_pt_PKG_CONFIG"; then
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8689$as_echo "$ac_pt_PKG_CONFIG" >&6; }
8690else
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8692$as_echo "no" >&6; }
8693fi
8694
8695 if test "x$ac_pt_PKG_CONFIG" = x; then
8696 PKG_CONFIG=""
8697 else
8698 case $cross_compiling:$ac_tool_warned in
8699yes:)
8700{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8701$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8702ac_tool_warned=yes ;;
8703esac
8704 PKG_CONFIG=$ac_pt_PKG_CONFIG
8705 fi
8706else
8707 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8708fi
8709
8710fi
8711if test -n "$PKG_CONFIG"; then
8712 _pkg_min_version=0.9.0
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8714$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8715 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8717$as_echo "yes" >&6; }
8718 else
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8720$as_echo "no" >&6; }
8721 PKG_CONFIG=""
8722 fi
8723
8724fi
cristy3ed852e2009-09-05 21:47:34 +00008725
cristy9b86f202012-11-28 21:55:35 +00008726# Check for linker script support
8727
8728 # Check whether --enable-ld-version-script was given.
8729if test "${enable_ld_version_script+set}" = set; then :
8730 enableval=$enable_ld_version_script; have_ld_version_script=$enableval
8731fi
8732
8733 if test -z "$have_ld_version_script"; then
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
8735$as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
8736 save_LDFLAGS="$LDFLAGS"
8737 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
8738 cat > conftest.map <<EOF
8739foo
8740EOF
8741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8742/* end confdefs.h. */
8743
8744int
8745main ()
8746{
8747
8748 ;
8749 return 0;
8750}
8751_ACEOF
8752if ac_fn_c_try_link "$LINENO"; then :
8753 accepts_syntax_errors=yes
8754else
8755 accepts_syntax_errors=no
8756fi
8757rm -f core conftest.err conftest.$ac_objext \
8758 conftest$ac_exeext conftest.$ac_ext
8759 if test "$accepts_syntax_errors" = no; then
8760 cat > conftest.map <<EOF
8761VERS_1 {
8762 global: sym;
8763};
8764
8765VERS_2 {
8766 global: sym;
8767} VERS_1;
8768EOF
8769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8770/* end confdefs.h. */
8771
8772int
8773main ()
8774{
8775
8776 ;
8777 return 0;
8778}
8779_ACEOF
8780if ac_fn_c_try_link "$LINENO"; then :
8781 have_ld_version_script=yes
8782else
8783 have_ld_version_script=no
8784fi
8785rm -f core conftest.err conftest.$ac_objext \
8786 conftest$ac_exeext conftest.$ac_ext
8787 else
8788 have_ld_version_script=no
8789 fi
8790 rm -f conftest.map
8791 LDFLAGS="$save_LDFLAGS"
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
8793$as_echo "$have_ld_version_script" >&6; }
8794 fi
8795 if test "$have_ld_version_script" = "yes"; then
8796 HAVE_LD_VERSION_SCRIPT_TRUE=
8797 HAVE_LD_VERSION_SCRIPT_FALSE='#'
8798else
8799 HAVE_LD_VERSION_SCRIPT_TRUE='#'
8800 HAVE_LD_VERSION_SCRIPT_FALSE=
8801fi
8802
8803
8804
cristy3ed852e2009-09-05 21:47:34 +00008805#
cristy3ed852e2009-09-05 21:47:34 +00008806# Enable run-time checking.
8807#
8808# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00008809if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008810 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
8811else
8812 enable_bounds_checking='no'
8813fi
8814
8815
8816if test "$enable_bounds_checking" = yes; then
8817
cristy8b350f62009-11-15 23:12:43 +00008818$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008819
8820fi
8821
8822#
8823# Tests for Windows
8824#
8825
8826
8827
8828GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00008829native_win32_build='no'
8830cygwin_build='no'
8831case "${host_os}" in
8832 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00008833 cygwin_build='yes'
8834 GDI32_LIBS='-lgdi32'
8835 ;;
8836 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00008837 native_win32_build='yes'
8838 GDI32_LIBS='-lgdi32'
8839 ;;
8840esac
8841if test "${GDI32_LIBS}x" != 'x'; then
8842
cristy8b350f62009-11-15 23:12:43 +00008843$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008844
8845fi
8846
cristy73bd4a52010-10-05 11:24:23 +00008847 if test "${GDI32_LIBS}x" != 'x' ; then
8848 WINGDI32_DELEGATE_TRUE=
8849 WINGDI32_DELEGATE_FALSE='#'
8850else
8851 WINGDI32_DELEGATE_TRUE='#'
8852 WINGDI32_DELEGATE_FALSE=
8853fi
8854
8855 if test "${native_win32_build}" = 'yes' ; then
8856 WIN32_NATIVE_BUILD_TRUE=
8857 WIN32_NATIVE_BUILD_FALSE='#'
8858else
8859 WIN32_NATIVE_BUILD_TRUE='#'
8860 WIN32_NATIVE_BUILD_FALSE=
8861fi
8862
8863 if test "${cygwin_build}" = 'yes' ; then
8864 CYGWIN_BUILD_TRUE=
8865 CYGWIN_BUILD_FALSE='#'
8866else
8867 CYGWIN_BUILD_TRUE='#'
8868 CYGWIN_BUILD_FALSE=
8869fi
8870
8871 if test "x${CC}" = 'xcl.exe' ; then
8872 USING_CL_TRUE=
8873 USING_CL_FALSE='#'
8874else
8875 USING_CL_TRUE='#'
8876 USING_CL_FALSE=
8877fi
8878
cristy3ed852e2009-09-05 21:47:34 +00008879
8880WinPathScript="${srcdirfull}/winpath.sh"
8881
8882
8883#
8884# Compiler flags tweaks
8885#
8886if test "${GCC}" != "yes"; then
8887 case "${host}" in
8888 *-*-hpux* )
8889 # aCC: HP ANSI C++ B3910B A.03.34
8890 CFLAGS="${CFLAGS} -Wp,-H30000"
8891 if test -n "${CXXFLAGS}"; then
8892 CXXFLAGS='-AA'
8893 else
8894 CXXFLAGS="${CXXFLAGS} -AA"
8895 fi
8896 ;;
8897 *-dec-osf5.* )
8898 # Compaq alphaev68-dec-osf5.1 compiler
8899 if test -n "${CXXFLAGS}"; then
8900 CXXFLAGS='-std strict_ansi -noimplicit_include'
8901 else
8902 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8903 fi
8904 esac
8905fi
8906
8907# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00008908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00008909$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008910if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00008911 $as_echo_n "(cached) " >&6
8912else
8913
8914im_cv_ld_lazyload='none'
8915case "${host}" in
8916 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8917 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8918 im_cv_ld_lazyload='-Wl,-zlazyload'
8919 fi
8920 ;;
8921esac
8922
8923fi
cristy8b350f62009-11-15 23:12:43 +00008924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00008925$as_echo "$im_cv_ld_lazyload" >&6; }
8926if test "${im_cv_ld_lazyload}" != 'none' ; then
8927 if test -z "${LDFLAGS}" ; then
8928 LDFLAGS="${im_cv_ld_lazyload}"
8929 else
8930 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8931 fi
8932fi
8933
8934case "$host" in
cristyc37574e2013-02-16 01:04:55 +00008935 *darwin* | *-macos10*)
cristyb3b90d32013-02-16 15:44:08 +00008936 CFLAGS="${CFLAGS} -D_FORTIFY_SOURCE=0"
cristyc37574e2013-02-16 01:04:55 +00008937 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00008938if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008939 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8940else
8941 build_osxuniversal=no
8942fi
8943
8944
cristyc37574e2013-02-16 01:04:55 +00008945 if test "${build_osxuniversal}" != no ; then
8946 if test "$enable_dependency_tracking" != no ; then
8947 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00008948Please re-run configure with these options:
8949 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00008950 " "$LINENO" 5
cristyc37574e2013-02-16 01:04:55 +00008951 fi
8952 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8953 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8954 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
cristy3ed852e2009-09-05 21:47:34 +00008955 fi
8956 ;;
8957esac
8958
cristy0151ae12011-10-28 16:32:29 +00008959#
8960# ARCH specific include directory
8961#
8962
cristy670aa3c2011-11-03 00:54:00 +00008963# Check whether --with-includearch-dir was given.
8964if test "${with_includearch_dir+set}" = set; then :
8965 withval=$with_includearch_dir; includearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00008966else
cristy670aa3c2011-11-03 00:54:00 +00008967 includearch_dir=$INCLUDE_DIR
cristy0151ae12011-10-28 16:32:29 +00008968fi
8969
8970
cristyd286fd72013-02-24 19:25:33 +00008971eval "eval INCLUDEARCH_DIR=$includearch_dir"
cristyac9041a2011-10-28 16:52:32 +00008972
cristy0151ae12011-10-28 16:32:29 +00008973
8974#
8975# ARCH specific configuration directory
8976#
8977
cristy670aa3c2011-11-03 00:54:00 +00008978# Check whether --with-sharearch-dir was given.
8979if test "${with_sharearch_dir+set}" = set; then :
8980 withval=$with_sharearch_dir; sharearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00008981else
cristy408ebcd2011-11-14 01:36:57 +00008982 sharearch_dir="${LIB_DIR}"
cristy0151ae12011-10-28 16:32:29 +00008983fi
8984
8985
cristy670aa3c2011-11-03 00:54:00 +00008986eval "eval SHAREARCH_DIR=$sharearch_dir"
cristyac9041a2011-10-28 16:52:32 +00008987
cristy0151ae12011-10-28 16:32:29 +00008988
cristy2ec87cc2013-02-18 17:46:50 +00008989# Path to the pkgconfig folder
8990
8991# Check whether --with-pkgconfigdir was given.
8992if test "${with_pkgconfigdir+set}" = set; then :
8993 withval=$with_pkgconfigdir; pkgconfigdir="$withval"
8994else
8995 pkgconfigdir='${libdir}/pkgconfig'
8996fi
8997
8998
8999
cristy0151ae12011-10-28 16:32:29 +00009000#
cristy3ed852e2009-09-05 21:47:34 +00009001# Enable support for threads
9002
9003# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00009004if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009005 withval=$with_threads; with_threads=$withval
9006else
9007 with_threads='yes'
9008fi
9009
9010
9011have_threads=no
9012if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00009013
9014
cristy73bd4a52010-10-05 11:24:23 +00009015ac_ext=c
9016ac_cpp='$CPP $CPPFLAGS'
9017ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9018ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9019ac_compiler_gnu=$ac_cv_c_compiler_gnu
9020
9021ax_pthread_ok=no
9022
9023# We used to check for pthread.h first, but this fails if pthread.h
9024# requires special compiler flags (e.g. on True64 or Sequent).
9025# It gets checked for in the link test anyway.
9026
9027# First of all, check if the user has set any of the PTHREAD_LIBS,
9028# etcetera environment variables, and if threads linking works using
9029# them:
9030if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9031 save_CFLAGS="$CFLAGS"
9032 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9033 save_LIBS="$LIBS"
9034 LIBS="$PTHREAD_LIBS $LIBS"
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9036$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9038/* end confdefs.h. */
9039
9040/* Override any GCC internal prototype to avoid an error.
9041 Use char because int might match the return type of a GCC
9042 builtin and then its argument prototype would still apply. */
9043#ifdef __cplusplus
9044extern "C"
9045#endif
9046char pthread_join ();
9047int
9048main ()
9049{
9050return pthread_join ();
9051 ;
9052 return 0;
9053}
9054_ACEOF
9055if ac_fn_c_try_link "$LINENO"; then :
9056 ax_pthread_ok=yes
9057fi
9058rm -f core conftest.err conftest.$ac_objext \
9059 conftest$ac_exeext conftest.$ac_ext
9060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9061$as_echo "$ax_pthread_ok" >&6; }
9062 if test x"$ax_pthread_ok" = xno; then
9063 PTHREAD_LIBS=""
9064 PTHREAD_CFLAGS=""
9065 fi
9066 LIBS="$save_LIBS"
9067 CFLAGS="$save_CFLAGS"
9068fi
9069
9070# We must check for the threads library under a number of different
9071# names; the ordering is very important because some systems
9072# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9073# libraries is broken (non-POSIX).
9074
9075# Create a list of thread flags to try. Items starting with a "-" are
9076# C compiler flags, and other items are library names, except for "none"
9077# which indicates that we try without any flags at all, and "pthread-config"
9078# which is a program returning the flags for the Pth emulation library.
9079
cristy2ec87cc2013-02-18 17:46:50 +00009080ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009081
9082# The ordering *is* (sometimes) important. Some notes on the
9083# individual items follow:
9084
9085# pthreads: AIX (must check this before -lpthread)
9086# none: in case threads are in libc; should be tried before -Kthread and
9087# other compiler flags to prevent continual compiler warnings
9088# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9089# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9090# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9091# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9092# -pthreads: Solaris/gcc
9093# -mthreads: Mingw32/gcc, Lynx/gcc
9094# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9095# doesn't hurt to check since this sometimes defines pthreads too;
9096# also defines -D_REENTRANT)
9097# ... -mt is also the pthreads flag for HP/aCC
9098# pthread: Linux, etcetera
9099# --thread-safe: KAI C++
9100# pthread-config: use pthread-config program (for GNU Pth library)
9101
cristy2ec87cc2013-02-18 17:46:50 +00009102case ${host_os} in
9103 solaris*)
cristy73bd4a52010-10-05 11:24:23 +00009104
9105 # On Solaris (at least, for some versions), libc contains stubbed
9106 # (non-functional) versions of the pthreads routines, so link-based
9107 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9108 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9109 # a function called by this macro, so we could check for that, but
9110 # who knows whether they'll stub that too in a future libc.) So,
9111 # we'll just look for -pthreads and -lpthread first:
9112
9113 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9114 ;;
9115
cristy2ec87cc2013-02-18 17:46:50 +00009116 darwin*)
cristya316db12011-10-24 00:49:45 +00009117 ax_pthread_flags="-pthread $ax_pthread_flags"
9118 ;;
cristy73bd4a52010-10-05 11:24:23 +00009119esac
9120
9121if test x"$ax_pthread_ok" = xno; then
9122for flag in $ax_pthread_flags; do
9123
9124 case $flag in
9125 none)
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9127$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9128 ;;
9129
9130 -*)
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9132$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9133 PTHREAD_CFLAGS="$flag"
9134 ;;
9135
cristya316db12011-10-24 00:49:45 +00009136 pthread-config)
9137 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009138set dummy pthread-config; ac_word=$2
9139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9140$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009141if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009142 $as_echo_n "(cached) " >&6
9143else
9144 if test -n "$ax_pthread_config"; then
9145 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9146else
9147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9148for as_dir in $PATH
9149do
9150 IFS=$as_save_IFS
9151 test -z "$as_dir" && as_dir=.
9152 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009154 ac_cv_prog_ax_pthread_config="yes"
9155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9156 break 2
9157 fi
9158done
9159 done
9160IFS=$as_save_IFS
9161
9162 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9163fi
9164fi
9165ax_pthread_config=$ac_cv_prog_ax_pthread_config
9166if test -n "$ax_pthread_config"; then
9167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9168$as_echo "$ax_pthread_config" >&6; }
9169else
9170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9171$as_echo "no" >&6; }
9172fi
9173
9174
cristya316db12011-10-24 00:49:45 +00009175 if test x"$ax_pthread_config" = xno; then continue; fi
9176 PTHREAD_CFLAGS="`pthread-config --cflags`"
9177 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9178 ;;
cristy73bd4a52010-10-05 11:24:23 +00009179
9180 *)
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9182$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9183 PTHREAD_LIBS="-l$flag"
9184 ;;
9185 esac
9186
9187 save_LIBS="$LIBS"
9188 save_CFLAGS="$CFLAGS"
9189 LIBS="$PTHREAD_LIBS $LIBS"
9190 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9191
9192 # Check for various functions. We must include pthread.h,
9193 # since some functions may be macros. (On the Sequent, we
9194 # need a special flag -Kthread to make this header compile.)
9195 # We check for pthread_join because it is in -lpthread on IRIX
9196 # while pthread_create is in libc. We check for pthread_attr_init
9197 # due to DEC craziness with -lpthreads. We check for
9198 # pthread_cleanup_push because it is one of the few pthread
9199 # functions on Solaris that doesn't have a non-functional libc stub.
9200 # We try pthread_create on general principles.
9201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9202/* end confdefs.h. */
9203#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009204 static void routine(void *a) { a = 0; }
9205 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009206int
9207main ()
9208{
9209pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009210 pthread_create(&th, 0, start_routine, 0);
9211 pthread_join(th, 0);
9212 pthread_attr_init(&attr);
9213 pthread_cleanup_push(routine, 0);
9214 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009215 ;
9216 return 0;
9217}
9218_ACEOF
9219if ac_fn_c_try_link "$LINENO"; then :
9220 ax_pthread_ok=yes
9221fi
9222rm -f core conftest.err conftest.$ac_objext \
9223 conftest$ac_exeext conftest.$ac_ext
9224
9225 LIBS="$save_LIBS"
9226 CFLAGS="$save_CFLAGS"
9227
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9229$as_echo "$ax_pthread_ok" >&6; }
9230 if test "x$ax_pthread_ok" = xyes; then
9231 break;
9232 fi
9233
9234 PTHREAD_LIBS=""
9235 PTHREAD_CFLAGS=""
9236done
9237fi
9238
9239# Various other checks:
9240if test "x$ax_pthread_ok" = xyes; then
9241 save_LIBS="$LIBS"
9242 LIBS="$PTHREAD_LIBS $LIBS"
9243 save_CFLAGS="$CFLAGS"
9244 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9245
9246 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009248$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009249 attr_name=unknown
9250 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009252/* end confdefs.h. */
9253#include <pthread.h>
9254int
9255main ()
9256{
cristya316db12011-10-24 00:49:45 +00009257int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009258 ;
9259 return 0;
9260}
9261_ACEOF
9262if ac_fn_c_try_link "$LINENO"; then :
9263 attr_name=$attr; break
9264fi
9265rm -f core conftest.err conftest.$ac_objext \
9266 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009267 done
cristy73bd4a52010-10-05 11:24:23 +00009268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9269$as_echo "$attr_name" >&6; }
9270 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9271
9272cat >>confdefs.h <<_ACEOF
9273#define PTHREAD_CREATE_JOINABLE $attr_name
9274_ACEOF
9275
9276 fi
9277
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9279$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9280 flag=no
cristy2ec87cc2013-02-18 17:46:50 +00009281 case ${host_os} in
9282 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
9283 osf* | hpux*) flag="-D_REENTRANT";;
9284 solaris*)
9285 if test "$GCC" = "yes"; then
9286 flag="-D_REENTRANT"
9287 else
9288 flag="-mt -D_REENTRANT"
9289 fi
9290 ;;
cristy73bd4a52010-10-05 11:24:23 +00009291 esac
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9293$as_echo "${flag}" >&6; }
9294 if test "x$flag" != xno; then
9295 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9296 fi
9297
cristya316db12011-10-24 00:49:45 +00009298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9299$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9300if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9301 $as_echo_n "(cached) " >&6
9302else
9303
9304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9305/* end confdefs.h. */
9306
9307 #include <pthread.h>
9308int
9309main ()
9310{
9311int i = PTHREAD_PRIO_INHERIT;
9312 ;
9313 return 0;
9314}
9315_ACEOF
9316if ac_fn_c_try_link "$LINENO"; then :
9317 ax_cv_PTHREAD_PRIO_INHERIT=yes
9318else
9319 ax_cv_PTHREAD_PRIO_INHERIT=no
9320fi
9321rm -f core conftest.err conftest.$ac_objext \
9322 conftest$ac_exeext conftest.$ac_ext
9323
9324fi
9325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9326$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9327 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9328
9329$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9330
9331fi
9332
cristy73bd4a52010-10-05 11:24:23 +00009333 LIBS="$save_LIBS"
9334 CFLAGS="$save_CFLAGS"
9335
9336 # More AIX lossage: must compile with xlc_r or cc_r
cristya316db12011-10-24 00:49:45 +00009337 if test x"$GCC" != xyes; then
cristy73bd4a52010-10-05 11:24:23 +00009338 for ac_prog in xlc_r cc_r
9339do
9340 # Extract the first word of "$ac_prog", so it can be a program name with args.
9341set dummy $ac_prog; ac_word=$2
9342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9343$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009344if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009345 $as_echo_n "(cached) " >&6
9346else
9347 if test -n "$PTHREAD_CC"; then
9348 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9349else
9350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9351for as_dir in $PATH
9352do
9353 IFS=$as_save_IFS
9354 test -z "$as_dir" && as_dir=.
9355 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009357 ac_cv_prog_PTHREAD_CC="$ac_prog"
9358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9359 break 2
9360 fi
9361done
9362 done
9363IFS=$as_save_IFS
9364
9365fi
9366fi
9367PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9368if test -n "$PTHREAD_CC"; then
9369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9370$as_echo "$PTHREAD_CC" >&6; }
9371else
9372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9373$as_echo "no" >&6; }
9374fi
9375
9376
9377 test -n "$PTHREAD_CC" && break
9378done
9379test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
9380
9381 else
9382 PTHREAD_CC=$CC
cristya316db12011-10-24 00:49:45 +00009383 fi
cristy73bd4a52010-10-05 11:24:23 +00009384else
9385 PTHREAD_CC="$CC"
9386fi
9387
9388
9389
9390
9391
9392# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9393if test x"$ax_pthread_ok" = xyes; then
9394
9395$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9396
9397 :
9398else
9399 ax_pthread_ok=no
9400
9401fi
9402ac_ext=c
9403ac_cpp='$CPP $CPPFLAGS'
9404ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9405ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9406ac_compiler_gnu=$ac_cv_c_compiler_gnu
9407
9408
cristy7acf8fb2010-09-23 19:58:53 +00009409 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00009410 have_threads=yes
9411 DEF_THREAD="$PTHREAD_CFLAGS"
9412 CFLAGS="$CFLAGS $DEF_THREAD"
9413 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
9414 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00009415 { $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 +00009416$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
9417 CC="$PTHREAD_CC"
9418 fi
cristy55bf91c2010-09-24 00:29:41 +00009419
9420$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
9421
cristy3ed852e2009-09-05 21:47:34 +00009422 fi
9423fi
9424
9425# Enable support for OpenMP
9426if test "$have_threads" != 'yes'; then
9427 ac_cv_prog_c_openmp=unsupported
9428fi
9429
9430 OPENMP_CFLAGS=
9431 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00009432if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009433 enableval=$enable_openmp;
9434fi
9435
9436 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00009437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009438$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009439if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009440 $as_echo_n "(cached) " >&6
9441else
cristy8b350f62009-11-15 23:12:43 +00009442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9443/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009444
9445#ifndef _OPENMP
9446 choke me
9447#endif
9448#include <omp.h>
9449int main () { return omp_get_num_threads (); }
9450
9451_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009452if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009453 ac_cv_prog_c_openmp='none needed'
9454else
cristy8b350f62009-11-15 23:12:43 +00009455 ac_cv_prog_c_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +00009456 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
9457 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +00009458 ac_save_CFLAGS=$CFLAGS
9459 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00009460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9461/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009462
9463#ifndef _OPENMP
9464 choke me
9465#endif
9466#include <omp.h>
9467int main () { return omp_get_num_threads (); }
9468
9469_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009470if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009471 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00009472fi
cristy8b350f62009-11-15 23:12:43 +00009473rm -f core conftest.err conftest.$ac_objext \
9474 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009475 CFLAGS=$ac_save_CFLAGS
9476 if test "$ac_cv_prog_c_openmp" != unsupported; then
9477 break
9478 fi
9479 done
9480fi
cristy8b350f62009-11-15 23:12:43 +00009481rm -f core conftest.err conftest.$ac_objext \
9482 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009483fi
cristy8b350f62009-11-15 23:12:43 +00009484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00009485$as_echo "$ac_cv_prog_c_openmp" >&6; }
9486 case $ac_cv_prog_c_openmp in #(
9487 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00009488 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00009489 *)
cristy8b350f62009-11-15 23:12:43 +00009490 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00009491 esac
9492 fi
9493
9494
9495CFLAGS="$OPENMP_CFLAGS $CFLAGS"
9496MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
9497
cristy391f1ce2010-09-09 17:23:28 +00009498if test "$enable_openmp" != no; then
9499 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
9500 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
9501 fi
9502fi
cristy3ed852e2009-09-05 21:47:34 +00009503
cristy736173a2009-09-20 21:18:22 +00009504# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +00009505
9506
cristy73bd4a52010-10-05 11:24:23 +00009507ac_ext=c
9508ac_cpp='$CPP $CPPFLAGS'
9509ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9510ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9511ac_compiler_gnu=$ac_cv_c_compiler_gnu
9512
9513ax_pthread_ok=no
9514
9515# We used to check for pthread.h first, but this fails if pthread.h
9516# requires special compiler flags (e.g. on True64 or Sequent).
9517# It gets checked for in the link test anyway.
9518
9519# First of all, check if the user has set any of the PTHREAD_LIBS,
9520# etcetera environment variables, and if threads linking works using
9521# them:
9522if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9523 save_CFLAGS="$CFLAGS"
9524 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9525 save_LIBS="$LIBS"
9526 LIBS="$PTHREAD_LIBS $LIBS"
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9528$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9530/* end confdefs.h. */
9531
9532/* Override any GCC internal prototype to avoid an error.
9533 Use char because int might match the return type of a GCC
9534 builtin and then its argument prototype would still apply. */
9535#ifdef __cplusplus
9536extern "C"
9537#endif
9538char pthread_join ();
9539int
9540main ()
9541{
9542return pthread_join ();
9543 ;
9544 return 0;
9545}
9546_ACEOF
9547if ac_fn_c_try_link "$LINENO"; then :
9548 ax_pthread_ok=yes
9549fi
9550rm -f core conftest.err conftest.$ac_objext \
9551 conftest$ac_exeext conftest.$ac_ext
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9553$as_echo "$ax_pthread_ok" >&6; }
9554 if test x"$ax_pthread_ok" = xno; then
9555 PTHREAD_LIBS=""
9556 PTHREAD_CFLAGS=""
9557 fi
9558 LIBS="$save_LIBS"
9559 CFLAGS="$save_CFLAGS"
9560fi
9561
9562# We must check for the threads library under a number of different
9563# names; the ordering is very important because some systems
9564# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9565# libraries is broken (non-POSIX).
9566
9567# Create a list of thread flags to try. Items starting with a "-" are
9568# C compiler flags, and other items are library names, except for "none"
9569# which indicates that we try without any flags at all, and "pthread-config"
9570# which is a program returning the flags for the Pth emulation library.
9571
cristy2ec87cc2013-02-18 17:46:50 +00009572ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009573
9574# The ordering *is* (sometimes) important. Some notes on the
9575# individual items follow:
9576
9577# pthreads: AIX (must check this before -lpthread)
9578# none: in case threads are in libc; should be tried before -Kthread and
9579# other compiler flags to prevent continual compiler warnings
9580# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9581# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9582# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9583# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9584# -pthreads: Solaris/gcc
9585# -mthreads: Mingw32/gcc, Lynx/gcc
9586# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9587# doesn't hurt to check since this sometimes defines pthreads too;
9588# also defines -D_REENTRANT)
9589# ... -mt is also the pthreads flag for HP/aCC
9590# pthread: Linux, etcetera
9591# --thread-safe: KAI C++
9592# pthread-config: use pthread-config program (for GNU Pth library)
9593
cristy2ec87cc2013-02-18 17:46:50 +00009594case ${host_os} in
9595 solaris*)
cristy73bd4a52010-10-05 11:24:23 +00009596
9597 # On Solaris (at least, for some versions), libc contains stubbed
9598 # (non-functional) versions of the pthreads routines, so link-based
9599 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9600 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9601 # a function called by this macro, so we could check for that, but
9602 # who knows whether they'll stub that too in a future libc.) So,
9603 # we'll just look for -pthreads and -lpthread first:
9604
9605 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9606 ;;
9607
cristy2ec87cc2013-02-18 17:46:50 +00009608 darwin*)
cristya316db12011-10-24 00:49:45 +00009609 ax_pthread_flags="-pthread $ax_pthread_flags"
9610 ;;
cristy73bd4a52010-10-05 11:24:23 +00009611esac
9612
9613if test x"$ax_pthread_ok" = xno; then
9614for flag in $ax_pthread_flags; do
9615
9616 case $flag in
9617 none)
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9619$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9620 ;;
9621
9622 -*)
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9624$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9625 PTHREAD_CFLAGS="$flag"
9626 ;;
9627
cristya316db12011-10-24 00:49:45 +00009628 pthread-config)
9629 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009630set dummy pthread-config; ac_word=$2
9631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9632$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009633if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009634 $as_echo_n "(cached) " >&6
9635else
9636 if test -n "$ax_pthread_config"; then
9637 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9638else
9639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9640for as_dir in $PATH
9641do
9642 IFS=$as_save_IFS
9643 test -z "$as_dir" && as_dir=.
9644 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009646 ac_cv_prog_ax_pthread_config="yes"
9647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9648 break 2
9649 fi
9650done
9651 done
9652IFS=$as_save_IFS
9653
9654 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9655fi
9656fi
9657ax_pthread_config=$ac_cv_prog_ax_pthread_config
9658if test -n "$ax_pthread_config"; then
9659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9660$as_echo "$ax_pthread_config" >&6; }
9661else
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9663$as_echo "no" >&6; }
9664fi
9665
9666
cristya316db12011-10-24 00:49:45 +00009667 if test x"$ax_pthread_config" = xno; then continue; fi
9668 PTHREAD_CFLAGS="`pthread-config --cflags`"
9669 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9670 ;;
cristy73bd4a52010-10-05 11:24:23 +00009671
9672 *)
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9674$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9675 PTHREAD_LIBS="-l$flag"
9676 ;;
9677 esac
9678
9679 save_LIBS="$LIBS"
9680 save_CFLAGS="$CFLAGS"
9681 LIBS="$PTHREAD_LIBS $LIBS"
9682 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9683
9684 # Check for various functions. We must include pthread.h,
9685 # since some functions may be macros. (On the Sequent, we
9686 # need a special flag -Kthread to make this header compile.)
9687 # We check for pthread_join because it is in -lpthread on IRIX
9688 # while pthread_create is in libc. We check for pthread_attr_init
9689 # due to DEC craziness with -lpthreads. We check for
9690 # pthread_cleanup_push because it is one of the few pthread
9691 # functions on Solaris that doesn't have a non-functional libc stub.
9692 # We try pthread_create on general principles.
9693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9694/* end confdefs.h. */
9695#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009696 static void routine(void *a) { a = 0; }
9697 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009698int
9699main ()
9700{
9701pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009702 pthread_create(&th, 0, start_routine, 0);
9703 pthread_join(th, 0);
9704 pthread_attr_init(&attr);
9705 pthread_cleanup_push(routine, 0);
9706 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009707 ;
9708 return 0;
9709}
9710_ACEOF
9711if ac_fn_c_try_link "$LINENO"; then :
9712 ax_pthread_ok=yes
9713fi
9714rm -f core conftest.err conftest.$ac_objext \
9715 conftest$ac_exeext conftest.$ac_ext
9716
9717 LIBS="$save_LIBS"
9718 CFLAGS="$save_CFLAGS"
9719
9720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9721$as_echo "$ax_pthread_ok" >&6; }
9722 if test "x$ax_pthread_ok" = xyes; then
9723 break;
9724 fi
9725
9726 PTHREAD_LIBS=""
9727 PTHREAD_CFLAGS=""
9728done
9729fi
9730
9731# Various other checks:
9732if test "x$ax_pthread_ok" = xyes; then
9733 save_LIBS="$LIBS"
9734 LIBS="$PTHREAD_LIBS $LIBS"
9735 save_CFLAGS="$CFLAGS"
9736 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9737
9738 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009740$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009741 attr_name=unknown
9742 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009744/* end confdefs.h. */
9745#include <pthread.h>
9746int
9747main ()
9748{
cristya316db12011-10-24 00:49:45 +00009749int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009750 ;
9751 return 0;
9752}
9753_ACEOF
9754if ac_fn_c_try_link "$LINENO"; then :
9755 attr_name=$attr; break
9756fi
9757rm -f core conftest.err conftest.$ac_objext \
9758 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009759 done
cristy73bd4a52010-10-05 11:24:23 +00009760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9761$as_echo "$attr_name" >&6; }
9762 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9763
9764cat >>confdefs.h <<_ACEOF
9765#define PTHREAD_CREATE_JOINABLE $attr_name
9766_ACEOF
9767
9768 fi
9769
9770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9771$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9772 flag=no
cristy2ec87cc2013-02-18 17:46:50 +00009773 case ${host_os} in
9774 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
9775 osf* | hpux*) flag="-D_REENTRANT";;
9776 solaris*)
9777 if test "$GCC" = "yes"; then
9778 flag="-D_REENTRANT"
9779 else
9780 flag="-mt -D_REENTRANT"
9781 fi
9782 ;;
cristy73bd4a52010-10-05 11:24:23 +00009783 esac
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9785$as_echo "${flag}" >&6; }
9786 if test "x$flag" != xno; then
9787 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9788 fi
9789
cristya316db12011-10-24 00:49:45 +00009790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9791$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9792if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9793 $as_echo_n "(cached) " >&6
9794else
9795
9796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9797/* end confdefs.h. */
9798
9799 #include <pthread.h>
9800int
9801main ()
9802{
9803int i = PTHREAD_PRIO_INHERIT;
9804 ;
9805 return 0;
9806}
9807_ACEOF
9808if ac_fn_c_try_link "$LINENO"; then :
9809 ax_cv_PTHREAD_PRIO_INHERIT=yes
9810else
9811 ax_cv_PTHREAD_PRIO_INHERIT=no
9812fi
9813rm -f core conftest.err conftest.$ac_objext \
9814 conftest$ac_exeext conftest.$ac_ext
9815
9816fi
9817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9818$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9819 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9820
9821$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9822
9823fi
9824
cristy73bd4a52010-10-05 11:24:23 +00009825 LIBS="$save_LIBS"
9826 CFLAGS="$save_CFLAGS"
9827
9828 # More AIX lossage: must compile with xlc_r or cc_r
cristya316db12011-10-24 00:49:45 +00009829 if test x"$GCC" != xyes; then
cristy73bd4a52010-10-05 11:24:23 +00009830 for ac_prog in xlc_r cc_r
9831do
9832 # Extract the first word of "$ac_prog", so it can be a program name with args.
9833set dummy $ac_prog; ac_word=$2
9834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9835$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009836if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009837 $as_echo_n "(cached) " >&6
9838else
9839 if test -n "$PTHREAD_CC"; then
9840 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9841else
9842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9843for as_dir in $PATH
9844do
9845 IFS=$as_save_IFS
9846 test -z "$as_dir" && as_dir=.
9847 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009849 ac_cv_prog_PTHREAD_CC="$ac_prog"
9850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9851 break 2
9852 fi
9853done
9854 done
9855IFS=$as_save_IFS
9856
9857fi
9858fi
9859PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9860if test -n "$PTHREAD_CC"; then
9861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9862$as_echo "$PTHREAD_CC" >&6; }
9863else
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9865$as_echo "no" >&6; }
9866fi
9867
9868
9869 test -n "$PTHREAD_CC" && break
9870done
9871test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
9872
9873 else
9874 PTHREAD_CC=$CC
cristya316db12011-10-24 00:49:45 +00009875 fi
cristy73bd4a52010-10-05 11:24:23 +00009876else
9877 PTHREAD_CC="$CC"
9878fi
9879
9880
9881
9882
9883
9884# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9885if test x"$ax_pthread_ok" = xyes; then
9886
9887$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9888
9889 :
9890else
9891 ax_pthread_ok=no
9892
9893fi
9894ac_ext=c
9895ac_cpp='$CPP $CPPFLAGS'
9896ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9897ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9898ac_compiler_gnu=$ac_cv_c_compiler_gnu
9899
9900
9901
9902# Check whether --enable-opencl was given.
9903if test "${enable_opencl+set}" = set; then :
cristy48794642012-09-02 15:19:08 +00009904 enableval=$enable_opencl; enable_opencl=$enableval
cristy73bd4a52010-10-05 11:24:23 +00009905else
cristy48794642012-09-02 15:19:08 +00009906 enable_opencl='no'
cristy73bd4a52010-10-05 11:24:23 +00009907fi
9908
9909
cristy48794642012-09-02 15:19:08 +00009910if test "$enable_opencl" = 'yes'; then
cristy73bd4a52010-10-05 11:24:23 +00009911 ac_ext=c
9912ac_cpp='$CPP $CPPFLAGS'
9913ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9914ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9915ac_compiler_gnu=$ac_cv_c_compiler_gnu
9916
cristy75314cc2012-09-15 23:08:29 +00009917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
9918$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
9919if ${ax_cv_c_compiler_ms+:} false; then :
9920 $as_echo_n "(cached) " >&6
9921else
9922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9923/* end confdefs.h. */
9924
9925int
9926main ()
9927{
9928#ifndef _MSC_VER
9929 choke me
9930#endif
9931
9932 ;
9933 return 0;
9934}
9935_ACEOF
9936if ac_fn_c_try_compile "$LINENO"; then :
9937 ax_compiler_ms=yes
9938else
9939 ax_compiler_ms=no
9940fi
9941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9942ax_cv_c_compiler_ms=$ax_compiler_ms
9943
9944fi
9945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
9946$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy73bd4a52010-10-05 11:24:23 +00009947 if test X$ax_compiler_ms = Xno; then :
9948 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
9949fi
9950
9951 ax_save_CPPFLAGS=$CPPFLAGS
9952 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9953 for ac_header in CL/cl.h OpenCL/cl.h
9954do :
9955 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9956ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +00009957if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +00009958 cat >>confdefs.h <<_ACEOF
9959#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9960_ACEOF
9961
9962fi
9963
9964done
9965
9966 CPPFLAGS=$ax_save_CPPFLAGS
9967
9968 for ac_header in windows.h
9969do :
9970 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +00009971if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +00009972 cat >>confdefs.h <<_ACEOF
9973#define HAVE_WINDOWS_H 1
9974_ACEOF
9975
9976fi
9977
9978done
9979
9980
9981
9982
9983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
9984$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009985if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009986 $as_echo_n "(cached) " >&6
9987else
9988 ax_cv_check_cl_libcl=no
9989 case $host_cpu in
9990 x86_64) ax_check_cl_libdir=lib64 ;;
9991 *) ax_check_cl_libdir=lib ;;
9992 esac
9993 ax_save_CPPFLAGS=$CPPFLAGS
9994 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9995 ax_save_LIBS=$LIBS
9996 LIBS=""
9997 ax_check_libs="-lOpenCL -lCL -lclparser"
9998 for ax_lib in $ax_check_libs; do
9999 if test X$ax_compiler_ms = Xyes; then :
10000 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
10001else
10002 ax_try_lib=$ax_lib
10003fi
10004 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
10005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10006/* end confdefs.h. */
10007
10008 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10009 # include <windows.h>
10010 # endif
10011 # ifdef HAVE_CL_CL_H
10012 # include <CL/cl.h>
10013 # elif defined(HAVE_OPENCL_CL_H)
10014 # include <OpenCL/cl.h>
10015 # else
10016 # error no CL.h
10017 # endif
10018int
10019main ()
10020{
10021clCreateContextFromType(0,0,0,0,0)
10022 ;
10023 return 0;
10024}
10025_ACEOF
10026if ac_fn_c_try_link "$LINENO"; then :
10027 ax_cv_check_cl_libcl=$ax_try_lib; break
10028else
10029 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"
10030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10031/* end confdefs.h. */
10032
10033 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10034 # include <windows.h>
10035 # endif
10036 # ifdef HAVE_CL_CL_H
10037 # include <CL/cl.h>
10038 # elif defined(HAVE_OPENCL_CL_H)
10039 # include <OpenCL/cl.h>
10040 # else
10041 # error no CL.h
10042 # endif
10043int
10044main ()
10045{
10046clCreateContextFromType(0,0,0,0,0)
10047 ;
10048 return 0;
10049}
10050_ACEOF
10051if ac_fn_c_try_link "$LINENO"; then :
10052 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
10053else
cristy78c5a0c2010-12-04 20:00:59 +000010054 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 +000010055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10056/* end confdefs.h. */
10057
10058 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10059 # include <windows.h>
10060 # endif
10061 # ifdef HAVE_CL_CL_H
10062 # include <CL/cl.h>
10063 # elif defined(HAVE_OPENCL_CL_H)
10064 # include <OpenCL/cl.h>
10065 # else
10066 # error no CL.h
10067 # endif
10068int
10069main ()
10070{
10071clCreateContextFromType(0,0,0,0,0)
10072 ;
10073 return 0;
10074}
10075_ACEOF
10076if ac_fn_c_try_link "$LINENO"; then :
10077 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
10078fi
10079rm -f core conftest.err conftest.$ac_objext \
10080 conftest$ac_exeext conftest.$ac_ext
10081fi
10082rm -f core conftest.err conftest.$ac_objext \
10083 conftest$ac_exeext conftest.$ac_ext
10084fi
10085rm -f core conftest.err conftest.$ac_objext \
10086 conftest$ac_exeext conftest.$ac_ext
10087 done
10088
cristyc3f8b8e2011-12-22 14:55:16 +000010089 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy78c5a0c2010-12-04 20:00:59 +000010090 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +000010091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10092/* end confdefs.h. */
10093
10094 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10095 # include <windows.h>
10096 # endif
10097 # ifdef HAVE_CL_CL_H
10098 # include <CL/cl.h>
10099 # elif defined(HAVE_OPENCL_CL_H)
10100 # include <OpenCL/cl.h>
10101 # else
10102 # error no CL.h
10103 # endif
10104int
10105main ()
10106{
10107clCreateContextFromType(0,0,0,0,0)
10108 ;
10109 return 0;
10110}
10111_ACEOF
10112if ac_fn_c_try_link "$LINENO"; then :
10113 ax_cv_check_cl_libcl=$LIBS
10114fi
10115rm -f core conftest.err conftest.$ac_objext \
10116 conftest$ac_exeext conftest.$ac_ext
10117fi
10118
10119 LIBS=$ax_save_LIBS
10120 CPPFLAGS=$ax_save_CPPFLAGS
10121fi
10122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
10123$as_echo "$ax_cv_check_cl_libcl" >&6; }
10124
10125 if test "X$ax_cv_check_cl_libcl" = Xno; then :
10126 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
10127else
10128 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
10129$as_echo "#define _OPENCL 1" >>confdefs.h
10130
10131fi
10132 ac_ext=c
10133ac_cpp='$CPP $CPPFLAGS'
10134ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10135ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10136ac_compiler_gnu=$ac_cv_c_compiler_gnu
10137
10138fi
10139
10140
10141
10142
cristyc7083c12009-10-14 03:16:55 +000010143CFLAGS="$CL_CFLAGS $CFLAGS"
10144LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +000010145
cristy391f1ce2010-09-09 17:23:28 +000010146if test "$enable_opencl" != no; then
cristy6e3607c2011-09-13 13:59:17 +000010147 if test "X$ax_cv_check_cl_libcl" != Xno; then :
cristy391f1ce2010-09-09 17:23:28 +000010148 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
10149 fi
cristyfd9dcd42010-08-08 18:07:02 +000010150fi
cristy2e8b51d2009-10-17 18:26:15 +000010151
cristy3ed852e2009-09-05 21:47:34 +000010152########
10153#
10154# Check for large file support
10155#
10156########
10157# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +000010158if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010159 enableval=$enable_largefile;
10160fi
10161
10162if test "$enable_largefile" != no; then
10163
cristy8b350f62009-11-15 23:12:43 +000010164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010165$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010166if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010167 $as_echo_n "(cached) " >&6
10168else
10169 ac_cv_sys_largefile_CC=no
10170 if test "$GCC" != yes; then
10171 ac_save_CC=$CC
10172 while :; do
10173 # IRIX 6.2 and later do not support large files by default,
10174 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +000010175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010176/* end confdefs.h. */
10177#include <sys/types.h>
10178 /* Check that off_t can represent 2**63 - 1 correctly.
10179 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10180 since some C++ compilers masquerading as C compilers
10181 incorrectly reject 9223372036854775807. */
10182#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10183 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10184 && LARGE_OFF_T % 2147483647 == 1)
10185 ? 1 : -1];
10186int
10187main ()
10188{
10189
10190 ;
10191 return 0;
10192}
10193_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010194 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010195 break
cristy3ed852e2009-09-05 21:47:34 +000010196fi
cristy3ed852e2009-09-05 21:47:34 +000010197rm -f core conftest.err conftest.$ac_objext
10198 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +000010199 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010200 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +000010201fi
cristy3ed852e2009-09-05 21:47:34 +000010202rm -f core conftest.err conftest.$ac_objext
10203 break
10204 done
10205 CC=$ac_save_CC
10206 rm -f conftest.$ac_ext
10207 fi
10208fi
cristy8b350f62009-11-15 23:12:43 +000010209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000010210$as_echo "$ac_cv_sys_largefile_CC" >&6; }
10211 if test "$ac_cv_sys_largefile_CC" != no; then
10212 CC=$CC$ac_cv_sys_largefile_CC
10213 fi
10214
cristy8b350f62009-11-15 23:12:43 +000010215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010216$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010217if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010218 $as_echo_n "(cached) " >&6
10219else
10220 while :; do
cristy8b350f62009-11-15 23:12:43 +000010221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010222/* end confdefs.h. */
10223#include <sys/types.h>
10224 /* Check that off_t can represent 2**63 - 1 correctly.
10225 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10226 since some C++ compilers masquerading as C compilers
10227 incorrectly reject 9223372036854775807. */
10228#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10229 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10230 && LARGE_OFF_T % 2147483647 == 1)
10231 ? 1 : -1];
10232int
10233main ()
10234{
10235
10236 ;
10237 return 0;
10238}
10239_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010240if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010241 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +000010242fi
cristy3ed852e2009-09-05 21:47:34 +000010243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010245/* end confdefs.h. */
10246#define _FILE_OFFSET_BITS 64
10247#include <sys/types.h>
10248 /* Check that off_t can represent 2**63 - 1 correctly.
10249 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10250 since some C++ compilers masquerading as C compilers
10251 incorrectly reject 9223372036854775807. */
10252#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10253 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10254 && LARGE_OFF_T % 2147483647 == 1)
10255 ? 1 : -1];
10256int
10257main ()
10258{
10259
10260 ;
10261 return 0;
10262}
10263_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010264if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010265 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +000010266fi
cristy3ed852e2009-09-05 21:47:34 +000010267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10268 ac_cv_sys_file_offset_bits=unknown
10269 break
10270done
10271fi
cristy8b350f62009-11-15 23:12:43 +000010272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +000010273$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10274case $ac_cv_sys_file_offset_bits in #(
10275 no | unknown) ;;
10276 *)
10277cat >>confdefs.h <<_ACEOF
10278#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10279_ACEOF
10280;;
10281esac
10282rm -rf conftest*
10283 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +000010284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010285$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010286if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010287 $as_echo_n "(cached) " >&6
10288else
10289 while :; do
cristy8b350f62009-11-15 23:12:43 +000010290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010291/* end confdefs.h. */
10292#include <sys/types.h>
10293 /* Check that off_t can represent 2**63 - 1 correctly.
10294 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10295 since some C++ compilers masquerading as C compilers
10296 incorrectly reject 9223372036854775807. */
10297#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10298 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10299 && LARGE_OFF_T % 2147483647 == 1)
10300 ? 1 : -1];
10301int
10302main ()
10303{
10304
10305 ;
10306 return 0;
10307}
10308_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010309if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010310 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +000010311fi
cristy3ed852e2009-09-05 21:47:34 +000010312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010314/* end confdefs.h. */
10315#define _LARGE_FILES 1
10316#include <sys/types.h>
10317 /* Check that off_t can represent 2**63 - 1 correctly.
10318 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10319 since some C++ compilers masquerading as C compilers
10320 incorrectly reject 9223372036854775807. */
10321#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10322 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10323 && LARGE_OFF_T % 2147483647 == 1)
10324 ? 1 : -1];
10325int
10326main ()
10327{
10328
10329 ;
10330 return 0;
10331}
10332_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010333if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010334 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +000010335fi
cristy3ed852e2009-09-05 21:47:34 +000010336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10337 ac_cv_sys_large_files=unknown
10338 break
10339done
10340fi
cristy8b350f62009-11-15 23:12:43 +000010341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010342$as_echo "$ac_cv_sys_large_files" >&6; }
10343case $ac_cv_sys_large_files in #(
10344 no | unknown) ;;
10345 *)
10346cat >>confdefs.h <<_ACEOF
10347#define _LARGE_FILES $ac_cv_sys_large_files
10348_ACEOF
10349;;
10350esac
10351rm -rf conftest*
10352 fi
cristy14fefe52012-05-21 00:59:18 +000010353
10354
cristy3ed852e2009-09-05 21:47:34 +000010355fi
10356
cristy8b350f62009-11-15 23:12:43 +000010357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010358$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010359if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010360 $as_echo_n "(cached) " >&6
10361else
10362 while :; do
cristy8b350f62009-11-15 23:12:43 +000010363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010364/* end confdefs.h. */
10365#include <sys/types.h> /* for off_t */
10366 #include <stdio.h>
10367int
10368main ()
10369{
10370int (*fp) (FILE *, off_t, int) = fseeko;
10371 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10372 ;
10373 return 0;
10374}
10375_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010376if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010377 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +000010378fi
cristy8b350f62009-11-15 23:12:43 +000010379rm -f core conftest.err conftest.$ac_objext \
10380 conftest$ac_exeext conftest.$ac_ext
10381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010382/* end confdefs.h. */
10383#define _LARGEFILE_SOURCE 1
10384#include <sys/types.h> /* for off_t */
10385 #include <stdio.h>
10386int
10387main ()
10388{
10389int (*fp) (FILE *, off_t, int) = fseeko;
10390 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10391 ;
10392 return 0;
10393}
10394_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010395if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010396 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +000010397fi
cristy8b350f62009-11-15 23:12:43 +000010398rm -f core conftest.err conftest.$ac_objext \
10399 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010400 ac_cv_sys_largefile_source=unknown
10401 break
10402done
10403fi
cristy8b350f62009-11-15 23:12:43 +000010404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +000010405$as_echo "$ac_cv_sys_largefile_source" >&6; }
10406case $ac_cv_sys_largefile_source in #(
10407 no | unknown) ;;
10408 *)
10409cat >>confdefs.h <<_ACEOF
10410#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
10411_ACEOF
10412;;
10413esac
10414rm -rf conftest*
10415
10416# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
10417# in glibc 2.1.3, but that breaks too many other things.
10418# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
10419if test $ac_cv_sys_largefile_source != unknown; then
10420
cristy8b350f62009-11-15 23:12:43 +000010421$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010422
10423fi
10424
10425LFS_CPPFLAGS=''
10426if test "$enable_largefile" != no; then
cristyc1e0cc12011-09-21 16:41:16 +000010427 case $ac_cv_sys_file_offset_bits in
10428 no)
10429 # nothing to do here as the host supports LFS fine
10430 ;;
10431 unknown)
cristy8b350f62009-11-15 23:12:43 +000010432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +000010433$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010434 if test "$cross_compiling" = yes; then :
10435 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000010436$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000010437as_fn_error $? "cannot run test program while cross compiling
10438See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000010439else
cristy8b350f62009-11-15 23:12:43 +000010440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10441/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000010442#include <unistd.h>
10443 main () {
10444 exit(!(sizeof(off_t) == 8));
10445 }
cristyda16f162011-02-19 23:52:17 +000010446int
10447main ()
10448{
10449
10450 ;
10451 return 0;
10452}
cristy3ed852e2009-09-05 21:47:34 +000010453_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010454if ac_fn_c_try_run "$LINENO"; then :
10455 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010456
cristyad38abe2012-12-23 23:03:21 +000010457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10458$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000010459else
cristyad38abe2012-12-23 23:03:21 +000010460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10461$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000010462fi
cristy8b350f62009-11-15 23:12:43 +000010463rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10464 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010465fi
10466
cristyc1e0cc12011-09-21 16:41:16 +000010467 ;;
10468 *)
10469 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
10470 ;;
10471 esac
cristy3ed852e2009-09-05 21:47:34 +000010472 if test "$ac_cv_sys_large_files" != 'no'; then
10473 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
10474 fi
10475 if test "$ac_cv_sys_largefile_source" != 'no'; then
10476 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
10477 fi
10478fi
10479
10480
cristy3ed852e2009-09-05 21:47:34 +000010481# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +000010482enable_dlopen=yes
10483
10484
10485
10486case `pwd` in
10487 *\ * | *\ *)
10488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10489$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10490esac
10491
10492
10493
cristy99bd5232011-12-07 14:38:20 +000010494macro_version='2.4.2'
10495macro_revision='1.3337'
cristy73bd4a52010-10-05 11:24:23 +000010496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509ltmain="$ac_aux_dir/ltmain.sh"
10510
cristy0c60a692010-11-04 01:09:47 +000010511# Backslashify metacharacters that are still active within
10512# double-quoted strings.
10513sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10514
10515# Same as above, but do not quote variable references.
10516double_quote_subst='s/\(["`\\]\)/\\\1/g'
10517
10518# Sed substitution to delay expansion of an escaped shell variable in a
10519# double_quote_subst'ed string.
10520delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10521
10522# Sed substitution to delay expansion of an escaped single quote.
10523delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10524
10525# Sed substitution to avoid accidental globbing in evaled expressions
10526no_glob_subst='s/\*/\\\*/g'
10527
cristy73bd4a52010-10-05 11:24:23 +000010528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
10529$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010530if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010531 $as_echo_n "(cached) " >&6
10532else
10533 if test -n "$NM"; then
10534 # Let the user override the test.
10535 lt_cv_path_NM="$NM"
10536else
10537 lt_nm_to_check="${ac_tool_prefix}nm"
10538 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
10539 lt_nm_to_check="$lt_nm_to_check nm"
10540 fi
10541 for lt_tmp_nm in $lt_nm_to_check; do
10542 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10543 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
10544 IFS="$lt_save_ifs"
10545 test -z "$ac_dir" && ac_dir=.
10546 tmp_nm="$ac_dir/$lt_tmp_nm"
10547 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
10548 # Check to see if the nm accepts a BSD-compat flag.
10549 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
10550 # nm: unknown option "B" ignored
10551 # Tru64's nm complains that /dev/null is an invalid object file
10552 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
10553 */dev/null* | *'Invalid file or object type'*)
10554 lt_cv_path_NM="$tmp_nm -B"
10555 break
10556 ;;
10557 *)
10558 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
10559 */dev/null*)
10560 lt_cv_path_NM="$tmp_nm -p"
10561 break
10562 ;;
10563 *)
10564 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
10565 continue # so that we can try to find one that supports BSD flags
10566 ;;
10567 esac
10568 ;;
10569 esac
10570 fi
10571 done
10572 IFS="$lt_save_ifs"
10573 done
10574 : ${lt_cv_path_NM=no}
10575fi
10576fi
10577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
10578$as_echo "$lt_cv_path_NM" >&6; }
10579if test "$lt_cv_path_NM" != "no"; then
10580 NM="$lt_cv_path_NM"
10581else
10582 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +000010583 if test -n "$DUMPBIN"; then :
10584 # Let the user override the test.
10585 else
10586 if test -n "$ac_tool_prefix"; then
10587 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000010588 do
10589 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10590set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10592$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010593if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010594 $as_echo_n "(cached) " >&6
10595else
10596 if test -n "$DUMPBIN"; then
10597 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
10598else
10599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10600for as_dir in $PATH
10601do
10602 IFS=$as_save_IFS
10603 test -z "$as_dir" && as_dir=.
10604 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010606 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
10607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10608 break 2
10609 fi
10610done
10611 done
10612IFS=$as_save_IFS
10613
10614fi
10615fi
10616DUMPBIN=$ac_cv_prog_DUMPBIN
10617if test -n "$DUMPBIN"; then
10618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
10619$as_echo "$DUMPBIN" >&6; }
10620else
10621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10622$as_echo "no" >&6; }
10623fi
10624
10625
10626 test -n "$DUMPBIN" && break
10627 done
10628fi
10629if test -z "$DUMPBIN"; then
10630 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +000010631 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000010632do
10633 # Extract the first word of "$ac_prog", so it can be a program name with args.
10634set dummy $ac_prog; ac_word=$2
10635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10636$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010637if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010638 $as_echo_n "(cached) " >&6
10639else
10640 if test -n "$ac_ct_DUMPBIN"; then
10641 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
10642else
10643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10644for as_dir in $PATH
10645do
10646 IFS=$as_save_IFS
10647 test -z "$as_dir" && as_dir=.
10648 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010650 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
10651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10652 break 2
10653 fi
10654done
10655 done
10656IFS=$as_save_IFS
10657
10658fi
10659fi
10660ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
10661if test -n "$ac_ct_DUMPBIN"; then
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
10663$as_echo "$ac_ct_DUMPBIN" >&6; }
10664else
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10666$as_echo "no" >&6; }
10667fi
10668
10669
10670 test -n "$ac_ct_DUMPBIN" && break
10671done
10672
10673 if test "x$ac_ct_DUMPBIN" = x; then
10674 DUMPBIN=":"
10675 else
10676 case $cross_compiling:$ac_tool_warned in
10677yes:)
10678{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10679$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10680ac_tool_warned=yes ;;
10681esac
10682 DUMPBIN=$ac_ct_DUMPBIN
10683 fi
10684fi
10685
cristy0c60a692010-11-04 01:09:47 +000010686 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
10687 *COFF*)
10688 DUMPBIN="$DUMPBIN -symbols"
10689 ;;
10690 *)
10691 DUMPBIN=:
10692 ;;
10693 esac
10694 fi
cristy73bd4a52010-10-05 11:24:23 +000010695
10696 if test "$DUMPBIN" != ":"; then
10697 NM="$DUMPBIN"
10698 fi
10699fi
10700test -z "$NM" && NM=nm
10701
10702
10703
10704
10705
10706
10707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
10708$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010709if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010710 $as_echo_n "(cached) " >&6
10711else
10712 lt_cv_nm_interface="BSD nm"
10713 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000010714 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010715 (eval "$ac_compile" 2>conftest.err)
10716 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000010717 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010718 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
10719 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000010720 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010721 cat conftest.out >&5
10722 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
10723 lt_cv_nm_interface="MS dumpbin"
10724 fi
10725 rm -f conftest*
10726fi
10727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
10728$as_echo "$lt_cv_nm_interface" >&6; }
10729
10730# find the maximum length of command line arguments
10731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
10732$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010733if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010734 $as_echo_n "(cached) " >&6
10735else
10736 i=0
10737 teststring="ABCD"
10738
10739 case $build_os in
10740 msdosdjgpp*)
10741 # On DJGPP, this test can blow up pretty badly due to problems in libc
10742 # (any single argument exceeding 2000 bytes causes a buffer overrun
10743 # during glob expansion). Even if it were fixed, the result of this
10744 # check would be larger than it should be.
10745 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10746 ;;
10747
10748 gnu*)
10749 # Under GNU Hurd, this test is not required because there is
10750 # no limit to the length of command line arguments.
10751 # Libtool will interpret -1 as no limit whatsoever
10752 lt_cv_sys_max_cmd_len=-1;
10753 ;;
10754
10755 cygwin* | mingw* | cegcc*)
10756 # On Win9x/ME, this test blows up -- it succeeds, but takes
10757 # about 5 minutes as the teststring grows exponentially.
10758 # Worse, since 9x/ME are not pre-emptively multitasking,
10759 # you end up with a "frozen" computer, even though with patience
10760 # the test eventually succeeds (with a max line length of 256k).
10761 # Instead, let's just punt: use the minimum linelength reported by
10762 # all of the supported platforms: 8192 (on NT/2K/XP).
10763 lt_cv_sys_max_cmd_len=8192;
10764 ;;
10765
cristy0c60a692010-11-04 01:09:47 +000010766 mint*)
10767 # On MiNT this can take a long time and run out of memory.
10768 lt_cv_sys_max_cmd_len=8192;
10769 ;;
10770
cristy73bd4a52010-10-05 11:24:23 +000010771 amigaos*)
10772 # On AmigaOS with pdksh, this test takes hours, literally.
10773 # So we just punt and use a minimum line length of 8192.
10774 lt_cv_sys_max_cmd_len=8192;
10775 ;;
10776
10777 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
10778 # This has been around since 386BSD, at least. Likely further.
10779 if test -x /sbin/sysctl; then
10780 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10781 elif test -x /usr/sbin/sysctl; then
10782 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10783 else
10784 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
10785 fi
10786 # And add a safety zone
10787 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10788 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10789 ;;
10790
10791 interix*)
10792 # We know the value 262144 and hardcode it with a safety zone (like BSD)
10793 lt_cv_sys_max_cmd_len=196608
10794 ;;
10795
cristy99bd5232011-12-07 14:38:20 +000010796 os2*)
10797 # The test takes a long time on OS/2.
10798 lt_cv_sys_max_cmd_len=8192
10799 ;;
10800
cristy73bd4a52010-10-05 11:24:23 +000010801 osf*)
10802 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
10803 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
10804 # nice to cause kernel panics so lets avoid the loop below.
10805 # First set a reasonable default.
10806 lt_cv_sys_max_cmd_len=16384
10807 #
10808 if test -x /sbin/sysconfig; then
10809 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
10810 *1*) lt_cv_sys_max_cmd_len=-1 ;;
10811 esac
10812 fi
10813 ;;
10814 sco3.2v5*)
10815 lt_cv_sys_max_cmd_len=102400
10816 ;;
10817 sysv5* | sco5v6* | sysv4.2uw2*)
10818 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
10819 if test -n "$kargmax"; then
10820 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
10821 else
10822 lt_cv_sys_max_cmd_len=32768
10823 fi
10824 ;;
10825 *)
10826 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
10827 if test -n "$lt_cv_sys_max_cmd_len"; then
10828 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10829 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10830 else
10831 # Make teststring a little bigger before we do anything with it.
10832 # a 1K string should be a reasonable start.
10833 for i in 1 2 3 4 5 6 7 8 ; do
10834 teststring=$teststring$teststring
10835 done
10836 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10837 # If test is not a shell built-in, we'll probably end up computing a
10838 # maximum length that is only half of the actual maximum length, but
10839 # we can't tell.
cristy99bd5232011-12-07 14:38:20 +000010840 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
cristy0c60a692010-11-04 01:09:47 +000010841 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +000010842 test $i != 17 # 1/2 MB should be enough
10843 do
10844 i=`expr $i + 1`
10845 teststring=$teststring$teststring
10846 done
10847 # Only check the string length outside the loop.
10848 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
10849 teststring=
10850 # Add a significant safety factor because C++ compilers can tack on
10851 # massive amounts of additional arguments before passing them to the
10852 # linker. It appears as though 1/2 is a usable value.
10853 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10854 fi
10855 ;;
10856 esac
10857
10858fi
10859
10860if test -n $lt_cv_sys_max_cmd_len ; then
10861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
10862$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
10863else
10864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
10865$as_echo "none" >&6; }
10866fi
10867max_cmd_len=$lt_cv_sys_max_cmd_len
10868
10869
10870
10871
10872
10873
10874: ${CP="cp -f"}
10875: ${MV="mv -f"}
10876: ${RM="rm -f"}
10877
10878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
10879$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
10880# Try some XSI features
10881xsi_shell=no
10882( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +000010883 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
10884 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +000010885 && eval 'test $(( 1 + 1 )) -eq 2 \
10886 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
10887 && xsi_shell=yes
10888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
10889$as_echo "$xsi_shell" >&6; }
10890
10891
10892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
10893$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
10894lt_shell_append=no
10895( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
10896 >/dev/null 2>&1 \
10897 && lt_shell_append=yes
10898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
10899$as_echo "$lt_shell_append" >&6; }
10900
10901
10902if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10903 lt_unset=unset
10904else
10905 lt_unset=false
10906fi
10907
10908
10909
10910
10911
10912# test EBCDIC or ASCII
10913case `echo X|tr X '\101'` in
10914 A) # ASCII based system
10915 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
10916 lt_SP2NL='tr \040 \012'
10917 lt_NL2SP='tr \015\012 \040\040'
10918 ;;
10919 *) # EBCDIC based system
10920 lt_SP2NL='tr \100 \n'
10921 lt_NL2SP='tr \r\n \100\100'
10922 ;;
10923esac
10924
10925
10926
10927
10928
10929
10930
10931
10932
cristyda16f162011-02-19 23:52:17 +000010933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
10934$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
10935if ${lt_cv_to_host_file_cmd+:} false; then :
10936 $as_echo_n "(cached) " >&6
10937else
10938 case $host in
10939 *-*-mingw* )
10940 case $build in
10941 *-*-mingw* ) # actually msys
10942 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
10943 ;;
10944 *-*-cygwin* )
10945 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
10946 ;;
10947 * ) # otherwise, assume *nix
10948 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
10949 ;;
10950 esac
10951 ;;
10952 *-*-cygwin* )
10953 case $build in
10954 *-*-mingw* ) # actually msys
10955 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
10956 ;;
10957 *-*-cygwin* )
10958 lt_cv_to_host_file_cmd=func_convert_file_noop
10959 ;;
10960 * ) # otherwise, assume *nix
10961 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
10962 ;;
10963 esac
10964 ;;
10965 * ) # unhandled hosts (and "normal" native builds)
10966 lt_cv_to_host_file_cmd=func_convert_file_noop
10967 ;;
10968esac
10969
10970fi
10971
10972to_host_file_cmd=$lt_cv_to_host_file_cmd
10973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
10974$as_echo "$lt_cv_to_host_file_cmd" >&6; }
10975
10976
10977
10978
10979
10980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
10981$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
10982if ${lt_cv_to_tool_file_cmd+:} false; then :
10983 $as_echo_n "(cached) " >&6
10984else
10985 #assume ordinary cross tools, or native build.
10986lt_cv_to_tool_file_cmd=func_convert_file_noop
10987case $host in
10988 *-*-mingw* )
10989 case $build in
10990 *-*-mingw* ) # actually msys
10991 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
10992 ;;
10993 esac
10994 ;;
10995esac
10996
10997fi
10998
10999to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11001$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11002
11003
11004
11005
11006
cristy73bd4a52010-10-05 11:24:23 +000011007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11008$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011009if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011010 $as_echo_n "(cached) " >&6
11011else
11012 lt_cv_ld_reload_flag='-r'
11013fi
11014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11015$as_echo "$lt_cv_ld_reload_flag" >&6; }
11016reload_flag=$lt_cv_ld_reload_flag
11017case $reload_flag in
11018"" | " "*) ;;
11019*) reload_flag=" $reload_flag" ;;
11020esac
11021reload_cmds='$LD$reload_flag -o $output$reload_objs'
11022case $host_os in
cristyda16f162011-02-19 23:52:17 +000011023 cygwin* | mingw* | pw32* | cegcc*)
11024 if test "$GCC" != yes; then
11025 reload_cmds=false
11026 fi
11027 ;;
cristy73bd4a52010-10-05 11:24:23 +000011028 darwin*)
11029 if test "$GCC" = yes; then
11030 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11031 else
11032 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11033 fi
11034 ;;
11035esac
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045if test -n "$ac_tool_prefix"; then
11046 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11047set dummy ${ac_tool_prefix}objdump; ac_word=$2
11048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11049$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011050if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011051 $as_echo_n "(cached) " >&6
11052else
11053 if test -n "$OBJDUMP"; then
11054 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11055else
11056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11057for as_dir in $PATH
11058do
11059 IFS=$as_save_IFS
11060 test -z "$as_dir" && as_dir=.
11061 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011063 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11065 break 2
11066 fi
11067done
11068 done
11069IFS=$as_save_IFS
11070
11071fi
11072fi
11073OBJDUMP=$ac_cv_prog_OBJDUMP
11074if test -n "$OBJDUMP"; then
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11076$as_echo "$OBJDUMP" >&6; }
11077else
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11079$as_echo "no" >&6; }
11080fi
11081
11082
11083fi
11084if test -z "$ac_cv_prog_OBJDUMP"; then
11085 ac_ct_OBJDUMP=$OBJDUMP
11086 # Extract the first word of "objdump", so it can be a program name with args.
11087set dummy objdump; ac_word=$2
11088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11089$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011090if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011091 $as_echo_n "(cached) " >&6
11092else
11093 if test -n "$ac_ct_OBJDUMP"; then
11094 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11095else
11096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11097for as_dir in $PATH
11098do
11099 IFS=$as_save_IFS
11100 test -z "$as_dir" && as_dir=.
11101 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011103 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11105 break 2
11106 fi
11107done
11108 done
11109IFS=$as_save_IFS
11110
11111fi
11112fi
11113ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11114if test -n "$ac_ct_OBJDUMP"; then
11115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11116$as_echo "$ac_ct_OBJDUMP" >&6; }
11117else
11118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11119$as_echo "no" >&6; }
11120fi
11121
11122 if test "x$ac_ct_OBJDUMP" = x; then
11123 OBJDUMP="false"
11124 else
11125 case $cross_compiling:$ac_tool_warned in
11126yes:)
11127{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11128$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11129ac_tool_warned=yes ;;
11130esac
11131 OBJDUMP=$ac_ct_OBJDUMP
11132 fi
11133else
11134 OBJDUMP="$ac_cv_prog_OBJDUMP"
11135fi
11136
11137test -z "$OBJDUMP" && OBJDUMP=objdump
11138
11139
11140
11141
11142
11143
11144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11145$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011146if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011147 $as_echo_n "(cached) " >&6
11148else
11149 lt_cv_file_magic_cmd='$MAGIC_CMD'
11150lt_cv_file_magic_test_file=
11151lt_cv_deplibs_check_method='unknown'
11152# Need to set the preceding variable on all platforms that support
11153# interlibrary dependencies.
11154# 'none' -- dependencies not supported.
11155# `unknown' -- same as none, but documents that we really don't know.
11156# 'pass_all' -- all dependencies passed with no checks.
11157# 'test_compile' -- check by making test program.
11158# 'file_magic [[regex]]' -- check by looking for files in library path
11159# which responds to the $file_magic_cmd with a given extended regex.
11160# If you have `file' or equivalent on your system and you're not sure
11161# whether `pass_all' will *always* work, you probably want this one.
11162
11163case $host_os in
11164aix[4-9]*)
11165 lt_cv_deplibs_check_method=pass_all
11166 ;;
11167
11168beos*)
11169 lt_cv_deplibs_check_method=pass_all
11170 ;;
11171
11172bsdi[45]*)
11173 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11174 lt_cv_file_magic_cmd='/usr/bin/file -L'
11175 lt_cv_file_magic_test_file=/shlib/libc.so
11176 ;;
11177
11178cygwin*)
11179 # func_win32_libid is a shell function defined in ltmain.sh
11180 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11181 lt_cv_file_magic_cmd='func_win32_libid'
11182 ;;
11183
11184mingw* | pw32*)
11185 # Base MSYS/MinGW do not provide the 'file' command needed by
11186 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11187 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000011188 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11189 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000011190 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11191 lt_cv_file_magic_cmd='func_win32_libid'
11192 else
cristy0c60a692010-11-04 01:09:47 +000011193 # Keep this pattern in sync with the one in func_win32_libid.
11194 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 +000011195 lt_cv_file_magic_cmd='$OBJDUMP -f'
11196 fi
11197 ;;
11198
cristy0c60a692010-11-04 01:09:47 +000011199cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000011200 # use the weaker test based on 'objdump'. See mingw*.
11201 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11202 lt_cv_file_magic_cmd='$OBJDUMP -f'
11203 ;;
11204
11205darwin* | rhapsody*)
11206 lt_cv_deplibs_check_method=pass_all
11207 ;;
11208
11209freebsd* | dragonfly*)
11210 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11211 case $host_cpu in
11212 i*86 )
11213 # Not sure whether the presence of OpenBSD here was a mistake.
11214 # Let's accept both of them until this is cleared up.
11215 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11216 lt_cv_file_magic_cmd=/usr/bin/file
11217 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11218 ;;
11219 esac
11220 else
11221 lt_cv_deplibs_check_method=pass_all
11222 fi
11223 ;;
11224
11225gnu*)
11226 lt_cv_deplibs_check_method=pass_all
11227 ;;
11228
cristy0c60a692010-11-04 01:09:47 +000011229haiku*)
11230 lt_cv_deplibs_check_method=pass_all
11231 ;;
11232
cristy73bd4a52010-10-05 11:24:23 +000011233hpux10.20* | hpux11*)
11234 lt_cv_file_magic_cmd=/usr/bin/file
11235 case $host_cpu in
11236 ia64*)
11237 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11238 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11239 ;;
11240 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000011241 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 +000011242 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11243 ;;
11244 *)
cristy0c60a692010-11-04 01:09:47 +000011245 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 +000011246 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11247 ;;
11248 esac
11249 ;;
11250
11251interix[3-9]*)
11252 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11253 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11254 ;;
11255
11256irix5* | irix6* | nonstopux*)
11257 case $LD in
11258 *-32|*"-32 ") libmagic=32-bit;;
11259 *-n32|*"-n32 ") libmagic=N32;;
11260 *-64|*"-64 ") libmagic=64-bit;;
11261 *) libmagic=never-match;;
11262 esac
11263 lt_cv_deplibs_check_method=pass_all
11264 ;;
11265
cristy99bd5232011-12-07 14:38:20 +000011266# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000011267linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000011268 lt_cv_deplibs_check_method=pass_all
11269 ;;
11270
11271netbsd*)
11272 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11273 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11274 else
11275 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11276 fi
11277 ;;
11278
11279newos6*)
11280 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11281 lt_cv_file_magic_cmd=/usr/bin/file
11282 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11283 ;;
11284
11285*nto* | *qnx*)
11286 lt_cv_deplibs_check_method=pass_all
11287 ;;
11288
11289openbsd*)
11290 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11291 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11292 else
11293 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11294 fi
11295 ;;
11296
11297osf3* | osf4* | osf5*)
11298 lt_cv_deplibs_check_method=pass_all
11299 ;;
11300
11301rdos*)
11302 lt_cv_deplibs_check_method=pass_all
11303 ;;
11304
11305solaris*)
11306 lt_cv_deplibs_check_method=pass_all
11307 ;;
11308
11309sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11310 lt_cv_deplibs_check_method=pass_all
11311 ;;
11312
11313sysv4 | sysv4.3*)
11314 case $host_vendor in
11315 motorola)
11316 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]'
11317 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11318 ;;
11319 ncr)
11320 lt_cv_deplibs_check_method=pass_all
11321 ;;
11322 sequent)
11323 lt_cv_file_magic_cmd='/bin/file'
11324 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11325 ;;
11326 sni)
11327 lt_cv_file_magic_cmd='/bin/file'
11328 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11329 lt_cv_file_magic_test_file=/lib/libc.so
11330 ;;
11331 siemens)
11332 lt_cv_deplibs_check_method=pass_all
11333 ;;
11334 pc)
11335 lt_cv_deplibs_check_method=pass_all
11336 ;;
11337 esac
11338 ;;
11339
11340tpf*)
11341 lt_cv_deplibs_check_method=pass_all
11342 ;;
11343esac
11344
11345fi
11346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11347$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000011348
11349file_magic_glob=
11350want_nocaseglob=no
11351if test "$build" = "$host"; then
11352 case $host_os in
11353 mingw* | pw32*)
11354 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11355 want_nocaseglob=yes
11356 else
11357 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11358 fi
11359 ;;
11360 esac
11361fi
11362
cristy73bd4a52010-10-05 11:24:23 +000011363file_magic_cmd=$lt_cv_file_magic_cmd
11364deplibs_check_method=$lt_cv_deplibs_check_method
11365test -z "$deplibs_check_method" && deplibs_check_method=unknown
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
cristyda16f162011-02-19 23:52:17 +000011378
11379
11380
11381
11382
11383
11384
11385
11386
11387
cristy73bd4a52010-10-05 11:24:23 +000011388if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000011389 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11390set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11392$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011393if ${ac_cv_prog_DLLTOOL+:} false; then :
11394 $as_echo_n "(cached) " >&6
11395else
11396 if test -n "$DLLTOOL"; then
11397 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11398else
11399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11400for as_dir in $PATH
11401do
11402 IFS=$as_save_IFS
11403 test -z "$as_dir" && as_dir=.
11404 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011406 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11408 break 2
11409 fi
11410done
11411 done
11412IFS=$as_save_IFS
11413
11414fi
11415fi
11416DLLTOOL=$ac_cv_prog_DLLTOOL
11417if test -n "$DLLTOOL"; then
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11419$as_echo "$DLLTOOL" >&6; }
11420else
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11422$as_echo "no" >&6; }
11423fi
11424
11425
11426fi
11427if test -z "$ac_cv_prog_DLLTOOL"; then
11428 ac_ct_DLLTOOL=$DLLTOOL
11429 # Extract the first word of "dlltool", so it can be a program name with args.
11430set dummy dlltool; ac_word=$2
11431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11432$as_echo_n "checking for $ac_word... " >&6; }
11433if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11434 $as_echo_n "(cached) " >&6
11435else
11436 if test -n "$ac_ct_DLLTOOL"; then
11437 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11438else
11439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11440for as_dir in $PATH
11441do
11442 IFS=$as_save_IFS
11443 test -z "$as_dir" && as_dir=.
11444 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011446 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11448 break 2
11449 fi
11450done
11451 done
11452IFS=$as_save_IFS
11453
11454fi
11455fi
11456ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11457if test -n "$ac_ct_DLLTOOL"; then
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11459$as_echo "$ac_ct_DLLTOOL" >&6; }
11460else
11461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11462$as_echo "no" >&6; }
11463fi
11464
11465 if test "x$ac_ct_DLLTOOL" = x; then
11466 DLLTOOL="false"
11467 else
11468 case $cross_compiling:$ac_tool_warned in
11469yes:)
11470{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11471$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11472ac_tool_warned=yes ;;
11473esac
11474 DLLTOOL=$ac_ct_DLLTOOL
11475 fi
11476else
11477 DLLTOOL="$ac_cv_prog_DLLTOOL"
11478fi
11479
11480test -z "$DLLTOOL" && DLLTOOL=dlltool
11481
11482
11483
11484
11485
11486
11487
11488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
11489$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
11490if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
11491 $as_echo_n "(cached) " >&6
11492else
11493 lt_cv_sharedlib_from_linklib_cmd='unknown'
11494
11495case $host_os in
11496cygwin* | mingw* | pw32* | cegcc*)
11497 # two different shell functions defined in ltmain.sh
11498 # decide which to use based on capabilities of $DLLTOOL
11499 case `$DLLTOOL --help 2>&1` in
11500 *--identify-strict*)
11501 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
11502 ;;
11503 *)
11504 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
11505 ;;
11506 esac
11507 ;;
11508*)
11509 # fallback: assume linklib IS sharedlib
11510 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
11511 ;;
11512esac
11513
11514fi
11515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
11516$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
11517sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
11518test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
11519
11520
11521
11522
11523
11524
11525
11526if test -n "$ac_tool_prefix"; then
11527 for ac_prog in ar
11528 do
11529 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11530set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11532$as_echo_n "checking for $ac_word... " >&6; }
11533if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011534 $as_echo_n "(cached) " >&6
11535else
11536 if test -n "$AR"; then
11537 ac_cv_prog_AR="$AR" # Let the user override the test.
11538else
11539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11540for as_dir in $PATH
11541do
11542 IFS=$as_save_IFS
11543 test -z "$as_dir" && as_dir=.
11544 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011546 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11548 break 2
11549 fi
11550done
11551 done
11552IFS=$as_save_IFS
11553
11554fi
11555fi
11556AR=$ac_cv_prog_AR
11557if test -n "$AR"; then
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11559$as_echo "$AR" >&6; }
11560else
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11562$as_echo "no" >&6; }
11563fi
11564
11565
cristyda16f162011-02-19 23:52:17 +000011566 test -n "$AR" && break
11567 done
cristy73bd4a52010-10-05 11:24:23 +000011568fi
cristyda16f162011-02-19 23:52:17 +000011569if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000011570 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000011571 for ac_prog in ar
11572do
11573 # Extract the first word of "$ac_prog", so it can be a program name with args.
11574set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11576$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011577if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011578 $as_echo_n "(cached) " >&6
11579else
11580 if test -n "$ac_ct_AR"; then
11581 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11582else
11583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11584for as_dir in $PATH
11585do
11586 IFS=$as_save_IFS
11587 test -z "$as_dir" && as_dir=.
11588 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011590 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11592 break 2
11593 fi
11594done
11595 done
11596IFS=$as_save_IFS
11597
11598fi
11599fi
11600ac_ct_AR=$ac_cv_prog_ac_ct_AR
11601if test -n "$ac_ct_AR"; then
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11603$as_echo "$ac_ct_AR" >&6; }
11604else
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11606$as_echo "no" >&6; }
11607fi
11608
cristyda16f162011-02-19 23:52:17 +000011609
11610 test -n "$ac_ct_AR" && break
11611done
11612
cristy73bd4a52010-10-05 11:24:23 +000011613 if test "x$ac_ct_AR" = x; then
11614 AR="false"
11615 else
11616 case $cross_compiling:$ac_tool_warned in
11617yes:)
11618{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11619$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11620ac_tool_warned=yes ;;
11621esac
11622 AR=$ac_ct_AR
11623 fi
cristy73bd4a52010-10-05 11:24:23 +000011624fi
11625
cristyda16f162011-02-19 23:52:17 +000011626: ${AR=ar}
11627: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000011628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
cristyda16f162011-02-19 23:52:17 +000011639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
11640$as_echo_n "checking for archiver @FILE support... " >&6; }
11641if ${lt_cv_ar_at_file+:} false; then :
11642 $as_echo_n "(cached) " >&6
11643else
11644 lt_cv_ar_at_file=no
11645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11646/* end confdefs.h. */
11647
11648int
11649main ()
11650{
11651
11652 ;
11653 return 0;
11654}
11655_ACEOF
11656if ac_fn_c_try_compile "$LINENO"; then :
11657 echo conftest.$ac_objext > conftest.lst
11658 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
11659 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11660 (eval $lt_ar_try) 2>&5
11661 ac_status=$?
11662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11663 test $ac_status = 0; }
11664 if test "$ac_status" -eq 0; then
11665 # Ensure the archiver fails upon bogus file names.
11666 rm -f conftest.$ac_objext libconftest.a
11667 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11668 (eval $lt_ar_try) 2>&5
11669 ac_status=$?
11670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11671 test $ac_status = 0; }
11672 if test "$ac_status" -ne 0; then
11673 lt_cv_ar_at_file=@
11674 fi
11675 fi
11676 rm -f conftest.* libconftest.a
11677
11678fi
11679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11680
11681fi
11682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
11683$as_echo "$lt_cv_ar_at_file" >&6; }
11684
11685if test "x$lt_cv_ar_at_file" = xno; then
11686 archiver_list_spec=
11687else
11688 archiver_list_spec=$lt_cv_ar_at_file
11689fi
11690
11691
11692
11693
11694
11695
11696
cristy73bd4a52010-10-05 11:24:23 +000011697if test -n "$ac_tool_prefix"; then
11698 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11699set dummy ${ac_tool_prefix}strip; ac_word=$2
11700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11701$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011702if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011703 $as_echo_n "(cached) " >&6
11704else
11705 if test -n "$STRIP"; then
11706 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11707else
11708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11709for as_dir in $PATH
11710do
11711 IFS=$as_save_IFS
11712 test -z "$as_dir" && as_dir=.
11713 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011715 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11717 break 2
11718 fi
11719done
11720 done
11721IFS=$as_save_IFS
11722
11723fi
11724fi
11725STRIP=$ac_cv_prog_STRIP
11726if test -n "$STRIP"; then
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11728$as_echo "$STRIP" >&6; }
11729else
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11731$as_echo "no" >&6; }
11732fi
11733
11734
11735fi
11736if test -z "$ac_cv_prog_STRIP"; then
11737 ac_ct_STRIP=$STRIP
11738 # Extract the first word of "strip", so it can be a program name with args.
11739set dummy strip; ac_word=$2
11740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11741$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011742if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011743 $as_echo_n "(cached) " >&6
11744else
11745 if test -n "$ac_ct_STRIP"; then
11746 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11747else
11748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11749for as_dir in $PATH
11750do
11751 IFS=$as_save_IFS
11752 test -z "$as_dir" && as_dir=.
11753 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011755 ac_cv_prog_ac_ct_STRIP="strip"
11756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11757 break 2
11758 fi
11759done
11760 done
11761IFS=$as_save_IFS
11762
11763fi
11764fi
11765ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11766if test -n "$ac_ct_STRIP"; then
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11768$as_echo "$ac_ct_STRIP" >&6; }
11769else
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11771$as_echo "no" >&6; }
11772fi
11773
11774 if test "x$ac_ct_STRIP" = x; then
11775 STRIP=":"
11776 else
11777 case $cross_compiling:$ac_tool_warned in
11778yes:)
11779{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11780$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11781ac_tool_warned=yes ;;
11782esac
11783 STRIP=$ac_ct_STRIP
11784 fi
11785else
11786 STRIP="$ac_cv_prog_STRIP"
11787fi
11788
11789test -z "$STRIP" && STRIP=:
11790
11791
11792
11793
11794
11795
11796if test -n "$ac_tool_prefix"; then
11797 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11798set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11800$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011801if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011802 $as_echo_n "(cached) " >&6
11803else
11804 if test -n "$RANLIB"; then
11805 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11806else
11807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11808for as_dir in $PATH
11809do
11810 IFS=$as_save_IFS
11811 test -z "$as_dir" && as_dir=.
11812 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011814 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11816 break 2
11817 fi
11818done
11819 done
11820IFS=$as_save_IFS
11821
11822fi
11823fi
11824RANLIB=$ac_cv_prog_RANLIB
11825if test -n "$RANLIB"; then
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11827$as_echo "$RANLIB" >&6; }
11828else
11829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11830$as_echo "no" >&6; }
11831fi
11832
11833
11834fi
11835if test -z "$ac_cv_prog_RANLIB"; then
11836 ac_ct_RANLIB=$RANLIB
11837 # Extract the first word of "ranlib", so it can be a program name with args.
11838set dummy ranlib; ac_word=$2
11839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11840$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011841if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011842 $as_echo_n "(cached) " >&6
11843else
11844 if test -n "$ac_ct_RANLIB"; then
11845 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11846else
11847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11848for as_dir in $PATH
11849do
11850 IFS=$as_save_IFS
11851 test -z "$as_dir" && as_dir=.
11852 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011854 ac_cv_prog_ac_ct_RANLIB="ranlib"
11855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11856 break 2
11857 fi
11858done
11859 done
11860IFS=$as_save_IFS
11861
11862fi
11863fi
11864ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11865if test -n "$ac_ct_RANLIB"; then
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11867$as_echo "$ac_ct_RANLIB" >&6; }
11868else
11869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11870$as_echo "no" >&6; }
11871fi
11872
11873 if test "x$ac_ct_RANLIB" = x; then
11874 RANLIB=":"
11875 else
11876 case $cross_compiling:$ac_tool_warned in
11877yes:)
11878{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11879$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11880ac_tool_warned=yes ;;
11881esac
11882 RANLIB=$ac_ct_RANLIB
11883 fi
11884else
11885 RANLIB="$ac_cv_prog_RANLIB"
11886fi
11887
11888test -z "$RANLIB" && RANLIB=:
11889
11890
11891
11892
11893
11894
11895# Determine commands to create old-style static archives.
11896old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
11897old_postinstall_cmds='chmod 644 $oldlib'
11898old_postuninstall_cmds=
11899
11900if test -n "$RANLIB"; then
11901 case $host_os in
11902 openbsd*)
cristy99bd5232011-12-07 14:38:20 +000011903 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011904 ;;
11905 *)
cristy99bd5232011-12-07 14:38:20 +000011906 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011907 ;;
11908 esac
cristy99bd5232011-12-07 14:38:20 +000011909 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011910fi
11911
cristy0c60a692010-11-04 01:09:47 +000011912case $host_os in
11913 darwin*)
11914 lock_old_archive_extraction=yes ;;
11915 *)
11916 lock_old_archive_extraction=no ;;
11917esac
11918
11919
11920
11921
11922
11923
cristy73bd4a52010-10-05 11:24:23 +000011924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957# If no C compiler was specified, use CC.
11958LTCC=${LTCC-"$CC"}
11959
11960# If no C compiler flags were specified, use CFLAGS.
11961LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11962
11963# Allow CC to be a program name with arguments.
11964compiler=$CC
11965
11966
11967# Check for command to grab the raw symbol name followed by C symbol from nm.
11968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
11969$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011970if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011971 $as_echo_n "(cached) " >&6
11972else
11973
11974# These are sane defaults that work on at least a few old systems.
11975# [They come from Ultrix. What could be older than Ultrix?!! ;)]
11976
11977# Character class describing NM global symbol codes.
11978symcode='[BCDEGRST]'
11979
11980# Regexp to match symbols that can be accessed directly from C.
11981sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11982
11983# Define system-specific variables.
11984case $host_os in
11985aix*)
11986 symcode='[BCDT]'
11987 ;;
11988cygwin* | mingw* | pw32* | cegcc*)
11989 symcode='[ABCDGISTW]'
11990 ;;
11991hpux*)
11992 if test "$host_cpu" = ia64; then
11993 symcode='[ABCDEGRST]'
11994 fi
11995 ;;
11996irix* | nonstopux*)
11997 symcode='[BCDEGRST]'
11998 ;;
11999osf*)
12000 symcode='[BCDEGQRST]'
12001 ;;
12002solaris*)
12003 symcode='[BDRT]'
12004 ;;
12005sco3.2v5*)
12006 symcode='[DT]'
12007 ;;
12008sysv4.2uw2*)
12009 symcode='[DT]'
12010 ;;
12011sysv5* | sco5v6* | unixware* | OpenUNIX*)
12012 symcode='[ABDT]'
12013 ;;
12014sysv4)
12015 symcode='[DFNSTU]'
12016 ;;
12017esac
12018
12019# If we're using GNU nm, then use its standard symbol codes.
12020case `$NM -V 2>&1` in
12021*GNU* | *'with BFD'*)
12022 symcode='[ABCDGIRSTW]' ;;
12023esac
12024
12025# Transform an extracted symbol line into a proper C declaration.
12026# Some systems (esp. on ia64) link data and code symbols differently,
12027# so use this general approach.
12028lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12029
12030# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000012031lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
12032lt_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 +000012033
12034# Handle CRLF in mingw tool chain
12035opt_cr=
12036case $build_os in
12037mingw*)
12038 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12039 ;;
12040esac
12041
12042# Try without a prefix underscore, then with it.
12043for ac_symprfx in "" "_"; do
12044
12045 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12046 symxfrm="\\1 $ac_symprfx\\2 \\2"
12047
12048 # Write the raw and C identifiers.
12049 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12050 # Fake it for dumpbin and say T for any non-static function
12051 # and D for any global variable.
12052 # Also find C++ and __fastcall symbols from MSVC++,
12053 # which start with @ or ?.
12054 lt_cv_sys_global_symbol_pipe="$AWK '"\
12055" {last_section=section; section=\$ 3};"\
cristy99bd5232011-12-07 14:38:20 +000012056" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
cristy73bd4a52010-10-05 11:24:23 +000012057" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12058" \$ 0!~/External *\|/{next};"\
12059" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12060" {if(hide[section]) next};"\
12061" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12062" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12063" s[1]~/^[@?]/{print s[1], s[1]; next};"\
12064" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12065" ' prfx=^$ac_symprfx"
12066 else
12067 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12068 fi
cristyda16f162011-02-19 23:52:17 +000012069 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000012070
12071 # Check to see that the pipe works correctly.
12072 pipe_works=no
12073
12074 rm -f conftest*
12075 cat > conftest.$ac_ext <<_LT_EOF
12076#ifdef __cplusplus
12077extern "C" {
12078#endif
12079char nm_test_var;
12080void nm_test_func(void);
12081void nm_test_func(void){}
12082#ifdef __cplusplus
12083}
12084#endif
12085int main(){nm_test_var='a';nm_test_func();return(0);}
12086_LT_EOF
12087
12088 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12089 (eval $ac_compile) 2>&5
12090 ac_status=$?
12091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12092 test $ac_status = 0; }; then
12093 # Now try to grab the symbols.
12094 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000012095 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12096 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000012097 ac_status=$?
12098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12099 test $ac_status = 0; } && test -s "$nlist"; then
12100 # Try sorting and uniquifying the output.
12101 if sort "$nlist" | uniq > "$nlist"T; then
12102 mv -f "$nlist"T "$nlist"
12103 else
12104 rm -f "$nlist"T
12105 fi
12106
12107 # Make sure that we snagged all the symbols we need.
12108 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12109 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12110 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000012111/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
12112#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12113/* DATA imports from DLLs on WIN32 con't be const, because runtime
12114 relocations are performed -- see ld's documentation on pseudo-relocs. */
12115# define LT_DLSYM_CONST
12116#elif defined(__osf__)
12117/* This system does not cope well with relocations in const data. */
12118# define LT_DLSYM_CONST
12119#else
12120# define LT_DLSYM_CONST const
12121#endif
12122
cristy73bd4a52010-10-05 11:24:23 +000012123#ifdef __cplusplus
12124extern "C" {
12125#endif
12126
12127_LT_EOF
12128 # Now generate the symbol file.
12129 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12130
12131 cat <<_LT_EOF >> conftest.$ac_ext
12132
12133/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000012134LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000012135 const char *name;
12136 void *address;
12137}
12138lt__PROGRAM__LTX_preloaded_symbols[] =
12139{
12140 { "@PROGRAM@", (void *) 0 },
12141_LT_EOF
12142 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12143 cat <<\_LT_EOF >> conftest.$ac_ext
12144 {0, (void *) 0}
12145};
12146
12147/* This works around a problem in FreeBSD linker */
12148#ifdef FREEBSD_WORKAROUND
12149static const void *lt_preloaded_setup() {
12150 return lt__PROGRAM__LTX_preloaded_symbols;
12151}
12152#endif
12153
12154#ifdef __cplusplus
12155}
12156#endif
12157_LT_EOF
12158 # Now try linking the two files.
12159 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000012160 lt_globsym_save_LIBS=$LIBS
12161 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012162 LIBS="conftstm.$ac_objext"
12163 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12164 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12165 (eval $ac_link) 2>&5
12166 ac_status=$?
12167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12168 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12169 pipe_works=yes
12170 fi
cristyda16f162011-02-19 23:52:17 +000012171 LIBS=$lt_globsym_save_LIBS
12172 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012173 else
12174 echo "cannot find nm_test_func in $nlist" >&5
12175 fi
12176 else
12177 echo "cannot find nm_test_var in $nlist" >&5
12178 fi
12179 else
12180 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12181 fi
12182 else
12183 echo "$progname: failed program was:" >&5
12184 cat conftest.$ac_ext >&5
12185 fi
12186 rm -rf conftest* conftst*
12187
12188 # Do not use the global_symbol_pipe unless it works.
12189 if test "$pipe_works" = yes; then
12190 break
12191 else
12192 lt_cv_sys_global_symbol_pipe=
12193 fi
12194done
12195
12196fi
12197
12198if test -z "$lt_cv_sys_global_symbol_pipe"; then
12199 lt_cv_sys_global_symbol_to_cdecl=
12200fi
12201if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12203$as_echo "failed" >&6; }
12204else
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12206$as_echo "ok" >&6; }
12207fi
12208
cristyda16f162011-02-19 23:52:17 +000012209# Response file support.
12210if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12211 nm_file_list_spec='@'
12212elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12213 nm_file_list_spec='@'
12214fi
cristy73bd4a52010-10-05 11:24:23 +000012215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235
cristyda16f162011-02-19 23:52:17 +000012236
12237
12238
12239
12240
12241
12242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12243$as_echo_n "checking for sysroot... " >&6; }
12244
12245# Check whether --with-sysroot was given.
12246if test "${with_sysroot+set}" = set; then :
12247 withval=$with_sysroot;
12248else
12249 with_sysroot=no
12250fi
12251
12252
12253lt_sysroot=
12254case ${with_sysroot} in #(
12255 yes)
12256 if test "$GCC" = yes; then
12257 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12258 fi
12259 ;; #(
12260 /*)
12261 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12262 ;; #(
12263 no|'')
12264 ;; #(
12265 *)
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12267$as_echo "${with_sysroot}" >&6; }
12268 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12269 ;;
12270esac
12271
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12273$as_echo "${lt_sysroot:-no}" >&6; }
12274
12275
12276
12277
12278
cristy73bd4a52010-10-05 11:24:23 +000012279# Check whether --enable-libtool-lock was given.
12280if test "${enable_libtool_lock+set}" = set; then :
12281 enableval=$enable_libtool_lock;
12282fi
12283
12284test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12285
12286# Some flags need to be propagated to the compiler or linker for good
12287# libtool support.
12288case $host in
12289ia64-*-hpux*)
12290 # Find out which ABI we are using.
12291 echo 'int i;' > conftest.$ac_ext
12292 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12293 (eval $ac_compile) 2>&5
12294 ac_status=$?
12295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12296 test $ac_status = 0; }; then
12297 case `/usr/bin/file conftest.$ac_objext` in
12298 *ELF-32*)
12299 HPUX_IA64_MODE="32"
12300 ;;
12301 *ELF-64*)
12302 HPUX_IA64_MODE="64"
12303 ;;
12304 esac
12305 fi
12306 rm -rf conftest*
12307 ;;
12308*-*-irix6*)
12309 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000012310 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000012311 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12312 (eval $ac_compile) 2>&5
12313 ac_status=$?
12314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12315 test $ac_status = 0; }; then
12316 if test "$lt_cv_prog_gnu_ld" = yes; then
12317 case `/usr/bin/file conftest.$ac_objext` in
12318 *32-bit*)
12319 LD="${LD-ld} -melf32bsmip"
12320 ;;
12321 *N32*)
12322 LD="${LD-ld} -melf32bmipn32"
12323 ;;
12324 *64-bit*)
12325 LD="${LD-ld} -melf64bmip"
12326 ;;
12327 esac
12328 else
12329 case `/usr/bin/file conftest.$ac_objext` in
12330 *32-bit*)
12331 LD="${LD-ld} -32"
12332 ;;
12333 *N32*)
12334 LD="${LD-ld} -n32"
12335 ;;
12336 *64-bit*)
12337 LD="${LD-ld} -64"
12338 ;;
12339 esac
12340 fi
12341 fi
12342 rm -rf conftest*
12343 ;;
12344
12345x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12346s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12347 # Find out which ABI we are using.
12348 echo 'int i;' > conftest.$ac_ext
12349 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12350 (eval $ac_compile) 2>&5
12351 ac_status=$?
12352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12353 test $ac_status = 0; }; then
12354 case `/usr/bin/file conftest.o` in
12355 *32-bit*)
12356 case $host in
12357 x86_64-*kfreebsd*-gnu)
12358 LD="${LD-ld} -m elf_i386_fbsd"
12359 ;;
12360 x86_64-*linux*)
12361 LD="${LD-ld} -m elf_i386"
12362 ;;
12363 ppc64-*linux*|powerpc64-*linux*)
12364 LD="${LD-ld} -m elf32ppclinux"
12365 ;;
12366 s390x-*linux*)
12367 LD="${LD-ld} -m elf_s390"
12368 ;;
12369 sparc64-*linux*)
12370 LD="${LD-ld} -m elf32_sparc"
12371 ;;
12372 esac
12373 ;;
12374 *64-bit*)
12375 case $host in
12376 x86_64-*kfreebsd*-gnu)
12377 LD="${LD-ld} -m elf_x86_64_fbsd"
12378 ;;
12379 x86_64-*linux*)
12380 LD="${LD-ld} -m elf_x86_64"
12381 ;;
12382 ppc*-*linux*|powerpc*-*linux*)
12383 LD="${LD-ld} -m elf64ppc"
12384 ;;
12385 s390*-*linux*|s390*-*tpf*)
12386 LD="${LD-ld} -m elf64_s390"
12387 ;;
12388 sparc*-*linux*)
12389 LD="${LD-ld} -m elf64_sparc"
12390 ;;
12391 esac
12392 ;;
12393 esac
12394 fi
12395 rm -rf conftest*
12396 ;;
12397
12398*-*-sco3.2v5*)
12399 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12400 SAVE_CFLAGS="$CFLAGS"
12401 CFLAGS="$CFLAGS -belf"
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12403$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012404if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012405 $as_echo_n "(cached) " >&6
12406else
12407 ac_ext=c
12408ac_cpp='$CPP $CPPFLAGS'
12409ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12410ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12411ac_compiler_gnu=$ac_cv_c_compiler_gnu
12412
12413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12414/* end confdefs.h. */
12415
12416int
12417main ()
12418{
12419
12420 ;
12421 return 0;
12422}
12423_ACEOF
12424if ac_fn_c_try_link "$LINENO"; then :
12425 lt_cv_cc_needs_belf=yes
12426else
12427 lt_cv_cc_needs_belf=no
12428fi
12429rm -f core conftest.err conftest.$ac_objext \
12430 conftest$ac_exeext conftest.$ac_ext
12431 ac_ext=c
12432ac_cpp='$CPP $CPPFLAGS'
12433ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12434ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12435ac_compiler_gnu=$ac_cv_c_compiler_gnu
12436
12437fi
12438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12439$as_echo "$lt_cv_cc_needs_belf" >&6; }
12440 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12441 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12442 CFLAGS="$SAVE_CFLAGS"
12443 fi
12444 ;;
cristy99bd5232011-12-07 14:38:20 +000012445*-*solaris*)
cristy73bd4a52010-10-05 11:24:23 +000012446 # Find out which ABI we are using.
12447 echo 'int i;' > conftest.$ac_ext
12448 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12449 (eval $ac_compile) 2>&5
12450 ac_status=$?
12451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12452 test $ac_status = 0; }; then
12453 case `/usr/bin/file conftest.o` in
12454 *64-bit*)
12455 case $lt_cv_prog_gnu_ld in
cristy99bd5232011-12-07 14:38:20 +000012456 yes*)
12457 case $host in
12458 i?86-*-solaris*)
12459 LD="${LD-ld} -m elf_x86_64"
12460 ;;
12461 sparc*-*-solaris*)
12462 LD="${LD-ld} -m elf64_sparc"
12463 ;;
12464 esac
12465 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
12466 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
12467 LD="${LD-ld}_sol2"
12468 fi
12469 ;;
cristy73bd4a52010-10-05 11:24:23 +000012470 *)
12471 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12472 LD="${LD-ld} -64"
12473 fi
12474 ;;
12475 esac
12476 ;;
12477 esac
12478 fi
12479 rm -rf conftest*
12480 ;;
12481esac
12482
12483need_locks="$enable_libtool_lock"
12484
cristyda16f162011-02-19 23:52:17 +000012485if test -n "$ac_tool_prefix"; then
12486 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
12487set dummy ${ac_tool_prefix}mt; ac_word=$2
12488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12489$as_echo_n "checking for $ac_word... " >&6; }
12490if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
12491 $as_echo_n "(cached) " >&6
12492else
12493 if test -n "$MANIFEST_TOOL"; then
12494 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
12495else
12496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12497for as_dir in $PATH
12498do
12499 IFS=$as_save_IFS
12500 test -z "$as_dir" && as_dir=.
12501 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012503 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
12504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12505 break 2
12506 fi
12507done
12508 done
12509IFS=$as_save_IFS
12510
12511fi
12512fi
12513MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
12514if test -n "$MANIFEST_TOOL"; then
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
12516$as_echo "$MANIFEST_TOOL" >&6; }
12517else
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12519$as_echo "no" >&6; }
12520fi
12521
12522
12523fi
12524if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
12525 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
12526 # Extract the first word of "mt", so it can be a program name with args.
12527set dummy mt; ac_word=$2
12528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12529$as_echo_n "checking for $ac_word... " >&6; }
12530if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
12531 $as_echo_n "(cached) " >&6
12532else
12533 if test -n "$ac_ct_MANIFEST_TOOL"; then
12534 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
12535else
12536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12537for as_dir in $PATH
12538do
12539 IFS=$as_save_IFS
12540 test -z "$as_dir" && as_dir=.
12541 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012543 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
12544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12545 break 2
12546 fi
12547done
12548 done
12549IFS=$as_save_IFS
12550
12551fi
12552fi
12553ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
12554if test -n "$ac_ct_MANIFEST_TOOL"; then
12555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
12556$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
12557else
12558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12559$as_echo "no" >&6; }
12560fi
12561
12562 if test "x$ac_ct_MANIFEST_TOOL" = x; then
12563 MANIFEST_TOOL=":"
12564 else
12565 case $cross_compiling:$ac_tool_warned in
12566yes:)
12567{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12568$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12569ac_tool_warned=yes ;;
12570esac
12571 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
12572 fi
12573else
12574 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
12575fi
12576
12577test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
12578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
12579$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
12580if ${lt_cv_path_mainfest_tool+:} false; then :
12581 $as_echo_n "(cached) " >&6
12582else
12583 lt_cv_path_mainfest_tool=no
12584 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
12585 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
12586 cat conftest.err >&5
12587 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
12588 lt_cv_path_mainfest_tool=yes
12589 fi
12590 rm -f conftest*
12591fi
12592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
12593$as_echo "$lt_cv_path_mainfest_tool" >&6; }
12594if test "x$lt_cv_path_mainfest_tool" != xyes; then
12595 MANIFEST_TOOL=:
12596fi
12597
12598
12599
12600
12601
cristy73bd4a52010-10-05 11:24:23 +000012602
12603 case $host_os in
12604 rhapsody* | darwin*)
12605 if test -n "$ac_tool_prefix"; then
12606 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
12607set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
12608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12609$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012610if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012611 $as_echo_n "(cached) " >&6
12612else
12613 if test -n "$DSYMUTIL"; then
12614 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12615else
12616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12617for as_dir in $PATH
12618do
12619 IFS=$as_save_IFS
12620 test -z "$as_dir" && as_dir=.
12621 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012623 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
12624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12625 break 2
12626 fi
12627done
12628 done
12629IFS=$as_save_IFS
12630
12631fi
12632fi
12633DSYMUTIL=$ac_cv_prog_DSYMUTIL
12634if test -n "$DSYMUTIL"; then
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
12636$as_echo "$DSYMUTIL" >&6; }
12637else
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12639$as_echo "no" >&6; }
12640fi
12641
12642
12643fi
12644if test -z "$ac_cv_prog_DSYMUTIL"; then
12645 ac_ct_DSYMUTIL=$DSYMUTIL
12646 # Extract the first word of "dsymutil", so it can be a program name with args.
12647set dummy dsymutil; ac_word=$2
12648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12649$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012650if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012651 $as_echo_n "(cached) " >&6
12652else
12653 if test -n "$ac_ct_DSYMUTIL"; then
12654 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
12655else
12656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12657for as_dir in $PATH
12658do
12659 IFS=$as_save_IFS
12660 test -z "$as_dir" && as_dir=.
12661 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012663 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
12664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12665 break 2
12666 fi
12667done
12668 done
12669IFS=$as_save_IFS
12670
12671fi
12672fi
12673ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
12674if test -n "$ac_ct_DSYMUTIL"; then
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
12676$as_echo "$ac_ct_DSYMUTIL" >&6; }
12677else
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12679$as_echo "no" >&6; }
12680fi
12681
12682 if test "x$ac_ct_DSYMUTIL" = x; then
12683 DSYMUTIL=":"
12684 else
12685 case $cross_compiling:$ac_tool_warned in
12686yes:)
12687{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12688$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12689ac_tool_warned=yes ;;
12690esac
12691 DSYMUTIL=$ac_ct_DSYMUTIL
12692 fi
12693else
12694 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
12695fi
12696
12697 if test -n "$ac_tool_prefix"; then
12698 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
12699set dummy ${ac_tool_prefix}nmedit; ac_word=$2
12700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12701$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012702if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012703 $as_echo_n "(cached) " >&6
12704else
12705 if test -n "$NMEDIT"; then
12706 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
12707else
12708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12709for as_dir in $PATH
12710do
12711 IFS=$as_save_IFS
12712 test -z "$as_dir" && as_dir=.
12713 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012715 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
12716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12717 break 2
12718 fi
12719done
12720 done
12721IFS=$as_save_IFS
12722
12723fi
12724fi
12725NMEDIT=$ac_cv_prog_NMEDIT
12726if test -n "$NMEDIT"; then
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
12728$as_echo "$NMEDIT" >&6; }
12729else
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12731$as_echo "no" >&6; }
12732fi
12733
12734
12735fi
12736if test -z "$ac_cv_prog_NMEDIT"; then
12737 ac_ct_NMEDIT=$NMEDIT
12738 # Extract the first word of "nmedit", so it can be a program name with args.
12739set dummy nmedit; ac_word=$2
12740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12741$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012742if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012743 $as_echo_n "(cached) " >&6
12744else
12745 if test -n "$ac_ct_NMEDIT"; then
12746 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
12747else
12748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12749for as_dir in $PATH
12750do
12751 IFS=$as_save_IFS
12752 test -z "$as_dir" && as_dir=.
12753 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012755 ac_cv_prog_ac_ct_NMEDIT="nmedit"
12756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12757 break 2
12758 fi
12759done
12760 done
12761IFS=$as_save_IFS
12762
12763fi
12764fi
12765ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
12766if test -n "$ac_ct_NMEDIT"; then
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
12768$as_echo "$ac_ct_NMEDIT" >&6; }
12769else
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12771$as_echo "no" >&6; }
12772fi
12773
12774 if test "x$ac_ct_NMEDIT" = x; then
12775 NMEDIT=":"
12776 else
12777 case $cross_compiling:$ac_tool_warned in
12778yes:)
12779{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12780$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12781ac_tool_warned=yes ;;
12782esac
12783 NMEDIT=$ac_ct_NMEDIT
12784 fi
12785else
12786 NMEDIT="$ac_cv_prog_NMEDIT"
12787fi
12788
12789 if test -n "$ac_tool_prefix"; then
12790 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
12791set dummy ${ac_tool_prefix}lipo; ac_word=$2
12792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12793$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012794if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012795 $as_echo_n "(cached) " >&6
12796else
12797 if test -n "$LIPO"; then
12798 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12799else
12800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12801for as_dir in $PATH
12802do
12803 IFS=$as_save_IFS
12804 test -z "$as_dir" && as_dir=.
12805 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012807 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
12808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12809 break 2
12810 fi
12811done
12812 done
12813IFS=$as_save_IFS
12814
12815fi
12816fi
12817LIPO=$ac_cv_prog_LIPO
12818if test -n "$LIPO"; then
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12820$as_echo "$LIPO" >&6; }
12821else
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12823$as_echo "no" >&6; }
12824fi
12825
12826
12827fi
12828if test -z "$ac_cv_prog_LIPO"; then
12829 ac_ct_LIPO=$LIPO
12830 # Extract the first word of "lipo", so it can be a program name with args.
12831set dummy lipo; ac_word=$2
12832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12833$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012834if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012835 $as_echo_n "(cached) " >&6
12836else
12837 if test -n "$ac_ct_LIPO"; then
12838 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
12839else
12840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12841for as_dir in $PATH
12842do
12843 IFS=$as_save_IFS
12844 test -z "$as_dir" && as_dir=.
12845 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012847 ac_cv_prog_ac_ct_LIPO="lipo"
12848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12849 break 2
12850 fi
12851done
12852 done
12853IFS=$as_save_IFS
12854
12855fi
12856fi
12857ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
12858if test -n "$ac_ct_LIPO"; then
12859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
12860$as_echo "$ac_ct_LIPO" >&6; }
12861else
12862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12863$as_echo "no" >&6; }
12864fi
12865
12866 if test "x$ac_ct_LIPO" = x; then
12867 LIPO=":"
12868 else
12869 case $cross_compiling:$ac_tool_warned in
12870yes:)
12871{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12872$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12873ac_tool_warned=yes ;;
12874esac
12875 LIPO=$ac_ct_LIPO
12876 fi
12877else
12878 LIPO="$ac_cv_prog_LIPO"
12879fi
12880
12881 if test -n "$ac_tool_prefix"; then
12882 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
12883set dummy ${ac_tool_prefix}otool; ac_word=$2
12884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12885$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012886if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012887 $as_echo_n "(cached) " >&6
12888else
12889 if test -n "$OTOOL"; then
12890 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12891else
12892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12893for as_dir in $PATH
12894do
12895 IFS=$as_save_IFS
12896 test -z "$as_dir" && as_dir=.
12897 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012899 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
12900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12901 break 2
12902 fi
12903done
12904 done
12905IFS=$as_save_IFS
12906
12907fi
12908fi
12909OTOOL=$ac_cv_prog_OTOOL
12910if test -n "$OTOOL"; then
12911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12912$as_echo "$OTOOL" >&6; }
12913else
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12915$as_echo "no" >&6; }
12916fi
12917
12918
12919fi
12920if test -z "$ac_cv_prog_OTOOL"; then
12921 ac_ct_OTOOL=$OTOOL
12922 # Extract the first word of "otool", so it can be a program name with args.
12923set dummy otool; ac_word=$2
12924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12925$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012926if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012927 $as_echo_n "(cached) " >&6
12928else
12929 if test -n "$ac_ct_OTOOL"; then
12930 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
12931else
12932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12933for as_dir in $PATH
12934do
12935 IFS=$as_save_IFS
12936 test -z "$as_dir" && as_dir=.
12937 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012939 ac_cv_prog_ac_ct_OTOOL="otool"
12940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12941 break 2
12942 fi
12943done
12944 done
12945IFS=$as_save_IFS
12946
12947fi
12948fi
12949ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
12950if test -n "$ac_ct_OTOOL"; then
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
12952$as_echo "$ac_ct_OTOOL" >&6; }
12953else
12954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12955$as_echo "no" >&6; }
12956fi
12957
12958 if test "x$ac_ct_OTOOL" = x; then
12959 OTOOL=":"
12960 else
12961 case $cross_compiling:$ac_tool_warned in
12962yes:)
12963{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12964$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12965ac_tool_warned=yes ;;
12966esac
12967 OTOOL=$ac_ct_OTOOL
12968 fi
12969else
12970 OTOOL="$ac_cv_prog_OTOOL"
12971fi
12972
12973 if test -n "$ac_tool_prefix"; then
12974 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
12975set dummy ${ac_tool_prefix}otool64; ac_word=$2
12976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12977$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012978if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012979 $as_echo_n "(cached) " >&6
12980else
12981 if test -n "$OTOOL64"; then
12982 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
12983else
12984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12985for as_dir in $PATH
12986do
12987 IFS=$as_save_IFS
12988 test -z "$as_dir" && as_dir=.
12989 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012991 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
12992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12993 break 2
12994 fi
12995done
12996 done
12997IFS=$as_save_IFS
12998
12999fi
13000fi
13001OTOOL64=$ac_cv_prog_OTOOL64
13002if test -n "$OTOOL64"; then
13003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13004$as_echo "$OTOOL64" >&6; }
13005else
13006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13007$as_echo "no" >&6; }
13008fi
13009
13010
13011fi
13012if test -z "$ac_cv_prog_OTOOL64"; then
13013 ac_ct_OTOOL64=$OTOOL64
13014 # Extract the first word of "otool64", so it can be a program name with args.
13015set dummy otool64; ac_word=$2
13016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13017$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013018if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013019 $as_echo_n "(cached) " >&6
13020else
13021 if test -n "$ac_ct_OTOOL64"; then
13022 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13023else
13024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13025for as_dir in $PATH
13026do
13027 IFS=$as_save_IFS
13028 test -z "$as_dir" && as_dir=.
13029 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013031 ac_cv_prog_ac_ct_OTOOL64="otool64"
13032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13033 break 2
13034 fi
13035done
13036 done
13037IFS=$as_save_IFS
13038
13039fi
13040fi
13041ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13042if test -n "$ac_ct_OTOOL64"; then
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13044$as_echo "$ac_ct_OTOOL64" >&6; }
13045else
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13047$as_echo "no" >&6; }
13048fi
13049
13050 if test "x$ac_ct_OTOOL64" = x; then
13051 OTOOL64=":"
13052 else
13053 case $cross_compiling:$ac_tool_warned in
13054yes:)
13055{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13056$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13057ac_tool_warned=yes ;;
13058esac
13059 OTOOL64=$ac_ct_OTOOL64
13060 fi
13061else
13062 OTOOL64="$ac_cv_prog_OTOOL64"
13063fi
13064
13065
13066
13067
13068
13069
13070
13071
13072
13073
13074
13075
13076
13077
13078
13079
13080
13081
13082
13083
13084
13085
13086
13087
13088
13089
13090
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13092$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013093if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013094 $as_echo_n "(cached) " >&6
13095else
13096 lt_cv_apple_cc_single_mod=no
13097 if test -z "${LT_MULTI_MODULE}"; then
13098 # By default we will add the -single_module flag. You can override
13099 # by either setting the environment variable LT_MULTI_MODULE
13100 # non-empty at configure time, or by adding -multi_module to the
13101 # link flags.
13102 rm -rf libconftest.dylib*
13103 echo "int foo(void){return 1;}" > conftest.c
13104 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13105-dynamiclib -Wl,-single_module conftest.c" >&5
13106 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13107 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13108 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013109 # If there is a non-empty error log, and "single_module"
13110 # appears in it, assume the flag caused a linker warning
13111 if test -s conftest.err && $GREP single_module conftest.err; then
13112 cat conftest.err >&5
13113 # Otherwise, if the output was created with a 0 exit code from
13114 # the compiler, it worked.
13115 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
cristy73bd4a52010-10-05 11:24:23 +000013116 lt_cv_apple_cc_single_mod=yes
13117 else
13118 cat conftest.err >&5
13119 fi
13120 rm -rf libconftest.dylib*
13121 rm -f conftest.*
13122 fi
13123fi
13124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13125$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013126
cristy73bd4a52010-10-05 11:24:23 +000013127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13128$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013129if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013130 $as_echo_n "(cached) " >&6
13131else
13132 lt_cv_ld_exported_symbols_list=no
13133 save_LDFLAGS=$LDFLAGS
13134 echo "_main" > conftest.sym
13135 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13137/* end confdefs.h. */
13138
13139int
13140main ()
13141{
13142
13143 ;
13144 return 0;
13145}
13146_ACEOF
13147if ac_fn_c_try_link "$LINENO"; then :
13148 lt_cv_ld_exported_symbols_list=yes
13149else
13150 lt_cv_ld_exported_symbols_list=no
13151fi
13152rm -f core conftest.err conftest.$ac_objext \
13153 conftest$ac_exeext conftest.$ac_ext
13154 LDFLAGS="$save_LDFLAGS"
13155
13156fi
13157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13158$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013159
cristy0c60a692010-11-04 01:09:47 +000013160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13161$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013162if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000013163 $as_echo_n "(cached) " >&6
13164else
13165 lt_cv_ld_force_load=no
13166 cat > conftest.c << _LT_EOF
13167int forced_loaded() { return 2;}
13168_LT_EOF
13169 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13170 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13171 echo "$AR cru libconftest.a conftest.o" >&5
13172 $AR cru libconftest.a conftest.o 2>&5
13173 echo "$RANLIB libconftest.a" >&5
13174 $RANLIB libconftest.a 2>&5
13175 cat > conftest.c << _LT_EOF
13176int main() { return 0;}
13177_LT_EOF
13178 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13179 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13180 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013181 if test -s conftest.err && $GREP force_load conftest.err; then
13182 cat conftest.err >&5
13183 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
cristy0c60a692010-11-04 01:09:47 +000013184 lt_cv_ld_force_load=yes
13185 else
13186 cat conftest.err >&5
13187 fi
13188 rm -f conftest.err libconftest.a conftest conftest.c
13189 rm -rf conftest.dSYM
13190
13191fi
13192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13193$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000013194 case $host_os in
13195 rhapsody* | darwin1.[012])
13196 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13197 darwin1.*)
13198 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13199 darwin*) # darwin 5.x on
13200 # if running on 10.5 or later, the deployment target defaults
13201 # to the OS version, if on x86, and 10.4, the deployment
13202 # target defaults to 10.4. Don't you love it?
13203 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13204 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13205 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13206 10.[012]*)
13207 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13208 10.*)
13209 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13210 esac
13211 ;;
13212 esac
13213 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13214 _lt_dar_single_mod='$single_module'
13215 fi
13216 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13217 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13218 else
13219 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13220 fi
cristy0c60a692010-11-04 01:09:47 +000013221 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000013222 _lt_dsymutil='~$DSYMUTIL $lib || :'
13223 else
13224 _lt_dsymutil=
13225 fi
13226 ;;
13227 esac
13228
13229for ac_header in dlfcn.h
13230do :
13231 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13232"
cristyda16f162011-02-19 23:52:17 +000013233if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000013234 cat >>confdefs.h <<_ACEOF
13235#define HAVE_DLFCN_H 1
13236_ACEOF
13237
13238fi
13239
13240done
13241
13242
13243
cristy73bd4a52010-10-05 11:24:23 +000013244
cristyda16f162011-02-19 23:52:17 +000013245func_stripname_cnf ()
13246{
13247 case ${2} in
13248 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13249 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13250 esac
13251} # func_stripname_cnf
13252
13253
13254
cristy73bd4a52010-10-05 11:24:23 +000013255
13256
13257# Set options
13258enable_win32_dll=yes
13259
13260case $host in
cristy0c60a692010-11-04 01:09:47 +000013261*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000013262 if test -n "$ac_tool_prefix"; then
13263 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
13264set dummy ${ac_tool_prefix}as; ac_word=$2
13265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13266$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013267if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013268 $as_echo_n "(cached) " >&6
13269else
13270 if test -n "$AS"; then
13271 ac_cv_prog_AS="$AS" # Let the user override the test.
13272else
13273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13274for as_dir in $PATH
13275do
13276 IFS=$as_save_IFS
13277 test -z "$as_dir" && as_dir=.
13278 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013280 ac_cv_prog_AS="${ac_tool_prefix}as"
13281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13282 break 2
13283 fi
13284done
13285 done
13286IFS=$as_save_IFS
13287
13288fi
13289fi
13290AS=$ac_cv_prog_AS
13291if test -n "$AS"; then
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
13293$as_echo "$AS" >&6; }
13294else
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13296$as_echo "no" >&6; }
13297fi
13298
13299
13300fi
13301if test -z "$ac_cv_prog_AS"; then
13302 ac_ct_AS=$AS
13303 # Extract the first word of "as", so it can be a program name with args.
13304set dummy as; ac_word=$2
13305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13306$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013307if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013308 $as_echo_n "(cached) " >&6
13309else
13310 if test -n "$ac_ct_AS"; then
13311 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
13312else
13313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13314for as_dir in $PATH
13315do
13316 IFS=$as_save_IFS
13317 test -z "$as_dir" && as_dir=.
13318 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013320 ac_cv_prog_ac_ct_AS="as"
13321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13322 break 2
13323 fi
13324done
13325 done
13326IFS=$as_save_IFS
13327
13328fi
13329fi
13330ac_ct_AS=$ac_cv_prog_ac_ct_AS
13331if test -n "$ac_ct_AS"; then
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
13333$as_echo "$ac_ct_AS" >&6; }
13334else
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13336$as_echo "no" >&6; }
13337fi
13338
13339 if test "x$ac_ct_AS" = x; then
13340 AS="false"
13341 else
13342 case $cross_compiling:$ac_tool_warned in
13343yes:)
13344{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13345$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13346ac_tool_warned=yes ;;
13347esac
13348 AS=$ac_ct_AS
13349 fi
13350else
13351 AS="$ac_cv_prog_AS"
13352fi
13353
13354 if test -n "$ac_tool_prefix"; then
13355 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13356set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13358$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013359if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013360 $as_echo_n "(cached) " >&6
13361else
13362 if test -n "$DLLTOOL"; then
13363 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13364else
13365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13366for as_dir in $PATH
13367do
13368 IFS=$as_save_IFS
13369 test -z "$as_dir" && as_dir=.
13370 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013372 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13374 break 2
13375 fi
13376done
13377 done
13378IFS=$as_save_IFS
13379
13380fi
13381fi
13382DLLTOOL=$ac_cv_prog_DLLTOOL
13383if test -n "$DLLTOOL"; then
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
13385$as_echo "$DLLTOOL" >&6; }
13386else
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13388$as_echo "no" >&6; }
13389fi
13390
13391
13392fi
13393if test -z "$ac_cv_prog_DLLTOOL"; then
13394 ac_ct_DLLTOOL=$DLLTOOL
13395 # Extract the first word of "dlltool", so it can be a program name with args.
13396set dummy dlltool; ac_word=$2
13397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13398$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013399if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013400 $as_echo_n "(cached) " >&6
13401else
13402 if test -n "$ac_ct_DLLTOOL"; then
13403 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13404else
13405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13406for as_dir in $PATH
13407do
13408 IFS=$as_save_IFS
13409 test -z "$as_dir" && as_dir=.
13410 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013412 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13414 break 2
13415 fi
13416done
13417 done
13418IFS=$as_save_IFS
13419
13420fi
13421fi
13422ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13423if test -n "$ac_ct_DLLTOOL"; then
13424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
13425$as_echo "$ac_ct_DLLTOOL" >&6; }
13426else
13427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13428$as_echo "no" >&6; }
13429fi
13430
13431 if test "x$ac_ct_DLLTOOL" = x; then
13432 DLLTOOL="false"
13433 else
13434 case $cross_compiling:$ac_tool_warned in
13435yes:)
13436{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13437$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13438ac_tool_warned=yes ;;
13439esac
13440 DLLTOOL=$ac_ct_DLLTOOL
13441 fi
13442else
13443 DLLTOOL="$ac_cv_prog_DLLTOOL"
13444fi
13445
13446 if test -n "$ac_tool_prefix"; then
13447 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13448set dummy ${ac_tool_prefix}objdump; ac_word=$2
13449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13450$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013451if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013452 $as_echo_n "(cached) " >&6
13453else
13454 if test -n "$OBJDUMP"; then
13455 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13456else
13457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13458for as_dir in $PATH
13459do
13460 IFS=$as_save_IFS
13461 test -z "$as_dir" && as_dir=.
13462 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013464 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13466 break 2
13467 fi
13468done
13469 done
13470IFS=$as_save_IFS
13471
13472fi
13473fi
13474OBJDUMP=$ac_cv_prog_OBJDUMP
13475if test -n "$OBJDUMP"; then
13476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13477$as_echo "$OBJDUMP" >&6; }
13478else
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13480$as_echo "no" >&6; }
13481fi
13482
13483
13484fi
13485if test -z "$ac_cv_prog_OBJDUMP"; then
13486 ac_ct_OBJDUMP=$OBJDUMP
13487 # Extract the first word of "objdump", so it can be a program name with args.
13488set dummy objdump; ac_word=$2
13489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13490$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013491if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013492 $as_echo_n "(cached) " >&6
13493else
13494 if test -n "$ac_ct_OBJDUMP"; then
13495 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13496else
13497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13498for as_dir in $PATH
13499do
13500 IFS=$as_save_IFS
13501 test -z "$as_dir" && as_dir=.
13502 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013504 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13506 break 2
13507 fi
13508done
13509 done
13510IFS=$as_save_IFS
13511
13512fi
13513fi
13514ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13515if test -n "$ac_ct_OBJDUMP"; then
13516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13517$as_echo "$ac_ct_OBJDUMP" >&6; }
13518else
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13520$as_echo "no" >&6; }
13521fi
13522
13523 if test "x$ac_ct_OBJDUMP" = x; then
13524 OBJDUMP="false"
13525 else
13526 case $cross_compiling:$ac_tool_warned in
13527yes:)
13528{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13529$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13530ac_tool_warned=yes ;;
13531esac
13532 OBJDUMP=$ac_ct_OBJDUMP
13533 fi
13534else
13535 OBJDUMP="$ac_cv_prog_OBJDUMP"
13536fi
13537
13538 ;;
13539esac
13540
13541test -z "$AS" && AS=as
13542
13543
13544
13545
13546
13547test -z "$DLLTOOL" && DLLTOOL=dlltool
13548
13549
13550
13551
13552
13553test -z "$OBJDUMP" && OBJDUMP=objdump
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563 # Check whether --enable-shared was given.
13564if test "${enable_shared+set}" = set; then :
13565 enableval=$enable_shared; p=${PACKAGE-default}
13566 case $enableval in
13567 yes) enable_shared=yes ;;
13568 no) enable_shared=no ;;
13569 *)
13570 enable_shared=no
13571 # Look at the argument we got. We use all the common list separators.
13572 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13573 for pkg in $enableval; do
13574 IFS="$lt_save_ifs"
13575 if test "X$pkg" = "X$p"; then
13576 enable_shared=yes
13577 fi
13578 done
13579 IFS="$lt_save_ifs"
13580 ;;
13581 esac
13582else
13583 enable_shared=yes
13584fi
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594 # Check whether --enable-static was given.
13595if test "${enable_static+set}" = set; then :
13596 enableval=$enable_static; p=${PACKAGE-default}
13597 case $enableval in
13598 yes) enable_static=yes ;;
13599 no) enable_static=no ;;
13600 *)
13601 enable_static=no
13602 # Look at the argument we got. We use all the common list separators.
13603 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13604 for pkg in $enableval; do
13605 IFS="$lt_save_ifs"
13606 if test "X$pkg" = "X$p"; then
13607 enable_static=yes
13608 fi
13609 done
13610 IFS="$lt_save_ifs"
13611 ;;
13612 esac
13613else
13614 enable_static=yes
13615fi
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626# Check whether --with-pic was given.
13627if test "${with_pic+set}" = set; then :
cristy99bd5232011-12-07 14:38:20 +000013628 withval=$with_pic; lt_p=${PACKAGE-default}
13629 case $withval in
13630 yes|no) pic_mode=$withval ;;
13631 *)
13632 pic_mode=default
13633 # Look at the argument we got. We use all the common list separators.
13634 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13635 for lt_pkg in $withval; do
13636 IFS="$lt_save_ifs"
13637 if test "X$lt_pkg" = "X$lt_p"; then
13638 pic_mode=yes
13639 fi
13640 done
13641 IFS="$lt_save_ifs"
13642 ;;
13643 esac
cristy73bd4a52010-10-05 11:24:23 +000013644else
13645 pic_mode=default
13646fi
13647
13648
13649test -z "$pic_mode" && pic_mode=default
13650
13651
13652
13653
13654
13655
13656
13657 # Check whether --enable-fast-install was given.
13658if test "${enable_fast_install+set}" = set; then :
13659 enableval=$enable_fast_install; p=${PACKAGE-default}
13660 case $enableval in
13661 yes) enable_fast_install=yes ;;
13662 no) enable_fast_install=no ;;
13663 *)
13664 enable_fast_install=no
13665 # Look at the argument we got. We use all the common list separators.
13666 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13667 for pkg in $enableval; do
13668 IFS="$lt_save_ifs"
13669 if test "X$pkg" = "X$p"; then
13670 enable_fast_install=yes
13671 fi
13672 done
13673 IFS="$lt_save_ifs"
13674 ;;
13675 esac
13676else
13677 enable_fast_install=yes
13678fi
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690# This can be used to rebuild libtool when needed
13691LIBTOOL_DEPS="$ltmain"
13692
13693# Always use our own libtool.
13694LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13695
13696
13697
13698
13699
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716
13717
13718
13719
cristy0c60a692010-11-04 01:09:47 +000013720
cristy99bd5232011-12-07 14:38:20 +000013721
13722
13723
13724
cristy73bd4a52010-10-05 11:24:23 +000013725test -z "$LN_S" && LN_S="ln -s"
13726
13727
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738
13739
13740if test -n "${ZSH_VERSION+set}" ; then
13741 setopt NO_GLOB_SUBST
13742fi
13743
13744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13745$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013746if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013747 $as_echo_n "(cached) " >&6
13748else
13749 rm -f .libs 2>/dev/null
13750mkdir .libs 2>/dev/null
13751if test -d .libs; then
13752 lt_cv_objdir=.libs
13753else
13754 # MS-DOS does not allow filenames that begin with a dot.
13755 lt_cv_objdir=_libs
13756fi
13757rmdir .libs 2>/dev/null
13758fi
13759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13760$as_echo "$lt_cv_objdir" >&6; }
13761objdir=$lt_cv_objdir
13762
13763
13764
13765
13766
13767cat >>confdefs.h <<_ACEOF
13768#define LT_OBJDIR "$lt_cv_objdir/"
13769_ACEOF
13770
13771
13772
13773
cristy73bd4a52010-10-05 11:24:23 +000013774case $host_os in
13775aix3*)
13776 # AIX sometimes has problems with the GCC collect2 program. For some
13777 # reason, if we set the COLLECT_NAMES environment variable, the problems
13778 # vanish in a puff of smoke.
13779 if test "X${COLLECT_NAMES+set}" != Xset; then
13780 COLLECT_NAMES=
13781 export COLLECT_NAMES
13782 fi
13783 ;;
13784esac
13785
cristy73bd4a52010-10-05 11:24:23 +000013786# Global variables:
13787ofile=libtool
13788can_build_shared=yes
13789
13790# All known linkers require a `.a' archive for static linking (except MSVC,
13791# which needs '.lib').
13792libext=a
13793
13794with_gnu_ld="$lt_cv_prog_gnu_ld"
13795
13796old_CC="$CC"
13797old_CFLAGS="$CFLAGS"
13798
13799# Set sane defaults for various variables
13800test -z "$CC" && CC=cc
13801test -z "$LTCC" && LTCC=$CC
13802test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13803test -z "$LD" && LD=ld
13804test -z "$ac_objext" && ac_objext=o
13805
13806for cc_temp in $compiler""; do
13807 case $cc_temp in
13808 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13809 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13810 \-*) ;;
13811 *) break;;
13812 esac
13813done
cristy0c60a692010-11-04 01:09:47 +000013814cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000013815
13816
13817# Only perform the check for file, if the check method requires it
13818test -z "$MAGIC_CMD" && MAGIC_CMD=file
13819case $deplibs_check_method in
13820file_magic*)
13821 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13823$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013824if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013825 $as_echo_n "(cached) " >&6
13826else
13827 case $MAGIC_CMD in
13828[\\/*] | ?:[\\/]*)
13829 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13830 ;;
13831*)
13832 lt_save_MAGIC_CMD="$MAGIC_CMD"
13833 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13834 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13835 for ac_dir in $ac_dummy; do
13836 IFS="$lt_save_ifs"
13837 test -z "$ac_dir" && ac_dir=.
13838 if test -f $ac_dir/${ac_tool_prefix}file; then
13839 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13840 if test -n "$file_magic_test_file"; then
13841 case $deplibs_check_method in
13842 "file_magic "*)
13843 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13844 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13845 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13846 $EGREP "$file_magic_regex" > /dev/null; then
13847 :
13848 else
13849 cat <<_LT_EOF 1>&2
13850
13851*** Warning: the command libtool uses to detect shared libraries,
13852*** $file_magic_cmd, produces output that libtool cannot recognize.
13853*** The result is that libtool may fail to recognize shared libraries
13854*** as such. This will affect the creation of libtool libraries that
13855*** depend on shared libraries, but programs linked with such libtool
13856*** libraries will work regardless of this problem. Nevertheless, you
13857*** may want to report the problem to your system manager and/or to
13858*** bug-libtool@gnu.org
13859
13860_LT_EOF
13861 fi ;;
13862 esac
13863 fi
13864 break
13865 fi
13866 done
13867 IFS="$lt_save_ifs"
13868 MAGIC_CMD="$lt_save_MAGIC_CMD"
13869 ;;
13870esac
13871fi
13872
13873MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13874if test -n "$MAGIC_CMD"; then
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13876$as_echo "$MAGIC_CMD" >&6; }
13877else
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13879$as_echo "no" >&6; }
13880fi
13881
13882
13883
13884
13885
13886if test -z "$lt_cv_path_MAGIC_CMD"; then
13887 if test -n "$ac_tool_prefix"; then
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13889$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013890if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013891 $as_echo_n "(cached) " >&6
13892else
13893 case $MAGIC_CMD in
13894[\\/*] | ?:[\\/]*)
13895 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13896 ;;
13897*)
13898 lt_save_MAGIC_CMD="$MAGIC_CMD"
13899 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13900 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13901 for ac_dir in $ac_dummy; do
13902 IFS="$lt_save_ifs"
13903 test -z "$ac_dir" && ac_dir=.
13904 if test -f $ac_dir/file; then
13905 lt_cv_path_MAGIC_CMD="$ac_dir/file"
13906 if test -n "$file_magic_test_file"; then
13907 case $deplibs_check_method in
13908 "file_magic "*)
13909 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13910 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13911 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13912 $EGREP "$file_magic_regex" > /dev/null; then
13913 :
13914 else
13915 cat <<_LT_EOF 1>&2
13916
13917*** Warning: the command libtool uses to detect shared libraries,
13918*** $file_magic_cmd, produces output that libtool cannot recognize.
13919*** The result is that libtool may fail to recognize shared libraries
13920*** as such. This will affect the creation of libtool libraries that
13921*** depend on shared libraries, but programs linked with such libtool
13922*** libraries will work regardless of this problem. Nevertheless, you
13923*** may want to report the problem to your system manager and/or to
13924*** bug-libtool@gnu.org
13925
13926_LT_EOF
13927 fi ;;
13928 esac
13929 fi
13930 break
13931 fi
13932 done
13933 IFS="$lt_save_ifs"
13934 MAGIC_CMD="$lt_save_MAGIC_CMD"
13935 ;;
13936esac
13937fi
13938
13939MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13940if test -n "$MAGIC_CMD"; then
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13942$as_echo "$MAGIC_CMD" >&6; }
13943else
13944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13945$as_echo "no" >&6; }
13946fi
13947
13948
13949 else
13950 MAGIC_CMD=:
13951 fi
13952fi
13953
13954 fi
13955 ;;
13956esac
13957
13958# Use C for the default configuration in the libtool script
13959
13960lt_save_CC="$CC"
13961ac_ext=c
13962ac_cpp='$CPP $CPPFLAGS'
13963ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13964ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13965ac_compiler_gnu=$ac_cv_c_compiler_gnu
13966
13967
13968# Source file extension for C test sources.
13969ac_ext=c
13970
13971# Object file extension for compiled C test sources.
13972objext=o
13973objext=$objext
13974
13975# Code to be used in simple compile tests
13976lt_simple_compile_test_code="int some_variable = 0;"
13977
13978# Code to be used in simple link tests
13979lt_simple_link_test_code='int main(){return(0);}'
13980
13981
13982
13983
13984
13985
13986
13987# If no C compiler was specified, use CC.
13988LTCC=${LTCC-"$CC"}
13989
13990# If no C compiler flags were specified, use CFLAGS.
13991LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13992
13993# Allow CC to be a program name with arguments.
13994compiler=$CC
13995
13996# Save the default compiler, since it gets overwritten when the other
13997# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
13998compiler_DEFAULT=$CC
13999
14000# save warnings/boilerplate of simple test code
14001ac_outfile=conftest.$ac_objext
14002echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14003eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14004_lt_compiler_boilerplate=`cat conftest.err`
14005$RM conftest*
14006
14007ac_outfile=conftest.$ac_objext
14008echo "$lt_simple_link_test_code" >conftest.$ac_ext
14009eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14010_lt_linker_boilerplate=`cat conftest.err`
14011$RM -r conftest*
14012
14013
14014## CAVEAT EMPTOR:
14015## There is no encapsulation within the following macros, do not change
14016## the running order or otherwise move them around unless you know exactly
14017## what you are doing...
14018if test -n "$compiler"; then
14019
14020lt_prog_compiler_no_builtin_flag=
14021
14022if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000014023 case $cc_basename in
14024 nvcc*)
14025 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14026 *)
14027 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14028 esac
cristy73bd4a52010-10-05 11:24:23 +000014029
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14031$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014032if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014033 $as_echo_n "(cached) " >&6
14034else
14035 lt_cv_prog_compiler_rtti_exceptions=no
14036 ac_outfile=conftest.$ac_objext
14037 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14038 lt_compiler_flag="-fno-rtti -fno-exceptions"
14039 # Insert the option either (1) after the last *FLAGS variable, or
14040 # (2) before a word containing "conftest.", or (3) at the end.
14041 # Note that $ac_compile itself does not contain backslashes and begins
14042 # with a dollar sign (not a hyphen), so the echo should work correctly.
14043 # The option is referenced via a variable to avoid confusing sed.
14044 lt_compile=`echo "$ac_compile" | $SED \
14045 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14046 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14047 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014048 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014049 (eval "$lt_compile" 2>conftest.err)
14050 ac_status=$?
14051 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014053 if (exit $ac_status) && test -s "$ac_outfile"; then
14054 # The compiler can only warn and ignore the option if not recognized
14055 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014056 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014057 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14058 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14059 lt_cv_prog_compiler_rtti_exceptions=yes
14060 fi
14061 fi
14062 $RM conftest*
14063
14064fi
14065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14066$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14067
14068if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14069 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14070else
14071 :
14072fi
14073
14074fi
14075
14076
14077
14078
14079
14080
14081 lt_prog_compiler_wl=
14082lt_prog_compiler_pic=
14083lt_prog_compiler_static=
14084
cristy73bd4a52010-10-05 11:24:23 +000014085
14086 if test "$GCC" = yes; then
14087 lt_prog_compiler_wl='-Wl,'
14088 lt_prog_compiler_static='-static'
14089
14090 case $host_os in
14091 aix*)
14092 # All AIX code is PIC.
14093 if test "$host_cpu" = ia64; then
14094 # AIX 5 now supports IA64 processor
14095 lt_prog_compiler_static='-Bstatic'
14096 fi
14097 ;;
14098
14099 amigaos*)
14100 case $host_cpu in
14101 powerpc)
14102 # see comment about AmigaOS4 .so support
14103 lt_prog_compiler_pic='-fPIC'
14104 ;;
14105 m68k)
14106 # FIXME: we need at least 68020 code to build shared libraries, but
14107 # adding the `-m68020' flag to GCC prevents building anything better,
14108 # like `-m68040'.
14109 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14110 ;;
14111 esac
14112 ;;
14113
14114 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14115 # PIC is the default for these OSes.
14116 ;;
14117
14118 mingw* | cygwin* | pw32* | os2* | cegcc*)
14119 # This hack is so that the source file can tell whether it is being
14120 # built for inclusion in a dll (and should export symbols for example).
14121 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14122 # (--disable-auto-import) libraries
14123 lt_prog_compiler_pic='-DDLL_EXPORT'
14124 ;;
14125
14126 darwin* | rhapsody*)
14127 # PIC is the default on this platform
14128 # Common symbols not allowed in MH_DYLIB files
14129 lt_prog_compiler_pic='-fno-common'
14130 ;;
14131
cristy0c60a692010-11-04 01:09:47 +000014132 haiku*)
14133 # PIC is the default for Haiku.
14134 # The "-static" flag exists, but is broken.
14135 lt_prog_compiler_static=
14136 ;;
14137
cristy73bd4a52010-10-05 11:24:23 +000014138 hpux*)
14139 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14140 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14141 # sets the default TLS model and affects inlining.
14142 case $host_cpu in
14143 hppa*64*)
14144 # +Z the default
14145 ;;
14146 *)
14147 lt_prog_compiler_pic='-fPIC'
14148 ;;
14149 esac
14150 ;;
14151
14152 interix[3-9]*)
14153 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14154 # Instead, we relocate shared libraries at runtime.
14155 ;;
14156
14157 msdosdjgpp*)
14158 # Just because we use GCC doesn't mean we suddenly get shared libraries
14159 # on systems that don't support them.
14160 lt_prog_compiler_can_build_shared=no
14161 enable_shared=no
14162 ;;
14163
14164 *nto* | *qnx*)
14165 # QNX uses GNU C++, but need to define -shared option too, otherwise
14166 # it will coredump.
14167 lt_prog_compiler_pic='-fPIC -shared'
14168 ;;
14169
14170 sysv4*MP*)
14171 if test -d /usr/nec; then
14172 lt_prog_compiler_pic=-Kconform_pic
14173 fi
14174 ;;
14175
14176 *)
14177 lt_prog_compiler_pic='-fPIC'
14178 ;;
14179 esac
cristy0c60a692010-11-04 01:09:47 +000014180
14181 case $cc_basename in
14182 nvcc*) # Cuda Compiler Driver 2.2
14183 lt_prog_compiler_wl='-Xlinker '
cristy99bd5232011-12-07 14:38:20 +000014184 if test -n "$lt_prog_compiler_pic"; then
14185 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14186 fi
cristy0c60a692010-11-04 01:09:47 +000014187 ;;
14188 esac
cristy73bd4a52010-10-05 11:24:23 +000014189 else
14190 # PORTME Check for flag to pass linker flags through the system compiler.
14191 case $host_os in
14192 aix*)
14193 lt_prog_compiler_wl='-Wl,'
14194 if test "$host_cpu" = ia64; then
14195 # AIX 5 now supports IA64 processor
14196 lt_prog_compiler_static='-Bstatic'
14197 else
14198 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14199 fi
14200 ;;
14201
14202 mingw* | cygwin* | pw32* | os2* | cegcc*)
14203 # This hack is so that the source file can tell whether it is being
14204 # built for inclusion in a dll (and should export symbols for example).
14205 lt_prog_compiler_pic='-DDLL_EXPORT'
14206 ;;
14207
14208 hpux9* | hpux10* | hpux11*)
14209 lt_prog_compiler_wl='-Wl,'
14210 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14211 # not for PA HP-UX.
14212 case $host_cpu in
14213 hppa*64*|ia64*)
14214 # +Z the default
14215 ;;
14216 *)
14217 lt_prog_compiler_pic='+Z'
14218 ;;
14219 esac
14220 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14221 lt_prog_compiler_static='${wl}-a ${wl}archive'
14222 ;;
14223
14224 irix5* | irix6* | nonstopux*)
14225 lt_prog_compiler_wl='-Wl,'
14226 # PIC (with -KPIC) is the default.
14227 lt_prog_compiler_static='-non_shared'
14228 ;;
14229
cristy0c60a692010-11-04 01:09:47 +000014230 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014231 case $cc_basename in
14232 # old Intel for x86_64 which still supported -KPIC.
14233 ecc*)
14234 lt_prog_compiler_wl='-Wl,'
14235 lt_prog_compiler_pic='-KPIC'
14236 lt_prog_compiler_static='-static'
14237 ;;
14238 # icc used to be incompatible with GCC.
14239 # ICC 10 doesn't accept -KPIC any more.
14240 icc* | ifort*)
14241 lt_prog_compiler_wl='-Wl,'
14242 lt_prog_compiler_pic='-fPIC'
14243 lt_prog_compiler_static='-static'
14244 ;;
14245 # Lahey Fortran 8.1.
14246 lf95*)
14247 lt_prog_compiler_wl='-Wl,'
14248 lt_prog_compiler_pic='--shared'
14249 lt_prog_compiler_static='--static'
14250 ;;
cristyda16f162011-02-19 23:52:17 +000014251 nagfor*)
14252 # NAG Fortran compiler
14253 lt_prog_compiler_wl='-Wl,-Wl,,'
14254 lt_prog_compiler_pic='-PIC'
14255 lt_prog_compiler_static='-Bstatic'
14256 ;;
cristy0c60a692010-11-04 01:09:47 +000014257 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000014258 # Portland Group compilers (*not* the Pentium gcc compiler,
14259 # which looks to be a dead project)
14260 lt_prog_compiler_wl='-Wl,'
14261 lt_prog_compiler_pic='-fpic'
14262 lt_prog_compiler_static='-Bstatic'
14263 ;;
14264 ccc*)
14265 lt_prog_compiler_wl='-Wl,'
14266 # All Alpha code is PIC.
14267 lt_prog_compiler_static='-non_shared'
14268 ;;
cristy0c60a692010-11-04 01:09:47 +000014269 xl* | bgxl* | bgf* | mpixl*)
14270 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000014271 lt_prog_compiler_wl='-Wl,'
14272 lt_prog_compiler_pic='-qpic'
14273 lt_prog_compiler_static='-qstaticlink'
14274 ;;
14275 *)
14276 case `$CC -V 2>&1 | sed 5q` in
cristy99bd5232011-12-07 14:38:20 +000014277 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
cristy0c60a692010-11-04 01:09:47 +000014278 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14279 lt_prog_compiler_pic='-KPIC'
14280 lt_prog_compiler_static='-Bstatic'
14281 lt_prog_compiler_wl=''
14282 ;;
cristy99bd5232011-12-07 14:38:20 +000014283 *Sun\ F* | *Sun*Fortran*)
14284 lt_prog_compiler_pic='-KPIC'
14285 lt_prog_compiler_static='-Bstatic'
14286 lt_prog_compiler_wl='-Qoption ld '
14287 ;;
cristy73bd4a52010-10-05 11:24:23 +000014288 *Sun\ C*)
14289 # Sun C 5.9
14290 lt_prog_compiler_pic='-KPIC'
14291 lt_prog_compiler_static='-Bstatic'
14292 lt_prog_compiler_wl='-Wl,'
14293 ;;
cristy99bd5232011-12-07 14:38:20 +000014294 *Intel*\ [CF]*Compiler*)
14295 lt_prog_compiler_wl='-Wl,'
14296 lt_prog_compiler_pic='-fPIC'
14297 lt_prog_compiler_static='-static'
14298 ;;
14299 *Portland\ Group*)
14300 lt_prog_compiler_wl='-Wl,'
14301 lt_prog_compiler_pic='-fpic'
14302 lt_prog_compiler_static='-Bstatic'
14303 ;;
cristy73bd4a52010-10-05 11:24:23 +000014304 esac
14305 ;;
14306 esac
14307 ;;
14308
14309 newsos6)
14310 lt_prog_compiler_pic='-KPIC'
14311 lt_prog_compiler_static='-Bstatic'
14312 ;;
14313
14314 *nto* | *qnx*)
14315 # QNX uses GNU C++, but need to define -shared option too, otherwise
14316 # it will coredump.
14317 lt_prog_compiler_pic='-fPIC -shared'
14318 ;;
14319
14320 osf3* | osf4* | osf5*)
14321 lt_prog_compiler_wl='-Wl,'
14322 # All OSF/1 code is PIC.
14323 lt_prog_compiler_static='-non_shared'
14324 ;;
14325
14326 rdos*)
14327 lt_prog_compiler_static='-non_shared'
14328 ;;
14329
14330 solaris*)
14331 lt_prog_compiler_pic='-KPIC'
14332 lt_prog_compiler_static='-Bstatic'
14333 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014334 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000014335 lt_prog_compiler_wl='-Qoption ld ';;
14336 *)
14337 lt_prog_compiler_wl='-Wl,';;
14338 esac
14339 ;;
14340
14341 sunos4*)
14342 lt_prog_compiler_wl='-Qoption ld '
14343 lt_prog_compiler_pic='-PIC'
14344 lt_prog_compiler_static='-Bstatic'
14345 ;;
14346
14347 sysv4 | sysv4.2uw2* | sysv4.3*)
14348 lt_prog_compiler_wl='-Wl,'
14349 lt_prog_compiler_pic='-KPIC'
14350 lt_prog_compiler_static='-Bstatic'
14351 ;;
14352
14353 sysv4*MP*)
14354 if test -d /usr/nec ;then
14355 lt_prog_compiler_pic='-Kconform_pic'
14356 lt_prog_compiler_static='-Bstatic'
14357 fi
14358 ;;
14359
14360 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14361 lt_prog_compiler_wl='-Wl,'
14362 lt_prog_compiler_pic='-KPIC'
14363 lt_prog_compiler_static='-Bstatic'
14364 ;;
14365
14366 unicos*)
14367 lt_prog_compiler_wl='-Wl,'
14368 lt_prog_compiler_can_build_shared=no
14369 ;;
14370
14371 uts4*)
14372 lt_prog_compiler_pic='-pic'
14373 lt_prog_compiler_static='-Bstatic'
14374 ;;
14375
14376 *)
14377 lt_prog_compiler_can_build_shared=no
14378 ;;
14379 esac
14380 fi
14381
14382case $host_os in
14383 # For platforms which do not support PIC, -DPIC is meaningless:
14384 *djgpp*)
14385 lt_prog_compiler_pic=
14386 ;;
14387 *)
14388 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14389 ;;
14390esac
cristy73bd4a52010-10-05 11:24:23 +000014391
cristyda16f162011-02-19 23:52:17 +000014392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14393$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14394if ${lt_cv_prog_compiler_pic+:} false; then :
14395 $as_echo_n "(cached) " >&6
14396else
14397 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14398fi
14399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14400$as_echo "$lt_cv_prog_compiler_pic" >&6; }
14401lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000014402
14403#
14404# Check to make sure the PIC flag actually works.
14405#
14406if test -n "$lt_prog_compiler_pic"; then
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14408$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014409if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014410 $as_echo_n "(cached) " >&6
14411else
14412 lt_cv_prog_compiler_pic_works=no
14413 ac_outfile=conftest.$ac_objext
14414 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14415 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14416 # Insert the option either (1) after the last *FLAGS variable, or
14417 # (2) before a word containing "conftest.", or (3) at the end.
14418 # Note that $ac_compile itself does not contain backslashes and begins
14419 # with a dollar sign (not a hyphen), so the echo should work correctly.
14420 # The option is referenced via a variable to avoid confusing sed.
14421 lt_compile=`echo "$ac_compile" | $SED \
14422 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14423 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14424 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014425 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014426 (eval "$lt_compile" 2>conftest.err)
14427 ac_status=$?
14428 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014430 if (exit $ac_status) && test -s "$ac_outfile"; then
14431 # The compiler can only warn and ignore the option if not recognized
14432 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014433 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014434 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14435 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14436 lt_cv_prog_compiler_pic_works=yes
14437 fi
14438 fi
14439 $RM conftest*
14440
14441fi
14442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14443$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14444
14445if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14446 case $lt_prog_compiler_pic in
14447 "" | " "*) ;;
14448 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14449 esac
14450else
14451 lt_prog_compiler_pic=
14452 lt_prog_compiler_can_build_shared=no
14453fi
14454
14455fi
14456
14457
14458
14459
14460
14461
cristyda16f162011-02-19 23:52:17 +000014462
14463
14464
14465
14466
cristy73bd4a52010-10-05 11:24:23 +000014467#
14468# Check to make sure the static flag actually works.
14469#
14470wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14472$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014473if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014474 $as_echo_n "(cached) " >&6
14475else
14476 lt_cv_prog_compiler_static_works=no
14477 save_LDFLAGS="$LDFLAGS"
14478 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14479 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14480 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14481 # The linker can only warn and ignore the option if not recognized
14482 # So say no if there are warnings
14483 if test -s conftest.err; then
14484 # Append any errors to the config.log.
14485 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000014486 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014487 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14488 if diff conftest.exp conftest.er2 >/dev/null; then
14489 lt_cv_prog_compiler_static_works=yes
14490 fi
14491 else
14492 lt_cv_prog_compiler_static_works=yes
14493 fi
14494 fi
14495 $RM -r conftest*
14496 LDFLAGS="$save_LDFLAGS"
14497
14498fi
14499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14500$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14501
14502if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14503 :
14504else
14505 lt_prog_compiler_static=
14506fi
14507
14508
14509
14510
14511
14512
14513
14514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14515$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014516if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014517 $as_echo_n "(cached) " >&6
14518else
14519 lt_cv_prog_compiler_c_o=no
14520 $RM -r conftest 2>/dev/null
14521 mkdir conftest
14522 cd conftest
14523 mkdir out
14524 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14525
14526 lt_compiler_flag="-o out/conftest2.$ac_objext"
14527 # Insert the option either (1) after the last *FLAGS variable, or
14528 # (2) before a word containing "conftest.", or (3) at the end.
14529 # Note that $ac_compile itself does not contain backslashes and begins
14530 # with a dollar sign (not a hyphen), so the echo should work correctly.
14531 lt_compile=`echo "$ac_compile" | $SED \
14532 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14533 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14534 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014535 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014536 (eval "$lt_compile" 2>out/conftest.err)
14537 ac_status=$?
14538 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014540 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14541 then
14542 # The compiler can only warn and ignore the option if not recognized
14543 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014544 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014545 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14546 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14547 lt_cv_prog_compiler_c_o=yes
14548 fi
14549 fi
14550 chmod u+w . 2>&5
14551 $RM conftest*
14552 # SGI C++ compiler will create directory out/ii_files/ for
14553 # template instantiation
14554 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14555 $RM out/* && rmdir out
14556 cd ..
14557 $RM -r conftest
14558 $RM conftest*
14559
14560fi
14561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14562$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14563
14564
14565
14566
14567
14568
14569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14570$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014571if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014572 $as_echo_n "(cached) " >&6
14573else
14574 lt_cv_prog_compiler_c_o=no
14575 $RM -r conftest 2>/dev/null
14576 mkdir conftest
14577 cd conftest
14578 mkdir out
14579 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14580
14581 lt_compiler_flag="-o out/conftest2.$ac_objext"
14582 # Insert the option either (1) after the last *FLAGS variable, or
14583 # (2) before a word containing "conftest.", or (3) at the end.
14584 # Note that $ac_compile itself does not contain backslashes and begins
14585 # with a dollar sign (not a hyphen), so the echo should work correctly.
14586 lt_compile=`echo "$ac_compile" | $SED \
14587 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14588 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14589 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014590 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014591 (eval "$lt_compile" 2>out/conftest.err)
14592 ac_status=$?
14593 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014595 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14596 then
14597 # The compiler can only warn and ignore the option if not recognized
14598 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014599 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014600 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14601 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14602 lt_cv_prog_compiler_c_o=yes
14603 fi
14604 fi
14605 chmod u+w . 2>&5
14606 $RM conftest*
14607 # SGI C++ compiler will create directory out/ii_files/ for
14608 # template instantiation
14609 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14610 $RM out/* && rmdir out
14611 cd ..
14612 $RM -r conftest
14613 $RM conftest*
14614
14615fi
14616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14617$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14618
14619
14620
14621
14622hard_links="nottested"
14623if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14624 # do not overwrite the value of need_locks provided by the user
14625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14626$as_echo_n "checking if we can lock with hard links... " >&6; }
14627 hard_links=yes
14628 $RM conftest*
14629 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14630 touch conftest.a
14631 ln conftest.a conftest.b 2>&5 || hard_links=no
14632 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14634$as_echo "$hard_links" >&6; }
14635 if test "$hard_links" = no; then
14636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14637$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14638 need_locks=warn
14639 fi
14640else
14641 need_locks=no
14642fi
14643
14644
14645
14646
14647
14648
14649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14650$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14651
14652 runpath_var=
14653 allow_undefined_flag=
14654 always_export_symbols=no
14655 archive_cmds=
14656 archive_expsym_cmds=
14657 compiler_needs_object=no
14658 enable_shared_with_static_runtimes=no
14659 export_dynamic_flag_spec=
14660 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14661 hardcode_automatic=no
14662 hardcode_direct=no
14663 hardcode_direct_absolute=no
14664 hardcode_libdir_flag_spec=
cristy73bd4a52010-10-05 11:24:23 +000014665 hardcode_libdir_separator=
14666 hardcode_minus_L=no
14667 hardcode_shlibpath_var=unsupported
14668 inherit_rpath=no
14669 link_all_deplibs=unknown
14670 module_cmds=
14671 module_expsym_cmds=
14672 old_archive_from_new_cmds=
14673 old_archive_from_expsyms_cmds=
14674 thread_safe_flag_spec=
14675 whole_archive_flag_spec=
14676 # include_expsyms should be a list of space-separated symbols to be *always*
14677 # included in the symbol list
14678 include_expsyms=
14679 # exclude_expsyms can be an extended regexp of symbols to exclude
14680 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14681 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14682 # as well as any symbol that contains `d'.
14683 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14684 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14685 # platforms (ab)use it in PIC code, but their linkers get confused if
14686 # the symbol is explicitly referenced. Since portable code cannot
14687 # rely on this symbol name, it's probably fine to never include it in
14688 # preloaded symbol tables.
14689 # Exclude shared library initialization/finalization symbols.
14690 extract_expsyms_cmds=
14691
14692 case $host_os in
14693 cygwin* | mingw* | pw32* | cegcc*)
14694 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14695 # When not using gcc, we currently assume that we are using
14696 # Microsoft Visual C++.
14697 if test "$GCC" != yes; then
14698 with_gnu_ld=no
14699 fi
14700 ;;
14701 interix*)
14702 # we just hope/assume this is gcc and not c89 (= MSVC++)
14703 with_gnu_ld=yes
14704 ;;
14705 openbsd*)
14706 with_gnu_ld=no
14707 ;;
14708 esac
14709
14710 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000014711
14712 # On some targets, GNU ld is compatible enough with the native linker
14713 # that we're better off using the native interface for both.
14714 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000014715 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000014716 case $host_os in
14717 aix*)
14718 # The AIX port of GNU ld has always aspired to compatibility
14719 # with the native linker. However, as the warning in the GNU ld
14720 # block says, versions before 2.19.5* couldn't really create working
14721 # shared libraries, regardless of the interface used.
14722 case `$LD -v 2>&1` in
14723 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14724 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14725 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14726 *)
14727 lt_use_gnu_ld_interface=yes
14728 ;;
14729 esac
14730 ;;
14731 *)
14732 lt_use_gnu_ld_interface=yes
14733 ;;
14734 esac
14735 fi
14736
14737 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000014738 # If archive_cmds runs LD, not CC, wlarc should be empty
14739 wlarc='${wl}'
14740
14741 # Set some defaults for GNU ld with shared library support. These
14742 # are reset later if shared libraries are not supported. Putting them
14743 # here allows them to be overridden if necessary.
14744 runpath_var=LD_RUN_PATH
14745 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14746 export_dynamic_flag_spec='${wl}--export-dynamic'
14747 # ancient GNU ld didn't support --whole-archive et. al.
14748 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14749 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14750 else
14751 whole_archive_flag_spec=
14752 fi
14753 supports_anon_versioning=no
14754 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000014755 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000014756 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14757 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14758 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14759 *\ 2.11.*) ;; # other 2.11 versions
14760 *) supports_anon_versioning=yes ;;
14761 esac
14762
14763 # See if GNU ld supports shared libraries.
14764 case $host_os in
14765 aix[3-9]*)
14766 # On AIX/PPC, the GNU linker is very broken
14767 if test "$host_cpu" != ia64; then
14768 ld_shlibs=no
14769 cat <<_LT_EOF 1>&2
14770
cristy0c60a692010-11-04 01:09:47 +000014771*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000014772*** to be unable to reliably create shared libraries on AIX.
14773*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000014774*** really care for shared libraries, you may want to install binutils
14775*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14776*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000014777
14778_LT_EOF
14779 fi
14780 ;;
14781
14782 amigaos*)
14783 case $host_cpu in
14784 powerpc)
14785 # see comment about AmigaOS4 .so support
14786 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14787 archive_expsym_cmds=''
14788 ;;
14789 m68k)
14790 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)'
14791 hardcode_libdir_flag_spec='-L$libdir'
14792 hardcode_minus_L=yes
14793 ;;
14794 esac
14795 ;;
14796
14797 beos*)
14798 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14799 allow_undefined_flag=unsupported
14800 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14801 # support --undefined. This deserves some investigation. FIXME
14802 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14803 else
14804 ld_shlibs=no
14805 fi
14806 ;;
14807
14808 cygwin* | mingw* | pw32* | cegcc*)
14809 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14810 # as there is no search path for DLLs.
14811 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000014812 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000014813 allow_undefined_flag=unsupported
14814 always_export_symbols=no
14815 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000014816 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'
14817 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 +000014818
14819 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14820 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14821 # If the export-symbols file already is a .def file (1st line
14822 # is EXPORTS), use it as is; otherwise, prepend...
14823 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14824 cp $export_symbols $output_objdir/$soname.def;
14825 else
14826 echo EXPORTS > $output_objdir/$soname.def;
14827 cat $export_symbols >> $output_objdir/$soname.def;
14828 fi~
14829 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14830 else
14831 ld_shlibs=no
14832 fi
14833 ;;
14834
cristy0c60a692010-11-04 01:09:47 +000014835 haiku*)
14836 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14837 link_all_deplibs=yes
14838 ;;
14839
cristy73bd4a52010-10-05 11:24:23 +000014840 interix[3-9]*)
14841 hardcode_direct=no
14842 hardcode_shlibpath_var=no
14843 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14844 export_dynamic_flag_spec='${wl}-E'
14845 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14846 # Instead, shared libraries are loaded at an image base (0x10000000 by
14847 # default) and relocated if they conflict, which is a slow very memory
14848 # consuming and fragmenting process. To avoid this, we pick a random,
14849 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14850 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14851 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14852 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'
14853 ;;
14854
cristy0c60a692010-11-04 01:09:47 +000014855 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014856 tmp_diet=no
14857 if test "$host_os" = linux-dietlibc; then
14858 case $cc_basename in
14859 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14860 esac
14861 fi
14862 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14863 && test "$tmp_diet" = no
14864 then
cristyda16f162011-02-19 23:52:17 +000014865 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000014866 tmp_sharedflag='-shared'
14867 case $cc_basename,$host_cpu in
14868 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000014869 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 +000014870 tmp_addflag=' $pic_flag'
14871 ;;
cristy0c60a692010-11-04 01:09:47 +000014872 pgf77* | pgf90* | pgf95* | pgfortran*)
14873 # Portland Group f77 and f90 compilers
14874 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 +000014875 tmp_addflag=' $pic_flag -Mnomain' ;;
14876 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14877 tmp_addflag=' -i_dynamic' ;;
14878 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14879 tmp_addflag=' -i_dynamic -nofor_main' ;;
14880 ifc* | ifort*) # Intel Fortran compiler
14881 tmp_addflag=' -nofor_main' ;;
14882 lf95*) # Lahey Fortran 8.1
14883 whole_archive_flag_spec=
14884 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000014885 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000014886 tmp_sharedflag='-qmkshrobj'
14887 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000014888 nvcc*) # Cuda Compiler Driver 2.2
14889 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'
14890 compiler_needs_object=yes
14891 ;;
cristy73bd4a52010-10-05 11:24:23 +000014892 esac
14893 case `$CC -V 2>&1 | sed 5q` in
14894 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000014895 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 +000014896 compiler_needs_object=yes
14897 tmp_sharedflag='-G' ;;
14898 *Sun\ F*) # Sun Fortran 8.3
14899 tmp_sharedflag='-G' ;;
14900 esac
14901 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14902
14903 if test "x$supports_anon_versioning" = xyes; then
14904 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14905 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14906 echo "local: *; };" >> $output_objdir/$libname.ver~
14907 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14908 fi
14909
14910 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014911 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000014912 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14913 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
cristy99bd5232011-12-07 14:38:20 +000014914 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cristy0c60a692010-11-04 01:09:47 +000014915 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014916 if test "x$supports_anon_versioning" = xyes; then
14917 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14918 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14919 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000014920 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014921 fi
14922 ;;
14923 esac
14924 else
14925 ld_shlibs=no
14926 fi
14927 ;;
14928
14929 netbsd*)
14930 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14931 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14932 wlarc=
14933 else
cristyda16f162011-02-19 23:52:17 +000014934 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14935 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 +000014936 fi
14937 ;;
14938
14939 solaris*)
14940 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14941 ld_shlibs=no
14942 cat <<_LT_EOF 1>&2
14943
14944*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14945*** create shared libraries on Solaris systems. Therefore, libtool
14946*** is disabling shared libraries support. We urge you to upgrade GNU
14947*** binutils to release 2.9.1 or newer. Another option is to modify
14948*** your PATH or compiler configuration so that the native linker is
14949*** used, and then restart.
14950
14951_LT_EOF
14952 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014953 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14954 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 +000014955 else
14956 ld_shlibs=no
14957 fi
14958 ;;
14959
14960 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14961 case `$LD -v 2>&1` in
14962 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14963 ld_shlibs=no
14964 cat <<_LT_EOF 1>&2
14965
14966*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14967*** reliably create shared libraries on SCO systems. Therefore, libtool
14968*** is disabling shared libraries support. We urge you to upgrade GNU
14969*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14970*** your PATH or compiler configuration so that the native linker is
14971*** used, and then restart.
14972
14973_LT_EOF
14974 ;;
14975 *)
14976 # For security reasons, it is highly recommended that you always
14977 # use absolute paths for naming shared libraries, and exclude the
14978 # DT_RUNPATH tag from executables and libraries. But doing so
14979 # requires that you compile everything twice, which is a pain.
14980 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14981 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14982 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14983 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14984 else
14985 ld_shlibs=no
14986 fi
14987 ;;
14988 esac
14989 ;;
14990
14991 sunos4*)
14992 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14993 wlarc=
14994 hardcode_direct=yes
14995 hardcode_shlibpath_var=no
14996 ;;
14997
14998 *)
14999 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000015000 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15001 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 +000015002 else
15003 ld_shlibs=no
15004 fi
15005 ;;
15006 esac
15007
15008 if test "$ld_shlibs" = no; then
15009 runpath_var=
15010 hardcode_libdir_flag_spec=
15011 export_dynamic_flag_spec=
15012 whole_archive_flag_spec=
15013 fi
15014 else
15015 # PORTME fill in a description of your system's linker (not GNU ld)
15016 case $host_os in
15017 aix3*)
15018 allow_undefined_flag=unsupported
15019 always_export_symbols=yes
15020 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'
15021 # Note: this linker hardcodes the directories in LIBPATH if there
15022 # are no directories specified by -L.
15023 hardcode_minus_L=yes
15024 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15025 # Neither direct hardcoding nor static linking is supported with a
15026 # broken collect2.
15027 hardcode_direct=unsupported
15028 fi
15029 ;;
15030
15031 aix[4-9]*)
15032 if test "$host_cpu" = ia64; then
15033 # On IA64, the linker does run time linking by default, so we don't
15034 # have to do anything special.
15035 aix_use_runtimelinking=no
15036 exp_sym_flag='-Bexport'
15037 no_entry_flag=""
15038 else
15039 # If we're using GNU nm, then we don't want the "-C" option.
15040 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000015041 # Also, AIX nm treats weak defined symbols like other global
15042 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000015043 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000015044 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 +000015045 else
15046 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'
15047 fi
15048 aix_use_runtimelinking=no
15049
15050 # Test if we are trying to use run time linking or normal
15051 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15052 # need to do runtime linking.
15053 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15054 for ld_flag in $LDFLAGS; do
15055 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15056 aix_use_runtimelinking=yes
15057 break
15058 fi
15059 done
15060 ;;
15061 esac
15062
15063 exp_sym_flag='-bexport'
15064 no_entry_flag='-bnoentry'
15065 fi
15066
15067 # When large executables or shared objects are built, AIX ld can
15068 # have problems creating the table of contents. If linking a library
15069 # or program results in "error TOC overflow" add -mminimal-toc to
15070 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15071 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15072
15073 archive_cmds=''
15074 hardcode_direct=yes
15075 hardcode_direct_absolute=yes
15076 hardcode_libdir_separator=':'
15077 link_all_deplibs=yes
15078 file_list_spec='${wl}-f,'
15079
15080 if test "$GCC" = yes; then
15081 case $host_os in aix4.[012]|aix4.[012].*)
15082 # We only want to do this on AIX 4.2 and lower, the check
15083 # below for broken collect2 doesn't work under 4.3+
15084 collect2name=`${CC} -print-prog-name=collect2`
15085 if test -f "$collect2name" &&
15086 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15087 then
15088 # We have reworked collect2
15089 :
15090 else
15091 # We have old collect2
15092 hardcode_direct=unsupported
15093 # It fails to find uninstalled libraries when the uninstalled
15094 # path is not listed in the libpath. Setting hardcode_minus_L
15095 # to unsupported forces relinking
15096 hardcode_minus_L=yes
15097 hardcode_libdir_flag_spec='-L$libdir'
15098 hardcode_libdir_separator=
15099 fi
15100 ;;
15101 esac
15102 shared_flag='-shared'
15103 if test "$aix_use_runtimelinking" = yes; then
15104 shared_flag="$shared_flag "'${wl}-G'
15105 fi
15106 else
15107 # not using gcc
15108 if test "$host_cpu" = ia64; then
15109 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15110 # chokes on -Wl,-G. The following line is correct:
15111 shared_flag='-G'
15112 else
15113 if test "$aix_use_runtimelinking" = yes; then
15114 shared_flag='${wl}-G'
15115 else
15116 shared_flag='${wl}-bM:SRE'
15117 fi
15118 fi
15119 fi
15120
15121 export_dynamic_flag_spec='${wl}-bexpall'
15122 # It seems that -bexpall does not export symbols beginning with
15123 # underscore (_), so it is better to generate a list of symbols to export.
15124 always_export_symbols=yes
15125 if test "$aix_use_runtimelinking" = yes; then
15126 # Warning - without using the other runtime loading flags (-brtl),
15127 # -berok will link without error, but may produce a broken library.
15128 allow_undefined_flag='-berok'
15129 # Determine the default libpath from the value encoded in an
15130 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015131 if test "${lt_cv_aix_libpath+set}" = set; then
15132 aix_libpath=$lt_cv_aix_libpath
15133else
15134 if ${lt_cv_aix_libpath_+:} false; then :
15135 $as_echo_n "(cached) " >&6
15136else
15137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015138/* end confdefs.h. */
15139
15140int
15141main ()
15142{
15143
15144 ;
15145 return 0;
15146}
15147_ACEOF
15148if ac_fn_c_try_link "$LINENO"; then :
15149
cristyda16f162011-02-19 23:52:17 +000015150 lt_aix_libpath_sed='
15151 /Import File Strings/,/^$/ {
15152 /^0/ {
15153 s/^0 *\([^ ]*\) *$/\1/
15154 p
15155 }
15156 }'
15157 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15158 # Check for a 64-bit object if we didn't find anything.
15159 if test -z "$lt_cv_aix_libpath_"; then
15160 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15161 fi
cristy73bd4a52010-10-05 11:24:23 +000015162fi
15163rm -f core conftest.err conftest.$ac_objext \
15164 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015165 if test -z "$lt_cv_aix_libpath_"; then
15166 lt_cv_aix_libpath_="/usr/lib:/lib"
15167 fi
15168
15169fi
15170
15171 aix_libpath=$lt_cv_aix_libpath_
15172fi
cristy73bd4a52010-10-05 11:24:23 +000015173
15174 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000015175 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 +000015176 else
15177 if test "$host_cpu" = ia64; then
15178 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15179 allow_undefined_flag="-z nodefs"
15180 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"
15181 else
15182 # Determine the default libpath from the value encoded in an
15183 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015184 if test "${lt_cv_aix_libpath+set}" = set; then
15185 aix_libpath=$lt_cv_aix_libpath
15186else
15187 if ${lt_cv_aix_libpath_+:} false; then :
15188 $as_echo_n "(cached) " >&6
15189else
15190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015191/* end confdefs.h. */
15192
15193int
15194main ()
15195{
15196
15197 ;
15198 return 0;
15199}
15200_ACEOF
15201if ac_fn_c_try_link "$LINENO"; then :
15202
cristyda16f162011-02-19 23:52:17 +000015203 lt_aix_libpath_sed='
15204 /Import File Strings/,/^$/ {
15205 /^0/ {
15206 s/^0 *\([^ ]*\) *$/\1/
15207 p
15208 }
15209 }'
15210 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15211 # Check for a 64-bit object if we didn't find anything.
15212 if test -z "$lt_cv_aix_libpath_"; then
15213 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15214 fi
cristy73bd4a52010-10-05 11:24:23 +000015215fi
15216rm -f core conftest.err conftest.$ac_objext \
15217 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015218 if test -z "$lt_cv_aix_libpath_"; then
15219 lt_cv_aix_libpath_="/usr/lib:/lib"
15220 fi
15221
15222fi
15223
15224 aix_libpath=$lt_cv_aix_libpath_
15225fi
cristy73bd4a52010-10-05 11:24:23 +000015226
15227 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15228 # Warning - without using the other run time loading flags,
15229 # -berok will link without error, but may produce a broken library.
15230 no_undefined_flag=' ${wl}-bernotok'
15231 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000015232 if test "$with_gnu_ld" = yes; then
15233 # We only use this code for GNU lds that support --whole-archive.
15234 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15235 else
15236 # Exported symbols can be pulled into shared objects from archives
15237 whole_archive_flag_spec='$convenience'
15238 fi
cristy73bd4a52010-10-05 11:24:23 +000015239 archive_cmds_need_lc=yes
15240 # This is similar to how AIX traditionally builds its shared libraries.
15241 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'
15242 fi
15243 fi
15244 ;;
15245
15246 amigaos*)
15247 case $host_cpu in
15248 powerpc)
15249 # see comment about AmigaOS4 .so support
15250 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15251 archive_expsym_cmds=''
15252 ;;
15253 m68k)
15254 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)'
15255 hardcode_libdir_flag_spec='-L$libdir'
15256 hardcode_minus_L=yes
15257 ;;
15258 esac
15259 ;;
15260
15261 bsdi[45]*)
15262 export_dynamic_flag_spec=-rdynamic
15263 ;;
15264
15265 cygwin* | mingw* | pw32* | cegcc*)
15266 # When not using gcc, we currently assume that we are using
15267 # Microsoft Visual C++.
15268 # hardcode_libdir_flag_spec is actually meaningless, as there is
15269 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000015270 case $cc_basename in
15271 cl*)
15272 # Native MSVC
15273 hardcode_libdir_flag_spec=' '
15274 allow_undefined_flag=unsupported
15275 always_export_symbols=yes
15276 file_list_spec='@'
15277 # Tell ltmain to make .lib files, not .a files.
15278 libext=lib
15279 # Tell ltmain to make .dll files, not .so files.
15280 shrext_cmds=".dll"
15281 # FIXME: Setting linknames here is a bad hack.
15282 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15283 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15284 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15285 else
15286 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15287 fi~
15288 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15289 linknames='
15290 # The linker will not automatically build a static lib if we build a DLL.
15291 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15292 enable_shared_with_static_runtimes=yes
cristy99bd5232011-12-07 14:38:20 +000015293 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
cristyda16f162011-02-19 23:52:17 +000015294 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15295 # Don't use ranlib
15296 old_postinstall_cmds='chmod 644 $oldlib'
15297 postlink_cmds='lt_outputfile="@OUTPUT@"~
15298 lt_tool_outputfile="@TOOL_OUTPUT@"~
15299 case $lt_outputfile in
15300 *.exe|*.EXE) ;;
15301 *)
15302 lt_outputfile="$lt_outputfile.exe"
15303 lt_tool_outputfile="$lt_tool_outputfile.exe"
15304 ;;
15305 esac~
15306 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15307 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15308 $RM "$lt_outputfile.manifest";
15309 fi'
15310 ;;
15311 *)
15312 # Assume MSVC wrapper
15313 hardcode_libdir_flag_spec=' '
15314 allow_undefined_flag=unsupported
15315 # Tell ltmain to make .lib files, not .a files.
15316 libext=lib
15317 # Tell ltmain to make .dll files, not .so files.
15318 shrext_cmds=".dll"
15319 # FIXME: Setting linknames here is a bad hack.
15320 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15321 # The linker will automatically build a .lib file if we build a DLL.
15322 old_archive_from_new_cmds='true'
15323 # FIXME: Should let the user specify the lib program.
15324 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15325 enable_shared_with_static_runtimes=yes
15326 ;;
15327 esac
cristy73bd4a52010-10-05 11:24:23 +000015328 ;;
15329
15330 darwin* | rhapsody*)
15331
15332
15333 archive_cmds_need_lc=no
15334 hardcode_direct=no
15335 hardcode_automatic=yes
15336 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000015337 if test "$lt_cv_ld_force_load" = "yes"; then
15338 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 +000015339
cristy0c60a692010-11-04 01:09:47 +000015340 else
15341 whole_archive_flag_spec=''
15342 fi
cristy73bd4a52010-10-05 11:24:23 +000015343 link_all_deplibs=yes
15344 allow_undefined_flag="$_lt_dar_allow_undefined"
15345 case $cc_basename in
15346 ifort*) _lt_dar_can_shared=yes ;;
15347 *) _lt_dar_can_shared=$GCC ;;
15348 esac
15349 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000015350 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000015351 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15352 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15353 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}"
15354 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}"
15355
15356 else
15357 ld_shlibs=no
15358 fi
15359
15360 ;;
15361
15362 dgux*)
15363 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15364 hardcode_libdir_flag_spec='-L$libdir'
15365 hardcode_shlibpath_var=no
15366 ;;
15367
cristy73bd4a52010-10-05 11:24:23 +000015368 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15369 # support. Future versions do this automatically, but an explicit c++rt0.o
15370 # does not break anything, and helps significantly (at the cost of a little
15371 # extra space).
15372 freebsd2.2*)
15373 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15374 hardcode_libdir_flag_spec='-R$libdir'
15375 hardcode_direct=yes
15376 hardcode_shlibpath_var=no
15377 ;;
15378
15379 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
cristy99bd5232011-12-07 14:38:20 +000015380 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000015381 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15382 hardcode_direct=yes
15383 hardcode_minus_L=yes
15384 hardcode_shlibpath_var=no
15385 ;;
15386
15387 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15388 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000015389 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015390 hardcode_libdir_flag_spec='-R$libdir'
15391 hardcode_direct=yes
15392 hardcode_shlibpath_var=no
15393 ;;
15394
15395 hpux9*)
15396 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015397 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 +000015398 else
15399 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'
15400 fi
15401 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15402 hardcode_libdir_separator=:
15403 hardcode_direct=yes
15404
15405 # hardcode_minus_L: Not really in the search PATH,
15406 # but as the default location of the library.
15407 hardcode_minus_L=yes
15408 export_dynamic_flag_spec='${wl}-E'
15409 ;;
15410
15411 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000015412 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000015413 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 +000015414 else
15415 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15416 fi
15417 if test "$with_gnu_ld" = no; then
15418 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cristy73bd4a52010-10-05 11:24:23 +000015419 hardcode_libdir_separator=:
15420 hardcode_direct=yes
15421 hardcode_direct_absolute=yes
15422 export_dynamic_flag_spec='${wl}-E'
15423 # hardcode_minus_L: Not really in the search PATH,
15424 # but as the default location of the library.
15425 hardcode_minus_L=yes
15426 fi
15427 ;;
15428
15429 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000015430 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000015431 case $host_cpu in
15432 hppa*64*)
15433 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15434 ;;
15435 ia64*)
cristyda16f162011-02-19 23:52:17 +000015436 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015437 ;;
15438 *)
cristyda16f162011-02-19 23:52:17 +000015439 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 +000015440 ;;
15441 esac
15442 else
15443 case $host_cpu in
15444 hppa*64*)
15445 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15446 ;;
15447 ia64*)
15448 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15449 ;;
15450 *)
cristy0c60a692010-11-04 01:09:47 +000015451
15452 # Older versions of the 11.00 compiler do not understand -b yet
15453 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15455$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015456if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015457 $as_echo_n "(cached) " >&6
15458else
15459 lt_cv_prog_compiler__b=no
15460 save_LDFLAGS="$LDFLAGS"
15461 LDFLAGS="$LDFLAGS -b"
15462 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15463 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15464 # The linker can only warn and ignore the option if not recognized
15465 # So say no if there are warnings
15466 if test -s conftest.err; then
15467 # Append any errors to the config.log.
15468 cat conftest.err 1>&5
15469 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15470 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15471 if diff conftest.exp conftest.er2 >/dev/null; then
15472 lt_cv_prog_compiler__b=yes
15473 fi
15474 else
15475 lt_cv_prog_compiler__b=yes
15476 fi
15477 fi
15478 $RM -r conftest*
15479 LDFLAGS="$save_LDFLAGS"
15480
15481fi
15482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15483$as_echo "$lt_cv_prog_compiler__b" >&6; }
15484
15485if test x"$lt_cv_prog_compiler__b" = xyes; then
15486 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15487else
15488 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15489fi
15490
cristy73bd4a52010-10-05 11:24:23 +000015491 ;;
15492 esac
15493 fi
15494 if test "$with_gnu_ld" = no; then
15495 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15496 hardcode_libdir_separator=:
15497
15498 case $host_cpu in
15499 hppa*64*|ia64*)
15500 hardcode_direct=no
15501 hardcode_shlibpath_var=no
15502 ;;
15503 *)
15504 hardcode_direct=yes
15505 hardcode_direct_absolute=yes
15506 export_dynamic_flag_spec='${wl}-E'
15507
15508 # hardcode_minus_L: Not really in the search PATH,
15509 # but as the default location of the library.
15510 hardcode_minus_L=yes
15511 ;;
15512 esac
15513 fi
15514 ;;
15515
15516 irix5* | irix6* | nonstopux*)
15517 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015518 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 +000015519 # Try to use the -exported_symbol ld option, if it does not
15520 # work, assume that -exports_file does not work either and
15521 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000015522 # This should be the same for all languages, so no per-tag cache variable.
15523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15524$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15525if ${lt_cv_irix_exported_symbol+:} false; then :
15526 $as_echo_n "(cached) " >&6
15527else
15528 save_LDFLAGS="$LDFLAGS"
15529 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015531/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000015532int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000015533_ACEOF
15534if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000015535 lt_cv_irix_exported_symbol=yes
15536else
15537 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000015538fi
15539rm -f core conftest.err conftest.$ac_objext \
15540 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015541 LDFLAGS="$save_LDFLAGS"
15542fi
15543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15544$as_echo "$lt_cv_irix_exported_symbol" >&6; }
15545 if test "$lt_cv_irix_exported_symbol" = yes; then
15546 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'
15547 fi
cristy73bd4a52010-10-05 11:24:23 +000015548 else
cristy0c60a692010-11-04 01:09:47 +000015549 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'
15550 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 +000015551 fi
15552 archive_cmds_need_lc='no'
15553 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15554 hardcode_libdir_separator=:
15555 inherit_rpath=yes
15556 link_all_deplibs=yes
15557 ;;
15558
15559 netbsd*)
15560 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15561 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15562 else
15563 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15564 fi
15565 hardcode_libdir_flag_spec='-R$libdir'
15566 hardcode_direct=yes
15567 hardcode_shlibpath_var=no
15568 ;;
15569
15570 newsos6)
15571 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15572 hardcode_direct=yes
15573 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15574 hardcode_libdir_separator=:
15575 hardcode_shlibpath_var=no
15576 ;;
15577
15578 *nto* | *qnx*)
15579 ;;
15580
15581 openbsd*)
15582 if test -f /usr/libexec/ld.so; then
15583 hardcode_direct=yes
15584 hardcode_shlibpath_var=no
15585 hardcode_direct_absolute=yes
15586 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15587 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15588 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15589 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15590 export_dynamic_flag_spec='${wl}-E'
15591 else
15592 case $host_os in
15593 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15594 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15595 hardcode_libdir_flag_spec='-R$libdir'
15596 ;;
15597 *)
15598 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15599 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15600 ;;
15601 esac
15602 fi
15603 else
15604 ld_shlibs=no
15605 fi
15606 ;;
15607
15608 os2*)
15609 hardcode_libdir_flag_spec='-L$libdir'
15610 hardcode_minus_L=yes
15611 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000015612 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 +000015613 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15614 ;;
15615
15616 osf3*)
15617 if test "$GCC" = yes; then
15618 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000015619 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 +000015620 else
15621 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000015622 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 +000015623 fi
15624 archive_cmds_need_lc='no'
15625 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15626 hardcode_libdir_separator=:
15627 ;;
15628
15629 osf4* | osf5*) # as osf3* with the addition of -msym flag
15630 if test "$GCC" = yes; then
15631 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000015632 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 +000015633 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15634 else
15635 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000015636 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 +000015637 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 +000015638 $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 +000015639
15640 # Both c and cxx compiler support -rpath directly
15641 hardcode_libdir_flag_spec='-rpath $libdir'
15642 fi
15643 archive_cmds_need_lc='no'
15644 hardcode_libdir_separator=:
15645 ;;
15646
15647 solaris*)
15648 no_undefined_flag=' -z defs'
15649 if test "$GCC" = yes; then
15650 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000015651 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 +000015652 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 +000015653 $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 +000015654 else
15655 case `$CC -V 2>&1` in
15656 *"Compilers 5.0"*)
15657 wlarc=''
15658 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15659 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15660 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15661 ;;
15662 *)
15663 wlarc='${wl}'
15664 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15665 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15666 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15667 ;;
15668 esac
15669 fi
15670 hardcode_libdir_flag_spec='-R$libdir'
15671 hardcode_shlibpath_var=no
15672 case $host_os in
15673 solaris2.[0-5] | solaris2.[0-5].*) ;;
15674 *)
15675 # The compiler driver will combine and reorder linker options,
15676 # but understands `-z linker_flag'. GCC discards it without `$wl',
15677 # but is careful enough not to reorder.
15678 # Supported since Solaris 2.6 (maybe 2.5.1?)
15679 if test "$GCC" = yes; then
15680 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15681 else
15682 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15683 fi
15684 ;;
15685 esac
15686 link_all_deplibs=yes
15687 ;;
15688
15689 sunos4*)
15690 if test "x$host_vendor" = xsequent; then
15691 # Use $CC to link under sequent, because it throws in some extra .o
15692 # files that make .init and .fini sections work.
15693 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15694 else
15695 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15696 fi
15697 hardcode_libdir_flag_spec='-L$libdir'
15698 hardcode_direct=yes
15699 hardcode_minus_L=yes
15700 hardcode_shlibpath_var=no
15701 ;;
15702
15703 sysv4)
15704 case $host_vendor in
15705 sni)
15706 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15707 hardcode_direct=yes # is this really true???
15708 ;;
15709 siemens)
15710 ## LD is ld it makes a PLAMLIB
15711 ## CC just makes a GrossModule.
15712 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15713 reload_cmds='$CC -r -o $output$reload_objs'
15714 hardcode_direct=no
15715 ;;
15716 motorola)
15717 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15718 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15719 ;;
15720 esac
15721 runpath_var='LD_RUN_PATH'
15722 hardcode_shlibpath_var=no
15723 ;;
15724
15725 sysv4.3*)
15726 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15727 hardcode_shlibpath_var=no
15728 export_dynamic_flag_spec='-Bexport'
15729 ;;
15730
15731 sysv4*MP*)
15732 if test -d /usr/nec; then
15733 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15734 hardcode_shlibpath_var=no
15735 runpath_var=LD_RUN_PATH
15736 hardcode_runpath_var=yes
15737 ld_shlibs=yes
15738 fi
15739 ;;
15740
15741 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15742 no_undefined_flag='${wl}-z,text'
15743 archive_cmds_need_lc=no
15744 hardcode_shlibpath_var=no
15745 runpath_var='LD_RUN_PATH'
15746
15747 if test "$GCC" = yes; then
15748 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15749 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15750 else
15751 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15752 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15753 fi
15754 ;;
15755
15756 sysv5* | sco3.2v5* | sco5v6*)
15757 # Note: We can NOT use -z defs as we might desire, because we do not
15758 # link with -lc, and that would cause any symbols used from libc to
15759 # always be unresolved, which means just about no library would
15760 # ever link correctly. If we're not using GNU ld we use -z text
15761 # though, which does catch some bad symbols but isn't as heavy-handed
15762 # as -z defs.
15763 no_undefined_flag='${wl}-z,text'
15764 allow_undefined_flag='${wl}-z,nodefs'
15765 archive_cmds_need_lc=no
15766 hardcode_shlibpath_var=no
15767 hardcode_libdir_flag_spec='${wl}-R,$libdir'
15768 hardcode_libdir_separator=':'
15769 link_all_deplibs=yes
15770 export_dynamic_flag_spec='${wl}-Bexport'
15771 runpath_var='LD_RUN_PATH'
15772
15773 if test "$GCC" = yes; then
15774 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15775 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15776 else
15777 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15778 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15779 fi
15780 ;;
15781
15782 uts4*)
15783 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15784 hardcode_libdir_flag_spec='-L$libdir'
15785 hardcode_shlibpath_var=no
15786 ;;
15787
15788 *)
15789 ld_shlibs=no
15790 ;;
15791 esac
15792
15793 if test x$host_vendor = xsni; then
15794 case $host in
15795 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15796 export_dynamic_flag_spec='${wl}-Blargedynsym'
15797 ;;
15798 esac
15799 fi
15800 fi
15801
15802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15803$as_echo "$ld_shlibs" >&6; }
15804test "$ld_shlibs" = no && can_build_shared=no
15805
15806with_gnu_ld=$with_gnu_ld
15807
15808
15809
15810
15811
15812
15813
15814
15815
15816
15817
15818
15819
15820
15821
15822#
15823# Do we need to explicitly link libc?
15824#
15825case "x$archive_cmds_need_lc" in
15826x|xyes)
15827 # Assume -lc should be added
15828 archive_cmds_need_lc=yes
15829
15830 if test "$enable_shared" = yes && test "$GCC" = yes; then
15831 case $archive_cmds in
15832 *'~'*)
15833 # FIXME: we may have to deal with multi-command sequences.
15834 ;;
15835 '$CC '*)
15836 # Test whether the compiler implicitly links with -lc since on some
15837 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15838 # to ld, don't add -lc before -lgcc.
15839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15840$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015841if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015842 $as_echo_n "(cached) " >&6
15843else
15844 $RM conftest*
15845 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015846
cristy0c60a692010-11-04 01:09:47 +000015847 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000015848 (eval $ac_compile) 2>&5
15849 ac_status=$?
15850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15851 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000015852 soname=conftest
15853 lib=conftest
15854 libobjs=conftest.$ac_objext
15855 deplibs=
15856 wl=$lt_prog_compiler_wl
15857 pic_flag=$lt_prog_compiler_pic
15858 compiler_flags=-v
15859 linker_flags=-v
15860 verstring=
15861 output_objdir=.
15862 libname=conftest
15863 lt_save_allow_undefined_flag=$allow_undefined_flag
15864 allow_undefined_flag=
15865 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 +000015866 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15867 ac_status=$?
15868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15869 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000015870 then
15871 lt_cv_archive_cmds_need_lc=no
15872 else
15873 lt_cv_archive_cmds_need_lc=yes
15874 fi
15875 allow_undefined_flag=$lt_save_allow_undefined_flag
15876 else
15877 cat conftest.err 1>&5
15878 fi
15879 $RM conftest*
15880
15881fi
15882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15883$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
15884 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000015885 ;;
15886 esac
15887 fi
15888 ;;
15889esac
15890
15891
15892
15893
15894
15895
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934
15935
15936
15937
15938
15939
15940
15941
15942
15943
15944
15945
15946
15947
15948
15949
15950
15951
15952
15953
15954
15955
15956
15957
15958
15959
15960
15961
15962
15963
15964
15965
15966
15967
15968
15969
15970
15971
15972
15973
15974
15975
15976
15977
15978
15979
15980
15981
15982
15983
15984
15985
15986
15987
15988
15989
15990
15991
15992
15993
15994
15995
15996
15997
15998
15999
16000
16001
16002
16003
16004
16005
16006
16007
16008
16009
16010
16011
16012
16013
16014
16015
16016
16017
16018
16019
16020
16021
16022
16023
16024
16025
16026
16027
16028
16029
16030
16031
16032
16033
16034
16035
16036
16037
16038
16039
16040
16041
cristy73bd4a52010-10-05 11:24:23 +000016042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16043$as_echo_n "checking dynamic linker characteristics... " >&6; }
16044
16045if test "$GCC" = yes; then
16046 case $host_os in
16047 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16048 *) lt_awk_arg="/^libraries:/" ;;
16049 esac
cristy0c60a692010-11-04 01:09:47 +000016050 case $host_os in
16051 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16052 *) lt_sed_strip_eq="s,=/,/,g" ;;
16053 esac
16054 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16055 case $lt_search_path_spec in
16056 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000016057 # if the path contains ";" then we assume it to be the separator
16058 # otherwise default to the standard path separator (i.e. ":") - it is
16059 # assumed that no part of a normal pathname contains ";" but that should
16060 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000016061 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16062 ;;
16063 *)
16064 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16065 ;;
16066 esac
cristy73bd4a52010-10-05 11:24:23 +000016067 # Ok, now we have the path, separated by spaces, we can step through it
16068 # and add multilib dir if necessary.
16069 lt_tmp_lt_search_path_spec=
16070 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16071 for lt_sys_path in $lt_search_path_spec; do
16072 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16073 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16074 else
16075 test -d "$lt_sys_path" && \
16076 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16077 fi
16078 done
cristy0c60a692010-11-04 01:09:47 +000016079 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000016080BEGIN {RS=" "; FS="/|\n";} {
16081 lt_foo="";
16082 lt_count=0;
16083 for (lt_i = NF; lt_i > 0; lt_i--) {
16084 if ($lt_i != "" && $lt_i != ".") {
16085 if ($lt_i == "..") {
16086 lt_count++;
16087 } else {
16088 if (lt_count == 0) {
16089 lt_foo="/" $lt_i lt_foo;
16090 } else {
16091 lt_count--;
16092 }
16093 }
16094 }
16095 }
16096 if (lt_foo != "") { lt_freq[lt_foo]++; }
16097 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16098}'`
cristy0c60a692010-11-04 01:09:47 +000016099 # AWK program above erroneously prepends '/' to C:/dos/paths
16100 # for these hosts.
16101 case $host_os in
16102 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16103 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16104 esac
16105 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000016106else
16107 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16108fi
16109library_names_spec=
16110libname_spec='lib$name'
16111soname_spec=
16112shrext_cmds=".so"
16113postinstall_cmds=
16114postuninstall_cmds=
16115finish_cmds=
16116finish_eval=
16117shlibpath_var=
16118shlibpath_overrides_runpath=unknown
16119version_type=none
16120dynamic_linker="$host_os ld.so"
16121sys_lib_dlsearch_path_spec="/lib /usr/lib"
16122need_lib_prefix=unknown
16123hardcode_into_libs=no
16124
16125# when you set need_version to no, make sure it does not cause -set_version
16126# flags to be left without arguments
16127need_version=unknown
16128
16129case $host_os in
16130aix3*)
cristy99bd5232011-12-07 14:38:20 +000016131 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016132 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16133 shlibpath_var=LIBPATH
16134
16135 # AIX 3 has no versioning support, so we append a major version to the name.
16136 soname_spec='${libname}${release}${shared_ext}$major'
16137 ;;
16138
16139aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000016140 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016141 need_lib_prefix=no
16142 need_version=no
16143 hardcode_into_libs=yes
16144 if test "$host_cpu" = ia64; then
16145 # AIX 5 supports IA64
16146 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16147 shlibpath_var=LD_LIBRARY_PATH
16148 else
16149 # With GCC up to 2.95.x, collect2 would create an import file
16150 # for dependence libraries. The import file would start with
16151 # the line `#! .'. This would cause the generated library to
16152 # depend on `.', always an invalid library. This was fixed in
16153 # development snapshots of GCC prior to 3.0.
16154 case $host_os in
16155 aix4 | aix4.[01] | aix4.[01].*)
16156 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16157 echo ' yes '
16158 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16159 :
16160 else
16161 can_build_shared=no
16162 fi
16163 ;;
16164 esac
16165 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16166 # soname into executable. Probably we can add versioning support to
16167 # collect2, so additional links can be useful in future.
16168 if test "$aix_use_runtimelinking" = yes; then
16169 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16170 # instead of lib<name>.a to let people know that these are not
16171 # typical AIX shared libraries.
16172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16173 else
16174 # We preserve .a as extension for shared libraries through AIX4.2
16175 # and later when we are not doing run time linking.
16176 library_names_spec='${libname}${release}.a $libname.a'
16177 soname_spec='${libname}${release}${shared_ext}$major'
16178 fi
16179 shlibpath_var=LIBPATH
16180 fi
16181 ;;
16182
16183amigaos*)
16184 case $host_cpu in
16185 powerpc)
16186 # Since July 2007 AmigaOS4 officially supports .so libraries.
16187 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16189 ;;
16190 m68k)
16191 library_names_spec='$libname.ixlibrary $libname.a'
16192 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000016193 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 +000016194 ;;
16195 esac
16196 ;;
16197
16198beos*)
16199 library_names_spec='${libname}${shared_ext}'
16200 dynamic_linker="$host_os ld.so"
16201 shlibpath_var=LIBRARY_PATH
16202 ;;
16203
16204bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000016205 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016206 need_version=no
16207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16208 soname_spec='${libname}${release}${shared_ext}$major'
16209 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16210 shlibpath_var=LD_LIBRARY_PATH
16211 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16212 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16213 # the default ld.so.conf also contains /usr/contrib/lib and
16214 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16215 # libtool to hard-code these into programs
16216 ;;
16217
16218cygwin* | mingw* | pw32* | cegcc*)
16219 version_type=windows
16220 shrext_cmds=".dll"
16221 need_version=no
16222 need_lib_prefix=no
16223
cristyda16f162011-02-19 23:52:17 +000016224 case $GCC,$cc_basename in
16225 yes,*)
16226 # gcc
cristy73bd4a52010-10-05 11:24:23 +000016227 library_names_spec='$libname.dll.a'
16228 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16229 postinstall_cmds='base_file=`basename \${file}`~
16230 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16231 dldir=$destdir/`dirname \$dlpath`~
16232 test -d \$dldir || mkdir -p \$dldir~
16233 $install_prog $dir/$dlname \$dldir/$dlname~
16234 chmod a+x \$dldir/$dlname~
16235 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16236 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16237 fi'
16238 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16239 dlpath=$dir/\$dldll~
16240 $RM \$dlpath'
16241 shlibpath_overrides_runpath=yes
16242
16243 case $host_os in
16244 cygwin*)
16245 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16246 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000016247
16248 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000016249 ;;
16250 mingw* | cegcc*)
16251 # MinGW DLLs use traditional 'lib' prefix
16252 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000016253 ;;
16254 pw32*)
16255 # pw32 DLLs use 'pw' prefix rather than 'lib'
16256 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16257 ;;
16258 esac
cristyda16f162011-02-19 23:52:17 +000016259 dynamic_linker='Win32 ld.exe'
16260 ;;
16261
16262 *,cl*)
16263 # Native MSVC
16264 libname_spec='$name'
16265 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16266 library_names_spec='${libname}.dll.lib'
16267
16268 case $build_os in
16269 mingw*)
16270 sys_lib_search_path_spec=
16271 lt_save_ifs=$IFS
16272 IFS=';'
16273 for lt_path in $LIB
16274 do
16275 IFS=$lt_save_ifs
16276 # Let DOS variable expansion print the short 8.3 style file name.
16277 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16278 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16279 done
16280 IFS=$lt_save_ifs
16281 # Convert to MSYS style.
16282 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16283 ;;
16284 cygwin*)
16285 # Convert to unix form, then to dos form, then back to unix form
16286 # but this time dos style (no spaces!) so that the unix form looks
16287 # like /cygdrive/c/PROGRA~1:/cygdr...
16288 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16289 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16290 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16291 ;;
16292 *)
16293 sys_lib_search_path_spec="$LIB"
16294 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16295 # It is most probably a Windows format PATH.
16296 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16297 else
16298 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16299 fi
16300 # FIXME: find the short name or the path components, as spaces are
16301 # common. (e.g. "Program Files" -> "PROGRA~1")
16302 ;;
16303 esac
16304
16305 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16306 postinstall_cmds='base_file=`basename \${file}`~
16307 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16308 dldir=$destdir/`dirname \$dlpath`~
16309 test -d \$dldir || mkdir -p \$dldir~
16310 $install_prog $dir/$dlname \$dldir/$dlname'
16311 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16312 dlpath=$dir/\$dldll~
16313 $RM \$dlpath'
16314 shlibpath_overrides_runpath=yes
16315 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000016316 ;;
16317
16318 *)
cristyda16f162011-02-19 23:52:17 +000016319 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000016320 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000016321 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000016322 ;;
16323 esac
cristy73bd4a52010-10-05 11:24:23 +000016324 # FIXME: first we should search . and the directory the executable is in
16325 shlibpath_var=PATH
16326 ;;
16327
16328darwin* | rhapsody*)
16329 dynamic_linker="$host_os dyld"
16330 version_type=darwin
16331 need_lib_prefix=no
16332 need_version=no
16333 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16334 soname_spec='${libname}${release}${major}$shared_ext'
16335 shlibpath_overrides_runpath=yes
16336 shlibpath_var=DYLD_LIBRARY_PATH
16337 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16338
16339 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16340 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16341 ;;
16342
16343dgux*)
cristy99bd5232011-12-07 14:38:20 +000016344 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016345 need_lib_prefix=no
16346 need_version=no
16347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16348 soname_spec='${libname}${release}${shared_ext}$major'
16349 shlibpath_var=LD_LIBRARY_PATH
16350 ;;
16351
cristy73bd4a52010-10-05 11:24:23 +000016352freebsd* | dragonfly*)
16353 # DragonFly does not have aout. When/if they implement a new
16354 # versioning mechanism, adjust this.
16355 if test -x /usr/bin/objformat; then
16356 objformat=`/usr/bin/objformat`
16357 else
16358 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016359 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000016360 *) objformat=elf ;;
16361 esac
16362 fi
16363 version_type=freebsd-$objformat
16364 case $version_type in
16365 freebsd-elf*)
16366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16367 need_version=no
16368 need_lib_prefix=no
16369 ;;
16370 freebsd-*)
16371 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16372 need_version=yes
16373 ;;
16374 esac
16375 shlibpath_var=LD_LIBRARY_PATH
16376 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016377 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000016378 shlibpath_overrides_runpath=yes
16379 ;;
16380 freebsd3.[01]* | freebsdelf3.[01]*)
16381 shlibpath_overrides_runpath=yes
16382 hardcode_into_libs=yes
16383 ;;
16384 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16385 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16386 shlibpath_overrides_runpath=no
16387 hardcode_into_libs=yes
16388 ;;
16389 *) # from 4.6 on, and DragonFly
16390 shlibpath_overrides_runpath=yes
16391 hardcode_into_libs=yes
16392 ;;
16393 esac
16394 ;;
16395
16396gnu*)
cristy99bd5232011-12-07 14:38:20 +000016397 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016398 need_lib_prefix=no
16399 need_version=no
16400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16401 soname_spec='${libname}${release}${shared_ext}$major'
16402 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000016403 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000016404 hardcode_into_libs=yes
16405 ;;
16406
cristy0c60a692010-11-04 01:09:47 +000016407haiku*)
cristy99bd5232011-12-07 14:38:20 +000016408 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000016409 need_lib_prefix=no
16410 need_version=no
16411 dynamic_linker="$host_os runtime_loader"
16412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16413 soname_spec='${libname}${release}${shared_ext}$major'
16414 shlibpath_var=LIBRARY_PATH
16415 shlibpath_overrides_runpath=yes
16416 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16417 hardcode_into_libs=yes
16418 ;;
16419
cristy73bd4a52010-10-05 11:24:23 +000016420hpux9* | hpux10* | hpux11*)
16421 # Give a soname corresponding to the major version so that dld.sl refuses to
16422 # link against other versions.
16423 version_type=sunos
16424 need_lib_prefix=no
16425 need_version=no
16426 case $host_cpu in
16427 ia64*)
16428 shrext_cmds='.so'
16429 hardcode_into_libs=yes
16430 dynamic_linker="$host_os dld.so"
16431 shlibpath_var=LD_LIBRARY_PATH
16432 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16434 soname_spec='${libname}${release}${shared_ext}$major'
16435 if test "X$HPUX_IA64_MODE" = X32; then
16436 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16437 else
16438 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16439 fi
16440 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16441 ;;
16442 hppa*64*)
16443 shrext_cmds='.sl'
16444 hardcode_into_libs=yes
16445 dynamic_linker="$host_os dld.sl"
16446 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16447 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16449 soname_spec='${libname}${release}${shared_ext}$major'
16450 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16451 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16452 ;;
16453 *)
16454 shrext_cmds='.sl'
16455 dynamic_linker="$host_os dld.sl"
16456 shlibpath_var=SHLIB_PATH
16457 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16459 soname_spec='${libname}${release}${shared_ext}$major'
16460 ;;
16461 esac
cristy0c60a692010-11-04 01:09:47 +000016462 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000016463 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000016464 # or fails outright, so override atomically:
16465 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000016466 ;;
16467
16468interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000016469 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016470 need_lib_prefix=no
16471 need_version=no
16472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16473 soname_spec='${libname}${release}${shared_ext}$major'
16474 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16475 shlibpath_var=LD_LIBRARY_PATH
16476 shlibpath_overrides_runpath=no
16477 hardcode_into_libs=yes
16478 ;;
16479
16480irix5* | irix6* | nonstopux*)
16481 case $host_os in
16482 nonstopux*) version_type=nonstopux ;;
16483 *)
16484 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000016485 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016486 else
16487 version_type=irix
16488 fi ;;
16489 esac
16490 need_lib_prefix=no
16491 need_version=no
16492 soname_spec='${libname}${release}${shared_ext}$major'
16493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16494 case $host_os in
16495 irix5* | nonstopux*)
16496 libsuff= shlibsuff=
16497 ;;
16498 *)
16499 case $LD in # libtool.m4 will add one of these switches to LD
16500 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16501 libsuff= shlibsuff= libmagic=32-bit;;
16502 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16503 libsuff=32 shlibsuff=N32 libmagic=N32;;
16504 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16505 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16506 *) libsuff= shlibsuff= libmagic=never-match;;
16507 esac
16508 ;;
16509 esac
16510 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16511 shlibpath_overrides_runpath=no
16512 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16513 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16514 hardcode_into_libs=yes
16515 ;;
16516
16517# No shared lib support for Linux oldld, aout, or coff.
16518linux*oldld* | linux*aout* | linux*coff*)
16519 dynamic_linker=no
16520 ;;
16521
cristy99bd5232011-12-07 14:38:20 +000016522# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000016523linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000016524 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016525 need_lib_prefix=no
16526 need_version=no
16527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16528 soname_spec='${libname}${release}${shared_ext}$major'
16529 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16530 shlibpath_var=LD_LIBRARY_PATH
16531 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000016532
cristy73bd4a52010-10-05 11:24:23 +000016533 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000016534 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016535 $as_echo_n "(cached) " >&6
16536else
16537 lt_cv_shlibpath_overrides_runpath=no
16538 save_LDFLAGS=$LDFLAGS
16539 save_libdir=$libdir
16540 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16541 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016543/* end confdefs.h. */
16544
16545int
16546main ()
16547{
16548
16549 ;
16550 return 0;
16551}
16552_ACEOF
16553if ac_fn_c_try_link "$LINENO"; then :
16554 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000016555 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000016556fi
16557fi
16558rm -f core conftest.err conftest.$ac_objext \
16559 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016560 LDFLAGS=$save_LDFLAGS
16561 libdir=$save_libdir
16562
16563fi
16564
16565 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000016566
16567 # This implies no fast_install, which is unacceptable.
16568 # Some rework will be needed to allow for fast_install
16569 # before this can be enabled.
16570 hardcode_into_libs=yes
16571
16572 # Add ABI-specific directories to the system library path.
16573 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16574
16575 # Append ld.so.conf contents to the search path
16576 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000016577 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 +000016578 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000016579
cristy73bd4a52010-10-05 11:24:23 +000016580 fi
16581
16582 # We used to test for /lib/ld.so.1 and disable shared libraries on
16583 # powerpc, because MkLinux only supported shared libraries with the
16584 # GNU dynamic linker. Since this was broken with cross compilers,
16585 # most powerpc-linux boxes support dynamic linking these days and
16586 # people can always --disable-shared, the test was removed, and we
16587 # assume the GNU/Linux dynamic linker is in use.
16588 dynamic_linker='GNU/Linux ld.so'
16589 ;;
16590
16591netbsd*)
16592 version_type=sunos
16593 need_lib_prefix=no
16594 need_version=no
16595 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16597 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16598 dynamic_linker='NetBSD (a.out) ld.so'
16599 else
16600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16601 soname_spec='${libname}${release}${shared_ext}$major'
16602 dynamic_linker='NetBSD ld.elf_so'
16603 fi
16604 shlibpath_var=LD_LIBRARY_PATH
16605 shlibpath_overrides_runpath=yes
16606 hardcode_into_libs=yes
16607 ;;
16608
16609newsos6)
cristy99bd5232011-12-07 14:38:20 +000016610 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16612 shlibpath_var=LD_LIBRARY_PATH
16613 shlibpath_overrides_runpath=yes
16614 ;;
16615
16616*nto* | *qnx*)
16617 version_type=qnx
16618 need_lib_prefix=no
16619 need_version=no
16620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16621 soname_spec='${libname}${release}${shared_ext}$major'
16622 shlibpath_var=LD_LIBRARY_PATH
16623 shlibpath_overrides_runpath=no
16624 hardcode_into_libs=yes
16625 dynamic_linker='ldqnx.so'
16626 ;;
16627
16628openbsd*)
16629 version_type=sunos
16630 sys_lib_dlsearch_path_spec="/usr/lib"
16631 need_lib_prefix=no
16632 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16633 case $host_os in
16634 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16635 *) need_version=no ;;
16636 esac
16637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16638 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16639 shlibpath_var=LD_LIBRARY_PATH
16640 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16641 case $host_os in
16642 openbsd2.[89] | openbsd2.[89].*)
16643 shlibpath_overrides_runpath=no
16644 ;;
16645 *)
16646 shlibpath_overrides_runpath=yes
16647 ;;
16648 esac
16649 else
16650 shlibpath_overrides_runpath=yes
16651 fi
16652 ;;
16653
16654os2*)
16655 libname_spec='$name'
16656 shrext_cmds=".dll"
16657 need_lib_prefix=no
16658 library_names_spec='$libname${shared_ext} $libname.a'
16659 dynamic_linker='OS/2 ld.exe'
16660 shlibpath_var=LIBPATH
16661 ;;
16662
16663osf3* | osf4* | osf5*)
16664 version_type=osf
16665 need_lib_prefix=no
16666 need_version=no
16667 soname_spec='${libname}${release}${shared_ext}$major'
16668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16669 shlibpath_var=LD_LIBRARY_PATH
16670 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16671 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16672 ;;
16673
16674rdos*)
16675 dynamic_linker=no
16676 ;;
16677
16678solaris*)
cristy99bd5232011-12-07 14:38:20 +000016679 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016680 need_lib_prefix=no
16681 need_version=no
16682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16683 soname_spec='${libname}${release}${shared_ext}$major'
16684 shlibpath_var=LD_LIBRARY_PATH
16685 shlibpath_overrides_runpath=yes
16686 hardcode_into_libs=yes
16687 # ldd complains unless libraries are executable
16688 postinstall_cmds='chmod +x $lib'
16689 ;;
16690
16691sunos4*)
16692 version_type=sunos
16693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16694 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16695 shlibpath_var=LD_LIBRARY_PATH
16696 shlibpath_overrides_runpath=yes
16697 if test "$with_gnu_ld" = yes; then
16698 need_lib_prefix=no
16699 fi
16700 need_version=yes
16701 ;;
16702
16703sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000016704 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16706 soname_spec='${libname}${release}${shared_ext}$major'
16707 shlibpath_var=LD_LIBRARY_PATH
16708 case $host_vendor in
16709 sni)
16710 shlibpath_overrides_runpath=no
16711 need_lib_prefix=no
16712 runpath_var=LD_RUN_PATH
16713 ;;
16714 siemens)
16715 need_lib_prefix=no
16716 ;;
16717 motorola)
16718 need_lib_prefix=no
16719 need_version=no
16720 shlibpath_overrides_runpath=no
16721 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16722 ;;
16723 esac
16724 ;;
16725
16726sysv4*MP*)
16727 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000016728 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016729 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16730 soname_spec='$libname${shared_ext}.$major'
16731 shlibpath_var=LD_LIBRARY_PATH
16732 fi
16733 ;;
16734
16735sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16736 version_type=freebsd-elf
16737 need_lib_prefix=no
16738 need_version=no
16739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16740 soname_spec='${libname}${release}${shared_ext}$major'
16741 shlibpath_var=LD_LIBRARY_PATH
16742 shlibpath_overrides_runpath=yes
16743 hardcode_into_libs=yes
16744 if test "$with_gnu_ld" = yes; then
16745 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16746 else
16747 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16748 case $host_os in
16749 sco3.2v5*)
16750 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16751 ;;
16752 esac
16753 fi
16754 sys_lib_dlsearch_path_spec='/usr/lib'
16755 ;;
16756
16757tpf*)
16758 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000016759 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016760 need_lib_prefix=no
16761 need_version=no
16762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16763 shlibpath_var=LD_LIBRARY_PATH
16764 shlibpath_overrides_runpath=no
16765 hardcode_into_libs=yes
16766 ;;
16767
16768uts4*)
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 soname_spec='${libname}${release}${shared_ext}$major'
16772 shlibpath_var=LD_LIBRARY_PATH
16773 ;;
16774
16775*)
16776 dynamic_linker=no
16777 ;;
16778esac
16779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16780$as_echo "$dynamic_linker" >&6; }
16781test "$dynamic_linker" = no && can_build_shared=no
16782
16783variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16784if test "$GCC" = yes; then
16785 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16786fi
16787
16788if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16789 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16790fi
16791if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16792 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16793fi
16794
16795
16796
16797
16798
16799
16800
16801
16802
16803
16804
16805
16806
16807
16808
16809
16810
16811
16812
16813
16814
16815
16816
16817
16818
16819
16820
16821
16822
16823
16824
16825
16826
16827
16828
16829
16830
16831
16832
16833
16834
16835
16836
16837
16838
16839
16840
16841
16842
16843
16844
16845
16846
16847
16848
16849
16850
16851
16852
16853
16854
16855
16856
16857
16858
16859
16860
16861
16862
16863
16864
16865
16866
16867
16868
16869
16870
16871
16872
16873
16874
16875
16876
16877
16878
16879
16880
cristy0c60a692010-11-04 01:09:47 +000016881
16882
16883
16884
16885
cristy73bd4a52010-10-05 11:24:23 +000016886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16887$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16888hardcode_action=
16889if test -n "$hardcode_libdir_flag_spec" ||
16890 test -n "$runpath_var" ||
16891 test "X$hardcode_automatic" = "Xyes" ; then
16892
16893 # We can hardcode non-existent directories.
16894 if test "$hardcode_direct" != no &&
16895 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16896 # have to relink, otherwise we might link with an installed library
16897 # when we should be linking with a yet-to-be-installed one
16898 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
16899 test "$hardcode_minus_L" != no; then
16900 # Linking always hardcodes the temporary library directory.
16901 hardcode_action=relink
16902 else
16903 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16904 hardcode_action=immediate
16905 fi
16906else
16907 # We cannot hardcode anything, or else we can only hardcode existing
16908 # directories.
16909 hardcode_action=unsupported
16910fi
16911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16912$as_echo "$hardcode_action" >&6; }
16913
16914if test "$hardcode_action" = relink ||
16915 test "$inherit_rpath" = yes; then
16916 # Fast installation is not supported
16917 enable_fast_install=no
16918elif test "$shlibpath_overrides_runpath" = yes ||
16919 test "$enable_shared" = no; then
16920 # Fast installation is not necessary
16921 enable_fast_install=needless
16922fi
16923
16924
16925
16926
16927
16928
16929 if test "x$enable_dlopen" != xyes; then
16930 enable_dlopen=unknown
16931 enable_dlopen_self=unknown
16932 enable_dlopen_self_static=unknown
16933else
16934 lt_cv_dlopen=no
16935 lt_cv_dlopen_libs=
16936
16937 case $host_os in
16938 beos*)
16939 lt_cv_dlopen="load_add_on"
16940 lt_cv_dlopen_libs=
16941 lt_cv_dlopen_self=yes
16942 ;;
16943
16944 mingw* | pw32* | cegcc*)
16945 lt_cv_dlopen="LoadLibrary"
16946 lt_cv_dlopen_libs=
16947 ;;
16948
16949 cygwin*)
16950 lt_cv_dlopen="dlopen"
16951 lt_cv_dlopen_libs=
16952 ;;
16953
16954 darwin*)
16955 # if libdl is installed we need to link against it
16956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16957$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016958if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016959 $as_echo_n "(cached) " >&6
16960else
16961 ac_check_lib_save_LIBS=$LIBS
16962LIBS="-ldl $LIBS"
16963cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16964/* end confdefs.h. */
16965
16966/* Override any GCC internal prototype to avoid an error.
16967 Use char because int might match the return type of a GCC
16968 builtin and then its argument prototype would still apply. */
16969#ifdef __cplusplus
16970extern "C"
16971#endif
16972char dlopen ();
16973int
16974main ()
16975{
16976return dlopen ();
16977 ;
16978 return 0;
16979}
16980_ACEOF
16981if ac_fn_c_try_link "$LINENO"; then :
16982 ac_cv_lib_dl_dlopen=yes
16983else
16984 ac_cv_lib_dl_dlopen=no
16985fi
16986rm -f core conftest.err conftest.$ac_objext \
16987 conftest$ac_exeext conftest.$ac_ext
16988LIBS=$ac_check_lib_save_LIBS
16989fi
16990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16991$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016992if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016993 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16994else
16995
16996 lt_cv_dlopen="dyld"
16997 lt_cv_dlopen_libs=
16998 lt_cv_dlopen_self=yes
16999
17000fi
17001
17002 ;;
17003
17004 *)
17005 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000017006if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017007 lt_cv_dlopen="shl_load"
17008else
17009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17010$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017011if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017012 $as_echo_n "(cached) " >&6
17013else
17014 ac_check_lib_save_LIBS=$LIBS
17015LIBS="-ldld $LIBS"
17016cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17017/* end confdefs.h. */
17018
17019/* Override any GCC internal prototype to avoid an error.
17020 Use char because int might match the return type of a GCC
17021 builtin and then its argument prototype would still apply. */
17022#ifdef __cplusplus
17023extern "C"
17024#endif
17025char shl_load ();
17026int
17027main ()
17028{
17029return shl_load ();
17030 ;
17031 return 0;
17032}
17033_ACEOF
17034if ac_fn_c_try_link "$LINENO"; then :
17035 ac_cv_lib_dld_shl_load=yes
17036else
17037 ac_cv_lib_dld_shl_load=no
17038fi
17039rm -f core conftest.err conftest.$ac_objext \
17040 conftest$ac_exeext conftest.$ac_ext
17041LIBS=$ac_check_lib_save_LIBS
17042fi
17043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17044$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000017045if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017046 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17047else
17048 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000017049if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017050 lt_cv_dlopen="dlopen"
17051else
17052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17053$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017054if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017055 $as_echo_n "(cached) " >&6
17056else
17057 ac_check_lib_save_LIBS=$LIBS
17058LIBS="-ldl $LIBS"
17059cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17060/* end confdefs.h. */
17061
17062/* Override any GCC internal prototype to avoid an error.
17063 Use char because int might match the return type of a GCC
17064 builtin and then its argument prototype would still apply. */
17065#ifdef __cplusplus
17066extern "C"
17067#endif
17068char dlopen ();
17069int
17070main ()
17071{
17072return dlopen ();
17073 ;
17074 return 0;
17075}
17076_ACEOF
17077if ac_fn_c_try_link "$LINENO"; then :
17078 ac_cv_lib_dl_dlopen=yes
17079else
17080 ac_cv_lib_dl_dlopen=no
17081fi
17082rm -f core conftest.err conftest.$ac_objext \
17083 conftest$ac_exeext conftest.$ac_ext
17084LIBS=$ac_check_lib_save_LIBS
17085fi
17086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17087$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017088if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017089 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17090else
17091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17092$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017093if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017094 $as_echo_n "(cached) " >&6
17095else
17096 ac_check_lib_save_LIBS=$LIBS
17097LIBS="-lsvld $LIBS"
17098cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17099/* end confdefs.h. */
17100
17101/* Override any GCC internal prototype to avoid an error.
17102 Use char because int might match the return type of a GCC
17103 builtin and then its argument prototype would still apply. */
17104#ifdef __cplusplus
17105extern "C"
17106#endif
17107char dlopen ();
17108int
17109main ()
17110{
17111return dlopen ();
17112 ;
17113 return 0;
17114}
17115_ACEOF
17116if ac_fn_c_try_link "$LINENO"; then :
17117 ac_cv_lib_svld_dlopen=yes
17118else
17119 ac_cv_lib_svld_dlopen=no
17120fi
17121rm -f core conftest.err conftest.$ac_objext \
17122 conftest$ac_exeext conftest.$ac_ext
17123LIBS=$ac_check_lib_save_LIBS
17124fi
17125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17126$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017127if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017128 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17129else
17130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17131$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017132if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017133 $as_echo_n "(cached) " >&6
17134else
17135 ac_check_lib_save_LIBS=$LIBS
17136LIBS="-ldld $LIBS"
17137cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17138/* end confdefs.h. */
17139
17140/* Override any GCC internal prototype to avoid an error.
17141 Use char because int might match the return type of a GCC
17142 builtin and then its argument prototype would still apply. */
17143#ifdef __cplusplus
17144extern "C"
17145#endif
17146char dld_link ();
17147int
17148main ()
17149{
17150return dld_link ();
17151 ;
17152 return 0;
17153}
17154_ACEOF
17155if ac_fn_c_try_link "$LINENO"; then :
17156 ac_cv_lib_dld_dld_link=yes
17157else
17158 ac_cv_lib_dld_dld_link=no
17159fi
17160rm -f core conftest.err conftest.$ac_objext \
17161 conftest$ac_exeext conftest.$ac_ext
17162LIBS=$ac_check_lib_save_LIBS
17163fi
17164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17165$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000017166if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017167 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17168fi
17169
17170
17171fi
17172
17173
17174fi
17175
17176
17177fi
17178
17179
17180fi
17181
17182
17183fi
17184
17185 ;;
17186 esac
17187
17188 if test "x$lt_cv_dlopen" != xno; then
17189 enable_dlopen=yes
17190 else
17191 enable_dlopen=no
17192 fi
17193
17194 case $lt_cv_dlopen in
17195 dlopen)
17196 save_CPPFLAGS="$CPPFLAGS"
17197 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17198
17199 save_LDFLAGS="$LDFLAGS"
17200 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17201
17202 save_LIBS="$LIBS"
17203 LIBS="$lt_cv_dlopen_libs $LIBS"
17204
17205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17206$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017207if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017208 $as_echo_n "(cached) " >&6
17209else
17210 if test "$cross_compiling" = yes; then :
17211 lt_cv_dlopen_self=cross
17212else
17213 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17214 lt_status=$lt_dlunknown
17215 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017216#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017217#include "confdefs.h"
17218
17219#if HAVE_DLFCN_H
17220#include <dlfcn.h>
17221#endif
17222
17223#include <stdio.h>
17224
17225#ifdef RTLD_GLOBAL
17226# define LT_DLGLOBAL RTLD_GLOBAL
17227#else
17228# ifdef DL_GLOBAL
17229# define LT_DLGLOBAL DL_GLOBAL
17230# else
17231# define LT_DLGLOBAL 0
17232# endif
17233#endif
17234
17235/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17236 find out it does not work in some platform. */
17237#ifndef LT_DLLAZY_OR_NOW
17238# ifdef RTLD_LAZY
17239# define LT_DLLAZY_OR_NOW RTLD_LAZY
17240# else
17241# ifdef DL_LAZY
17242# define LT_DLLAZY_OR_NOW DL_LAZY
17243# else
17244# ifdef RTLD_NOW
17245# define LT_DLLAZY_OR_NOW RTLD_NOW
17246# else
17247# ifdef DL_NOW
17248# define LT_DLLAZY_OR_NOW DL_NOW
17249# else
17250# define LT_DLLAZY_OR_NOW 0
17251# endif
17252# endif
17253# endif
17254# endif
17255#endif
17256
cristy0c60a692010-11-04 01:09:47 +000017257/* When -fvisbility=hidden is used, assume the code has been annotated
17258 correspondingly for the symbols needed. */
17259#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017260int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017261#endif
17262
cristyda16f162011-02-19 23:52:17 +000017263int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017264int main ()
17265{
17266 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17267 int status = $lt_dlunknown;
17268
17269 if (self)
17270 {
17271 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017272 else
17273 {
17274 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17275 else puts (dlerror ());
17276 }
cristy73bd4a52010-10-05 11:24:23 +000017277 /* dlclose (self); */
17278 }
17279 else
17280 puts (dlerror ());
17281
17282 return status;
17283}
17284_LT_EOF
17285 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17286 (eval $ac_link) 2>&5
17287 ac_status=$?
17288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17289 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17290 (./conftest; exit; ) >&5 2>/dev/null
17291 lt_status=$?
17292 case x$lt_status in
17293 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17294 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17295 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17296 esac
17297 else :
17298 # compilation failed
17299 lt_cv_dlopen_self=no
17300 fi
17301fi
17302rm -fr conftest*
17303
17304
17305fi
17306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17307$as_echo "$lt_cv_dlopen_self" >&6; }
17308
17309 if test "x$lt_cv_dlopen_self" = xyes; then
17310 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17312$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017313if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017314 $as_echo_n "(cached) " >&6
17315else
17316 if test "$cross_compiling" = yes; then :
17317 lt_cv_dlopen_self_static=cross
17318else
17319 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17320 lt_status=$lt_dlunknown
17321 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017322#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017323#include "confdefs.h"
17324
17325#if HAVE_DLFCN_H
17326#include <dlfcn.h>
17327#endif
17328
17329#include <stdio.h>
17330
17331#ifdef RTLD_GLOBAL
17332# define LT_DLGLOBAL RTLD_GLOBAL
17333#else
17334# ifdef DL_GLOBAL
17335# define LT_DLGLOBAL DL_GLOBAL
17336# else
17337# define LT_DLGLOBAL 0
17338# endif
17339#endif
17340
17341/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17342 find out it does not work in some platform. */
17343#ifndef LT_DLLAZY_OR_NOW
17344# ifdef RTLD_LAZY
17345# define LT_DLLAZY_OR_NOW RTLD_LAZY
17346# else
17347# ifdef DL_LAZY
17348# define LT_DLLAZY_OR_NOW DL_LAZY
17349# else
17350# ifdef RTLD_NOW
17351# define LT_DLLAZY_OR_NOW RTLD_NOW
17352# else
17353# ifdef DL_NOW
17354# define LT_DLLAZY_OR_NOW DL_NOW
17355# else
17356# define LT_DLLAZY_OR_NOW 0
17357# endif
17358# endif
17359# endif
17360# endif
17361#endif
17362
cristy0c60a692010-11-04 01:09:47 +000017363/* When -fvisbility=hidden is used, assume the code has been annotated
17364 correspondingly for the symbols needed. */
17365#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017366int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017367#endif
17368
cristyda16f162011-02-19 23:52:17 +000017369int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017370int main ()
17371{
17372 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17373 int status = $lt_dlunknown;
17374
17375 if (self)
17376 {
17377 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017378 else
17379 {
17380 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17381 else puts (dlerror ());
17382 }
cristy73bd4a52010-10-05 11:24:23 +000017383 /* dlclose (self); */
17384 }
17385 else
17386 puts (dlerror ());
17387
17388 return status;
17389}
17390_LT_EOF
17391 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17392 (eval $ac_link) 2>&5
17393 ac_status=$?
17394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17395 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17396 (./conftest; exit; ) >&5 2>/dev/null
17397 lt_status=$?
17398 case x$lt_status in
17399 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17400 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17401 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17402 esac
17403 else :
17404 # compilation failed
17405 lt_cv_dlopen_self_static=no
17406 fi
17407fi
17408rm -fr conftest*
17409
17410
17411fi
17412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17413$as_echo "$lt_cv_dlopen_self_static" >&6; }
17414 fi
17415
17416 CPPFLAGS="$save_CPPFLAGS"
17417 LDFLAGS="$save_LDFLAGS"
17418 LIBS="$save_LIBS"
17419 ;;
17420 esac
17421
17422 case $lt_cv_dlopen_self in
17423 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17424 *) enable_dlopen_self=unknown ;;
17425 esac
17426
17427 case $lt_cv_dlopen_self_static in
17428 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17429 *) enable_dlopen_self_static=unknown ;;
17430 esac
17431fi
17432
17433
17434
17435
17436
17437
17438
17439
17440
17441
17442
17443
17444
17445
17446
17447
17448
17449striplib=
17450old_striplib=
17451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17452$as_echo_n "checking whether stripping libraries is possible... " >&6; }
17453if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17454 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17455 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17457$as_echo "yes" >&6; }
17458else
17459# FIXME - insert some real tests, host_os isn't really good enough
17460 case $host_os in
17461 darwin*)
17462 if test -n "$STRIP" ; then
17463 striplib="$STRIP -x"
17464 old_striplib="$STRIP -S"
17465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17466$as_echo "yes" >&6; }
17467 else
17468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17469$as_echo "no" >&6; }
17470 fi
17471 ;;
17472 *)
17473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17474$as_echo "no" >&6; }
17475 ;;
17476 esac
17477fi
17478
17479
17480
17481
17482
17483
17484
17485
17486
17487
17488
17489
17490 # Report which library types will actually be built
17491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17492$as_echo_n "checking if libtool supports shared libraries... " >&6; }
17493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17494$as_echo "$can_build_shared" >&6; }
17495
17496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17497$as_echo_n "checking whether to build shared libraries... " >&6; }
17498 test "$can_build_shared" = "no" && enable_shared=no
17499
17500 # On AIX, shared libraries and static libraries use the same namespace, and
17501 # are all built from PIC.
17502 case $host_os in
17503 aix3*)
17504 test "$enable_shared" = yes && enable_static=no
17505 if test -n "$RANLIB"; then
17506 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17507 postinstall_cmds='$RANLIB $lib'
17508 fi
17509 ;;
17510
17511 aix[4-9]*)
17512 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17513 test "$enable_shared" = yes && enable_static=no
17514 fi
17515 ;;
17516 esac
17517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17518$as_echo "$enable_shared" >&6; }
17519
17520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17521$as_echo_n "checking whether to build static libraries... " >&6; }
17522 # Make sure either enable_shared or enable_static is yes.
17523 test "$enable_shared" = yes || enable_static=yes
17524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17525$as_echo "$enable_static" >&6; }
17526
17527
17528
17529
17530fi
17531ac_ext=c
17532ac_cpp='$CPP $CPPFLAGS'
17533ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17534ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17535ac_compiler_gnu=$ac_cv_c_compiler_gnu
17536
17537CC="$lt_save_CC"
17538
cristy0c60a692010-11-04 01:09:47 +000017539 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17540 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17541 (test "X$CXX" != "Xg++"))) ; then
17542 ac_ext=cpp
17543ac_cpp='$CXXCPP $CPPFLAGS'
17544ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17545ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17546ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17548$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17549if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000017550 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000017551 $as_echo_n "(cached) " >&6
17552else
17553 # Double quotes because CXXCPP needs to be expanded
17554 for CXXCPP in "$CXX -E" "/lib/cpp"
17555 do
17556 ac_preproc_ok=false
17557for ac_cxx_preproc_warn_flag in '' yes
17558do
17559 # Use a header file that comes with gcc, so configuring glibc
17560 # with a fresh cross-compiler works.
17561 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17562 # <limits.h> exists even on freestanding compilers.
17563 # On the NeXT, cc -E runs the code through the compiler's parser,
17564 # not just through cpp. "Syntax error" is here to catch this case.
17565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17566/* end confdefs.h. */
17567#ifdef __STDC__
17568# include <limits.h>
17569#else
17570# include <assert.h>
17571#endif
17572 Syntax error
17573_ACEOF
17574if ac_fn_cxx_try_cpp "$LINENO"; then :
17575
17576else
17577 # Broken: fails on valid input.
17578continue
17579fi
cristyda16f162011-02-19 23:52:17 +000017580rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017581
17582 # OK, works on sane cases. Now check whether nonexistent headers
17583 # can be detected and how.
17584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17585/* end confdefs.h. */
17586#include <ac_nonexistent.h>
17587_ACEOF
17588if ac_fn_cxx_try_cpp "$LINENO"; then :
17589 # Broken: success on invalid input.
17590continue
17591else
17592 # Passes both tests.
17593ac_preproc_ok=:
17594break
17595fi
cristyda16f162011-02-19 23:52:17 +000017596rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017597
17598done
17599# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000017600rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017601if $ac_preproc_ok; then :
17602 break
17603fi
17604
17605 done
17606 ac_cv_prog_CXXCPP=$CXXCPP
17607
17608fi
17609 CXXCPP=$ac_cv_prog_CXXCPP
17610else
17611 ac_cv_prog_CXXCPP=$CXXCPP
17612fi
17613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
17614$as_echo "$CXXCPP" >&6; }
17615ac_preproc_ok=false
17616for ac_cxx_preproc_warn_flag in '' yes
17617do
17618 # Use a header file that comes with gcc, so configuring glibc
17619 # with a fresh cross-compiler works.
17620 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17621 # <limits.h> exists even on freestanding compilers.
17622 # On the NeXT, cc -E runs the code through the compiler's parser,
17623 # not just through cpp. "Syntax error" is here to catch this case.
17624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17625/* end confdefs.h. */
17626#ifdef __STDC__
17627# include <limits.h>
17628#else
17629# include <assert.h>
17630#endif
17631 Syntax error
17632_ACEOF
17633if ac_fn_cxx_try_cpp "$LINENO"; then :
17634
17635else
17636 # Broken: fails on valid input.
17637continue
17638fi
cristyda16f162011-02-19 23:52:17 +000017639rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017640
17641 # OK, works on sane cases. Now check whether nonexistent headers
17642 # can be detected and how.
17643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17644/* end confdefs.h. */
17645#include <ac_nonexistent.h>
17646_ACEOF
17647if ac_fn_cxx_try_cpp "$LINENO"; then :
17648 # Broken: success on invalid input.
17649continue
17650else
17651 # Passes both tests.
17652ac_preproc_ok=:
17653break
17654fi
cristyda16f162011-02-19 23:52:17 +000017655rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017656
17657done
17658# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000017659rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017660if $ac_preproc_ok; then :
17661
17662else
17663 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17664$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17665as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
17666See \`config.log' for more details" "$LINENO" 5; }
17667fi
17668
17669ac_ext=c
17670ac_cpp='$CPP $CPPFLAGS'
17671ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17672ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17673ac_compiler_gnu=$ac_cv_c_compiler_gnu
17674
17675else
17676 _lt_caught_CXX_error=yes
17677fi
cristy73bd4a52010-10-05 11:24:23 +000017678
17679ac_ext=cpp
17680ac_cpp='$CXXCPP $CPPFLAGS'
17681ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17682ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17683ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17684
17685archive_cmds_need_lc_CXX=no
17686allow_undefined_flag_CXX=
17687always_export_symbols_CXX=no
17688archive_expsym_cmds_CXX=
17689compiler_needs_object_CXX=no
17690export_dynamic_flag_spec_CXX=
17691hardcode_direct_CXX=no
17692hardcode_direct_absolute_CXX=no
17693hardcode_libdir_flag_spec_CXX=
cristy73bd4a52010-10-05 11:24:23 +000017694hardcode_libdir_separator_CXX=
17695hardcode_minus_L_CXX=no
17696hardcode_shlibpath_var_CXX=unsupported
17697hardcode_automatic_CXX=no
17698inherit_rpath_CXX=no
17699module_cmds_CXX=
17700module_expsym_cmds_CXX=
17701link_all_deplibs_CXX=unknown
17702old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000017703reload_flag_CXX=$reload_flag
17704reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000017705no_undefined_flag_CXX=
17706whole_archive_flag_spec_CXX=
17707enable_shared_with_static_runtimes_CXX=no
17708
17709# Source file extension for C++ test sources.
17710ac_ext=cpp
17711
17712# Object file extension for compiled C++ test sources.
17713objext=o
17714objext_CXX=$objext
17715
17716# No sense in running all these tests if we already determined that
17717# the CXX compiler isn't working. Some variables (like enable_shared)
17718# are currently assumed to apply to all compilers on this platform,
17719# and will be corrupted by setting them based on a non-working compiler.
17720if test "$_lt_caught_CXX_error" != yes; then
17721 # Code to be used in simple compile tests
17722 lt_simple_compile_test_code="int some_variable = 0;"
17723
17724 # Code to be used in simple link tests
17725 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
17726
17727 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17728
17729
17730
17731
17732
17733
17734# If no C compiler was specified, use CC.
17735LTCC=${LTCC-"$CC"}
17736
17737# If no C compiler flags were specified, use CFLAGS.
17738LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17739
17740# Allow CC to be a program name with arguments.
17741compiler=$CC
17742
17743
17744 # save warnings/boilerplate of simple test code
17745 ac_outfile=conftest.$ac_objext
17746echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17747eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17748_lt_compiler_boilerplate=`cat conftest.err`
17749$RM conftest*
17750
17751 ac_outfile=conftest.$ac_objext
17752echo "$lt_simple_link_test_code" >conftest.$ac_ext
17753eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17754_lt_linker_boilerplate=`cat conftest.err`
17755$RM -r conftest*
17756
17757
17758 # Allow CC to be a program name with arguments.
17759 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000017760 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017761 lt_save_LD=$LD
17762 lt_save_GCC=$GCC
17763 GCC=$GXX
17764 lt_save_with_gnu_ld=$with_gnu_ld
17765 lt_save_path_LD=$lt_cv_path_LD
17766 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17767 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17768 else
17769 $as_unset lt_cv_prog_gnu_ld
17770 fi
17771 if test -n "${lt_cv_path_LDCXX+set}"; then
17772 lt_cv_path_LD=$lt_cv_path_LDCXX
17773 else
17774 $as_unset lt_cv_path_LD
17775 fi
17776 test -z "${LDCXX+set}" || LD=$LDCXX
17777 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000017778 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017779 compiler=$CC
17780 compiler_CXX=$CC
17781 for cc_temp in $compiler""; do
17782 case $cc_temp in
17783 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17784 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17785 \-*) ;;
17786 *) break;;
17787 esac
17788done
cristy0c60a692010-11-04 01:09:47 +000017789cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000017790
17791
17792 if test -n "$compiler"; then
17793 # We don't want -fno-exception when compiling C++ code, so set the
17794 # no_builtin_flag separately
17795 if test "$GXX" = yes; then
17796 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17797 else
17798 lt_prog_compiler_no_builtin_flag_CXX=
17799 fi
17800
17801 if test "$GXX" = yes; then
17802 # Set up default GNU C++ configuration
17803
17804
17805
17806# Check whether --with-gnu-ld was given.
17807if test "${with_gnu_ld+set}" = set; then :
17808 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17809else
17810 with_gnu_ld=no
17811fi
17812
17813ac_prog=ld
17814if test "$GCC" = yes; then
17815 # Check if gcc -print-prog-name=ld gives a path.
17816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17817$as_echo_n "checking for ld used by $CC... " >&6; }
17818 case $host in
17819 *-*-mingw*)
17820 # gcc leaves a trailing carriage return which upsets mingw
17821 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17822 *)
17823 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17824 esac
17825 case $ac_prog in
17826 # Accept absolute paths.
17827 [\\/]* | ?:[\\/]*)
17828 re_direlt='/[^/][^/]*/\.\./'
17829 # Canonicalize the pathname of ld
17830 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17831 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17832 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17833 done
17834 test -z "$LD" && LD="$ac_prog"
17835 ;;
17836 "")
17837 # If it fails, then pretend we aren't using GCC.
17838 ac_prog=ld
17839 ;;
17840 *)
17841 # If it is relative, then search for the first ld in PATH.
17842 with_gnu_ld=unknown
17843 ;;
17844 esac
17845elif test "$with_gnu_ld" = yes; then
17846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17847$as_echo_n "checking for GNU ld... " >&6; }
17848else
17849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17850$as_echo_n "checking for non-GNU ld... " >&6; }
17851fi
cristyda16f162011-02-19 23:52:17 +000017852if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017853 $as_echo_n "(cached) " >&6
17854else
17855 if test -z "$LD"; then
17856 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17857 for ac_dir in $PATH; do
17858 IFS="$lt_save_ifs"
17859 test -z "$ac_dir" && ac_dir=.
17860 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17861 lt_cv_path_LD="$ac_dir/$ac_prog"
17862 # Check to see if the program is GNU ld. I'd rather use --version,
17863 # but apparently some variants of GNU ld only accept -v.
17864 # Break only if it was the GNU/non-GNU ld that we prefer.
17865 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17866 *GNU* | *'with BFD'*)
17867 test "$with_gnu_ld" != no && break
17868 ;;
17869 *)
17870 test "$with_gnu_ld" != yes && break
17871 ;;
17872 esac
17873 fi
17874 done
17875 IFS="$lt_save_ifs"
17876else
17877 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17878fi
17879fi
17880
17881LD="$lt_cv_path_LD"
17882if test -n "$LD"; then
17883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17884$as_echo "$LD" >&6; }
17885else
17886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17887$as_echo "no" >&6; }
17888fi
cristy98dddb52010-11-04 00:30:15 +000017889test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000017890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17891$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017892if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017893 $as_echo_n "(cached) " >&6
17894else
17895 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17896case `$LD -v 2>&1 </dev/null` in
17897*GNU* | *'with BFD'*)
17898 lt_cv_prog_gnu_ld=yes
17899 ;;
17900*)
17901 lt_cv_prog_gnu_ld=no
17902 ;;
17903esac
17904fi
17905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17906$as_echo "$lt_cv_prog_gnu_ld" >&6; }
17907with_gnu_ld=$lt_cv_prog_gnu_ld
17908
17909
17910
17911
17912
17913
17914
17915 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17916 # archiving commands below assume that GNU ld is being used.
17917 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000017918 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17919 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 +000017920
17921 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17922 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17923
17924 # If archive_cmds runs LD, not CC, wlarc should be empty
17925 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17926 # investigate it a little bit more. (MM)
17927 wlarc='${wl}'
17928
17929 # ancient GNU ld didn't support --whole-archive et. al.
17930 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17931 $GREP 'no-whole-archive' > /dev/null; then
17932 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17933 else
17934 whole_archive_flag_spec_CXX=
17935 fi
17936 else
17937 with_gnu_ld=no
17938 wlarc=
17939
17940 # A generic and very simple default shared library creation
17941 # command for GNU C++ for the case where it uses the native
17942 # linker, instead of GNU ld. If possible, this setting should
17943 # overridden to take advantage of the native linker features on
17944 # the platform it is being used on.
17945 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17946 fi
17947
17948 # Commands to make compiler produce verbose output that lists
17949 # what "hidden" libraries, object files and flags are used when
17950 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017951 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017952
17953 else
17954 GXX=no
17955 with_gnu_ld=no
17956 wlarc=
17957 fi
17958
17959 # PORTME: fill in a description of your system's C++ link characteristics
17960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17961$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17962 ld_shlibs_CXX=yes
17963 case $host_os in
17964 aix3*)
17965 # FIXME: insert proper C++ library support
17966 ld_shlibs_CXX=no
17967 ;;
17968 aix[4-9]*)
17969 if test "$host_cpu" = ia64; then
17970 # On IA64, the linker does run time linking by default, so we don't
17971 # have to do anything special.
17972 aix_use_runtimelinking=no
17973 exp_sym_flag='-Bexport'
17974 no_entry_flag=""
17975 else
17976 aix_use_runtimelinking=no
17977
17978 # Test if we are trying to use run time linking or normal
17979 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17980 # need to do runtime linking.
17981 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17982 for ld_flag in $LDFLAGS; do
17983 case $ld_flag in
17984 *-brtl*)
17985 aix_use_runtimelinking=yes
17986 break
17987 ;;
17988 esac
17989 done
17990 ;;
17991 esac
17992
17993 exp_sym_flag='-bexport'
17994 no_entry_flag='-bnoentry'
17995 fi
17996
17997 # When large executables or shared objects are built, AIX ld can
17998 # have problems creating the table of contents. If linking a library
17999 # or program results in "error TOC overflow" add -mminimal-toc to
18000 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18001 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18002
18003 archive_cmds_CXX=''
18004 hardcode_direct_CXX=yes
18005 hardcode_direct_absolute_CXX=yes
18006 hardcode_libdir_separator_CXX=':'
18007 link_all_deplibs_CXX=yes
18008 file_list_spec_CXX='${wl}-f,'
18009
18010 if test "$GXX" = yes; then
18011 case $host_os in aix4.[012]|aix4.[012].*)
18012 # We only want to do this on AIX 4.2 and lower, the check
18013 # below for broken collect2 doesn't work under 4.3+
18014 collect2name=`${CC} -print-prog-name=collect2`
18015 if test -f "$collect2name" &&
18016 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18017 then
18018 # We have reworked collect2
18019 :
18020 else
18021 # We have old collect2
18022 hardcode_direct_CXX=unsupported
18023 # It fails to find uninstalled libraries when the uninstalled
18024 # path is not listed in the libpath. Setting hardcode_minus_L
18025 # to unsupported forces relinking
18026 hardcode_minus_L_CXX=yes
18027 hardcode_libdir_flag_spec_CXX='-L$libdir'
18028 hardcode_libdir_separator_CXX=
18029 fi
18030 esac
18031 shared_flag='-shared'
18032 if test "$aix_use_runtimelinking" = yes; then
18033 shared_flag="$shared_flag "'${wl}-G'
18034 fi
18035 else
18036 # not using gcc
18037 if test "$host_cpu" = ia64; then
18038 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18039 # chokes on -Wl,-G. The following line is correct:
18040 shared_flag='-G'
18041 else
18042 if test "$aix_use_runtimelinking" = yes; then
18043 shared_flag='${wl}-G'
18044 else
18045 shared_flag='${wl}-bM:SRE'
18046 fi
18047 fi
18048 fi
18049
18050 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18051 # It seems that -bexpall does not export symbols beginning with
18052 # underscore (_), so it is better to generate a list of symbols to
18053 # export.
18054 always_export_symbols_CXX=yes
18055 if test "$aix_use_runtimelinking" = yes; then
18056 # Warning - without using the other runtime loading flags (-brtl),
18057 # -berok will link without error, but may produce a broken library.
18058 allow_undefined_flag_CXX='-berok'
18059 # Determine the default libpath from the value encoded in an empty
18060 # executable.
cristyda16f162011-02-19 23:52:17 +000018061 if test "${lt_cv_aix_libpath+set}" = set; then
18062 aix_libpath=$lt_cv_aix_libpath
18063else
18064 if ${lt_cv_aix_libpath__CXX+:} false; then :
18065 $as_echo_n "(cached) " >&6
18066else
18067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018068/* end confdefs.h. */
18069
18070int
18071main ()
18072{
18073
18074 ;
18075 return 0;
18076}
18077_ACEOF
18078if ac_fn_cxx_try_link "$LINENO"; then :
18079
cristyda16f162011-02-19 23:52:17 +000018080 lt_aix_libpath_sed='
18081 /Import File Strings/,/^$/ {
18082 /^0/ {
18083 s/^0 *\([^ ]*\) *$/\1/
18084 p
18085 }
18086 }'
18087 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18088 # Check for a 64-bit object if we didn't find anything.
18089 if test -z "$lt_cv_aix_libpath__CXX"; then
18090 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18091 fi
cristy73bd4a52010-10-05 11:24:23 +000018092fi
18093rm -f core conftest.err conftest.$ac_objext \
18094 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018095 if test -z "$lt_cv_aix_libpath__CXX"; then
18096 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18097 fi
18098
18099fi
18100
18101 aix_libpath=$lt_cv_aix_libpath__CXX
18102fi
cristy73bd4a52010-10-05 11:24:23 +000018103
18104 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18105
cristy0c60a692010-11-04 01:09:47 +000018106 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 +000018107 else
18108 if test "$host_cpu" = ia64; then
18109 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18110 allow_undefined_flag_CXX="-z nodefs"
18111 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"
18112 else
18113 # Determine the default libpath from the value encoded in an
18114 # empty executable.
cristyda16f162011-02-19 23:52:17 +000018115 if test "${lt_cv_aix_libpath+set}" = set; then
18116 aix_libpath=$lt_cv_aix_libpath
18117else
18118 if ${lt_cv_aix_libpath__CXX+:} false; then :
18119 $as_echo_n "(cached) " >&6
18120else
18121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018122/* end confdefs.h. */
18123
18124int
18125main ()
18126{
18127
18128 ;
18129 return 0;
18130}
18131_ACEOF
18132if ac_fn_cxx_try_link "$LINENO"; then :
18133
cristyda16f162011-02-19 23:52:17 +000018134 lt_aix_libpath_sed='
18135 /Import File Strings/,/^$/ {
18136 /^0/ {
18137 s/^0 *\([^ ]*\) *$/\1/
18138 p
18139 }
18140 }'
18141 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18142 # Check for a 64-bit object if we didn't find anything.
18143 if test -z "$lt_cv_aix_libpath__CXX"; then
18144 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18145 fi
cristy73bd4a52010-10-05 11:24:23 +000018146fi
18147rm -f core conftest.err conftest.$ac_objext \
18148 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018149 if test -z "$lt_cv_aix_libpath__CXX"; then
18150 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18151 fi
18152
18153fi
18154
18155 aix_libpath=$lt_cv_aix_libpath__CXX
18156fi
cristy73bd4a52010-10-05 11:24:23 +000018157
18158 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18159 # Warning - without using the other run time loading flags,
18160 # -berok will link without error, but may produce a broken library.
18161 no_undefined_flag_CXX=' ${wl}-bernotok'
18162 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000018163 if test "$with_gnu_ld" = yes; then
18164 # We only use this code for GNU lds that support --whole-archive.
18165 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18166 else
18167 # Exported symbols can be pulled into shared objects from archives
18168 whole_archive_flag_spec_CXX='$convenience'
18169 fi
cristy73bd4a52010-10-05 11:24:23 +000018170 archive_cmds_need_lc_CXX=yes
18171 # This is similar to how AIX traditionally builds its shared
18172 # libraries.
18173 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'
18174 fi
18175 fi
18176 ;;
18177
18178 beos*)
18179 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18180 allow_undefined_flag_CXX=unsupported
18181 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18182 # support --undefined. This deserves some investigation. FIXME
18183 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18184 else
18185 ld_shlibs_CXX=no
18186 fi
18187 ;;
18188
18189 chorus*)
18190 case $cc_basename in
18191 *)
18192 # FIXME: insert proper C++ library support
18193 ld_shlibs_CXX=no
18194 ;;
18195 esac
18196 ;;
18197
18198 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000018199 case $GXX,$cc_basename in
18200 ,cl* | no,cl*)
18201 # Native MSVC
18202 # hardcode_libdir_flag_spec is actually meaningless, as there is
18203 # no search path for DLLs.
18204 hardcode_libdir_flag_spec_CXX=' '
18205 allow_undefined_flag_CXX=unsupported
18206 always_export_symbols_CXX=yes
18207 file_list_spec_CXX='@'
18208 # Tell ltmain to make .lib files, not .a files.
18209 libext=lib
18210 # Tell ltmain to make .dll files, not .so files.
18211 shrext_cmds=".dll"
18212 # FIXME: Setting linknames here is a bad hack.
18213 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
18214 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18215 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
18216 else
18217 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
18218 fi~
18219 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
18220 linknames='
18221 # The linker will not automatically build a static lib if we build a DLL.
18222 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
18223 enable_shared_with_static_runtimes_CXX=yes
18224 # Don't use ranlib
18225 old_postinstall_cmds_CXX='chmod 644 $oldlib'
18226 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
18227 lt_tool_outputfile="@TOOL_OUTPUT@"~
18228 case $lt_outputfile in
18229 *.exe|*.EXE) ;;
18230 *)
18231 lt_outputfile="$lt_outputfile.exe"
18232 lt_tool_outputfile="$lt_tool_outputfile.exe"
18233 ;;
18234 esac~
18235 func_to_tool_file "$lt_outputfile"~
18236 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
18237 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
18238 $RM "$lt_outputfile.manifest";
18239 fi'
18240 ;;
18241 *)
18242 # g++
18243 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18244 # as there is no search path for DLLs.
18245 hardcode_libdir_flag_spec_CXX='-L$libdir'
18246 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18247 allow_undefined_flag_CXX=unsupported
18248 always_export_symbols_CXX=no
18249 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000018250
cristyda16f162011-02-19 23:52:17 +000018251 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18252 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'
18253 # If the export-symbols file already is a .def file (1st line
18254 # is EXPORTS), use it as is; otherwise, prepend...
18255 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18256 cp $export_symbols $output_objdir/$soname.def;
18257 else
18258 echo EXPORTS > $output_objdir/$soname.def;
18259 cat $export_symbols >> $output_objdir/$soname.def;
18260 fi~
18261 $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'
18262 else
18263 ld_shlibs_CXX=no
18264 fi
18265 ;;
18266 esac
18267 ;;
cristy73bd4a52010-10-05 11:24:23 +000018268 darwin* | rhapsody*)
18269
18270
18271 archive_cmds_need_lc_CXX=no
18272 hardcode_direct_CXX=no
18273 hardcode_automatic_CXX=yes
18274 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000018275 if test "$lt_cv_ld_force_load" = "yes"; then
18276 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 +000018277
cristy0c60a692010-11-04 01:09:47 +000018278 else
18279 whole_archive_flag_spec_CXX=''
18280 fi
cristy73bd4a52010-10-05 11:24:23 +000018281 link_all_deplibs_CXX=yes
18282 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18283 case $cc_basename in
18284 ifort*) _lt_dar_can_shared=yes ;;
18285 *) _lt_dar_can_shared=$GCC ;;
18286 esac
18287 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000018288 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018289 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}"
18290 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18291 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}"
18292 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}"
18293 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18294 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}"
18295 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}"
18296 fi
18297
18298 else
18299 ld_shlibs_CXX=no
18300 fi
18301
18302 ;;
18303
18304 dgux*)
18305 case $cc_basename in
18306 ec++*)
18307 # FIXME: insert proper C++ library support
18308 ld_shlibs_CXX=no
18309 ;;
18310 ghcx*)
18311 # Green Hills C++ Compiler
18312 # FIXME: insert proper C++ library support
18313 ld_shlibs_CXX=no
18314 ;;
18315 *)
18316 # FIXME: insert proper C++ library support
18317 ld_shlibs_CXX=no
18318 ;;
18319 esac
18320 ;;
18321
cristy99bd5232011-12-07 14:38:20 +000018322 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000018323 # C++ shared libraries reported to be fairly broken before
18324 # switch to ELF
18325 ld_shlibs_CXX=no
18326 ;;
18327
18328 freebsd-elf*)
18329 archive_cmds_need_lc_CXX=no
18330 ;;
18331
18332 freebsd* | dragonfly*)
18333 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18334 # conventions
18335 ld_shlibs_CXX=yes
18336 ;;
18337
18338 gnu*)
18339 ;;
18340
cristy0c60a692010-11-04 01:09:47 +000018341 haiku*)
18342 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18343 link_all_deplibs_CXX=yes
18344 ;;
18345
cristy73bd4a52010-10-05 11:24:23 +000018346 hpux9*)
18347 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18348 hardcode_libdir_separator_CXX=:
18349 export_dynamic_flag_spec_CXX='${wl}-E'
18350 hardcode_direct_CXX=yes
18351 hardcode_minus_L_CXX=yes # Not in the search PATH,
18352 # but as the default
18353 # location of the library.
18354
18355 case $cc_basename in
18356 CC*)
18357 # FIXME: insert proper C++ library support
18358 ld_shlibs_CXX=no
18359 ;;
18360 aCC*)
18361 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'
18362 # Commands to make compiler produce verbose output that lists
18363 # what "hidden" libraries, object files and flags are used when
18364 # linking a shared library.
18365 #
18366 # There doesn't appear to be a way to prevent this compiler from
18367 # explicitly linking system object files so we need to strip them
18368 # from the output so that they don't get included in the library
18369 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018370 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 +000018371 ;;
18372 *)
18373 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000018374 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 +000018375 else
18376 # FIXME: insert proper C++ library support
18377 ld_shlibs_CXX=no
18378 fi
18379 ;;
18380 esac
18381 ;;
18382
18383 hpux10*|hpux11*)
18384 if test $with_gnu_ld = no; then
18385 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18386 hardcode_libdir_separator_CXX=:
18387
18388 case $host_cpu in
18389 hppa*64*|ia64*)
18390 ;;
18391 *)
18392 export_dynamic_flag_spec_CXX='${wl}-E'
18393 ;;
18394 esac
18395 fi
18396 case $host_cpu in
18397 hppa*64*|ia64*)
18398 hardcode_direct_CXX=no
18399 hardcode_shlibpath_var_CXX=no
18400 ;;
18401 *)
18402 hardcode_direct_CXX=yes
18403 hardcode_direct_absolute_CXX=yes
18404 hardcode_minus_L_CXX=yes # Not in the search PATH,
18405 # but as the default
18406 # location of the library.
18407 ;;
18408 esac
18409
18410 case $cc_basename in
18411 CC*)
18412 # FIXME: insert proper C++ library support
18413 ld_shlibs_CXX=no
18414 ;;
18415 aCC*)
18416 case $host_cpu in
18417 hppa*64*)
18418 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18419 ;;
18420 ia64*)
18421 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18422 ;;
18423 *)
18424 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18425 ;;
18426 esac
18427 # Commands to make compiler produce verbose output that lists
18428 # what "hidden" libraries, object files and flags are used when
18429 # linking a shared library.
18430 #
18431 # There doesn't appear to be a way to prevent this compiler from
18432 # explicitly linking system object files so we need to strip them
18433 # from the output so that they don't get included in the library
18434 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018435 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 +000018436 ;;
18437 *)
18438 if test "$GXX" = yes; then
18439 if test $with_gnu_ld = no; then
18440 case $host_cpu in
18441 hppa*64*)
18442 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18443 ;;
18444 ia64*)
cristyda16f162011-02-19 23:52:17 +000018445 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 +000018446 ;;
18447 *)
cristyda16f162011-02-19 23:52:17 +000018448 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 +000018449 ;;
18450 esac
18451 fi
18452 else
18453 # FIXME: insert proper C++ library support
18454 ld_shlibs_CXX=no
18455 fi
18456 ;;
18457 esac
18458 ;;
18459
18460 interix[3-9]*)
18461 hardcode_direct_CXX=no
18462 hardcode_shlibpath_var_CXX=no
18463 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18464 export_dynamic_flag_spec_CXX='${wl}-E'
18465 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18466 # Instead, shared libraries are loaded at an image base (0x10000000 by
18467 # default) and relocated if they conflict, which is a slow very memory
18468 # consuming and fragmenting process. To avoid this, we pick a random,
18469 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18470 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18471 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'
18472 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'
18473 ;;
18474 irix5* | irix6*)
18475 case $cc_basename in
18476 CC*)
18477 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000018478 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 +000018479
18480 # Archives containing C++ object files must be created using
18481 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18482 # necessary to make sure instantiated templates are included
18483 # in the archive.
18484 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18485 ;;
18486 *)
18487 if test "$GXX" = yes; then
18488 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000018489 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 +000018490 else
cristyda16f162011-02-19 23:52:17 +000018491 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 +000018492 fi
18493 fi
18494 link_all_deplibs_CXX=yes
18495 ;;
18496 esac
18497 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18498 hardcode_libdir_separator_CXX=:
18499 inherit_rpath_CXX=yes
18500 ;;
18501
cristy0c60a692010-11-04 01:09:47 +000018502 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000018503 case $cc_basename in
18504 KCC*)
18505 # Kuck and Associates, Inc. (KAI) C++ Compiler
18506
18507 # KCC will only create a shared library if the output file
18508 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18509 # to its proper name (with version) after linking.
18510 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'
18511 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'
18512 # Commands to make compiler produce verbose output that lists
18513 # what "hidden" libraries, object files and flags are used when
18514 # linking a shared library.
18515 #
18516 # There doesn't appear to be a way to prevent this compiler from
18517 # explicitly linking system object files so we need to strip them
18518 # from the output so that they don't get included in the library
18519 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018520 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 +000018521
18522 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18523 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18524
18525 # Archives containing C++ object files must be created using
18526 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18527 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18528 ;;
18529 icpc* | ecpc* )
18530 # Intel C++
18531 with_gnu_ld=yes
18532 # version 8.0 and above of icpc choke on multiply defined symbols
18533 # if we add $predep_objects and $postdep_objects, however 7.1 and
18534 # earlier do not add the objects themselves.
18535 case `$CC -V 2>&1` in
18536 *"Version 7."*)
18537 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18538 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'
18539 ;;
18540 *) # Version 8.0 or newer
18541 tmp_idyn=
18542 case $host_cpu in
18543 ia64*) tmp_idyn=' -i_dynamic';;
18544 esac
18545 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18546 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'
18547 ;;
18548 esac
18549 archive_cmds_need_lc_CXX=no
18550 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18551 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18552 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18553 ;;
18554 pgCC* | pgcpp*)
18555 # Portland Group C++ compiler
18556 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000018557 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000018558 prelink_cmds_CXX='tpldir=Template.dir~
18559 rm -rf $tpldir~
18560 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018561 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000018562 old_archive_cmds_CXX='tpldir=Template.dir~
18563 rm -rf $tpldir~
18564 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018565 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000018566 $RANLIB $oldlib'
18567 archive_cmds_CXX='tpldir=Template.dir~
18568 rm -rf $tpldir~
18569 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018570 $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 +000018571 archive_expsym_cmds_CXX='tpldir=Template.dir~
18572 rm -rf $tpldir~
18573 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018574 $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 +000018575 ;;
cristy0c60a692010-11-04 01:09:47 +000018576 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000018577 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18578 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'
18579 ;;
18580 esac
18581
18582 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18583 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000018584 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 +000018585 ;;
18586 cxx*)
18587 # Compaq C++
18588 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18589 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'
18590
18591 runpath_var=LD_RUN_PATH
18592 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18593 hardcode_libdir_separator_CXX=:
18594
18595 # Commands to make compiler produce verbose output that lists
18596 # what "hidden" libraries, object files and flags are used when
18597 # linking a shared library.
18598 #
18599 # There doesn't appear to be a way to prevent this compiler from
18600 # explicitly linking system object files so we need to strip them
18601 # from the output so that they don't get included in the library
18602 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018603 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 +000018604 ;;
cristy0c60a692010-11-04 01:09:47 +000018605 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000018606 # IBM XL 8.0 on PPC, with GNU ld
18607 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18608 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18609 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18610 if test "x$supports_anon_versioning" = xyes; then
18611 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
18612 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18613 echo "local: *; };" >> $output_objdir/$libname.ver~
18614 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18615 fi
18616 ;;
18617 *)
18618 case `$CC -V 2>&1 | sed 5q` in
18619 *Sun\ C*)
18620 # Sun C++ 5.9
18621 no_undefined_flag_CXX=' -zdefs'
18622 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18623 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'
18624 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000018625 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 +000018626 compiler_needs_object_CXX=yes
18627
18628 # Not sure whether something based on
18629 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18630 # would be better.
cristy0c60a692010-11-04 01:09:47 +000018631 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000018632
18633 # Archives containing C++ object files must be created using
18634 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18635 # necessary to make sure instantiated templates are included
18636 # in the archive.
18637 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18638 ;;
18639 esac
18640 ;;
18641 esac
18642 ;;
18643
18644 lynxos*)
18645 # FIXME: insert proper C++ library support
18646 ld_shlibs_CXX=no
18647 ;;
18648
18649 m88k*)
18650 # FIXME: insert proper C++ library support
18651 ld_shlibs_CXX=no
18652 ;;
18653
18654 mvs*)
18655 case $cc_basename in
18656 cxx*)
18657 # FIXME: insert proper C++ library support
18658 ld_shlibs_CXX=no
18659 ;;
18660 *)
18661 # FIXME: insert proper C++ library support
18662 ld_shlibs_CXX=no
18663 ;;
18664 esac
18665 ;;
18666
18667 netbsd*)
18668 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18669 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18670 wlarc=
18671 hardcode_libdir_flag_spec_CXX='-R$libdir'
18672 hardcode_direct_CXX=yes
18673 hardcode_shlibpath_var_CXX=no
18674 fi
18675 # Workaround some broken pre-1.5 toolchains
18676 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18677 ;;
18678
18679 *nto* | *qnx*)
18680 ld_shlibs_CXX=yes
18681 ;;
18682
18683 openbsd2*)
18684 # C++ shared libraries are fairly broken
18685 ld_shlibs_CXX=no
18686 ;;
18687
18688 openbsd*)
18689 if test -f /usr/libexec/ld.so; then
18690 hardcode_direct_CXX=yes
18691 hardcode_shlibpath_var_CXX=no
18692 hardcode_direct_absolute_CXX=yes
18693 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18694 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18695 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18696 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18697 export_dynamic_flag_spec_CXX='${wl}-E'
18698 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18699 fi
cristy0c60a692010-11-04 01:09:47 +000018700 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018701 else
18702 ld_shlibs_CXX=no
18703 fi
18704 ;;
18705
18706 osf3* | osf4* | osf5*)
18707 case $cc_basename in
18708 KCC*)
18709 # Kuck and Associates, Inc. (KAI) C++ Compiler
18710
18711 # KCC will only create a shared library if the output file
18712 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18713 # to its proper name (with version) after linking.
18714 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'
18715
18716 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18717 hardcode_libdir_separator_CXX=:
18718
18719 # Archives containing C++ object files must be created using
18720 # the KAI C++ compiler.
18721 case $host in
18722 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18723 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18724 esac
18725 ;;
18726 RCC*)
18727 # Rational C++ 2.4.1
18728 # FIXME: insert proper C++ library support
18729 ld_shlibs_CXX=no
18730 ;;
18731 cxx*)
18732 case $host in
18733 osf3*)
18734 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000018735 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 +000018736 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18737 ;;
18738 *)
18739 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000018740 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 +000018741 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18742 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000018743 $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 +000018744 $RM $lib.exp'
18745 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18746 ;;
18747 esac
18748
18749 hardcode_libdir_separator_CXX=:
18750
18751 # Commands to make compiler produce verbose output that lists
18752 # what "hidden" libraries, object files and flags are used when
18753 # linking a shared library.
18754 #
18755 # There doesn't appear to be a way to prevent this compiler from
18756 # explicitly linking system object files so we need to strip them
18757 # from the output so that they don't get included in the library
18758 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018759 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 +000018760 ;;
18761 *)
18762 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18763 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18764 case $host in
18765 osf3*)
cristy0c60a692010-11-04 01:09:47 +000018766 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 +000018767 ;;
18768 *)
cristyda16f162011-02-19 23:52:17 +000018769 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 +000018770 ;;
18771 esac
18772
18773 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18774 hardcode_libdir_separator_CXX=:
18775
18776 # Commands to make compiler produce verbose output that lists
18777 # what "hidden" libraries, object files and flags are used when
18778 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018779 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018780
18781 else
18782 # FIXME: insert proper C++ library support
18783 ld_shlibs_CXX=no
18784 fi
18785 ;;
18786 esac
18787 ;;
18788
18789 psos*)
18790 # FIXME: insert proper C++ library support
18791 ld_shlibs_CXX=no
18792 ;;
18793
18794 sunos4*)
18795 case $cc_basename in
18796 CC*)
18797 # Sun C++ 4.x
18798 # FIXME: insert proper C++ library support
18799 ld_shlibs_CXX=no
18800 ;;
18801 lcc*)
18802 # Lucid
18803 # FIXME: insert proper C++ library support
18804 ld_shlibs_CXX=no
18805 ;;
18806 *)
18807 # FIXME: insert proper C++ library support
18808 ld_shlibs_CXX=no
18809 ;;
18810 esac
18811 ;;
18812
18813 solaris*)
18814 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018815 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018816 # Sun C++ 4.2, 5.x and Centerline C++
18817 archive_cmds_need_lc_CXX=yes
18818 no_undefined_flag_CXX=' -zdefs'
18819 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18820 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18821 $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'
18822
18823 hardcode_libdir_flag_spec_CXX='-R$libdir'
18824 hardcode_shlibpath_var_CXX=no
18825 case $host_os in
18826 solaris2.[0-5] | solaris2.[0-5].*) ;;
18827 *)
18828 # The compiler driver will combine and reorder linker options,
18829 # but understands `-z linker_flag'.
18830 # Supported since Solaris 2.6 (maybe 2.5.1?)
18831 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18832 ;;
18833 esac
18834 link_all_deplibs_CXX=yes
18835
cristy0c60a692010-11-04 01:09:47 +000018836 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000018837
18838 # Archives containing C++ object files must be created using
18839 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18840 # necessary to make sure instantiated templates are included
18841 # in the archive.
18842 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18843 ;;
18844 gcx*)
18845 # Green Hills C++ Compiler
18846 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18847
18848 # The C++ compiler must be used to create the archive.
18849 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18850 ;;
18851 *)
18852 # GNU C++ compiler with Solaris linker
18853 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18854 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18855 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000018856 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 +000018857 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 +000018858 $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 +000018859
18860 # Commands to make compiler produce verbose output that lists
18861 # what "hidden" libraries, object files and flags are used when
18862 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018863 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018864 else
18865 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18866 # platform.
18867 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18868 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18869 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18870
18871 # Commands to make compiler produce verbose output that lists
18872 # what "hidden" libraries, object files and flags are used when
18873 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018874 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018875 fi
18876
18877 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18878 case $host_os in
18879 solaris2.[0-5] | solaris2.[0-5].*) ;;
18880 *)
18881 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18882 ;;
18883 esac
18884 fi
18885 ;;
18886 esac
18887 ;;
18888
18889 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18890 no_undefined_flag_CXX='${wl}-z,text'
18891 archive_cmds_need_lc_CXX=no
18892 hardcode_shlibpath_var_CXX=no
18893 runpath_var='LD_RUN_PATH'
18894
18895 case $cc_basename in
18896 CC*)
18897 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18898 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18899 ;;
18900 *)
18901 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18902 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18903 ;;
18904 esac
18905 ;;
18906
18907 sysv5* | sco3.2v5* | sco5v6*)
18908 # Note: We can NOT use -z defs as we might desire, because we do not
18909 # link with -lc, and that would cause any symbols used from libc to
18910 # always be unresolved, which means just about no library would
18911 # ever link correctly. If we're not using GNU ld we use -z text
18912 # though, which does catch some bad symbols but isn't as heavy-handed
18913 # as -z defs.
18914 no_undefined_flag_CXX='${wl}-z,text'
18915 allow_undefined_flag_CXX='${wl}-z,nodefs'
18916 archive_cmds_need_lc_CXX=no
18917 hardcode_shlibpath_var_CXX=no
18918 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
18919 hardcode_libdir_separator_CXX=':'
18920 link_all_deplibs_CXX=yes
18921 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18922 runpath_var='LD_RUN_PATH'
18923
18924 case $cc_basename in
18925 CC*)
18926 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18927 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 +000018928 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
18929 '"$old_archive_cmds_CXX"
18930 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
18931 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000018932 ;;
18933 *)
18934 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18935 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18936 ;;
18937 esac
18938 ;;
18939
18940 tandem*)
18941 case $cc_basename in
18942 NCC*)
18943 # NonStop-UX NCC 3.20
18944 # FIXME: insert proper C++ library support
18945 ld_shlibs_CXX=no
18946 ;;
18947 *)
18948 # FIXME: insert proper C++ library support
18949 ld_shlibs_CXX=no
18950 ;;
18951 esac
18952 ;;
18953
18954 vxworks*)
18955 # FIXME: insert proper C++ library support
18956 ld_shlibs_CXX=no
18957 ;;
18958
18959 *)
18960 # FIXME: insert proper C++ library support
18961 ld_shlibs_CXX=no
18962 ;;
18963 esac
18964
18965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18966$as_echo "$ld_shlibs_CXX" >&6; }
18967 test "$ld_shlibs_CXX" = no && can_build_shared=no
18968
18969 GCC_CXX="$GXX"
18970 LD_CXX="$LD"
18971
18972 ## CAVEAT EMPTOR:
18973 ## There is no encapsulation within the following macros, do not change
18974 ## the running order or otherwise move them around unless you know exactly
18975 ## what you are doing...
18976 # Dependencies to place before and after the object being linked:
18977predep_objects_CXX=
18978postdep_objects_CXX=
18979predeps_CXX=
18980postdeps_CXX=
18981compiler_lib_search_path_CXX=
18982
18983cat > conftest.$ac_ext <<_LT_EOF
18984class Foo
18985{
18986public:
18987 Foo (void) { a = 0; }
18988private:
18989 int a;
18990};
18991_LT_EOF
18992
cristyda16f162011-02-19 23:52:17 +000018993
18994_lt_libdeps_save_CFLAGS=$CFLAGS
18995case "$CC $CFLAGS " in #(
18996*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
18997*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
cristy99bd5232011-12-07 14:38:20 +000018998*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
cristyda16f162011-02-19 23:52:17 +000018999esac
19000
cristy73bd4a52010-10-05 11:24:23 +000019001if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19002 (eval $ac_compile) 2>&5
19003 ac_status=$?
19004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19005 test $ac_status = 0; }; then
19006 # Parse the compiler output and extract the necessary
19007 # objects, libraries and library flags.
19008
19009 # Sentinel used to keep track of whether or not we are before
19010 # the conftest object file.
19011 pre_test_object_deps_done=no
19012
19013 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000019014 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000019015
19016 -L* | -R* | -l*)
19017 # Some compilers place space between "-{L,R}" and the path.
19018 # Remove the space.
19019 if test $p = "-L" ||
19020 test $p = "-R"; then
19021 prev=$p
19022 continue
cristy73bd4a52010-10-05 11:24:23 +000019023 fi
19024
cristyda16f162011-02-19 23:52:17 +000019025 # Expand the sysroot to ease extracting the directories later.
19026 if test -z "$prev"; then
19027 case $p in
19028 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
19029 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
19030 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
19031 esac
19032 fi
19033 case $p in
19034 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
19035 esac
cristy73bd4a52010-10-05 11:24:23 +000019036 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000019037 case ${prev} in
19038 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000019039 # Internal compiler library paths should come after those
19040 # provided the user. The postdeps already come after the
19041 # user supplied libs so there is no need to process them.
19042 if test -z "$compiler_lib_search_path_CXX"; then
19043 compiler_lib_search_path_CXX="${prev}${p}"
19044 else
19045 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19046 fi
19047 ;;
19048 # The "-l" case would never come before the object being
19049 # linked, so don't bother handling this case.
19050 esac
19051 else
19052 if test -z "$postdeps_CXX"; then
19053 postdeps_CXX="${prev}${p}"
19054 else
19055 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19056 fi
19057 fi
cristyda16f162011-02-19 23:52:17 +000019058 prev=
cristy73bd4a52010-10-05 11:24:23 +000019059 ;;
19060
cristyda16f162011-02-19 23:52:17 +000019061 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000019062 *.$objext)
19063 # This assumes that the test object file only shows up
19064 # once in the compiler output.
19065 if test "$p" = "conftest.$objext"; then
19066 pre_test_object_deps_done=yes
19067 continue
19068 fi
19069
19070 if test "$pre_test_object_deps_done" = no; then
19071 if test -z "$predep_objects_CXX"; then
19072 predep_objects_CXX="$p"
19073 else
19074 predep_objects_CXX="$predep_objects_CXX $p"
19075 fi
19076 else
19077 if test -z "$postdep_objects_CXX"; then
19078 postdep_objects_CXX="$p"
19079 else
19080 postdep_objects_CXX="$postdep_objects_CXX $p"
19081 fi
19082 fi
19083 ;;
19084
19085 *) ;; # Ignore the rest.
19086
19087 esac
19088 done
19089
19090 # Clean up.
19091 rm -f a.out a.exe
19092else
19093 echo "libtool.m4: error: problem compiling CXX test program"
19094fi
19095
19096$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000019097CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000019098
19099# PORTME: override above test on systems where it is broken
19100case $host_os in
19101interix[3-9]*)
19102 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19103 # hack all around it, let's just trust "g++" to DTRT.
19104 predep_objects_CXX=
19105 postdep_objects_CXX=
19106 postdeps_CXX=
19107 ;;
19108
19109linux*)
19110 case `$CC -V 2>&1 | sed 5q` in
19111 *Sun\ C*)
19112 # Sun C++ 5.9
19113
19114 # The more standards-conforming stlport4 library is
19115 # incompatible with the Cstd library. Avoid specifying
19116 # it if it's in CXXFLAGS. Ignore libCrun as
19117 # -library=stlport4 depends on it.
19118 case " $CXX $CXXFLAGS " in
19119 *" -library=stlport4 "*)
19120 solaris_use_stlport4=yes
19121 ;;
19122 esac
19123
19124 if test "$solaris_use_stlport4" != yes; then
19125 postdeps_CXX='-library=Cstd -library=Crun'
19126 fi
19127 ;;
19128 esac
19129 ;;
19130
19131solaris*)
19132 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019133 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019134 # The more standards-conforming stlport4 library is
19135 # incompatible with the Cstd library. Avoid specifying
19136 # it if it's in CXXFLAGS. Ignore libCrun as
19137 # -library=stlport4 depends on it.
19138 case " $CXX $CXXFLAGS " in
19139 *" -library=stlport4 "*)
19140 solaris_use_stlport4=yes
19141 ;;
19142 esac
19143
19144 # Adding this requires a known-good setup of shared libraries for
19145 # Sun compiler versions before 5.6, else PIC objects from an old
19146 # archive will be linked into the output, leading to subtle bugs.
19147 if test "$solaris_use_stlport4" != yes; then
19148 postdeps_CXX='-library=Cstd -library=Crun'
19149 fi
19150 ;;
19151 esac
19152 ;;
19153esac
19154
19155
19156case " $postdeps_CXX " in
19157*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19158esac
19159 compiler_lib_search_dirs_CXX=
19160if test -n "${compiler_lib_search_path_CXX}"; then
19161 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19162fi
19163
19164
19165
19166
19167
19168
19169
19170
19171
19172
19173
19174
19175
19176
19177
19178
19179
19180
19181
19182
19183
19184
19185
19186
19187
19188
19189
19190
19191
19192
19193
19194 lt_prog_compiler_wl_CXX=
19195lt_prog_compiler_pic_CXX=
19196lt_prog_compiler_static_CXX=
19197
cristy73bd4a52010-10-05 11:24:23 +000019198
19199 # C++ specific cases for pic, static, wl, etc.
19200 if test "$GXX" = yes; then
19201 lt_prog_compiler_wl_CXX='-Wl,'
19202 lt_prog_compiler_static_CXX='-static'
19203
19204 case $host_os in
19205 aix*)
19206 # All AIX code is PIC.
19207 if test "$host_cpu" = ia64; then
19208 # AIX 5 now supports IA64 processor
19209 lt_prog_compiler_static_CXX='-Bstatic'
19210 fi
19211 ;;
19212
19213 amigaos*)
19214 case $host_cpu in
19215 powerpc)
19216 # see comment about AmigaOS4 .so support
19217 lt_prog_compiler_pic_CXX='-fPIC'
19218 ;;
19219 m68k)
19220 # FIXME: we need at least 68020 code to build shared libraries, but
19221 # adding the `-m68020' flag to GCC prevents building anything better,
19222 # like `-m68040'.
19223 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19224 ;;
19225 esac
19226 ;;
19227
19228 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19229 # PIC is the default for these OSes.
19230 ;;
19231 mingw* | cygwin* | os2* | pw32* | cegcc*)
19232 # This hack is so that the source file can tell whether it is being
19233 # built for inclusion in a dll (and should export symbols for example).
19234 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19235 # (--disable-auto-import) libraries
19236 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19237 ;;
19238 darwin* | rhapsody*)
19239 # PIC is the default on this platform
19240 # Common symbols not allowed in MH_DYLIB files
19241 lt_prog_compiler_pic_CXX='-fno-common'
19242 ;;
19243 *djgpp*)
19244 # DJGPP does not support shared libraries at all
19245 lt_prog_compiler_pic_CXX=
19246 ;;
cristy0c60a692010-11-04 01:09:47 +000019247 haiku*)
19248 # PIC is the default for Haiku.
19249 # The "-static" flag exists, but is broken.
19250 lt_prog_compiler_static_CXX=
19251 ;;
cristy73bd4a52010-10-05 11:24:23 +000019252 interix[3-9]*)
19253 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19254 # Instead, we relocate shared libraries at runtime.
19255 ;;
19256 sysv4*MP*)
19257 if test -d /usr/nec; then
19258 lt_prog_compiler_pic_CXX=-Kconform_pic
19259 fi
19260 ;;
19261 hpux*)
19262 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19263 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19264 # sets the default TLS model and affects inlining.
19265 case $host_cpu in
19266 hppa*64*)
19267 ;;
19268 *)
19269 lt_prog_compiler_pic_CXX='-fPIC'
19270 ;;
19271 esac
19272 ;;
19273 *qnx* | *nto*)
19274 # QNX uses GNU C++, but need to define -shared option too, otherwise
19275 # it will coredump.
19276 lt_prog_compiler_pic_CXX='-fPIC -shared'
19277 ;;
19278 *)
19279 lt_prog_compiler_pic_CXX='-fPIC'
19280 ;;
19281 esac
19282 else
19283 case $host_os in
19284 aix[4-9]*)
19285 # All AIX code is PIC.
19286 if test "$host_cpu" = ia64; then
19287 # AIX 5 now supports IA64 processor
19288 lt_prog_compiler_static_CXX='-Bstatic'
19289 else
19290 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19291 fi
19292 ;;
19293 chorus*)
19294 case $cc_basename in
19295 cxch68*)
19296 # Green Hills C++ Compiler
19297 # _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"
19298 ;;
19299 esac
19300 ;;
cristyda16f162011-02-19 23:52:17 +000019301 mingw* | cygwin* | os2* | pw32* | cegcc*)
19302 # This hack is so that the source file can tell whether it is being
19303 # built for inclusion in a dll (and should export symbols for example).
19304 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19305 ;;
cristy73bd4a52010-10-05 11:24:23 +000019306 dgux*)
19307 case $cc_basename in
19308 ec++*)
19309 lt_prog_compiler_pic_CXX='-KPIC'
19310 ;;
19311 ghcx*)
19312 # Green Hills C++ Compiler
19313 lt_prog_compiler_pic_CXX='-pic'
19314 ;;
19315 *)
19316 ;;
19317 esac
19318 ;;
19319 freebsd* | dragonfly*)
19320 # FreeBSD uses GNU C++
19321 ;;
19322 hpux9* | hpux10* | hpux11*)
19323 case $cc_basename in
19324 CC*)
19325 lt_prog_compiler_wl_CXX='-Wl,'
19326 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19327 if test "$host_cpu" != ia64; then
19328 lt_prog_compiler_pic_CXX='+Z'
19329 fi
19330 ;;
19331 aCC*)
19332 lt_prog_compiler_wl_CXX='-Wl,'
19333 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19334 case $host_cpu in
19335 hppa*64*|ia64*)
19336 # +Z the default
19337 ;;
19338 *)
19339 lt_prog_compiler_pic_CXX='+Z'
19340 ;;
19341 esac
19342 ;;
19343 *)
19344 ;;
19345 esac
19346 ;;
19347 interix*)
19348 # This is c89, which is MS Visual C++ (no shared libs)
19349 # Anyone wants to do a port?
19350 ;;
19351 irix5* | irix6* | nonstopux*)
19352 case $cc_basename in
19353 CC*)
19354 lt_prog_compiler_wl_CXX='-Wl,'
19355 lt_prog_compiler_static_CXX='-non_shared'
19356 # CC pic flag -KPIC is the default.
19357 ;;
19358 *)
19359 ;;
19360 esac
19361 ;;
cristy0c60a692010-11-04 01:09:47 +000019362 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000019363 case $cc_basename in
19364 KCC*)
19365 # KAI C++ Compiler
19366 lt_prog_compiler_wl_CXX='--backend -Wl,'
19367 lt_prog_compiler_pic_CXX='-fPIC'
19368 ;;
19369 ecpc* )
19370 # old Intel C++ for x86_64 which still supported -KPIC.
19371 lt_prog_compiler_wl_CXX='-Wl,'
19372 lt_prog_compiler_pic_CXX='-KPIC'
19373 lt_prog_compiler_static_CXX='-static'
19374 ;;
19375 icpc* )
19376 # Intel C++, used to be incompatible with GCC.
19377 # ICC 10 doesn't accept -KPIC any more.
19378 lt_prog_compiler_wl_CXX='-Wl,'
19379 lt_prog_compiler_pic_CXX='-fPIC'
19380 lt_prog_compiler_static_CXX='-static'
19381 ;;
19382 pgCC* | pgcpp*)
19383 # Portland Group C++ compiler
19384 lt_prog_compiler_wl_CXX='-Wl,'
19385 lt_prog_compiler_pic_CXX='-fpic'
19386 lt_prog_compiler_static_CXX='-Bstatic'
19387 ;;
19388 cxx*)
19389 # Compaq C++
19390 # Make sure the PIC flag is empty. It appears that all Alpha
19391 # Linux and Compaq Tru64 Unix objects are PIC.
19392 lt_prog_compiler_pic_CXX=
19393 lt_prog_compiler_static_CXX='-non_shared'
19394 ;;
cristy0c60a692010-11-04 01:09:47 +000019395 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19396 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000019397 lt_prog_compiler_wl_CXX='-Wl,'
19398 lt_prog_compiler_pic_CXX='-qpic'
19399 lt_prog_compiler_static_CXX='-qstaticlink'
19400 ;;
19401 *)
19402 case `$CC -V 2>&1 | sed 5q` in
19403 *Sun\ C*)
19404 # Sun C++ 5.9
19405 lt_prog_compiler_pic_CXX='-KPIC'
19406 lt_prog_compiler_static_CXX='-Bstatic'
19407 lt_prog_compiler_wl_CXX='-Qoption ld '
19408 ;;
19409 esac
19410 ;;
19411 esac
19412 ;;
19413 lynxos*)
19414 ;;
19415 m88k*)
19416 ;;
19417 mvs*)
19418 case $cc_basename in
19419 cxx*)
19420 lt_prog_compiler_pic_CXX='-W c,exportall'
19421 ;;
19422 *)
19423 ;;
19424 esac
19425 ;;
19426 netbsd*)
19427 ;;
19428 *qnx* | *nto*)
19429 # QNX uses GNU C++, but need to define -shared option too, otherwise
19430 # it will coredump.
19431 lt_prog_compiler_pic_CXX='-fPIC -shared'
19432 ;;
19433 osf3* | osf4* | osf5*)
19434 case $cc_basename in
19435 KCC*)
19436 lt_prog_compiler_wl_CXX='--backend -Wl,'
19437 ;;
19438 RCC*)
19439 # Rational C++ 2.4.1
19440 lt_prog_compiler_pic_CXX='-pic'
19441 ;;
19442 cxx*)
19443 # Digital/Compaq C++
19444 lt_prog_compiler_wl_CXX='-Wl,'
19445 # Make sure the PIC flag is empty. It appears that all Alpha
19446 # Linux and Compaq Tru64 Unix objects are PIC.
19447 lt_prog_compiler_pic_CXX=
19448 lt_prog_compiler_static_CXX='-non_shared'
19449 ;;
19450 *)
19451 ;;
19452 esac
19453 ;;
19454 psos*)
19455 ;;
19456 solaris*)
19457 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019458 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019459 # Sun C++ 4.2, 5.x and Centerline C++
19460 lt_prog_compiler_pic_CXX='-KPIC'
19461 lt_prog_compiler_static_CXX='-Bstatic'
19462 lt_prog_compiler_wl_CXX='-Qoption ld '
19463 ;;
19464 gcx*)
19465 # Green Hills C++ Compiler
19466 lt_prog_compiler_pic_CXX='-PIC'
19467 ;;
19468 *)
19469 ;;
19470 esac
19471 ;;
19472 sunos4*)
19473 case $cc_basename in
19474 CC*)
19475 # Sun C++ 4.x
19476 lt_prog_compiler_pic_CXX='-pic'
19477 lt_prog_compiler_static_CXX='-Bstatic'
19478 ;;
19479 lcc*)
19480 # Lucid
19481 lt_prog_compiler_pic_CXX='-pic'
19482 ;;
19483 *)
19484 ;;
19485 esac
19486 ;;
19487 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19488 case $cc_basename in
19489 CC*)
19490 lt_prog_compiler_wl_CXX='-Wl,'
19491 lt_prog_compiler_pic_CXX='-KPIC'
19492 lt_prog_compiler_static_CXX='-Bstatic'
19493 ;;
19494 esac
19495 ;;
19496 tandem*)
19497 case $cc_basename in
19498 NCC*)
19499 # NonStop-UX NCC 3.20
19500 lt_prog_compiler_pic_CXX='-KPIC'
19501 ;;
19502 *)
19503 ;;
19504 esac
19505 ;;
19506 vxworks*)
19507 ;;
19508 *)
19509 lt_prog_compiler_can_build_shared_CXX=no
19510 ;;
19511 esac
19512 fi
19513
19514case $host_os in
19515 # For platforms which do not support PIC, -DPIC is meaningless:
19516 *djgpp*)
19517 lt_prog_compiler_pic_CXX=
19518 ;;
19519 *)
19520 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19521 ;;
19522esac
cristy73bd4a52010-10-05 11:24:23 +000019523
cristyda16f162011-02-19 23:52:17 +000019524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19525$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19526if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
19527 $as_echo_n "(cached) " >&6
19528else
19529 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
19530fi
19531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
19532$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
19533lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000019534
19535#
19536# Check to make sure the PIC flag actually works.
19537#
19538if test -n "$lt_prog_compiler_pic_CXX"; then
19539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19540$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019541if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019542 $as_echo_n "(cached) " >&6
19543else
19544 lt_cv_prog_compiler_pic_works_CXX=no
19545 ac_outfile=conftest.$ac_objext
19546 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19547 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19548 # Insert the option either (1) after the last *FLAGS variable, or
19549 # (2) before a word containing "conftest.", or (3) at the end.
19550 # Note that $ac_compile itself does not contain backslashes and begins
19551 # with a dollar sign (not a hyphen), so the echo should work correctly.
19552 # The option is referenced via a variable to avoid confusing sed.
19553 lt_compile=`echo "$ac_compile" | $SED \
19554 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19555 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19556 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019557 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019558 (eval "$lt_compile" 2>conftest.err)
19559 ac_status=$?
19560 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019562 if (exit $ac_status) && test -s "$ac_outfile"; then
19563 # The compiler can only warn and ignore the option if not recognized
19564 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000019565 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019566 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19567 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19568 lt_cv_prog_compiler_pic_works_CXX=yes
19569 fi
19570 fi
19571 $RM conftest*
19572
19573fi
19574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19575$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19576
19577if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19578 case $lt_prog_compiler_pic_CXX in
19579 "" | " "*) ;;
19580 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19581 esac
19582else
19583 lt_prog_compiler_pic_CXX=
19584 lt_prog_compiler_can_build_shared_CXX=no
19585fi
19586
19587fi
19588
19589
19590
cristyda16f162011-02-19 23:52:17 +000019591
19592
cristy73bd4a52010-10-05 11:24:23 +000019593#
19594# Check to make sure the static flag actually works.
19595#
19596wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19598$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019599if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019600 $as_echo_n "(cached) " >&6
19601else
19602 lt_cv_prog_compiler_static_works_CXX=no
19603 save_LDFLAGS="$LDFLAGS"
19604 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19605 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19606 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19607 # The linker can only warn and ignore the option if not recognized
19608 # So say no if there are warnings
19609 if test -s conftest.err; then
19610 # Append any errors to the config.log.
19611 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000019612 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019613 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19614 if diff conftest.exp conftest.er2 >/dev/null; then
19615 lt_cv_prog_compiler_static_works_CXX=yes
19616 fi
19617 else
19618 lt_cv_prog_compiler_static_works_CXX=yes
19619 fi
19620 fi
19621 $RM -r conftest*
19622 LDFLAGS="$save_LDFLAGS"
19623
19624fi
19625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19626$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19627
19628if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
19629 :
19630else
19631 lt_prog_compiler_static_CXX=
19632fi
19633
19634
19635
19636
19637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19638$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019639if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019640 $as_echo_n "(cached) " >&6
19641else
19642 lt_cv_prog_compiler_c_o_CXX=no
19643 $RM -r conftest 2>/dev/null
19644 mkdir conftest
19645 cd conftest
19646 mkdir out
19647 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19648
19649 lt_compiler_flag="-o out/conftest2.$ac_objext"
19650 # Insert the option either (1) after the last *FLAGS variable, or
19651 # (2) before a word containing "conftest.", or (3) at the end.
19652 # Note that $ac_compile itself does not contain backslashes and begins
19653 # with a dollar sign (not a hyphen), so the echo should work correctly.
19654 lt_compile=`echo "$ac_compile" | $SED \
19655 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19656 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19657 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019658 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019659 (eval "$lt_compile" 2>out/conftest.err)
19660 ac_status=$?
19661 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019663 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19664 then
19665 # The compiler can only warn and ignore the option if not recognized
19666 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000019667 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019668 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19669 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19670 lt_cv_prog_compiler_c_o_CXX=yes
19671 fi
19672 fi
19673 chmod u+w . 2>&5
19674 $RM conftest*
19675 # SGI C++ compiler will create directory out/ii_files/ for
19676 # template instantiation
19677 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19678 $RM out/* && rmdir out
19679 cd ..
19680 $RM -r conftest
19681 $RM conftest*
19682
19683fi
19684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19685$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19686
19687
19688
19689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19690$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019691if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019692 $as_echo_n "(cached) " >&6
19693else
19694 lt_cv_prog_compiler_c_o_CXX=no
19695 $RM -r conftest 2>/dev/null
19696 mkdir conftest
19697 cd conftest
19698 mkdir out
19699 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19700
19701 lt_compiler_flag="-o out/conftest2.$ac_objext"
19702 # Insert the option either (1) after the last *FLAGS variable, or
19703 # (2) before a word containing "conftest.", or (3) at the end.
19704 # Note that $ac_compile itself does not contain backslashes and begins
19705 # with a dollar sign (not a hyphen), so the echo should work correctly.
19706 lt_compile=`echo "$ac_compile" | $SED \
19707 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19708 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19709 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019710 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019711 (eval "$lt_compile" 2>out/conftest.err)
19712 ac_status=$?
19713 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019715 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19716 then
19717 # The compiler can only warn and ignore the option if not recognized
19718 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000019719 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019720 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19721 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19722 lt_cv_prog_compiler_c_o_CXX=yes
19723 fi
19724 fi
19725 chmod u+w . 2>&5
19726 $RM conftest*
19727 # SGI C++ compiler will create directory out/ii_files/ for
19728 # template instantiation
19729 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19730 $RM out/* && rmdir out
19731 cd ..
19732 $RM -r conftest
19733 $RM conftest*
19734
19735fi
19736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19737$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19738
19739
19740
19741
19742hard_links="nottested"
19743if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19744 # do not overwrite the value of need_locks provided by the user
19745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19746$as_echo_n "checking if we can lock with hard links... " >&6; }
19747 hard_links=yes
19748 $RM conftest*
19749 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19750 touch conftest.a
19751 ln conftest.a conftest.b 2>&5 || hard_links=no
19752 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19754$as_echo "$hard_links" >&6; }
19755 if test "$hard_links" = no; then
19756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19757$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19758 need_locks=warn
19759 fi
19760else
19761 need_locks=no
19762fi
19763
19764
19765
19766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19767$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19768
19769 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019770 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000019771 case $host_os in
19772 aix[4-9]*)
19773 # If we're using GNU nm, then we don't want the "-C" option.
19774 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000019775 # Also, AIX nm treats weak defined symbols like other global defined
19776 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000019777 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000019778 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 +000019779 else
19780 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'
19781 fi
19782 ;;
19783 pw32*)
19784 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000019785 ;;
cristy73bd4a52010-10-05 11:24:23 +000019786 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000019787 case $cc_basename in
cristy99bd5232011-12-07 14:38:20 +000019788 cl*)
19789 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
19790 ;;
cristyda16f162011-02-19 23:52:17 +000019791 *)
19792 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'
19793 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
19794 ;;
19795 esac
19796 ;;
cristy73bd4a52010-10-05 11:24:23 +000019797 *)
19798 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019799 ;;
cristy73bd4a52010-10-05 11:24:23 +000019800 esac
cristy73bd4a52010-10-05 11:24:23 +000019801
19802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19803$as_echo "$ld_shlibs_CXX" >&6; }
19804test "$ld_shlibs_CXX" = no && can_build_shared=no
19805
19806with_gnu_ld_CXX=$with_gnu_ld
19807
19808
19809
19810
19811
19812
19813#
19814# Do we need to explicitly link libc?
19815#
19816case "x$archive_cmds_need_lc_CXX" in
19817x|xyes)
19818 # Assume -lc should be added
19819 archive_cmds_need_lc_CXX=yes
19820
19821 if test "$enable_shared" = yes && test "$GCC" = yes; then
19822 case $archive_cmds_CXX in
19823 *'~'*)
19824 # FIXME: we may have to deal with multi-command sequences.
19825 ;;
19826 '$CC '*)
19827 # Test whether the compiler implicitly links with -lc since on some
19828 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19829 # to ld, don't add -lc before -lgcc.
19830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19831$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019832if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000019833 $as_echo_n "(cached) " >&6
19834else
19835 $RM conftest*
19836 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000019837
cristy0c60a692010-11-04 01:09:47 +000019838 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000019839 (eval $ac_compile) 2>&5
19840 ac_status=$?
19841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19842 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000019843 soname=conftest
19844 lib=conftest
19845 libobjs=conftest.$ac_objext
19846 deplibs=
19847 wl=$lt_prog_compiler_wl_CXX
19848 pic_flag=$lt_prog_compiler_pic_CXX
19849 compiler_flags=-v
19850 linker_flags=-v
19851 verstring=
19852 output_objdir=.
19853 libname=conftest
19854 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19855 allow_undefined_flag_CXX=
19856 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 +000019857 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19858 ac_status=$?
19859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19860 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000019861 then
19862 lt_cv_archive_cmds_need_lc_CXX=no
19863 else
19864 lt_cv_archive_cmds_need_lc_CXX=yes
19865 fi
19866 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19867 else
19868 cat conftest.err 1>&5
19869 fi
19870 $RM conftest*
19871
19872fi
19873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19874$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19875 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000019876 ;;
19877 esac
19878 fi
19879 ;;
19880esac
19881
19882
19883
19884
19885
19886
19887
19888
19889
19890
19891
19892
19893
19894
19895
19896
19897
19898
19899
19900
19901
19902
19903
19904
19905
19906
19907
19908
19909
19910
19911
19912
19913
19914
19915
19916
19917
19918
19919
19920
19921
19922
19923
19924
19925
19926
19927
19928
19929
19930
19931
19932
19933
19934
19935
19936
19937
19938
19939
19940
19941
19942
cristy73bd4a52010-10-05 11:24:23 +000019943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19944$as_echo_n "checking dynamic linker characteristics... " >&6; }
19945
19946library_names_spec=
19947libname_spec='lib$name'
19948soname_spec=
19949shrext_cmds=".so"
19950postinstall_cmds=
19951postuninstall_cmds=
19952finish_cmds=
19953finish_eval=
19954shlibpath_var=
19955shlibpath_overrides_runpath=unknown
19956version_type=none
19957dynamic_linker="$host_os ld.so"
19958sys_lib_dlsearch_path_spec="/lib /usr/lib"
19959need_lib_prefix=unknown
19960hardcode_into_libs=no
19961
19962# when you set need_version to no, make sure it does not cause -set_version
19963# flags to be left without arguments
19964need_version=unknown
19965
19966case $host_os in
19967aix3*)
cristy99bd5232011-12-07 14:38:20 +000019968 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019969 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19970 shlibpath_var=LIBPATH
19971
19972 # AIX 3 has no versioning support, so we append a major version to the name.
19973 soname_spec='${libname}${release}${shared_ext}$major'
19974 ;;
19975
19976aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000019977 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019978 need_lib_prefix=no
19979 need_version=no
19980 hardcode_into_libs=yes
19981 if test "$host_cpu" = ia64; then
19982 # AIX 5 supports IA64
19983 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19984 shlibpath_var=LD_LIBRARY_PATH
19985 else
19986 # With GCC up to 2.95.x, collect2 would create an import file
19987 # for dependence libraries. The import file would start with
19988 # the line `#! .'. This would cause the generated library to
19989 # depend on `.', always an invalid library. This was fixed in
19990 # development snapshots of GCC prior to 3.0.
19991 case $host_os in
19992 aix4 | aix4.[01] | aix4.[01].*)
19993 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19994 echo ' yes '
19995 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19996 :
19997 else
19998 can_build_shared=no
19999 fi
20000 ;;
20001 esac
20002 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20003 # soname into executable. Probably we can add versioning support to
20004 # collect2, so additional links can be useful in future.
20005 if test "$aix_use_runtimelinking" = yes; then
20006 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20007 # instead of lib<name>.a to let people know that these are not
20008 # typical AIX shared libraries.
20009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20010 else
20011 # We preserve .a as extension for shared libraries through AIX4.2
20012 # and later when we are not doing run time linking.
20013 library_names_spec='${libname}${release}.a $libname.a'
20014 soname_spec='${libname}${release}${shared_ext}$major'
20015 fi
20016 shlibpath_var=LIBPATH
20017 fi
20018 ;;
20019
20020amigaos*)
20021 case $host_cpu in
20022 powerpc)
20023 # Since July 2007 AmigaOS4 officially supports .so libraries.
20024 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20026 ;;
20027 m68k)
20028 library_names_spec='$libname.ixlibrary $libname.a'
20029 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000020030 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 +000020031 ;;
20032 esac
20033 ;;
20034
20035beos*)
20036 library_names_spec='${libname}${shared_ext}'
20037 dynamic_linker="$host_os ld.so"
20038 shlibpath_var=LIBRARY_PATH
20039 ;;
20040
20041bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000020042 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020043 need_version=no
20044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20045 soname_spec='${libname}${release}${shared_ext}$major'
20046 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20047 shlibpath_var=LD_LIBRARY_PATH
20048 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20049 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20050 # the default ld.so.conf also contains /usr/contrib/lib and
20051 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20052 # libtool to hard-code these into programs
20053 ;;
20054
20055cygwin* | mingw* | pw32* | cegcc*)
20056 version_type=windows
20057 shrext_cmds=".dll"
20058 need_version=no
20059 need_lib_prefix=no
20060
cristyda16f162011-02-19 23:52:17 +000020061 case $GCC,$cc_basename in
20062 yes,*)
20063 # gcc
cristy73bd4a52010-10-05 11:24:23 +000020064 library_names_spec='$libname.dll.a'
20065 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20066 postinstall_cmds='base_file=`basename \${file}`~
20067 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20068 dldir=$destdir/`dirname \$dlpath`~
20069 test -d \$dldir || mkdir -p \$dldir~
20070 $install_prog $dir/$dlname \$dldir/$dlname~
20071 chmod a+x \$dldir/$dlname~
20072 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20073 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20074 fi'
20075 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20076 dlpath=$dir/\$dldll~
20077 $RM \$dlpath'
20078 shlibpath_overrides_runpath=yes
20079
20080 case $host_os in
20081 cygwin*)
20082 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20083 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000020084
cristy73bd4a52010-10-05 11:24:23 +000020085 ;;
20086 mingw* | cegcc*)
20087 # MinGW DLLs use traditional 'lib' prefix
20088 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000020089 ;;
20090 pw32*)
20091 # pw32 DLLs use 'pw' prefix rather than 'lib'
20092 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20093 ;;
20094 esac
cristyda16f162011-02-19 23:52:17 +000020095 dynamic_linker='Win32 ld.exe'
20096 ;;
20097
20098 *,cl*)
20099 # Native MSVC
20100 libname_spec='$name'
20101 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20102 library_names_spec='${libname}.dll.lib'
20103
20104 case $build_os in
20105 mingw*)
20106 sys_lib_search_path_spec=
20107 lt_save_ifs=$IFS
20108 IFS=';'
20109 for lt_path in $LIB
20110 do
20111 IFS=$lt_save_ifs
20112 # Let DOS variable expansion print the short 8.3 style file name.
20113 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
20114 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
20115 done
20116 IFS=$lt_save_ifs
20117 # Convert to MSYS style.
20118 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
20119 ;;
20120 cygwin*)
20121 # Convert to unix form, then to dos form, then back to unix form
20122 # but this time dos style (no spaces!) so that the unix form looks
20123 # like /cygdrive/c/PROGRA~1:/cygdr...
20124 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
20125 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
20126 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20127 ;;
20128 *)
20129 sys_lib_search_path_spec="$LIB"
20130 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
20131 # It is most probably a Windows format PATH.
20132 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20133 else
20134 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20135 fi
20136 # FIXME: find the short name or the path components, as spaces are
20137 # common. (e.g. "Program Files" -> "PROGRA~1")
20138 ;;
20139 esac
20140
20141 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20142 postinstall_cmds='base_file=`basename \${file}`~
20143 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20144 dldir=$destdir/`dirname \$dlpath`~
20145 test -d \$dldir || mkdir -p \$dldir~
20146 $install_prog $dir/$dlname \$dldir/$dlname'
20147 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20148 dlpath=$dir/\$dldll~
20149 $RM \$dlpath'
20150 shlibpath_overrides_runpath=yes
20151 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000020152 ;;
20153
20154 *)
cristyda16f162011-02-19 23:52:17 +000020155 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000020156 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000020157 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000020158 ;;
20159 esac
cristy73bd4a52010-10-05 11:24:23 +000020160 # FIXME: first we should search . and the directory the executable is in
20161 shlibpath_var=PATH
20162 ;;
20163
20164darwin* | rhapsody*)
20165 dynamic_linker="$host_os dyld"
20166 version_type=darwin
20167 need_lib_prefix=no
20168 need_version=no
20169 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20170 soname_spec='${libname}${release}${major}$shared_ext'
20171 shlibpath_overrides_runpath=yes
20172 shlibpath_var=DYLD_LIBRARY_PATH
20173 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20174
20175 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20176 ;;
20177
20178dgux*)
cristy99bd5232011-12-07 14:38:20 +000020179 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020180 need_lib_prefix=no
20181 need_version=no
20182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20183 soname_spec='${libname}${release}${shared_ext}$major'
20184 shlibpath_var=LD_LIBRARY_PATH
20185 ;;
20186
cristy73bd4a52010-10-05 11:24:23 +000020187freebsd* | dragonfly*)
20188 # DragonFly does not have aout. When/if they implement a new
20189 # versioning mechanism, adjust this.
20190 if test -x /usr/bin/objformat; then
20191 objformat=`/usr/bin/objformat`
20192 else
20193 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020194 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000020195 *) objformat=elf ;;
20196 esac
20197 fi
20198 version_type=freebsd-$objformat
20199 case $version_type in
20200 freebsd-elf*)
20201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20202 need_version=no
20203 need_lib_prefix=no
20204 ;;
20205 freebsd-*)
20206 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20207 need_version=yes
20208 ;;
20209 esac
20210 shlibpath_var=LD_LIBRARY_PATH
20211 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020212 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000020213 shlibpath_overrides_runpath=yes
20214 ;;
20215 freebsd3.[01]* | freebsdelf3.[01]*)
20216 shlibpath_overrides_runpath=yes
20217 hardcode_into_libs=yes
20218 ;;
20219 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20220 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20221 shlibpath_overrides_runpath=no
20222 hardcode_into_libs=yes
20223 ;;
20224 *) # from 4.6 on, and DragonFly
20225 shlibpath_overrides_runpath=yes
20226 hardcode_into_libs=yes
20227 ;;
20228 esac
20229 ;;
20230
20231gnu*)
cristy99bd5232011-12-07 14:38:20 +000020232 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020233 need_lib_prefix=no
20234 need_version=no
20235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20236 soname_spec='${libname}${release}${shared_ext}$major'
20237 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000020238 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000020239 hardcode_into_libs=yes
20240 ;;
20241
cristy0c60a692010-11-04 01:09:47 +000020242haiku*)
cristy99bd5232011-12-07 14:38:20 +000020243 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000020244 need_lib_prefix=no
20245 need_version=no
20246 dynamic_linker="$host_os runtime_loader"
20247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20248 soname_spec='${libname}${release}${shared_ext}$major'
20249 shlibpath_var=LIBRARY_PATH
20250 shlibpath_overrides_runpath=yes
20251 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
20252 hardcode_into_libs=yes
20253 ;;
20254
cristy73bd4a52010-10-05 11:24:23 +000020255hpux9* | hpux10* | hpux11*)
20256 # Give a soname corresponding to the major version so that dld.sl refuses to
20257 # link against other versions.
20258 version_type=sunos
20259 need_lib_prefix=no
20260 need_version=no
20261 case $host_cpu in
20262 ia64*)
20263 shrext_cmds='.so'
20264 hardcode_into_libs=yes
20265 dynamic_linker="$host_os dld.so"
20266 shlibpath_var=LD_LIBRARY_PATH
20267 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20269 soname_spec='${libname}${release}${shared_ext}$major'
20270 if test "X$HPUX_IA64_MODE" = X32; then
20271 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20272 else
20273 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20274 fi
20275 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20276 ;;
20277 hppa*64*)
20278 shrext_cmds='.sl'
20279 hardcode_into_libs=yes
20280 dynamic_linker="$host_os dld.sl"
20281 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20282 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20284 soname_spec='${libname}${release}${shared_ext}$major'
20285 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20286 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20287 ;;
20288 *)
20289 shrext_cmds='.sl'
20290 dynamic_linker="$host_os dld.sl"
20291 shlibpath_var=SHLIB_PATH
20292 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20294 soname_spec='${libname}${release}${shared_ext}$major'
20295 ;;
20296 esac
cristy0c60a692010-11-04 01:09:47 +000020297 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000020298 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000020299 # or fails outright, so override atomically:
20300 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000020301 ;;
20302
20303interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000020304 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020305 need_lib_prefix=no
20306 need_version=no
20307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20308 soname_spec='${libname}${release}${shared_ext}$major'
20309 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20310 shlibpath_var=LD_LIBRARY_PATH
20311 shlibpath_overrides_runpath=no
20312 hardcode_into_libs=yes
20313 ;;
20314
20315irix5* | irix6* | nonstopux*)
20316 case $host_os in
20317 nonstopux*) version_type=nonstopux ;;
20318 *)
20319 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000020320 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020321 else
20322 version_type=irix
20323 fi ;;
20324 esac
20325 need_lib_prefix=no
20326 need_version=no
20327 soname_spec='${libname}${release}${shared_ext}$major'
20328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20329 case $host_os in
20330 irix5* | nonstopux*)
20331 libsuff= shlibsuff=
20332 ;;
20333 *)
20334 case $LD in # libtool.m4 will add one of these switches to LD
20335 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20336 libsuff= shlibsuff= libmagic=32-bit;;
20337 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20338 libsuff=32 shlibsuff=N32 libmagic=N32;;
20339 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20340 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20341 *) libsuff= shlibsuff= libmagic=never-match;;
20342 esac
20343 ;;
20344 esac
20345 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20346 shlibpath_overrides_runpath=no
20347 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20348 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20349 hardcode_into_libs=yes
20350 ;;
20351
20352# No shared lib support for Linux oldld, aout, or coff.
20353linux*oldld* | linux*aout* | linux*coff*)
20354 dynamic_linker=no
20355 ;;
20356
cristy99bd5232011-12-07 14:38:20 +000020357# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000020358linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000020359 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020360 need_lib_prefix=no
20361 need_version=no
20362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20363 soname_spec='${libname}${release}${shared_ext}$major'
20364 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20365 shlibpath_var=LD_LIBRARY_PATH
20366 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000020367
cristy73bd4a52010-10-05 11:24:23 +000020368 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000020369 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000020370 $as_echo_n "(cached) " >&6
20371else
20372 lt_cv_shlibpath_overrides_runpath=no
20373 save_LDFLAGS=$LDFLAGS
20374 save_libdir=$libdir
20375 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20376 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000020378/* end confdefs.h. */
20379
20380int
20381main ()
20382{
20383
20384 ;
20385 return 0;
20386}
20387_ACEOF
20388if ac_fn_cxx_try_link "$LINENO"; then :
20389 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000020390 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000020391fi
20392fi
20393rm -f core conftest.err conftest.$ac_objext \
20394 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000020395 LDFLAGS=$save_LDFLAGS
20396 libdir=$save_libdir
20397
20398fi
20399
20400 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000020401
20402 # This implies no fast_install, which is unacceptable.
20403 # Some rework will be needed to allow for fast_install
20404 # before this can be enabled.
20405 hardcode_into_libs=yes
20406
20407 # Add ABI-specific directories to the system library path.
20408 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
20409
20410 # Append ld.so.conf contents to the search path
20411 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000020412 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 +000020413 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000020414
cristy73bd4a52010-10-05 11:24:23 +000020415 fi
20416
20417 # We used to test for /lib/ld.so.1 and disable shared libraries on
20418 # powerpc, because MkLinux only supported shared libraries with the
20419 # GNU dynamic linker. Since this was broken with cross compilers,
20420 # most powerpc-linux boxes support dynamic linking these days and
20421 # people can always --disable-shared, the test was removed, and we
20422 # assume the GNU/Linux dynamic linker is in use.
20423 dynamic_linker='GNU/Linux ld.so'
20424 ;;
20425
20426netbsd*)
20427 version_type=sunos
20428 need_lib_prefix=no
20429 need_version=no
20430 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20432 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20433 dynamic_linker='NetBSD (a.out) ld.so'
20434 else
20435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20436 soname_spec='${libname}${release}${shared_ext}$major'
20437 dynamic_linker='NetBSD ld.elf_so'
20438 fi
20439 shlibpath_var=LD_LIBRARY_PATH
20440 shlibpath_overrides_runpath=yes
20441 hardcode_into_libs=yes
20442 ;;
20443
20444newsos6)
cristy99bd5232011-12-07 14:38:20 +000020445 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20447 shlibpath_var=LD_LIBRARY_PATH
20448 shlibpath_overrides_runpath=yes
20449 ;;
20450
20451*nto* | *qnx*)
20452 version_type=qnx
20453 need_lib_prefix=no
20454 need_version=no
20455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20456 soname_spec='${libname}${release}${shared_ext}$major'
20457 shlibpath_var=LD_LIBRARY_PATH
20458 shlibpath_overrides_runpath=no
20459 hardcode_into_libs=yes
20460 dynamic_linker='ldqnx.so'
20461 ;;
20462
20463openbsd*)
20464 version_type=sunos
20465 sys_lib_dlsearch_path_spec="/usr/lib"
20466 need_lib_prefix=no
20467 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20468 case $host_os in
20469 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20470 *) need_version=no ;;
20471 esac
20472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20473 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20474 shlibpath_var=LD_LIBRARY_PATH
20475 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20476 case $host_os in
20477 openbsd2.[89] | openbsd2.[89].*)
20478 shlibpath_overrides_runpath=no
20479 ;;
20480 *)
20481 shlibpath_overrides_runpath=yes
20482 ;;
20483 esac
20484 else
20485 shlibpath_overrides_runpath=yes
20486 fi
20487 ;;
20488
20489os2*)
20490 libname_spec='$name'
20491 shrext_cmds=".dll"
20492 need_lib_prefix=no
20493 library_names_spec='$libname${shared_ext} $libname.a'
20494 dynamic_linker='OS/2 ld.exe'
20495 shlibpath_var=LIBPATH
20496 ;;
20497
20498osf3* | osf4* | osf5*)
20499 version_type=osf
20500 need_lib_prefix=no
20501 need_version=no
20502 soname_spec='${libname}${release}${shared_ext}$major'
20503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20504 shlibpath_var=LD_LIBRARY_PATH
20505 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20506 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20507 ;;
20508
20509rdos*)
20510 dynamic_linker=no
20511 ;;
20512
20513solaris*)
cristy99bd5232011-12-07 14:38:20 +000020514 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020515 need_lib_prefix=no
20516 need_version=no
20517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20518 soname_spec='${libname}${release}${shared_ext}$major'
20519 shlibpath_var=LD_LIBRARY_PATH
20520 shlibpath_overrides_runpath=yes
20521 hardcode_into_libs=yes
20522 # ldd complains unless libraries are executable
20523 postinstall_cmds='chmod +x $lib'
20524 ;;
20525
20526sunos4*)
20527 version_type=sunos
20528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20529 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20530 shlibpath_var=LD_LIBRARY_PATH
20531 shlibpath_overrides_runpath=yes
20532 if test "$with_gnu_ld" = yes; then
20533 need_lib_prefix=no
20534 fi
20535 need_version=yes
20536 ;;
20537
20538sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000020539 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20541 soname_spec='${libname}${release}${shared_ext}$major'
20542 shlibpath_var=LD_LIBRARY_PATH
20543 case $host_vendor in
20544 sni)
20545 shlibpath_overrides_runpath=no
20546 need_lib_prefix=no
20547 runpath_var=LD_RUN_PATH
20548 ;;
20549 siemens)
20550 need_lib_prefix=no
20551 ;;
20552 motorola)
20553 need_lib_prefix=no
20554 need_version=no
20555 shlibpath_overrides_runpath=no
20556 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20557 ;;
20558 esac
20559 ;;
20560
20561sysv4*MP*)
20562 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000020563 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020564 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20565 soname_spec='$libname${shared_ext}.$major'
20566 shlibpath_var=LD_LIBRARY_PATH
20567 fi
20568 ;;
20569
20570sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20571 version_type=freebsd-elf
20572 need_lib_prefix=no
20573 need_version=no
20574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20575 soname_spec='${libname}${release}${shared_ext}$major'
20576 shlibpath_var=LD_LIBRARY_PATH
20577 shlibpath_overrides_runpath=yes
20578 hardcode_into_libs=yes
20579 if test "$with_gnu_ld" = yes; then
20580 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20581 else
20582 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20583 case $host_os in
20584 sco3.2v5*)
20585 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20586 ;;
20587 esac
20588 fi
20589 sys_lib_dlsearch_path_spec='/usr/lib'
20590 ;;
20591
20592tpf*)
20593 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000020594 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020595 need_lib_prefix=no
20596 need_version=no
20597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20598 shlibpath_var=LD_LIBRARY_PATH
20599 shlibpath_overrides_runpath=no
20600 hardcode_into_libs=yes
20601 ;;
20602
20603uts4*)
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 soname_spec='${libname}${release}${shared_ext}$major'
20607 shlibpath_var=LD_LIBRARY_PATH
20608 ;;
20609
20610*)
20611 dynamic_linker=no
20612 ;;
20613esac
20614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20615$as_echo "$dynamic_linker" >&6; }
20616test "$dynamic_linker" = no && can_build_shared=no
20617
20618variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20619if test "$GCC" = yes; then
20620 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20621fi
20622
20623if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20624 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20625fi
20626if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20627 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20628fi
20629
20630
20631
20632
20633
20634
20635
20636
20637
20638
20639
20640
20641
20642
20643
20644
20645
20646
20647
20648
20649
20650
20651
20652
20653
20654
20655
20656
20657
20658
20659
20660
20661
20662
20663
20664
cristy0c60a692010-11-04 01:09:47 +000020665
20666
cristy73bd4a52010-10-05 11:24:23 +000020667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20668$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20669hardcode_action_CXX=
20670if test -n "$hardcode_libdir_flag_spec_CXX" ||
20671 test -n "$runpath_var_CXX" ||
20672 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20673
20674 # We can hardcode non-existent directories.
20675 if test "$hardcode_direct_CXX" != no &&
20676 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20677 # have to relink, otherwise we might link with an installed library
20678 # when we should be linking with a yet-to-be-installed one
20679 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20680 test "$hardcode_minus_L_CXX" != no; then
20681 # Linking always hardcodes the temporary library directory.
20682 hardcode_action_CXX=relink
20683 else
20684 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20685 hardcode_action_CXX=immediate
20686 fi
20687else
20688 # We cannot hardcode anything, or else we can only hardcode existing
20689 # directories.
20690 hardcode_action_CXX=unsupported
20691fi
20692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20693$as_echo "$hardcode_action_CXX" >&6; }
20694
20695if test "$hardcode_action_CXX" = relink ||
20696 test "$inherit_rpath_CXX" = yes; then
20697 # Fast installation is not supported
20698 enable_fast_install=no
20699elif test "$shlibpath_overrides_runpath" = yes ||
20700 test "$enable_shared" = no; then
20701 # Fast installation is not necessary
20702 enable_fast_install=needless
20703fi
20704
20705
20706
20707
20708
20709
20710
20711 fi # test -n "$compiler"
20712
20713 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000020714 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000020715 LDCXX=$LD
20716 LD=$lt_save_LD
20717 GCC=$lt_save_GCC
20718 with_gnu_ld=$lt_save_with_gnu_ld
20719 lt_cv_path_LDCXX=$lt_cv_path_LD
20720 lt_cv_path_LD=$lt_save_path_LD
20721 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20722 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20723fi # test "$_lt_caught_CXX_error" != yes
20724
20725ac_ext=c
20726ac_cpp='$CPP $CPPFLAGS'
20727ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20728ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20729ac_compiler_gnu=$ac_cv_c_compiler_gnu
20730
20731
20732
20733
20734
20735
20736
20737
20738
20739
20740
20741
20742
cristy99bd5232011-12-07 14:38:20 +000020743
20744
cristy73bd4a52010-10-05 11:24:23 +000020745 ac_config_commands="$ac_config_commands libtool"
20746
20747
20748
20749
20750# Only expand once:
20751
20752
20753
cristy3ed852e2009-09-05 21:47:34 +000020754
20755
cristy3ed852e2009-09-05 21:47:34 +000020756# Check to see if building shared libraries
20757libtool_build_shared_libs='no'
20758if test "$enable_shared" = 'yes'; then
20759 libtool_build_shared_libs='yes'
20760fi
20761
20762# Check to see if building static libraries
20763libtool_build_static_libs='no'
20764if test "$enable_static" = 'yes'; then
20765 libtool_build_static_libs='yes'
20766fi
20767
cristy73bd4a52010-10-05 11:24:23 +000020768 if test "${libtool_build_shared_libs}" = 'yes'; then
20769 WITH_SHARED_LIBS_TRUE=
20770 WITH_SHARED_LIBS_FALSE='#'
20771else
20772 WITH_SHARED_LIBS_TRUE='#'
20773 WITH_SHARED_LIBS_FALSE=
20774fi
20775
cristy3ed852e2009-09-05 21:47:34 +000020776#
20777# Enable support for building loadable modules
20778#
cristyaf4cbf32012-10-16 23:47:41 +000020779build_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000020780
20781# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000020782if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020783 withval=$with_modules; with_modules=$withval
20784else
cristy5a1cefd2010-01-06 20:42:35 +000020785 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000020786fi
20787
20788
20789# Only allow building loadable modules if we are building shared libraries
20790if test "$with_modules" != 'no' ; then
20791 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000020792 { $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 +000020793$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
cristyc6722092012-10-14 00:19:31 +000020794 build_modules='no'
20795 else
20796 build_modules='yes'
20797 fi
cristy3ed852e2009-09-05 21:47:34 +000020798fi
cristyc6722092012-10-14 00:19:31 +000020799if test "$build_modules" != 'no' ; then
cristy3ed852e2009-09-05 21:47:34 +000020800
cristy8b350f62009-11-15 23:12:43 +000020801$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020802
cristyfa161182012-12-19 15:45:28 +000020803 MAGICK_FEATURES="$MAGICK_FEATURES Modules"
cristy3ed852e2009-09-05 21:47:34 +000020804fi
cristyc6722092012-10-14 00:19:31 +000020805 if test "$build_modules" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +000020806 WITH_MODULES_TRUE=
20807 WITH_MODULES_FALSE='#'
20808else
20809 WITH_MODULES_TRUE='#'
20810 WITH_MODULES_FALSE=
20811fi
20812
cristy3ed852e2009-09-05 21:47:34 +000020813
cristy3ed852e2009-09-05 21:47:34 +000020814# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000020815# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000020816# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000020817if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020818 enableval=$enable_delegate_build; enable_delegate_build=$enableval
20819else
20820 enable_delegate_build='no'
20821fi
20822
20823
20824# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000020825if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020826 enableval=$enable_deprecated; enable_deprecated=$enableval
20827else
20828 enable_deprecated='no'
20829fi
20830
20831
20832if test "$enable_deprecated" = 'yes'; then
20833
cristy8b350f62009-11-15 23:12:43 +000020834$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020835
20836else
20837 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
20838fi
20839
20840# Build a version of ImageMagick which operates uninstalled.
20841# Used to build distributions located via MAGICK_HOME / executable path
20842# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000020843if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020844 enableval=$enable_installed; enable_installed=$enableval
20845else
20846 enable_installed='yes'
20847fi
20848
20849
20850if test "$enable_installed" = 'yes'; then
20851
cristy8b350f62009-11-15 23:12:43 +000020852$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020853
20854else
20855 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
20856fi
20857
20858# Permit enciphering and deciphering image pixels.
20859# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000020860if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020861 enableval=$enable_cipher; enable_cipher=$enableval
20862else
20863 enable_cipher='yes'
20864fi
20865
20866
20867if test "$enable_cipher" = 'yes'; then
20868
cristy8b350f62009-11-15 23:12:43 +000020869$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020870
20871fi
20872
cristy6e3607c2011-09-13 13:59:17 +000020873# Build a zero-configuration version of ImageMagick.
20874# Check whether --enable-zero-configuration was given.
20875if test "${enable_zero_configuration+set}" = set; then :
20876 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
cristy3ed852e2009-09-05 21:47:34 +000020877else
cristy6e3607c2011-09-13 13:59:17 +000020878 enable_zero_configuration='no'
cristy3ed852e2009-09-05 21:47:34 +000020879fi
20880
20881
cristy6e3607c2011-09-13 13:59:17 +000020882if test "$enable_zero_configuration" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000020883
cristy6e3607c2011-09-13 13:59:17 +000020884$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020885
cristy81af5702011-09-13 14:20:58 +000020886 MAGICK_FEATURES="Zero-Configuration $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000020887fi
20888
20889# Build a high dynamic range version of ImageMagick.
20890# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000020891if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020892 enableval=$enable_hdri; enable_hdri=$enableval
20893else
cristy191c0b72012-08-12 16:29:52 +000020894 enable_hdri='yes'
cristy3ed852e2009-09-05 21:47:34 +000020895fi
20896
20897
20898MAGICK_HDRI=""
20899if test "$enable_hdri" = 'yes'; then
20900 MAGICK_HDRI="HDRI"
cristye52f12f2012-12-31 15:32:36 +000020901 magick_hdri_enable='1';
cristyfd9dcd42010-08-08 18:07:02 +000020902 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristye52f12f2012-12-31 15:32:36 +000020903else
20904 magick_hdri_enable='0'
cristy3ed852e2009-09-05 21:47:34 +000020905fi
20906
cristye52f12f2012-12-31 15:32:36 +000020907cat >>confdefs.h <<_ACEOF
20908#define HDRI_ENABLE_OBSOLETE_IN_H $magick_hdri_enable
20909_ACEOF
20910
20911MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
20912CFLAGS="$CFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
cristy72062382012-12-31 16:49:52 +000020913CPPFLAGS="$CPPFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
cristye52f12f2012-12-31 15:32:36 +000020914
cristy3ed852e2009-09-05 21:47:34 +000020915# Build a version of ImageMagick with assert statements.
20916# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000020917if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020918 enableval=$enable_assert; enable_assert=$enableval
20919else
20920 enable_assert='yes'
20921fi
20922
20923
20924if test "$enable_assert" = 'no'; then
20925
cristy8b350f62009-11-15 23:12:43 +000020926$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020927
20928fi
20929
cristya448bd22011-10-14 12:38:13 +000020930# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
cristy73bd4a52010-10-05 11:24:23 +000020931
20932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
20933$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
20934 # Check whether --enable-maintainer-mode was given.
20935if test "${enable_maintainer_mode+set}" = set; then :
20936 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
20937else
20938 USE_MAINTAINER_MODE=no
20939fi
20940
20941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
20942$as_echo "$USE_MAINTAINER_MODE" >&6; }
20943 if test $USE_MAINTAINER_MODE = yes; then
20944 MAINTAINER_MODE_TRUE=
20945 MAINTAINER_MODE_FALSE='#'
20946else
20947 MAINTAINER_MODE_TRUE='#'
20948 MAINTAINER_MODE_FALSE=
20949fi
20950
20951 MAINT=$MAINTAINER_MODE_TRUE
20952
20953
cristy3ed852e2009-09-05 21:47:34 +000020954
cristy3ed852e2009-09-05 21:47:34 +000020955# Enable ccmalloc memory debugging support
20956# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000020957if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020958 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
20959else
20960 enable_ccmalloc='no'
20961fi
20962
20963
20964# Enable Electric Fence memory debugging support
20965# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000020966if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020967 enableval=$enable_efence; enable_efence=$enableval
20968else
20969 enable_efence='no'
20970fi
20971
20972
20973# Enable prof-based profiling support
20974# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000020975if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020976 enableval=$enable_prof; enable_prof=$enableval
20977else
20978 enable_prof='no'
20979fi
20980
20981
20982# Enable gprof-based profiling support
20983# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000020984if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020985 enableval=$enable_gprof; enable_gprof=$enableval
20986else
20987 enable_gprof='no'
20988fi
20989
20990
20991# Enable gcov-based profiling support
20992# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000020993if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020994 enableval=$enable_gcov; enable_gcov=$enableval
20995else
20996 enable_gcov='no'
20997fi
20998
20999
21000enable_profiling='no'
21001if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21002 enable_profiling='yes'
21003 if test "$libtool_build_shared_libs" = 'yes'; then
21004 echo "Warning: Can not profile code using shared libraries"
21005 fi
21006fi
21007
21008# Magick API method prefix
21009
21010# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000021011if test "${with_method_prefix+set}" = set; then :
cristyfc3d0222012-02-07 15:05:57 +000021012 withval=$with_method_prefix; with_method_prefix=$withval
cristy3ed852e2009-09-05 21:47:34 +000021013else
cristyfc3d0222012-02-07 15:05:57 +000021014 with_method_prefix='no'
cristy3ed852e2009-09-05 21:47:34 +000021015fi
21016
21017
cristyfc3d0222012-02-07 15:05:57 +000021018if test "$with_method_prefix" != 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000021019
21020cat >>confdefs.h <<_ACEOF
21021#define NAMESPACE_PREFIX $with_method_prefix
21022_ACEOF
21023
cristyfc3d0222012-02-07 15:05:57 +000021024 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-method-prefix "
cristy3ed852e2009-09-05 21:47:34 +000021025fi
21026
cristy71d8c202012-03-20 17:05:01 +000021027# Enable legacy support (default no)
21028# Check whether --enable-legacy-support was given.
21029if test "${enable_legacy_support+set}" = set; then :
21030 enableval=$enable_legacy_support; with_legacy_support=$enableval
21031else
21032 with_legacy_support='no'
21033fi
21034
21035 if test "$with_legacy_support" != 'no'; then
21036 LEGACY_SUPPORT_TRUE=
21037 LEGACY_SUPPORT_FALSE='#'
21038else
21039 LEGACY_SUPPORT_TRUE='#'
21040 LEGACY_SUPPORT_FALSE=
21041fi
21042
21043
cristy3ed852e2009-09-05 21:47:34 +000021044# Number of bits in a Quantum
21045
21046# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000021047if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021048 withval=$with_quantum_depth; with_quantum_depth=$withval
21049else
21050 with_quantum_depth=16
21051fi
21052
21053
21054if test "$with_quantum_depth" != '8'; then
21055 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21056fi
21057
21058case "${with_quantum_depth}" in
21059 8 ) ;;
21060 16 ) ;;
21061 32 ) ;;
21062 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000021063 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021064esac
21065QUANTUM_DEPTH="$with_quantum_depth"
21066
21067cat >>confdefs.h <<_ACEOF
cristye52f12f2012-12-31 15:32:36 +000021068#define QUANTUM_DEPTH_OBSOLETE_IN_H $QUANTUM_DEPTH
cristy3ed852e2009-09-05 21:47:34 +000021069_ACEOF
21070
cristya371edf2013-02-06 13:42:17 +000021071MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristye52f12f2012-12-31 15:32:36 +000021072CFLAGS="$CFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristy72062382012-12-31 16:49:52 +000021073CPPFLAGS="$CPPFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristy3ed852e2009-09-05 21:47:34 +000021074
cristy01ff9f32012-12-01 18:15:29 +000021075# define a lib suffix for abi purpose
cristy7a26abd2012-12-03 00:18:59 +000021076MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}"
cristye386d192012-12-01 21:05:20 +000021077if test "$enable_hdri" = 'yes'; then
cristy7a26abd2012-12-03 00:18:59 +000021078 MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}${MAGICK_HDRI}"
cristye386d192012-12-01 21:05:20 +000021079fi
cristy01ff9f32012-12-01 18:15:29 +000021080
21081
cristy3ed852e2009-09-05 21:47:34 +000021082# Set pixel cache threshold
21083
21084# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000021085if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021086 withval=$with_cache; with_cache=$withval
21087else
21088 with_cache=''
21089fi
21090
21091
21092if test "$with_cache" != ''; then
21093
21094cat >>confdefs.h <<_ACEOF
21095#define PixelCacheThreshold $with_cache
21096_ACEOF
21097
21098 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21099fi
21100
21101# Disable/Enable support for full delegate paths
21102
21103# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000021104if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021105 withval=$with_frozenpaths; with_frozenpaths=$withval
21106else
21107 with_frozenpaths='no'
21108fi
21109
21110
21111# Enable build/install of Magick++
21112
21113# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000021114if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021115 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21116else
21117 with_magick_plus_plus='yes'
21118fi
21119
21120
cristy3a75f062012-09-08 23:29:40 +000021121# Encode the this name into the shared library.
21122
21123# Check whether --with-package-release-name was given.
21124if test "${with_package_release_name+set}" = set; then :
21125 withval=$with_package_release_name; MAGICK_LT_RELEASE_OPTS="-release $withval"
21126fi
21127
21128
21129
cristy3ed852e2009-09-05 21:47:34 +000021130# Disable build/install of PerlMagick.
21131
21132# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000021133if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021134 withval=$with_perl; with_perl=$withval
21135else
cristyb5f4e2f2010-04-25 00:49:11 +000021136 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000021137fi
21138
21139
21140# Options to pass when configuring PerlMagick
21141
21142# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000021143if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000021144 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000021145fi
21146
21147
cristy3ed852e2009-09-05 21:47:34 +000021148
21149# Enable umem, object-caching memory allocation library.
21150
21151# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000021152if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021153 withval=$with_umem; with_umem=$withval
21154else
21155 with_umem='no'
21156fi
21157
21158if test "$with_umem" != 'yes' ; then
21159 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
21160fi
21161
21162#
21163# Specify path to shared libstdc++ if not in normal location
21164#
21165
21166# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000021167if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021168 withval=$with_libstdc; with_libstdc=$withval
21169else
21170 with_libstdc=''
21171fi
21172
21173
21174if test "$with_libstdc" != ''; then
21175 if test -d "$with_libstdc"; then
21176 LIBSTDCLDFLAGS="-L$with_libstdc"
21177 fi
21178fi
21179
21180
21181# Does gcc required -traditional?
21182if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000021183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021184$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021185if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021186 $as_echo_n "(cached) " >&6
21187else
21188 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000021189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021190/* end confdefs.h. */
21191#include <sgtty.h>
21192Autoconf TIOCGETP
21193_ACEOF
21194if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021195 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021196 ac_cv_prog_gcc_traditional=yes
21197else
21198 ac_cv_prog_gcc_traditional=no
21199fi
21200rm -f conftest*
21201
21202
21203 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000021204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021205/* end confdefs.h. */
21206#include <termio.h>
21207Autoconf TCGETA
21208_ACEOF
21209if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021210 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021211 ac_cv_prog_gcc_traditional=yes
21212fi
21213rm -f conftest*
21214
21215 fi
21216fi
cristy8b350f62009-11-15 23:12:43 +000021217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021218$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
21219 if test $ac_cv_prog_gcc_traditional = yes; then
21220 CC="$CC -traditional"
21221 fi
21222fi
21223
21224
21225########
21226#
21227# Set defines required to build DLLs and modules using MinGW
21228#
21229########
21230# These options are set for multi-thread DLL module build
21231# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
21232# module: _DLL
21233# executable/Magick++: _DLL _MAGICKMOD_
21234MODULE_EXTRA_CPPFLAGS=''
21235LIBRARY_EXTRA_CPPFLAGS=''
21236if test "${native_win32_build}" = 'yes'; then
21237 if test "${libtool_build_shared_libs}" = 'yes'; then
21238 CPPFLAGS="$CPPFLAGS -D_DLL"
21239 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
21240 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
21241 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
cristyc6722092012-10-14 00:19:31 +000021242 if test "$build_modules" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021243 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
21244 else
21245 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21246 fi
21247 else
21248 CPPFLAGS="$CPPFLAGS -D_LIB"
21249 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
21250 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
21251 fi
21252 if test "$with_threads" = 'yes'; then
21253 CPPFLAGS="$CPPFLAGS -D_MT"
21254 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
21255 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
21256 fi
21257fi
21258
21259
21260
21261# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000021262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000021263$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021264if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021265 $as_echo_n "(cached) " >&6
21266else
cristy8b350f62009-11-15 23:12:43 +000021267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021268/* end confdefs.h. */
21269#include <stdlib.h>
21270#include <stdarg.h>
21271#include <string.h>
21272#include <float.h>
21273
21274int
21275main ()
21276{
21277
21278 ;
21279 return 0;
21280}
21281_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021282if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021283 ac_cv_header_stdc=yes
21284else
cristy8b350f62009-11-15 23:12:43 +000021285 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021286fi
cristy3ed852e2009-09-05 21:47:34 +000021287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21288
21289if test $ac_cv_header_stdc = yes; then
21290 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021292/* end confdefs.h. */
21293#include <string.h>
21294
21295_ACEOF
21296if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021297 $EGREP "memchr" >/dev/null 2>&1; then :
21298
cristy3ed852e2009-09-05 21:47:34 +000021299else
21300 ac_cv_header_stdc=no
21301fi
21302rm -f conftest*
21303
21304fi
21305
21306if test $ac_cv_header_stdc = yes; then
21307 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021309/* end confdefs.h. */
21310#include <stdlib.h>
21311
21312_ACEOF
21313if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021314 $EGREP "free" >/dev/null 2>&1; then :
21315
cristy3ed852e2009-09-05 21:47:34 +000021316else
21317 ac_cv_header_stdc=no
21318fi
21319rm -f conftest*
21320
21321fi
21322
21323if test $ac_cv_header_stdc = yes; then
21324 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000021325 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021326 :
21327else
cristy8b350f62009-11-15 23:12:43 +000021328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021329/* end confdefs.h. */
21330#include <ctype.h>
21331#include <stdlib.h>
21332#if ((' ' & 0x0FF) == 0x020)
21333# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21334# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21335#else
21336# define ISLOWER(c) \
21337 (('a' <= (c) && (c) <= 'i') \
21338 || ('j' <= (c) && (c) <= 'r') \
21339 || ('s' <= (c) && (c) <= 'z'))
21340# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21341#endif
21342
21343#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21344int
21345main ()
21346{
21347 int i;
21348 for (i = 0; i < 256; i++)
21349 if (XOR (islower (i), ISLOWER (i))
21350 || toupper (i) != TOUPPER (i))
21351 return 2;
21352 return 0;
21353}
21354_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021355if ac_fn_c_try_run "$LINENO"; then :
21356
cristy3ed852e2009-09-05 21:47:34 +000021357else
cristy8b350f62009-11-15 23:12:43 +000021358 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021359fi
cristy8b350f62009-11-15 23:12:43 +000021360rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21361 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021362fi
21363
cristy3ed852e2009-09-05 21:47:34 +000021364fi
21365fi
cristy8b350f62009-11-15 23:12:43 +000021366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000021367$as_echo "$ac_cv_header_stdc" >&6; }
21368if test $ac_cv_header_stdc = yes; then
21369
cristy8b350f62009-11-15 23:12:43 +000021370$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021371
21372fi
21373
21374if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000021375 { $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 +000021376 header files. Compilation cannot proceed. Please install the ANSI C
21377 headers and rerun this script." >&5
21378$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
21379 header files. Compilation cannot proceed. Please install the ANSI C
21380 headers and rerun this script." >&2;};
21381fi
cristya0b81c32010-01-22 02:54:33 +000021382
21383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
21384$as_echo_n "checking whether to enable assertions... " >&6; }
21385 # Check whether --enable-assert was given.
21386if test "${enable_assert+set}" = set; then :
21387 enableval=$enable_assert; ac_enable_assert=$enableval
21388 if test "x$enableval" = xno; then :
21389
21390$as_echo "#define NDEBUG 1" >>confdefs.h
21391
21392elif test "x$enableval" != xyes; then :
21393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
21394$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
21395 ac_enable_assert=yes
21396fi
21397else
21398 ac_enable_assert=yes
21399fi
21400
21401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
21402$as_echo "$ac_enable_assert" >&6; }
21403
cristy3ed852e2009-09-05 21:47:34 +000021404ac_header_dirent=no
21405for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21406 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000021407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000021408$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021409if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021410 $as_echo_n "(cached) " >&6
21411else
cristy8b350f62009-11-15 23:12:43 +000021412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021413/* end confdefs.h. */
21414#include <sys/types.h>
21415#include <$ac_hdr>
21416
21417int
21418main ()
21419{
21420if ((DIR *) 0)
21421return 0;
21422 ;
21423 return 0;
21424}
21425_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021426if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021427 eval "$as_ac_Header=yes"
21428else
cristy8b350f62009-11-15 23:12:43 +000021429 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000021430fi
cristy3ed852e2009-09-05 21:47:34 +000021431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21432fi
cristy8b350f62009-11-15 23:12:43 +000021433eval ac_res=\$$as_ac_Header
21434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000021435$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000021436if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021437 cat >>confdefs.h <<_ACEOF
21438#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21439_ACEOF
21440
21441ac_header_dirent=$ac_hdr; break
21442fi
21443
21444done
21445# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21446if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000021447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021448$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021449if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021450 $as_echo_n "(cached) " >&6
21451else
21452 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021453cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021454/* end confdefs.h. */
21455
21456/* Override any GCC internal prototype to avoid an error.
21457 Use char because int might match the return type of a GCC
21458 builtin and then its argument prototype would still apply. */
21459#ifdef __cplusplus
21460extern "C"
21461#endif
21462char opendir ();
21463int
21464main ()
21465{
21466return opendir ();
21467 ;
21468 return 0;
21469}
21470_ACEOF
21471for ac_lib in '' dir; do
21472 if test -z "$ac_lib"; then
21473 ac_res="none required"
21474 else
21475 ac_res=-l$ac_lib
21476 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21477 fi
cristy8b350f62009-11-15 23:12:43 +000021478 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021479 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021480fi
cristy8b350f62009-11-15 23:12:43 +000021481rm -f core conftest.err conftest.$ac_objext \
21482 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021483 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021484 break
21485fi
21486done
cristyda16f162011-02-19 23:52:17 +000021487if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021488
cristy3ed852e2009-09-05 21:47:34 +000021489else
21490 ac_cv_search_opendir=no
21491fi
21492rm conftest.$ac_ext
21493LIBS=$ac_func_search_save_LIBS
21494fi
cristy8b350f62009-11-15 23:12:43 +000021495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021496$as_echo "$ac_cv_search_opendir" >&6; }
21497ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021498if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021499 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21500
21501fi
21502
21503else
cristy8b350f62009-11-15 23:12:43 +000021504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021505$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021506if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021507 $as_echo_n "(cached) " >&6
21508else
21509 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021510cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021511/* end confdefs.h. */
21512
21513/* Override any GCC internal prototype to avoid an error.
21514 Use char because int might match the return type of a GCC
21515 builtin and then its argument prototype would still apply. */
21516#ifdef __cplusplus
21517extern "C"
21518#endif
21519char opendir ();
21520int
21521main ()
21522{
21523return opendir ();
21524 ;
21525 return 0;
21526}
21527_ACEOF
21528for ac_lib in '' x; do
21529 if test -z "$ac_lib"; then
21530 ac_res="none required"
21531 else
21532 ac_res=-l$ac_lib
21533 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21534 fi
cristy8b350f62009-11-15 23:12:43 +000021535 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021536 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021537fi
cristy8b350f62009-11-15 23:12:43 +000021538rm -f core conftest.err conftest.$ac_objext \
21539 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021540 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021541 break
21542fi
21543done
cristyda16f162011-02-19 23:52:17 +000021544if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021545
cristy3ed852e2009-09-05 21:47:34 +000021546else
21547 ac_cv_search_opendir=no
21548fi
21549rm conftest.$ac_ext
21550LIBS=$ac_func_search_save_LIBS
21551fi
cristy8b350f62009-11-15 23:12:43 +000021552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021553$as_echo "$ac_cv_search_opendir" >&6; }
21554ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021555if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021556 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21557
21558fi
21559
21560fi
21561
21562
21563# Check additional headers
cristy03f187e2013-01-24 00:22:19 +000021564for 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 +000021565do :
21566 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21567ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000021568if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021569 cat >>confdefs.h <<_ACEOF
21570#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21571_ACEOF
21572
21573fi
21574
21575done
21576
21577
21578########
21579#
21580# Checks for typedefs, structures, and compiler characteristics.
21581#
21582########
21583
cristy8b350f62009-11-15 23:12:43 +000021584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000021585$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021586if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021587 $as_echo_n "(cached) " >&6
21588else
cristy8b350f62009-11-15 23:12:43 +000021589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021590/* end confdefs.h. */
21591
cristy14fefe52012-05-21 00:59:18 +000021592 #include <stdbool.h>
21593 #ifndef bool
21594 "error: bool is not defined"
21595 #endif
21596 #ifndef false
21597 "error: false is not defined"
21598 #endif
21599 #if false
21600 "error: false is not 0"
21601 #endif
21602 #ifndef true
21603 "error: true is not defined"
21604 #endif
21605 #if true != 1
21606 "error: true is not 1"
21607 #endif
21608 #ifndef __bool_true_false_are_defined
21609 "error: __bool_true_false_are_defined is not defined"
21610 #endif
cristy3ed852e2009-09-05 21:47:34 +000021611
cristy14fefe52012-05-21 00:59:18 +000021612 struct s { _Bool s: 1; _Bool t; } s;
cristy3ed852e2009-09-05 21:47:34 +000021613
cristy14fefe52012-05-21 00:59:18 +000021614 char a[true == 1 ? 1 : -1];
21615 char b[false == 0 ? 1 : -1];
21616 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
21617 char d[(bool) 0.5 == true ? 1 : -1];
21618 /* See body of main program for 'e'. */
21619 char f[(_Bool) 0.0 == false ? 1 : -1];
21620 char g[true];
21621 char h[sizeof (_Bool)];
21622 char i[sizeof s.t];
21623 enum { j = false, k = true, l = false * true, m = true * 256 };
21624 /* The following fails for
21625 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
21626 _Bool n[m];
21627 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
21628 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
21629 /* Catch a bug in an HP-UX C compiler. See
21630 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
21631 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
21632 */
21633 _Bool q = true;
21634 _Bool *pq = &q;
cristy3ed852e2009-09-05 21:47:34 +000021635
21636int
21637main ()
21638{
21639
cristy14fefe52012-05-21 00:59:18 +000021640 bool e = &s;
21641 *pq |= q;
21642 *pq |= ! q;
21643 /* Refer to every declared value, to avoid compiler optimizations. */
21644 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
21645 + !m + !n + !o + !p + !q + !pq);
cristy3ed852e2009-09-05 21:47:34 +000021646
21647 ;
21648 return 0;
21649}
21650_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021651if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021652 ac_cv_header_stdbool_h=yes
21653else
cristy8b350f62009-11-15 23:12:43 +000021654 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000021655fi
cristy3ed852e2009-09-05 21:47:34 +000021656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21657fi
cristy8b350f62009-11-15 23:12:43 +000021658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000021659$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy14fefe52012-05-21 00:59:18 +000021660 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000021661if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000021662
21663cat >>confdefs.h <<_ACEOF
21664#define HAVE__BOOL 1
21665_ACEOF
21666
21667
21668fi
21669
cristy14fefe52012-05-21 00:59:18 +000021670
cristy3ed852e2009-09-05 21:47:34 +000021671if test $ac_cv_header_stdbool_h = yes; then
21672
cristy8b350f62009-11-15 23:12:43 +000021673$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021674
21675fi
21676
cristy8b350f62009-11-15 23:12:43 +000021677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021678$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021679if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021680 $as_echo_n "(cached) " >&6
21681else
cristy8b350f62009-11-15 23:12:43 +000021682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021683/* end confdefs.h. */
21684
21685int
21686main ()
21687{
21688
21689volatile int x;
21690int * volatile y = (int *) 0;
21691return !x && !y;
21692 ;
21693 return 0;
21694}
21695_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021696if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021697 ac_cv_c_volatile=yes
21698else
cristy8b350f62009-11-15 23:12:43 +000021699 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000021700fi
cristy3ed852e2009-09-05 21:47:34 +000021701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21702fi
cristy8b350f62009-11-15 23:12:43 +000021703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021704$as_echo "$ac_cv_c_volatile" >&6; }
21705if test $ac_cv_c_volatile = no; then
21706
cristy8b350f62009-11-15 23:12:43 +000021707$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021708
21709fi
21710
cristy8b350f62009-11-15 23:12:43 +000021711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000021712$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021713if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021714 $as_echo_n "(cached) " >&6
21715else
cristy8b350f62009-11-15 23:12:43 +000021716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021717/* end confdefs.h. */
21718#define x(y) #y
21719
21720char *s = x(teststring);
21721_ACEOF
21722if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021723 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021724 ac_cv_c_stringize=no
21725else
21726 ac_cv_c_stringize=yes
21727fi
21728rm -f conftest*
21729
21730fi
cristy8b350f62009-11-15 23:12:43 +000021731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000021732$as_echo "$ac_cv_c_stringize" >&6; }
21733if test $ac_cv_c_stringize = yes; then
21734
cristy8b350f62009-11-15 23:12:43 +000021735$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021736
21737fi
21738
cristy8b350f62009-11-15 23:12:43 +000021739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021740$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021741if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021742 $as_echo_n "(cached) " >&6
21743else
cristy8b350f62009-11-15 23:12:43 +000021744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021745/* end confdefs.h. */
21746#include <sys/types.h>
21747#include <sys/stat.h>
21748
21749#if defined S_ISBLK && defined S_IFDIR
21750extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21751#endif
21752
21753#if defined S_ISBLK && defined S_IFCHR
21754extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21755#endif
21756
21757#if defined S_ISLNK && defined S_IFREG
21758extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21759#endif
21760
21761#if defined S_ISSOCK && defined S_IFREG
21762extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21763#endif
21764
21765_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021766if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021767 ac_cv_header_stat_broken=no
21768else
cristy8b350f62009-11-15 23:12:43 +000021769 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000021770fi
cristy3ed852e2009-09-05 21:47:34 +000021771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21772fi
cristy8b350f62009-11-15 23:12:43 +000021773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021774$as_echo "$ac_cv_header_stat_broken" >&6; }
21775if test $ac_cv_header_stat_broken = yes; then
21776
cristy8b350f62009-11-15 23:12:43 +000021777$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021778
21779fi
21780
cristy8b350f62009-11-15 23:12:43 +000021781{ $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 +000021782$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021783if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021784 $as_echo_n "(cached) " >&6
21785else
cristy8b350f62009-11-15 23:12:43 +000021786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021787/* end confdefs.h. */
21788#include <sys/types.h>
21789#include <sys/time.h>
21790#include <time.h>
21791
21792int
21793main ()
21794{
21795if ((struct tm *) 0)
21796return 0;
21797 ;
21798 return 0;
21799}
21800_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021801if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021802 ac_cv_header_time=yes
21803else
cristy8b350f62009-11-15 23:12:43 +000021804 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000021805fi
cristy3ed852e2009-09-05 21:47:34 +000021806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21807fi
cristy8b350f62009-11-15 23:12:43 +000021808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000021809$as_echo "$ac_cv_header_time" >&6; }
21810if test $ac_cv_header_time = yes; then
21811
cristy8b350f62009-11-15 23:12:43 +000021812$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021813
21814fi
21815
cristy8b350f62009-11-15 23:12:43 +000021816{ $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 +000021817$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021818if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021819 $as_echo_n "(cached) " >&6
21820else
cristy8b350f62009-11-15 23:12:43 +000021821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021822/* end confdefs.h. */
21823#include <sys/types.h>
21824#include <time.h>
21825
21826int
21827main ()
21828{
21829struct tm tm;
21830 int *p = &tm.tm_sec;
21831 return !p;
21832 ;
21833 return 0;
21834}
21835_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021836if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021837 ac_cv_struct_tm=time.h
21838else
cristy8b350f62009-11-15 23:12:43 +000021839 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000021840fi
cristy3ed852e2009-09-05 21:47:34 +000021841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21842fi
cristy8b350f62009-11-15 23:12:43 +000021843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000021844$as_echo "$ac_cv_struct_tm" >&6; }
21845if test $ac_cv_struct_tm = sys/time.h; then
21846
cristy8b350f62009-11-15 23:12:43 +000021847$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021848
21849fi
21850
cristy92703d82010-04-26 00:18:18 +000021851ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21852#include <$ac_cv_struct_tm>
21853
21854"
cristyda16f162011-02-19 23:52:17 +000021855if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000021856
21857cat >>confdefs.h <<_ACEOF
21858#define HAVE_STRUCT_TM_TM_ZONE 1
21859_ACEOF
21860
21861
21862fi
21863
21864if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21865
21866$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21867
21868else
21869 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21870"
cristyda16f162011-02-19 23:52:17 +000021871if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000021872 ac_have_decl=1
21873else
21874 ac_have_decl=0
21875fi
21876
21877cat >>confdefs.h <<_ACEOF
21878#define HAVE_DECL_TZNAME $ac_have_decl
21879_ACEOF
21880
21881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21882$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021883if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000021884 $as_echo_n "(cached) " >&6
21885else
21886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21887/* end confdefs.h. */
21888#include <time.h>
21889#if !HAVE_DECL_TZNAME
21890extern char *tzname[];
21891#endif
21892
21893int
21894main ()
21895{
21896return tzname[0][0];
21897 ;
21898 return 0;
21899}
21900_ACEOF
21901if ac_fn_c_try_link "$LINENO"; then :
21902 ac_cv_var_tzname=yes
21903else
21904 ac_cv_var_tzname=no
21905fi
21906rm -f core conftest.err conftest.$ac_objext \
21907 conftest$ac_exeext conftest.$ac_ext
21908fi
21909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21910$as_echo "$ac_cv_var_tzname" >&6; }
21911 if test $ac_cv_var_tzname = yes; then
21912
21913$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21914
21915 fi
21916fi
21917
cristy8b350f62009-11-15 23:12:43 +000021918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000021919$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021920if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021921 $as_echo_n "(cached) " >&6
21922else
21923 echo '#! /bin/cat
21924exit 69
21925' >conftest
21926chmod u+x conftest
21927(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
21928if test $? -ne 69; then
21929 ac_cv_sys_interpreter=yes
21930else
21931 ac_cv_sys_interpreter=no
21932fi
21933rm -f conftest
21934fi
cristy8b350f62009-11-15 23:12:43 +000021935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000021936$as_echo "$ac_cv_sys_interpreter" >&6; }
21937interpval=$ac_cv_sys_interpreter
21938
21939
cristye80f9cb2013-01-09 01:09:31 +000021940#
21941# Checks for language qualifiers and semantics.
21942#
21943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
21944$as_echo_n "checking whether char is unsigned... " >&6; }
21945if ${ac_cv_c_char_unsigned+:} false; then :
21946 $as_echo_n "(cached) " >&6
21947else
21948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21949/* end confdefs.h. */
21950$ac_includes_default
21951int
21952main ()
21953{
21954static int test_array [1 - 2 * !(((char) -1) < 0)];
21955test_array [0] = 0;
21956return test_array [0];
21957
21958 ;
21959 return 0;
21960}
21961_ACEOF
21962if ac_fn_c_try_compile "$LINENO"; then :
21963 ac_cv_c_char_unsigned=no
21964else
21965 ac_cv_c_char_unsigned=yes
21966fi
21967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21968fi
21969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
21970$as_echo "$ac_cv_c_char_unsigned" >&6; }
21971if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
21972 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
21973
21974fi
21975
21976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
21977$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
21978if ${ac_cv_c_const+:} false; then :
21979 $as_echo_n "(cached) " >&6
21980else
21981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21982/* end confdefs.h. */
21983
21984int
21985main ()
21986{
21987
21988#ifndef __cplusplus
21989 /* Ultrix mips cc rejects this sort of thing. */
21990 typedef int charset[2];
21991 const charset cs = { 0, 0 };
21992 /* SunOS 4.1.1 cc rejects this. */
21993 char const *const *pcpcc;
21994 char **ppc;
21995 /* NEC SVR4.0.2 mips cc rejects this. */
21996 struct point {int x, y;};
21997 static struct point const zero = {0,0};
21998 /* AIX XL C 1.02.0.0 rejects this.
21999 It does not let you subtract one const X* pointer from another in
22000 an arm of an if-expression whose if-part is not a constant
22001 expression */
22002 const char *g = "string";
22003 pcpcc = &g + (g ? g-g : 0);
22004 /* HPUX 7.0 cc rejects these. */
22005 ++pcpcc;
22006 ppc = (char**) pcpcc;
22007 pcpcc = (char const *const *) ppc;
22008 { /* SCO 3.2v4 cc rejects this sort of thing. */
22009 char tx;
22010 char *t = &tx;
22011 char const *s = 0 ? (char *) 0 : (char const *) 0;
22012
22013 *t++ = 0;
22014 if (s) return 0;
22015 }
22016 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22017 int x[] = {25, 17};
22018 const int *foo = &x[0];
22019 ++foo;
22020 }
22021 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22022 typedef const int *iptr;
22023 iptr p = 0;
22024 ++p;
22025 }
22026 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
22027 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22028 struct s { int j; const int *ap[3]; } bx;
22029 struct s *b = &bx; b->j = 5;
22030 }
22031 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22032 const int foo = 10;
22033 if (!foo) return 0;
22034 }
22035 return !cs[0] && !zero.x;
22036#endif
22037
22038 ;
22039 return 0;
22040}
22041_ACEOF
22042if ac_fn_c_try_compile "$LINENO"; then :
22043 ac_cv_c_const=yes
22044else
22045 ac_cv_c_const=no
22046fi
22047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22048fi
22049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
22050$as_echo "$ac_cv_c_const" >&6; }
22051if test $ac_cv_c_const = no; then
22052
22053$as_echo "#define const /**/" >>confdefs.h
22054
22055fi
22056
cristy8b350f62009-11-15 23:12:43 +000022057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022058$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022059if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022060 $as_echo_n "(cached) " >&6
22061else
22062 ac_cv_c_inline=no
22063for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000022064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022065/* end confdefs.h. */
22066#ifndef __cplusplus
22067typedef int foo_t;
22068static $ac_kw foo_t static_foo () {return 0; }
22069$ac_kw foo_t foo () {return 0; }
22070#endif
22071
22072_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022073if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022074 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022075fi
cristy3ed852e2009-09-05 21:47:34 +000022076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22077 test "$ac_cv_c_inline" != no && break
22078done
22079
22080fi
cristy8b350f62009-11-15 23:12:43 +000022081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022082$as_echo "$ac_cv_c_inline" >&6; }
22083
cristy3ed852e2009-09-05 21:47:34 +000022084case $ac_cv_c_inline in
22085 inline | yes) ;;
22086 *)
22087 case $ac_cv_c_inline in
22088 no) ac_val=;;
22089 *) ac_val=$ac_cv_c_inline;;
22090 esac
22091 cat >>confdefs.h <<_ACEOF
22092#ifndef __cplusplus
22093#define inline $ac_val
22094#endif
22095_ACEOF
22096 ;;
22097esac
22098
cristy8b350f62009-11-15 23:12:43 +000022099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000022100$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022101if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022102 $as_echo_n "(cached) " >&6
22103else
22104 ac_cv_c_restrict=no
22105 # The order here caters to the fact that C++ does not require restrict.
22106 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000022107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022108/* end confdefs.h. */
22109typedef int * int_ptr;
22110 int foo (int_ptr $ac_kw ip) {
22111 return ip[0];
22112 }
22113int
22114main ()
22115{
22116int s[1];
22117 int * $ac_kw t = s;
22118 t[0] = 0;
22119 return foo(t)
22120 ;
22121 return 0;
22122}
22123_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022124if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022125 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022126fi
cristy3ed852e2009-09-05 21:47:34 +000022127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22128 test "$ac_cv_c_restrict" != no && break
22129 done
22130
22131fi
cristy8b350f62009-11-15 23:12:43 +000022132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000022133$as_echo "$ac_cv_c_restrict" >&6; }
22134
cristy3ed852e2009-09-05 21:47:34 +000022135 case $ac_cv_c_restrict in
22136 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000022137 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022138 ;;
22139 *) cat >>confdefs.h <<_ACEOF
22140#define restrict $ac_cv_c_restrict
22141_ACEOF
22142 ;;
22143 esac
22144
cristye80f9cb2013-01-09 01:09:31 +000022145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
22146$as_echo_n "checking for working volatile... " >&6; }
22147if ${ac_cv_c_volatile+:} false; then :
22148 $as_echo_n "(cached) " >&6
22149else
22150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22151/* end confdefs.h. */
22152
22153int
22154main ()
22155{
22156
22157volatile int x;
22158int * volatile y = (int *) 0;
22159return !x && !y;
22160 ;
22161 return 0;
22162}
22163_ACEOF
22164if ac_fn_c_try_compile "$LINENO"; then :
22165 ac_cv_c_volatile=yes
22166else
22167 ac_cv_c_volatile=no
22168fi
22169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22170fi
22171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
22172$as_echo "$ac_cv_c_volatile" >&6; }
22173if test $ac_cv_c_volatile = no; then
22174
22175$as_echo "#define volatile /**/" >>confdefs.h
22176
22177fi
22178
cristy3ed852e2009-09-05 21:47:34 +000022179
22180# If words are stored with the most significant byte first (like
22181# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000022182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022183$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022184if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022185 $as_echo_n "(cached) " >&6
22186else
22187 ac_cv_c_bigendian=unknown
22188 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000022189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022190/* end confdefs.h. */
22191#ifndef __APPLE_CC__
22192 not a universal capable compiler
22193 #endif
22194 typedef int dummy;
22195
22196_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022197if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022198
22199 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000022200 # there are at least two -arch flags with different values.
22201 ac_arch=
22202 ac_prev=
22203 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22204 if test -n "$ac_prev"; then
22205 case $ac_word in
22206 i?86 | x86_64 | ppc | ppc64)
22207 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22208 ac_arch=$ac_word
22209 else
22210 ac_cv_c_bigendian=universal
22211 break
22212 fi
22213 ;;
22214 esac
22215 ac_prev=
22216 elif test "x$ac_word" = "x-arch"; then
22217 ac_prev=arch
22218 fi
22219 done
cristy3ed852e2009-09-05 21:47:34 +000022220fi
cristy3ed852e2009-09-05 21:47:34 +000022221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22222 if test $ac_cv_c_bigendian = unknown; then
22223 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000022224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022225/* end confdefs.h. */
22226#include <sys/types.h>
22227 #include <sys/param.h>
22228
22229int
22230main ()
22231{
22232#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22233 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22234 && LITTLE_ENDIAN)
22235 bogus endian macros
22236 #endif
22237
22238 ;
22239 return 0;
22240}
22241_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022242if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022243 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022245/* end confdefs.h. */
22246#include <sys/types.h>
22247 #include <sys/param.h>
22248
22249int
22250main ()
22251{
22252#if BYTE_ORDER != BIG_ENDIAN
22253 not big endian
22254 #endif
22255
22256 ;
22257 return 0;
22258}
22259_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022260if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022261 ac_cv_c_bigendian=yes
22262else
cristy8b350f62009-11-15 23:12:43 +000022263 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022264fi
cristy3ed852e2009-09-05 21:47:34 +000022265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022266fi
cristy3ed852e2009-09-05 21:47:34 +000022267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22268 fi
22269 if test $ac_cv_c_bigendian = unknown; then
22270 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000022271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022272/* end confdefs.h. */
22273#include <limits.h>
22274
22275int
22276main ()
22277{
22278#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22279 bogus endian macros
22280 #endif
22281
22282 ;
22283 return 0;
22284}
22285_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022286if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022287 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022289/* end confdefs.h. */
22290#include <limits.h>
22291
22292int
22293main ()
22294{
22295#ifndef _BIG_ENDIAN
22296 not big endian
22297 #endif
22298
22299 ;
22300 return 0;
22301}
22302_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022303if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022304 ac_cv_c_bigendian=yes
22305else
cristy8b350f62009-11-15 23:12:43 +000022306 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022307fi
cristy3ed852e2009-09-05 21:47:34 +000022308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022309fi
cristy3ed852e2009-09-05 21:47:34 +000022310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22311 fi
22312 if test $ac_cv_c_bigendian = unknown; then
22313 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000022314 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022315 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000022316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022317/* end confdefs.h. */
22318short int ascii_mm[] =
22319 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22320 short int ascii_ii[] =
22321 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22322 int use_ascii (int i) {
22323 return ascii_mm[i] + ascii_ii[i];
22324 }
22325 short int ebcdic_ii[] =
22326 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22327 short int ebcdic_mm[] =
22328 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22329 int use_ebcdic (int i) {
22330 return ebcdic_mm[i] + ebcdic_ii[i];
22331 }
22332 extern int foo;
22333
22334int
22335main ()
22336{
22337return use_ascii (foo) == use_ebcdic (foo);
22338 ;
22339 return 0;
22340}
22341_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022342if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022343 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22344 ac_cv_c_bigendian=yes
22345 fi
22346 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22347 if test "$ac_cv_c_bigendian" = unknown; then
22348 ac_cv_c_bigendian=no
22349 else
22350 # finding both strings is unlikely to happen, but who knows?
22351 ac_cv_c_bigendian=unknown
22352 fi
22353 fi
cristy3ed852e2009-09-05 21:47:34 +000022354fi
cristy3ed852e2009-09-05 21:47:34 +000022355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22356else
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$ac_includes_default
22360int
22361main ()
22362{
22363
22364 /* Are we little or big endian? From Harbison&Steele. */
22365 union
22366 {
22367 long int l;
22368 char c[sizeof (long int)];
22369 } u;
22370 u.l = 1;
22371 return u.c[sizeof (long int) - 1] == 1;
22372
22373 ;
22374 return 0;
22375}
22376_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022377if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022378 ac_cv_c_bigendian=no
22379else
cristy8b350f62009-11-15 23:12:43 +000022380 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000022381fi
cristy8b350f62009-11-15 23:12:43 +000022382rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22383 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022384fi
22385
cristy3ed852e2009-09-05 21:47:34 +000022386 fi
22387fi
cristy8b350f62009-11-15 23:12:43 +000022388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022389$as_echo "$ac_cv_c_bigendian" >&6; }
22390 case $ac_cv_c_bigendian in #(
22391 yes)
cristy8b350f62009-11-15 23:12:43 +000022392 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022393;; #(
22394 no)
22395 ;; #(
22396 universal)
22397
cristy8b350f62009-11-15 23:12:43 +000022398$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022399
22400 ;; #(
22401 *)
cristy98dddb52010-11-04 00:30:15 +000022402 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000022403 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000022404 esac
22405
22406
cristy501c8042011-05-26 17:46:28 +000022407# Define to a suitable type, if standard headers do not define it.
22408ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
22409case $ac_cv_c_int8_t in #(
22410 no|yes) ;; #(
22411 *)
cristy3ed852e2009-09-05 21:47:34 +000022412
22413cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022414#define int8_t $ac_cv_c_int8_t
22415_ACEOF
22416;;
22417esac
22418
22419ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
22420case $ac_cv_c_int16_t in #(
22421 no|yes) ;; #(
22422 *)
22423
22424cat >>confdefs.h <<_ACEOF
22425#define int16_t $ac_cv_c_int16_t
22426_ACEOF
22427;;
22428esac
22429
22430ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
22431case $ac_cv_c_int32_t in #(
22432 no|yes) ;; #(
22433 *)
22434
22435cat >>confdefs.h <<_ACEOF
22436#define int32_t $ac_cv_c_int32_t
22437_ACEOF
22438;;
22439esac
22440
22441ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
22442case $ac_cv_c_int64_t in #(
22443 no|yes) ;; #(
22444 *)
22445
22446cat >>confdefs.h <<_ACEOF
22447#define int64_t $ac_cv_c_int64_t
22448_ACEOF
22449;;
22450esac
22451
22452
cristybdabdd62013-03-04 17:43:36 +000022453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22454$as_echo_n "checking for long long int... " >&6; }
22455if ${ac_cv_type_long_long_int+:} false; then :
cristy501c8042011-05-26 17:46:28 +000022456 $as_echo_n "(cached) " >&6
22457else
cristybdabdd62013-03-04 17:43:36 +000022458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000022459/* end confdefs.h. */
22460
22461 /* For now, do not test the preprocessor; as of 2007 there are too many
cristybdabdd62013-03-04 17:43:36 +000022462 implementations with broken preprocessors. Perhaps this can
22463 be revisited in 2012. In the meantime, code should not expect
22464 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000022465 /* Test literals. */
22466 long long int ll = 9223372036854775807ll;
22467 long long int nll = -9223372036854775807LL;
22468 unsigned long long int ull = 18446744073709551615ULL;
22469 /* Test constant expressions. */
22470 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristybdabdd62013-03-04 17:43:36 +000022471 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000022472 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristybdabdd62013-03-04 17:43:36 +000022473 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000022474 int i = 63;
22475int
22476main ()
22477{
22478/* Test availability of runtime routines for shift and division. */
22479 long long int llmax = 9223372036854775807ll;
22480 unsigned long long int ullmax = 18446744073709551615ull;
22481 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristybdabdd62013-03-04 17:43:36 +000022482 | (llmax / ll) | (llmax % ll)
22483 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22484 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000022485 ;
22486 return 0;
22487}
22488
22489_ACEOF
22490if ac_fn_c_try_link "$LINENO"; then :
cristybdabdd62013-03-04 17:43:36 +000022491 if test "$cross_compiling" = yes; then :
cristy501c8042011-05-26 17:46:28 +000022492 ac_cv_type_long_long_int=yes
22493else
22494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22495/* end confdefs.h. */
22496#include <limits.h>
cristybdabdd62013-03-04 17:43:36 +000022497 #ifndef LLONG_MAX
22498 # define HALF \
22499 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22500 # define LLONG_MAX (HALF - 1 + HALF)
22501 #endif
cristy501c8042011-05-26 17:46:28 +000022502int
22503main ()
22504{
22505long long int n = 1;
cristybdabdd62013-03-04 17:43:36 +000022506 int i;
22507 for (i = 0; ; i++)
22508 {
22509 long long int m = n << i;
22510 if (m >> i != n)
22511 return 1;
22512 if (LLONG_MAX / 2 < m)
22513 break;
22514 }
22515 return 0;
cristy501c8042011-05-26 17:46:28 +000022516 ;
22517 return 0;
22518}
22519_ACEOF
22520if ac_fn_c_try_run "$LINENO"; then :
cristybdabdd62013-03-04 17:43:36 +000022521 ac_cv_type_long_long_int=yes
cristy501c8042011-05-26 17:46:28 +000022522else
22523 ac_cv_type_long_long_int=no
22524fi
22525rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22526 conftest.$ac_objext conftest.beam conftest.$ac_ext
22527fi
22528
cristybdabdd62013-03-04 17:43:36 +000022529else
22530 ac_cv_type_long_long_int=no
22531fi
22532rm -f core conftest.err conftest.$ac_objext \
22533 conftest$ac_exeext conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000022534fi
22535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22536$as_echo "$ac_cv_type_long_long_int" >&6; }
22537 if test $ac_cv_type_long_long_int = yes; then
22538
22539$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22540
22541 fi
22542
22543
22544
22545 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
22546if test "x$ac_cv_type_intmax_t" = xyes; then :
22547
22548$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
22549
22550else
22551 test $ac_cv_type_long_long_int = yes \
22552 && ac_type='long long int' \
22553 || ac_type='long int'
22554
22555cat >>confdefs.h <<_ACEOF
22556#define intmax_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022557_ACEOF
22558
22559fi
22560
22561
cristy501c8042011-05-26 17:46:28 +000022562
22563 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
22564if test "x$ac_cv_type_intptr_t" = xyes; then :
22565
22566$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022567
cristy3ed852e2009-09-05 21:47:34 +000022568else
cristy501c8042011-05-26 17:46:28 +000022569 for ac_type in 'int' 'long int' 'long long int'; do
22570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22571/* end confdefs.h. */
22572$ac_includes_default
22573int
22574main ()
22575{
22576static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000022577test_array [0] = 0;
22578return test_array [0];
cristy501c8042011-05-26 17:46:28 +000022579
22580 ;
22581 return 0;
22582}
22583_ACEOF
22584if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022585
22586cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022587#define intptr_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022588_ACEOF
22589
cristy501c8042011-05-26 17:46:28 +000022590 ac_type=
22591fi
22592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22593 test -z "$ac_type" && break
22594 done
cristy3ed852e2009-09-05 21:47:34 +000022595fi
22596
22597
cristy3ed852e2009-09-05 21:47:34 +000022598
cristy501c8042011-05-26 17:46:28 +000022599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
22600$as_echo_n "checking for long double... " >&6; }
22601if ${ac_cv_type_long_double+:} false; then :
22602 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +000022603else
cristy501c8042011-05-26 17:46:28 +000022604 if test "$GCC" = yes; then
22605 ac_cv_type_long_double=yes
22606 else
22607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22608/* end confdefs.h. */
22609/* The Stardent Vistra knows sizeof (long double), but does
22610 not support it. */
22611 long double foo = 0.0L;
22612int
22613main ()
22614{
22615static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
22616 sizeof (double) <= sizeof (long double))];
cristy14fefe52012-05-21 00:59:18 +000022617test_array [0] = 0;
22618return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000022619
cristy501c8042011-05-26 17:46:28 +000022620 ;
22621 return 0;
22622}
cristy3ed852e2009-09-05 21:47:34 +000022623_ACEOF
cristy501c8042011-05-26 17:46:28 +000022624if ac_fn_c_try_compile "$LINENO"; then :
22625 ac_cv_type_long_double=yes
cristy3ed852e2009-09-05 21:47:34 +000022626else
cristy501c8042011-05-26 17:46:28 +000022627 ac_cv_type_long_double=no
cristy3ed852e2009-09-05 21:47:34 +000022628fi
cristy501c8042011-05-26 17:46:28 +000022629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22630 fi
cristy3ed852e2009-09-05 21:47:34 +000022631fi
cristy501c8042011-05-26 17:46:28 +000022632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
22633$as_echo "$ac_cv_type_long_double" >&6; }
22634 if test $ac_cv_type_long_double = yes; then
cristy3ed852e2009-09-05 21:47:34 +000022635
cristy501c8042011-05-26 17:46:28 +000022636$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022637
cristy501c8042011-05-26 17:46:28 +000022638 fi
22639
cristy3ed852e2009-09-05 21:47:34 +000022640
cristy8b350f62009-11-15 23:12:43 +000022641 { $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 +000022642$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022643if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022644 $as_echo_n "(cached) " >&6
22645else
cristy8b350f62009-11-15 23:12:43 +000022646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022647/* end confdefs.h. */
22648#include <float.h>
22649 long double const a[] =
22650 {
22651 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
22652 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
22653 };
22654 long double
22655 f (long double x)
22656 {
22657 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
22658 + (x ? f (x) : 'c'));
22659 }
22660
22661int
22662main ()
22663{
22664static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
22665 + (DBL_MANT_DIG < LDBL_MANT_DIG)
22666 - (LDBL_MAX_EXP < DBL_MAX_EXP)
22667 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
22668 && (int) LDBL_EPSILON == 0
22669 )];
cristy14fefe52012-05-21 00:59:18 +000022670test_array [0] = 0;
22671return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000022672
22673 ;
22674 return 0;
22675}
22676_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022677if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022678 ac_cv_type_long_double_wider=yes
22679else
cristy8b350f62009-11-15 23:12:43 +000022680 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000022681fi
cristy3ed852e2009-09-05 21:47:34 +000022682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22683fi
cristy8b350f62009-11-15 23:12:43 +000022684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000022685$as_echo "$ac_cv_type_long_double_wider" >&6; }
22686 if test $ac_cv_type_long_double_wider = yes; then
22687
cristy8b350f62009-11-15 23:12:43 +000022688$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022689
22690 fi
22691
22692
cristy501c8042011-05-26 17:46:28 +000022693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22694$as_echo_n "checking for long long int... " >&6; }
22695if ${ac_cv_type_long_long_int+:} false; then :
22696 $as_echo_n "(cached) " >&6
22697else
cristybdabdd62013-03-04 17:43:36 +000022698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22699/* end confdefs.h. */
22700
22701 /* For now, do not test the preprocessor; as of 2007 there are too many
22702 implementations with broken preprocessors. Perhaps this can
22703 be revisited in 2012. In the meantime, code should not expect
22704 #if to work with literals wider than 32 bits. */
22705 /* Test literals. */
22706 long long int ll = 9223372036854775807ll;
22707 long long int nll = -9223372036854775807LL;
22708 unsigned long long int ull = 18446744073709551615ULL;
22709 /* Test constant expressions. */
22710 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22711 ? 1 : -1)];
22712 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22713 ? 1 : -1)];
22714 int i = 63;
22715int
22716main ()
22717{
22718/* Test availability of runtime routines for shift and division. */
22719 long long int llmax = 9223372036854775807ll;
22720 unsigned long long int ullmax = 18446744073709551615ull;
22721 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22722 | (llmax / ll) | (llmax % ll)
22723 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22724 | (ullmax / ull) | (ullmax % ull));
22725 ;
22726 return 0;
22727}
22728
22729_ACEOF
22730if ac_fn_c_try_link "$LINENO"; then :
22731 if test "$cross_compiling" = yes; then :
cristy501c8042011-05-26 17:46:28 +000022732 ac_cv_type_long_long_int=yes
22733else
22734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22735/* end confdefs.h. */
22736#include <limits.h>
cristybdabdd62013-03-04 17:43:36 +000022737 #ifndef LLONG_MAX
22738 # define HALF \
22739 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22740 # define LLONG_MAX (HALF - 1 + HALF)
22741 #endif
cristy501c8042011-05-26 17:46:28 +000022742int
22743main ()
22744{
22745long long int n = 1;
cristybdabdd62013-03-04 17:43:36 +000022746 int i;
22747 for (i = 0; ; i++)
22748 {
22749 long long int m = n << i;
22750 if (m >> i != n)
22751 return 1;
22752 if (LLONG_MAX / 2 < m)
22753 break;
22754 }
22755 return 0;
cristy501c8042011-05-26 17:46:28 +000022756 ;
22757 return 0;
22758}
22759_ACEOF
22760if ac_fn_c_try_run "$LINENO"; then :
cristybdabdd62013-03-04 17:43:36 +000022761 ac_cv_type_long_long_int=yes
cristy501c8042011-05-26 17:46:28 +000022762else
22763 ac_cv_type_long_long_int=no
22764fi
22765rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22766 conftest.$ac_objext conftest.beam conftest.$ac_ext
22767fi
22768
cristybdabdd62013-03-04 17:43:36 +000022769else
22770 ac_cv_type_long_long_int=no
22771fi
22772rm -f core conftest.err conftest.$ac_objext \
22773 conftest$ac_exeext conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000022774fi
22775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22776$as_echo "$ac_cv_type_long_long_int" >&6; }
22777 if test $ac_cv_type_long_long_int = yes; then
22778
22779$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22780
22781 fi
22782
22783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
22784$as_echo_n "checking for mbstate_t... " >&6; }
22785if ${ac_cv_type_mbstate_t+:} false; then :
22786 $as_echo_n "(cached) " >&6
22787else
22788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22789/* end confdefs.h. */
22790$ac_includes_default
22791# include <wchar.h>
22792int
22793main ()
22794{
22795mbstate_t x; return sizeof x;
22796 ;
22797 return 0;
22798}
22799_ACEOF
22800if ac_fn_c_try_compile "$LINENO"; then :
22801 ac_cv_type_mbstate_t=yes
22802else
22803 ac_cv_type_mbstate_t=no
22804fi
22805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22806fi
22807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
22808$as_echo "$ac_cv_type_mbstate_t" >&6; }
22809 if test $ac_cv_type_mbstate_t = yes; then
22810
22811$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
22812
22813 else
22814
22815$as_echo "#define mbstate_t int" >>confdefs.h
22816
22817 fi
22818ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
22819if test "x$ac_cv_type_mode_t" = xyes; then :
22820
22821else
22822
22823cat >>confdefs.h <<_ACEOF
22824#define mode_t int
22825_ACEOF
22826
22827fi
22828
22829ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
22830if test "x$ac_cv_type_off_t" = xyes; then :
22831
22832else
22833
22834cat >>confdefs.h <<_ACEOF
22835#define off_t long int
22836_ACEOF
22837
22838fi
22839
22840ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
22841if test "x$ac_cv_type_pid_t" = xyes; then :
22842
22843else
22844
22845cat >>confdefs.h <<_ACEOF
22846#define pid_t int
22847_ACEOF
22848
22849fi
22850
22851ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
22852if test "x$ac_cv_type_size_t" = xyes; then :
22853
22854else
22855
22856cat >>confdefs.h <<_ACEOF
22857#define size_t unsigned int
22858_ACEOF
22859
22860fi
22861
22862ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
22863if test "x$ac_cv_type_ssize_t" = xyes; then :
22864
22865else
22866
22867cat >>confdefs.h <<_ACEOF
22868#define ssize_t int
22869_ACEOF
22870
22871fi
22872
22873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
22874$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
22875if ${ac_cv_type_uid_t+:} false; then :
22876 $as_echo_n "(cached) " >&6
22877else
22878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22879/* end confdefs.h. */
22880#include <sys/types.h>
22881
22882_ACEOF
22883if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22884 $EGREP "uid_t" >/dev/null 2>&1; then :
22885 ac_cv_type_uid_t=yes
22886else
22887 ac_cv_type_uid_t=no
22888fi
22889rm -f conftest*
22890
22891fi
22892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
22893$as_echo "$ac_cv_type_uid_t" >&6; }
22894if test $ac_cv_type_uid_t = no; then
22895
22896$as_echo "#define uid_t int" >>confdefs.h
22897
22898
22899$as_echo "#define gid_t int" >>confdefs.h
22900
22901fi
22902
22903ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
22904case $ac_cv_c_uint8_t in #(
22905 no|yes) ;; #(
22906 *)
22907
22908$as_echo "#define _UINT8_T 1" >>confdefs.h
22909
22910
22911cat >>confdefs.h <<_ACEOF
22912#define uint8_t $ac_cv_c_uint8_t
22913_ACEOF
22914;;
22915 esac
22916
22917ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
22918case $ac_cv_c_uint16_t in #(
22919 no|yes) ;; #(
22920 *)
22921
22922
22923cat >>confdefs.h <<_ACEOF
22924#define uint16_t $ac_cv_c_uint16_t
22925_ACEOF
22926;;
22927 esac
22928
22929ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
22930case $ac_cv_c_uint32_t in #(
22931 no|yes) ;; #(
22932 *)
22933
22934$as_echo "#define _UINT32_T 1" >>confdefs.h
22935
22936
22937cat >>confdefs.h <<_ACEOF
22938#define uint32_t $ac_cv_c_uint32_t
22939_ACEOF
22940;;
22941 esac
22942
22943ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
22944case $ac_cv_c_uint64_t in #(
22945 no|yes) ;; #(
22946 *)
22947
22948$as_echo "#define _UINT64_T 1" >>confdefs.h
22949
22950
22951cat >>confdefs.h <<_ACEOF
22952#define uint64_t $ac_cv_c_uint64_t
22953_ACEOF
22954;;
22955 esac
22956
22957
cristybdabdd62013-03-04 17:43:36 +000022958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
22959$as_echo_n "checking for unsigned long long int... " >&6; }
22960if ${ac_cv_type_unsigned_long_long_int+:} false; then :
22961 $as_echo_n "(cached) " >&6
22962else
22963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22964/* end confdefs.h. */
22965
22966 /* For now, do not test the preprocessor; as of 2007 there are too many
22967 implementations with broken preprocessors. Perhaps this can
22968 be revisited in 2012. In the meantime, code should not expect
22969 #if to work with literals wider than 32 bits. */
22970 /* Test literals. */
22971 long long int ll = 9223372036854775807ll;
22972 long long int nll = -9223372036854775807LL;
22973 unsigned long long int ull = 18446744073709551615ULL;
22974 /* Test constant expressions. */
22975 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22976 ? 1 : -1)];
22977 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22978 ? 1 : -1)];
22979 int i = 63;
22980int
22981main ()
22982{
22983/* Test availability of runtime routines for shift and division. */
22984 long long int llmax = 9223372036854775807ll;
22985 unsigned long long int ullmax = 18446744073709551615ull;
22986 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22987 | (llmax / ll) | (llmax % ll)
22988 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22989 | (ullmax / ull) | (ullmax % ull));
22990 ;
22991 return 0;
22992}
22993
22994_ACEOF
22995if ac_fn_c_try_link "$LINENO"; then :
22996 ac_cv_type_unsigned_long_long_int=yes
22997else
22998 ac_cv_type_unsigned_long_long_int=no
22999fi
23000rm -f core conftest.err conftest.$ac_objext \
23001 conftest$ac_exeext conftest.$ac_ext
23002fi
23003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23004$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23005 if test $ac_cv_type_unsigned_long_long_int = yes; then
23006
23007$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23008
23009 fi
23010
23011
cristy501c8042011-05-26 17:46:28 +000023012
23013 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
23014if test "x$ac_cv_type_uintmax_t" = xyes; then :
23015
23016$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
23017
23018else
23019 test $ac_cv_type_unsigned_long_long_int = yes \
23020 && ac_type='unsigned long long int' \
23021 || ac_type='unsigned long int'
23022
23023cat >>confdefs.h <<_ACEOF
23024#define uintmax_t $ac_type
23025_ACEOF
23026
23027fi
23028
23029
23030
23031 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23032if test "x$ac_cv_type_uintptr_t" = xyes; then :
23033
23034$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
23035
23036else
23037 for ac_type in 'unsigned int' 'unsigned long int' \
23038 'unsigned long long int'; do
23039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23040/* end confdefs.h. */
23041$ac_includes_default
23042int
23043main ()
23044{
23045static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000023046test_array [0] = 0;
23047return test_array [0];
cristy501c8042011-05-26 17:46:28 +000023048
23049 ;
23050 return 0;
23051}
23052_ACEOF
23053if ac_fn_c_try_compile "$LINENO"; then :
23054
23055cat >>confdefs.h <<_ACEOF
23056#define uintptr_t $ac_type
23057_ACEOF
23058
23059 ac_type=
23060fi
23061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23062 test -z "$ac_type" && break
23063 done
23064fi
23065
23066
23067
23068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23069$as_echo_n "checking for unsigned long long int... " >&6; }
23070if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23071 $as_echo_n "(cached) " >&6
23072else
cristybdabdd62013-03-04 17:43:36 +000023073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000023074/* end confdefs.h. */
23075
23076 /* For now, do not test the preprocessor; as of 2007 there are too many
cristybdabdd62013-03-04 17:43:36 +000023077 implementations with broken preprocessors. Perhaps this can
23078 be revisited in 2012. In the meantime, code should not expect
23079 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000023080 /* Test literals. */
23081 long long int ll = 9223372036854775807ll;
23082 long long int nll = -9223372036854775807LL;
23083 unsigned long long int ull = 18446744073709551615ULL;
23084 /* Test constant expressions. */
23085 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristybdabdd62013-03-04 17:43:36 +000023086 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023087 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristybdabdd62013-03-04 17:43:36 +000023088 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023089 int i = 63;
23090int
23091main ()
23092{
23093/* Test availability of runtime routines for shift and division. */
23094 long long int llmax = 9223372036854775807ll;
23095 unsigned long long int ullmax = 18446744073709551615ull;
23096 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristybdabdd62013-03-04 17:43:36 +000023097 | (llmax / ll) | (llmax % ll)
23098 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23099 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000023100 ;
23101 return 0;
23102}
23103
23104_ACEOF
23105if ac_fn_c_try_link "$LINENO"; then :
cristybdabdd62013-03-04 17:43:36 +000023106 ac_cv_type_unsigned_long_long_int=yes
cristy501c8042011-05-26 17:46:28 +000023107else
23108 ac_cv_type_unsigned_long_long_int=no
23109fi
23110rm -f core conftest.err conftest.$ac_objext \
23111 conftest$ac_exeext conftest.$ac_ext
23112fi
23113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23114$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23115 if test $ac_cv_type_unsigned_long_long_int = yes; then
23116
23117$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23118
23119 fi
23120
23121
cristy9b86f202012-11-28 21:55:35 +000023122# Float_t and double_t are intended to be the the most efficient type.
cristyf0cf9a22012-10-24 12:05:01 +000023123ac_fn_c_check_type "$LINENO" "float_t" "ac_cv_type_float_t" "#include <math.h>
23124"
23125if test "x$ac_cv_type_float_t" = xyes; then :
23126
23127cat >>confdefs.h <<_ACEOF
23128#define HAVE_FLOAT_T 1
23129_ACEOF
23130
23131
23132fi
23133
23134ac_fn_c_check_type "$LINENO" "double_t" "ac_cv_type_double_t" "#include <math.h>
23135"
23136if test "x$ac_cv_type_double_t" = xyes; then :
23137
23138cat >>confdefs.h <<_ACEOF
23139#define HAVE_DOUBLE_T 1
23140_ACEOF
23141
23142
23143fi
23144
cristy9b86f202012-11-28 21:55:35 +000023145# The cast to long int works around a bug in the HP C Compiler
23146# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23147# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23148# This bug is HP SR number 8606223364.
23149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float_t" >&5
23150$as_echo_n "checking size of float_t... " >&6; }
23151if ${ac_cv_sizeof_float_t+:} false; then :
23152 $as_echo_n "(cached) " >&6
23153else
23154 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float_t))" "ac_cv_sizeof_float_t" "#include <math.h>
23155"; then :
23156
23157else
23158 if test "$ac_cv_type_float_t" = yes; then
23159 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23160$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23161as_fn_error 77 "cannot compute sizeof (float_t)
23162See \`config.log' for more details" "$LINENO" 5; }
23163 else
23164 ac_cv_sizeof_float_t=0
23165 fi
23166fi
23167
23168fi
23169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float_t" >&5
23170$as_echo "$ac_cv_sizeof_float_t" >&6; }
23171
23172
23173
23174cat >>confdefs.h <<_ACEOF
23175#define SIZEOF_FLOAT_T $ac_cv_sizeof_float_t
23176_ACEOF
23177
23178
23179# The cast to long int works around a bug in the HP C Compiler
23180# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23181# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23182# This bug is HP SR number 8606223364.
23183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double_t" >&5
23184$as_echo_n "checking size of double_t... " >&6; }
23185if ${ac_cv_sizeof_double_t+:} false; then :
23186 $as_echo_n "(cached) " >&6
23187else
23188 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double_t))" "ac_cv_sizeof_double_t" "#include <math.h>
23189"; then :
23190
23191else
23192 if test "$ac_cv_type_double_t" = yes; then
23193 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23194$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23195as_fn_error 77 "cannot compute sizeof (double_t)
23196See \`config.log' for more details" "$LINENO" 5; }
23197 else
23198 ac_cv_sizeof_double_t=0
23199 fi
23200fi
23201
23202fi
23203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double_t" >&5
23204$as_echo "$ac_cv_sizeof_double_t" >&6; }
23205
23206
23207
23208cat >>confdefs.h <<_ACEOF
23209#define SIZEOF_DOUBLE_T $ac_cv_sizeof_double_t
23210_ACEOF
23211
23212
23213
23214# Get size of float, double and long double for comparaison.
23215# The cast to long int works around a bug in the HP C Compiler
23216# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23217# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23218# This bug is HP SR number 8606223364.
23219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
23220$as_echo_n "checking size of float... " >&6; }
23221if ${ac_cv_sizeof_float+:} false; then :
23222 $as_echo_n "(cached) " >&6
23223else
23224 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
23225
23226else
23227 if test "$ac_cv_type_float" = yes; then
23228 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23229$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23230as_fn_error 77 "cannot compute sizeof (float)
23231See \`config.log' for more details" "$LINENO" 5; }
23232 else
23233 ac_cv_sizeof_float=0
23234 fi
23235fi
23236
23237fi
23238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
23239$as_echo "$ac_cv_sizeof_float" >&6; }
23240
23241
23242
23243cat >>confdefs.h <<_ACEOF
23244#define SIZEOF_FLOAT $ac_cv_sizeof_float
23245_ACEOF
23246
23247
23248# The cast to long int works around a bug in the HP C Compiler
23249# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23250# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23251# This bug is HP SR number 8606223364.
23252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
23253$as_echo_n "checking size of double... " >&6; }
23254if ${ac_cv_sizeof_double+:} false; then :
23255 $as_echo_n "(cached) " >&6
23256else
23257 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
23258
23259else
23260 if test "$ac_cv_type_double" = yes; then
23261 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23262$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23263as_fn_error 77 "cannot compute sizeof (double)
23264See \`config.log' for more details" "$LINENO" 5; }
23265 else
23266 ac_cv_sizeof_double=0
23267 fi
23268fi
23269
23270fi
23271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
23272$as_echo "$ac_cv_sizeof_double" >&6; }
23273
23274
23275
23276cat >>confdefs.h <<_ACEOF
23277#define SIZEOF_DOUBLE $ac_cv_sizeof_double
23278_ACEOF
23279
23280
23281# The cast to long int works around a bug in the HP C Compiler
23282# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23283# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23284# This bug is HP SR number 8606223364.
23285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
23286$as_echo_n "checking size of long double... " >&6; }
23287if ${ac_cv_sizeof_long_double+:} false; then :
23288 $as_echo_n "(cached) " >&6
23289else
23290 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
23291
23292else
23293 if test "$ac_cv_type_long_double" = yes; then
23294 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23295$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23296as_fn_error 77 "cannot compute sizeof (long double)
23297See \`config.log' for more details" "$LINENO" 5; }
23298 else
23299 ac_cv_sizeof_long_double=0
23300 fi
23301fi
23302
23303fi
23304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
23305$as_echo "$ac_cv_sizeof_long_double" >&6; }
23306
23307
23308
23309cat >>confdefs.h <<_ACEOF
23310#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
23311_ACEOF
23312
23313
cristyf0cf9a22012-10-24 12:05:01 +000023314
cristy3ed852e2009-09-05 21:47:34 +000023315# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
23316# The cast to long int works around a bug in the HP C Compiler
23317# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23318# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23319# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023321$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023322if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023323 $as_echo_n "(cached) " >&6
23324else
cristy8b350f62009-11-15 23:12:43 +000023325 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 +000023326
cristy3ed852e2009-09-05 21:47:34 +000023327else
cristy8b350f62009-11-15 23:12:43 +000023328 if test "$ac_cv_type_signed_short" = yes; then
23329 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023330$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023331as_fn_error 77 "cannot compute sizeof (signed short)
23332See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023333 else
23334 ac_cv_sizeof_signed_short=0
23335 fi
23336fi
cristy8b350f62009-11-15 23:12:43 +000023337
cristy3ed852e2009-09-05 21:47:34 +000023338fi
cristy8b350f62009-11-15 23:12:43 +000023339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023340$as_echo "$ac_cv_sizeof_signed_short" >&6; }
23341
23342
23343
23344cat >>confdefs.h <<_ACEOF
23345#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
23346_ACEOF
23347
23348
23349
23350# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
23351# The cast to long int works around a bug in the HP C Compiler
23352# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23353# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23354# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023356$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023357if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023358 $as_echo_n "(cached) " >&6
23359else
cristy8b350f62009-11-15 23:12:43 +000023360 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 +000023361
cristy3ed852e2009-09-05 21:47:34 +000023362else
cristy8b350f62009-11-15 23:12:43 +000023363 if test "$ac_cv_type_unsigned_short" = yes; then
23364 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023365$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023366as_fn_error 77 "cannot compute sizeof (unsigned short)
23367See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023368 else
23369 ac_cv_sizeof_unsigned_short=0
23370 fi
23371fi
cristy8b350f62009-11-15 23:12:43 +000023372
cristy3ed852e2009-09-05 21:47:34 +000023373fi
cristy8b350f62009-11-15 23:12:43 +000023374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023375$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
23376
23377
23378
23379cat >>confdefs.h <<_ACEOF
23380#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
23381_ACEOF
23382
23383
23384
23385# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
23386# The cast to long int works around a bug in the HP C Compiler
23387# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23388# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23389# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023391$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023392if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023393 $as_echo_n "(cached) " >&6
23394else
cristy8b350f62009-11-15 23:12:43 +000023395 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 +000023396
cristy3ed852e2009-09-05 21:47:34 +000023397else
cristy8b350f62009-11-15 23:12:43 +000023398 if test "$ac_cv_type_signed_int" = yes; then
23399 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023400$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023401as_fn_error 77 "cannot compute sizeof (signed int)
23402See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023403 else
23404 ac_cv_sizeof_signed_int=0
23405 fi
23406fi
cristy8b350f62009-11-15 23:12:43 +000023407
cristy3ed852e2009-09-05 21:47:34 +000023408fi
cristy8b350f62009-11-15 23:12:43 +000023409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023410$as_echo "$ac_cv_sizeof_signed_int" >&6; }
23411
23412
23413
23414cat >>confdefs.h <<_ACEOF
23415#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
23416_ACEOF
23417
23418
23419
23420# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
23421# The cast to long int works around a bug in the HP C Compiler
23422# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23423# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23424# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023426$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023427if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023428 $as_echo_n "(cached) " >&6
23429else
cristy8b350f62009-11-15 23:12:43 +000023430 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 +000023431
cristy3ed852e2009-09-05 21:47:34 +000023432else
cristy8b350f62009-11-15 23:12:43 +000023433 if test "$ac_cv_type_unsigned_int" = yes; then
23434 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023435$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023436as_fn_error 77 "cannot compute sizeof (unsigned int)
23437See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023438 else
23439 ac_cv_sizeof_unsigned_int=0
23440 fi
23441fi
cristy8b350f62009-11-15 23:12:43 +000023442
cristy3ed852e2009-09-05 21:47:34 +000023443fi
cristy8b350f62009-11-15 23:12:43 +000023444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023445$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
23446
23447
23448
23449cat >>confdefs.h <<_ACEOF
23450#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
23451_ACEOF
23452
23453
23454
23455# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
23456# The cast to long int works around a bug in the HP C Compiler
23457# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23458# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23459# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023461$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023462if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023463 $as_echo_n "(cached) " >&6
23464else
cristy8b350f62009-11-15 23:12:43 +000023465 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 +000023466
cristy3ed852e2009-09-05 21:47:34 +000023467else
cristy8b350f62009-11-15 23:12:43 +000023468 if test "$ac_cv_type_signed_long" = yes; then
23469 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023470$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023471as_fn_error 77 "cannot compute sizeof (signed long)
23472See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023473 else
23474 ac_cv_sizeof_signed_long=0
23475 fi
23476fi
cristy8b350f62009-11-15 23:12:43 +000023477
cristy3ed852e2009-09-05 21:47:34 +000023478fi
cristy8b350f62009-11-15 23:12:43 +000023479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023480$as_echo "$ac_cv_sizeof_signed_long" >&6; }
23481
23482
23483
23484cat >>confdefs.h <<_ACEOF
23485#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
23486_ACEOF
23487
23488
23489
23490# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
23491# The cast to long int works around a bug in the HP C Compiler
23492# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23493# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23494# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023496$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023497if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023498 $as_echo_n "(cached) " >&6
23499else
cristy8b350f62009-11-15 23:12:43 +000023500 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 +000023501
cristy3ed852e2009-09-05 21:47:34 +000023502else
cristy8b350f62009-11-15 23:12:43 +000023503 if test "$ac_cv_type_unsigned_long" = yes; then
23504 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023505$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023506as_fn_error 77 "cannot compute sizeof (unsigned long)
23507See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023508 else
23509 ac_cv_sizeof_unsigned_long=0
23510 fi
23511fi
cristy8b350f62009-11-15 23:12:43 +000023512
cristy3ed852e2009-09-05 21:47:34 +000023513fi
cristy8b350f62009-11-15 23:12:43 +000023514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023515$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
23516
23517
23518
23519cat >>confdefs.h <<_ACEOF
23520#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
23521_ACEOF
23522
23523
23524
23525# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
23526# 'signed long long' is not supported then the value defined is zero.
23527# The cast to long int works around a bug in the HP C Compiler
23528# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23529# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23530# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023532$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023533if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023534 $as_echo_n "(cached) " >&6
23535else
cristy8b350f62009-11-15 23:12:43 +000023536 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 +000023537
cristy3ed852e2009-09-05 21:47:34 +000023538else
cristy8b350f62009-11-15 23:12:43 +000023539 if test "$ac_cv_type_signed_long_long" = yes; then
23540 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023541$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023542as_fn_error 77 "cannot compute sizeof (signed long long)
23543See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023544 else
23545 ac_cv_sizeof_signed_long_long=0
23546 fi
23547fi
cristy8b350f62009-11-15 23:12:43 +000023548
cristy3ed852e2009-09-05 21:47:34 +000023549fi
cristy8b350f62009-11-15 23:12:43 +000023550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023551$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
23552
23553
23554
23555cat >>confdefs.h <<_ACEOF
23556#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
23557_ACEOF
23558
23559
23560
23561# Obtain size of a 'unsigned long long' and define as
23562# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
23563# supported then the value defined is zero.
23564# The cast to long int works around a bug in the HP C Compiler
23565# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23566# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23567# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023569$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023570if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023571 $as_echo_n "(cached) " >&6
23572else
cristy8b350f62009-11-15 23:12:43 +000023573 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 +000023574
cristy3ed852e2009-09-05 21:47:34 +000023575else
cristy8b350f62009-11-15 23:12:43 +000023576 if test "$ac_cv_type_unsigned_long_long" = yes; then
23577 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023578$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023579as_fn_error 77 "cannot compute sizeof (unsigned long long)
23580See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023581 else
23582 ac_cv_sizeof_unsigned_long_long=0
23583 fi
23584fi
cristy8b350f62009-11-15 23:12:43 +000023585
cristy3ed852e2009-09-05 21:47:34 +000023586fi
cristy8b350f62009-11-15 23:12:43 +000023587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023588$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
23589
23590
23591
23592cat >>confdefs.h <<_ACEOF
23593#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
23594_ACEOF
23595
23596
23597
23598# Obtain size of off_t and define as SIZEOF_OFF_T
23599# The cast to long int works around a bug in the HP C Compiler
23600# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23601# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23602# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023604$as_echo_n "checking size of off_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023605if ${ac_cv_sizeof_off_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023606 $as_echo_n "(cached) " >&6
23607else
cristy8b350f62009-11-15 23:12:43 +000023608 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
cristy3ed852e2009-09-05 21:47:34 +000023609
cristy3ed852e2009-09-05 21:47:34 +000023610else
cristy8b350f62009-11-15 23:12:43 +000023611 if test "$ac_cv_type_off_t" = yes; then
23612 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023613$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023614as_fn_error 77 "cannot compute sizeof (off_t)
23615See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023616 else
23617 ac_cv_sizeof_off_t=0
23618 fi
23619fi
cristy8b350f62009-11-15 23:12:43 +000023620
cristy3ed852e2009-09-05 21:47:34 +000023621fi
cristy8b350f62009-11-15 23:12:43 +000023622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023623$as_echo "$ac_cv_sizeof_off_t" >&6; }
23624
23625
23626
23627cat >>confdefs.h <<_ACEOF
23628#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
23629_ACEOF
23630
23631
23632
23633# Obtain size of size_t and define as SIZEOF_SIZE_T
23634# The cast to long int works around a bug in the HP C Compiler
23635# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23636# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23637# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023639$as_echo_n "checking size of size_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023640if ${ac_cv_sizeof_size_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023641 $as_echo_n "(cached) " >&6
23642else
cristy8b350f62009-11-15 23:12:43 +000023643 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
cristy3ed852e2009-09-05 21:47:34 +000023644
cristy3ed852e2009-09-05 21:47:34 +000023645else
cristy8b350f62009-11-15 23:12:43 +000023646 if test "$ac_cv_type_size_t" = yes; then
23647 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023648$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023649as_fn_error 77 "cannot compute sizeof (size_t)
23650See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023651 else
23652 ac_cv_sizeof_size_t=0
23653 fi
23654fi
cristy8b350f62009-11-15 23:12:43 +000023655
cristy3ed852e2009-09-05 21:47:34 +000023656fi
cristy8b350f62009-11-15 23:12:43 +000023657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023658$as_echo "$ac_cv_sizeof_size_t" >&6; }
23659
23660
23661
23662cat >>confdefs.h <<_ACEOF
23663#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
23664_ACEOF
23665
23666
23667
cristy330e9352010-06-01 18:42:49 +000023668# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
23669# The cast to long int works around a bug in the HP C Compiler
23670# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23671# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23672# This bug is HP SR number 8606223364.
23673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
23674$as_echo_n "checking size of ssize_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023675if ${ac_cv_sizeof_ssize_t+:} false; then :
cristy330e9352010-06-01 18:42:49 +000023676 $as_echo_n "(cached) " >&6
23677else
23678 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
23679
23680else
23681 if test "$ac_cv_type_ssize_t" = yes; then
23682 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23683$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023684as_fn_error 77 "cannot compute sizeof (ssize_t)
23685See \`config.log' for more details" "$LINENO" 5; }
cristy330e9352010-06-01 18:42:49 +000023686 else
23687 ac_cv_sizeof_ssize_t=0
23688 fi
23689fi
23690
23691fi
23692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
23693$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
23694
23695
23696
23697cat >>confdefs.h <<_ACEOF
23698#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
23699_ACEOF
23700
23701
23702
cristy3ed852e2009-09-05 21:47:34 +000023703# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
23704# The cast to long int works around a bug in the HP C Compiler
23705# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23706# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23707# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000023709$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023710if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023711 $as_echo_n "(cached) " >&6
23712else
cristy8b350f62009-11-15 23:12:43 +000023713 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 +000023714
cristy3ed852e2009-09-05 21:47:34 +000023715else
cristy8b350f62009-11-15 23:12:43 +000023716 if test "$ac_cv_type_unsigned_intp" = yes; then
23717 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023718$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023719as_fn_error 77 "cannot compute sizeof (unsigned int*)
23720See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023721 else
23722 ac_cv_sizeof_unsigned_intp=0
23723 fi
23724fi
cristy8b350f62009-11-15 23:12:43 +000023725
cristy3ed852e2009-09-05 21:47:34 +000023726fi
cristy8b350f62009-11-15 23:12:43 +000023727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000023728$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
23729
23730
23731
23732cat >>confdefs.h <<_ACEOF
23733#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
23734_ACEOF
23735
23736
23737
23738#
23739# Compute sized types for current CPU and compiler options.
23740#
23741
cristy8b350f62009-11-15 23:12:43 +000023742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023743$as_echo_n "checking for signed 8-bit type... " >&6; }
23744INT8_T='signed char'
cristyad38abe2012-12-23 23:03:21 +000023745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
23746$as_echo "$INT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023747
23748
cristy8b350f62009-11-15 23:12:43 +000023749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023750$as_echo_n "checking for unsigned 8-bit type... " >&6; }
23751UINT8_T='unsigned char'
cristyad38abe2012-12-23 23:03:21 +000023752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
23753$as_echo "$UINT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023754
23755
cristy8b350f62009-11-15 23:12:43 +000023756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023757$as_echo_n "checking for signed 16-bit type... " >&6; }
23758INT16_T='signed short'
cristyad38abe2012-12-23 23:03:21 +000023759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
23760$as_echo "$INT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023761
23762
cristy8b350f62009-11-15 23:12:43 +000023763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023764$as_echo_n "checking for unsigned 16-bit type... " >&6; }
23765UINT16_T='unsigned short'
cristyad38abe2012-12-23 23:03:21 +000023766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
23767$as_echo "$UINT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023768
23769
cristy8b350f62009-11-15 23:12:43 +000023770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023771$as_echo_n "checking for signed 32-bit type... " >&6; }
23772INT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023773INT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023774if test $ac_cv_sizeof_signed_int -eq 4; then
23775 INT32_T='signed int'
cristy6d5e20f2011-04-25 13:48:54 +000023776 INT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000023777elif test $ac_cv_sizeof_signed_long -eq 4; then
23778 INT32_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000023779 INT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023780fi
cristyad38abe2012-12-23 23:03:21 +000023781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
23782$as_echo "$INT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023783
23784
cristy6d5e20f2011-04-25 13:48:54 +000023785
cristy8b350f62009-11-15 23:12:43 +000023786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023787$as_echo_n "checking for unsigned 32-bit type... " >&6; }
23788UINT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023789UINT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023790if test $ac_cv_sizeof_unsigned_int -eq 4; then
23791 UINT32_T='unsigned int'
cristy6d5e20f2011-04-25 13:48:54 +000023792 UINT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000023793elif test $ac_cv_sizeof_unsigned_long -eq 4; then
23794 UINT32_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023795 UINT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023796fi
cristyad38abe2012-12-23 23:03:21 +000023797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
23798$as_echo "$UINT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023799
23800
cristy6d5e20f2011-04-25 13:48:54 +000023801
cristy8b350f62009-11-15 23:12:43 +000023802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023803$as_echo_n "checking for signed 64-bit type... " >&6; }
23804INT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023805INT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023806if test $ac_cv_sizeof_signed_long -eq 8; then
23807 INT64_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000023808 INT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023809elif test $ac_cv_sizeof_signed_long_long -eq 8; then
23810 INT64_T='signed long long'
cristy6d5e20f2011-04-25 13:48:54 +000023811 INT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023812fi
cristy3a99dcf2011-12-17 01:29:40 +000023813case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000023814 mingw* )
23815 INT64_F='"I64"'
23816 ;;
23817esac
cristyad38abe2012-12-23 23:03:21 +000023818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
23819$as_echo "$INT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023820
23821
cristy6d5e20f2011-04-25 13:48:54 +000023822
cristy8b350f62009-11-15 23:12:43 +000023823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023824$as_echo_n "checking for unsigned 64-bit type... " >&6; }
23825UINT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023826UINT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023827if test $ac_cv_sizeof_unsigned_long -eq 8; then
23828 UINT64_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023829 UINT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023830elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
23831 UINT64_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000023832 UINT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023833fi
cristy3a99dcf2011-12-17 01:29:40 +000023834case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000023835 mingw* )
23836 UINT64_F='"I64"'
23837 ;;
23838esac
cristyad38abe2012-12-23 23:03:21 +000023839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
23840$as_echo "$UINT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023841
23842
cristy6d5e20f2011-04-25 13:48:54 +000023843
cristy8b350f62009-11-15 23:12:43 +000023844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023845$as_echo_n "checking for unsigned maximum type... " >&6; }
23846UINTMAX_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023847UINTMAX_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023848if test "$UINT64_T" != 'none'; then
23849 UINTMAX_T=$UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +000023850 UINTMAX_F=$UINT64_F
cristy3ed852e2009-09-05 21:47:34 +000023851elif test "$UINT32_T" != 'none'; then
23852 UINTMAX_T=$UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +000023853 UINTMAX_F=$UINT32_F
cristy3ed852e2009-09-05 21:47:34 +000023854fi
cristyad38abe2012-12-23 23:03:21 +000023855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
23856$as_echo "$UINTMAX_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023857
23858
cristy6d5e20f2011-04-25 13:48:54 +000023859
cristy8b350f62009-11-15 23:12:43 +000023860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023861$as_echo_n "checking for pointer difference type... " >&6; }
23862UINTPTR_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023863UINTPTR_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023864if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
23865 UINTPTR_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023866 UINTPTR_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023867elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
23868 UINTPTR_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000023869 UINTPTR_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023870fi
cristyad38abe2012-12-23 23:03:21 +000023871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
23872$as_echo "$UINTPTR_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023873
23874
cristy6d5e20f2011-04-25 13:48:54 +000023875
cristy8b350f62009-11-15 23:12:43 +000023876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000023877$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023878cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023879/* end confdefs.h. */
23880
23881int
23882main ()
23883{
23884{ const char *func = __func__; return(func != 0 ? 0 : 1); }
23885 ;
23886 return 0;
23887}
23888_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023889if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000023890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23891$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023892else
cristyad38abe2012-12-23 23:03:21 +000023893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23894$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000023896$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023898/* end confdefs.h. */
23899
23900int
23901main ()
23902{
23903{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
23904 ;
23905 return 0;
23906}
23907_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023908if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000023909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23910$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023911
cristy8b350f62009-11-15 23:12:43 +000023912$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023913
23914else
cristyad38abe2012-12-23 23:03:21 +000023915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23916$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023917
cristy8b350f62009-11-15 23:12:43 +000023918$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023919
23920fi
cristy3ed852e2009-09-05 21:47:34 +000023921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23922fi
cristy3ed852e2009-09-05 21:47:34 +000023923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23924
23925########
23926#
23927# Check for functions
23928#
23929########
cristy73bd4a52010-10-05 11:24:23 +000023930for ac_header in stdlib.h unistd.h
23931do :
23932 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23933ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000023934if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000023935 cat >>confdefs.h <<_ACEOF
23936#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23937_ACEOF
23938
23939fi
23940
23941done
23942
23943for ac_func in getpagesize
23944do :
23945 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000023946if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000023947 cat >>confdefs.h <<_ACEOF
23948#define HAVE_GETPAGESIZE 1
23949_ACEOF
23950
23951fi
23952done
23953
23954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
23955$as_echo_n "checking for working mmap file i/o... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023956if ${magick_cv_func_mmap_fileio+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000023957 $as_echo_n "(cached) " >&6
23958else
23959 if test "$cross_compiling" = yes; then :
23960 magick_cv_func_mmap_fileio=no
23961else
23962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23963/* end confdefs.h. */
23964$ac_includes_default
23965/* malloc might have been renamed as rpl_malloc. */
23966#undef malloc
23967
23968/*
23969 This test is derived from GNU Autoconf's similar macro.
23970 The purpose of this test is to verify that files may be memory
23971 mapped, and that memory mapping and file I/O are coherent.
23972
23973 The test creates a test file, memory maps the file, updates
23974 the file using the memory map, and then reads the file using
23975 file I/O to verify that the file contains the updates.
23976*/
23977
23978#include <fcntl.h>
23979#include <sys/mman.h>
23980
23981#if !STDC_HEADERS && !HAVE_STDLIB_H
23982char *malloc ();
23983#endif
23984
23985/* This mess was copied from the GNU getpagesize.h. */
23986#if !HAVE_GETPAGESIZE
23987/* Assume that all systems that can run configure have sys/param.h. */
23988# if !HAVE_SYS_PARAM_H
23989# define HAVE_SYS_PARAM_H 1
23990# endif
23991
23992# ifdef _SC_PAGESIZE
23993# define getpagesize() sysconf(_SC_PAGESIZE)
23994# else /* no _SC_PAGESIZE */
23995# if HAVE_SYS_PARAM_H
23996# include <sys/param.h>
23997# ifdef EXEC_PAGESIZE
23998# define getpagesize() EXEC_PAGESIZE
23999# else /* no EXEC_PAGESIZE */
24000# ifdef NBPG
24001# define getpagesize() NBPG * CLSIZE
24002# ifndef CLSIZE
24003# define CLSIZE 1
24004# endif /* no CLSIZE */
24005# else /* no NBPG */
24006# ifdef NBPC
24007# define getpagesize() NBPC
24008# else /* no NBPC */
24009# ifdef PAGESIZE
24010# define getpagesize() PAGESIZE
24011# endif /* PAGESIZE */
24012# endif /* no NBPC */
24013# endif /* no NBPG */
24014# endif /* no EXEC_PAGESIZE */
24015# else /* no HAVE_SYS_PARAM_H */
24016# define getpagesize() 8192 /* punt totally */
24017# endif /* no HAVE_SYS_PARAM_H */
24018# endif /* no _SC_PAGESIZE */
24019
24020#endif /* no HAVE_GETPAGESIZE */
24021
24022int
24023main ()
24024{
24025 char *data, *data2, *data3;
24026 int i, pagesize;
24027 int fd;
24028
24029 pagesize = getpagesize ();
24030
24031 /* First, make a file with some known garbage in it. */
24032 data = (char *) malloc (pagesize);
24033 if (!data)
24034 exit (1);
24035 for (i = 0; i < pagesize; ++i)
24036 *(data + i) = rand ();
24037 umask (0);
24038 fd = creat ("conftest.mmap", 0600);
24039 if (fd < 0)
24040 exit (1);
24041 if (write (fd, data, pagesize) != pagesize)
24042 exit (1);
24043 close (fd);
24044
24045 /* Mmap the file as read/write/shared and verify that we see the
24046 same garbage. */
24047 fd = open ("conftest.mmap", O_RDWR);
24048 if (fd < 0)
24049 exit (1);
24050 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
24051 if (data2 == 0)
24052 exit (1);
24053 for (i = 0; i < pagesize; ++i)
24054 if (*(data + i) != *(data2 + i))
24055 exit (1);
24056
24057 /* Finally, make sure that changes to the mapped area
24058 percolate back to the file as seen by read(). */
24059 for (i = 0; i < pagesize; ++i)
24060 *(data2 + i) = *(data2 + i) + 1;
24061 data3 = (char *) malloc (pagesize);
24062 if (!data3)
24063 exit (1);
24064 if (read (fd, data3, pagesize) != pagesize)
24065 exit (1);
24066 for (i = 0; i < pagesize; ++i)
24067 if (*(data2 + i) != *(data3 + i))
24068 exit (1);
24069 close (fd);
24070 exit (0);
24071}
24072_ACEOF
24073if ac_fn_c_try_run "$LINENO"; then :
24074 magick_cv_func_mmap_fileio=yes
24075else
24076 magick_cv_func_mmap_fileio=no
24077fi
24078rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24079 conftest.$ac_objext conftest.beam conftest.$ac_ext
24080fi
24081
24082fi
24083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
24084$as_echo "$magick_cv_func_mmap_fileio" >&6; }
24085if test $magick_cv_func_mmap_fileio = yes; then
24086
24087$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
24088
24089fi
24090rm -f conftest.mmap
24091
cristy8b350f62009-11-15 23:12:43 +000024092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024093$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024094if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024095 $as_echo_n "(cached) " >&6
24096else
cristy8b350f62009-11-15 23:12:43 +000024097 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024098 ac_cv_func_closedir_void=yes
24099else
cristy8b350f62009-11-15 23:12:43 +000024100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024101/* end confdefs.h. */
24102$ac_includes_default
24103#include <$ac_header_dirent>
24104#ifndef __cplusplus
24105int closedir ();
24106#endif
24107
24108int
24109main ()
24110{
24111return closedir (opendir (".")) != 0;
24112 ;
24113 return 0;
24114}
24115_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024116if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024117 ac_cv_func_closedir_void=no
24118else
cristy8b350f62009-11-15 23:12:43 +000024119 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000024120fi
cristy8b350f62009-11-15 23:12:43 +000024121rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24122 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024123fi
24124
cristy3ed852e2009-09-05 21:47:34 +000024125fi
cristy8b350f62009-11-15 23:12:43 +000024126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024127$as_echo "$ac_cv_func_closedir_void" >&6; }
24128if test $ac_cv_func_closedir_void = yes; then
24129
cristy8b350f62009-11-15 23:12:43 +000024130$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024131
24132fi
24133
cristycd4c5312009-11-22 01:19:08 +000024134
24135
24136
24137 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000024138do :
24139 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000024140ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
24141"
cristy98dddb52010-11-04 00:30:15 +000024142if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024143 cat >>confdefs.h <<_ACEOF
24144#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24145_ACEOF
24146
24147fi
24148
24149done
24150
cristycd4c5312009-11-22 01:19:08 +000024151
24152
24153
24154
24155
24156
24157
cristy3ed852e2009-09-05 21:47:34 +000024158for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000024159do :
24160 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024161if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024162 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024163#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000024164_ACEOF
24165
24166fi
24167done
24168
cristy8b350f62009-11-15 23:12:43 +000024169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000024170$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024171if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024172 $as_echo_n "(cached) " >&6
24173else
cristy8b350f62009-11-15 23:12:43 +000024174 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024175 ac_cv_func_mmap_fixed_mapped=no
24176else
cristy8b350f62009-11-15 23:12:43 +000024177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024178/* end confdefs.h. */
24179$ac_includes_default
24180/* malloc might have been renamed as rpl_malloc. */
24181#undef malloc
24182
24183/* Thanks to Mike Haertel and Jim Avera for this test.
24184 Here is a matrix of mmap possibilities:
24185 mmap private not fixed
24186 mmap private fixed at somewhere currently unmapped
24187 mmap private fixed at somewhere already mapped
24188 mmap shared not fixed
24189 mmap shared fixed at somewhere currently unmapped
24190 mmap shared fixed at somewhere already mapped
24191 For private mappings, we should verify that changes cannot be read()
24192 back from the file, nor mmap's back from the file at a different
24193 address. (There have been systems where private was not correctly
24194 implemented like the infamous i386 svr4.0, and systems where the
24195 VM page cache was not coherent with the file system buffer cache
24196 like early versions of FreeBSD and possibly contemporary NetBSD.)
24197 For shared mappings, we should conversely verify that changes get
24198 propagated back to all the places they're supposed to be.
24199
24200 Grep wants private fixed already mapped.
24201 The main things grep needs to know about mmap are:
24202 * does it exist and is it safe to write into the mmap'd area
24203 * how to use it (BSD variants) */
24204
24205#include <fcntl.h>
24206#include <sys/mman.h>
24207
24208#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24209char *malloc ();
24210#endif
24211
24212/* This mess was copied from the GNU getpagesize.h. */
24213#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000024214# ifdef _SC_PAGESIZE
24215# define getpagesize() sysconf(_SC_PAGESIZE)
24216# else /* no _SC_PAGESIZE */
24217# ifdef HAVE_SYS_PARAM_H
24218# include <sys/param.h>
24219# ifdef EXEC_PAGESIZE
24220# define getpagesize() EXEC_PAGESIZE
24221# else /* no EXEC_PAGESIZE */
24222# ifdef NBPG
24223# define getpagesize() NBPG * CLSIZE
24224# ifndef CLSIZE
24225# define CLSIZE 1
24226# endif /* no CLSIZE */
24227# else /* no NBPG */
24228# ifdef NBPC
24229# define getpagesize() NBPC
24230# else /* no NBPC */
24231# ifdef PAGESIZE
24232# define getpagesize() PAGESIZE
24233# endif /* PAGESIZE */
24234# endif /* no NBPC */
24235# endif /* no NBPG */
24236# endif /* no EXEC_PAGESIZE */
24237# else /* no HAVE_SYS_PARAM_H */
24238# define getpagesize() 8192 /* punt totally */
24239# endif /* no HAVE_SYS_PARAM_H */
24240# endif /* no _SC_PAGESIZE */
24241
24242#endif /* no HAVE_GETPAGESIZE */
24243
24244int
24245main ()
24246{
24247 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000024248 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000024249 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000024250 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000024251
24252 pagesize = getpagesize ();
24253
24254 /* First, make a file with some known garbage in it. */
24255 data = (char *) malloc (pagesize);
24256 if (!data)
24257 return 1;
24258 for (i = 0; i < pagesize; ++i)
24259 *(data + i) = rand ();
24260 umask (0);
24261 fd = creat ("conftest.mmap", 0600);
24262 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024263 return 2;
cristy3ed852e2009-09-05 21:47:34 +000024264 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024265 return 3;
cristy3ed852e2009-09-05 21:47:34 +000024266 close (fd);
24267
cristycd4c5312009-11-22 01:19:08 +000024268 /* Next, check that the tail of a page is zero-filled. File must have
24269 non-zero length, otherwise we risk SIGBUS for entire page. */
24270 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24271 if (fd2 < 0)
24272 return 4;
cristyc54f5d42009-11-27 21:36:31 +000024273 cdata2 = "";
24274 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000024275 return 5;
cristyc54f5d42009-11-27 21:36:31 +000024276 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000024277 if (data2 == MAP_FAILED)
24278 return 6;
24279 for (i = 0; i < pagesize; ++i)
24280 if (*(data2 + i))
24281 return 7;
24282 close (fd2);
24283 if (munmap (data2, pagesize))
24284 return 8;
24285
cristy3ed852e2009-09-05 21:47:34 +000024286 /* Next, try to mmap the file at a fixed address which already has
24287 something else allocated at it. If we can, also make sure that
24288 we see the same garbage. */
24289 fd = open ("conftest.mmap", O_RDWR);
24290 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024291 return 9;
cristy3ed852e2009-09-05 21:47:34 +000024292 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24293 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000024294 return 10;
cristy3ed852e2009-09-05 21:47:34 +000024295 for (i = 0; i < pagesize; ++i)
24296 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000024297 return 11;
cristy3ed852e2009-09-05 21:47:34 +000024298
24299 /* Finally, make sure that changes to the mapped area do not
24300 percolate back to the file as seen by read(). (This is a bug on
24301 some variants of i386 svr4.0.) */
24302 for (i = 0; i < pagesize; ++i)
24303 *(data2 + i) = *(data2 + i) + 1;
24304 data3 = (char *) malloc (pagesize);
24305 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000024306 return 12;
cristy3ed852e2009-09-05 21:47:34 +000024307 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024308 return 13;
cristy3ed852e2009-09-05 21:47:34 +000024309 for (i = 0; i < pagesize; ++i)
24310 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000024311 return 14;
cristy3ed852e2009-09-05 21:47:34 +000024312 close (fd);
24313 return 0;
24314}
24315_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024316if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024317 ac_cv_func_mmap_fixed_mapped=yes
24318else
cristy8b350f62009-11-15 23:12:43 +000024319 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000024320fi
cristy8b350f62009-11-15 23:12:43 +000024321rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24322 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024323fi
24324
cristy3ed852e2009-09-05 21:47:34 +000024325fi
cristy8b350f62009-11-15 23:12:43 +000024326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000024327$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24328if test $ac_cv_func_mmap_fixed_mapped = yes; then
24329
cristy8b350f62009-11-15 23:12:43 +000024330$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024331
24332fi
cristycd4c5312009-11-22 01:19:08 +000024333rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000024334
cristy3ed852e2009-09-05 21:47:34 +000024335for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000024336do :
24337 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000024338if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024339 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024340#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000024341_ACEOF
24342
24343fi
24344
24345done
24346
cristy3ed852e2009-09-05 21:47:34 +000024347for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000024348do :
24349 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24350ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024351if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024352 cat >>confdefs.h <<_ACEOF
24353#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24354_ACEOF
24355
24356fi
24357done
24358
24359if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024361$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024362if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024363 $as_echo_n "(cached) " >&6
24364else
cristy8b350f62009-11-15 23:12:43 +000024365 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024366 ac_cv_func_fork_works=cross
24367else
cristy8b350f62009-11-15 23:12:43 +000024368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024369/* end confdefs.h. */
24370$ac_includes_default
24371int
24372main ()
24373{
24374
24375 /* By Ruediger Kuhlmann. */
24376 return fork () < 0;
24377
24378 ;
24379 return 0;
24380}
24381_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024382if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024383 ac_cv_func_fork_works=yes
24384else
cristy8b350f62009-11-15 23:12:43 +000024385 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024386fi
cristy8b350f62009-11-15 23:12:43 +000024387rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24388 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024389fi
24390
cristy3ed852e2009-09-05 21:47:34 +000024391fi
cristy8b350f62009-11-15 23:12:43 +000024392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024393$as_echo "$ac_cv_func_fork_works" >&6; }
24394
24395else
24396 ac_cv_func_fork_works=$ac_cv_func_fork
24397fi
24398if test "x$ac_cv_func_fork_works" = xcross; then
24399 case $host in
24400 *-*-amigaos* | *-*-msdosdjgpp*)
24401 # Override, as these systems have only a dummy fork() stub
24402 ac_cv_func_fork_works=no
24403 ;;
24404 *)
24405 ac_cv_func_fork_works=yes
24406 ;;
24407 esac
cristy8b350f62009-11-15 23:12:43 +000024408 { $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 +000024409$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24410fi
24411ac_cv_func_vfork_works=$ac_cv_func_vfork
24412if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024414$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024415if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024416 $as_echo_n "(cached) " >&6
24417else
cristy8b350f62009-11-15 23:12:43 +000024418 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024419 ac_cv_func_vfork_works=cross
24420else
cristy8b350f62009-11-15 23:12:43 +000024421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024422/* end confdefs.h. */
24423/* Thanks to Paul Eggert for this test. */
24424$ac_includes_default
24425#include <sys/wait.h>
24426#ifdef HAVE_VFORK_H
24427# include <vfork.h>
24428#endif
24429/* On some sparc systems, changes by the child to local and incoming
24430 argument registers are propagated back to the parent. The compiler
24431 is told about this with #include <vfork.h>, but some compilers
24432 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24433 static variable whose address is put into a register that is
24434 clobbered by the vfork. */
24435static void
24436#ifdef __cplusplus
24437sparc_address_test (int arg)
24438# else
24439sparc_address_test (arg) int arg;
24440#endif
24441{
24442 static pid_t child;
24443 if (!child) {
24444 child = vfork ();
24445 if (child < 0) {
24446 perror ("vfork");
24447 _exit(2);
24448 }
24449 if (!child) {
24450 arg = getpid();
24451 write(-1, "", 0);
24452 _exit (arg);
24453 }
24454 }
24455}
24456
24457int
24458main ()
24459{
24460 pid_t parent = getpid ();
24461 pid_t child;
24462
24463 sparc_address_test (0);
24464
24465 child = vfork ();
24466
24467 if (child == 0) {
24468 /* Here is another test for sparc vfork register problems. This
24469 test uses lots of local variables, at least as many local
24470 variables as main has allocated so far including compiler
24471 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24472 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24473 reuse the register of parent for one of the local variables,
24474 since it will think that parent can't possibly be used any more
24475 in this routine. Assigning to the local variable will thus
24476 munge parent in the parent process. */
24477 pid_t
24478 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24479 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24480 /* Convince the compiler that p..p7 are live; otherwise, it might
24481 use the same hardware register for all 8 local variables. */
24482 if (p != p1 || p != p2 || p != p3 || p != p4
24483 || p != p5 || p != p6 || p != p7)
24484 _exit(1);
24485
24486 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24487 from child file descriptors. If the child closes a descriptor
24488 before it execs or exits, this munges the parent's descriptor
24489 as well. Test for this by closing stdout in the child. */
24490 _exit(close(fileno(stdout)) != 0);
24491 } else {
24492 int status;
24493 struct stat st;
24494
24495 while (wait(&status) != child)
24496 ;
24497 return (
24498 /* Was there some problem with vforking? */
24499 child < 0
24500
24501 /* Did the child fail? (This shouldn't happen.) */
24502 || status
24503
24504 /* Did the vfork/compiler bug occur? */
24505 || parent != getpid()
24506
24507 /* Did the file descriptor bug occur? */
24508 || fstat(fileno(stdout), &st) != 0
24509 );
24510 }
24511}
24512_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024513if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024514 ac_cv_func_vfork_works=yes
24515else
cristy8b350f62009-11-15 23:12:43 +000024516 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024517fi
cristy8b350f62009-11-15 23:12:43 +000024518rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24519 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024520fi
24521
cristy3ed852e2009-09-05 21:47:34 +000024522fi
cristy8b350f62009-11-15 23:12:43 +000024523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024524$as_echo "$ac_cv_func_vfork_works" >&6; }
24525
24526fi;
24527if test "x$ac_cv_func_fork_works" = xcross; then
24528 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000024529 { $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 +000024530$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24531fi
24532
24533if test "x$ac_cv_func_vfork_works" = xyes; then
24534
cristy8b350f62009-11-15 23:12:43 +000024535$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024536
24537else
24538
cristy8b350f62009-11-15 23:12:43 +000024539$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024540
24541fi
24542if test "x$ac_cv_func_fork_works" = xyes; then
24543
cristy8b350f62009-11-15 23:12:43 +000024544$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024545
24546fi
24547
cristy8b350f62009-11-15 23:12:43 +000024548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024549$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024550if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024551 $as_echo_n "(cached) " >&6
24552else
cristy8b350f62009-11-15 23:12:43 +000024553 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024554 ac_cv_func_memcmp_working=no
24555else
cristy8b350f62009-11-15 23:12:43 +000024556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024557/* end confdefs.h. */
24558$ac_includes_default
24559int
24560main ()
24561{
24562
24563 /* Some versions of memcmp are not 8-bit clean. */
24564 char c0 = '\100', c1 = '\200', c2 = '\201';
24565 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24566 return 1;
24567
24568 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
24569 or more and with at least one buffer not starting on a 4-byte boundary.
24570 William Lewis provided this test program. */
24571 {
24572 char foo[21];
24573 char bar[21];
24574 int i;
24575 for (i = 0; i < 4; i++)
24576 {
24577 char *a = foo + i;
24578 char *b = bar + i;
24579 strcpy (a, "--------01111111");
24580 strcpy (b, "--------10000000");
24581 if (memcmp (a, b, 16) >= 0)
24582 return 1;
24583 }
24584 return 0;
24585 }
24586
24587 ;
24588 return 0;
24589}
24590_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024591if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024592 ac_cv_func_memcmp_working=yes
24593else
cristy8b350f62009-11-15 23:12:43 +000024594 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000024595fi
cristy8b350f62009-11-15 23:12:43 +000024596rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24597 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024598fi
24599
cristy3ed852e2009-09-05 21:47:34 +000024600fi
cristy8b350f62009-11-15 23:12:43 +000024601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000024602$as_echo "$ac_cv_func_memcmp_working" >&6; }
24603test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
24604 *" memcmp.$ac_objext "* ) ;;
24605 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
24606 ;;
24607esac
24608
24609
cristy3ed852e2009-09-05 21:47:34 +000024610for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000024611do :
24612 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24613ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000024614if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024615 cat >>confdefs.h <<_ACEOF
24616#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24617_ACEOF
24618
24619fi
24620
24621done
24622
cristy8b350f62009-11-15 23:12:43 +000024623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000024624$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024625if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024626 $as_echo_n "(cached) " >&6
24627else
24628 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
24629 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
24630 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000024631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024632/* end confdefs.h. */
24633$ac_includes_default
24634#ifdef HAVE_SYS_SELECT_H
24635# include <sys/select.h>
24636#endif
24637#ifdef HAVE_SYS_SOCKET_H
24638# include <sys/socket.h>
24639#endif
24640
24641int
24642main ()
24643{
24644extern int select ($ac_arg1,
24645 $ac_arg234, $ac_arg234, $ac_arg234,
24646 $ac_arg5);
24647 ;
24648 return 0;
24649}
24650_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024651if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024652 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000024653fi
cristy3ed852e2009-09-05 21:47:34 +000024654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24655 done
24656 done
24657done
24658# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000024659: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000024660
24661fi
cristy8b350f62009-11-15 23:12:43 +000024662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000024663$as_echo "$ac_cv_func_select_args" >&6; }
24664ac_save_IFS=$IFS; IFS=','
24665set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
24666IFS=$ac_save_IFS
24667shift
24668
24669cat >>confdefs.h <<_ACEOF
24670#define SELECT_TYPE_ARG1 $1
24671_ACEOF
24672
24673
24674cat >>confdefs.h <<_ACEOF
24675#define SELECT_TYPE_ARG234 ($2)
24676_ACEOF
24677
24678
24679cat >>confdefs.h <<_ACEOF
24680#define SELECT_TYPE_ARG5 ($3)
24681_ACEOF
24682
24683rm -f conftest*
24684
cristyda16f162011-02-19 23:52:17 +000024685if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024686 $as_echo_n "(cached) " >&6
24687else
24688 ac_cv_func_setvbuf_reversed=no
24689fi
24690
24691
cristy8b350f62009-11-15 23:12:43 +000024692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000024693$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024694if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024695 $as_echo_n "(cached) " >&6
24696else
cristy8b350f62009-11-15 23:12:43 +000024697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024698/* end confdefs.h. */
24699#include <sys/types.h>
24700#include <signal.h>
24701
24702int
24703main ()
24704{
24705return *(signal (0, 0)) (0) == 1;
24706 ;
24707 return 0;
24708}
24709_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024710if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024711 ac_cv_type_signal=int
24712else
cristy8b350f62009-11-15 23:12:43 +000024713 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000024714fi
cristy3ed852e2009-09-05 21:47:34 +000024715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24716fi
cristy8b350f62009-11-15 23:12:43 +000024717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000024718$as_echo "$ac_cv_type_signal" >&6; }
24719
24720cat >>confdefs.h <<_ACEOF
24721#define RETSIGTYPE $ac_cv_type_signal
24722_ACEOF
24723
24724
cristy8b350f62009-11-15 23:12:43 +000024725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024726$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024727if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024728 $as_echo_n "(cached) " >&6
24729else
cristy8b350f62009-11-15 23:12:43 +000024730 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024731 ac_cv_func_strtod=no
24732else
cristy8b350f62009-11-15 23:12:43 +000024733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024734/* end confdefs.h. */
24735
24736$ac_includes_default
24737#ifndef strtod
24738double strtod ();
24739#endif
24740int
24741main()
24742{
24743 {
24744 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
24745 char *string = " +69";
24746 char *term;
24747 double value;
24748 value = strtod (string, &term);
24749 if (value != 69 || term != (string + 4))
24750 return 1;
24751 }
24752
24753 {
24754 /* Under Solaris 2.4, strtod returns the wrong value for the
24755 terminating character under some conditions. */
24756 char *string = "NaN";
24757 char *term;
24758 strtod (string, &term);
24759 if (term != string && *(term - 1) == 0)
24760 return 1;
24761 }
24762 return 0;
24763}
24764
24765_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024766if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024767 ac_cv_func_strtod=yes
24768else
cristy8b350f62009-11-15 23:12:43 +000024769 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000024770fi
cristy8b350f62009-11-15 23:12:43 +000024771rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24772 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024773fi
24774
cristy3ed852e2009-09-05 21:47:34 +000024775fi
cristy8b350f62009-11-15 23:12:43 +000024776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024777$as_echo "$ac_cv_func_strtod" >&6; }
24778if test $ac_cv_func_strtod = no; then
24779 case " $LIBOBJS " in
24780 *" strtod.$ac_objext "* ) ;;
24781 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
24782 ;;
24783esac
24784
cristy8b350f62009-11-15 23:12:43 +000024785ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000024786if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024787
cristy3ed852e2009-09-05 21:47:34 +000024788fi
24789
cristy3ed852e2009-09-05 21:47:34 +000024790if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000024791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000024792$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024793if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024794 $as_echo_n "(cached) " >&6
24795else
24796 ac_check_lib_save_LIBS=$LIBS
24797LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024798cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024799/* end confdefs.h. */
24800
24801/* Override any GCC internal prototype to avoid an error.
24802 Use char because int might match the return type of a GCC
24803 builtin and then its argument prototype would still apply. */
24804#ifdef __cplusplus
24805extern "C"
24806#endif
24807char pow ();
24808int
24809main ()
24810{
24811return pow ();
24812 ;
24813 return 0;
24814}
24815_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024816if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024817 ac_cv_lib_m_pow=yes
24818else
cristy8b350f62009-11-15 23:12:43 +000024819 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000024820fi
cristy8b350f62009-11-15 23:12:43 +000024821rm -f core conftest.err conftest.$ac_objext \
24822 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024823LIBS=$ac_check_lib_save_LIBS
24824fi
cristy8b350f62009-11-15 23:12:43 +000024825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000024826$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000024827if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024828 POW_LIB=-lm
24829else
cristy8b350f62009-11-15 23:12:43 +000024830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000024831$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
24832fi
24833
24834fi
24835
24836fi
24837
cristy7d4a1d62011-10-13 15:54:12 +000024838ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
24839if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
24840 ac_have_decl=1
24841else
24842 ac_have_decl=0
24843fi
24844
24845cat >>confdefs.h <<_ACEOF
24846#define HAVE_DECL_STRERROR_R $ac_have_decl
24847_ACEOF
24848
24849for ac_func in strerror_r
24850do :
24851 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
24852if test "x$ac_cv_func_strerror_r" = xyes; then :
24853 cat >>confdefs.h <<_ACEOF
24854#define HAVE_STRERROR_R 1
24855_ACEOF
24856
24857fi
24858done
24859
24860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
24861$as_echo_n "checking whether strerror_r returns char *... " >&6; }
24862if ${ac_cv_func_strerror_r_char_p+:} false; then :
24863 $as_echo_n "(cached) " >&6
24864else
24865
24866 ac_cv_func_strerror_r_char_p=no
24867 if test $ac_cv_have_decl_strerror_r = yes; then
24868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24869/* end confdefs.h. */
24870$ac_includes_default
24871int
24872main ()
24873{
24874
24875 char buf[100];
24876 char x = *strerror_r (0, buf, sizeof buf);
24877 char *p = strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000024878 return !p || x;
cristy7d4a1d62011-10-13 15:54:12 +000024879
24880 ;
24881 return 0;
24882}
24883_ACEOF
24884if ac_fn_c_try_compile "$LINENO"; then :
24885 ac_cv_func_strerror_r_char_p=yes
24886fi
24887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24888 else
24889 # strerror_r is not declared. Choose between
24890 # systems that have relatively inaccessible declarations for the
24891 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
24892 # former has a strerror_r that returns char*, while the latter
24893 # has a strerror_r that returns `int'.
24894 # This test should segfault on the DEC system.
24895 if test "$cross_compiling" = yes; then :
24896 :
24897else
24898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24899/* end confdefs.h. */
24900$ac_includes_default
24901 extern char *strerror_r ();
24902int
24903main ()
24904{
24905char buf[100];
24906 char x = *strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000024907 return ! isalpha (x);
cristy7d4a1d62011-10-13 15:54:12 +000024908 ;
24909 return 0;
24910}
24911_ACEOF
24912if ac_fn_c_try_run "$LINENO"; then :
24913 ac_cv_func_strerror_r_char_p=yes
24914fi
24915rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24916 conftest.$ac_objext conftest.beam conftest.$ac_ext
24917fi
24918
24919 fi
24920
24921fi
24922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
24923$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
24924if test $ac_cv_func_strerror_r_char_p = yes; then
24925
24926$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
24927
24928fi
24929
cristy3ed852e2009-09-05 21:47:34 +000024930for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000024931do :
24932 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000024933if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024934 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024935#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000024936_ACEOF
24937
cristy8b350f62009-11-15 23:12:43 +000024938ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000024939if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024940
cristy8b350f62009-11-15 23:12:43 +000024941$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024942
24943fi
24944
24945fi
24946done
24947
24948
24949
cristy161b9262010-03-20 19:34:32 +000024950#
24951# Find math library
24952#
24953MATH_LIBS=''
24954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
24955$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024956if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000024957 $as_echo_n "(cached) " >&6
24958else
24959 ac_check_lib_save_LIBS=$LIBS
24960LIBS="-lm $LIBS"
24961cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24962/* end confdefs.h. */
24963
24964/* Override any GCC internal prototype to avoid an error.
24965 Use char because int might match the return type of a GCC
24966 builtin and then its argument prototype would still apply. */
24967#ifdef __cplusplus
24968extern "C"
24969#endif
24970char sqrt ();
24971int
24972main ()
24973{
24974return sqrt ();
24975 ;
24976 return 0;
24977}
24978_ACEOF
24979if ac_fn_c_try_link "$LINENO"; then :
24980 ac_cv_lib_m_sqrt=yes
24981else
24982 ac_cv_lib_m_sqrt=no
24983fi
24984rm -f core conftest.err conftest.$ac_objext \
24985 conftest$ac_exeext conftest.$ac_ext
24986LIBS=$ac_check_lib_save_LIBS
24987fi
24988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
24989$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000024990if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000024991 MATH_LIBS="-lm"
24992fi
24993
24994LIBS="$MATH_LIBS $LIBS"
24995
24996
cristy85572162013-01-04 19:19:32 +000024997#
24998# Find socket library
24999#
cristy8a5d7f42013-01-06 15:24:33 +000025000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
25001$as_echo_n "checking for library containing gethostbyname... " >&6; }
25002if ${ac_cv_search_gethostbyname+:} false; then :
25003 $as_echo_n "(cached) " >&6
25004else
25005 ac_func_search_save_LIBS=$LIBS
25006cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25007/* end confdefs.h. */
25008
25009/* Override any GCC internal prototype to avoid an error.
25010 Use char because int might match the return type of a GCC
25011 builtin and then its argument prototype would still apply. */
25012#ifdef __cplusplus
25013extern "C"
25014#endif
25015char gethostbyname ();
25016int
25017main ()
25018{
25019return gethostbyname ();
25020 ;
25021 return 0;
25022}
25023_ACEOF
25024for ac_lib in '' resolv nsl; do
25025 if test -z "$ac_lib"; then
25026 ac_res="none required"
25027 else
25028 ac_res=-l$ac_lib
25029 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25030 fi
25031 if ac_fn_c_try_link "$LINENO"; then :
25032 ac_cv_search_gethostbyname=$ac_res
25033fi
25034rm -f core conftest.err conftest.$ac_objext \
25035 conftest$ac_exeext
25036 if ${ac_cv_search_gethostbyname+:} false; then :
25037 break
25038fi
25039done
25040if ${ac_cv_search_gethostbyname+:} false; then :
25041
25042else
25043 ac_cv_search_gethostbyname=no
25044fi
25045rm conftest.$ac_ext
25046LIBS=$ac_func_search_save_LIBS
25047fi
25048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
25049$as_echo "$ac_cv_search_gethostbyname" >&6; }
25050ac_res=$ac_cv_search_gethostbyname
25051if test "$ac_res" != no; then :
25052 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25053
25054fi
25055
cristy85572162013-01-04 19:19:32 +000025056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
25057$as_echo_n "checking for library containing socket... " >&6; }
25058if ${ac_cv_search_socket+:} false; then :
25059 $as_echo_n "(cached) " >&6
25060else
25061 ac_func_search_save_LIBS=$LIBS
25062cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25063/* end confdefs.h. */
25064
25065/* Override any GCC internal prototype to avoid an error.
25066 Use char because int might match the return type of a GCC
25067 builtin and then its argument prototype would still apply. */
25068#ifdef __cplusplus
25069extern "C"
25070#endif
25071char socket ();
25072int
25073main ()
25074{
25075return socket ();
25076 ;
25077 return 0;
25078}
25079_ACEOF
25080for ac_lib in '' socket; do
25081 if test -z "$ac_lib"; then
25082 ac_res="none required"
25083 else
25084 ac_res=-l$ac_lib
25085 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25086 fi
25087 if ac_fn_c_try_link "$LINENO"; then :
25088 ac_cv_search_socket=$ac_res
25089fi
25090rm -f core conftest.err conftest.$ac_objext \
25091 conftest$ac_exeext
25092 if ${ac_cv_search_socket+:} false; then :
25093 break
25094fi
25095done
25096if ${ac_cv_search_socket+:} false; then :
25097
25098else
25099 ac_cv_search_socket=no
25100fi
25101rm conftest.$ac_ext
25102LIBS=$ac_func_search_save_LIBS
25103fi
25104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
25105$as_echo "$ac_cv_search_socket" >&6; }
25106ac_res=$ac_cv_search_socket
25107if test "$ac_res" != no; then :
25108 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25109
cristy85572162013-01-04 19:19:32 +000025110
cristy8a5d7f42013-01-06 15:24:33 +000025111$as_echo "#define HAVE_SOCKET 1" >>confdefs.h
cristy85572162013-01-04 19:19:32 +000025112
cristy03f187e2013-01-24 00:22:19 +000025113 MAGICK_FEATURES="DPC $MAGICK_FEATURES"
cristy85572162013-01-04 19:19:32 +000025114
25115fi
25116
25117
25118for 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 +000025119do :
25120 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25121ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025122if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025123 cat >>confdefs.h <<_ACEOF
25124#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25125_ACEOF
25126
25127fi
25128done
25129
25130
cristye43a45e2009-09-28 14:49:00 +000025131#
25132# Check for clock_gettime().
25133#
cristy8b350f62009-11-15 23:12:43 +000025134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025135$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025136if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025137 $as_echo_n "(cached) " >&6
25138else
25139 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000025140cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025141/* end confdefs.h. */
25142
25143/* Override any GCC internal prototype to avoid an error.
25144 Use char because int might match the return type of a GCC
25145 builtin and then its argument prototype would still apply. */
25146#ifdef __cplusplus
25147extern "C"
25148#endif
25149char clock_gettime ();
25150int
25151main ()
25152{
25153return clock_gettime ();
25154 ;
25155 return 0;
25156}
25157_ACEOF
25158for ac_lib in '' rt; do
25159 if test -z "$ac_lib"; then
25160 ac_res="none required"
25161 else
25162 ac_res=-l$ac_lib
25163 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25164 fi
cristy8b350f62009-11-15 23:12:43 +000025165 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025166 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000025167fi
cristy8b350f62009-11-15 23:12:43 +000025168rm -f core conftest.err conftest.$ac_objext \
25169 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000025170 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025171 break
25172fi
25173done
cristyda16f162011-02-19 23:52:17 +000025174if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000025175
cristye43a45e2009-09-28 14:49:00 +000025176else
25177 ac_cv_search_clock_gettime=no
25178fi
25179rm conftest.$ac_ext
25180LIBS=$ac_func_search_save_LIBS
25181fi
cristy8b350f62009-11-15 23:12:43 +000025182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025183$as_echo "$ac_cv_search_clock_gettime" >&6; }
25184ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000025185if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000025186 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25187
25188
cristy8b350f62009-11-15 23:12:43 +000025189$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025190
cristy8b350f62009-11-15 23:12:43 +000025191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000025192$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025194/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000025195
25196 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000025197int
25198main ()
25199{
25200clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000025201 ;
25202 return 0;
25203}
25204_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025205if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025206
cristyad38abe2012-12-23 23:03:21 +000025207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25208$as_echo "yes" >&6; }
cristye43a45e2009-09-28 14:49:00 +000025209
cristy8b350f62009-11-15 23:12:43 +000025210$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025211
25212
25213else
cristyad38abe2012-12-23 23:03:21 +000025214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25215$as_echo "no" >&6; }
cristye43a45e2009-09-28 14:49:00 +000025216
25217fi
cristye43a45e2009-09-28 14:49:00 +000025218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25219
25220else
25221
cristy8b350f62009-11-15 23:12:43 +000025222 for ac_func in gettimeofday ftime
25223do :
25224 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25225ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025226if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000025227 cat >>confdefs.h <<_ACEOF
25228#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25229_ACEOF
25230 break
25231fi
25232done
25233
25234
25235
25236fi
25237
25238
cristy3ed852e2009-09-05 21:47:34 +000025239########
25240#
25241# Check for function prototypes
25242#
25243########
25244
cristy8b350f62009-11-15 23:12:43 +000025245ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000025246#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025247"
cristyda16f162011-02-19 23:52:17 +000025248if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025249 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025250else
cristy8b350f62009-11-15 23:12:43 +000025251 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025252fi
25253
cristy3ed852e2009-09-05 21:47:34 +000025254cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025255#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025256_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025257ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000025258#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025259"
cristyda16f162011-02-19 23:52:17 +000025260if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025261 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025262else
cristy8b350f62009-11-15 23:12:43 +000025263 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025264fi
25265
cristy3ed852e2009-09-05 21:47:34 +000025266cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025267#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025268_ACEOF
25269
25270
cristy8b350f62009-11-15 23:12:43 +000025271ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000025272#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000025273"
cristyda16f162011-02-19 23:52:17 +000025274if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025275 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025276else
cristy8b350f62009-11-15 23:12:43 +000025277 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025278fi
25279
cristy3ed852e2009-09-05 21:47:34 +000025280cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025281#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025282_ACEOF
25283
25284
cristy8b350f62009-11-15 23:12:43 +000025285ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000025286#include <stdio.h>
25287#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000025288"
cristyda16f162011-02-19 23:52:17 +000025289if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025290 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025291else
cristy8b350f62009-11-15 23:12:43 +000025292 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025293fi
25294
cristy3ed852e2009-09-05 21:47:34 +000025295cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025296#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025297_ACEOF
25298
25299
cristy3ed852e2009-09-05 21:47:34 +000025300########
25301#
25302# C++ Support Tests (For Magick++)
25303#
25304########
25305have_magick_plus_plus='no'
25306if test "$with_magick_plus_plus" = 'yes'; then
25307 OLIBS="$LIBS"
25308 LIBS=''
25309 ac_ext=cpp
25310ac_cpp='$CXXCPP $CPPFLAGS'
25311ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25312ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25313ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25314
25315
25316 # Full set of headers used...
25317 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
25318 # functional iomanip iosfwd iostream iterator list string strstream utility
25319 ac_ext=cpp
25320ac_cpp='$CXXCPP $CPPFLAGS'
25321ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25322ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25323ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25324
25325 ac_ext=cpp
25326ac_cpp='$CXXCPP $CPPFLAGS'
25327ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25328ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25329ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25330if test -z "$CXX"; then
25331 if test -n "$CCC"; then
25332 CXX=$CCC
25333 else
25334 if test -n "$ac_tool_prefix"; then
25335 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25336 do
25337 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
25338set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025340$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025341if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025342 $as_echo_n "(cached) " >&6
25343else
25344 if test -n "$CXX"; then
25345 ac_cv_prog_CXX="$CXX" # Let the user override the test.
25346else
25347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25348for as_dir in $PATH
25349do
25350 IFS=$as_save_IFS
25351 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025352 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025354 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025356 break 2
25357 fi
25358done
cristy8b350f62009-11-15 23:12:43 +000025359 done
cristy3ed852e2009-09-05 21:47:34 +000025360IFS=$as_save_IFS
25361
25362fi
25363fi
25364CXX=$ac_cv_prog_CXX
25365if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025367$as_echo "$CXX" >&6; }
25368else
cristy8b350f62009-11-15 23:12:43 +000025369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025370$as_echo "no" >&6; }
25371fi
25372
25373
25374 test -n "$CXX" && break
25375 done
25376fi
25377if test -z "$CXX"; then
25378 ac_ct_CXX=$CXX
25379 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25380do
25381 # Extract the first word of "$ac_prog", so it can be a program name with args.
25382set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025384$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025385if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025386 $as_echo_n "(cached) " >&6
25387else
25388 if test -n "$ac_ct_CXX"; then
25389 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
25390else
25391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25392for as_dir in $PATH
25393do
25394 IFS=$as_save_IFS
25395 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025396 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025398 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025400 break 2
25401 fi
25402done
cristy8b350f62009-11-15 23:12:43 +000025403 done
cristy3ed852e2009-09-05 21:47:34 +000025404IFS=$as_save_IFS
25405
25406fi
25407fi
25408ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
25409if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025411$as_echo "$ac_ct_CXX" >&6; }
25412else
cristy8b350f62009-11-15 23:12:43 +000025413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025414$as_echo "no" >&6; }
25415fi
25416
25417
25418 test -n "$ac_ct_CXX" && break
25419done
25420
25421 if test "x$ac_ct_CXX" = x; then
25422 CXX="g++"
25423 else
25424 case $cross_compiling:$ac_tool_warned in
25425yes:)
cristy8b350f62009-11-15 23:12:43 +000025426{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025427$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25428ac_tool_warned=yes ;;
25429esac
25430 CXX=$ac_ct_CXX
25431 fi
25432fi
25433
25434 fi
25435fi
25436# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000025437$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000025438set X $ac_compile
25439ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000025440for ac_option in --version -v -V -qversion; do
25441 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000025442case "(($ac_try" in
25443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25444 *) ac_try_echo=$ac_try;;
25445esac
cristy8b350f62009-11-15 23:12:43 +000025446eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
25447$as_echo "$ac_try_echo"; } >&5
25448 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000025449 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025450 if test -s conftest.err; then
25451 sed '10a\
25452... rest of stderr output deleted ...
25453 10q' conftest.err >conftest.er1
25454 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000025455 fi
cristycd4c5312009-11-22 01:19:08 +000025456 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000025457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25458 test $ac_status = 0; }
25459done
cristy3ed852e2009-09-05 21:47:34 +000025460
cristy8b350f62009-11-15 23:12:43 +000025461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000025462$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025463if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025464 $as_echo_n "(cached) " >&6
25465else
cristy8b350f62009-11-15 23:12:43 +000025466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025467/* end confdefs.h. */
25468
25469int
25470main ()
25471{
25472#ifndef __GNUC__
25473 choke me
25474#endif
25475
25476 ;
25477 return 0;
25478}
25479_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025480if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025481 ac_compiler_gnu=yes
25482else
cristy8b350f62009-11-15 23:12:43 +000025483 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000025484fi
cristy3ed852e2009-09-05 21:47:34 +000025485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25486ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
25487
25488fi
cristy8b350f62009-11-15 23:12:43 +000025489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000025490$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
25491if test $ac_compiler_gnu = yes; then
25492 GXX=yes
25493else
25494 GXX=
25495fi
25496ac_test_CXXFLAGS=${CXXFLAGS+set}
25497ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000025498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025499$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025500if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025501 $as_echo_n "(cached) " >&6
25502else
25503 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
25504 ac_cxx_werror_flag=yes
25505 ac_cv_prog_cxx_g=no
25506 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025508/* end confdefs.h. */
25509
25510int
25511main ()
25512{
25513
25514 ;
25515 return 0;
25516}
25517_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025518if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025519 ac_cv_prog_cxx_g=yes
25520else
cristy8b350f62009-11-15 23:12:43 +000025521 CXXFLAGS=""
25522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025523/* end confdefs.h. */
25524
25525int
25526main ()
25527{
25528
25529 ;
25530 return 0;
25531}
25532_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025533if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025534
cristy8b350f62009-11-15 23:12:43 +000025535else
25536 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000025537 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025539/* end confdefs.h. */
25540
25541int
25542main ()
25543{
25544
25545 ;
25546 return 0;
25547}
25548_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025549if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025550 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000025551fi
cristy3ed852e2009-09-05 21:47:34 +000025552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25553fi
cristy3ed852e2009-09-05 21:47:34 +000025554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25555fi
cristy3ed852e2009-09-05 21:47:34 +000025556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25557 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
25558fi
cristy8b350f62009-11-15 23:12:43 +000025559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025560$as_echo "$ac_cv_prog_cxx_g" >&6; }
25561if test "$ac_test_CXXFLAGS" = set; then
25562 CXXFLAGS=$ac_save_CXXFLAGS
25563elif test $ac_cv_prog_cxx_g = yes; then
25564 if test "$GXX" = yes; then
25565 CXXFLAGS="-g -O2"
25566 else
25567 CXXFLAGS="-g"
25568 fi
25569else
25570 if test "$GXX" = yes; then
25571 CXXFLAGS="-O2"
25572 else
25573 CXXFLAGS=
25574 fi
25575fi
25576ac_ext=cpp
25577ac_cpp='$CXXCPP $CPPFLAGS'
25578ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25579ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25580ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25581
cristy73bd4a52010-10-05 11:24:23 +000025582depcc="$CXX" am_compiler_list=
25583
25584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
25585$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025586if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025587 $as_echo_n "(cached) " >&6
25588else
25589 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
25590 # We make a subdir and do the tests there. Otherwise we can end up
25591 # making bogus files that we don't know about and never remove. For
25592 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +000025593 # making a dummy file named 'D' -- because '-MD' means "put the output
25594 # in D".
cristy7247bba2012-02-05 16:37:27 +000025595 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +000025596 mkdir conftest.dir
25597 # Copy depcomp to subdir because otherwise we won't find it if we're
25598 # using a relative directory.
25599 cp "$am_depcomp" conftest.dir
25600 cd conftest.dir
25601 # We will build objects and dependencies in a subdirectory because
25602 # it helps to detect inapplicable dependency modes. For instance
25603 # both Tru64's cc and ICC support -MD to output dependencies as a
25604 # side effect of compilation, but ICC will put the dependencies in
25605 # the current directory while Tru64 will put them in the object
25606 # directory.
25607 mkdir sub
25608
25609 am_cv_CXX_dependencies_compiler_type=none
25610 if test "$am_compiler_list" = ""; then
25611 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
25612 fi
25613 am__universal=false
25614 case " $depcc " in #(
25615 *\ -arch\ *\ -arch\ *) am__universal=true ;;
25616 esac
25617
25618 for depmode in $am_compiler_list; do
25619 # Setup a source with many dependencies, because some compilers
25620 # like to wrap large dependency lists on column 80 (with \), and
25621 # we should not choose a depcomp mode which is confused by this.
25622 #
25623 # We need to recreate these files for each test, as the compiler may
25624 # overwrite some of them when testing with obscure command lines.
25625 # This happens at least with the AIX C compiler.
25626 : > sub/conftest.c
25627 for i in 1 2 3 4 5 6; do
25628 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +000025629 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
25630 # Solaris 10 /bin/sh.
25631 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +000025632 done
25633 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
25634
cristyc0890a62012-07-19 00:18:20 +000025635 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +000025636 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +000025637 # handle '-M -o', and we need to detect this. Also, some Intel
25638 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +000025639 am__obj=sub/conftest.${OBJEXT-o}
25640 am__minus_obj="-o $am__obj"
25641 case $depmode in
25642 gcc)
25643 # This depmode causes a compiler race in universal mode.
25644 test "$am__universal" = false || continue
25645 ;;
25646 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +000025647 # After this tag, mechanisms are not by side-effect, so they'll
25648 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +000025649 if test "x$enable_dependency_tracking" = xyes; then
25650 continue
25651 else
25652 break
25653 fi
25654 ;;
cristy7247bba2012-02-05 16:37:27 +000025655 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +000025656 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +000025657 # not run yet. These depmodes are late enough in the game, and
25658 # so weak that their functioning should not be impacted.
25659 am__obj=conftest.${OBJEXT-o}
25660 am__minus_obj=
25661 ;;
25662 none) break ;;
25663 esac
25664 if depmode=$depmode \
25665 source=sub/conftest.c object=$am__obj \
25666 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
25667 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
25668 >/dev/null 2>conftest.err &&
25669 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
25670 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
25671 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
25672 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
25673 # icc doesn't choke on unknown options, it will just issue warnings
25674 # or remarks (even with -Werror). So we grep stderr for any message
25675 # that says an option was ignored or not supported.
25676 # When given -MP, icc 7.0 and 7.1 complain thusly:
25677 # icc: Command line warning: ignoring option '-M'; no argument required
25678 # The diagnosis changed in icc 8.0:
25679 # icc: Command line remark: option '-MP' not supported
25680 if (grep 'ignoring option' conftest.err ||
25681 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
25682 am_cv_CXX_dependencies_compiler_type=$depmode
25683 break
25684 fi
25685 fi
25686 done
25687
25688 cd ..
25689 rm -rf conftest.dir
25690else
25691 am_cv_CXX_dependencies_compiler_type=none
25692fi
25693
25694fi
25695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
25696$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
25697CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
25698
25699 if
25700 test "x$enable_dependency_tracking" != xno \
25701 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
25702 am__fastdepCXX_TRUE=
25703 am__fastdepCXX_FALSE='#'
25704else
25705 am__fastdepCXX_TRUE='#'
25706 am__fastdepCXX_FALSE=
25707fi
25708
25709
25710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
25711$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025712if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025713 $as_echo_n "(cached) " >&6
25714else
25715
25716 ac_ext=cpp
25717ac_cpp='$CXXCPP $CPPFLAGS'
25718ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25719ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25720ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25721
25722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25723/* end confdefs.h. */
25724
25725int f(int x){return 1;}
25726int f(char x){return 1;}
25727int f(bool x){return 1;}
25728
25729int
25730main ()
25731{
25732bool b = true; return f(b);
25733 ;
25734 return 0;
25735}
25736_ACEOF
25737if ac_fn_cxx_try_compile "$LINENO"; then :
25738 ax_cv_cxx_bool=yes
25739else
25740 ax_cv_cxx_bool=no
25741fi
25742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25743 ac_ext=cpp
25744ac_cpp='$CXXCPP $CPPFLAGS'
25745ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25746ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25747ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25748
25749
25750fi
25751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
25752$as_echo "$ax_cv_cxx_bool" >&6; }
25753if test "$ax_cv_cxx_bool" = yes; then
25754
25755$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
25756
25757fi
25758
25759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
25760$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025761if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025762 $as_echo_n "(cached) " >&6
25763else
25764
25765 ac_ext=cpp
25766ac_cpp='$CXXCPP $CPPFLAGS'
25767ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25768ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25769ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25770
25771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25772/* end confdefs.h. */
25773namespace Outer { namespace Inner { int i = 0; }}
25774int
25775main ()
25776{
25777using namespace Outer::Inner; return i;
25778 ;
25779 return 0;
25780}
25781_ACEOF
25782if ac_fn_cxx_try_compile "$LINENO"; then :
25783 ax_cv_cxx_namespaces=yes
25784else
25785 ax_cv_cxx_namespaces=no
25786fi
25787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25788 ac_ext=cpp
25789ac_cpp='$CXXCPP $CPPFLAGS'
25790ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25791ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25792ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25793
25794
25795fi
25796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
25797$as_echo "$ax_cv_cxx_namespaces" >&6; }
25798if test "$ax_cv_cxx_namespaces" = yes; then
25799
25800$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
25801
25802fi
25803
25804
25805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
25806$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025807if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025808 $as_echo_n "(cached) " >&6
25809else
25810
25811 ac_ext=cpp
25812ac_cpp='$CXXCPP $CPPFLAGS'
25813ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25814ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25815ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25816
25817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25818/* end confdefs.h. */
25819#include <iostream>
25820 std::istream& is = std::cin;
25821int
25822main ()
25823{
25824
25825 ;
25826 return 0;
25827}
25828_ACEOF
25829if ac_fn_cxx_try_compile "$LINENO"; then :
25830 ax_cv_cxx_have_std_namespace=yes
25831else
25832 ax_cv_cxx_have_std_namespace=no
25833fi
25834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25835 ac_ext=cpp
25836ac_cpp='$CXXCPP $CPPFLAGS'
25837ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25838ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25839ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25840
25841
25842fi
25843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
25844$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
25845 if test "$ax_cv_cxx_have_std_namespace" = yes; then
25846
25847$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
25848
25849 fi
25850
25851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
25852$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025853if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025854 $as_echo_n "(cached) " >&6
25855else
25856
25857
25858 ac_ext=cpp
25859ac_cpp='$CXXCPP $CPPFLAGS'
25860ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25861ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25862ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25863
25864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25865/* end confdefs.h. */
25866#include <iostream>
25867#include <map>
25868#include <iomanip>
25869#include <cmath>
25870#ifdef HAVE_NAMESPACES
25871using namespace std;
25872#endif
25873int
25874main ()
25875{
25876return 0;
25877 ;
25878 return 0;
25879}
25880_ACEOF
25881if ac_fn_cxx_try_compile "$LINENO"; then :
25882 ac_cv_cxx_have_std_libs=yes
25883else
25884 ac_cv_cxx_have_std_libs=no
25885fi
25886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25887 ac_ext=cpp
25888ac_cpp='$CXXCPP $CPPFLAGS'
25889ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25890ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25891ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25892
25893
25894fi
25895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
25896$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
25897if test "$ac_cv_cxx_have_std_libs" = yes; then
25898
25899$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
25900
25901fi
25902
cristy3ed852e2009-09-05 21:47:34 +000025903
25904 OPENMP_CXXFLAGS=
25905 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000025906if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025907 enableval=$enable_openmp;
25908fi
25909
25910 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000025911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
25912$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025913if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025914 $as_echo_n "(cached) " >&6
25915else
cristy8b350f62009-11-15 23:12:43 +000025916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25917/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000025918
25919#ifndef _OPENMP
25920 choke me
25921#endif
25922#include <omp.h>
25923int main () { return omp_get_num_threads (); }
25924
25925_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025926if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025927 ac_cv_prog_cxx_openmp='none needed'
25928else
cristy8b350f62009-11-15 23:12:43 +000025929 ac_cv_prog_cxx_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +000025930 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
25931 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +000025932 ac_save_CXXFLAGS=$CXXFLAGS
25933 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000025934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25935/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000025936
25937#ifndef _OPENMP
25938 choke me
25939#endif
25940#include <omp.h>
25941int main () { return omp_get_num_threads (); }
25942
25943_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025944if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025945 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000025946fi
cristy8b350f62009-11-15 23:12:43 +000025947rm -f core conftest.err conftest.$ac_objext \
25948 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025949 CXXFLAGS=$ac_save_CXXFLAGS
25950 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
25951 break
25952 fi
25953 done
25954fi
cristy8b350f62009-11-15 23:12:43 +000025955rm -f core conftest.err conftest.$ac_objext \
25956 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025957fi
cristy8b350f62009-11-15 23:12:43 +000025958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025959$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
25960 case $ac_cv_prog_cxx_openmp in #(
25961 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000025962 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000025963 *)
cristy8b350f62009-11-15 23:12:43 +000025964 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000025965 esac
25966 fi
25967
25968
25969 ac_ext=c
25970ac_cpp='$CPP $CPPFLAGS'
25971ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25972ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25973ac_compiler_gnu=$ac_cv_c_compiler_gnu
25974
25975
cristy8b350f62009-11-15 23:12:43 +000025976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000025977$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
25978 if \
cristy964cb7f2010-04-25 23:18:00 +000025979 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000025980 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000025981 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000025982 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000025983 have_magick_plus_plus='yes'
25984 else
25985 have_magick_plus_plus='no (failed tests)'
25986 fi
cristyad38abe2012-12-23 23:03:21 +000025987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
25988$as_echo "$have_magick_plus_plus" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000025989 LIBS="$OLIBS"
25990fi
cristy73bd4a52010-10-05 11:24:23 +000025991 if test "$have_magick_plus_plus" = 'yes'; then
25992 WITH_MAGICK_PLUS_PLUS_TRUE=
25993 WITH_MAGICK_PLUS_PLUS_FALSE='#'
25994else
25995 WITH_MAGICK_PLUS_PLUS_TRUE='#'
25996 WITH_MAGICK_PLUS_PLUS_FALSE=
25997fi
25998
cristy3ed852e2009-09-05 21:47:34 +000025999
26000# Only check for delegate libraries in subdirectories if requested.
26001if test "$enable_delegate_build" != 'no'; then
26002 # Check for delegate sub-directories and add -I & -L options as required.
26003 # This presumes that delegates are installed as detailed in the ImageMagick
26004 # README. If delegates are installed in a standard location where the
26005 # compiler will automatically find them then these options should not be
26006 # required.
26007
26008 #
26009 # Most delegates have includes in the same directory as the library, but not all...
26010 #
26011 # Includes
cristy2542fc62011-12-06 17:50:25 +000026012 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 +000026013 if test -d "$builddir/$dir"; then
26014 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
26015 else
26016 if test -d "$srcdirfull/$dir"; then
26017 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
26018 fi
26019 fi
26020 done
26021
26022 # Libraries
cristy2542fc62011-12-06 17:50:25 +000026023 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 +000026024 if test -d "$builddir/$dir/.libs"; then
26025 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
26026 else
26027 if test -d "$srcdirfull/$dir/.libs"; then
26028 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
26029 fi
26030 fi
26031 if test -d "$builddir/$dir"; then
26032 LDFLAGS="$LDFLAGS -L$builddir/$dir"
26033 else
26034 if test -d "$srcdirfull/$dir"; then
26035 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
26036 fi
26037 fi
26038 done
26039fi
26040
26041# Assume that delegate headers reside under same directory as ImageMagick
26042# installation prefix.
cristybdabdd62013-03-04 17:43:36 +000026043MAGICK_CPPFLAGS="-I$INCLUDE_DIR/${PACKAGE_NAME}-$MAGICK_MAJOR_VERSION $MAGICK_CPPFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000026044
26045#
26046# Find the X11 RGB database
26047#
cristy8b350f62009-11-15 23:12:43 +000026048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000026049$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026050if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026051 $as_echo_n "(cached) " >&6
26052else
26053 # Look for the header file in a standard set of common directories.
26054# Check X11 before X11Rn because it is often a symlink to the current release.
26055 for ac_dir in \
26056 /lib/usr/lib/X11 \
26057 /usr/X11/lib \
26058 /usr/X11R4/lib \
26059 /usr/X11R5/lib \
26060 /usr/X11R6/lib \
26061 /usr/X11R7/lib \
26062 /usr/X386/lib \
26063 /usr/XFree86/lib/X11 \
26064 /usr/athena/lib \
26065 /usr/lib \
26066 /usr/lib/X11 \
26067 /usr/lib/X11R4 \
26068 /usr/lib/X11R5 \
26069 /usr/lib/X11R6 \
26070 /usr/lib/X11R7 \
26071 /usr/local/X11/lib \
26072 /usr/local/X11R4/lib \
26073 /usr/local/X11R5/lib \
26074 /usr/local/X11R6/lib \
26075 /usr/local/lib \
26076 /usr/local/lib/X11 \
26077 /usr/local/lib/X11R4 \
26078 /usr/local/lib/X11R5 \
26079 /usr/local/lib/X11R6 \
26080 /usr/local/lib/X11R7 \
26081 /usr/local/x11r5/lib \
26082 /usr/lpp/Xamples/lib \
26083 /usr/openwin/lib \
26084 /usr/openwin/share/lib \
26085 /usr/unsupported/lib \
26086 /usr/x386/lib \
26087 ; do
26088 if test -f "$ac_dir/X11/rgb.txt"; then
26089 im_cv_x_configure="$ac_dir/X11/"
26090 break
26091 elif test -f "$ac_dir/rgb.txt"; then
26092 im_cv_x_configure="$ac_dir/"
26093 break
26094 fi
26095
26096 done
26097fi
cristy8b350f62009-11-15 23:12:43 +000026098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000026099$as_echo "$im_cv_x_configure" >&6; }
26100X11_CONFIGURE_PATH="$im_cv_x_configure"
26101case "${build_os}" in
26102 mingw* )
26103 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
26104 ;;
26105esac
26106
26107cat >>confdefs.h <<_ACEOF
26108#define X11_CONFIGURE_PATH "$X11ConfigurePath"
26109_ACEOF
26110
26111
26112#
26113# Find OpenMP library
26114#
26115GOMP_LIBS=''
26116if test "$enable_openmp" != 'no'; then
26117 if test "${GCC}" = "yes"; then
cristy18307f12011-12-30 01:20:16 +000026118 # Open64 (passes for GCC but uses different OpenMP implementation)
26119 if test "x$GOMP_LIBS" = x ; then
26120 if $CC --version 2>&1 | grep Open64 > /dev/null ; then
26121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp_get_num_procs in -lopenmp" >&5
26122$as_echo_n "checking for omp_get_num_procs in -lopenmp... " >&6; }
26123if ${ac_cv_lib_openmp_omp_get_num_procs+:} false; then :
26124 $as_echo_n "(cached) " >&6
26125else
26126 ac_check_lib_save_LIBS=$LIBS
26127LIBS="-lopenmp $LIBS"
26128cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26129/* end confdefs.h. */
26130
26131/* Override any GCC internal prototype to avoid an error.
26132 Use char because int might match the return type of a GCC
26133 builtin and then its argument prototype would still apply. */
26134#ifdef __cplusplus
26135extern "C"
26136#endif
26137char omp_get_num_procs ();
26138int
26139main ()
26140{
26141return omp_get_num_procs ();
26142 ;
26143 return 0;
26144}
26145_ACEOF
26146if ac_fn_c_try_link "$LINENO"; then :
26147 ac_cv_lib_openmp_omp_get_num_procs=yes
26148else
26149 ac_cv_lib_openmp_omp_get_num_procs=no
26150fi
26151rm -f core conftest.err conftest.$ac_objext \
26152 conftest$ac_exeext conftest.$ac_ext
26153LIBS=$ac_check_lib_save_LIBS
26154fi
26155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openmp_omp_get_num_procs" >&5
26156$as_echo "$ac_cv_lib_openmp_omp_get_num_procs" >&6; }
26157if test "x$ac_cv_lib_openmp_omp_get_num_procs" = xyes; then :
26158 GOMP_LIBS="-lopenmp"
26159fi
26160
26161 fi
26162 fi
26163 # GCC
26164 if test "x$GOMP_LIBS" = x ; then
26165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026166$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026167if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026168 $as_echo_n "(cached) " >&6
26169else
26170 ac_check_lib_save_LIBS=$LIBS
26171LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026172cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026173/* end confdefs.h. */
26174
26175/* Override any GCC internal prototype to avoid an error.
26176 Use char because int might match the return type of a GCC
26177 builtin and then its argument prototype would still apply. */
26178#ifdef __cplusplus
26179extern "C"
26180#endif
26181char GOMP_parallel_start ();
26182int
26183main ()
26184{
26185return GOMP_parallel_start ();
26186 ;
26187 return 0;
26188}
26189_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026190if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026191 ac_cv_lib_gomp_GOMP_parallel_start=yes
26192else
cristy8b350f62009-11-15 23:12:43 +000026193 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000026194fi
cristy8b350f62009-11-15 23:12:43 +000026195rm -f core conftest.err conftest.$ac_objext \
26196 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026197LIBS=$ac_check_lib_save_LIBS
26198fi
cristy8b350f62009-11-15 23:12:43 +000026199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000026200$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000026201if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026202 GOMP_LIBS="-lgomp"
26203fi
cristy18307f12011-12-30 01:20:16 +000026204
26205 fi
cristy3ed852e2009-09-05 21:47:34 +000026206 else
cristy18307f12011-12-30 01:20:16 +000026207 # Sun CC
26208 if test "x$GOMP_LIBS" = x ; then
26209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000026210$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026211if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026212 $as_echo_n "(cached) " >&6
26213else
26214 ac_check_lib_save_LIBS=$LIBS
26215LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026216cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026217/* end confdefs.h. */
26218
26219/* Override any GCC internal prototype to avoid an error.
26220 Use char because int might match the return type of a GCC
26221 builtin and then its argument prototype would still apply. */
26222#ifdef __cplusplus
26223extern "C"
26224#endif
26225char sunw_mp_register_warn ();
26226int
26227main ()
26228{
26229return sunw_mp_register_warn ();
26230 ;
26231 return 0;
26232}
26233_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026234if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026235 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
26236else
cristy8b350f62009-11-15 23:12:43 +000026237 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000026238fi
cristy8b350f62009-11-15 23:12:43 +000026239rm -f core conftest.err conftest.$ac_objext \
26240 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026241LIBS=$ac_check_lib_save_LIBS
26242fi
cristy8b350f62009-11-15 23:12:43 +000026243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000026244$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000026245if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026246 GOMP_LIBS="-lmtsk"
26247fi
cristy18307f12011-12-30 01:20:16 +000026248
26249 fi
26250 # AIX xlc
26251 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026253$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026254if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026255 $as_echo_n "(cached) " >&6
26256else
26257 ac_check_lib_save_LIBS=$LIBS
26258LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026259cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026260/* end confdefs.h. */
26261
26262/* Override any GCC internal prototype to avoid an error.
26263 Use char because int might match the return type of a GCC
26264 builtin and then its argument prototype would still apply. */
26265#ifdef __cplusplus
26266extern "C"
26267#endif
26268char _xlsmpFlush ();
26269int
26270main ()
26271{
26272return _xlsmpFlush ();
26273 ;
26274 return 0;
26275}
26276_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026277if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026278 ac_cv_lib_xlsmp__xlsmpFlush=yes
26279else
cristy8b350f62009-11-15 23:12:43 +000026280 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000026281fi
cristy8b350f62009-11-15 23:12:43 +000026282rm -f core conftest.err conftest.$ac_objext \
26283 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026284LIBS=$ac_check_lib_save_LIBS
26285fi
cristy8b350f62009-11-15 23:12:43 +000026286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000026287$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000026288if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026289 GOMP_LIBS="-lxlsmp"
26290fi
cristy18307f12011-12-30 01:20:16 +000026291
26292 fi
26293 # SGI IRIX 6.5 MIPSpro C/C++
26294 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026296$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026297if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026298 $as_echo_n "(cached) " >&6
26299else
26300 ac_check_lib_save_LIBS=$LIBS
26301LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026302cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026303/* end confdefs.h. */
26304
26305/* Override any GCC internal prototype to avoid an error.
26306 Use char because int might match the return type of a GCC
26307 builtin and then its argument prototype would still apply. */
26308#ifdef __cplusplus
26309extern "C"
26310#endif
26311char mp_destroy ();
26312int
26313main ()
26314{
26315return mp_destroy ();
26316 ;
26317 return 0;
26318}
26319_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026320if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026321 ac_cv_lib_mp_mp_destroy=yes
26322else
cristy8b350f62009-11-15 23:12:43 +000026323 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000026324fi
cristy8b350f62009-11-15 23:12:43 +000026325rm -f core conftest.err conftest.$ac_objext \
26326 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026327LIBS=$ac_check_lib_save_LIBS
26328fi
cristy8b350f62009-11-15 23:12:43 +000026329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000026330$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000026331if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026332 GOMP_LIBS="-lmp"
26333fi
cristy18307f12011-12-30 01:20:16 +000026334
26335 fi
cristy3ed852e2009-09-05 21:47:34 +000026336 fi
26337 LIBS="$GOMP_LIBS $LIBS"
26338fi
26339
26340
26341#
26342# Find Posix threads library
26343#
26344THREAD_LIBS=''
26345if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
26346
26347 if test "x$PTHREAD_LIBS" = "x"; then
26348 case "${host_cpu}-${host_os}" in
26349 *-freebsd*)
cristy73bd4a52010-10-05 11:24:23 +000026350
26351
26352
26353ac_ext=c
26354ac_cpp='$CPP $CPPFLAGS'
26355ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26356ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26357ac_compiler_gnu=$ac_cv_c_compiler_gnu
26358
26359magick_pthread_lib_ok=no
26360
26361LIB=-lc_r
26362save_LIBS="$LIBS"
26363LIBS="$LIBS $LIB"
26364
26365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26366$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26367cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26368/* end confdefs.h. */
26369#include <pthread.h>
26370int
26371main ()
26372{
26373 pthread_t th;
26374 pthread_join(th, 0);
26375 pthread_attr_init(0);
26376 pthread_cleanup_push(0, 0);
26377 pthread_create(0,0,0,0);
26378 pthread_cleanup_pop(0);
26379 ;
26380 return 0;
26381}
26382_ACEOF
26383if ac_fn_c_try_link "$LINENO"; then :
26384 magick_pthread_lib_ok=yes
26385fi
26386rm -f core conftest.err conftest.$ac_objext \
26387 conftest$ac_exeext conftest.$ac_ext
26388
26389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26390$as_echo "${magick_pthread_lib_ok}" >&6; }
26391if test "$magick_pthread_lib_ok" = yes
26392then
26393 PTHREAD_LIBS=-lc_r
26394 :
26395else
26396
26397 :
26398fi
26399
26400LIBS="$save_LIBS"
26401
26402ac_ext=c
26403ac_cpp='$CPP $CPPFLAGS'
26404ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26405ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26406ac_compiler_gnu=$ac_cv_c_compiler_gnu
26407
26408 ;;
cristy3ed852e2009-09-05 21:47:34 +000026409 esac
26410 fi
26411
26412 for lib in pthread pthreads; do
26413 if test "x$PTHREAD_LIBS" = "x"; then
cristy73bd4a52010-10-05 11:24:23 +000026414
26415
26416
26417ac_ext=c
26418ac_cpp='$CPP $CPPFLAGS'
26419ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26420ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26421ac_compiler_gnu=$ac_cv_c_compiler_gnu
26422
26423magick_pthread_lib_ok=no
26424
26425LIB=-l$lib
26426save_LIBS="$LIBS"
26427LIBS="$LIBS $LIB"
26428
26429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26430$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26431cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26432/* end confdefs.h. */
26433#include <pthread.h>
26434int
26435main ()
26436{
26437 pthread_t th;
26438 pthread_join(th, 0);
26439 pthread_attr_init(0);
26440 pthread_cleanup_push(0, 0);
26441 pthread_create(0,0,0,0);
26442 pthread_cleanup_pop(0);
26443 ;
26444 return 0;
26445}
26446_ACEOF
26447if ac_fn_c_try_link "$LINENO"; then :
26448 magick_pthread_lib_ok=yes
26449fi
26450rm -f core conftest.err conftest.$ac_objext \
26451 conftest$ac_exeext conftest.$ac_ext
26452
26453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26454$as_echo "${magick_pthread_lib_ok}" >&6; }
26455if test "$magick_pthread_lib_ok" = yes
26456then
26457 PTHREAD_LIBS=-l$lib
26458 :
26459else
26460
26461 :
26462fi
26463
26464LIBS="$save_LIBS"
26465
26466ac_ext=c
26467ac_cpp='$CPP $CPPFLAGS'
26468ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26469ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26470ac_compiler_gnu=$ac_cv_c_compiler_gnu
26471
26472
cristy3ed852e2009-09-05 21:47:34 +000026473 fi
26474 done
26475
26476 THREAD_LIBS="$PTHREAD_LIBS"
26477 LIBS="$LIBS $THREAD_LIBS"
26478fi
26479
26480
26481#
26482# Check for umem.
26483#
26484have_umem='no'
26485UMEM_LIBS=''
26486if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000026488$as_echo_n "checking for UMEM support ... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000026489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26490$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026491 failed=0
26492 passed=0
cristy8b350f62009-11-15 23:12:43 +000026493 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026494if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026495 passed=`expr $passed + 1`
26496else
26497 failed=`expr $failed + 1`
26498fi
26499
26500
cristy8b350f62009-11-15 23:12:43 +000026501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026502$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026503if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026504 $as_echo_n "(cached) " >&6
26505else
26506 ac_check_lib_save_LIBS=$LIBS
26507LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026508cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026509/* end confdefs.h. */
26510
26511/* Override any GCC internal prototype to avoid an error.
26512 Use char because int might match the return type of a GCC
26513 builtin and then its argument prototype would still apply. */
26514#ifdef __cplusplus
26515extern "C"
26516#endif
26517char umem_alloc ();
26518int
26519main ()
26520{
26521return umem_alloc ();
26522 ;
26523 return 0;
26524}
26525_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026526if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026527 ac_cv_lib_umem_umem_alloc=yes
26528else
cristy8b350f62009-11-15 23:12:43 +000026529 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000026530fi
cristy8b350f62009-11-15 23:12:43 +000026531rm -f core conftest.err conftest.$ac_objext \
26532 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026533LIBS=$ac_check_lib_save_LIBS
26534fi
cristy8b350f62009-11-15 23:12:43 +000026535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026536$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026537if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026538 passed=`expr $passed + 1`
26539else
26540 failed=`expr $failed + 1`
26541fi
26542
cristy8b350f62009-11-15 23:12:43 +000026543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026544$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026545if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026546 $as_echo_n "(cached) " >&6
26547else
26548 ac_check_lib_save_LIBS=$LIBS
26549LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026550cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026551/* end confdefs.h. */
26552
26553/* Override any GCC internal prototype to avoid an error.
26554 Use char because int might match the return type of a GCC
26555 builtin and then its argument prototype would still apply. */
26556#ifdef __cplusplus
26557extern "C"
26558#endif
26559char umem_free ();
26560int
26561main ()
26562{
26563return umem_free ();
26564 ;
26565 return 0;
26566}
26567_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026568if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026569 ac_cv_lib_umem_umem_free=yes
26570else
cristy8b350f62009-11-15 23:12:43 +000026571 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000026572fi
cristy8b350f62009-11-15 23:12:43 +000026573rm -f core conftest.err conftest.$ac_objext \
26574 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026575LIBS=$ac_check_lib_save_LIBS
26576fi
cristy8b350f62009-11-15 23:12:43 +000026577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000026578$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000026579if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026580 passed=`expr $passed + 1`
26581else
26582 failed=`expr $failed + 1`
26583fi
26584
cristy8b350f62009-11-15 23:12:43 +000026585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026586$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
26587 if test $passed -gt 0; then
26588 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000026589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26590$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026591 have_umem='no (failed tests)'
26592 else
26593 UMEM_LIBS='-lumem'
26594 LIBS="$UMEM_LIBS $LIBS"
26595
cristy8b350f62009-11-15 23:12:43 +000026596$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026597
cristyad38abe2012-12-23 23:03:21 +000026598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26599$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026600 have_umem='yes'
26601 fi
26602 else
cristyad38abe2012-12-23 23:03:21 +000026603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26604$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026605 fi
26606fi
cristy73bd4a52010-10-05 11:24:23 +000026607 if test "$have_umem" = 'yes'; then
26608 HasUMEM_TRUE=
26609 HasUMEM_FALSE='#'
26610else
26611 HasUMEM_TRUE='#'
26612 HasUMEM_FALSE=
26613fi
26614
cristy3ed852e2009-09-05 21:47:34 +000026615
26616
26617#
26618# Add support for ccmalloc memory debugging library if requested
26619#
26620have_ccmalloc='no'
26621CCMALLOC_LIBS=''
26622if test "$enable_ccmalloc" = 'yes'; then
26623 # Extract the first word of "ccmalloc", so it can be a program name with args.
26624set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000026625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000026626$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026627if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026628 $as_echo_n "(cached) " >&6
26629else
26630 case $CCMALLOCDelegate in
26631 [\\/]* | ?:[\\/]*)
26632 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
26633 ;;
26634 *)
26635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26636for as_dir in $PATH
26637do
26638 IFS=$as_save_IFS
26639 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000026640 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000026641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000026642 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000026643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026644 break 2
26645 fi
26646done
cristy8b350f62009-11-15 23:12:43 +000026647 done
cristy3ed852e2009-09-05 21:47:34 +000026648IFS=$as_save_IFS
26649
26650 ;;
26651esac
26652fi
26653CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
26654if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000026655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026656$as_echo "$CCMALLOCDelegate" >&6; }
26657else
cristy8b350f62009-11-15 23:12:43 +000026658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026659$as_echo "no" >&6; }
26660fi
26661
26662
26663 if test -n "$CCMALLOCDelegate"; then
26664 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
26665 OLIBS="$LIBS"
26666 # Assume that gcc is used with ccmalloc.
26667 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000026668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026669$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026670if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026671 $as_echo_n "(cached) " >&6
26672else
26673 ac_check_lib_save_LIBS=$LIBS
26674LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026675cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026676/* end confdefs.h. */
26677
26678/* Override any GCC internal prototype to avoid an error.
26679 Use char because int might match the return type of a GCC
26680 builtin and then its argument prototype would still apply. */
26681#ifdef __cplusplus
26682extern "C"
26683#endif
26684char ccmalloc_malloc ();
26685int
26686main ()
26687{
26688return ccmalloc_malloc ();
26689 ;
26690 return 0;
26691}
26692_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026693if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026694 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
26695else
cristy8b350f62009-11-15 23:12:43 +000026696 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000026697fi
cristy8b350f62009-11-15 23:12:43 +000026698rm -f core conftest.err conftest.$ac_objext \
26699 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026700LIBS=$ac_check_lib_save_LIBS
26701fi
cristy8b350f62009-11-15 23:12:43 +000026702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026703$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026704if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026705 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
26706fi
26707
26708 if test -n "$CCMALLOC_LIBS"; then
26709 LIBS="$OLIBS"
26710 LIBS="$LIBS $CCMALLOC_LIBS"
26711 have_ccmalloc='yes'
26712 else
26713 LIBS="$OLIBS"
26714 fi
26715 fi
26716fi
26717
26718#
26719# Add support for efence memory debugging library if requested
26720#
26721if test "$enable_efence" = 'yes'; then
26722 EFENCE_LIBS='-lefence'
26723 LIBS="$EFENCE_LIBS $LIBS"
26724fi
26725
cristy3ed852e2009-09-05 21:47:34 +000026726
26727#
26728# Check for BZLIB
26729#
26730
26731
26732# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000026733if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026734 withval=$with_bzlib; with_bzlib=$withval
26735else
26736 with_bzlib='yes'
26737fi
26738
26739
26740if test "$with_bzlib" != 'yes'; then
26741 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
26742fi
26743
26744have_bzlib='no'
26745if test "$with_bzlib" != 'no'; then
26746 BZLIB_LIBS=''
cristyad38abe2012-12-23 23:03:21 +000026747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26748$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000026750$as_echo_n "checking for BZLIB... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000026751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26752$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026753 failed=0
26754 passed=0
26755 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000026756 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026757if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026758 passed=`expr $passed + 1`
26759else
26760 failed=`expr $failed + 1`
26761fi
26762
26763
cristy8b350f62009-11-15 23:12:43 +000026764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026765$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026766if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026767 $as_echo_n "(cached) " >&6
26768else
26769 ac_check_lib_save_LIBS=$LIBS
26770LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026771cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026772/* end confdefs.h. */
26773
26774/* Override any GCC internal prototype to avoid an error.
26775 Use char because int might match the return type of a GCC
26776 builtin and then its argument prototype would still apply. */
26777#ifdef __cplusplus
26778extern "C"
26779#endif
26780char BZ2_bzDecompress ();
26781int
26782main ()
26783{
26784return BZ2_bzDecompress ();
26785 ;
26786 return 0;
26787}
26788_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026789if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026790 ac_cv_lib_bz2_BZ2_bzDecompress=yes
26791else
cristy8b350f62009-11-15 23:12:43 +000026792 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000026793fi
cristy8b350f62009-11-15 23:12:43 +000026794rm -f core conftest.err conftest.$ac_objext \
26795 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026796LIBS=$ac_check_lib_save_LIBS
26797fi
cristy8b350f62009-11-15 23:12:43 +000026798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026799$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026800if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026801 found_libbz=`expr $found_libbz + 1`
26802fi
26803
26804 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026806$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026807if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026808 $as_echo_n "(cached) " >&6
26809else
26810 ac_check_lib_save_LIBS=$LIBS
26811LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026812cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026813/* end confdefs.h. */
26814
26815/* Override any GCC internal prototype to avoid an error.
26816 Use char because int might match the return type of a GCC
26817 builtin and then its argument prototype would still apply. */
26818#ifdef __cplusplus
26819extern "C"
26820#endif
26821char _imp__BZ2_decompress ();
26822int
26823main ()
26824{
26825return _imp__BZ2_decompress ();
26826 ;
26827 return 0;
26828}
26829_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026830if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026831 ac_cv_lib_bz2__imp__BZ2_decompress=yes
26832else
cristy8b350f62009-11-15 23:12:43 +000026833 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000026834fi
cristy8b350f62009-11-15 23:12:43 +000026835rm -f core conftest.err conftest.$ac_objext \
26836 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026837LIBS=$ac_check_lib_save_LIBS
26838fi
cristy8b350f62009-11-15 23:12:43 +000026839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026840$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026841if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026842 found_libbz=`expr $found_libbz + 1`
26843fi
26844
26845 fi
26846 if test $found_libbz -gt 0; then
26847 passed=`expr $passed + 1`
26848 else
26849 failed=`expr $failed + 1`
26850 fi
cristy8b350f62009-11-15 23:12:43 +000026851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026852$as_echo_n "checking if BZLIB package is complete... " >&6; }
26853 if test $passed -gt 0; then
26854 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000026855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26856$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026857 have_bzlib='no (failed tests)'
26858 else
26859 BZLIB_LIBS='-lbz2'
26860 LIBS="$BZLIB_LIBS $LIBS"
26861
cristy8b350f62009-11-15 23:12:43 +000026862$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026863
cristyad38abe2012-12-23 23:03:21 +000026864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26865$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026866 have_bzlib='yes'
26867 fi
26868 else
cristyad38abe2012-12-23 23:03:21 +000026869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26870$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026871 fi
26872fi
cristy73bd4a52010-10-05 11:24:23 +000026873 if test "$have_bzlib" = 'yes'; then
26874 BZLIB_DELEGATE_TRUE=
26875 BZLIB_DELEGATE_FALSE='#'
26876else
26877 BZLIB_DELEGATE_TRUE='#'
26878 BZLIB_DELEGATE_FALSE=
26879fi
26880
cristy3ed852e2009-09-05 21:47:34 +000026881
26882
26883#
26884# Find the X11 include and library directories.
26885#
26886IPC_LIBS=''
26887X11_LIBS=''
26888XEXT_LIBS=''
26889XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000026890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000026891$as_echo_n "checking for X... " >&6; }
26892
26893
26894# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000026895if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000026896 withval=$with_x;
26897fi
26898
26899# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
26900if test "x$with_x" = xno; then
26901 # The user explicitly disabled X.
26902 have_x=disabled
26903else
26904 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000026905 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000026906 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000026907 $as_echo_n "(cached) " >&6
26908else
26909 # One or both of the vars are not set, and there is no cached value.
26910ac_x_includes=no ac_x_libraries=no
26911rm -f -r conftest.dir
26912if mkdir conftest.dir; then
26913 cd conftest.dir
26914 cat >Imakefile <<'_ACEOF'
26915incroot:
26916 @echo incroot='${INCROOT}'
26917usrlibdir:
26918 @echo usrlibdir='${USRLIBDIR}'
26919libdir:
26920 @echo libdir='${LIBDIR}'
26921_ACEOF
26922 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000026923 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000026924 for ac_var in incroot usrlibdir libdir; do
26925 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
26926 done
26927 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
26928 for ac_extension in a so sl dylib la dll; do
26929 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
26930 test -f "$ac_im_libdir/libX11.$ac_extension"; then
26931 ac_im_usrlibdir=$ac_im_libdir; break
26932 fi
26933 done
26934 # Screen out bogus values from the imake configuration. They are
26935 # bogus both because they are the default anyway, and because
26936 # using them would break gcc on systems where it needs fixed includes.
26937 case $ac_im_incroot in
26938 /usr/include) ac_x_includes= ;;
26939 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
26940 esac
26941 case $ac_im_usrlibdir in
26942 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
26943 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
26944 esac
26945 fi
26946 cd ..
26947 rm -f -r conftest.dir
26948fi
26949
26950# Standard set of common directories for X headers.
26951# Check X11 before X11Rn because it is often a symlink to the current release.
26952ac_x_header_dirs='
26953/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000026954/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000026955/usr/X11R6/include
26956/usr/X11R5/include
26957/usr/X11R4/include
26958
26959/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000026960/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000026961/usr/include/X11R6
26962/usr/include/X11R5
26963/usr/include/X11R4
26964
26965/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000026966/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000026967/usr/local/X11R6/include
26968/usr/local/X11R5/include
26969/usr/local/X11R4/include
26970
26971/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000026972/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000026973/usr/local/include/X11R6
26974/usr/local/include/X11R5
26975/usr/local/include/X11R4
26976
26977/usr/X386/include
26978/usr/x386/include
26979/usr/XFree86/include/X11
26980
26981/usr/include
26982/usr/local/include
26983/usr/unsupported/include
26984/usr/athena/include
26985/usr/local/x11r5/include
26986/usr/lpp/Xamples/include
26987
26988/usr/openwin/include
26989/usr/openwin/share/include'
26990
26991if test "$ac_x_includes" = no; then
26992 # Guess where to find include files, by looking for Xlib.h.
26993 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000026994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026995/* end confdefs.h. */
26996#include <X11/Xlib.h>
26997_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026998if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000026999 # We can compile using X headers with no special include directory.
27000ac_x_includes=
27001else
cristyc7083c12009-10-14 03:16:55 +000027002 for ac_dir in $ac_x_header_dirs; do
27003 if test -r "$ac_dir/X11/Xlib.h"; then
27004 ac_x_includes=$ac_dir
27005 break
27006 fi
27007done
27008fi
cristyda16f162011-02-19 23:52:17 +000027009rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027010fi # $ac_x_includes = no
27011
27012if test "$ac_x_libraries" = no; then
27013 # Check for the libraries.
27014 # See if we find them without any special options.
27015 # Don't add to $LIBS permanently.
27016 ac_save_LIBS=$LIBS
27017 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027019/* end confdefs.h. */
27020#include <X11/Xlib.h>
27021int
27022main ()
27023{
27024XrmInitialize ()
27025 ;
27026 return 0;
27027}
27028_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027029if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027030 LIBS=$ac_save_LIBS
27031# We can link X programs with no special library path.
27032ac_x_libraries=
27033else
cristy8b350f62009-11-15 23:12:43 +000027034 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000027035for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
27036do
27037 # Don't even attempt the hair of trying to link an X program!
27038 for ac_extension in a so sl dylib la dll; do
27039 if test -r "$ac_dir/libX11.$ac_extension"; then
27040 ac_x_libraries=$ac_dir
27041 break 2
27042 fi
27043 done
27044done
27045fi
cristy8b350f62009-11-15 23:12:43 +000027046rm -f core conftest.err conftest.$ac_objext \
27047 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027048fi # $ac_x_libraries = no
27049
27050case $ac_x_includes,$ac_x_libraries in #(
27051 no,* | *,no | *\'*)
27052 # Didn't find X, or a directory has "'" in its name.
27053 ac_cv_have_x="have_x=no";; #(
27054 *)
27055 # Record where we found X for the cache.
27056 ac_cv_have_x="have_x=yes\
27057 ac_x_includes='$ac_x_includes'\
27058 ac_x_libraries='$ac_x_libraries'"
27059esac
27060fi
27061;; #(
27062 *) have_x=yes;;
27063 esac
27064 eval "$ac_cv_have_x"
27065fi # $with_x != no
27066
27067if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000027068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000027069$as_echo "$have_x" >&6; }
27070 no_x=yes
27071else
27072 # If each of the values was on the command line, it overrides each guess.
27073 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
27074 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
27075 # Update the cache value to reflect the command line values.
27076 ac_cv_have_x="have_x=yes\
27077 ac_x_includes='$x_includes'\
27078 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000027079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000027080$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
27081fi
27082
cristy3ed852e2009-09-05 21:47:34 +000027083if test "$no_x" = yes; then
27084 # Not all programs may use this symbol, but it does not hurt to define it.
27085
cristy8b350f62009-11-15 23:12:43 +000027086$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027087
27088 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
27089else
27090 if test -n "$x_includes"; then
27091 X_CFLAGS="$X_CFLAGS -I$x_includes"
27092 fi
27093
27094 # It would also be nice to do this for all -L options, not just this one.
27095 if test -n "$x_libraries"; then
27096 X_LIBS="$X_LIBS -L$x_libraries"
27097 # For Solaris; some versions of Sun CC require a space after -R and
27098 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000027099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000027100$as_echo_n "checking whether -R must be followed by a space... " >&6; }
27101 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
27102 ac_xsave_c_werror_flag=$ac_c_werror_flag
27103 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000027104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027105/* end confdefs.h. */
27106
27107int
27108main ()
27109{
27110
27111 ;
27112 return 0;
27113}
27114_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027115if ac_fn_c_try_link "$LINENO"; then :
27116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027117$as_echo "no" >&6; }
27118 X_LIBS="$X_LIBS -R$x_libraries"
27119else
cristy8b350f62009-11-15 23:12:43 +000027120 LIBS="$ac_xsave_LIBS -R $x_libraries"
27121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027122/* end confdefs.h. */
27123
27124int
27125main ()
27126{
27127
27128 ;
27129 return 0;
27130}
27131_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027132if ac_fn_c_try_link "$LINENO"; then :
27133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027134$as_echo "yes" >&6; }
27135 X_LIBS="$X_LIBS -R $x_libraries"
27136else
cristy8b350f62009-11-15 23:12:43 +000027137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000027138$as_echo "neither works" >&6; }
27139fi
cristy8b350f62009-11-15 23:12:43 +000027140rm -f core conftest.err conftest.$ac_objext \
27141 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027142fi
cristy8b350f62009-11-15 23:12:43 +000027143rm -f core conftest.err conftest.$ac_objext \
27144 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027145 ac_c_werror_flag=$ac_xsave_c_werror_flag
27146 LIBS=$ac_xsave_LIBS
27147 fi
27148
27149 # Check for system-dependent libraries X programs must link with.
27150 # Do this before checking for the system-independent R6 libraries
27151 # (-lICE), since we may need -lsocket or whatever for X linking.
27152
27153 if test "$ISC" = yes; then
27154 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
27155 else
27156 # Martyn Johnson says this is needed for Ultrix, if the X
27157 # libraries were built with DECnet support. And Karl Berry says
27158 # the Alpha needs dnet_stub (dnet does not exist).
27159 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000027160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027161/* end confdefs.h. */
27162
27163/* Override any GCC internal prototype to avoid an error.
27164 Use char because int might match the return type of a GCC
27165 builtin and then its argument prototype would still apply. */
27166#ifdef __cplusplus
27167extern "C"
27168#endif
27169char XOpenDisplay ();
27170int
27171main ()
27172{
27173return XOpenDisplay ();
27174 ;
27175 return 0;
27176}
27177_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027178if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027179
cristy8b350f62009-11-15 23:12:43 +000027180else
27181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000027182$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027183if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027184 $as_echo_n "(cached) " >&6
27185else
27186 ac_check_lib_save_LIBS=$LIBS
27187LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027188cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027189/* end confdefs.h. */
27190
27191/* Override any GCC internal prototype to avoid an error.
27192 Use char because int might match the return type of a GCC
27193 builtin and then its argument prototype would still apply. */
27194#ifdef __cplusplus
27195extern "C"
27196#endif
27197char dnet_ntoa ();
27198int
27199main ()
27200{
27201return dnet_ntoa ();
27202 ;
27203 return 0;
27204}
27205_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027206if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027207 ac_cv_lib_dnet_dnet_ntoa=yes
27208else
cristy8b350f62009-11-15 23:12:43 +000027209 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027210fi
cristy8b350f62009-11-15 23:12:43 +000027211rm -f core conftest.err conftest.$ac_objext \
27212 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027213LIBS=$ac_check_lib_save_LIBS
27214fi
cristy8b350f62009-11-15 23:12:43 +000027215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027216$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027217if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027218 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
27219fi
27220
27221 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000027222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000027223$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027224if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027225 $as_echo_n "(cached) " >&6
27226else
27227 ac_check_lib_save_LIBS=$LIBS
27228LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027229cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027230/* end confdefs.h. */
27231
27232/* Override any GCC internal prototype to avoid an error.
27233 Use char because int might match the return type of a GCC
27234 builtin and then its argument prototype would still apply. */
27235#ifdef __cplusplus
27236extern "C"
27237#endif
27238char dnet_ntoa ();
27239int
27240main ()
27241{
27242return dnet_ntoa ();
27243 ;
27244 return 0;
27245}
27246_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027247if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027248 ac_cv_lib_dnet_stub_dnet_ntoa=yes
27249else
cristy8b350f62009-11-15 23:12:43 +000027250 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027251fi
cristy8b350f62009-11-15 23:12:43 +000027252rm -f core conftest.err conftest.$ac_objext \
27253 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027254LIBS=$ac_check_lib_save_LIBS
27255fi
cristy8b350f62009-11-15 23:12:43 +000027256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027257$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027258if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027259 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
27260fi
27261
27262 fi
27263fi
cristy8b350f62009-11-15 23:12:43 +000027264rm -f core conftest.err conftest.$ac_objext \
27265 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027266 LIBS="$ac_xsave_LIBS"
27267
27268 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27269 # to get the SysV transport functions.
27270 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27271 # needs -lnsl.
27272 # The nsl library prevents programs from opening the X display
27273 # on Irix 5.2, according to T.E. Dickey.
27274 # The functions gethostbyname, getservbyname, and inet_addr are
27275 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000027276 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000027277if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027278
cristy3ed852e2009-09-05 21:47:34 +000027279fi
27280
cristy3ed852e2009-09-05 21:47:34 +000027281 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027283$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027284if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027285 $as_echo_n "(cached) " >&6
27286else
27287 ac_check_lib_save_LIBS=$LIBS
27288LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027289cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027290/* end confdefs.h. */
27291
27292/* Override any GCC internal prototype to avoid an error.
27293 Use char because int might match the return type of a GCC
27294 builtin and then its argument prototype would still apply. */
27295#ifdef __cplusplus
27296extern "C"
27297#endif
27298char gethostbyname ();
27299int
27300main ()
27301{
27302return gethostbyname ();
27303 ;
27304 return 0;
27305}
27306_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027307if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027308 ac_cv_lib_nsl_gethostbyname=yes
27309else
cristy8b350f62009-11-15 23:12:43 +000027310 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027311fi
cristy8b350f62009-11-15 23:12:43 +000027312rm -f core conftest.err conftest.$ac_objext \
27313 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027314LIBS=$ac_check_lib_save_LIBS
27315fi
cristy8b350f62009-11-15 23:12:43 +000027316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027317$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027318if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027319 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
27320fi
27321
27322 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000027324$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027325if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027326 $as_echo_n "(cached) " >&6
27327else
27328 ac_check_lib_save_LIBS=$LIBS
27329LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027330cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027331/* end confdefs.h. */
27332
27333/* Override any GCC internal prototype to avoid an error.
27334 Use char because int might match the return type of a GCC
27335 builtin and then its argument prototype would still apply. */
27336#ifdef __cplusplus
27337extern "C"
27338#endif
27339char gethostbyname ();
27340int
27341main ()
27342{
27343return gethostbyname ();
27344 ;
27345 return 0;
27346}
27347_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027348if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027349 ac_cv_lib_bsd_gethostbyname=yes
27350else
cristy8b350f62009-11-15 23:12:43 +000027351 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027352fi
cristy8b350f62009-11-15 23:12:43 +000027353rm -f core conftest.err conftest.$ac_objext \
27354 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027355LIBS=$ac_check_lib_save_LIBS
27356fi
cristy8b350f62009-11-15 23:12:43 +000027357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027358$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027359if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027360 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27361fi
27362
27363 fi
27364 fi
27365
27366 # lieder@skyler.mavd.honeywell.com says without -lsocket,
27367 # socket/setsockopt and other routines are undefined under SCO ODT
27368 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
27369 # on later versions), says Simon Leinen: it contains gethostby*
27370 # variants that don't use the name server (or something). -lsocket
27371 # must be given before -lnsl if both are needed. We assume that
27372 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000027373 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000027374if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027375
cristy3ed852e2009-09-05 21:47:34 +000027376fi
27377
cristy3ed852e2009-09-05 21:47:34 +000027378 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000027379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000027380$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027381if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027382 $as_echo_n "(cached) " >&6
27383else
27384 ac_check_lib_save_LIBS=$LIBS
27385LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027386cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027387/* end confdefs.h. */
27388
27389/* Override any GCC internal prototype to avoid an error.
27390 Use char because int might match the return type of a GCC
27391 builtin and then its argument prototype would still apply. */
27392#ifdef __cplusplus
27393extern "C"
27394#endif
27395char connect ();
27396int
27397main ()
27398{
27399return connect ();
27400 ;
27401 return 0;
27402}
27403_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027404if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027405 ac_cv_lib_socket_connect=yes
27406else
cristy8b350f62009-11-15 23:12:43 +000027407 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000027408fi
cristy8b350f62009-11-15 23:12:43 +000027409rm -f core conftest.err conftest.$ac_objext \
27410 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027411LIBS=$ac_check_lib_save_LIBS
27412fi
cristy8b350f62009-11-15 23:12:43 +000027413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000027414$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000027415if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027416 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27417fi
27418
27419 fi
27420
27421 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000027422 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000027423if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027424
cristy3ed852e2009-09-05 21:47:34 +000027425fi
27426
cristy3ed852e2009-09-05 21:47:34 +000027427 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000027428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000027429$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027430if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027431 $as_echo_n "(cached) " >&6
27432else
27433 ac_check_lib_save_LIBS=$LIBS
27434LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027435cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027436/* end confdefs.h. */
27437
27438/* Override any GCC internal prototype to avoid an error.
27439 Use char because int might match the return type of a GCC
27440 builtin and then its argument prototype would still apply. */
27441#ifdef __cplusplus
27442extern "C"
27443#endif
27444char remove ();
27445int
27446main ()
27447{
27448return remove ();
27449 ;
27450 return 0;
27451}
27452_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027453if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027454 ac_cv_lib_posix_remove=yes
27455else
cristy8b350f62009-11-15 23:12:43 +000027456 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000027457fi
cristy8b350f62009-11-15 23:12:43 +000027458rm -f core conftest.err conftest.$ac_objext \
27459 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027460LIBS=$ac_check_lib_save_LIBS
27461fi
cristy8b350f62009-11-15 23:12:43 +000027462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000027463$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000027464if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027465 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27466fi
27467
27468 fi
27469
27470 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000027471 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000027472if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027473
cristy3ed852e2009-09-05 21:47:34 +000027474fi
27475
cristy3ed852e2009-09-05 21:47:34 +000027476 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000027477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027478$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027479if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027480 $as_echo_n "(cached) " >&6
27481else
27482 ac_check_lib_save_LIBS=$LIBS
27483LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027484cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027485/* end confdefs.h. */
27486
27487/* Override any GCC internal prototype to avoid an error.
27488 Use char because int might match the return type of a GCC
27489 builtin and then its argument prototype would still apply. */
27490#ifdef __cplusplus
27491extern "C"
27492#endif
27493char shmat ();
27494int
27495main ()
27496{
27497return shmat ();
27498 ;
27499 return 0;
27500}
27501_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027502if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027503 ac_cv_lib_ipc_shmat=yes
27504else
cristy8b350f62009-11-15 23:12:43 +000027505 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000027506fi
cristy8b350f62009-11-15 23:12:43 +000027507rm -f core conftest.err conftest.$ac_objext \
27508 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027509LIBS=$ac_check_lib_save_LIBS
27510fi
cristy8b350f62009-11-15 23:12:43 +000027511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000027512$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000027513if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027514 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27515fi
27516
27517 fi
27518 fi
27519
27520 # Check for libraries that X11R6 Xt/Xaw programs need.
27521 ac_save_LDFLAGS=$LDFLAGS
27522 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27523 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27524 # check for ICE first), but we must link in the order -lSM -lICE or
27525 # we get undefined symbols. So assume we have SM if we have ICE.
27526 # These have to be linked with before -lX11, unlike the other
27527 # libraries we check for below, so use a different variable.
27528 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000027529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000027530$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027531if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027532 $as_echo_n "(cached) " >&6
27533else
27534 ac_check_lib_save_LIBS=$LIBS
27535LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027536cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027537/* end confdefs.h. */
27538
27539/* Override any GCC internal prototype to avoid an error.
27540 Use char because int might match the return type of a GCC
27541 builtin and then its argument prototype would still apply. */
27542#ifdef __cplusplus
27543extern "C"
27544#endif
27545char IceConnectionNumber ();
27546int
27547main ()
27548{
27549return IceConnectionNumber ();
27550 ;
27551 return 0;
27552}
27553_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027554if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027555 ac_cv_lib_ICE_IceConnectionNumber=yes
27556else
cristy8b350f62009-11-15 23:12:43 +000027557 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000027558fi
cristy8b350f62009-11-15 23:12:43 +000027559rm -f core conftest.err conftest.$ac_objext \
27560 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027561LIBS=$ac_check_lib_save_LIBS
27562fi
cristy8b350f62009-11-15 23:12:43 +000027563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000027564$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000027565if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027566 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27567fi
27568
27569 LDFLAGS=$ac_save_LDFLAGS
27570
27571fi
27572
27573if test "$no_x" != 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000027574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27575$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000027577$as_echo_n "checking for X11... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27579$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027580 LDFLAGS="$LDFLAGS $X_LIBS"
27581 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
27582 LIBS="$X11_LIBS $LIBS"
27583 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
27584
27585
cristy8b350f62009-11-15 23:12:43 +000027586$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027587
27588 #
27589 # Check for X11 shared memory extension
27590 #
27591 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000027592 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000027593if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027594 have_shmctl='yes'
27595fi
27596
27597 if test "$have_shmctl" != 'yes'; then
27598 PERSIST_LIBS=$LIBS
27599 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000027600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027601/* end confdefs.h. */
27602
27603/* Override any GCC internal prototype to avoid an error.
27604 Use char because int might match the return type of a GCC
27605 builtin and then its argument prototype would still apply. */
27606#ifdef __cplusplus
27607extern "C"
27608#endif
27609char shmctl ();
27610int
27611main ()
27612{
27613return shmctl ();
27614 ;
27615 return 0;
27616}
27617_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027618if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027619 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000027620fi
cristy8b350f62009-11-15 23:12:43 +000027621rm -f core conftest.err conftest.$ac_objext \
27622 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027623 LIBS=$PERSIST_LIBS
27624 fi
27625
27626 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027628$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027629if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027630 $as_echo_n "(cached) " >&6
27631else
27632 ac_check_lib_save_LIBS=$LIBS
27633LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027634cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027635/* end confdefs.h. */
27636
27637/* Override any GCC internal prototype to avoid an error.
27638 Use char because int might match the return type of a GCC
27639 builtin and then its argument prototype would still apply. */
27640#ifdef __cplusplus
27641extern "C"
27642#endif
27643char XShmAttach ();
27644int
27645main ()
27646{
27647return XShmAttach ();
27648 ;
27649 return 0;
27650}
27651_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027652if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027653 ac_cv_lib_Xext_XShmAttach=yes
27654else
cristy8b350f62009-11-15 23:12:43 +000027655 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000027656fi
cristy8b350f62009-11-15 23:12:43 +000027657rm -f core conftest.err conftest.$ac_objext \
27658 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027659LIBS=$ac_check_lib_save_LIBS
27660fi
cristy8b350f62009-11-15 23:12:43 +000027661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000027662$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000027663if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027664 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027665$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027666
27667fi
27668
27669 fi
27670
27671 #
27672 # Check for X11 shape extension
27673 #
cristy8b350f62009-11-15 23:12:43 +000027674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027675$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027676if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027677 $as_echo_n "(cached) " >&6
27678else
27679 ac_check_lib_save_LIBS=$LIBS
27680LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027681cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027682/* end confdefs.h. */
27683
27684/* Override any GCC internal prototype to avoid an error.
27685 Use char because int might match the return type of a GCC
27686 builtin and then its argument prototype would still apply. */
27687#ifdef __cplusplus
27688extern "C"
27689#endif
27690char XShapeCombineMask ();
27691int
27692main ()
27693{
27694return XShapeCombineMask ();
27695 ;
27696 return 0;
27697}
27698_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027699if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027700 ac_cv_lib_Xext_XShapeCombineMask=yes
27701else
cristy8b350f62009-11-15 23:12:43 +000027702 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000027703fi
cristy8b350f62009-11-15 23:12:43 +000027704rm -f core conftest.err conftest.$ac_objext \
27705 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027706LIBS=$ac_check_lib_save_LIBS
27707fi
cristy8b350f62009-11-15 23:12:43 +000027708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000027709$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000027710if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027711 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027712$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027713
27714fi
27715
cristy8b350f62009-11-15 23:12:43 +000027716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000027717$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027718if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027719 $as_echo_n "(cached) " >&6
27720else
27721 ac_check_lib_save_LIBS=$LIBS
27722LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027723cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027724/* end confdefs.h. */
27725
27726/* Override any GCC internal prototype to avoid an error.
27727 Use char because int might match the return type of a GCC
27728 builtin and then its argument prototype would still apply. */
27729#ifdef __cplusplus
27730extern "C"
27731#endif
27732char XtSetEventDispatcher ();
27733int
27734main ()
27735{
27736return XtSetEventDispatcher ();
27737 ;
27738 return 0;
27739}
27740_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027741if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027742 ac_cv_lib_Xt_XtSetEventDispatcher=yes
27743else
cristy8b350f62009-11-15 23:12:43 +000027744 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000027745fi
cristy8b350f62009-11-15 23:12:43 +000027746rm -f core conftest.err conftest.$ac_objext \
27747 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027748LIBS=$ac_check_lib_save_LIBS
27749fi
cristy8b350f62009-11-15 23:12:43 +000027750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000027751$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000027752if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027753 XT_LIBS='-lXt'
27754fi
27755
27756 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
27757fi
27758if test "$no_x" != 'yes'; then
27759 have_x='yes'
27760else
27761 have_x='no'
27762fi
cristy73bd4a52010-10-05 11:24:23 +000027763 if test "$have_x" = 'yes'; then
27764 X11_DELEGATE_TRUE=
27765 X11_DELEGATE_FALSE='#'
27766else
27767 X11_DELEGATE_TRUE='#'
27768 X11_DELEGATE_FALSE=
27769fi
27770
cristy3ed852e2009-09-05 21:47:34 +000027771
27772
27773
27774
27775#
27776# Check for ZLIB
27777#
27778
27779# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000027780if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027781 withval=$with_zlib; with_zlib=$withval
27782else
27783 with_zlib='yes'
27784fi
27785
27786
27787if test "$with_zlib" != 'yes'; then
27788 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
27789fi
27790
27791have_zlib='no'
27792ZLIB_LIBS=''
27793if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000027794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27795$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000027797$as_echo_n "checking for ZLIB... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27799$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027800 ZLIB_LIBS=''
27801 failed=0
27802 passed=0
cristy8b350f62009-11-15 23:12:43 +000027803 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027804if test "x$ac_cv_header_zconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027805 passed=`expr $passed + 1`
27806else
27807 failed=`expr $failed + 1`
27808fi
27809
27810
cristy8b350f62009-11-15 23:12:43 +000027811 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027812if test "x$ac_cv_header_zlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027813 passed=`expr $passed + 1`
27814else
27815 failed=`expr $failed + 1`
27816fi
27817
27818
cristy8b350f62009-11-15 23:12:43 +000027819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027820$as_echo_n "checking for compress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027821if ${ac_cv_lib_z_compress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027822 $as_echo_n "(cached) " >&6
27823else
27824 ac_check_lib_save_LIBS=$LIBS
27825LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027826cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027827/* end confdefs.h. */
27828
27829/* Override any GCC internal prototype to avoid an error.
27830 Use char because int might match the return type of a GCC
27831 builtin and then its argument prototype would still apply. */
27832#ifdef __cplusplus
27833extern "C"
27834#endif
27835char compress ();
27836int
27837main ()
27838{
27839return compress ();
27840 ;
27841 return 0;
27842}
27843_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027844if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027845 ac_cv_lib_z_compress=yes
27846else
cristy8b350f62009-11-15 23:12:43 +000027847 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000027848fi
cristy8b350f62009-11-15 23:12:43 +000027849rm -f core conftest.err conftest.$ac_objext \
27850 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027851LIBS=$ac_check_lib_save_LIBS
27852fi
cristy8b350f62009-11-15 23:12:43 +000027853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027854$as_echo "$ac_cv_lib_z_compress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027855if test "x$ac_cv_lib_z_compress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027856 passed=`expr $passed + 1`
27857else
27858 failed=`expr $failed + 1`
27859fi
27860
cristy8b350f62009-11-15 23:12:43 +000027861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027862$as_echo_n "checking for uncompress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027863if ${ac_cv_lib_z_uncompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027864 $as_echo_n "(cached) " >&6
27865else
27866 ac_check_lib_save_LIBS=$LIBS
27867LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027868cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027869/* end confdefs.h. */
27870
27871/* Override any GCC internal prototype to avoid an error.
27872 Use char because int might match the return type of a GCC
27873 builtin and then its argument prototype would still apply. */
27874#ifdef __cplusplus
27875extern "C"
27876#endif
27877char uncompress ();
27878int
27879main ()
27880{
27881return uncompress ();
27882 ;
27883 return 0;
27884}
27885_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027886if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027887 ac_cv_lib_z_uncompress=yes
27888else
cristy8b350f62009-11-15 23:12:43 +000027889 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000027890fi
cristy8b350f62009-11-15 23:12:43 +000027891rm -f core conftest.err conftest.$ac_objext \
27892 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027893LIBS=$ac_check_lib_save_LIBS
27894fi
cristy8b350f62009-11-15 23:12:43 +000027895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027896$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027897if test "x$ac_cv_lib_z_uncompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027898 passed=`expr $passed + 1`
27899else
27900 failed=`expr $failed + 1`
27901fi
27902
cristy8b350f62009-11-15 23:12:43 +000027903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027904$as_echo_n "checking for deflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027905if ${ac_cv_lib_z_deflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027906 $as_echo_n "(cached) " >&6
27907else
27908 ac_check_lib_save_LIBS=$LIBS
27909LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027910cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027911/* end confdefs.h. */
27912
27913/* Override any GCC internal prototype to avoid an error.
27914 Use char because int might match the return type of a GCC
27915 builtin and then its argument prototype would still apply. */
27916#ifdef __cplusplus
27917extern "C"
27918#endif
27919char deflate ();
27920int
27921main ()
27922{
27923return deflate ();
27924 ;
27925 return 0;
27926}
27927_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027928if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027929 ac_cv_lib_z_deflate=yes
27930else
cristy8b350f62009-11-15 23:12:43 +000027931 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000027932fi
cristy8b350f62009-11-15 23:12:43 +000027933rm -f core conftest.err conftest.$ac_objext \
27934 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027935LIBS=$ac_check_lib_save_LIBS
27936fi
cristy8b350f62009-11-15 23:12:43 +000027937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027938$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000027939if test "x$ac_cv_lib_z_deflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027940 passed=`expr $passed + 1`
27941else
27942 failed=`expr $failed + 1`
27943fi
27944
cristy8b350f62009-11-15 23:12:43 +000027945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027946$as_echo_n "checking for inflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027947if ${ac_cv_lib_z_inflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027948 $as_echo_n "(cached) " >&6
27949else
27950 ac_check_lib_save_LIBS=$LIBS
27951LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027952cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027953/* end confdefs.h. */
27954
27955/* Override any GCC internal prototype to avoid an error.
27956 Use char because int might match the return type of a GCC
27957 builtin and then its argument prototype would still apply. */
27958#ifdef __cplusplus
27959extern "C"
27960#endif
27961char inflate ();
27962int
27963main ()
27964{
27965return inflate ();
27966 ;
27967 return 0;
27968}
27969_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027970if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027971 ac_cv_lib_z_inflate=yes
27972else
cristy8b350f62009-11-15 23:12:43 +000027973 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000027974fi
cristy8b350f62009-11-15 23:12:43 +000027975rm -f core conftest.err conftest.$ac_objext \
27976 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027977LIBS=$ac_check_lib_save_LIBS
27978fi
cristy8b350f62009-11-15 23:12:43 +000027979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027980$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000027981if test "x$ac_cv_lib_z_inflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027982 passed=`expr $passed + 1`
27983else
27984 failed=`expr $failed + 1`
27985fi
27986
cristy8b350f62009-11-15 23:12:43 +000027987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027988$as_echo_n "checking for gzseek in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027989if ${ac_cv_lib_z_gzseek+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027990 $as_echo_n "(cached) " >&6
27991else
27992 ac_check_lib_save_LIBS=$LIBS
27993LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027994cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027995/* end confdefs.h. */
27996
27997/* Override any GCC internal prototype to avoid an error.
27998 Use char because int might match the return type of a GCC
27999 builtin and then its argument prototype would still apply. */
28000#ifdef __cplusplus
28001extern "C"
28002#endif
28003char gzseek ();
28004int
28005main ()
28006{
28007return gzseek ();
28008 ;
28009 return 0;
28010}
28011_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028012if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028013 ac_cv_lib_z_gzseek=yes
28014else
cristy8b350f62009-11-15 23:12:43 +000028015 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000028016fi
cristy8b350f62009-11-15 23:12:43 +000028017rm -f core conftest.err conftest.$ac_objext \
28018 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028019LIBS=$ac_check_lib_save_LIBS
28020fi
cristy8b350f62009-11-15 23:12:43 +000028021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000028022$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristyda16f162011-02-19 23:52:17 +000028023if test "x$ac_cv_lib_z_gzseek" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028024 passed=`expr $passed + 1`
28025else
28026 failed=`expr $failed + 1`
28027fi
28028
cristy8b350f62009-11-15 23:12:43 +000028029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028030$as_echo_n "checking for gztell in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028031if ${ac_cv_lib_z_gztell+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028032 $as_echo_n "(cached) " >&6
28033else
28034 ac_check_lib_save_LIBS=$LIBS
28035LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028036cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028037/* end confdefs.h. */
28038
28039/* Override any GCC internal prototype to avoid an error.
28040 Use char because int might match the return type of a GCC
28041 builtin and then its argument prototype would still apply. */
28042#ifdef __cplusplus
28043extern "C"
28044#endif
28045char gztell ();
28046int
28047main ()
28048{
28049return gztell ();
28050 ;
28051 return 0;
28052}
28053_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028054if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028055 ac_cv_lib_z_gztell=yes
28056else
cristy8b350f62009-11-15 23:12:43 +000028057 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000028058fi
cristy8b350f62009-11-15 23:12:43 +000028059rm -f core conftest.err conftest.$ac_objext \
28060 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028061LIBS=$ac_check_lib_save_LIBS
28062fi
cristy8b350f62009-11-15 23:12:43 +000028063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000028064$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristyda16f162011-02-19 23:52:17 +000028065if test "x$ac_cv_lib_z_gztell" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028066 passed=`expr $passed + 1`
28067else
28068 failed=`expr $failed + 1`
28069fi
28070
cristy8b350f62009-11-15 23:12:43 +000028071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028072$as_echo_n "checking if ZLIB package is complete... " >&6; }
28073 if test $passed -gt 0; then
28074 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28076$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028077 have_zlib='no (failed tests)'
28078 else
28079 ZLIB_LIBS='-lz'
28080 LIBS="$ZLIB_LIBS $LIBS"
28081
cristy8b350f62009-11-15 23:12:43 +000028082$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028083
cristyad38abe2012-12-23 23:03:21 +000028084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28085$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028086 have_zlib='yes'
28087 fi
28088 else
cristyad38abe2012-12-23 23:03:21 +000028089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28090$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028091 fi
28092fi
cristy73bd4a52010-10-05 11:24:23 +000028093 if test "$have_zlib" = 'yes'; then
28094 ZLIB_DELEGATE_TRUE=
28095 ZLIB_DELEGATE_FALSE='#'
28096else
28097 ZLIB_DELEGATE_TRUE='#'
28098 ZLIB_DELEGATE_FALSE=
28099fi
28100
cristy3ed852e2009-09-05 21:47:34 +000028101
28102
cristy5eef09f2012-10-16 12:08:28 +000028103# whether modules are built or not.
28104with_ltdl='yes'
28105have_ltdl='no'
28106LTDL_LIBS=''
28107if test "$build_modules" != 'no' ; then
cristyad38abe2012-12-23 23:03:21 +000028108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28109$as_echo "-------------------------------------------------------------" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000028110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libltdl" >&5
28111$as_echo_n "checking for libltdl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28113$as_echo "" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000028114 failed=0
28115 passed=0
28116 ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
28117if test "x$ac_cv_header_ltdl_h" = xyes; then :
28118 passed=`expr $passed + 1`
28119else
28120 failed=`expr $failed + 1`
28121fi
28122
28123
28124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
28125$as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
28126if ${ac_cv_lib_ltdl_lt_dlinit+:} false; then :
28127 $as_echo_n "(cached) " >&6
28128else
28129 ac_check_lib_save_LIBS=$LIBS
28130LIBS="-lltdl $LIBS"
28131cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28132/* end confdefs.h. */
28133
28134/* Override any GCC internal prototype to avoid an error.
28135 Use char because int might match the return type of a GCC
28136 builtin and then its argument prototype would still apply. */
28137#ifdef __cplusplus
28138extern "C"
28139#endif
28140char lt_dlinit ();
28141int
28142main ()
28143{
28144return lt_dlinit ();
28145 ;
28146 return 0;
28147}
28148_ACEOF
28149if ac_fn_c_try_link "$LINENO"; then :
28150 ac_cv_lib_ltdl_lt_dlinit=yes
28151else
28152 ac_cv_lib_ltdl_lt_dlinit=no
28153fi
28154rm -f core conftest.err conftest.$ac_objext \
28155 conftest$ac_exeext conftest.$ac_ext
28156LIBS=$ac_check_lib_save_LIBS
28157fi
28158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
28159$as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
28160if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes; then :
28161 passed=`expr $passed + 1`
28162else
28163 failed=`expr $failed + 1`
28164fi
28165
28166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libltdl package is complete" >&5
28167$as_echo_n "checking if libltdl package is complete... " >&6; }
28168 if test $passed -gt 0 ; then
28169 if test $failed -gt 0 ; then
28170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28171$as_echo "no -- some components failed test" >&6; }
28172 have_ltdl='no (failed tests)'
28173 else
28174 LTDL_LIBS='-lltdl'
28175 LIBS="$LTDL_LIBS $LIBS"
28176
28177$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
28178
28179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28180$as_echo "yes" >&6; }
28181 have_ltdl='yes'
28182 fi
28183 else
28184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28185$as_echo "no" >&6; }
28186 fi
cristyaf4cbf32012-10-16 23:47:41 +000028187 if test "$have_ltdl" != 'yes' ; then
28188 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28189$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28190as_fn_error 1 "libltdl is required for modules build
28191See \`config.log' for more details" "$LINENO" 5; }
28192 fi
cristy5eef09f2012-10-16 12:08:28 +000028193fi
28194 if test "$have_ltdl" != 'no'; then
28195 WITH_LTDL_TRUE=
28196 WITH_LTDL_FALSE='#'
28197else
28198 WITH_LTDL_TRUE='#'
28199 WITH_LTDL_FALSE=
28200fi
28201
28202
cristy3ed852e2009-09-05 21:47:34 +000028203#
28204# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
28205#
28206LIB_DL=''
28207if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000028209$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028210if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028211 $as_echo_n "(cached) " >&6
28212else
28213 ac_check_lib_save_LIBS=$LIBS
28214LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028215cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028216/* end confdefs.h. */
28217
28218/* Override any GCC internal prototype to avoid an error.
28219 Use char because int might match the return type of a GCC
28220 builtin and then its argument prototype would still apply. */
28221#ifdef __cplusplus
28222extern "C"
28223#endif
28224char dlopen ();
28225int
28226main ()
28227{
28228return dlopen ();
28229 ;
28230 return 0;
28231}
28232_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028233if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028234 ac_cv_lib_dl_dlopen=yes
28235else
cristy8b350f62009-11-15 23:12:43 +000028236 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000028237fi
cristy8b350f62009-11-15 23:12:43 +000028238rm -f core conftest.err conftest.$ac_objext \
28239 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028240LIBS=$ac_check_lib_save_LIBS
28241fi
cristy8b350f62009-11-15 23:12:43 +000028242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028243$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000028244if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028245 LIB_DL='-ldl'
28246fi
28247
28248 LIBS="$LIB_DL $LIBS"
28249fi
28250
28251
28252
28253#
28254# Check for Autotrace delegate library.
28255#
28256
28257# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000028258if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028259 withval=$with_autotrace; with_autotrace=$withval
28260else
28261 with_autotrace='no'
28262fi
28263
28264
28265if test "$with_autotrace" != 'yes'; then
28266 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
28267fi
28268
28269have_autotrace='no'
28270AUTOTRACE_CFLAGS=""
28271AUTOTRACE_LIBS=""
28272AUTOTRACE_PKG=""
28273if test "x$with_autotrace" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000028274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28275$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028276
28277pkg_failed=no
28278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
28279$as_echo_n "checking for AUTOTRACE... " >&6; }
28280
28281if test -n "$AUTOTRACE_CFLAGS"; then
28282 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
28283 elif test -n "$PKG_CONFIG"; then
28284 if test -n "$PKG_CONFIG" && \
28285 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28286 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28287 ac_status=$?
28288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28289 test $ac_status = 0; }; then
28290 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
28291else
28292 pkg_failed=yes
28293fi
28294 else
28295 pkg_failed=untried
28296fi
28297if test -n "$AUTOTRACE_LIBS"; then
28298 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
28299 elif test -n "$PKG_CONFIG"; then
28300 if test -n "$PKG_CONFIG" && \
28301 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28302 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28303 ac_status=$?
28304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28305 test $ac_status = 0; }; then
28306 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
28307else
28308 pkg_failed=yes
28309fi
28310 else
28311 pkg_failed=untried
28312fi
28313
28314
28315
28316if test $pkg_failed = yes; then
28317
28318if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28319 _pkg_short_errors_supported=yes
28320else
28321 _pkg_short_errors_supported=no
28322fi
28323 if test $_pkg_short_errors_supported = yes; then
28324 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
28325 else
28326 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
28327 fi
28328 # Put the nasty error message in config.log where it belongs
28329 echo "$AUTOTRACE_PKG_ERRORS" >&5
28330
28331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28332$as_echo "no" >&6; }
28333 have_autotrace=no
28334elif test $pkg_failed = untried; then
28335 have_autotrace=no
28336else
28337 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
28338 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
28339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28340$as_echo "yes" >&6; }
28341 have_autotrace=yes
28342fi
cristyad38abe2012-12-23 23:03:21 +000028343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28344$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028345fi
28346
28347if test "$have_autotrace" = 'yes'; then
28348 failed=0
28349
cristy8b350f62009-11-15 23:12:43 +000028350$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028351
cristyc6722092012-10-14 00:19:31 +000028352 if test "$build_modules" = 'no'; then
cristyfa161182012-12-19 15:45:28 +000028353 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000028354 fi
28355fi
28356
cristy73bd4a52010-10-05 11:24:23 +000028357 if test "$have_autotrace" = 'yes'; then
28358 AUTOTRACE_DELEGATE_TRUE=
28359 AUTOTRACE_DELEGATE_FALSE='#'
28360else
28361 AUTOTRACE_DELEGATE_TRUE='#'
28362 AUTOTRACE_DELEGATE_FALSE=
28363fi
28364
cristy3ed852e2009-09-05 21:47:34 +000028365
28366
28367
28368
28369#
28370# Check for Display Postscript delegate library.
28371#
28372
28373# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000028374if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028375 withval=$with_dps; with_dps=$withval
28376else
28377 with_dps='yes'
28378fi
28379
28380
28381if test "$with_dps" != 'yes'; then
28382 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
28383fi
28384
28385have_dps='no'
28386DPS_LIBS=''
28387if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28389$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000028391$as_echo_n "checking for DPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28393$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028394 failed=0
28395 passed=0
28396 PERSIST_CPPFLAGS="$CPPFLAGS"
28397 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000028398 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 +000028399if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028400 passed=`expr $passed + 1`
28401else
28402 failed=`expr $failed + 1`
28403fi
28404
28405
28406 # DPS issues:
28407 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
28408 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
28409 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
28410 # ImageMagick itself doesn't use -lXt.
28411 have_libdps='no'
28412 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000028413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028414$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028415if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028416 $as_echo_n "(cached) " >&6
28417else
28418 ac_check_lib_save_LIBS=$LIBS
28419LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028420cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028421/* end confdefs.h. */
28422
28423/* Override any GCC internal prototype to avoid an error.
28424 Use char because int might match the return type of a GCC
28425 builtin and then its argument prototype would still apply. */
28426#ifdef __cplusplus
28427extern "C"
28428#endif
28429char DPSInitialize ();
28430int
28431main ()
28432{
28433return DPSInitialize ();
28434 ;
28435 return 0;
28436}
28437_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028438if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028439 ac_cv_lib_dps_DPSInitialize=yes
28440else
cristy8b350f62009-11-15 23:12:43 +000028441 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028442fi
cristy8b350f62009-11-15 23:12:43 +000028443rm -f core conftest.err conftest.$ac_objext \
28444 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028445LIBS=$ac_check_lib_save_LIBS
28446fi
cristy8b350f62009-11-15 23:12:43 +000028447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028448$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028449if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028450 have_libdps='yes'
28451else
28452 have_libdps='no'
28453fi
28454
28455 if test "$have_libdps" != 'yes'; then
28456 # Unset cache variable so we can try again.
28457 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000028458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028459$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028460if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028461 $as_echo_n "(cached) " >&6
28462else
28463 ac_check_lib_save_LIBS=$LIBS
28464LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028465cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028466/* end confdefs.h. */
28467
28468/* Override any GCC internal prototype to avoid an error.
28469 Use char because int might match the return type of a GCC
28470 builtin and then its argument prototype would still apply. */
28471#ifdef __cplusplus
28472extern "C"
28473#endif
28474char DPSInitialize ();
28475int
28476main ()
28477{
28478return DPSInitialize ();
28479 ;
28480 return 0;
28481}
28482_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028483if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028484 ac_cv_lib_dps_DPSInitialize=yes
28485else
cristy8b350f62009-11-15 23:12:43 +000028486 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028487fi
cristy8b350f62009-11-15 23:12:43 +000028488rm -f core conftest.err conftest.$ac_objext \
28489 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028490LIBS=$ac_check_lib_save_LIBS
28491fi
cristy8b350f62009-11-15 23:12:43 +000028492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028493$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028494if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028495 have_libdps='yes'
28496else
28497 have_libdps='no'
28498fi
28499
28500 if test "$have_libdps" = 'yes'; then
28501 LIBDPS_XT='-lXt'
28502 fi
28503 fi
28504 if test "$have_libdps" = 'yes'; then
28505 passed=`expr $passed + 1`
28506 else
28507 failed=`expr $failed + 1`
28508 fi
cristy8b350f62009-11-15 23:12:43 +000028509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000028510$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028511if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028512 $as_echo_n "(cached) " >&6
28513else
28514 ac_check_lib_save_LIBS=$LIBS
28515LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028516cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028517/* end confdefs.h. */
28518
28519/* Override any GCC internal prototype to avoid an error.
28520 Use char because int might match the return type of a GCC
28521 builtin and then its argument prototype would still apply. */
28522#ifdef __cplusplus
28523extern "C"
28524#endif
28525char XDPSPixelsPerPoint ();
28526int
28527main ()
28528{
28529return XDPSPixelsPerPoint ();
28530 ;
28531 return 0;
28532}
28533_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028534if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028535 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
28536else
cristy8b350f62009-11-15 23:12:43 +000028537 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000028538fi
cristy8b350f62009-11-15 23:12:43 +000028539rm -f core conftest.err conftest.$ac_objext \
28540 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028541LIBS=$ac_check_lib_save_LIBS
28542fi
cristy8b350f62009-11-15 23:12:43 +000028543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000028544$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000028545if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028546 passed=`expr $passed + 1`
28547else
28548 failed=`expr $failed + 1`
28549fi
28550
cristy8b350f62009-11-15 23:12:43 +000028551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028552$as_echo_n "checking if DPS package is complete... " >&6; }
28553 if test $passed -gt 0; then
28554 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28556$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028557 have_dps='no (failed tests)'
28558 CPPFLAGS="$PERSIST_CPPFLAGS"
28559 else
28560 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
28561 LIBS="$DPS_LIBS $LIBS"
28562
cristy8b350f62009-11-15 23:12:43 +000028563$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028564
cristyad38abe2012-12-23 23:03:21 +000028565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28566$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028567 have_dps='yes'
28568 fi
28569 else
cristyad38abe2012-12-23 23:03:21 +000028570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28571$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028572 CPPFLAGS=$PERSIST_CPPFLAGS
28573 fi
28574fi
cristy73bd4a52010-10-05 11:24:23 +000028575 if test "$have_dps" = 'yes'; then
28576 DPS_DELEGATE_TRUE=
28577 DPS_DELEGATE_FALSE='#'
28578else
28579 DPS_DELEGATE_TRUE='#'
28580 DPS_DELEGATE_FALSE=
28581fi
28582
cristy3ed852e2009-09-05 21:47:34 +000028583
28584
28585
28586#
28587# Check for DJVU delegate library.
28588#
28589
28590# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000028591if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028592 withval=$with_djvu; with_djvu=$withval
28593else
28594 with_djvu='yes'
28595fi
28596
28597
28598if test "$with_djvu" != 'yes'; then
28599 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
28600fi
28601
28602have_djvu='no'
28603DJVU_LIBS=''
28604if test "$with_djvu" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28606$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000028608$as_echo_n "checking for DJVU... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28610$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028611 failed=0
28612 passed=0
cristy8b350f62009-11-15 23:12:43 +000028613 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 +000028614if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028615 passed=`expr $passed + 1`
28616else
28617 failed=`expr $failed + 1`
28618fi
28619
28620
cristy8b350f62009-11-15 23:12:43 +000028621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000028622$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028623if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028624 $as_echo_n "(cached) " >&6
28625else
28626 ac_check_lib_save_LIBS=$LIBS
28627LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028628cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028629/* end confdefs.h. */
28630
28631/* Override any GCC internal prototype to avoid an error.
28632 Use char because int might match the return type of a GCC
28633 builtin and then its argument prototype would still apply. */
28634#ifdef __cplusplus
28635extern "C"
28636#endif
28637char ddjvu_context_create ();
28638int
28639main ()
28640{
28641return ddjvu_context_create ();
28642 ;
28643 return 0;
28644}
28645_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028646if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028647 ac_cv_lib_djvulibre_ddjvu_context_create=yes
28648else
cristy8b350f62009-11-15 23:12:43 +000028649 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000028650fi
cristy8b350f62009-11-15 23:12:43 +000028651rm -f core conftest.err conftest.$ac_objext \
28652 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028653LIBS=$ac_check_lib_save_LIBS
28654fi
cristy8b350f62009-11-15 23:12:43 +000028655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000028656$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristyda16f162011-02-19 23:52:17 +000028657if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028658 passed=`expr $passed + 1`
28659else
28660 failed=`expr $failed + 1`
28661fi
28662
cristy8b350f62009-11-15 23:12:43 +000028663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028664$as_echo_n "checking if DJVU package is complete... " >&6; }
28665 if test $passed -gt 0; then
28666 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28668$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028669 have_djvu='no (failed tests)'
28670 else
28671 DJVU_LIBS='-ldjvulibre'
28672 LIBS="$DJVU_LIBS $LIBS"
28673
cristy8b350f62009-11-15 23:12:43 +000028674$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028675
cristyad38abe2012-12-23 23:03:21 +000028676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28677$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028678 have_djvu='yes'
28679 fi
28680 else
cristyad38abe2012-12-23 23:03:21 +000028681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28682$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028683 fi
28684fi
cristy73bd4a52010-10-05 11:24:23 +000028685 if test "$have_djvu" = 'yes'; then
28686 DJVU_DELEGATE_TRUE=
28687 DJVU_DELEGATE_FALSE='#'
28688else
28689 DJVU_DELEGATE_TRUE='#'
28690 DJVU_DELEGATE_FALSE=
28691fi
28692
cristy3ed852e2009-09-05 21:47:34 +000028693
28694
28695
28696#
cristy430a7312010-01-21 20:44:04 +000028697# Set DejaVu font directory.
28698#
28699
28700# Check whether --with-dejavu-font-dir was given.
28701if test "${with_dejavu_font_dir+set}" = set; then :
28702 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
28703else
28704 with_dejavu_font_dir='default'
28705fi
28706
28707
28708if test "$with_dejavu_font_dir" != 'default'; then
28709 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
28710fi
28711
28712
28713#
cristy3ed852e2009-09-05 21:47:34 +000028714# Check for FFTW delegate library.
28715#
28716
28717# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000028718if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028719 withval=$with_fftw; with_fftw=$withval
28720else
28721 with_fftw='yes'
28722fi
28723
28724
28725if test "$with_fftw" != 'yes'; then
28726 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
28727fi
28728
cristy81beccd2011-10-03 18:17:24 +000028729have_fftw='no'
28730FFTW_LIBS=''
28731if test "$with_fftw" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28733$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
28735$as_echo_n "checking for FFTW... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28737$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028738 failed=0
28739 passed=0
28740 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
28741if test "x$ac_cv_header_fftw3_h" = xyes; then :
28742 passed=`expr $passed + 1`
28743else
28744 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028745fi
28746
cristy81beccd2011-10-03 18:17:24 +000028747
28748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
28749$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
28750if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
28751 $as_echo_n "(cached) " >&6
28752else
28753 ac_check_lib_save_LIBS=$LIBS
28754LIBS="-lfftw3 $LIBS"
28755cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28756/* end confdefs.h. */
28757
28758/* Override any GCC internal prototype to avoid an error.
28759 Use char because int might match the return type of a GCC
28760 builtin and then its argument prototype would still apply. */
28761#ifdef __cplusplus
28762extern "C"
28763#endif
28764char fftw_execute ();
28765int
28766main ()
28767{
28768return fftw_execute ();
28769 ;
28770 return 0;
28771}
28772_ACEOF
28773if ac_fn_c_try_link "$LINENO"; then :
28774 ac_cv_lib_fftw3_fftw_execute=yes
28775else
28776 ac_cv_lib_fftw3_fftw_execute=no
28777fi
28778rm -f core conftest.err conftest.$ac_objext \
28779 conftest$ac_exeext conftest.$ac_ext
28780LIBS=$ac_check_lib_save_LIBS
28781fi
28782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
28783$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
28784if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
28785 passed=`expr $passed + 1`
28786else
28787 failed=`expr $failed + 1`
28788fi
28789
28790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
28791$as_echo_n "checking if FFTW package is complete... " >&6; }
28792 if test $passed -gt 0; then
28793 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28795$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028796 have_fftw='no (failed tests)'
28797 else
28798 FFTW_LIBS='-lfftw3'
28799 LIBS="$FFTW_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000028800
cristy8b350f62009-11-15 23:12:43 +000028801$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028802
cristyad38abe2012-12-23 23:03:21 +000028803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28804$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028805 have_fftw='yes'
28806 fi
28807 else
cristyad38abe2012-12-23 23:03:21 +000028808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28809$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028810 fi
28811fi
cristy73bd4a52010-10-05 11:24:23 +000028812 if test "$have_fftw" = 'yes'; then
28813 FFTW_DELEGATE_TRUE=
28814 FFTW_DELEGATE_FALSE='#'
28815else
28816 FFTW_DELEGATE_TRUE='#'
28817 FFTW_DELEGATE_FALSE=
28818fi
28819
cristy3ed852e2009-09-05 21:47:34 +000028820
28821
28822
28823#
28824# Check for FlashPIX delegate library.
28825#
28826
28827# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000028828if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028829 withval=$with_fpx; with_fpx=$withval
28830else
28831 with_fpx='yes'
28832fi
28833
28834
28835if test "$with_fpx" != 'yes'; then
28836 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
28837fi
28838
28839have_fpx='no'
28840FPX_LIBS=''
28841if test "$with_fpx" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28843$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000028845$as_echo_n "checking for FlashPIX... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28847$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028848 failed=0
28849 passed=0
28850 ac_ext=cpp
28851ac_cpp='$CXXCPP $CPPFLAGS'
28852ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28853ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28854ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28855
28856
cristy8b350f62009-11-15 23:12:43 +000028857ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028858if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028859 passed=`expr $passed + 1`
28860else
28861 failed=`expr $failed + 1`
28862fi
28863
28864
cristy8b350f62009-11-15 23:12:43 +000028865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000028866$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028867if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028868 $as_echo_n "(cached) " >&6
28869else
28870 ac_check_lib_save_LIBS=$LIBS
28871LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028872cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028873/* end confdefs.h. */
28874
28875/* Override any GCC internal prototype to avoid an error.
28876 Use char because int might match the return type of a GCC
28877 builtin and then its argument prototype would still apply. */
28878#ifdef __cplusplus
28879extern "C"
28880#endif
28881char FPX_OpenImageByFilename ();
28882int
28883main ()
28884{
28885return FPX_OpenImageByFilename ();
28886 ;
28887 return 0;
28888}
28889_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028890if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028891 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
28892else
cristy8b350f62009-11-15 23:12:43 +000028893 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000028894fi
cristy8b350f62009-11-15 23:12:43 +000028895rm -f core conftest.err conftest.$ac_objext \
28896 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028897LIBS=$ac_check_lib_save_LIBS
28898fi
cristy8b350f62009-11-15 23:12:43 +000028899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000028900$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000028901if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028902 passed=`expr $passed + 1`
28903else
28904 failed=`expr $failed + 1`
28905fi
28906
28907 ac_ext=c
28908ac_cpp='$CPP $CPPFLAGS'
28909ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28910ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28911ac_compiler_gnu=$ac_cv_c_compiler_gnu
28912
cristy8b350f62009-11-15 23:12:43 +000028913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028914$as_echo_n "checking if FlashPIX package is complete... " >&6; }
28915 if test $passed -gt 0; then
28916 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28918$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028919 have_fpx='no (failed tests)'
28920 else
28921 FPX_LIBS='-lfpx'
28922
cristy8b350f62009-11-15 23:12:43 +000028923$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028924
cristyad38abe2012-12-23 23:03:21 +000028925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28926$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028927 have_fpx='yes'
28928 PERLMAINCC="$CXX"
28929 fi
28930 else
cristyad38abe2012-12-23 23:03:21 +000028931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28932$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028933 fi
28934fi
cristy73bd4a52010-10-05 11:24:23 +000028935 if test "$have_fpx" = 'yes'; then
28936 FPX_DELEGATE_TRUE=
28937 FPX_DELEGATE_FALSE='#'
28938else
28939 FPX_DELEGATE_TRUE='#'
28940 FPX_DELEGATE_FALSE=
28941fi
28942
cristy3ed852e2009-09-05 21:47:34 +000028943
28944
28945
28946#
28947# Check for fontconfig delegate library.
28948#
28949
28950# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000028951if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028952 withval=$with_fontconfig; with_fontconfig=$withval
28953else
cristyfc3d0222012-02-07 15:05:57 +000028954 with_fontconfig='yes'
cristy3ed852e2009-09-05 21:47:34 +000028955fi
28956
28957
28958if test "$with_fontconfig" != 'yes'; then
28959 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
28960fi
28961
28962have_fontconfig='no'
28963FONTCONFIG_CFLAGS=""
28964FONTCONFIG_LIBS=""
28965FONTCONFIG_PKG=""
28966if test "x$with_fontconfig" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000028967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28968$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028969
28970pkg_failed=no
28971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
28972$as_echo_n "checking for FONTCONFIG... " >&6; }
28973
28974if test -n "$FONTCONFIG_CFLAGS"; then
28975 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
28976 elif test -n "$PKG_CONFIG"; then
28977 if test -n "$PKG_CONFIG" && \
28978 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28979 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28980 ac_status=$?
28981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28982 test $ac_status = 0; }; then
28983 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
28984else
28985 pkg_failed=yes
28986fi
28987 else
28988 pkg_failed=untried
28989fi
28990if test -n "$FONTCONFIG_LIBS"; then
28991 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
28992 elif test -n "$PKG_CONFIG"; then
28993 if test -n "$PKG_CONFIG" && \
28994 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28995 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28996 ac_status=$?
28997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28998 test $ac_status = 0; }; then
28999 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
29000else
29001 pkg_failed=yes
29002fi
29003 else
29004 pkg_failed=untried
29005fi
29006
29007
29008
29009if test $pkg_failed = yes; then
29010
29011if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29012 _pkg_short_errors_supported=yes
29013else
29014 _pkg_short_errors_supported=no
29015fi
29016 if test $_pkg_short_errors_supported = yes; then
29017 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
29018 else
29019 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
29020 fi
29021 # Put the nasty error message in config.log where it belongs
29022 echo "$FONTCONFIG_PKG_ERRORS" >&5
29023
29024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29025$as_echo "no" >&6; }
29026 have_fontconfig=no
29027elif test $pkg_failed = untried; then
29028 have_fontconfig=no
29029else
29030 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
29031 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
29032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29033$as_echo "yes" >&6; }
29034 have_fontconfig=yes
29035fi
cristyad38abe2012-12-23 23:03:21 +000029036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29037$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029038fi
29039
29040if test "$have_fontconfig" = 'yes'; then
29041
cristy8b350f62009-11-15 23:12:43 +000029042$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029043
cristyc6722092012-10-14 00:19:31 +000029044 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000029045 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000029046 fi
cristy3ed852e2009-09-05 21:47:34 +000029047fi
29048
cristy73bd4a52010-10-05 11:24:23 +000029049 if test "$have_fontconfig" = 'yes'; then
29050 FONTCONFIG_DELEGATE_TRUE=
29051 FONTCONFIG_DELEGATE_FALSE='#'
29052else
29053 FONTCONFIG_DELEGATE_TRUE='#'
29054 FONTCONFIG_DELEGATE_FALSE=
29055fi
29056
cristy3ed852e2009-09-05 21:47:34 +000029057
29058
29059
29060
29061#
cristy03f187e2013-01-24 00:22:19 +000029062# Check for the Freetype delegate library.
cristy3ed852e2009-09-05 21:47:34 +000029063#
29064
29065# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000029066if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029067 withval=$with_freetype; with_freetype=$withval
29068else
29069 with_freetype='yes'
29070fi
29071
29072
cristy3ed852e2009-09-05 21:47:34 +000029073if test "$with_freetype" != 'yes'; then
29074 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
29075fi
29076
cristy81beccd2011-10-03 18:17:24 +000029077have_freetype='no'
cristy03f187e2013-01-24 00:22:19 +000029078FREETYPE_CFLAGS=""
29079FREETYPE_LIBS=""
29080FREETYPE_PKG=""
29081if test "x$with_freetype" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29083$as_echo "-------------------------------------------------------------" >&6; }
cristy03f187e2013-01-24 00:22:19 +000029084
29085pkg_failed=no
29086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
29087$as_echo_n "checking for FREETYPE... " >&6; }
29088
29089if test -n "$FREETYPE_CFLAGS"; then
29090 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
29091 elif test -n "$PKG_CONFIG"; then
29092 if test -n "$PKG_CONFIG" && \
29093 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
29094 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
29095 ac_status=$?
29096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29097 test $ac_status = 0; }; then
29098 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
29099else
29100 pkg_failed=yes
29101fi
29102 else
29103 pkg_failed=untried
29104fi
29105if test -n "$FREETYPE_LIBS"; then
29106 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
29107 elif test -n "$PKG_CONFIG"; then
29108 if test -n "$PKG_CONFIG" && \
29109 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
29110 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
29111 ac_status=$?
29112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29113 test $ac_status = 0; }; then
29114 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
29115else
29116 pkg_failed=yes
29117fi
29118 else
29119 pkg_failed=untried
29120fi
29121
29122
29123
29124if test $pkg_failed = yes; then
29125
29126if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29127 _pkg_short_errors_supported=yes
29128else
29129 _pkg_short_errors_supported=no
29130fi
29131 if test $_pkg_short_errors_supported = yes; then
29132 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1`
29133 else
29134 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1`
29135 fi
29136 # Put the nasty error message in config.log where it belongs
29137 echo "$FREETYPE_PKG_ERRORS" >&5
29138
29139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29140$as_echo "no" >&6; }
29141 have_freetype=no
29142elif test $pkg_failed = untried; then
29143 have_freetype=no
29144else
29145 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
29146 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
29147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29148$as_echo "yes" >&6; }
29149 have_freetype=yes
29150fi
cristyad38abe2012-12-23 23:03:21 +000029151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29152$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029153fi
29154
cristy03f187e2013-01-24 00:22:19 +000029155if test "$have_freetype" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029156
cristy8b350f62009-11-15 23:12:43 +000029157$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029158
cristy03f187e2013-01-24 00:22:19 +000029159 CFLAGS="$FREETYPE_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000029160fi
cristy03f187e2013-01-24 00:22:19 +000029161
cristy73bd4a52010-10-05 11:24:23 +000029162 if test "$have_freetype" = 'yes'; then
29163 FREETYPE_DELEGATE_TRUE=
29164 FREETYPE_DELEGATE_FALSE='#'
29165else
29166 FREETYPE_DELEGATE_TRUE='#'
29167 FREETYPE_DELEGATE_FALSE=
29168fi
29169
cristy3ed852e2009-09-05 21:47:34 +000029170
29171
29172
cristy03f187e2013-01-24 00:22:19 +000029173
cristy3ed852e2009-09-05 21:47:34 +000029174#
29175# Check for Ghostscript library or framework.
29176#
29177# Test for iapi.h & test for gsapi_new_instance in -lgs
29178# or -framework Ghostscript
29179
29180
29181# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000029182if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029183 withval=$with_gslib; with_gslib=$withval
29184else
29185 with_gslib='no'
29186fi
29187
29188
cristyb7931f12009-09-25 10:22:21 +000029189gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000029190if test "$with_gslib" != 'yes'; then
29191 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
29192fi
29193
29194have_gslib='no'
29195GS_LIBS=''
29196if test "$with_gslib" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29198$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000029200$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29202$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000029203 framework=0
cristy3ed852e2009-09-05 21:47:34 +000029204 failed=0
29205 passed=0
cristy8b350f62009-11-15 23:12:43 +000029206 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 +000029207if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029208 passed=`expr $passed + 1`
29209else
29210 failed=`expr $failed + 1`
29211fi
29212
29213
cristy8b350f62009-11-15 23:12:43 +000029214 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 +000029215if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029216 passed=`expr $passed + 1`
29217else
29218 failed=`expr $failed + 1`
29219fi
29220
29221
cristy73bd4a52010-10-05 11:24:23 +000029222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
29223$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029224if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000029225 $as_echo_n "(cached) " >&6
29226else
29227 ac_check_framework_save_LIBS=$LIBS
29228LIBS="-framework Ghostscript $LIBS"
29229cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29230/* end confdefs.h. */
29231
29232/* Override any GCC internal prototype to avoid an error.
29233 Use char because int might match the return type of a GCC
29234 builtin and then its argument prototype would still apply. */
29235#ifdef __cplusplus
29236extern "C"
29237#endif
29238char gsapi_new_instance ();
29239int
29240main ()
29241{
29242return gsapi_new_instance ();
29243 ;
29244 return 0;
29245}
29246_ACEOF
29247if ac_fn_c_try_link "$LINENO"; then :
29248 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
29249else
29250 ac_cv_framework_Ghostscript_gsapi_new_instance=no
29251fi
29252rm -f core conftest.err conftest.$ac_objext \
29253 conftest$ac_exeext conftest.$ac_ext
29254LIBS=$ac_check_framework_save_LIBS
29255fi
29256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
29257$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
29258if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
29259 framework=`expr $framework + 1`
29260else
29261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029262$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029263if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029264 $as_echo_n "(cached) " >&6
29265else
29266 ac_check_lib_save_LIBS=$LIBS
29267LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029268cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029269/* end confdefs.h. */
29270
29271/* Override any GCC internal prototype to avoid an error.
29272 Use char because int might match the return type of a GCC
29273 builtin and then its argument prototype would still apply. */
29274#ifdef __cplusplus
29275extern "C"
29276#endif
29277char gsapi_new_instance ();
29278int
29279main ()
29280{
29281return gsapi_new_instance ();
29282 ;
29283 return 0;
29284}
29285_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029286if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029287 ac_cv_lib_gs_gsapi_new_instance=yes
29288else
cristy8b350f62009-11-15 23:12:43 +000029289 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000029290fi
cristy8b350f62009-11-15 23:12:43 +000029291rm -f core conftest.err conftest.$ac_objext \
29292 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029293LIBS=$ac_check_lib_save_LIBS
29294fi
cristy8b350f62009-11-15 23:12:43 +000029295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000029296$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000029297if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029298 passed=`expr $passed + 1`
29299else
29300 failed=`expr $failed + 1`
29301fi
cristy73bd4a52010-10-05 11:24:23 +000029302
29303fi
cristy8b350f62009-11-15 23:12:43 +000029304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029305$as_echo_n "checking if Ghostscript package is complete... " >&6; }
29306 if test $passed -gt 0; then
29307 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29309$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029310 have_gslib='no (failed tests)'
29311 else
29312 if test $framework -gt 0; then
29313 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000029314 gslib_framework='yes'
cristyad38abe2012-12-23 23:03:21 +000029315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
29316$as_echo "yes, using framework." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029317 else
cristyad38abe2012-12-23 23:03:21 +000029318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
29319$as_echo "yes, using library." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029320 GS_LIBS='-lgs'
29321 fi
29322 LIBS="$GS_LIBS $LIBS"
29323
cristy8b350f62009-11-15 23:12:43 +000029324$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029325
29326 have_gslib='yes'
29327 fi
29328 else
cristyad38abe2012-12-23 23:03:21 +000029329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29330$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029331 fi
29332fi
cristy73bd4a52010-10-05 11:24:23 +000029333 if test "$have_gslib" = 'yes'; then
29334 GS_DELEGATE_TRUE=
29335 GS_DELEGATE_FALSE='#'
29336else
29337 GS_DELEGATE_TRUE='#'
29338 GS_DELEGATE_FALSE=
29339fi
29340
cristy3ed852e2009-09-05 21:47:34 +000029341
29342
29343# Set default font search path
29344
29345# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000029346if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029347 withval=$with_fontpath; with_fontpath=$withval
29348else
29349 with_fontpath=''
29350fi
29351
29352
29353if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
29354 with_fontpath=''
29355else
29356
29357cat >>confdefs.h <<_ACEOF
29358#define MAGICK_FONT_PATH "$with_fontpath"
29359_ACEOF
29360
29361fi
29362if test "$with_fontpath=" != ''; then
29363 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
29364fi
29365
29366# Set Ghostscript font directory
29367
29368# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029369if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029370 withval=$with_gs_font_dir; with_gs_font_dir=$withval
29371else
29372 with_gs_font_dir='default'
29373fi
29374
29375
29376if test "$with_gs_font_dir" != 'default'; then
29377 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
29378fi
29379
29380
29381#
29382# Check for GVC delegate library.
29383#
29384
29385# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000029386if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029387 withval=$with_gvc; with_gvc=$withval
29388else
cristy1b70dc82012-07-01 23:15:05 +000029389 with_gvc='no'
cristy3ed852e2009-09-05 21:47:34 +000029390fi
29391
29392
29393if test "$with_gvc" != 'yes'; then
29394 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
29395fi
29396
29397GVC_PKG=""
29398if test "x$with_gvc" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29400$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029401
29402pkg_failed=no
29403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
29404$as_echo_n "checking for GVC... " >&6; }
29405
29406if test -n "$GVC_CFLAGS"; then
29407 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
29408 elif test -n "$PKG_CONFIG"; then
29409 if test -n "$PKG_CONFIG" && \
29410 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29411 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29412 ac_status=$?
29413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29414 test $ac_status = 0; }; then
29415 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
29416else
29417 pkg_failed=yes
29418fi
29419 else
29420 pkg_failed=untried
29421fi
29422if test -n "$GVC_LIBS"; then
29423 pkg_cv_GVC_LIBS="$GVC_LIBS"
29424 elif test -n "$PKG_CONFIG"; then
29425 if test -n "$PKG_CONFIG" && \
29426 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29427 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29428 ac_status=$?
29429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29430 test $ac_status = 0; }; then
29431 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
29432else
29433 pkg_failed=yes
29434fi
29435 else
29436 pkg_failed=untried
29437fi
29438
29439
29440
29441if test $pkg_failed = yes; then
29442
29443if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29444 _pkg_short_errors_supported=yes
29445else
29446 _pkg_short_errors_supported=no
29447fi
29448 if test $_pkg_short_errors_supported = yes; then
29449 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
29450 else
29451 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
29452 fi
29453 # Put the nasty error message in config.log where it belongs
29454 echo "$GVC_PKG_ERRORS" >&5
29455
29456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29457$as_echo "no" >&6; }
29458 have_gvc=no
29459elif test $pkg_failed = untried; then
29460 have_gvc=no
29461else
29462 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
29463 GVC_LIBS=$pkg_cv_GVC_LIBS
29464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29465$as_echo "yes" >&6; }
29466 have_gvc=yes
29467fi
cristyad38abe2012-12-23 23:03:21 +000029468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29469$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029470fi
29471
29472if test "$have_gvc" = 'yes'; then
29473
cristy8b350f62009-11-15 23:12:43 +000029474$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029475
cristyc6722092012-10-14 00:19:31 +000029476 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000029477 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
29478 fi
29479fi
29480
cristy73bd4a52010-10-05 11:24:23 +000029481 if test "$have_gvc" = 'yes'; then
29482 GVC_DELEGATE_TRUE=
29483 GVC_DELEGATE_FALSE='#'
29484else
29485 GVC_DELEGATE_TRUE='#'
29486 GVC_DELEGATE_FALSE=
29487fi
29488
cristy3ed852e2009-09-05 21:47:34 +000029489
29490
29491
29492
29493#
29494# Check for JBIG delegate library.
29495#
29496
29497
29498# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000029499if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029500 withval=$with_jbig; with_jbig=$withval
29501else
29502 with_jbig='yes'
29503fi
29504
29505
29506have_jbig='no'
29507JBIG_LIBS=''
29508if test "$with_jbig" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29510$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029512$as_echo_n "checking for JBIG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29514$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029515 failed=0
29516 passed=0
cristy8b350f62009-11-15 23:12:43 +000029517 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029518if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029519 passed=`expr $passed + 1`
29520else
29521 failed=`expr $failed + 1`
29522fi
29523
29524
cristy8b350f62009-11-15 23:12:43 +000029525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000029526$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029527if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029528 $as_echo_n "(cached) " >&6
29529else
29530 ac_check_lib_save_LIBS=$LIBS
29531LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029532cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029533/* end confdefs.h. */
29534
29535/* Override any GCC internal prototype to avoid an error.
29536 Use char because int might match the return type of a GCC
29537 builtin and then its argument prototype would still apply. */
29538#ifdef __cplusplus
29539extern "C"
29540#endif
29541char jbg_dec_init ();
29542int
29543main ()
29544{
29545return jbg_dec_init ();
29546 ;
29547 return 0;
29548}
29549_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029550if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029551 ac_cv_lib_jbig_jbg_dec_init=yes
29552else
cristy8b350f62009-11-15 23:12:43 +000029553 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000029554fi
cristy8b350f62009-11-15 23:12:43 +000029555rm -f core conftest.err conftest.$ac_objext \
29556 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029557LIBS=$ac_check_lib_save_LIBS
29558fi
cristy8b350f62009-11-15 23:12:43 +000029559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000029560$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000029561if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029562 passed=`expr $passed + 1`
29563else
29564 failed=`expr $failed + 1`
29565fi
29566
cristy8b350f62009-11-15 23:12:43 +000029567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029568$as_echo_n "checking if JBIG package is complete... " >&6; }
29569 if test $passed -gt 0; then
29570 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29572$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029573 have_jbig='no (failed tests)'
29574 else
29575 JBIG_LIBS='-ljbig'
29576 LIBS="$JBIG_LIBS $LIBS"
29577
cristy8b350f62009-11-15 23:12:43 +000029578$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029579
cristyad38abe2012-12-23 23:03:21 +000029580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29581$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029582 have_jbig='yes'
29583 fi
29584 else
cristyad38abe2012-12-23 23:03:21 +000029585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29586$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029587 fi
29588fi
cristy73bd4a52010-10-05 11:24:23 +000029589 if test "$have_jbig" = 'yes'; then
29590 JBIG_DELEGATE_TRUE=
29591 JBIG_DELEGATE_FALSE='#'
29592else
29593 JBIG_DELEGATE_TRUE='#'
29594 JBIG_DELEGATE_FALSE=
29595fi
29596
cristy3ed852e2009-09-05 21:47:34 +000029597
29598
29599
29600#
29601# Check for JPEG delegate library.
29602#
29603
29604# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000029605if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029606 withval=$with_jpeg; with_jpeg=$withval
29607else
29608 with_jpeg='yes'
29609fi
29610
29611
29612if test "$with_jpeg" != 'yes'; then
29613 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
29614fi
29615
29616have_jpeg='no'
29617JPEG_LIBS=''
29618if test "$with_jpeg" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29620$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029622$as_echo_n "checking for JPEG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29624$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029625 failed=0
29626 passed=0
cristy8b350f62009-11-15 23:12:43 +000029627 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029628if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029629 passed=`expr $passed + 1`
29630else
29631 failed=`expr $failed + 1`
29632fi
29633
29634
cristy8b350f62009-11-15 23:12:43 +000029635 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029636if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029637 passed=`expr $passed + 1`
29638else
29639 failed=`expr $failed + 1`
29640fi
29641
29642
cristy8b350f62009-11-15 23:12:43 +000029643 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029644if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029645 passed=`expr $passed + 1`
29646else
29647 failed=`expr $failed + 1`
29648fi
29649
29650
cristy8b350f62009-11-15 23:12:43 +000029651 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029652if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029653 passed=`expr $passed + 1`
29654else
29655 failed=`expr $failed + 1`
29656fi
29657
29658
cristy8b350f62009-11-15 23:12:43 +000029659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000029660$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029661if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029662 $as_echo_n "(cached) " >&6
29663else
29664 ac_check_lib_save_LIBS=$LIBS
29665LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029666cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029667/* end confdefs.h. */
29668
29669/* Override any GCC internal prototype to avoid an error.
29670 Use char because int might match the return type of a GCC
29671 builtin and then its argument prototype would still apply. */
29672#ifdef __cplusplus
29673extern "C"
29674#endif
29675char jpeg_read_header ();
29676int
29677main ()
29678{
29679return jpeg_read_header ();
29680 ;
29681 return 0;
29682}
29683_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029684if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029685 ac_cv_lib_jpeg_jpeg_read_header=yes
29686else
cristy8b350f62009-11-15 23:12:43 +000029687 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000029688fi
cristy8b350f62009-11-15 23:12:43 +000029689rm -f core conftest.err conftest.$ac_objext \
29690 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029691LIBS=$ac_check_lib_save_LIBS
29692fi
cristy8b350f62009-11-15 23:12:43 +000029693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000029694$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000029695if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029696 passed=`expr $passed + 1`
29697else
29698 failed=`expr $failed + 1`
29699fi
29700
29701
29702# Test for compatible JPEG library
29703if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000029704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000029705$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029706if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029707 $as_echo_n "(cached) " >&6
29708else
cristy8b350f62009-11-15 23:12:43 +000029709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029710/* end confdefs.h. */
29711#include <stdio.h>
29712#include <stdlib.h>
29713#include <jpeglib.h>
29714
29715int
29716main ()
29717{
29718
29719#if JPEG_LIB_VERSION < 62
29720#error IJG JPEG library must be version 6b or newer!
29721#endif
29722return 0;
29723
29724 ;
29725 return 0;
29726}
29727_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029728if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029729 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
29730else
cristy8b350f62009-11-15 23:12:43 +000029731 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029732fi
cristy3ed852e2009-09-05 21:47:34 +000029733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29734fi
cristy8b350f62009-11-15 23:12:43 +000029735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000029736$as_echo "$ac_cv_jpeg_version_ok" >&6; }
29737fi
cristy8b350f62009-11-15 23:12:43 +000029738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029739$as_echo_n "checking if JPEG package is complete... " >&6; }
29740 if test $passed -gt 0; then
29741 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29743$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029744 have_jpeg='no (failed tests)'
29745 else
29746 JPEG_LIBS='-ljpeg'
29747 LIBS="$JPEG_LIBS $LIBS"
29748
cristy8b350f62009-11-15 23:12:43 +000029749$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029750
cristyad38abe2012-12-23 23:03:21 +000029751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29752$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029753 have_jpeg='yes'
29754 fi
29755 else
cristyad38abe2012-12-23 23:03:21 +000029756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29757$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029758 fi
29759fi
cristy73bd4a52010-10-05 11:24:23 +000029760 if test "$have_jpeg" = 'yes'; then
29761 JPEG_DELEGATE_TRUE=
29762 JPEG_DELEGATE_FALSE='#'
29763else
29764 JPEG_DELEGATE_TRUE='#'
29765 JPEG_DELEGATE_FALSE=
29766fi
29767
cristy3ed852e2009-09-05 21:47:34 +000029768
29769
29770
29771#
29772# Check for JPEG Version 2 delegate library.
29773#
29774
29775# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000029776if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029777 withval=$with_jp2; with_jp2=$withval
29778else
29779 with_jp2='yes'
29780fi
29781
29782
29783if test "$with_jp2" != 'yes'; then
29784 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
29785fi
29786
29787have_jp2='no'
29788JP2_LIBS=''
29789if test "$with_jp2" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29791$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000029793$as_echo_n "checking for JPEG Version 2... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29795$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029796 failed=0
29797 passed=0
cristy8b350f62009-11-15 23:12:43 +000029798 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 +000029799if test "x$ac_cv_header_jasper_jasper_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029800 passed=`expr $passed + 1`
29801else
29802 failed=`expr $failed + 1`
29803fi
29804
29805
cristy8b350f62009-11-15 23:12:43 +000029806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000029807$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029808if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029809 $as_echo_n "(cached) " >&6
29810else
29811 ac_check_lib_save_LIBS=$LIBS
29812LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029813cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029814/* end confdefs.h. */
29815
29816/* Override any GCC internal prototype to avoid an error.
29817 Use char because int might match the return type of a GCC
29818 builtin and then its argument prototype would still apply. */
29819#ifdef __cplusplus
29820extern "C"
29821#endif
29822char jas_stream_fopen ();
29823int
29824main ()
29825{
29826return jas_stream_fopen ();
29827 ;
29828 return 0;
29829}
29830_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029831if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029832 ac_cv_lib_jasper_jas_stream_fopen=yes
29833else
cristy8b350f62009-11-15 23:12:43 +000029834 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000029835fi
cristy8b350f62009-11-15 23:12:43 +000029836rm -f core conftest.err conftest.$ac_objext \
29837 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029838LIBS=$ac_check_lib_save_LIBS
29839fi
cristy8b350f62009-11-15 23:12:43 +000029840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000029841$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000029842if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029843 passed=`expr $passed + 1`
29844else
29845 failed=`expr $failed + 1`
29846fi
29847
cristy8b350f62009-11-15 23:12:43 +000029848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029849$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
29850 if test $passed -gt 0; then
29851 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29853$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029854 have_jp2='no (failed tests)'
29855 else
29856 JP2_LIBS='-ljasper'
29857 LIBS="$JP2_LIBS $LIBS"
29858
cristy8b350f62009-11-15 23:12:43 +000029859$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029860
cristyad38abe2012-12-23 23:03:21 +000029861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29862$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029863 have_jp2='yes'
29864 fi
29865 else
cristyad38abe2012-12-23 23:03:21 +000029866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29867$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029868 fi
29869fi
cristy73bd4a52010-10-05 11:24:23 +000029870 if test "$have_jp2" = 'yes'; then
29871 JP2_DELEGATE_TRUE=
29872 JP2_DELEGATE_FALSE='#'
29873else
29874 JP2_DELEGATE_TRUE='#'
29875 JP2_DELEGATE_FALSE=
29876fi
29877
cristy3ed852e2009-09-05 21:47:34 +000029878
29879
29880
29881#
29882# Check for LCMS delegate library.
29883#
cristy71203402010-06-18 13:12:03 +000029884# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000029885
29886# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000029887if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029888 withval=$with_lcms; with_lcms=$withval
29889else
29890 with_lcms='yes'
29891fi
29892
cristy71203402010-06-18 13:12:03 +000029893if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000029894 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
29895fi
29896
cristy71203402010-06-18 13:12:03 +000029897# Disable LCMS2.
29898
29899# Check whether --with-lcms2 was given.
29900if test "${with_lcms2+set}" = set; then :
29901 withval=$with_lcms2; with_lcms2=$withval
29902else
29903 with_lcms2='yes'
29904fi
29905
29906if test "$with_lcms2" != 'yes' ; then
29907 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
29908fi
29909
29910have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000029911LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000029912if test "$with_lcms2" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29914$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000029915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
29916$as_echo_n "checking for LCMS v2... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29918$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029919 failed=0
29920 passed=0
29921 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029922
29923 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000029924 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029925if test "x$ac_cv_header_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029926 have_lcms_header='yes'
29927fi
29928
29929
29930 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000029931
29932$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
29933
cristy71203402010-06-18 13:12:03 +000029934 passed=`expr $passed + 1`
29935 fi
29936
29937 # Check for <lcms2/lcms2.h)
29938 if test "$have_lcms_header" != 'yes'; then
29939 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 +000029940if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029941 have_lcms_header='yes'
29942fi
29943
29944
cristy71203402010-06-18 13:12:03 +000029945 if test "$have_lcms_header" = 'yes'; then
29946 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000029947
cristy71203402010-06-18 13:12:03 +000029948$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000029949
cristy71203402010-06-18 13:12:03 +000029950 fi
cristyd09bcf92010-03-25 03:04:45 +000029951 fi
cristy71203402010-06-18 13:12:03 +000029952
29953 # Failed to find lcms header?
29954 if test "$have_lcms_header" != 'yes'; then
29955 failed=`expr $failed + 1`
29956 fi
29957
29958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
29959$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029960if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
cristyd09bcf92010-03-25 03:04:45 +000029961 $as_echo_n "(cached) " >&6
29962else
29963 ac_check_lib_save_LIBS=$LIBS
29964LIBS="-llcms2 $LIBS"
29965cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29966/* end confdefs.h. */
29967
29968/* Override any GCC internal prototype to avoid an error.
29969 Use char because int might match the return type of a GCC
29970 builtin and then its argument prototype would still apply. */
29971#ifdef __cplusplus
29972extern "C"
29973#endif
cristy71203402010-06-18 13:12:03 +000029974char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000029975int
29976main ()
29977{
cristy71203402010-06-18 13:12:03 +000029978return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000029979 ;
29980 return 0;
29981}
29982_ACEOF
29983if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000029984 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000029985else
cristy71203402010-06-18 13:12:03 +000029986 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000029987fi
29988rm -f core conftest.err conftest.$ac_objext \
29989 conftest$ac_exeext conftest.$ac_ext
29990LIBS=$ac_check_lib_save_LIBS
29991fi
cristy71203402010-06-18 13:12:03 +000029992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
29993$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000029994if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029995 passed=`expr $passed + 1`
29996else
29997 failed=`expr $failed + 1`
29998fi
29999
cristy71203402010-06-18 13:12:03 +000030000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
30001$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000030002 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030003 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000030004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30005$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000030006 have_lcms2='no (failed tests)'
30007 else
30008 LCMS_LIBS='-llcms2'
30009 LIBS="$LCMS_LIBS $LIBS"
cristyad38abe2012-12-23 23:03:21 +000030010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30011$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000030012 have_lcms2='yes'
30013 fi
cristyd09bcf92010-03-25 03:04:45 +000030014 else
cristyad38abe2012-12-23 23:03:21 +000030015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30016$as_echo "no" >&6; }
cristyd09bcf92010-03-25 03:04:45 +000030017 fi
30018fi
30019
cristy71203402010-06-18 13:12:03 +000030020#
30021# Check for LCMS v1 (1.11 or later)
30022#
30023if test $have_lcms2 = 'yes'; then
30024 with_lcms='no'
30025fi
30026
30027have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000030028if test "$with_lcms" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000030029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30030$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000030031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
30032$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30034$as_echo "" >&6; }
cristyd09bcf92010-03-25 03:04:45 +000030035 failed=0
30036 passed=0
30037 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000030038
30039 # Check for <lcms.h>
30040 if test "$have_lcms_header" != 'yes'; then
30041 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030042if test "x$ac_cv_header_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030043 have_lcms_header='yes'
30044fi
30045
30046
cristy71203402010-06-18 13:12:03 +000030047 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000030048 passed=`expr $passed + 1`
30049
cristy8b350f62009-11-15 23:12:43 +000030050$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030051
cristy71203402010-06-18 13:12:03 +000030052 fi
30053 fi
30054
30055 # Check for <lcms/lcms.h>
30056 if test "$have_lcms_header" != 'yes'; then
30057 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 +000030058if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030059 have_lcms_header='yes'
30060fi
30061
30062
cristy71203402010-06-18 13:12:03 +000030063 if test "$have_lcms_header" = 'yes'; then
30064 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030065
cristy8b350f62009-11-15 23:12:43 +000030066$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030067
cristy71203402010-06-18 13:12:03 +000030068 fi
cristy3ed852e2009-09-05 21:47:34 +000030069 fi
cristy71203402010-06-18 13:12:03 +000030070
30071 # Failed to find lcms header?
30072 if test "$have_lcms_header" != 'yes'; then
30073 failed=`expr $failed + 1`
30074 fi
30075
30076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
30077$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030078if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030079 $as_echo_n "(cached) " >&6
30080else
30081 ac_check_lib_save_LIBS=$LIBS
30082LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030083cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030084/* end confdefs.h. */
30085
30086/* Override any GCC internal prototype to avoid an error.
30087 Use char because int might match the return type of a GCC
30088 builtin and then its argument prototype would still apply. */
30089#ifdef __cplusplus
30090extern "C"
30091#endif
cristy71203402010-06-18 13:12:03 +000030092char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030093int
30094main ()
30095{
cristy71203402010-06-18 13:12:03 +000030096return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030097 ;
30098 return 0;
30099}
30100_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030101if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000030102 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000030103else
cristy71203402010-06-18 13:12:03 +000030104 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000030105fi
cristy8b350f62009-11-15 23:12:43 +000030106rm -f core conftest.err conftest.$ac_objext \
30107 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030108LIBS=$ac_check_lib_save_LIBS
30109fi
cristy71203402010-06-18 13:12:03 +000030110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
30111$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000030112if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030113 passed=`expr $passed + 1`
30114else
30115 failed=`expr $failed + 1`
30116fi
30117
cristy8b350f62009-11-15 23:12:43 +000030118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030119$as_echo_n "checking if LCMS package is complete... " >&6; }
30120 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030121 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000030122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30123$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000030124 have_lcms='no (failed tests)'
30125 else
30126 LCMS_LIBS='-llcms'
30127 LIBS="$LCMS_LIBS $LIBS"
cristyad38abe2012-12-23 23:03:21 +000030128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30129$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000030130 have_lcms='yes'
30131 fi
cristy3ed852e2009-09-05 21:47:34 +000030132 else
cristyad38abe2012-12-23 23:03:21 +000030133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30134$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030135 fi
30136fi
cristy71203402010-06-18 13:12:03 +000030137
cristy73bd4a52010-10-05 11:24:23 +000030138 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30139 LCMS_DELEGATE_TRUE=
30140 LCMS_DELEGATE_FALSE='#'
30141else
30142 LCMS_DELEGATE_TRUE='#'
30143 LCMS_DELEGATE_FALSE=
30144fi
30145
cristy71203402010-06-18 13:12:03 +000030146if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30147
30148$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
30149
30150fi
30151
cristy3ed852e2009-09-05 21:47:34 +000030152
30153
30154
30155#
30156# Check for the LQR (Liquid Rescale) delegate library.
30157#
30158
30159# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000030160if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030161 withval=$with_lqr; with_lqr=$withval
30162else
30163 with_lqr='yes'
30164fi
30165
30166
30167if test "$with_lqr" != 'yes'; then
30168 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
30169fi
30170
30171have_lqr='no'
30172LQR_CFLAGS=""
30173LQR_LIBS=""
30174LQR_PKG=""
30175if test "x$with_lqr" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30177$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030178
30179pkg_failed=no
30180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
30181$as_echo_n "checking for LQR... " >&6; }
30182
30183if test -n "$LQR_CFLAGS"; then
30184 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
30185 elif test -n "$PKG_CONFIG"; then
30186 if test -n "$PKG_CONFIG" && \
30187 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30188 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30189 ac_status=$?
30190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30191 test $ac_status = 0; }; then
30192 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
30193else
30194 pkg_failed=yes
30195fi
30196 else
30197 pkg_failed=untried
30198fi
30199if test -n "$LQR_LIBS"; then
30200 pkg_cv_LQR_LIBS="$LQR_LIBS"
30201 elif test -n "$PKG_CONFIG"; then
30202 if test -n "$PKG_CONFIG" && \
30203 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30204 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30205 ac_status=$?
30206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30207 test $ac_status = 0; }; then
30208 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
30209else
30210 pkg_failed=yes
30211fi
30212 else
30213 pkg_failed=untried
30214fi
30215
30216
30217
30218if test $pkg_failed = yes; then
30219
30220if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30221 _pkg_short_errors_supported=yes
30222else
30223 _pkg_short_errors_supported=no
30224fi
30225 if test $_pkg_short_errors_supported = yes; then
30226 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
30227 else
30228 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
30229 fi
30230 # Put the nasty error message in config.log where it belongs
30231 echo "$LQR_PKG_ERRORS" >&5
30232
30233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30234$as_echo "no" >&6; }
30235 have_lqr=no
30236elif test $pkg_failed = untried; then
30237 have_lqr=no
30238else
30239 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
30240 LQR_LIBS=$pkg_cv_LQR_LIBS
30241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30242$as_echo "yes" >&6; }
30243 have_lqr=yes
30244fi
cristyad38abe2012-12-23 23:03:21 +000030245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30246$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030247fi
30248
30249if test "$have_lqr" = 'yes'; then
30250
cristy8b350f62009-11-15 23:12:43 +000030251$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030252
30253 CFLAGS="$LQR_CFLAGS $CFLAGS"
30254fi
30255
cristy73bd4a52010-10-05 11:24:23 +000030256 if test "$have_lqr" = 'yes'; then
30257 LQR_DELEGATE_TRUE=
30258 LQR_DELEGATE_FALSE='#'
30259else
30260 LQR_DELEGATE_TRUE='#'
30261 LQR_DELEGATE_FALSE=
30262fi
30263
cristy3ed852e2009-09-05 21:47:34 +000030264
30265
30266
30267
cristy81beccd2011-10-03 18:17:24 +000030268# Disable LZMA (lzma library)
cristyfbb0ef02010-12-19 02:32:11 +000030269
30270# Check whether --with-lzma was given.
30271if test "${with_lzma+set}" = set; then :
30272 withval=$with_lzma; with_lzma=$withval
30273else
30274 with_lzma='yes'
30275fi
30276
cristy81beccd2011-10-03 18:17:24 +000030277if test "$with_lzma" != 'yes' ; then
cristyfbb0ef02010-12-19 02:32:11 +000030278 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
30279fi
30280
cristyb94e5002011-11-14 13:20:10 +000030281LZMA_PKG=""
30282if test "x$with_lzma" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30284$as_echo "-------------------------------------------------------------" >&6; }
cristyb94e5002011-11-14 13:20:10 +000030285
30286pkg_failed=no
30287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
cristyfbb0ef02010-12-19 02:32:11 +000030288$as_echo_n "checking for LZMA... " >&6; }
cristyb94e5002011-11-14 13:20:10 +000030289
30290if test -n "$LZMA_CFLAGS"; then
30291 pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
30292 elif test -n "$PKG_CONFIG"; then
30293 if test -n "$PKG_CONFIG" && \
30294 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30295 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30296 ac_status=$?
30297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30298 test $ac_status = 0; }; then
30299 pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null`
30300else
30301 pkg_failed=yes
30302fi
30303 else
30304 pkg_failed=untried
30305fi
30306if test -n "$LZMA_LIBS"; then
30307 pkg_cv_LZMA_LIBS="$LZMA_LIBS"
30308 elif test -n "$PKG_CONFIG"; then
30309 if test -n "$PKG_CONFIG" && \
30310 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30311 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30312 ac_status=$?
30313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30314 test $ac_status = 0; }; then
30315 pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null`
30316else
30317 pkg_failed=yes
30318fi
30319 else
30320 pkg_failed=untried
30321fi
30322
30323
30324
30325if test $pkg_failed = yes; then
30326
30327if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30328 _pkg_short_errors_supported=yes
30329else
30330 _pkg_short_errors_supported=no
30331fi
30332 if test $_pkg_short_errors_supported = yes; then
30333 LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "liblzma >= 2.9.0" 2>&1`
30334 else
30335 LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors "liblzma >= 2.9.0" 2>&1`
30336 fi
30337 # Put the nasty error message in config.log where it belongs
30338 echo "$LZMA_PKG_ERRORS" >&5
30339
30340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30341$as_echo "no" >&6; }
30342 have_lzma=no
30343elif test $pkg_failed = untried; then
30344 have_lzma=no
30345else
30346 LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
30347 LZMA_LIBS=$pkg_cv_LZMA_LIBS
30348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30349$as_echo "yes" >&6; }
30350 have_lzma=yes
30351fi
cristyad38abe2012-12-23 23:03:21 +000030352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30353$as_echo "" >&6; }
cristyfbb0ef02010-12-19 02:32:11 +000030354fi
30355
cristyb94e5002011-11-14 13:20:10 +000030356if test "$have_lzma" = 'yes'; then
cristyfbb0ef02010-12-19 02:32:11 +000030357
30358$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
30359
cristyc6722092012-10-14 00:19:31 +000030360 if test "$build_modules" = 'no'; then
cristyb94e5002011-11-14 13:20:10 +000030361 CPPFLAGS="$LZMA_CFLAGS $CPPFLAGS"
cristyfbb0ef02010-12-19 02:32:11 +000030362 fi
cristyfbb0ef02010-12-19 02:32:11 +000030363fi
cristyb94e5002011-11-14 13:20:10 +000030364
cristyfbb0ef02010-12-19 02:32:11 +000030365 if test "$have_lzma" = 'yes'; then
30366 LZMA_DELEGATE_TRUE=
30367 LZMA_DELEGATE_FALSE='#'
30368else
30369 LZMA_DELEGATE_TRUE='#'
30370 LZMA_DELEGATE_FALSE=
30371fi
30372
30373
30374
30375
cristyb94e5002011-11-14 13:20:10 +000030376
cristy3ed852e2009-09-05 21:47:34 +000030377#
30378# Check for the OpenEXR delegate library.
30379#
30380
30381# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000030382if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030383 withval=$with_openexr; with_openexr=$withval
30384else
30385 with_openexr='yes'
30386fi
30387
30388
30389if test "$with_openexr" != 'yes'; then
30390 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
30391fi
30392
30393have_openexr='no'
30394OPENEXR_CFLAGS=""
30395OPENEXR_LIBS=""
30396OPENEXR_PKG=""
30397if test "x$with_openexr" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30399$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030400
30401pkg_failed=no
30402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
30403$as_echo_n "checking for OPENEXR... " >&6; }
30404
30405if test -n "$OPENEXR_CFLAGS"; then
30406 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
30407 elif test -n "$PKG_CONFIG"; then
30408 if test -n "$PKG_CONFIG" && \
30409 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30410 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30411 ac_status=$?
30412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30413 test $ac_status = 0; }; then
30414 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
30415else
30416 pkg_failed=yes
30417fi
30418 else
30419 pkg_failed=untried
30420fi
30421if test -n "$OPENEXR_LIBS"; then
30422 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
30423 elif test -n "$PKG_CONFIG"; then
30424 if test -n "$PKG_CONFIG" && \
30425 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30426 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30427 ac_status=$?
30428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30429 test $ac_status = 0; }; then
30430 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
30431else
30432 pkg_failed=yes
30433fi
30434 else
30435 pkg_failed=untried
30436fi
30437
30438
30439
30440if test $pkg_failed = yes; then
30441
30442if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30443 _pkg_short_errors_supported=yes
30444else
30445 _pkg_short_errors_supported=no
30446fi
30447 if test $_pkg_short_errors_supported = yes; then
30448 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
30449 else
30450 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
30451 fi
30452 # Put the nasty error message in config.log where it belongs
30453 echo "$OPENEXR_PKG_ERRORS" >&5
30454
30455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30456$as_echo "no" >&6; }
30457 have_openexr=no
30458elif test $pkg_failed = untried; then
30459 have_openexr=no
30460else
30461 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
30462 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
30463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30464$as_echo "yes" >&6; }
30465 have_openexr=yes
30466fi
cristyad38abe2012-12-23 23:03:21 +000030467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30468$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030469fi
30470
30471if test "$have_openexr" = 'yes'; then
30472
cristy8b350f62009-11-15 23:12:43 +000030473$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030474
cristyc6722092012-10-14 00:19:31 +000030475 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000030476 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
30477 fi
30478fi
30479
cristy73bd4a52010-10-05 11:24:23 +000030480 if test "$have_openexr" = 'yes'; then
30481 OPENEXR_DELEGATE_TRUE=
30482 OPENEXR_DELEGATE_FALSE='#'
30483else
30484 OPENEXR_DELEGATE_TRUE='#'
30485 OPENEXR_DELEGATE_FALSE=
30486fi
30487
cristy3ed852e2009-09-05 21:47:34 +000030488
30489
30490
30491
30492#
cristy41cbe8a2011-10-27 01:35:18 +000030493# Check for PANGO delegate library.
30494#
30495
30496# Check whether --with-pango was given.
30497if test "${with_pango+set}" = set; then :
30498 withval=$with_pango; with_pango=$withval
30499else
cristyfc3d0222012-02-07 15:05:57 +000030500 with_pango='yes'
cristy41cbe8a2011-10-27 01:35:18 +000030501fi
30502
30503
30504if test "$with_pango" != 'yes'; then
30505 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
30506fi
30507
30508have_pango='no'
cristya054b762012-03-26 23:16:00 +000030509have_pangocairo='no'
cristy41cbe8a2011-10-27 01:35:18 +000030510PANGO_CFLAGS=""
30511PANGO_LIBS=""
30512PANGO_PKG=""
30513if test "x$with_pango" = "xyes"; then
30514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30515$as_echo "-------------------------------------------------------------" >&6; }
30516
30517pkg_failed=no
30518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30519$as_echo_n "checking for PANGO... " >&6; }
30520
30521if test -n "$PANGO_CFLAGS"; then
30522 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30523 elif test -n "$PKG_CONFIG"; then
30524 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030525 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30526 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030527 ac_status=$?
30528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30529 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030530 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030531else
30532 pkg_failed=yes
30533fi
30534 else
30535 pkg_failed=untried
30536fi
30537if test -n "$PANGO_LIBS"; then
30538 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30539 elif test -n "$PKG_CONFIG"; then
30540 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030541 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30542 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030543 ac_status=$?
30544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30545 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030546 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030547else
30548 pkg_failed=yes
30549fi
30550 else
30551 pkg_failed=untried
30552fi
30553
30554
30555
30556if test $pkg_failed = yes; then
30557
30558if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30559 _pkg_short_errors_supported=yes
30560else
30561 _pkg_short_errors_supported=no
30562fi
30563 if test $_pkg_short_errors_supported = yes; then
cristya054b762012-03-26 23:16:00 +000030564 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030565 else
cristya054b762012-03-26 23:16:00 +000030566 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030567 fi
30568 # Put the nasty error message in config.log where it belongs
30569 echo "$PANGO_PKG_ERRORS" >&5
30570
30571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30572$as_echo "no" >&6; }
cristya054b762012-03-26 23:16:00 +000030573 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000030574elif test $pkg_failed = untried; then
cristya054b762012-03-26 23:16:00 +000030575 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000030576else
30577 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30578 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30580$as_echo "yes" >&6; }
cristya054b762012-03-26 23:16:00 +000030581 have_pangocairo=yes
cristy41cbe8a2011-10-27 01:35:18 +000030582fi
30583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30584$as_echo "" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000030585
30586pkg_failed=no
30587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30588$as_echo_n "checking for PANGO... " >&6; }
30589
30590if test -n "$PANGO_CFLAGS"; then
30591 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30592 elif test -n "$PKG_CONFIG"; then
30593 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030594 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30595 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030596 ac_status=$?
30597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30598 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030599 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030600else
30601 pkg_failed=yes
30602fi
30603 else
30604 pkg_failed=untried
30605fi
30606if test -n "$PANGO_LIBS"; then
30607 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30608 elif test -n "$PKG_CONFIG"; then
30609 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030610 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30611 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030612 ac_status=$?
30613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30614 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030615 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030616else
30617 pkg_failed=yes
30618fi
30619 else
30620 pkg_failed=untried
30621fi
30622
30623
30624
30625if test $pkg_failed = yes; then
30626
30627if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30628 _pkg_short_errors_supported=yes
30629else
30630 _pkg_short_errors_supported=no
30631fi
30632 if test $_pkg_short_errors_supported = yes; then
cristy2542fc62011-12-06 17:50:25 +000030633 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030634 else
cristy2542fc62011-12-06 17:50:25 +000030635 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030636 fi
30637 # Put the nasty error message in config.log where it belongs
30638 echo "$PANGO_PKG_ERRORS" >&5
30639
30640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30641$as_echo "no" >&6; }
30642 have_pango=no
30643elif test $pkg_failed = untried; then
30644 have_pango=no
30645else
30646 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30647 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30649$as_echo "yes" >&6; }
30650 have_pango=yes
30651fi
30652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30653$as_echo "" >&6; }
cristy41cbe8a2011-10-27 01:35:18 +000030654fi
30655
30656if test "$have_pango" = 'yes'; then
30657
30658$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h
30659
cristyc6722092012-10-14 00:19:31 +000030660 if test "$build_modules" = 'no'; then
cristy41cbe8a2011-10-27 01:35:18 +000030661 CPPFLAGS="$PANGO_CFLAGS $CPPFLAGS"
30662 fi
30663fi
30664
cristya054b762012-03-26 23:16:00 +000030665if test "$have_pangocairo" = 'yes'; then
cristy41cbe8a2011-10-27 01:35:18 +000030666
cristya054b762012-03-26 23:16:00 +000030667$as_echo "#define PANGOCAIRO_DELEGATE 1" >>confdefs.h
cristy41cbe8a2011-10-27 01:35:18 +000030668
cristyc6722092012-10-14 00:19:31 +000030669 if test "$build_modules" = 'no'; then
cristya054b762012-03-26 23:16:00 +000030670 CPPFLAGS="$PANGOCAIRO_CFLAGS $CPPFLAGS"
cristy41cbe8a2011-10-27 01:35:18 +000030671 fi
30672fi
30673
30674 if test "$have_pango" = 'yes'; then
30675 PANGO_DELEGATE_TRUE=
30676 PANGO_DELEGATE_FALSE='#'
30677else
30678 PANGO_DELEGATE_TRUE='#'
30679 PANGO_DELEGATE_FALSE=
30680fi
30681
cristya054b762012-03-26 23:16:00 +000030682 if test "$have_pangocairo" = 'yes'; then
30683 PANGOCAIRO_DELEGATE_TRUE=
30684 PANGOCAIRO_DELEGATE_FALSE='#'
cristy41cbe8a2011-10-27 01:35:18 +000030685else
cristya054b762012-03-26 23:16:00 +000030686 PANGOCAIRO_DELEGATE_TRUE='#'
30687 PANGOCAIRO_DELEGATE_FALSE=
cristy41cbe8a2011-10-27 01:35:18 +000030688fi
30689
30690
30691
30692
30693
30694#
cristy3ed852e2009-09-05 21:47:34 +000030695# Check for PNG delegate library.
30696#
30697
30698# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000030699if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030700 withval=$with_png; with_png=$withval
30701else
30702 with_png='yes'
30703fi
30704
30705
30706if test "$with_png" != 'yes'; then
30707 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
30708fi
30709
cristy81beccd2011-10-03 18:17:24 +000030710have_png='no'
30711PNG_LIBS=''
30712
30713if test "$with_png" != 'no' -a "$have_zlib" != 'no' ; then
cristyad38abe2012-12-23 23:03:21 +000030714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30715$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5
30717$as_echo_n "checking for PNG support ... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30719$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030720 failed=0
30721 passed=0
30722 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
30723if test "x$ac_cv_header_png_h" = xyes; then :
30724 passed=`expr $passed + 1`
30725else
30726 failed=`expr $failed + 1`
cristy64877302011-08-23 19:10:31 +000030727fi
30728
cristy81beccd2011-10-03 18:17:24 +000030729
30730
30731 if test $passed -gt 0; then
glennrp3fc1c212013-01-10 01:52:32 +000030732 for var in 7 6 5 4 2 '' ; do
cristy0615f0e2011-10-12 11:36:46 +000030733 if test "$have_png" = 'no' ; then
30734 if test "x${var}" = 'x' ; then
cristy81beccd2011-10-03 18:17:24 +000030735 pnglib='png'
30736 else
30737 pnglib="png1${var}"
30738 fi
30739
30740# Test for compatible LIBPNG library
30741 failed=0
30742 passed=0
cristy0615f0e2011-10-12 11:36:46 +000030743 if test "$with_png" = 'yes' -o "$with_png" = "libpng1${var}" ; then
cristy81beccd2011-10-03 18:17:24 +000030744 if test "${pnglib}" != 'png' ; then
30745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5
30746$as_echo_n "checking for LIBPNG1${var} support ... " >&6; }
30747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30748/* end confdefs.h. */
30749#include <stdio.h>
30750#include <stdlib.h>
30751#include <png.h>
30752
30753int
30754main ()
30755{
30756
30757#if PNG_LIBPNG_VER_MINOR != ${var}
30758#error LIBPNG library must be version 1${var}!
30759Kaboom, Kaboom
30760#endif
30761return 0;
30762
30763 ;
30764 return 0;
30765}
30766_ACEOF
30767if ac_fn_c_try_compile "$LINENO"; then :
30768 ac_cv_libpng_ok='yes'
30769else
30770 ac_cv_libpng_ok='no'
30771fi
30772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30773 if test "$ac_cv_libpng_ok" = 'yes' ; then
30774 passed=`expr $passed + 1`
cristyad38abe2012-12-23 23:03:21 +000030775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30776$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030777 else
30778 failed=`expr $failed + 1`
cristyad38abe2012-12-23 23:03:21 +000030779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30780$as_echo "no" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030781 fi
30782 else
30783 passed=`expr $passed + 1`
cristyad38abe2012-12-23 23:03:21 +000030784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30785$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030786 fi
30787 fi
30788
30789 if test $passed -gt 0 -a $failed -le 0; then
cristy03f187e2013-01-24 00:22:19 +000030790 if test "1${var}" = '17' ; then
30791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng17" >&5
30792$as_echo_n "checking for png_get_io_ptr in -lpng17... " >&6; }
30793if ${ac_cv_lib_png17_png_get_io_ptr+:} false; then :
30794 $as_echo_n "(cached) " >&6
30795else
30796 ac_check_lib_save_LIBS=$LIBS
30797LIBS="-lpng17 $LIBS"
30798cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30799/* end confdefs.h. */
30800
30801/* Override any GCC internal prototype to avoid an error.
30802 Use char because int might match the return type of a GCC
30803 builtin and then its argument prototype would still apply. */
30804#ifdef __cplusplus
30805extern "C"
30806#endif
30807char png_get_io_ptr ();
30808int
30809main ()
30810{
30811return png_get_io_ptr ();
30812 ;
30813 return 0;
30814}
30815_ACEOF
30816if ac_fn_c_try_link "$LINENO"; then :
30817 ac_cv_lib_png17_png_get_io_ptr=yes
30818else
30819 ac_cv_lib_png17_png_get_io_ptr=no
30820fi
30821rm -f core conftest.err conftest.$ac_objext \
30822 conftest$ac_exeext conftest.$ac_ext
30823LIBS=$ac_check_lib_save_LIBS
30824fi
30825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png17_png_get_io_ptr" >&5
30826$as_echo "$ac_cv_lib_png17_png_get_io_ptr" >&6; }
30827if test "x$ac_cv_lib_png17_png_get_io_ptr" = xyes; then :
30828 passed=`expr $passed + 1`
30829else
30830 failed=`expr $failed + 1`
30831fi
30832
30833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng17" >&5
30834$as_echo_n "checking for png_longjmp in -lpng17... " >&6; }
30835if ${ac_cv_lib_png17_png_longjmp+:} false; then :
30836 $as_echo_n "(cached) " >&6
30837else
30838 ac_check_lib_save_LIBS=$LIBS
30839LIBS="-lpng17 $LIBS"
30840cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30841/* end confdefs.h. */
30842
30843/* Override any GCC internal prototype to avoid an error.
30844 Use char because int might match the return type of a GCC
30845 builtin and then its argument prototype would still apply. */
30846#ifdef __cplusplus
30847extern "C"
30848#endif
30849char png_longjmp ();
30850int
30851main ()
30852{
30853return png_longjmp ();
30854 ;
30855 return 0;
30856}
30857_ACEOF
30858if ac_fn_c_try_link "$LINENO"; then :
30859 ac_cv_lib_png17_png_longjmp=yes
30860else
30861 ac_cv_lib_png17_png_longjmp=no
30862fi
30863rm -f core conftest.err conftest.$ac_objext \
30864 conftest$ac_exeext conftest.$ac_ext
30865LIBS=$ac_check_lib_save_LIBS
30866fi
30867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png17_png_longjmp" >&5
30868$as_echo "$ac_cv_lib_png17_png_longjmp" >&6; }
30869if test "x$ac_cv_lib_png17_png_longjmp" = xyes; then :
30870 passed=`expr $passed + 1`
30871else
30872 failed=`expr $failed + 1`
30873fi
30874
30875 fi
30876 if test "1${var}" = '16' ; then
30877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng16" >&5
30878$as_echo_n "checking for png_get_io_ptr in -lpng16... " >&6; }
30879if ${ac_cv_lib_png16_png_get_io_ptr+:} false; then :
30880 $as_echo_n "(cached) " >&6
30881else
30882 ac_check_lib_save_LIBS=$LIBS
30883LIBS="-lpng16 $LIBS"
30884cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30885/* end confdefs.h. */
30886
30887/* Override any GCC internal prototype to avoid an error.
30888 Use char because int might match the return type of a GCC
30889 builtin and then its argument prototype would still apply. */
30890#ifdef __cplusplus
30891extern "C"
30892#endif
30893char png_get_io_ptr ();
30894int
30895main ()
30896{
30897return png_get_io_ptr ();
30898 ;
30899 return 0;
30900}
30901_ACEOF
30902if ac_fn_c_try_link "$LINENO"; then :
30903 ac_cv_lib_png16_png_get_io_ptr=yes
30904else
30905 ac_cv_lib_png16_png_get_io_ptr=no
30906fi
30907rm -f core conftest.err conftest.$ac_objext \
30908 conftest$ac_exeext conftest.$ac_ext
30909LIBS=$ac_check_lib_save_LIBS
30910fi
30911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png16_png_get_io_ptr" >&5
30912$as_echo "$ac_cv_lib_png16_png_get_io_ptr" >&6; }
30913if test "x$ac_cv_lib_png16_png_get_io_ptr" = xyes; then :
30914 passed=`expr $passed + 1`
30915else
30916 failed=`expr $failed + 1`
30917fi
30918
30919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng16" >&5
30920$as_echo_n "checking for png_longjmp in -lpng16... " >&6; }
30921if ${ac_cv_lib_png16_png_longjmp+:} false; then :
30922 $as_echo_n "(cached) " >&6
30923else
30924 ac_check_lib_save_LIBS=$LIBS
30925LIBS="-lpng16 $LIBS"
30926cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30927/* end confdefs.h. */
30928
30929/* Override any GCC internal prototype to avoid an error.
30930 Use char because int might match the return type of a GCC
30931 builtin and then its argument prototype would still apply. */
30932#ifdef __cplusplus
30933extern "C"
30934#endif
30935char png_longjmp ();
30936int
30937main ()
30938{
30939return png_longjmp ();
30940 ;
30941 return 0;
30942}
30943_ACEOF
30944if ac_fn_c_try_link "$LINENO"; then :
30945 ac_cv_lib_png16_png_longjmp=yes
30946else
30947 ac_cv_lib_png16_png_longjmp=no
30948fi
30949rm -f core conftest.err conftest.$ac_objext \
30950 conftest$ac_exeext conftest.$ac_ext
30951LIBS=$ac_check_lib_save_LIBS
30952fi
30953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png16_png_longjmp" >&5
30954$as_echo "$ac_cv_lib_png16_png_longjmp" >&6; }
30955if test "x$ac_cv_lib_png16_png_longjmp" = xyes; then :
30956 passed=`expr $passed + 1`
30957else
30958 failed=`expr $failed + 1`
30959fi
30960
30961 fi
cristy81beccd2011-10-03 18:17:24 +000030962 if test "1${var}" = '15' ; then
30963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5
30964$as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; }
30965if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then :
30966 $as_echo_n "(cached) " >&6
30967else
30968 ac_check_lib_save_LIBS=$LIBS
30969LIBS="-lpng15 $LIBS"
30970cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30971/* end confdefs.h. */
30972
30973/* Override any GCC internal prototype to avoid an error.
30974 Use char because int might match the return type of a GCC
30975 builtin and then its argument prototype would still apply. */
30976#ifdef __cplusplus
30977extern "C"
30978#endif
30979char png_get_io_ptr ();
30980int
30981main ()
30982{
30983return png_get_io_ptr ();
30984 ;
30985 return 0;
30986}
30987_ACEOF
30988if ac_fn_c_try_link "$LINENO"; then :
30989 ac_cv_lib_png15_png_get_io_ptr=yes
30990else
30991 ac_cv_lib_png15_png_get_io_ptr=no
30992fi
30993rm -f core conftest.err conftest.$ac_objext \
30994 conftest$ac_exeext conftest.$ac_ext
30995LIBS=$ac_check_lib_save_LIBS
30996fi
30997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5
30998$as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; }
30999if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then :
31000 passed=`expr $passed + 1`
31001else
31002 failed=`expr $failed + 1`
31003fi
31004
31005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5
31006$as_echo_n "checking for png_longjmp in -lpng15... " >&6; }
31007if ${ac_cv_lib_png15_png_longjmp+:} false; then :
31008 $as_echo_n "(cached) " >&6
31009else
31010 ac_check_lib_save_LIBS=$LIBS
31011LIBS="-lpng15 $LIBS"
31012cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31013/* end confdefs.h. */
31014
31015/* Override any GCC internal prototype to avoid an error.
31016 Use char because int might match the return type of a GCC
31017 builtin and then its argument prototype would still apply. */
31018#ifdef __cplusplus
31019extern "C"
31020#endif
31021char png_longjmp ();
31022int
31023main ()
31024{
31025return png_longjmp ();
31026 ;
31027 return 0;
31028}
31029_ACEOF
31030if ac_fn_c_try_link "$LINENO"; then :
31031 ac_cv_lib_png15_png_longjmp=yes
31032else
31033 ac_cv_lib_png15_png_longjmp=no
31034fi
31035rm -f core conftest.err conftest.$ac_objext \
31036 conftest$ac_exeext conftest.$ac_ext
31037LIBS=$ac_check_lib_save_LIBS
31038fi
31039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5
31040$as_echo "$ac_cv_lib_png15_png_longjmp" >&6; }
31041if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then :
31042 passed=`expr $passed + 1`
31043else
31044 failed=`expr $failed + 1`
31045fi
31046
31047 fi
31048 if test "1${var}" = '14' ; then
31049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5
31050$as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; }
31051if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then :
31052 $as_echo_n "(cached) " >&6
31053else
31054 ac_check_lib_save_LIBS=$LIBS
31055LIBS="-lpng14 $LIBS"
31056cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31057/* end confdefs.h. */
31058
31059/* Override any GCC internal prototype to avoid an error.
31060 Use char because int might match the return type of a GCC
31061 builtin and then its argument prototype would still apply. */
31062#ifdef __cplusplus
31063extern "C"
31064#endif
31065char png_get_io_ptr ();
31066int
31067main ()
31068{
31069return png_get_io_ptr ();
31070 ;
31071 return 0;
31072}
31073_ACEOF
31074if ac_fn_c_try_link "$LINENO"; then :
31075 ac_cv_lib_png14_png_get_io_ptr=yes
31076else
31077 ac_cv_lib_png14_png_get_io_ptr=no
31078fi
31079rm -f core conftest.err conftest.$ac_objext \
31080 conftest$ac_exeext conftest.$ac_ext
31081LIBS=$ac_check_lib_save_LIBS
31082fi
31083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5
31084$as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; }
31085if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then :
31086 passed=`expr $passed + 1`
31087else
31088 failed=`expr $failed + 1`
31089fi
31090
31091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5
31092$as_echo_n "checking for png_get_io_state in -lpng14... " >&6; }
31093if ${ac_cv_lib_png14_png_get_io_state+:} false; then :
31094 $as_echo_n "(cached) " >&6
31095else
31096 ac_check_lib_save_LIBS=$LIBS
31097LIBS="-lpng14 $LIBS"
31098cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31099/* end confdefs.h. */
31100
31101/* Override any GCC internal prototype to avoid an error.
31102 Use char because int might match the return type of a GCC
31103 builtin and then its argument prototype would still apply. */
31104#ifdef __cplusplus
31105extern "C"
31106#endif
31107char png_get_io_state ();
31108int
31109main ()
31110{
31111return png_get_io_state ();
31112 ;
31113 return 0;
31114}
31115_ACEOF
31116if ac_fn_c_try_link "$LINENO"; then :
31117 ac_cv_lib_png14_png_get_io_state=yes
31118else
31119 ac_cv_lib_png14_png_get_io_state=no
31120fi
31121rm -f core conftest.err conftest.$ac_objext \
31122 conftest$ac_exeext conftest.$ac_ext
31123LIBS=$ac_check_lib_save_LIBS
31124fi
31125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5
31126$as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; }
31127if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then :
31128 passed=`expr $passed + 1`
31129else
31130 failed=`expr $failed + 1`
31131fi
31132
31133 fi
31134 if test "1${var}" = '12' ; then
31135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5
31136$as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; }
31137if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then :
31138 $as_echo_n "(cached) " >&6
31139else
31140 ac_check_lib_save_LIBS=$LIBS
31141LIBS="-lpng12 $LIBS"
31142cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31143/* end confdefs.h. */
31144
31145/* Override any GCC internal prototype to avoid an error.
31146 Use char because int might match the return type of a GCC
31147 builtin and then its argument prototype would still apply. */
31148#ifdef __cplusplus
31149extern "C"
31150#endif
31151char png_get_io_ptr ();
31152int
31153main ()
31154{
31155return png_get_io_ptr ();
31156 ;
31157 return 0;
31158}
31159_ACEOF
31160if ac_fn_c_try_link "$LINENO"; then :
31161 ac_cv_lib_png12_png_get_io_ptr=yes
31162else
31163 ac_cv_lib_png12_png_get_io_ptr=no
31164fi
31165rm -f core conftest.err conftest.$ac_objext \
31166 conftest$ac_exeext conftest.$ac_ext
31167LIBS=$ac_check_lib_save_LIBS
31168fi
31169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5
31170$as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; }
31171if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then :
31172 passed=`expr $passed + 1`
31173else
31174 failed=`expr $failed + 1`
31175fi
31176
31177 fi
31178 if test "1${var}" = '1' ; then
31179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
31180$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
31181if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
31182 $as_echo_n "(cached) " >&6
31183else
31184 ac_check_lib_save_LIBS=$LIBS
31185LIBS="-lpng $LIBS"
31186cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31187/* end confdefs.h. */
31188
31189/* Override any GCC internal prototype to avoid an error.
31190 Use char because int might match the return type of a GCC
31191 builtin and then its argument prototype would still apply. */
31192#ifdef __cplusplus
31193extern "C"
31194#endif
31195char png_get_io_ptr ();
31196int
31197main ()
31198{
31199return png_get_io_ptr ();
31200 ;
31201 return 0;
31202}
31203_ACEOF
31204if ac_fn_c_try_link "$LINENO"; then :
31205 ac_cv_lib_png_png_get_io_ptr=yes
31206else
31207 ac_cv_lib_png_png_get_io_ptr=no
31208fi
31209rm -f core conftest.err conftest.$ac_objext \
31210 conftest$ac_exeext conftest.$ac_ext
31211LIBS=$ac_check_lib_save_LIBS
31212fi
31213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
31214$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
31215if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
31216 passed=`expr $passed + 1`
31217else
31218 failed=`expr $failed + 1`
31219fi
31220
31221 fi
31222 if test $passed -gt 0 -a $failed -le 0 ; then
31223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5
31224$as_echo_n "checking if ${pnglib} package is complete... " >&6; }
31225 if test $passed -gt 0 ; then
31226 if test $failed -gt 0 ; then
cristyad38abe2012-12-23 23:03:21 +000031227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31228$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031229 have_png='no (failed tests)'
31230 else
31231 PNG_LIBS="-l${pnglib}"
31232 LIBS="$PNG_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031233
cristy8b350f62009-11-15 23:12:43 +000031234$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031235
cristyad38abe2012-12-23 23:03:21 +000031236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31237$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031238 have_png='yes'
31239 fi
31240 fi
31241 fi
31242 fi
31243 fi
31244 done
31245 fi
cristy3ed852e2009-09-05 21:47:34 +000031246fi
cristy64877302011-08-23 19:10:31 +000031247
cristy73bd4a52010-10-05 11:24:23 +000031248 if test "$have_png" = 'yes'; then
31249 PNG_DELEGATE_TRUE=
31250 PNG_DELEGATE_FALSE='#'
31251else
31252 PNG_DELEGATE_TRUE='#'
31253 PNG_DELEGATE_FALSE=
31254fi
31255
cristy3ed852e2009-09-05 21:47:34 +000031256
cristy50d3f5c2011-09-10 20:09:06 +000031257
cristy3ed852e2009-09-05 21:47:34 +000031258
31259
31260#
31261# Check for RSVG delegate library.
31262#
31263
31264# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000031265if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031266 withval=$with_rsvg; with_rsvg=$withval
31267else
cristy1164d5f2012-08-15 00:58:25 +000031268 with_rsvg='no'
cristy3ed852e2009-09-05 21:47:34 +000031269fi
31270
31271
31272if test "$with_rsvg" != 'yes'; then
31273 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
31274fi
31275
31276have_rsvg='no'
31277have_cairo='no'
31278RSVG_CFLAGS=""
31279RSVG_LIBS=""
31280RSVG_PKG=""
31281if test "x$with_rsvg" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000031282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31283$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031284
31285pkg_failed=no
31286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
31287$as_echo_n "checking for RSVG... " >&6; }
31288
31289if test -n "$RSVG_CFLAGS"; then
31290 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
31291 elif test -n "$PKG_CONFIG"; then
31292 if test -n "$PKG_CONFIG" && \
31293 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31294 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31295 ac_status=$?
31296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31297 test $ac_status = 0; }; then
31298 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31299else
31300 pkg_failed=yes
31301fi
31302 else
31303 pkg_failed=untried
31304fi
31305if test -n "$RSVG_LIBS"; then
31306 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
31307 elif test -n "$PKG_CONFIG"; then
31308 if test -n "$PKG_CONFIG" && \
31309 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31310 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31311 ac_status=$?
31312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31313 test $ac_status = 0; }; then
31314 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31315else
31316 pkg_failed=yes
31317fi
31318 else
31319 pkg_failed=untried
31320fi
31321
31322
31323
31324if test $pkg_failed = yes; then
31325
31326if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31327 _pkg_short_errors_supported=yes
31328else
31329 _pkg_short_errors_supported=no
31330fi
31331 if test $_pkg_short_errors_supported = yes; then
31332 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31333 else
31334 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31335 fi
31336 # Put the nasty error message in config.log where it belongs
31337 echo "$RSVG_PKG_ERRORS" >&5
31338
31339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31340$as_echo "no" >&6; }
31341 have_rsvg=no
31342elif test $pkg_failed = untried; then
31343 have_rsvg=no
31344else
31345 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
31346 RSVG_LIBS=$pkg_cv_RSVG_LIBS
31347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31348$as_echo "yes" >&6; }
31349 have_rsvg=yes
31350fi
cristyad38abe2012-12-23 23:03:21 +000031351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31352$as_echo "" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031353
31354pkg_failed=no
31355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
31356$as_echo_n "checking for CAIRO_SVG... " >&6; }
31357
31358if test -n "$CAIRO_SVG_CFLAGS"; then
31359 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
31360 elif test -n "$PKG_CONFIG"; then
31361 if test -n "$PKG_CONFIG" && \
31362 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31363 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31364 ac_status=$?
31365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31366 test $ac_status = 0; }; then
31367 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
31368else
31369 pkg_failed=yes
31370fi
31371 else
31372 pkg_failed=untried
31373fi
31374if test -n "$CAIRO_SVG_LIBS"; then
31375 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
31376 elif test -n "$PKG_CONFIG"; then
31377 if test -n "$PKG_CONFIG" && \
31378 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31379 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31380 ac_status=$?
31381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31382 test $ac_status = 0; }; then
31383 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
31384else
31385 pkg_failed=yes
31386fi
31387 else
31388 pkg_failed=untried
31389fi
31390
31391
31392
31393if test $pkg_failed = yes; then
31394
31395if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31396 _pkg_short_errors_supported=yes
31397else
31398 _pkg_short_errors_supported=no
31399fi
31400 if test $_pkg_short_errors_supported = yes; then
31401 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
31402 else
31403 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
31404 fi
31405 # Put the nasty error message in config.log where it belongs
31406 echo "$CAIRO_SVG_PKG_ERRORS" >&5
31407
31408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31409$as_echo "no" >&6; }
31410 have_cairo=no
31411elif test $pkg_failed = untried; then
31412 have_cairo=no
31413else
31414 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
31415 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
31416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31417$as_echo "yes" >&6; }
31418 have_cairo=yes
31419fi
cristyad38abe2012-12-23 23:03:21 +000031420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31421$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031422fi
31423
31424if test "$have_rsvg" = 'yes'; then
31425
cristy8b350f62009-11-15 23:12:43 +000031426$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031427
cristyc6722092012-10-14 00:19:31 +000031428 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000031429 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
31430 fi
31431fi
31432
31433if test "$have_cairo" = 'yes'; then
31434
cristy8b350f62009-11-15 23:12:43 +000031435$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031436
cristyc6722092012-10-14 00:19:31 +000031437 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000031438 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
31439 fi
31440fi
31441
cristy73bd4a52010-10-05 11:24:23 +000031442 if test "$have_rsvg" = 'yes'; then
31443 RSVG_DELEGATE_TRUE=
31444 RSVG_DELEGATE_FALSE='#'
31445else
31446 RSVG_DELEGATE_TRUE='#'
31447 RSVG_DELEGATE_FALSE=
31448fi
31449
31450 if test "$have_cairo" = 'yes'; then
31451 CAIRO_DELEGATE_TRUE=
31452 CAIRO_DELEGATE_FALSE='#'
31453else
31454 CAIRO_DELEGATE_TRUE='#'
31455 CAIRO_DELEGATE_FALSE=
31456fi
31457
cristy3ed852e2009-09-05 21:47:34 +000031458
31459
31460
31461
31462#
31463# Check for TIFF delegate library.
31464#
31465
31466# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000031467if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031468 withval=$with_tiff; with_tiff=$withval
31469else
31470 with_tiff='yes'
31471fi
31472
31473
31474if test "$with_tiff" != 'yes'; then
31475 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
31476fi
31477
31478have_tiff='no'
31479TIFF_LIBS=''
31480if test "$with_tiff" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000031481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31482$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031484$as_echo_n "checking for TIFF... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000031485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31486$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031487 failed=0
31488 passed=0
cristy8b350f62009-11-15 23:12:43 +000031489 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031490if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031491 passed=`expr $passed + 1`
31492else
31493 failed=`expr $failed + 1`
31494fi
31495
31496
cristy8b350f62009-11-15 23:12:43 +000031497 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031498if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031499 passed=`expr $passed + 1`
31500else
31501 failed=`expr $failed + 1`
31502fi
31503
31504
cristy8b350f62009-11-15 23:12:43 +000031505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031506$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031507if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031508 $as_echo_n "(cached) " >&6
31509else
31510 ac_check_lib_save_LIBS=$LIBS
31511LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031512cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031513/* end confdefs.h. */
31514
31515/* Override any GCC internal prototype to avoid an error.
31516 Use char because int might match the return type of a GCC
31517 builtin and then its argument prototype would still apply. */
31518#ifdef __cplusplus
31519extern "C"
31520#endif
31521char TIFFOpen ();
31522int
31523main ()
31524{
31525return TIFFOpen ();
31526 ;
31527 return 0;
31528}
31529_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031530if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031531 ac_cv_lib_tiff_TIFFOpen=yes
31532else
cristy8b350f62009-11-15 23:12:43 +000031533 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031534fi
cristy8b350f62009-11-15 23:12:43 +000031535rm -f core conftest.err conftest.$ac_objext \
31536 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031537LIBS=$ac_check_lib_save_LIBS
31538fi
cristy8b350f62009-11-15 23:12:43 +000031539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031540$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031541if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031542 passed=`expr $passed + 1`
31543else
31544 failed=`expr $failed + 1`
31545fi
31546
cristy8b350f62009-11-15 23:12:43 +000031547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031548$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031549if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031550 $as_echo_n "(cached) " >&6
31551else
31552 ac_check_lib_save_LIBS=$LIBS
31553LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031554cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031555/* end confdefs.h. */
31556
31557/* Override any GCC internal prototype to avoid an error.
31558 Use char because int might match the return type of a GCC
31559 builtin and then its argument prototype would still apply. */
31560#ifdef __cplusplus
31561extern "C"
31562#endif
31563char TIFFClientOpen ();
31564int
31565main ()
31566{
31567return TIFFClientOpen ();
31568 ;
31569 return 0;
31570}
31571_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031572if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031573 ac_cv_lib_tiff_TIFFClientOpen=yes
31574else
cristy8b350f62009-11-15 23:12:43 +000031575 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031576fi
cristy8b350f62009-11-15 23:12:43 +000031577rm -f core conftest.err conftest.$ac_objext \
31578 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031579LIBS=$ac_check_lib_save_LIBS
31580fi
cristy8b350f62009-11-15 23:12:43 +000031581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031582$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031583if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031584 passed=`expr $passed + 1`
31585else
31586 failed=`expr $failed + 1`
31587fi
31588
cristy8b350f62009-11-15 23:12:43 +000031589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031590$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031591if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031592 $as_echo_n "(cached) " >&6
31593else
31594 ac_check_lib_save_LIBS=$LIBS
31595LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031596cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031597/* end confdefs.h. */
31598
31599/* Override any GCC internal prototype to avoid an error.
31600 Use char because int might match the return type of a GCC
31601 builtin and then its argument prototype would still apply. */
31602#ifdef __cplusplus
31603extern "C"
31604#endif
31605char TIFFIsByteSwapped ();
31606int
31607main ()
31608{
31609return TIFFIsByteSwapped ();
31610 ;
31611 return 0;
31612}
31613_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031614if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031615 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
31616else
cristy8b350f62009-11-15 23:12:43 +000031617 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000031618fi
cristy8b350f62009-11-15 23:12:43 +000031619rm -f core conftest.err conftest.$ac_objext \
31620 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031621LIBS=$ac_check_lib_save_LIBS
31622fi
cristy8b350f62009-11-15 23:12:43 +000031623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000031624$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000031625if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031626 passed=`expr $passed + 1`
31627else
31628 failed=`expr $failed + 1`
31629fi
31630
cristy8b350f62009-11-15 23:12:43 +000031631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031632$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031633if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031634 $as_echo_n "(cached) " >&6
31635else
31636 ac_check_lib_save_LIBS=$LIBS
31637LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031638cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031639/* end confdefs.h. */
31640
31641/* Override any GCC internal prototype to avoid an error.
31642 Use char because int might match the return type of a GCC
31643 builtin and then its argument prototype would still apply. */
31644#ifdef __cplusplus
31645extern "C"
31646#endif
31647char TIFFReadRGBATile ();
31648int
31649main ()
31650{
31651return TIFFReadRGBATile ();
31652 ;
31653 return 0;
31654}
31655_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031656if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031657 ac_cv_lib_tiff_TIFFReadRGBATile=yes
31658else
cristy8b350f62009-11-15 23:12:43 +000031659 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000031660fi
cristy8b350f62009-11-15 23:12:43 +000031661rm -f core conftest.err conftest.$ac_objext \
31662 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031663LIBS=$ac_check_lib_save_LIBS
31664fi
cristy8b350f62009-11-15 23:12:43 +000031665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000031666$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000031667if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031668 passed=`expr $passed + 1`
31669else
31670 failed=`expr $failed + 1`
31671fi
31672
cristy8b350f62009-11-15 23:12:43 +000031673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031674$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031675if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031676 $as_echo_n "(cached) " >&6
31677else
31678 ac_check_lib_save_LIBS=$LIBS
31679LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031680cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031681/* end confdefs.h. */
31682
31683/* Override any GCC internal prototype to avoid an error.
31684 Use char because int might match the return type of a GCC
31685 builtin and then its argument prototype would still apply. */
31686#ifdef __cplusplus
31687extern "C"
31688#endif
31689char TIFFReadRGBAStrip ();
31690int
31691main ()
31692{
31693return TIFFReadRGBAStrip ();
31694 ;
31695 return 0;
31696}
31697_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031698if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031699 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
31700else
cristy8b350f62009-11-15 23:12:43 +000031701 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000031702fi
cristy8b350f62009-11-15 23:12:43 +000031703rm -f core conftest.err conftest.$ac_objext \
31704 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031705LIBS=$ac_check_lib_save_LIBS
31706fi
cristy8b350f62009-11-15 23:12:43 +000031707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000031708$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000031709if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031710 passed=`expr $passed + 1`
31711else
31712 failed=`expr $failed + 1`
31713fi
31714
cristy8b350f62009-11-15 23:12:43 +000031715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000031716$as_echo_n "checking if TIFF package is complete... " >&6; }
31717 if test $passed -gt 0; then
31718 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000031719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31720$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031721 have_tiff='no (failed tests)'
31722 else
31723 TIFF_LIBS='-ltiff'
31724 LIBS="$TIFF_LIBS $LIBS"
31725
cristy8b350f62009-11-15 23:12:43 +000031726$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031727
cristyad38abe2012-12-23 23:03:21 +000031728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31729$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031730 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000031731 for ac_header in tiffconf.h
31732do :
31733 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031734if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031735 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031736#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000031737_ACEOF
31738
31739fi
31740
31741done
31742
cristy8b350f62009-11-15 23:12:43 +000031743 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3f590e52011-11-14 14:29:44 +000031744 TIFFIsBigEndian TIFFReadEXIFDirectory TIFFSetErrorHandlerExt \
31745 TIFFSetTagExtender TIFFSetWarningHandlerExt \
31746 TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000031747do :
31748 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31749ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000031750if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000031751 cat >>confdefs.h <<_ACEOF
31752#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31753_ACEOF
31754
31755fi
31756done
31757
31758 fi
31759 else
cristyad38abe2012-12-23 23:03:21 +000031760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31761$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031762 fi
31763fi
cristy73bd4a52010-10-05 11:24:23 +000031764 if test "$have_tiff" = 'yes'; then
31765 TIFF_DELEGATE_TRUE=
31766 TIFF_DELEGATE_FALSE='#'
31767else
31768 TIFF_DELEGATE_TRUE='#'
31769 TIFF_DELEGATE_FALSE=
31770fi
31771
cristy3ed852e2009-09-05 21:47:34 +000031772
31773
31774
31775#
cristyb1860752011-03-14 00:27:46 +000031776# Check for WEBP delegate library.
31777#
31778
31779# Check whether --with-webp was given.
31780if test "${with_webp+set}" = set; then :
31781 withval=$with_webp; with_webp=$withval
31782else
31783 with_webp='yes'
31784fi
31785
31786
31787if test "$with_webp" != 'yes'; then
31788 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
31789fi
31790
31791have_webp='no'
31792WEBP_LIBS=''
31793if test "$with_webp" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000031794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31795$as_echo "-------------------------------------------------------------" >&6; }
cristyb1860752011-03-14 00:27:46 +000031796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
31797$as_echo_n "checking for WEBP... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000031798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31799$as_echo "" >&6; }
cristyb1860752011-03-14 00:27:46 +000031800 failed=0
31801 passed=0
31802 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
31803if test "x$ac_cv_header_webp_decode_h" = xyes; then :
31804 passed=`expr $passed + 1`
31805else
31806 failed=`expr $failed + 1`
31807fi
31808
31809
cristy90e86e02013-02-26 21:28:05 +000031810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPPictureInit in -lwebp" >&5
31811$as_echo_n "checking for WebPPictureInit in -lwebp... " >&6; }
31812if ${ac_cv_lib_webp_WebPPictureInit+:} false; then :
cristyb1860752011-03-14 00:27:46 +000031813 $as_echo_n "(cached) " >&6
31814else
31815 ac_check_lib_save_LIBS=$LIBS
31816LIBS="-lwebp $LIBS"
31817cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31818/* end confdefs.h. */
31819
31820/* Override any GCC internal prototype to avoid an error.
31821 Use char because int might match the return type of a GCC
31822 builtin and then its argument prototype would still apply. */
31823#ifdef __cplusplus
31824extern "C"
31825#endif
cristy90e86e02013-02-26 21:28:05 +000031826char WebPPictureInit ();
cristyb1860752011-03-14 00:27:46 +000031827int
31828main ()
31829{
cristy90e86e02013-02-26 21:28:05 +000031830return WebPPictureInit ();
cristyb1860752011-03-14 00:27:46 +000031831 ;
31832 return 0;
31833}
31834_ACEOF
31835if ac_fn_c_try_link "$LINENO"; then :
cristy90e86e02013-02-26 21:28:05 +000031836 ac_cv_lib_webp_WebPPictureInit=yes
cristyb1860752011-03-14 00:27:46 +000031837else
cristy90e86e02013-02-26 21:28:05 +000031838 ac_cv_lib_webp_WebPPictureInit=no
cristyb1860752011-03-14 00:27:46 +000031839fi
31840rm -f core conftest.err conftest.$ac_objext \
31841 conftest$ac_exeext conftest.$ac_ext
31842LIBS=$ac_check_lib_save_LIBS
31843fi
cristy90e86e02013-02-26 21:28:05 +000031844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPPictureInit" >&5
31845$as_echo "$ac_cv_lib_webp_WebPPictureInit" >&6; }
31846if test "x$ac_cv_lib_webp_WebPPictureInit" = xyes; then :
cristyb1860752011-03-14 00:27:46 +000031847 passed=`expr $passed + 1`
31848else
31849 failed=`expr $failed + 1`
31850fi
31851
31852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
31853$as_echo_n "checking if WEBP package is complete... " >&6; }
31854 if test $passed -gt 0; then
31855 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000031856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31857$as_echo "no -- some components failed test" >&6; }
cristyb1860752011-03-14 00:27:46 +000031858 have_webp='no (failed tests)'
31859 else
31860 WEBP_LIBS='-lwebp'
31861 LIBS="$WEBP_LIBS $LIBS"
31862
31863$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
31864
cristyad38abe2012-12-23 23:03:21 +000031865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31866$as_echo "yes" >&6; }
cristyb1860752011-03-14 00:27:46 +000031867 have_webp='yes'
31868 fi
31869 else
cristyad38abe2012-12-23 23:03:21 +000031870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31871$as_echo "no" >&6; }
cristyb1860752011-03-14 00:27:46 +000031872 fi
31873fi
31874 if test "$have_webp" = 'yes'; then
31875 WEBP_DELEGATE_TRUE=
31876 WEBP_DELEGATE_FALSE='#'
31877else
31878 WEBP_DELEGATE_TRUE='#'
31879 WEBP_DELEGATE_FALSE=
31880fi
31881
31882
31883
31884
31885#
cristy3ed852e2009-09-05 21:47:34 +000031886# Set Windows font directory.
31887#
31888
31889# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000031890if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031891 withval=$with_windows_font_dir; with_windows_font_dir=$withval
31892else
31893 with_windows_font_dir=''
31894fi
31895
31896if test "$with_windows_font_dir" != '' ; then
31897 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
31898fi
31899
31900
31901#
31902# Check for WMF delegate library.
31903#
31904
31905# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000031906if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031907 withval=$with_wmf; with_wmf=$withval
31908else
cristyfc3d0222012-02-07 15:05:57 +000031909 with_wmf='no'
cristy3ed852e2009-09-05 21:47:34 +000031910fi
31911
31912
31913if test "$with_wmf" != 'yes'; then
31914 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
31915fi
31916
31917have_wmf='no'
31918WMF_LIBS=''
cristy03f7cf92011-12-15 01:40:41 +000031919WMF_LIBS_DEPS=''
31920OLIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031921if test "$with_wmf" != 'no'; then
cristy03f7cf92011-12-15 01:40:41 +000031922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31923$as_echo "-------------------------------------------------------------" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000031924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031925$as_echo_n "checking for WMF... " >&6; }
cristy03f7cf92011-12-15 01:40:41 +000031926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31927$as_echo "" >&6; }
31928 have_libwmf='no'
31929 have_libwmflite='no'
31930 have_libwmf_ipa_h='no'
31931
31932 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
31933"
31934if test "x$ac_cv_header_libwmf_ipa_h" = xyes; then :
31935 have_libwmf_ipa_h='yes'
cristy3ed852e2009-09-05 21:47:34 +000031936fi
31937
31938
cristy03f7cf92011-12-15 01:40:41 +000031939 if test "$have_libwmf_ipa_h" = 'yes'; then
31940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
31941$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
31942if ${ac_cv_lib_wmflite_wmf_lite_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031943 $as_echo_n "(cached) " >&6
31944else
31945 ac_check_lib_save_LIBS=$LIBS
cristy03f7cf92011-12-15 01:40:41 +000031946LIBS="-lwmflite $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031947cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031948/* end confdefs.h. */
31949
31950/* Override any GCC internal prototype to avoid an error.
31951 Use char because int might match the return type of a GCC
31952 builtin and then its argument prototype would still apply. */
31953#ifdef __cplusplus
31954extern "C"
31955#endif
cristy03f7cf92011-12-15 01:40:41 +000031956char wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000031957int
31958main ()
31959{
cristy03f7cf92011-12-15 01:40:41 +000031960return wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000031961 ;
31962 return 0;
31963}
31964_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031965if ac_fn_c_try_link "$LINENO"; then :
cristy03f7cf92011-12-15 01:40:41 +000031966 ac_cv_lib_wmflite_wmf_lite_create=yes
cristy3ed852e2009-09-05 21:47:34 +000031967else
cristy03f7cf92011-12-15 01:40:41 +000031968 ac_cv_lib_wmflite_wmf_lite_create=no
cristy3ed852e2009-09-05 21:47:34 +000031969fi
cristy8b350f62009-11-15 23:12:43 +000031970rm -f core conftest.err conftest.$ac_objext \
31971 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031972LIBS=$ac_check_lib_save_LIBS
31973fi
cristy03f7cf92011-12-15 01:40:41 +000031974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
31975$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
31976if test "x$ac_cv_lib_wmflite_wmf_lite_create" = xyes; then :
31977 have_libwmflite='yes'
cristy9243a2d2011-08-22 17:32:32 +000031978fi
31979
cristy03f7cf92011-12-15 01:40:41 +000031980 if test "$have_libwmflite" = 'yes'; then
31981
31982$as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h
31983
31984 WMF_LIBS='-lwmflite'
glennrp33e524b2011-08-24 17:41:57 +000031985 LIBS="$WMF_LIBS $LIBS"
cristy03f7cf92011-12-15 01:40:41 +000031986 have_wmf='yes'
31987 else
31988 WMF_LIBS_DEPS=''
31989 WMF_CONFIG_LIBS=`libwmf-config --libs`
31990 for lib in xml2 expat freetype jpeg png z; do
31991 testlib="-l${lib}"
31992 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
31993 done
31994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5
31995$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
31996if ${ac_cv_lib_wmf_wmf_api_create+:} false; then :
31997 $as_echo_n "(cached) " >&6
31998else
31999 ac_check_lib_save_LIBS=$LIBS
32000LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
32001cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32002/* end confdefs.h. */
32003
32004/* Override any GCC internal prototype to avoid an error.
32005 Use char because int might match the return type of a GCC
32006 builtin and then its argument prototype would still apply. */
32007#ifdef __cplusplus
32008extern "C"
32009#endif
32010char wmf_api_create ();
32011int
32012main ()
32013{
32014return wmf_api_create ();
32015 ;
32016 return 0;
32017}
32018_ACEOF
32019if ac_fn_c_try_link "$LINENO"; then :
32020 ac_cv_lib_wmf_wmf_api_create=yes
32021else
32022 ac_cv_lib_wmf_wmf_api_create=no
32023fi
32024rm -f core conftest.err conftest.$ac_objext \
32025 conftest$ac_exeext conftest.$ac_ext
32026LIBS=$ac_check_lib_save_LIBS
32027fi
32028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5
32029$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
32030if test "x$ac_cv_lib_wmf_wmf_api_create" = xyes; then :
32031 have_libwmf='yes'
32032fi
32033
32034 if test "$have_libwmf" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032035
cristy8b350f62009-11-15 23:12:43 +000032036$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032037
cristy03f7cf92011-12-15 01:40:41 +000032038 WMF_LIBS='-lwmf'
32039 LIBS="$WMF_LIBS $LIBS"
32040 have_wmf='yes'
32041 else
32042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32043$as_echo "no -- some components failed test" >&6; }
32044 have_wmf='no (failed tests)'
32045 have_wmflite='no (failed tests)'
32046 LIBS="$OLIBS"
32047 WMF_LIBS=''
32048 fi
glennrp33e524b2011-08-24 17:41:57 +000032049 fi
cristy03f7cf92011-12-15 01:40:41 +000032050 fi
32051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
32052$as_echo_n "checking if WMF package is complete... " >&6; }
32053 if test "$have_wmf" = 'yes'; then
32054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32055$as_echo "yes" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032056 else
cristy03f7cf92011-12-15 01:40:41 +000032057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32058$as_echo "no" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032059 fi
cristy3ed852e2009-09-05 21:47:34 +000032060fi
cristy73bd4a52010-10-05 11:24:23 +000032061 if test "$have_wmf" = 'yes'; then
32062 WMF_DELEGATE_TRUE=
32063 WMF_DELEGATE_FALSE='#'
32064else
32065 WMF_DELEGATE_TRUE='#'
32066 WMF_DELEGATE_FALSE=
32067fi
32068
cristy3ed852e2009-09-05 21:47:34 +000032069
32070
32071
cristy81beccd2011-10-03 18:17:24 +000032072
32073
cristy3ed852e2009-09-05 21:47:34 +000032074#
32075# Check for XML delegate library.
32076#
32077
32078# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000032079if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032080 withval=$with_xml; with_xml=$withval
32081else
cristyfc3d0222012-02-07 15:05:57 +000032082 with_xml='yes'
cristy3ed852e2009-09-05 21:47:34 +000032083fi
32084
32085
cristy81beccd2011-10-03 18:17:24 +000032086if test "$with_xml" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000032087 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
32088fi
32089
cristy81beccd2011-10-03 18:17:24 +000032090have_xml='no'
32091XML_LIBS=''
32092if test "$with_xml" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000032093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32094$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
32096$as_echo_n "checking for XML... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32098$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032099 PERSIST_LDFLAGS=$LDFLAGS
32100 PERSIST_CPPFLAGS=$CPPFLAGS
32101 xml2_config=''
32102 # Extract the first word of "xml2-config", so it can be a program name with args.
32103set dummy xml2-config; ac_word=$2
32104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32105$as_echo_n "checking for $ac_word... " >&6; }
32106if ${ac_cv_path_xml2_config+:} false; then :
32107 $as_echo_n "(cached) " >&6
32108else
32109 case $xml2_config in
32110 [\\/]* | ?:[\\/]*)
32111 ac_cv_path_xml2_config="$xml2_config" # Let the user override the test with a path.
32112 ;;
32113 *)
32114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32115for as_dir in $PATH
32116do
32117 IFS=$as_save_IFS
32118 test -z "$as_dir" && as_dir=.
32119 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy81beccd2011-10-03 18:17:24 +000032121 ac_cv_path_xml2_config="$as_dir/$ac_word$ac_exec_ext"
32122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32123 break 2
32124 fi
32125done
32126 done
32127IFS=$as_save_IFS
32128
32129 ;;
32130esac
32131fi
32132xml2_config=$ac_cv_path_xml2_config
32133if test -n "$xml2_config"; then
32134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
32135$as_echo "$xml2_config" >&6; }
32136else
32137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32138$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032139fi
32140
cristy81beccd2011-10-03 18:17:24 +000032141 if test -n "$xml2_config"; then
32142 # Debian installs libxml headers under /usr/include/libxml2/libxml with
32143 # the shared library installed under /usr/lib, whereas the package
32144 # installs itself under $prefix/libxml and $prefix/lib.
32145 xml2_prefix=`xml2-config --prefix`
32146 if test -d "${xml2_prefix}/include/libxml2"; then
32147 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
32148 fi
32149 if test "${xml2_prefix}" != '/usr'; then
32150 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
32151 fi
32152 fi
32153 failed=0
32154 passed=0
32155 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
32156if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
32157 passed=`expr $passed + 1`
32158else
32159 failed=`expr $failed + 1`
32160fi
32161
32162
32163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSAXVersion in -lxml2" >&5
32164$as_echo_n "checking for xmlSAXVersion in -lxml2... " >&6; }
32165if ${ac_cv_lib_xml2_xmlSAXVersion+:} false; then :
32166 $as_echo_n "(cached) " >&6
32167else
32168 ac_check_lib_save_LIBS=$LIBS
32169LIBS="-lxml2 $LIBS"
32170cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32171/* end confdefs.h. */
32172
32173/* Override any GCC internal prototype to avoid an error.
32174 Use char because int might match the return type of a GCC
32175 builtin and then its argument prototype would still apply. */
32176#ifdef __cplusplus
32177extern "C"
32178#endif
32179char xmlSAXVersion ();
32180int
32181main ()
32182{
32183return xmlSAXVersion ();
32184 ;
32185 return 0;
32186}
32187_ACEOF
32188if ac_fn_c_try_link "$LINENO"; then :
32189 ac_cv_lib_xml2_xmlSAXVersion=yes
32190else
32191 ac_cv_lib_xml2_xmlSAXVersion=no
32192fi
32193rm -f core conftest.err conftest.$ac_objext \
32194 conftest$ac_exeext conftest.$ac_ext
32195LIBS=$ac_check_lib_save_LIBS
32196fi
32197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSAXVersion" >&5
32198$as_echo "$ac_cv_lib_xml2_xmlSAXVersion" >&6; }
32199if test "x$ac_cv_lib_xml2_xmlSAXVersion" = xyes; then :
32200 passed=`expr $passed + 1`
32201else
32202 failed=`expr $failed + 1`
32203fi
32204
32205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseChunk in -lxml2" >&5
32206$as_echo_n "checking for xmlParseChunk in -lxml2... " >&6; }
32207if ${ac_cv_lib_xml2_xmlParseChunk+:} false; then :
32208 $as_echo_n "(cached) " >&6
32209else
32210 ac_check_lib_save_LIBS=$LIBS
32211LIBS="-lxml2 $LIBS"
32212cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32213/* end confdefs.h. */
32214
32215/* Override any GCC internal prototype to avoid an error.
32216 Use char because int might match the return type of a GCC
32217 builtin and then its argument prototype would still apply. */
32218#ifdef __cplusplus
32219extern "C"
32220#endif
32221char xmlParseChunk ();
32222int
32223main ()
32224{
32225return xmlParseChunk ();
32226 ;
32227 return 0;
32228}
32229_ACEOF
32230if ac_fn_c_try_link "$LINENO"; then :
32231 ac_cv_lib_xml2_xmlParseChunk=yes
32232else
32233 ac_cv_lib_xml2_xmlParseChunk=no
32234fi
32235rm -f core conftest.err conftest.$ac_objext \
32236 conftest$ac_exeext conftest.$ac_ext
32237LIBS=$ac_check_lib_save_LIBS
32238fi
32239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseChunk" >&5
32240$as_echo "$ac_cv_lib_xml2_xmlParseChunk" >&6; }
32241if test "x$ac_cv_lib_xml2_xmlParseChunk" = xyes; then :
32242 passed=`expr $passed + 1`
32243else
32244 failed=`expr $failed + 1`
32245fi
32246
32247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlCreatePushParserCtxt in -lxml2" >&5
32248$as_echo_n "checking for xmlCreatePushParserCtxt in -lxml2... " >&6; }
32249if ${ac_cv_lib_xml2_xmlCreatePushParserCtxt+:} false; then :
32250 $as_echo_n "(cached) " >&6
32251else
32252 ac_check_lib_save_LIBS=$LIBS
32253LIBS="-lxml2 $LIBS"
32254cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32255/* end confdefs.h. */
32256
32257/* Override any GCC internal prototype to avoid an error.
32258 Use char because int might match the return type of a GCC
32259 builtin and then its argument prototype would still apply. */
32260#ifdef __cplusplus
32261extern "C"
32262#endif
32263char xmlCreatePushParserCtxt ();
32264int
32265main ()
32266{
32267return xmlCreatePushParserCtxt ();
32268 ;
32269 return 0;
32270}
32271_ACEOF
32272if ac_fn_c_try_link "$LINENO"; then :
32273 ac_cv_lib_xml2_xmlCreatePushParserCtxt=yes
32274else
32275 ac_cv_lib_xml2_xmlCreatePushParserCtxt=no
32276fi
32277rm -f core conftest.err conftest.$ac_objext \
32278 conftest$ac_exeext conftest.$ac_ext
32279LIBS=$ac_check_lib_save_LIBS
32280fi
32281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&5
32282$as_echo "$ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&6; }
32283if test "x$ac_cv_lib_xml2_xmlCreatePushParserCtxt" = xyes; then :
32284 passed=`expr $passed + 1`
32285else
32286 failed=`expr $failed + 1`
32287fi
32288
32289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
32290$as_echo_n "checking if XML package is complete... " >&6; }
32291 if test $passed -gt 0; then
32292 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000032293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32294$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032295 have_xml='no (failed tests)'
32296 LDFLAGS="$PERSIST_LDFLAGS"
32297 CPPFLAGS="$PERSIST_CPPFLAGS"
32298 else
32299 XML_LIBS='-lxml2'
32300 LIBS="$XML_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032301
cristy8b350f62009-11-15 23:12:43 +000032302$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032303
cristyad38abe2012-12-23 23:03:21 +000032304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32305$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032306 have_xml='yes'
32307 fi
32308 else
cristyad38abe2012-12-23 23:03:21 +000032309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32310$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032311 fi
32312fi
cristy73bd4a52010-10-05 11:24:23 +000032313 if test "$have_xml" = 'yes'; then
32314 XML_DELEGATE_TRUE=
32315 XML_DELEGATE_FALSE='#'
32316else
32317 XML_DELEGATE_TRUE='#'
32318 XML_DELEGATE_FALSE=
32319fi
32320
cristy3ed852e2009-09-05 21:47:34 +000032321
32322
32323
32324# Substitute compiler name to build/link PerlMagick
32325#
32326
32327
32328#
32329# Configure install Paths
32330#
cristy7def36a2011-10-28 19:04:41 +000032331
cristy2a11bef2011-10-28 18:33:11 +000032332# Path to ImageMagick header files
cristybdabdd62013-03-04 17:43:36 +000032333INCLUDE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristye52f12f2012-12-31 15:32:36 +000032334INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}"
32335DEFINE_INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}/"
cristy2a11bef2011-10-28 18:33:11 +000032336case "${build_os}" in
32337 mingw* )
32338 DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1`
32339 ;;
32340esac
32341
32342cat >>confdefs.h <<_ACEOF
32343#define INCLUDE_PATH "$DEFINE_INCLUDE_PATH"
32344_ACEOF
32345
32346
cristy3ed852e2009-09-05 21:47:34 +000032347
cristye52f12f2012-12-31 15:32:36 +000032348# Path to ImageMagick header files (arch part)
32349INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}"
32350DEFINE_INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/"
32351case "${build_os}" in
32352 mingw* )
32353 DEFINE_INCLUDEARCH_PATH=`$WinPathScript "$DEFINE_INCLUDEARCH_PATH" 1`
32354 ;;
32355esac
32356
32357cat >>confdefs.h <<_ACEOF
32358#define INCLUDEARCH_PATH "$DEFINE_INCLUDE_PATH"
32359_ACEOF
32360
32361
32362
cristy3ed852e2009-09-05 21:47:34 +000032363# Subdirectory under lib to place ImageMagick lib files
32364LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
32365
32366cat >>confdefs.h <<_ACEOF
32367#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
32368_ACEOF
32369
32370
32371# Path to ImageMagick bin directory
32372EXECUTABLE_PATH="${BIN_DIR}"
32373DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
32374case "${build_os}" in
32375 mingw* )
32376 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
32377 ;;
32378esac
32379
32380cat >>confdefs.h <<_ACEOF
32381#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
32382_ACEOF
32383
32384
32385
32386# Path to ImageMagick lib
32387LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
32388DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
32389case "${build_os}" in
32390 mingw* )
32391 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
32392 ;;
32393esac
32394
32395cat >>confdefs.h <<_ACEOF
32396#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
32397_ACEOF
32398
32399
32400
cristy3ed852e2009-09-05 21:47:34 +000032401#
cristy01ff9f32012-12-01 18:15:29 +000032402# path to modules lib
32403if test "x$MODULES_BASEDIRNAME" = "x"; then
32404 MODULES_BASEDIRNAME="modules"
32405fi
cristy3ed852e2009-09-05 21:47:34 +000032406
32407cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032408#define MODULES_BASEDIRNAME "$MODULES_BASEDIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032409_ACEOF
32410
cristy01ff9f32012-12-01 18:15:29 +000032411
32412
32413if test "x$MODULES_DIRNAME" = "x"; then
cristy4bdbd342012-12-03 18:41:18 +000032414 MODULES_DIRNAME=${MODULES_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32415else
cristy3ed852e2009-09-05 21:47:34 +000032416
32417cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032418#define MODULES_DIRNAME "$MODULES_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032419_ACEOF
32420
cristycf4a3c22012-12-02 21:47:25 +000032421fi
cristy01ff9f32012-12-01 18:15:29 +000032422
32423
cristy371d4812012-12-01 19:48:10 +000032424MODULES_RELATIVE_PATH="${MODULES_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032425
32426MODULES_PATH="${LIBRARY_PATH}/${MODULES_RELATIVE_PATH}"
32427
32428
32429#
32430# path to coders lib
32431if test "x$CODER_DIRNAME" = "x"; then
32432 CODER_DIRNAME="coders"
32433fi
32434
32435cat >>confdefs.h <<_ACEOF
32436#define CODER_DIRNAME "$CODER_DIRNAME"
32437_ACEOF
32438
32439
32440
cristy371d4812012-12-01 19:48:10 +000032441CODER_RELATIVE_PATH="${CODER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032442CODER_PATH="${MODULES_PATH}/${CODER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000032443
32444
32445#
32446# Subdirectory under lib to place ImageMagick filter module files
cristy01ff9f32012-12-01 18:15:29 +000032447#
32448# path to coders lib
32449if test "x$FILTER_DIRNAME" = "x"; then
32450 FILTER_DIRNAME="filters"
32451fi
cristy3ed852e2009-09-05 21:47:34 +000032452
32453cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032454#define FILTER_DIRNAME "$FILTER_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032455_ACEOF
32456
cristy3ed852e2009-09-05 21:47:34 +000032457
cristy3ed852e2009-09-05 21:47:34 +000032458
cristy371d4812012-12-01 19:48:10 +000032459FILTER_RELATIVE_PATH="${FILTER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032460FILTER_PATH="${MODULES_PATH}/${FILTER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000032461
32462
32463#
32464# Path to ImageMagick documentation files
cristybdabdd62013-03-04 17:43:36 +000032465DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristyd55889c2011-03-27 00:50:24 +000032466DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
32467DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032468case "${build_os}" in
32469 mingw* )
32470 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
32471 ;;
32472esac
32473
32474cat >>confdefs.h <<_ACEOF
32475#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
32476_ACEOF
32477
32478
32479
cristy2a11bef2011-10-28 18:33:11 +000032480# Subdirectory to place architecture-dependent configuration files
cristybdabdd62013-03-04 17:43:36 +000032481CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristy45dbd322011-03-27 16:40:38 +000032482
32483cat >>confdefs.h <<_ACEOF
32484#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
32485_ACEOF
32486
cristy7def36a2011-10-28 19:04:41 +000032487CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
cristy45dbd322011-03-27 16:40:38 +000032488DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
32489case "${build_os}" in
32490 mingw* )
32491 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
32492 ;;
32493esac
32494
32495cat >>confdefs.h <<_ACEOF
32496#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
32497_ACEOF
32498
32499
32500
cristy2a11bef2011-10-28 18:33:11 +000032501# Subdirectory to place architecture-independent configuration files
cristybdabdd62013-03-04 17:43:36 +000032502SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristy3ed852e2009-09-05 21:47:34 +000032503
32504cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032505#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032506_ACEOF
32507
cristy670aa3c2011-11-03 00:54:00 +000032508SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
cristy4f820712011-04-01 12:35:43 +000032509DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032510case "${build_os}" in
32511 mingw* )
cristy4f820712011-04-01 12:35:43 +000032512 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000032513 ;;
32514esac
32515
32516cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032517#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032518_ACEOF
32519
32520
32521
cristy54378032012-12-04 15:52:20 +000032522#
32523# Subdirectory to place architecture-dependent configuration files.
32524if test "x$SHAREARCH_BASEDIRNAME" = "x"; then
32525 SHAREARCH_BASEDIRNAME="config"
32526fi
cristy670aa3c2011-11-03 00:54:00 +000032527
32528cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000032529#define SHAREARCH_BASEDIRNAME "$SHAREARCH_BASEDIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000032530_ACEOF
32531
cristy54378032012-12-04 15:52:20 +000032532
32533
32534if test "x$SHAREARCH_DIRNAME" = "x"; then
32535 SHAREARCH_DIRNAME=${SHAREARCH_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32536else
cristy670aa3c2011-11-03 00:54:00 +000032537
32538cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000032539#define SHAREARCH_DIRNAME "$SHAREARCH_DIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000032540_ACEOF
32541
cristy54378032012-12-04 15:52:20 +000032542fi
32543
32544
32545SHAREARCH_RELATIVE_PATH="${SHAREARCH_DIRNAME}"
32546
32547SHAREARCH_PATH="${LIBRARY_PATH}/${SHAREARCH_RELATIVE_PATH}"
cristy670aa3c2011-11-03 00:54:00 +000032548
32549
cristy3ed852e2009-09-05 21:47:34 +000032550#
32551# program_transform_name is formed for use in a Makefile, so create a
32552# modified version for use in a shell script.
32553configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
32554
32555# Default delegate definitions
cristyad38abe2012-12-23 23:03:21 +000032556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32557$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000032559$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32561$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032562AutotraceDecodeDelegateDefault='autotrace'
cristy3d7f8062009-09-24 20:45:35 +000032563BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000032564BZIPDelegateDefault='bzip2'
32565BrowseDelegateDefault='xdg-open'
32566CGMDecodeDelegateDefault='ralcgm'
32567CatDelegateDefault='cat'
32568DNGDecodeDelegateDefault='ufraw-batch'
32569GVCDecodeDelegateDefault='dot'
32570DVIDecodeDelegateDefault='dvips'
32571EchoDelegateDefault='echo'
32572EditorDelegateDefault='xterm'
32573FIGDecodeDelegateDefault='fig2dev'
32574ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
32575DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
32576MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
32577GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000032578HPGLDecodeDelegateDefault='hp2xx'
32579HTMLDecodeDelegateDefault='html2ps'
32580ILBMDecodeDelegateDefault='ilbmtoppm'
32581ILBMEncodeDelegateDefault='ppmtoilbm'
32582LPDelegateDefault='lp'
32583LPRDelegateDefault='lpr'
cristy3ed852e2009-09-05 21:47:34 +000032584LaunchDelegateDefault='gimp'
32585MANDelegateDefault='groff'
32586MPEGDecodeDelegateDefault='ffmpeg'
32587MPEGEncodeDelegateDefault='ffmpeg'
cristy935c86e2010-06-05 23:50:07 +000032588MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000032589MVDelegateDefault='mv'
32590PCLDelegateDefault='pcl6'
32591PGPDecodeDelegateDefault='pgpv'
32592POVDelegateDefault='povray'
32593if test "$native_win32_build" = 'yes'; then
32594 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000032595elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032596 PSDelegateDefault='gsc'
32597else
32598 PSDelegateDefault='gs'
32599fi
32600RLEEncodeDelegateDefault='rawtorle'
32601RMDelegateDefault='rm'
cristy5281e322012-02-09 21:12:45 +000032602RSVGDecodeDelegateDefault='rsvg-convert'
cristy3ed852e2009-09-05 21:47:34 +000032603SCANDecodeDelegateDefault='scanimage'
cristyec6934f2012-08-14 18:38:40 +000032604SVGDecodeDelegateDefault='inkscape'
cristy3ed852e2009-09-05 21:47:34 +000032605TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000032606UniconvertorDelegateDefault='uniconvertor'
cristy3ed852e2009-09-05 21:47:34 +000032607WMFDecodeDelegateDefault='wmf2eps'
32608WWWDecodeDelegateDefault='curl'
32609XPSDelegateDefault='gxps'
32610ZipDelegateDefault='gzip'
32611
32612# Search for delegates
32613# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
32614set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032616$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032617if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032618 $as_echo_n "(cached) " >&6
32619else
32620 case $AutotraceDecodeDelegate in
32621 [\\/]* | ?:[\\/]*)
32622 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
32623 ;;
32624 *)
32625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32626for as_dir in $PATH
32627do
32628 IFS=$as_save_IFS
32629 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032630 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032632 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032634 break 2
32635 fi
32636done
cristy8b350f62009-11-15 23:12:43 +000032637 done
cristy3ed852e2009-09-05 21:47:34 +000032638IFS=$as_save_IFS
32639
32640 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
32641 ;;
32642esac
32643fi
32644AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
32645if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032647$as_echo "$AutotraceDecodeDelegate" >&6; }
32648else
cristy8b350f62009-11-15 23:12:43 +000032649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032650$as_echo "no" >&6; }
32651fi
32652
32653
cristy3ed852e2009-09-05 21:47:34 +000032654# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
32655set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032657$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032658if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032659 $as_echo_n "(cached) " >&6
32660else
32661 case $BlenderDecodeDelegate in
32662 [\\/]* | ?:[\\/]*)
32663 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
32664 ;;
32665 *)
32666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32667for as_dir in $PATH
32668do
32669 IFS=$as_save_IFS
32670 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032671 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032673 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032675 break 2
32676 fi
32677done
cristy8b350f62009-11-15 23:12:43 +000032678 done
cristy3ed852e2009-09-05 21:47:34 +000032679IFS=$as_save_IFS
32680
32681 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
32682 ;;
32683esac
32684fi
32685BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
32686if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032688$as_echo "$BlenderDecodeDelegate" >&6; }
32689else
cristy8b350f62009-11-15 23:12:43 +000032690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032691$as_echo "no" >&6; }
32692fi
32693
32694
32695# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
32696set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032698$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032699if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032700 $as_echo_n "(cached) " >&6
32701else
32702 case $BZIPDelegate in
32703 [\\/]* | ?:[\\/]*)
32704 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
32705 ;;
32706 *)
32707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32708for as_dir in $PATH
32709do
32710 IFS=$as_save_IFS
32711 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032712 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032714 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032716 break 2
32717 fi
32718done
cristy8b350f62009-11-15 23:12:43 +000032719 done
cristy3ed852e2009-09-05 21:47:34 +000032720IFS=$as_save_IFS
32721
32722 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
32723 ;;
32724esac
32725fi
32726BZIPDelegate=$ac_cv_path_BZIPDelegate
32727if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032729$as_echo "$BZIPDelegate" >&6; }
32730else
cristy8b350f62009-11-15 23:12:43 +000032731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032732$as_echo "no" >&6; }
32733fi
32734
32735
cristyc59f0e72012-08-27 12:59:33 +000032736for ac_prog in "$BrowseDelegateDefault" google-chrome firefox konqueror mozilla lynx
32737do
32738 # Extract the first word of "$ac_prog", so it can be a program name with args.
32739set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032741$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032742if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032743 $as_echo_n "(cached) " >&6
32744else
32745 case $BrowseDelegate in
32746 [\\/]* | ?:[\\/]*)
32747 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
32748 ;;
32749 *)
32750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32751for as_dir in $PATH
32752do
32753 IFS=$as_save_IFS
32754 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032755 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032757 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032759 break 2
32760 fi
32761done
cristy8b350f62009-11-15 23:12:43 +000032762 done
cristy3ed852e2009-09-05 21:47:34 +000032763IFS=$as_save_IFS
32764
cristy3ed852e2009-09-05 21:47:34 +000032765 ;;
32766esac
32767fi
32768BrowseDelegate=$ac_cv_path_BrowseDelegate
32769if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032771$as_echo "$BrowseDelegate" >&6; }
32772else
cristy8b350f62009-11-15 23:12:43 +000032773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032774$as_echo "no" >&6; }
32775fi
32776
32777
cristyc59f0e72012-08-27 12:59:33 +000032778 test -n "$BrowseDelegate" && break
32779done
32780test -n "$BrowseDelegate" || BrowseDelegate=""$BrowseDelegateDefault""
32781
cristy3ed852e2009-09-05 21:47:34 +000032782# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
32783set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032785$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032786if ${ac_cv_path_CGMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032787 $as_echo_n "(cached) " >&6
32788else
32789 case $CGMDecodeDelegate in
32790 [\\/]* | ?:[\\/]*)
32791 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
32792 ;;
32793 *)
32794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32795for as_dir in $PATH
32796do
32797 IFS=$as_save_IFS
32798 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032799 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032801 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032803 break 2
32804 fi
32805done
cristy8b350f62009-11-15 23:12:43 +000032806 done
cristy3ed852e2009-09-05 21:47:34 +000032807IFS=$as_save_IFS
32808
32809 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
32810 ;;
32811esac
32812fi
32813CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
32814if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032816$as_echo "$CGMDecodeDelegate" >&6; }
32817else
cristy8b350f62009-11-15 23:12:43 +000032818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032819$as_echo "no" >&6; }
32820fi
32821
32822
32823# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
32824set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032826$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032827if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032828 $as_echo_n "(cached) " >&6
32829else
32830 case $CatDelegate in
32831 [\\/]* | ?:[\\/]*)
32832 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
32833 ;;
32834 *)
32835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32836for as_dir in $PATH
32837do
32838 IFS=$as_save_IFS
32839 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032840 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032842 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032844 break 2
32845 fi
32846done
cristy8b350f62009-11-15 23:12:43 +000032847 done
cristy3ed852e2009-09-05 21:47:34 +000032848IFS=$as_save_IFS
32849
32850 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
32851 ;;
32852esac
32853fi
32854CatDelegate=$ac_cv_path_CatDelegate
32855if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032857$as_echo "$CatDelegate" >&6; }
32858else
cristy8b350f62009-11-15 23:12:43 +000032859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032860$as_echo "no" >&6; }
32861fi
32862
32863
32864# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
32865set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032867$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032868if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032869 $as_echo_n "(cached) " >&6
32870else
32871 case $DNGDecodeDelegate in
32872 [\\/]* | ?:[\\/]*)
32873 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
32874 ;;
32875 *)
32876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32877for as_dir in $PATH
32878do
32879 IFS=$as_save_IFS
32880 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032881 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032883 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032885 break 2
32886 fi
32887done
cristy8b350f62009-11-15 23:12:43 +000032888 done
cristy3ed852e2009-09-05 21:47:34 +000032889IFS=$as_save_IFS
32890
32891 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
32892 ;;
32893esac
32894fi
32895DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
32896if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032898$as_echo "$DNGDecodeDelegate" >&6; }
32899else
cristy8b350f62009-11-15 23:12:43 +000032900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032901$as_echo "no" >&6; }
32902fi
32903
32904
32905# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
32906set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032908$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032909if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032910 $as_echo_n "(cached) " >&6
32911else
32912 case $GVCDecodeDelegate in
32913 [\\/]* | ?:[\\/]*)
32914 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
32915 ;;
32916 *)
32917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32918for as_dir in $PATH
32919do
32920 IFS=$as_save_IFS
32921 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032922 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032924 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032926 break 2
32927 fi
32928done
cristy8b350f62009-11-15 23:12:43 +000032929 done
cristy3ed852e2009-09-05 21:47:34 +000032930IFS=$as_save_IFS
32931
32932 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
32933 ;;
32934esac
32935fi
32936GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
32937if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032939$as_echo "$GVCDecodeDelegate" >&6; }
32940else
cristy8b350f62009-11-15 23:12:43 +000032941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032942$as_echo "no" >&6; }
32943fi
32944
32945
32946# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
32947set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032949$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032950if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032951 $as_echo_n "(cached) " >&6
32952else
32953 case $DVIDecodeDelegate in
32954 [\\/]* | ?:[\\/]*)
32955 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
32956 ;;
32957 *)
32958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32959for as_dir in $PATH
32960do
32961 IFS=$as_save_IFS
32962 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032963 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032965 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032967 break 2
32968 fi
32969done
cristy8b350f62009-11-15 23:12:43 +000032970 done
cristy3ed852e2009-09-05 21:47:34 +000032971IFS=$as_save_IFS
32972
32973 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
32974 ;;
32975esac
32976fi
32977DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
32978if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032980$as_echo "$DVIDecodeDelegate" >&6; }
32981else
cristy8b350f62009-11-15 23:12:43 +000032982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032983$as_echo "no" >&6; }
32984fi
32985
32986
32987# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
32988set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032990$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032991if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032992 $as_echo_n "(cached) " >&6
32993else
32994 case $EchoDelegate in
32995 [\\/]* | ?:[\\/]*)
32996 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
32997 ;;
32998 *)
32999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33000for as_dir in $PATH
33001do
33002 IFS=$as_save_IFS
33003 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033004 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033006 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033008 break 2
33009 fi
33010done
cristy8b350f62009-11-15 23:12:43 +000033011 done
cristy3ed852e2009-09-05 21:47:34 +000033012IFS=$as_save_IFS
33013
33014 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
33015 ;;
33016esac
33017fi
33018EchoDelegate=$ac_cv_path_EchoDelegate
33019if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033021$as_echo "$EchoDelegate" >&6; }
33022else
cristy8b350f62009-11-15 23:12:43 +000033023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033024$as_echo "no" >&6; }
33025fi
33026
33027
33028# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
33029set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033031$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033032if ${ac_cv_path_EditorDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033033 $as_echo_n "(cached) " >&6
33034else
33035 case $EditorDelegate in
33036 [\\/]* | ?:[\\/]*)
33037 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
33038 ;;
33039 *)
33040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33041for as_dir in $PATH
33042do
33043 IFS=$as_save_IFS
33044 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033045 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033047 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033049 break 2
33050 fi
33051done
cristy8b350f62009-11-15 23:12:43 +000033052 done
cristy3ed852e2009-09-05 21:47:34 +000033053IFS=$as_save_IFS
33054
33055 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
33056 ;;
33057esac
33058fi
33059EditorDelegate=$ac_cv_path_EditorDelegate
33060if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033062$as_echo "$EditorDelegate" >&6; }
33063else
cristy8b350f62009-11-15 23:12:43 +000033064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033065$as_echo "no" >&6; }
33066fi
33067
33068
33069# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
33070set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033072$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033073if ${ac_cv_path_FIGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033074 $as_echo_n "(cached) " >&6
33075else
33076 case $FIGDecodeDelegate in
33077 [\\/]* | ?:[\\/]*)
33078 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
33079 ;;
33080 *)
33081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33082for as_dir in $PATH
33083do
33084 IFS=$as_save_IFS
33085 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033086 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033088 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033090 break 2
33091 fi
33092done
cristy8b350f62009-11-15 23:12:43 +000033093 done
cristy3ed852e2009-09-05 21:47:34 +000033094IFS=$as_save_IFS
33095
33096 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
33097 ;;
33098esac
33099fi
33100FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
33101if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033103$as_echo "$FIGDecodeDelegate" >&6; }
33104else
cristy8b350f62009-11-15 23:12:43 +000033105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033106$as_echo "no" >&6; }
33107fi
33108
33109
33110# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
33111set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033113$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033114if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033115 $as_echo_n "(cached) " >&6
33116else
33117 case $ConvertDelegate in
33118 [\\/]* | ?:[\\/]*)
33119 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
33120 ;;
33121 *)
33122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33123for as_dir in $PATH
33124do
33125 IFS=$as_save_IFS
33126 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033127 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033129 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033131 break 2
33132 fi
33133done
cristy8b350f62009-11-15 23:12:43 +000033134 done
cristy3ed852e2009-09-05 21:47:34 +000033135IFS=$as_save_IFS
33136
33137 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
33138 ;;
33139esac
33140fi
33141ConvertDelegate=$ac_cv_path_ConvertDelegate
33142if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033144$as_echo "$ConvertDelegate" >&6; }
33145else
cristy8b350f62009-11-15 23:12:43 +000033146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033147$as_echo "no" >&6; }
33148fi
33149
33150
33151# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
33152set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033154$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033155if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033156 $as_echo_n "(cached) " >&6
33157else
33158 case $DisplayDelegate in
33159 [\\/]* | ?:[\\/]*)
33160 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
33161 ;;
33162 *)
33163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33164for as_dir in $PATH
33165do
33166 IFS=$as_save_IFS
33167 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033168 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033170 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033172 break 2
33173 fi
33174done
cristy8b350f62009-11-15 23:12:43 +000033175 done
cristy3ed852e2009-09-05 21:47:34 +000033176IFS=$as_save_IFS
33177
33178 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
33179 ;;
33180esac
33181fi
33182DisplayDelegate=$ac_cv_path_DisplayDelegate
33183if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033185$as_echo "$DisplayDelegate" >&6; }
33186else
cristy8b350f62009-11-15 23:12:43 +000033187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033188$as_echo "no" >&6; }
33189fi
33190
33191
33192# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
33193set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033195$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033196if ${ac_cv_path_MogrifyDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033197 $as_echo_n "(cached) " >&6
33198else
33199 case $MogrifyDelegate in
33200 [\\/]* | ?:[\\/]*)
33201 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
33202 ;;
33203 *)
33204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33205for as_dir in $PATH
33206do
33207 IFS=$as_save_IFS
33208 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033209 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033211 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033213 break 2
33214 fi
33215done
cristy8b350f62009-11-15 23:12:43 +000033216 done
cristy3ed852e2009-09-05 21:47:34 +000033217IFS=$as_save_IFS
33218
33219 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
33220 ;;
33221esac
33222fi
33223MogrifyDelegate=$ac_cv_path_MogrifyDelegate
33224if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033226$as_echo "$MogrifyDelegate" >&6; }
33227else
cristy8b350f62009-11-15 23:12:43 +000033228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033229$as_echo "no" >&6; }
33230fi
33231
33232
33233# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
33234set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033236$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033237if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033238 $as_echo_n "(cached) " >&6
33239else
33240 case $GnuplotDecodeDelegate in
33241 [\\/]* | ?:[\\/]*)
33242 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
33243 ;;
33244 *)
33245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33246for as_dir in $PATH
33247do
33248 IFS=$as_save_IFS
33249 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033250 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033252 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033254 break 2
33255 fi
33256done
cristy8b350f62009-11-15 23:12:43 +000033257 done
cristy3ed852e2009-09-05 21:47:34 +000033258IFS=$as_save_IFS
33259
33260 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
33261 ;;
33262esac
33263fi
33264GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
33265if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033267$as_echo "$GnuplotDecodeDelegate" >&6; }
33268else
cristy8b350f62009-11-15 23:12:43 +000033269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033270$as_echo "no" >&6; }
33271fi
33272
33273
cristy3ed852e2009-09-05 21:47:34 +000033274# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
33275set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033277$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033278if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033279 $as_echo_n "(cached) " >&6
33280else
33281 case $HPGLDecodeDelegate in
33282 [\\/]* | ?:[\\/]*)
33283 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
33284 ;;
33285 *)
33286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33287for as_dir in $PATH
33288do
33289 IFS=$as_save_IFS
33290 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033291 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033293 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033295 break 2
33296 fi
33297done
cristy8b350f62009-11-15 23:12:43 +000033298 done
cristy3ed852e2009-09-05 21:47:34 +000033299IFS=$as_save_IFS
33300
33301 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
33302 ;;
33303esac
33304fi
33305HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
33306if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033308$as_echo "$HPGLDecodeDelegate" >&6; }
33309else
cristy8b350f62009-11-15 23:12:43 +000033310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033311$as_echo "no" >&6; }
33312fi
33313
33314
33315# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
33316set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033318$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033319if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033320 $as_echo_n "(cached) " >&6
33321else
33322 case $HTMLDecodeDelegate in
33323 [\\/]* | ?:[\\/]*)
33324 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
33325 ;;
33326 *)
33327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33328for as_dir in $PATH
33329do
33330 IFS=$as_save_IFS
33331 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033332 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033334 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033336 break 2
33337 fi
33338done
cristy8b350f62009-11-15 23:12:43 +000033339 done
cristy3ed852e2009-09-05 21:47:34 +000033340IFS=$as_save_IFS
33341
33342 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
33343 ;;
33344esac
33345fi
33346HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
33347if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033349$as_echo "$HTMLDecodeDelegate" >&6; }
33350else
cristy8b350f62009-11-15 23:12:43 +000033351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033352$as_echo "no" >&6; }
33353fi
33354
33355
33356# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
33357set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033359$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033360if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033361 $as_echo_n "(cached) " >&6
33362else
33363 case $ILBMDecodeDelegate in
33364 [\\/]* | ?:[\\/]*)
33365 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
33366 ;;
33367 *)
33368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33369for as_dir in $PATH
33370do
33371 IFS=$as_save_IFS
33372 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033373 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033375 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033377 break 2
33378 fi
33379done
cristy8b350f62009-11-15 23:12:43 +000033380 done
cristy3ed852e2009-09-05 21:47:34 +000033381IFS=$as_save_IFS
33382
33383 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
33384 ;;
33385esac
33386fi
33387ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
33388if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033390$as_echo "$ILBMDecodeDelegate" >&6; }
33391else
cristy8b350f62009-11-15 23:12:43 +000033392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033393$as_echo "no" >&6; }
33394fi
33395
33396
33397# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
33398set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033400$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033401if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033402 $as_echo_n "(cached) " >&6
33403else
33404 case $ILBMEncodeDelegate in
33405 [\\/]* | ?:[\\/]*)
33406 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
33407 ;;
33408 *)
33409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33410for as_dir in $PATH
33411do
33412 IFS=$as_save_IFS
33413 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033414 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033415 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033416 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033418 break 2
33419 fi
33420done
cristy8b350f62009-11-15 23:12:43 +000033421 done
cristy3ed852e2009-09-05 21:47:34 +000033422IFS=$as_save_IFS
33423
33424 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
33425 ;;
33426esac
33427fi
33428ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
33429if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033431$as_echo "$ILBMEncodeDelegate" >&6; }
33432else
cristy8b350f62009-11-15 23:12:43 +000033433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033434$as_echo "no" >&6; }
33435fi
33436
33437
33438# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
33439set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033441$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033442if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033443 $as_echo_n "(cached) " >&6
33444else
33445 case $LPDelegate in
33446 [\\/]* | ?:[\\/]*)
33447 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
33448 ;;
33449 *)
33450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33451for as_dir in $PATH
33452do
33453 IFS=$as_save_IFS
33454 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033455 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033457 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033459 break 2
33460 fi
33461done
cristy8b350f62009-11-15 23:12:43 +000033462 done
cristy3ed852e2009-09-05 21:47:34 +000033463IFS=$as_save_IFS
33464
33465 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
33466 ;;
33467esac
33468fi
33469LPDelegate=$ac_cv_path_LPDelegate
33470if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033472$as_echo "$LPDelegate" >&6; }
33473else
cristy8b350f62009-11-15 23:12:43 +000033474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033475$as_echo "no" >&6; }
33476fi
33477
33478
33479# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
33480set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033482$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033483if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033484 $as_echo_n "(cached) " >&6
33485else
33486 case $LPRDelegate in
33487 [\\/]* | ?:[\\/]*)
33488 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
33489 ;;
33490 *)
33491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33492for as_dir in $PATH
33493do
33494 IFS=$as_save_IFS
33495 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033496 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033498 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033500 break 2
33501 fi
33502done
cristy8b350f62009-11-15 23:12:43 +000033503 done
cristy3ed852e2009-09-05 21:47:34 +000033504IFS=$as_save_IFS
33505
33506 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
33507 ;;
33508esac
33509fi
33510LPRDelegate=$ac_cv_path_LPRDelegate
33511if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033513$as_echo "$LPRDelegate" >&6; }
33514else
cristy8b350f62009-11-15 23:12:43 +000033515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033516$as_echo "no" >&6; }
33517fi
33518
33519
cristy3ed852e2009-09-05 21:47:34 +000033520# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
33521set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033523$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033524if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033525 $as_echo_n "(cached) " >&6
33526else
33527 case $LaunchDelegate in
33528 [\\/]* | ?:[\\/]*)
33529 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
33530 ;;
33531 *)
33532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33533for as_dir in $PATH
33534do
33535 IFS=$as_save_IFS
33536 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033537 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033539 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033541 break 2
33542 fi
33543done
cristy8b350f62009-11-15 23:12:43 +000033544 done
cristy3ed852e2009-09-05 21:47:34 +000033545IFS=$as_save_IFS
33546
33547 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
33548 ;;
33549esac
33550fi
33551LaunchDelegate=$ac_cv_path_LaunchDelegate
33552if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033554$as_echo "$LaunchDelegate" >&6; }
33555else
cristy8b350f62009-11-15 23:12:43 +000033556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033557$as_echo "no" >&6; }
33558fi
33559
33560
33561# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
33562set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033564$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033565if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033566 $as_echo_n "(cached) " >&6
33567else
33568 case $MANDelegate in
33569 [\\/]* | ?:[\\/]*)
33570 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
33571 ;;
33572 *)
33573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33574for as_dir in $PATH
33575do
33576 IFS=$as_save_IFS
33577 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033578 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033580 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033582 break 2
33583 fi
33584done
cristy8b350f62009-11-15 23:12:43 +000033585 done
cristy3ed852e2009-09-05 21:47:34 +000033586IFS=$as_save_IFS
33587
33588 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
33589 ;;
33590esac
33591fi
33592MANDelegate=$ac_cv_path_MANDelegate
33593if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033595$as_echo "$MANDelegate" >&6; }
33596else
cristy8b350f62009-11-15 23:12:43 +000033597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033598$as_echo "no" >&6; }
33599fi
33600
33601
33602# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33603set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033605$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033606if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033607 $as_echo_n "(cached) " >&6
33608else
33609 case $MPEGDecodeDelegate in
33610 [\\/]* | ?:[\\/]*)
33611 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
33612 ;;
33613 *)
33614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33615for as_dir in $PATH
33616do
33617 IFS=$as_save_IFS
33618 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033619 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033621 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033623 break 2
33624 fi
33625done
cristy8b350f62009-11-15 23:12:43 +000033626 done
cristy3ed852e2009-09-05 21:47:34 +000033627IFS=$as_save_IFS
33628
33629 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
33630 ;;
33631esac
33632fi
33633MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
33634if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033636$as_echo "$MPEGDecodeDelegate" >&6; }
33637else
cristy8b350f62009-11-15 23:12:43 +000033638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033639$as_echo "no" >&6; }
33640fi
33641
33642
33643# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
33644set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033646$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033647if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033648 $as_echo_n "(cached) " >&6
33649else
33650 case $MPEGEncodeDelegate in
33651 [\\/]* | ?:[\\/]*)
33652 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
33653 ;;
33654 *)
33655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33656for as_dir in $PATH
33657do
33658 IFS=$as_save_IFS
33659 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033660 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033662 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033664 break 2
33665 fi
33666done
cristy8b350f62009-11-15 23:12:43 +000033667 done
cristy3ed852e2009-09-05 21:47:34 +000033668IFS=$as_save_IFS
33669
33670 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
33671 ;;
33672esac
33673fi
33674MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
33675if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033677$as_echo "$MPEGEncodeDelegate" >&6; }
33678else
cristy8b350f62009-11-15 23:12:43 +000033679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033680$as_echo "no" >&6; }
33681fi
33682
33683
cristy935c86e2010-06-05 23:50:07 +000033684# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
33685set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
33686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33687$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033688if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000033689 $as_echo_n "(cached) " >&6
33690else
33691 case $MrSIDDecodeDelegate in
33692 [\\/]* | ?:[\\/]*)
33693 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
33694 ;;
33695 *)
33696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33697for as_dir in $PATH
33698do
33699 IFS=$as_save_IFS
33700 test -z "$as_dir" && as_dir=.
33701 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy935c86e2010-06-05 23:50:07 +000033703 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33705 break 2
33706 fi
33707done
33708 done
33709IFS=$as_save_IFS
33710
33711 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
33712 ;;
33713esac
33714fi
33715MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
33716if test -n "$MrSIDDecodeDelegate"; then
33717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
33718$as_echo "$MrSIDDecodeDelegate" >&6; }
33719else
33720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33721$as_echo "no" >&6; }
33722fi
33723
33724
cristy3ed852e2009-09-05 21:47:34 +000033725# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
33726set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033728$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033729if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033730 $as_echo_n "(cached) " >&6
33731else
33732 case $MVDelegate in
33733 [\\/]* | ?:[\\/]*)
33734 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
33735 ;;
33736 *)
33737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33738for as_dir in $PATH
33739do
33740 IFS=$as_save_IFS
33741 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033742 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033744 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033746 break 2
33747 fi
33748done
cristy8b350f62009-11-15 23:12:43 +000033749 done
cristy3ed852e2009-09-05 21:47:34 +000033750IFS=$as_save_IFS
33751
33752 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
33753 ;;
33754esac
33755fi
33756MVDelegate=$ac_cv_path_MVDelegate
33757if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033759$as_echo "$MVDelegate" >&6; }
33760else
cristy8b350f62009-11-15 23:12:43 +000033761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033762$as_echo "no" >&6; }
33763fi
33764
33765
33766# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
33767set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033769$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033770if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033771 $as_echo_n "(cached) " >&6
33772else
33773 case $PCLDelegate in
33774 [\\/]* | ?:[\\/]*)
33775 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
33776 ;;
33777 *)
33778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33779for as_dir in $PATH
33780do
33781 IFS=$as_save_IFS
33782 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033783 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033785 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033787 break 2
33788 fi
33789done
cristy8b350f62009-11-15 23:12:43 +000033790 done
cristy3ed852e2009-09-05 21:47:34 +000033791IFS=$as_save_IFS
33792
33793 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
33794 ;;
33795esac
33796fi
33797PCLDelegate=$ac_cv_path_PCLDelegate
33798if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033800$as_echo "$PCLDelegate" >&6; }
33801else
cristy8b350f62009-11-15 23:12:43 +000033802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033803$as_echo "no" >&6; }
33804fi
33805
33806
33807# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
33808set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033810$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033811if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033812 $as_echo_n "(cached) " >&6
33813else
33814 case $PGPDecodeDelegate in
33815 [\\/]* | ?:[\\/]*)
33816 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
33817 ;;
33818 *)
33819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33820for as_dir in $PATH
33821do
33822 IFS=$as_save_IFS
33823 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033824 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033826 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033828 break 2
33829 fi
33830done
cristy8b350f62009-11-15 23:12:43 +000033831 done
cristy3ed852e2009-09-05 21:47:34 +000033832IFS=$as_save_IFS
33833
33834 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
33835 ;;
33836esac
33837fi
33838PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
33839if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033841$as_echo "$PGPDecodeDelegate" >&6; }
33842else
cristy8b350f62009-11-15 23:12:43 +000033843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033844$as_echo "no" >&6; }
33845fi
33846
33847
33848# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
33849set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033851$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033852if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033853 $as_echo_n "(cached) " >&6
33854else
33855 case $POVDelegate in
33856 [\\/]* | ?:[\\/]*)
33857 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
33858 ;;
33859 *)
33860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33861for as_dir in $PATH
33862do
33863 IFS=$as_save_IFS
33864 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033865 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033867 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033869 break 2
33870 fi
33871done
cristy8b350f62009-11-15 23:12:43 +000033872 done
cristy3ed852e2009-09-05 21:47:34 +000033873IFS=$as_save_IFS
33874
33875 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
33876 ;;
33877esac
33878fi
33879POVDelegate=$ac_cv_path_POVDelegate
33880if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033882$as_echo "$POVDelegate" >&6; }
33883else
cristy8b350f62009-11-15 23:12:43 +000033884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033885$as_echo "no" >&6; }
33886fi
33887
33888
33889for ac_prog in gsx gsc "$PSDelegateDefault"
33890do
33891 # Extract the first word of "$ac_prog", so it can be a program name with args.
33892set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033894$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033895if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033896 $as_echo_n "(cached) " >&6
33897else
33898 case $PSDelegate in
33899 [\\/]* | ?:[\\/]*)
33900 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
33901 ;;
33902 *)
33903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33904for as_dir in $PATH
33905do
33906 IFS=$as_save_IFS
33907 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033908 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033910 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033912 break 2
33913 fi
33914done
cristy8b350f62009-11-15 23:12:43 +000033915 done
cristy3ed852e2009-09-05 21:47:34 +000033916IFS=$as_save_IFS
33917
33918 ;;
33919esac
33920fi
33921PSDelegate=$ac_cv_path_PSDelegate
33922if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033924$as_echo "$PSDelegate" >&6; }
33925else
cristy8b350f62009-11-15 23:12:43 +000033926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033927$as_echo "no" >&6; }
33928fi
33929
33930
33931 test -n "$PSDelegate" && break
33932done
33933test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
33934
33935# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
33936set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033938$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033939if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033940 $as_echo_n "(cached) " >&6
33941else
33942 case $RLEEncodeDelegate in
33943 [\\/]* | ?:[\\/]*)
33944 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
33945 ;;
33946 *)
33947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33948for as_dir in $PATH
33949do
33950 IFS=$as_save_IFS
33951 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033952 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033954 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033956 break 2
33957 fi
33958done
cristy8b350f62009-11-15 23:12:43 +000033959 done
cristy3ed852e2009-09-05 21:47:34 +000033960IFS=$as_save_IFS
33961
33962 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
33963 ;;
33964esac
33965fi
33966RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
33967if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033969$as_echo "$RLEEncodeDelegate" >&6; }
33970else
cristy8b350f62009-11-15 23:12:43 +000033971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033972$as_echo "no" >&6; }
33973fi
33974
33975
33976# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
33977set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033979$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033980if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033981 $as_echo_n "(cached) " >&6
33982else
33983 case $RMDelegate in
33984 [\\/]* | ?:[\\/]*)
33985 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
33986 ;;
33987 *)
33988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33989for as_dir in $PATH
33990do
33991 IFS=$as_save_IFS
33992 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033993 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033995 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033997 break 2
33998 fi
33999done
cristy8b350f62009-11-15 23:12:43 +000034000 done
cristy3ed852e2009-09-05 21:47:34 +000034001IFS=$as_save_IFS
34002
34003 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
34004 ;;
34005esac
34006fi
34007RMDelegate=$ac_cv_path_RMDelegate
34008if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034010$as_echo "$RMDelegate" >&6; }
34011else
cristy8b350f62009-11-15 23:12:43 +000034012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034013$as_echo "no" >&6; }
34014fi
34015
34016
cristy4689cf02010-02-17 21:15:45 +000034017# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
34018set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
34019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34020$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034021if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000034022 $as_echo_n "(cached) " >&6
34023else
34024 case $RSVGDecodeDelegate in
34025 [\\/]* | ?:[\\/]*)
34026 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
34027 ;;
34028 *)
34029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34030for as_dir in $PATH
34031do
34032 IFS=$as_save_IFS
34033 test -z "$as_dir" && as_dir=.
34034 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy4689cf02010-02-17 21:15:45 +000034036 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34038 break 2
34039 fi
34040done
34041 done
34042IFS=$as_save_IFS
34043
34044 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
34045 ;;
34046esac
34047fi
34048RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
34049if test -n "$RSVGDecodeDelegate"; then
34050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
34051$as_echo "$RSVGDecodeDelegate" >&6; }
34052else
34053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34054$as_echo "no" >&6; }
34055fi
34056
34057
cristy3ed852e2009-09-05 21:47:34 +000034058# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
34059set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034061$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034062if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034063 $as_echo_n "(cached) " >&6
34064else
34065 case $SCANDecodeDelegate in
34066 [\\/]* | ?:[\\/]*)
34067 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
34068 ;;
34069 *)
34070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34071for as_dir in $PATH
34072do
34073 IFS=$as_save_IFS
34074 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034075 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034077 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034079 break 2
34080 fi
34081done
cristy8b350f62009-11-15 23:12:43 +000034082 done
cristy3ed852e2009-09-05 21:47:34 +000034083IFS=$as_save_IFS
34084
34085 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
34086 ;;
34087esac
34088fi
34089SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
34090if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034092$as_echo "$SCANDecodeDelegate" >&6; }
34093else
cristy8b350f62009-11-15 23:12:43 +000034094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034095$as_echo "no" >&6; }
34096fi
34097
34098
cristyec6934f2012-08-14 18:38:40 +000034099# Extract the first word of ""$SVGDecodeDelegateDefault"", so it can be a program name with args.
34100set dummy "$SVGDecodeDelegateDefault"; ac_word=$2
34101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34102$as_echo_n "checking for $ac_word... " >&6; }
34103if ${ac_cv_path_SVGDecodeDelegate+:} false; then :
34104 $as_echo_n "(cached) " >&6
34105else
34106 case $SVGDecodeDelegate in
34107 [\\/]* | ?:[\\/]*)
34108 ac_cv_path_SVGDecodeDelegate="$SVGDecodeDelegate" # Let the user override the test with a path.
34109 ;;
34110 *)
34111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34112for as_dir in $PATH
34113do
34114 IFS=$as_save_IFS
34115 test -z "$as_dir" && as_dir=.
34116 for ac_exec_ext in '' $ac_executable_extensions; do
34117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34118 ac_cv_path_SVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34120 break 2
34121 fi
34122done
34123 done
34124IFS=$as_save_IFS
34125
34126 test -z "$ac_cv_path_SVGDecodeDelegate" && ac_cv_path_SVGDecodeDelegate=""$SVGDecodeDelegateDefault""
34127 ;;
34128esac
34129fi
34130SVGDecodeDelegate=$ac_cv_path_SVGDecodeDelegate
34131if test -n "$SVGDecodeDelegate"; then
34132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVGDecodeDelegate" >&5
34133$as_echo "$SVGDecodeDelegate" >&6; }
34134else
34135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34136$as_echo "no" >&6; }
34137fi
34138
34139
cristy3ed852e2009-09-05 21:47:34 +000034140# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
34141set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034143$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034144if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034145 $as_echo_n "(cached) " >&6
34146else
34147 case $TXTDelegate in
34148 [\\/]* | ?:[\\/]*)
34149 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
34150 ;;
34151 *)
34152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34153for as_dir in $PATH
34154do
34155 IFS=$as_save_IFS
34156 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034157 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034159 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034161 break 2
34162 fi
34163done
cristy8b350f62009-11-15 23:12:43 +000034164 done
cristy3ed852e2009-09-05 21:47:34 +000034165IFS=$as_save_IFS
34166
34167 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
34168 ;;
34169esac
34170fi
34171TXTDelegate=$ac_cv_path_TXTDelegate
34172if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034174$as_echo "$TXTDelegate" >&6; }
34175else
cristy8b350f62009-11-15 23:12:43 +000034176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034177$as_echo "no" >&6; }
34178fi
34179
34180
cristy5ac9ac82010-07-29 13:24:24 +000034181# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
34182set dummy "$UniconvertorDelegateDefault"; ac_word=$2
34183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34184$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034185if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000034186 $as_echo_n "(cached) " >&6
34187else
34188 case $UniconvertorDelegate in
34189 [\\/]* | ?:[\\/]*)
34190 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
34191 ;;
34192 *)
34193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34194for as_dir in $PATH
34195do
34196 IFS=$as_save_IFS
34197 test -z "$as_dir" && as_dir=.
34198 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy5ac9ac82010-07-29 13:24:24 +000034200 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
34201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34202 break 2
34203 fi
34204done
34205 done
34206IFS=$as_save_IFS
34207
34208 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
34209 ;;
34210esac
34211fi
34212UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
34213if test -n "$UniconvertorDelegate"; then
34214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
34215$as_echo "$UniconvertorDelegate" >&6; }
34216else
34217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34218$as_echo "no" >&6; }
34219fi
34220
34221
cristy3ed852e2009-09-05 21:47:34 +000034222# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
34223set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034225$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034226if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034227 $as_echo_n "(cached) " >&6
34228else
34229 case $WMFDecodeDelegate in
34230 [\\/]* | ?:[\\/]*)
34231 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
34232 ;;
34233 *)
34234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34235for as_dir in $PATH
34236do
34237 IFS=$as_save_IFS
34238 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034239 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034241 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034243 break 2
34244 fi
34245done
cristy8b350f62009-11-15 23:12:43 +000034246 done
cristy3ed852e2009-09-05 21:47:34 +000034247IFS=$as_save_IFS
34248
34249 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
34250 ;;
34251esac
34252fi
34253WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
34254if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034256$as_echo "$WMFDecodeDelegate" >&6; }
34257else
cristy8b350f62009-11-15 23:12:43 +000034258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034259$as_echo "no" >&6; }
34260fi
34261
34262
34263# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
34264set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034266$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034267if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034268 $as_echo_n "(cached) " >&6
34269else
34270 case $WWWDecodeDelegate in
34271 [\\/]* | ?:[\\/]*)
34272 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
34273 ;;
34274 *)
34275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34276for as_dir in $PATH
34277do
34278 IFS=$as_save_IFS
34279 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034280 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034282 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034284 break 2
34285 fi
34286done
cristy8b350f62009-11-15 23:12:43 +000034287 done
cristy3ed852e2009-09-05 21:47:34 +000034288IFS=$as_save_IFS
34289
34290 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
34291 ;;
34292esac
34293fi
34294WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
34295if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034297$as_echo "$WWWDecodeDelegate" >&6; }
34298else
cristy8b350f62009-11-15 23:12:43 +000034299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034300$as_echo "no" >&6; }
34301fi
34302
34303
34304# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
34305set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034307$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034308if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034309 $as_echo_n "(cached) " >&6
34310else
34311 case $XPSDelegate in
34312 [\\/]* | ?:[\\/]*)
34313 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
34314 ;;
34315 *)
34316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34317for as_dir in $PATH
34318do
34319 IFS=$as_save_IFS
34320 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034321 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034323 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034325 break 2
34326 fi
34327done
cristy8b350f62009-11-15 23:12:43 +000034328 done
cristy3ed852e2009-09-05 21:47:34 +000034329IFS=$as_save_IFS
34330
34331 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
34332 ;;
34333esac
34334fi
34335XPSDelegate=$ac_cv_path_XPSDelegate
34336if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034338$as_echo "$XPSDelegate" >&6; }
34339else
cristy8b350f62009-11-15 23:12:43 +000034340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034341$as_echo "no" >&6; }
34342fi
34343
34344
34345# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
34346set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034348$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034349if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034350 $as_echo_n "(cached) " >&6
34351else
34352 case $ZipDelegate in
34353 [\\/]* | ?:[\\/]*)
34354 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
34355 ;;
34356 *)
34357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34358for as_dir in $PATH
34359do
34360 IFS=$as_save_IFS
34361 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034362 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034364 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034366 break 2
34367 fi
34368done
cristy8b350f62009-11-15 23:12:43 +000034369 done
cristy3ed852e2009-09-05 21:47:34 +000034370IFS=$as_save_IFS
34371
34372 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
34373 ;;
34374esac
34375fi
34376ZipDelegate=$ac_cv_path_ZipDelegate
34377if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034379$as_echo "$ZipDelegate" >&6; }
34380else
cristy8b350f62009-11-15 23:12:43 +000034381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034382$as_echo "no" >&6; }
34383fi
34384
34385
34386
34387# Prefer lpr to lp; lp needs options tacked on.
34388if test "$LPRDelegate" != no; then
34389 PrintDelegate="$LPRDelegate"
34390else
34391 PrintDelegate="$LPDelegate -c -s"
34392fi
34393
34394
34395# Installed ImageMagick utiltity paths
34396ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
34397DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
34398MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
34399
34400# Set delegate booleans
34401have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
34402have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
34403have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
34404have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
34405have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000034406have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034407have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
34408have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034409have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
34410have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
34411
34412#
34413# Test for font directories
34414#
34415type_include_files=''
34416
cristy430a7312010-01-21 20:44:04 +000034417# Dejavu fonts.
34418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
34419$as_echo_n "checking for Dejavu fonts directory... " >&6; }
34420dejavu_font_dir=''
34421if test "${with_dejavu_font_dir}" != 'default'; then
34422 dejavu_font_dir="${with_dejavu_font_dir}/"
34423else
34424 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
34425 if test -f "${font_dir}DejaVuSerif.ttf"; then
34426 dejavu_font_dir="${font_dir}"
34427 break 1
34428 fi
34429 done
34430fi
34431if test "${dejavu_font_dir}x" != 'x'; then
34432 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
cristyad38abe2012-12-23 23:03:21 +000034433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
34434$as_echo "$dejavu_font_dir" >&6; }
cristy430a7312010-01-21 20:44:04 +000034435else
cristyad38abe2012-12-23 23:03:21 +000034436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
34437$as_echo "not found!" >&6; };
cristy430a7312010-01-21 20:44:04 +000034438fi
34439
34440
cristy3ed852e2009-09-05 21:47:34 +000034441# Windows
34442windows_font_dir=''
34443if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
34444 windows_font_dir="${with_windows_font_dir}/"
34445fi
cristy430a7312010-01-21 20:44:04 +000034446if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034447 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
34448 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
34449 fi
34450 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
34451 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
34452 fi
34453 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
34454 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
34455 fi
34456fi
cristy430a7312010-01-21 20:44:04 +000034457if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034458 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
34459fi
34460
34461
34462# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000034463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000034464$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
34465ghostscript_font_dir=''
34466if test "${with_gs_font_dir}" != 'default'; then
34467 ghostscript_font_dir="${with_gs_font_dir}/"
34468else
34469 if test "${native_win32_build}" = 'yes'; then
34470 # Native Windows Build
34471 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
34472 if test -f "${font_dir}a010013l.pfb"; then
34473 ghostscript_font_dir="$font_dir"
34474 break 1
34475 fi
34476 done
34477 if test "${PSDelegate}" != 'gswin32c'; then
34478 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
34479 fi
34480 else
34481 # Linux / Mac OS X / Unix Build
34482 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
34483 if test -f "${font_dir}a010013l.pfb"; then
34484 ghostscript_font_dir="${font_dir}"
34485 break 1
34486 fi
34487 done
34488 if test "${ghostscript_font_dir}x" = 'x'; then
34489 if test "$PSDelegate" != 'gs'; then
34490 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
34491 fi
34492 fi
34493 fi
34494fi
34495if test "${ghostscript_font_dir}x" != 'x'; then
34496 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristyad38abe2012-12-23 23:03:21 +000034497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
34498$as_echo "$ghostscript_font_dir" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034499else
cristyad38abe2012-12-23 23:03:21 +000034500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
34501$as_echo "not found!" >&6; };
cristy3ed852e2009-09-05 21:47:34 +000034502fi
34503
34504case "${build_os}" in
34505 mingw* )
34506 PSDelegate=`$WinPathScript "$PSDelegate" 1`
34507 ;;
34508esac
34509
34510
34511
34512#
34513# Handle case where user doesn't want frozen paths
34514#
34515if test "$with_frozenpaths" != 'yes'; then
34516 # Re-set delegate definitions to default (no paths)
34517 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034518 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
34519 BZIPDelegate="$BZIPDelegateDefault"
34520 BrowseDelegate="$BrowseDelegateDefault"
34521 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
34522 CatDelegate="$CatDelegateDefault"
34523 ConvertDelegate="$ConvertDelegateDefault"
34524 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
34525 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
34526 EchoDelegate="$EchoDelegateDefault"
34527 EditorDelegate="$EditorDelegateDefault"
34528 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
34529 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
34530 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
34531 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
34532 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
34533 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
34534 LPDelegate="$LPDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034535 LaunchDelegate="$LaunchDelegateDefault"
34536 MANDelegate="$MANDelegateDefault"
34537 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
34538 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034539 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000034540 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
34541 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034542 PCLDelegate="$PCLDelegateDefault"
34543 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
34544 POVDelegate="$POVDelegateDefault"
34545 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034546 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
34547 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000034548 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034549 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
cristyec6934f2012-08-14 18:38:40 +000034550 SVGDecodeDelegate="$SVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034551 ShowImageDelegate="$ShowImageDelegateDefault"
34552 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000034553 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034554 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
34555 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
34556 XPSDelegate="$XPSDelegateDefault"
34557 ZipDelegate="$ZipDelegateDefault"
34558fi
34559
34560# Delegate substitutions
34561
34562
34563
34564
34565
34566
34567
34568
34569
34570
34571
34572
34573
34574
34575
34576
34577
34578
34579
34580
34581
34582
34583
34584
34585
34586
34587
34588
34589
34590
34591
34592
34593
34594
34595
34596
34597
34598
34599
34600
cristy3ed852e2009-09-05 21:47:34 +000034601#
34602# RPM support.
34603#
34604RPM=''
34605for ac_prog in gnutar gtar tar
34606do
34607 # Extract the first word of "$ac_prog", so it can be a program name with args.
34608set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034610$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034611if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034612 $as_echo_n "(cached) " >&6
34613else
34614 if test -n "$TAR"; then
34615 ac_cv_prog_TAR="$TAR" # Let the user override the test.
34616else
34617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34618for as_dir in $PATH
34619do
34620 IFS=$as_save_IFS
34621 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034622 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034624 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034626 break 2
34627 fi
34628done
cristy8b350f62009-11-15 23:12:43 +000034629 done
cristy3ed852e2009-09-05 21:47:34 +000034630IFS=$as_save_IFS
34631
34632fi
34633fi
34634TAR=$ac_cv_prog_TAR
34635if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000034636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000034637$as_echo "$TAR" >&6; }
34638else
cristy8b350f62009-11-15 23:12:43 +000034639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034640$as_echo "no" >&6; }
34641fi
34642
34643
34644 test -n "$TAR" && break
34645done
34646
34647for ac_prog in perl
34648do
34649 # Extract the first word of "$ac_prog", so it can be a program name with args.
34650set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034652$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034653if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034654 $as_echo_n "(cached) " >&6
34655else
34656 if test -n "$PERL"; then
34657 ac_cv_prog_PERL="$PERL" # Let the user override the test.
34658else
34659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34660for as_dir in $PATH
34661do
34662 IFS=$as_save_IFS
34663 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034664 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034666 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034668 break 2
34669 fi
34670done
cristy8b350f62009-11-15 23:12:43 +000034671 done
cristy3ed852e2009-09-05 21:47:34 +000034672IFS=$as_save_IFS
34673
34674fi
34675fi
34676PERL=$ac_cv_prog_PERL
34677if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000034678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034679$as_echo "$PERL" >&6; }
34680else
cristy8b350f62009-11-15 23:12:43 +000034681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034682$as_echo "no" >&6; }
34683fi
34684
34685
34686 test -n "$PERL" && break
34687done
34688
34689for ac_prog in rpmbuild rpm
34690do
34691 # Extract the first word of "$ac_prog", so it can be a program name with args.
34692set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034694$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034695if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034696 $as_echo_n "(cached) " >&6
34697else
34698 if test -n "$RPM"; then
34699 ac_cv_prog_RPM="$RPM" # Let the user override the test.
34700else
34701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34702for as_dir in $PATH
34703do
34704 IFS=$as_save_IFS
34705 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034706 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034708 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034710 break 2
34711 fi
34712done
cristy8b350f62009-11-15 23:12:43 +000034713 done
cristy3ed852e2009-09-05 21:47:34 +000034714IFS=$as_save_IFS
34715
34716fi
34717fi
34718RPM=$ac_cv_prog_RPM
34719if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000034720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000034721$as_echo "$RPM" >&6; }
34722else
cristy8b350f62009-11-15 23:12:43 +000034723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034724$as_echo "no" >&6; }
34725fi
34726
34727
34728 test -n "$RPM" && break
34729done
34730
34731
cristy73bd4a52010-10-05 11:24:23 +000034732ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
34733
34734
34735AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
34736
34737
34738AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
34739
34740
34741AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
34742
34743
34744 if test "x$RPM" != "x" ; then
34745 RPM_DELEGATE_TRUE=
34746 RPM_DELEGATE_FALSE='#'
34747else
34748 RPM_DELEGATE_TRUE='#'
34749 RPM_DELEGATE_FALSE=
34750fi
34751
cristy3ed852e2009-09-05 21:47:34 +000034752
34753#
34754# 7ZIP support (http://p7zip.sourceforge.net/)
34755#
34756P7ZIP=''
34757for ac_prog in 7za
34758do
34759 # Extract the first word of "$ac_prog", so it can be a program name with args.
34760set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034762$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034763if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034764 $as_echo_n "(cached) " >&6
34765else
34766 if test -n "$P7ZIP"; then
34767 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
34768else
34769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34770for as_dir in $PATH
34771do
34772 IFS=$as_save_IFS
34773 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034774 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034776 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034778 break 2
34779 fi
34780done
cristy8b350f62009-11-15 23:12:43 +000034781 done
cristy3ed852e2009-09-05 21:47:34 +000034782IFS=$as_save_IFS
34783
34784fi
34785fi
34786P7ZIP=$ac_cv_prog_P7ZIP
34787if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000034788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000034789$as_echo "$P7ZIP" >&6; }
34790else
cristy8b350f62009-11-15 23:12:43 +000034791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034792$as_echo "no" >&6; }
34793fi
34794
34795
34796 test -n "$P7ZIP" && break
34797done
34798
34799
cristy73bd4a52010-10-05 11:24:23 +000034800 if test "x$P7ZIP" != "x" ; then
34801 P7ZIP_DELEGATE_TRUE=
34802 P7ZIP_DELEGATE_FALSE='#'
34803else
34804 P7ZIP_DELEGATE_TRUE='#'
34805 P7ZIP_DELEGATE_FALSE=
34806fi
34807
cristy3ed852e2009-09-05 21:47:34 +000034808
34809#
34810# ZIP support (http://www.info-zip.org/Zip.html)
34811#
34812ZIP=''
34813for ac_prog in zip
34814do
34815 # Extract the first word of "$ac_prog", so it can be a program name with args.
34816set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034818$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034819if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034820 $as_echo_n "(cached) " >&6
34821else
34822 if test -n "$ZIP"; then
34823 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
34824else
34825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34826for as_dir in $PATH
34827do
34828 IFS=$as_save_IFS
34829 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034830 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034832 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034834 break 2
34835 fi
34836done
cristy8b350f62009-11-15 23:12:43 +000034837 done
cristy3ed852e2009-09-05 21:47:34 +000034838IFS=$as_save_IFS
34839
34840fi
34841fi
34842ZIP=$ac_cv_prog_ZIP
34843if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000034844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000034845$as_echo "$ZIP" >&6; }
34846else
cristy8b350f62009-11-15 23:12:43 +000034847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034848$as_echo "no" >&6; }
34849fi
34850
34851
34852 test -n "$ZIP" && break
34853done
34854
34855
cristy73bd4a52010-10-05 11:24:23 +000034856 if test "x$ZIP" != "x" ; then
34857 ZIP_DELEGATE_TRUE=
34858 ZIP_DELEGATE_FALSE='#'
34859else
34860 ZIP_DELEGATE_TRUE='#'
34861 ZIP_DELEGATE_FALSE=
34862fi
34863
cristy3ed852e2009-09-05 21:47:34 +000034864
34865#
34866# GhostPCL related configuration.
34867#
34868PCLColorDevice=ppmraw
cristy8bc84082011-09-07 13:57:00 +000034869PCLCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000034870PCLMonoDevice=pbmraw
34871if test -z "$PCLVersion"; then
34872 PCLVersion='unknown'
34873fi
34874if test $have_pcl = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000034875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
34876$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000034877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034878$as_echo_n "checking for PCL... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000034879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
34880$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034881 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000034882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034883$as_echo_n "checking for pcl color device... " >&6; }
34884 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34885 :
34886 else
34887 PCLColorDevice=ppmraw
34888 fi
cristyad38abe2012-12-23 23:03:21 +000034889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
34890$as_echo "$PCLColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034891
34892 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034894$as_echo_n "checking for pcl CMYK device... " >&6; }
34895 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34896 :
34897 else
34898 PCLCMYKDevice=$PCLColorDevice
34899 fi
cristyad38abe2012-12-23 23:03:21 +000034900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
34901$as_echo "$PCLCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034902
34903 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034905$as_echo_n "checking for pcl mono device... " >&6; }
34906 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34907 :
34908 else
34909 PCLMonoDevice=$PCLColorDevice
34910 fi
cristyad38abe2012-12-23 23:03:21 +000034911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
34912$as_echo "$PCLMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034913fi
34914
34915
34916
34917
34918
34919
34920#
34921# GhostXPS related configuration.
34922#
34923XPSColorDevice=ppmraw
34924XPSCMYKDevice=bmpsep8
34925XPSMonoDevice=pbmraw
34926if test -z "$XPSVersion"; then
34927 XPSVersion='unknown'
34928fi
34929if test $have_xps = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000034930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
34931$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000034932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000034933$as_echo_n "checking for XPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000034934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
34935$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034936 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000034937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034938$as_echo_n "checking for xps color device... " >&6; }
34939 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34940 :
34941 else
34942 XPSColorDevice=ppmraw
34943 fi
cristyad38abe2012-12-23 23:03:21 +000034944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
34945$as_echo "$XPSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034946
34947 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034949$as_echo_n "checking for xps CMYK device... " >&6; }
34950 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34951 :
34952 else
34953 XPSCMYKDevice=$XPSColorDevice
34954 fi
cristyad38abe2012-12-23 23:03:21 +000034955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
34956$as_echo "$XPSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034957
34958 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034960$as_echo_n "checking for xps mono device... " >&6; }
34961 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34962 :
34963 else
34964 XPSMonoDevice=$XPSColorDevice
34965 fi
cristyad38abe2012-12-23 23:03:21 +000034966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
34967$as_echo "$XPSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034968fi
34969
34970
34971
34972
34973
34974
34975#
34976# Ghostscript related configuration.
34977#
cristya97426c2011-02-04 01:41:27 +000034978GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000034979GSColorDevice=pnmraw
34980GSCMYKDevice=pam
34981GSMonoDevice=pbmraw
34982GSPDFDevice=pdfwrite
34983GSPSDevice=pswrite
34984GSEPSDevice=epswrite
34985GSVersion='unknown'
34986if test $have_gs = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000034987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
34988$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000034989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000034990$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000034991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
34992$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000034993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000034994$as_echo_n "checking for Ghostscript version... " >&6; }
34995 if GSVersion=`$PSDelegate --version`; then
34996 :
34997 else
34998 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
34999 fi
cristyad38abe2012-12-23 23:03:21 +000035000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
35001$as_echo "$GSVersion" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035002
35003 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000035004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035005$as_echo_n "checking for gs alpha device... " >&6; }
35006 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35007 :
35008 else
35009 GSAlphaDevice=pnmraw
35010 fi
cristyad38abe2012-12-23 23:03:21 +000035011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
35012$as_echo "$GSAlphaDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035013
35014 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035016$as_echo_n "checking for gs color device... " >&6; }
35017 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35018 :
35019 else
35020 GSColorDevice=pnmraw
35021 fi
cristyad38abe2012-12-23 23:03:21 +000035022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
35023$as_echo "$GSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035024
35025 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035027$as_echo_n "checking for gs CMYK device... " >&6; }
35028 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35029 :
35030 else
35031 GSCMYKDevice=bmpsep8
35032 fi
cristyad38abe2012-12-23 23:03:21 +000035033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
35034$as_echo "$GSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035035
35036 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035038$as_echo_n "checking for gs mono device... " >&6; }
35039 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35040 :
35041 else
35042 GSMonoDevice=$GSColorDevice
35043 fi
cristyad38abe2012-12-23 23:03:21 +000035044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
35045$as_echo "$GSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035046
35047 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000035048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035049$as_echo_n "checking for gs PDF writing device... " >&6; }
35050 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35051 :
35052 else
35053 GSPDFDevice=nodevice
35054 fi
cristyad38abe2012-12-23 23:03:21 +000035055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
35056$as_echo "$GSPDFDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035057
35058 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000035059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035060$as_echo_n "checking for gs PS writing device... " >&6; }
35061 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35062 :
35063 else
35064 GSPSDevice=nodevice
35065 fi
cristyad38abe2012-12-23 23:03:21 +000035066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
35067$as_echo "$GSPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035068
35069 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000035070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035071$as_echo_n "checking for gs EPS writing device... " >&6; }
35072 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35073 :
35074 else
35075 GSEPSDevice=nodevice
35076 fi
cristyad38abe2012-12-23 23:03:21 +000035077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
35078$as_echo "$GSEPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035079fi
35080
35081
35082
35083
35084
35085
35086
35087
35088
35089
35090#
35091# PerlMagick-related configuration
35092#
35093
35094# Look for PERL if PerlMagick requested
35095# If name/path of desired PERL interpreter is specified, look for that one first
35096have_perl='no'
35097if test "$with_perl" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000035098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35099$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035101$as_echo_n "checking for Perl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35103$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035104 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035106$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035107if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035108 $as_echo_n "(cached) " >&6
35109else
35110 ac_cv_path_PERL="$with_perl"
35111fi
cristy8b350f62009-11-15 23:12:43 +000035112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035113$as_echo "$ac_cv_path_PERL" >&6; };
35114 PERL=$ac_cv_path_PERL
35115 have_perl="$ac_cv_path_PERL"
35116 else
35117 for ac_prog in perl perl5
35118do
35119 # Extract the first word of "$ac_prog", so it can be a program name with args.
35120set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035122$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035123if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035124 $as_echo_n "(cached) " >&6
35125else
35126 case $PERL in
35127 [\\/]* | ?:[\\/]*)
35128 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
35129 ;;
35130 *)
35131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35132for as_dir in $PATH
35133do
35134 IFS=$as_save_IFS
35135 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035136 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035138 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035140 break 2
35141 fi
35142done
cristy8b350f62009-11-15 23:12:43 +000035143 done
cristy3ed852e2009-09-05 21:47:34 +000035144IFS=$as_save_IFS
35145
35146 ;;
35147esac
35148fi
35149PERL=$ac_cv_path_PERL
35150if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000035151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035152$as_echo "$PERL" >&6; }
35153else
cristy8b350f62009-11-15 23:12:43 +000035154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035155$as_echo "no" >&6; }
35156fi
35157
35158
35159 test -n "$PERL" && break
35160done
35161 if test "$ac_cv_path_PERL"; then
35162 have_perl="$ac_cv_path_PERL"
35163 fi
35164 fi
35165fi
35166
cristy949301e2010-01-06 01:38:40 +000035167if test "$with_perl" != 'yes' ; then
35168 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
35169fi
35170
35171PERL_SUPPORTS_DESTDIR='no'
35172
cristy3ed852e2009-09-05 21:47:34 +000035173with_perl_static='no'
35174with_perl_dynamic='no'
35175if test "$have_perl" != 'no'; then
35176 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
35177 with_perl_static='yes'
35178 fi
35179 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
35180 with_perl_dynamic='yes'
35181 fi
35182 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000035183
35184
35185
35186
35187 if test -n "$PERL"; then :
35188
35189 ax_perl_version="5.8.1"
35190
35191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
35192$as_echo_n "checking for perl version... " >&6; }
35193
35194 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
35195
35196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
35197$as_echo "$perl_version" >&6; }
35198
35199 PERL_VERSION=$perl_version
35200
35201
35202
35203
35204
35205 # Used to indicate true or false condition
35206 ax_compare_version=false
35207
35208 # Convert the two version strings to be compared into a format that
35209 # allows a simple string comparison. The end result is that a version
35210 # string of the form 1.12.5-r617 will be converted to the form
35211 # 0001001200050617. In other words, each number is zero padded to four
35212 # digits, and non digits are removed.
35213
35214 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35215 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35216 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35217 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35218 -e 's/[^0-9]//g'`
35219
35220
35221 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35222 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35223 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35224 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35225 -e 's/[^0-9]//g'`
35226
35227
35228 ax_compare_version=`echo "x$ax_compare_version_A
35229x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
35230
35231
35232
35233 if test "$ax_compare_version" = "true" ; then
35234
35235 :
35236 PERL_SUPPORTS_DESTDIR='yes'
35237
35238 else
35239 :
35240 PERL_SUPPORTS_DESTDIR='no'
35241
35242 fi
35243
35244
35245else
35246
35247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
35248$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
35249 PERL_SUPPORTS_DESTDIR='no'
35250
cristy3ed852e2009-09-05 21:47:34 +000035251fi
cristy73bd4a52010-10-05 11:24:23 +000035252
35253fi
35254 if test "$have_perl" != 'no'; then
35255 WITH_PERL_TRUE=
35256 WITH_PERL_FALSE='#'
35257else
35258 WITH_PERL_TRUE='#'
35259 WITH_PERL_FALSE=
35260fi
35261
35262 if test $with_perl_static = 'yes'; then
35263 WITH_PERL_STATIC_TRUE=
35264 WITH_PERL_STATIC_FALSE='#'
35265else
35266 WITH_PERL_STATIC_TRUE='#'
35267 WITH_PERL_STATIC_FALSE=
35268fi
35269
35270 if test $with_perl_dynamic = 'yes'; then
35271 WITH_PERL_DYNAMIC_TRUE=
35272 WITH_PERL_DYNAMIC_FALSE='#'
35273else
35274 WITH_PERL_DYNAMIC_TRUE='#'
35275 WITH_PERL_DYNAMIC_FALSE=
35276fi
35277
cristy3ed852e2009-09-05 21:47:34 +000035278
35279
35280# Determine path to pick up MagickCore library from for use with building PerlMagick
35281MAGICKCORE_PATH="${LIB_DIR}"
35282if test $with_perl_static = 'yes'; then
35283 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
35284 libtool_objdir=$objdir
35285
35286 # Linker search path to library, followed by -lMagickCore
cristy4c08aed2011-07-01 19:47:50 +000035287 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
cristy3ed852e2009-09-05 21:47:34 +000035288fi
35289
35290
cristy2a3eb392012-12-17 13:39:20 +000035291# Create a simple string containing format names for all delegate libraries.
cristy422d5502012-12-22 22:20:57 +000035292MAGICK_DELEGATES=''
cristy2a3eb392012-12-17 13:39:20 +000035293if test "$have_autotrace" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035294 MAGICK_DELEGATES="$MAGICK_DELEGATES autotrace"
cristy3ed852e2009-09-05 21:47:34 +000035295fi
cristy2a3eb392012-12-17 13:39:20 +000035296if test "$have_bzlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035297 MAGICK_DELEGATES="$MAGICK_DELEGATES bzlib"
cristy2a3eb392012-12-17 13:39:20 +000035298fi
35299if test "$have_dps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035300 MAGICK_DELEGATES="$MAGICK_DELEGATES dps"
cristy2a3eb392012-12-17 13:39:20 +000035301fi
35302if test "$have_djvu" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035303 MAGICK_DELEGATES="$MAGICK_DELEGATES djvu"
cristy2a3eb392012-12-17 13:39:20 +000035304fi
35305if test "$have_ffmpeg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035306 MAGICK_DELEGATES="$MAGICK_DELEGATES mpeg"
cristy2a3eb392012-12-17 13:39:20 +000035307fi
35308if test "$have_fftw" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035309 MAGICK_DELEGATES="$MAGICK_DELEGATES fftw"
cristy2a3eb392012-12-17 13:39:20 +000035310fi
35311if test "$have_fig2dev" = 'yes' && test "$have_ps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035312 MAGICK_DELEGATES="$MAGICK_DELEGATES xfig"
cristy2a3eb392012-12-17 13:39:20 +000035313fi
35314if test "$have_fpx" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035315 MAGICK_DELEGATES="$MAGICK_DELEGATES fpx"
cristy2a3eb392012-12-17 13:39:20 +000035316fi
35317if test "$have_fontconfig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035318 MAGICK_DELEGATES="$MAGICK_DELEGATES fontconfig"
cristy2a3eb392012-12-17 13:39:20 +000035319fi
35320if test "$have_freetype" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035321 MAGICK_DELEGATES="$MAGICK_DELEGATES freetype"
cristy2a3eb392012-12-17 13:39:20 +000035322fi
35323if test "$have_gslib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035324 MAGICK_DELEGATES="$MAGICK_DELEGATES gslib"
cristy2a3eb392012-12-17 13:39:20 +000035325fi
35326if test "$have_jbig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035327 MAGICK_DELEGATES="$MAGICK_DELEGATES jbig"
cristy2a3eb392012-12-17 13:39:20 +000035328fi
35329if test "$have_png$have_jpeg" = 'yesyes' ; then
cristy422d5502012-12-22 22:20:57 +000035330 MAGICK_DELEGATES="$MAGICK_DELEGATES jng"
cristy2a3eb392012-12-17 13:39:20 +000035331fi
35332if test "$have_jp2" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035333 MAGICK_DELEGATES="$MAGICK_DELEGATES jp2"
cristy2a3eb392012-12-17 13:39:20 +000035334fi
35335if test "$have_jpeg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035336 MAGICK_DELEGATES="$MAGICK_DELEGATES jpeg"
cristy2a3eb392012-12-17 13:39:20 +000035337fi
35338if test "$have_lcms" = 'yes' || test "$have_lcms2" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035339 MAGICK_DELEGATES="$MAGICK_DELEGATES lcms"
cristy2a3eb392012-12-17 13:39:20 +000035340fi
35341if test "$have_lqr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035342 MAGICK_DELEGATES="$MAGICK_DELEGATES lqr"
cristy2a3eb392012-12-17 13:39:20 +000035343fi
35344if test "$have_lzma" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035345 MAGICK_DELEGATES="$MAGICK_DELEGATES lzma"
cristy2a3eb392012-12-17 13:39:20 +000035346fi
35347if test "$have_openexr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035348 MAGICK_DELEGATES="$MAGICK_DELEGATES openexr"
cristy2a3eb392012-12-17 13:39:20 +000035349fi
35350if test "$have_pango" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035351 MAGICK_DELEGATES="$MAGICK_DELEGATES pango"
cristy2a3eb392012-12-17 13:39:20 +000035352fi
35353if test "$have_png" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035354 MAGICK_DELEGATES="$MAGICK_DELEGATES png"
cristy2a3eb392012-12-17 13:39:20 +000035355fi
35356have_ps='no'
35357if test "$have_dps" = 'yes' || \
35358 test "$have_gs" = 'yes' || \
35359 test "${native_win32_build}" = 'yes' ; then
35360 have_ps='yes'
35361fi
35362if test "$have_ps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035363 MAGICK_DELEGATES="$MAGICK_DELEGATES ps"
cristy2a3eb392012-12-17 13:39:20 +000035364fi
35365if test "$have_ralcgm" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035366 MAGICK_DELEGATES="$MAGICK_DELEGATES cgm"
cristy2a3eb392012-12-17 13:39:20 +000035367fi
35368if test "$have_ra_ppm" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035369 MAGICK_DELEGATES="$MAGICK_DELEGATES rad"
cristy2a3eb392012-12-17 13:39:20 +000035370fi
35371if test "$have_rsvg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035372 MAGICK_DELEGATES="$MAGICK_DELEGATES rsvg"
cristy2a3eb392012-12-17 13:39:20 +000035373fi
35374if test "$have_tiff" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035375 MAGICK_DELEGATES="$MAGICK_DELEGATES tiff"
cristy2a3eb392012-12-17 13:39:20 +000035376fi
35377if test "$have_ttf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035378 MAGICK_DELEGATES="$MAGICK_DELEGATES ttf"
cristy2a3eb392012-12-17 13:39:20 +000035379fi
35380if test "$have_wmf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035381 MAGICK_DELEGATES="$MAGICK_DELEGATES wmf"
cristy2a3eb392012-12-17 13:39:20 +000035382fi
35383if test "$have_x" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035384 MAGICK_DELEGATES="$MAGICK_DELEGATES x"
cristy2a3eb392012-12-17 13:39:20 +000035385fi
35386if test "$have_xml" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035387 MAGICK_DELEGATES="$MAGICK_DELEGATES xml"
cristy2a3eb392012-12-17 13:39:20 +000035388fi
35389if test "$have_zlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035390 MAGICK_DELEGATES="$MAGICK_DELEGATES zlib"
cristy2a3eb392012-12-17 13:39:20 +000035391fi
cristy2a3eb392012-12-17 13:39:20 +000035392# Remove extraneous spaces from output variables (asthetic)
cristy422d5502012-12-22 22:20:57 +000035393MAGICK_DELEGATES=`echo $MAGICK_DELEGATES | sed -e 's/ */ /g'`
cristy2a3eb392012-12-17 13:39:20 +000035394MAGICK_FEATURES=`echo $MAGICK_FEATURES | sed -e 's/ */ /g'`
cristy3ed852e2009-09-05 21:47:34 +000035395
35396
cristyfa161182012-12-19 15:45:28 +000035397
cristy3ed852e2009-09-05 21:47:34 +000035398#
35399# Handle special compiler flags
35400#
35401
35402# Add '-p' if prof source profiling support enabled
35403if test "$enable_prof" = 'yes'; then
35404 CFLAGS="-p $CFLAGS"
35405 CXXFLAGS="-p $CXXFLAGS"
35406 LDFLAGS="-p $LDFLAGS"
35407fi
35408
35409# Add '-pg' if gprof source profiling support enabled
35410if test "$enable_gprof" = 'yes'; then
35411 CFLAGS="-pg $CFLAGS"
35412 CXXFLAGS="-pg $CXXFLAGS"
35413 LDFLAGS="-pg $LDFLAGS"
35414fi
35415
35416# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
35417# This is a gcc-specific feature
35418if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035420$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035421if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035422 $as_echo_n "(cached) " >&6
35423else
35424 ac_check_lib_save_LIBS=$LIBS
35425LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035426cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035427/* end confdefs.h. */
35428
35429/* Override any GCC internal prototype to avoid an error.
35430 Use char because int might match the return type of a GCC
35431 builtin and then its argument prototype would still apply. */
35432#ifdef __cplusplus
35433extern "C"
35434#endif
35435char _gcov_init ();
35436int
35437main ()
35438{
35439return _gcov_init ();
35440 ;
35441 return 0;
35442}
35443_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035444if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035445 ac_cv_lib_gcov__gcov_init=yes
35446else
cristy8b350f62009-11-15 23:12:43 +000035447 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035448fi
cristy8b350f62009-11-15 23:12:43 +000035449rm -f core conftest.err conftest.$ac_objext \
35450 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035451LIBS=$ac_check_lib_save_LIBS
35452fi
cristy8b350f62009-11-15 23:12:43 +000035453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035454$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035455if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035456 cat >>confdefs.h <<_ACEOF
35457#define HAVE_LIBGCOV 1
35458_ACEOF
35459
35460 LIBS="-lgcov $LIBS"
35461
35462fi
35463
cristy8b350f62009-11-15 23:12:43 +000035464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035465$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035466if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035467 $as_echo_n "(cached) " >&6
35468else
35469 ac_check_lib_save_LIBS=$LIBS
35470LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035471cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035472/* end confdefs.h. */
35473
35474/* Override any GCC internal prototype to avoid an error.
35475 Use char because int might match the return type of a GCC
35476 builtin and then its argument prototype would still apply. */
35477#ifdef __cplusplus
35478extern "C"
35479#endif
35480char __gcov_init ();
35481int
35482main ()
35483{
35484return __gcov_init ();
35485 ;
35486 return 0;
35487}
35488_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035489if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035490 ac_cv_lib_gcov___gcov_init=yes
35491else
cristy8b350f62009-11-15 23:12:43 +000035492 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035493fi
cristy8b350f62009-11-15 23:12:43 +000035494rm -f core conftest.err conftest.$ac_objext \
35495 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035496LIBS=$ac_check_lib_save_LIBS
35497fi
cristy8b350f62009-11-15 23:12:43 +000035498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035499$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035500if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035501 cat >>confdefs.h <<_ACEOF
35502#define HAVE_LIBGCOV 1
35503_ACEOF
35504
35505 LIBS="-lgcov $LIBS"
35506
35507fi
35508
35509 case "$target_os" in
35510 darwin*)
35511 OSX_GCOV_LDFLAG="-Wl,-single_module"
35512 ;;
35513 *)
35514 OSX_GCOV_LDFLAG=""
35515 ;;
35516 esac
35517
35518 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
35519 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
35520 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
35521fi
35522
35523#
35524# Build library dependency list for libMagickCore
35525#
35526
cristyc6722092012-10-14 00:19:31 +000035527if test "$build_modules" != 'no'; then
cristy5eef09f2012-10-16 12:08:28 +000035528 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 +000035529else
cristy3a75f062012-09-08 23:29:40 +000035530 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 +000035531fi
35532
35533
35534#
35535# Remove extraneous spaces from output variables (asthetic)
35536#
35537X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
35538X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
35539X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
35540X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
35541
35542CC=`echo $CC | sed -e 's/ */ /g'`
35543CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
35544CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
35545CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
cristy3ed852e2009-09-05 21:47:34 +000035546DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
35547LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
35548TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35549MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
35550#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35551
35552# Pass only user-provided LIBS as "global" libraries
35553LIBS=$USER_LIBS
35554
35555#AC_SUBST(CPPFLAGS)
35556
35557#AC_SUBST(LDFLAGS)
35558#AC_SUBST(X_PRE_LIBS)
35559#AC_SUBST(X_LIBS)
35560#AC_SUBST(X_EXTRA_LIBS)
35561
35562MAGICK_CFLAGS=$CFLAGS
35563MAGICK_CXXFLAGS="$CXXFLAGS"
35564MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
35565MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
35566MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
cristyc6722092012-10-14 00:19:31 +000035567MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000035568
35569
35570
35571
35572
35573
35574
35575
35576# Set configured scripts to executable.
35577ac_config_commands="$ac_config_commands default"
35578
cristy2bd4b6e2012-07-22 15:29:11 +000035579ac_config_commands="$ac_config_commands magick.sh.in"
35580
cristy3ed852e2009-09-05 21:47:34 +000035581ac_config_commands="$ac_config_commands MagickCore-config.in"
35582
cristy3ed852e2009-09-05 21:47:34 +000035583ac_config_commands="$ac_config_commands MagickWand-config.in"
35584
cristy3ed852e2009-09-05 21:47:34 +000035585ac_config_commands="$ac_config_commands Magick++-config.in"
35586
35587ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
35588
35589
cristyad38abe2012-12-23 23:03:21 +000035590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35591$as_echo "-------------------------------------------------------------" >&6; }
35592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
35593$as_echo "Update ImageMagick configuration" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035594cat >confcache <<\_ACEOF
35595# This file is a shell script that caches the results of configure
35596# tests run on this system so they can be shared between configure
35597# scripts and configure runs, see configure's option --config-cache.
35598# It is not useful on other systems. If it contains results you don't
35599# want to keep, you may remove or edit it.
35600#
35601# config.status only pays attention to the cache file if you give it
35602# the --recheck option to rerun configure.
35603#
35604# `ac_cv_env_foo' variables (set or unset) will be overridden when
35605# loading this file, other *unset* `ac_cv_foo' will be assigned the
35606# following values.
35607
35608_ACEOF
35609
35610# The following way of writing the cache mishandles newlines in values,
35611# but we know of no workaround that is simple, portable, and efficient.
35612# So, we kill variables containing newlines.
35613# Ultrix sh set writes to stderr and can't be redirected directly,
35614# and sets the high bit in the cache file unless we assign to the vars.
35615(
35616 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35617 eval ac_val=\$$ac_var
35618 case $ac_val in #(
35619 *${as_nl}*)
35620 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000035621 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000035622$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
35623 esac
35624 case $ac_var in #(
35625 _ | IFS | as_nl) ;; #(
35626 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000035627 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000035628 esac ;;
35629 esac
35630 done
35631
35632 (set) 2>&1 |
35633 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35634 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000035635 # `set' does not quote correctly, so add quotes: double-quote
35636 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000035637 sed -n \
35638 "s/'/'\\\\''/g;
35639 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35640 ;; #(
35641 *)
35642 # `set' quotes correctly as required by POSIX, so do not add quotes.
35643 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35644 ;;
35645 esac |
35646 sort
35647) |
35648 sed '
35649 /^ac_cv_env_/b end
35650 t clear
35651 :clear
35652 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35653 t end
35654 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35655 :end' >>confcache
35656if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35657 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000035658 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000035659 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035660$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000035661 if test ! -f "$cache_file" || test -h "$cache_file"; then
35662 cat confcache >"$cache_file"
35663 else
35664 case $cache_file in #(
35665 */* | ?:*)
35666 mv -f confcache "$cache_file"$$ &&
35667 mv -f "$cache_file"$$ "$cache_file" ;; #(
35668 *)
35669 mv -f confcache "$cache_file" ;;
35670 esac
35671 fi
35672 fi
cristy3ed852e2009-09-05 21:47:34 +000035673 else
cristy8b350f62009-11-15 23:12:43 +000035674 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035675$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35676 fi
35677fi
35678rm -f confcache
35679
35680test "x$prefix" = xNONE && prefix=$ac_default_prefix
35681# Let make expand exec_prefix.
35682test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35683
35684DEFS=-DHAVE_CONFIG_H
35685
35686ac_libobjs=
35687ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000035688U=
cristy3ed852e2009-09-05 21:47:34 +000035689for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35690 # 1. Remove the extension, and $U if already installed.
35691 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35692 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
35693 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35694 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000035695 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35696 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000035697done
35698LIBOBJS=$ac_libobjs
35699
35700LTLIBOBJS=$ac_ltlibobjs
35701
35702
cristyc0890a62012-07-19 00:18:20 +000035703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
35704$as_echo_n "checking that generated files are newer than configure... " >&6; }
35705 if test -n "$am_sleep_pid"; then
35706 # Hide warnings about reused PIDs.
35707 wait $am_sleep_pid 2>/dev/null
35708 fi
35709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
35710$as_echo "done" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000035711 if test -n "$EXEEXT"; then
35712 am__EXEEXT_TRUE=
35713 am__EXEEXT_FALSE='#'
35714else
35715 am__EXEEXT_TRUE='#'
35716 am__EXEEXT_FALSE=
35717fi
cristy3ed852e2009-09-05 21:47:34 +000035718
cristy73bd4a52010-10-05 11:24:23 +000035719if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035720 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035721Usually this means the macro was only invoked conditionally." "$LINENO" 5
35722fi
35723if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035724 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035725Usually this means the macro was only invoked conditionally." "$LINENO" 5
35726fi
35727if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035728 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035729Usually this means the macro was only invoked conditionally." "$LINENO" 5
35730fi
35731if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035732 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035733Usually this means the macro was only invoked conditionally." "$LINENO" 5
35734fi
cristy9b86f202012-11-28 21:55:35 +000035735if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
35736 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
35737Usually this means the macro was only invoked conditionally." "$LINENO" 5
35738fi
cristy73bd4a52010-10-05 11:24:23 +000035739if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035740 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035741Usually this means the macro was only invoked conditionally." "$LINENO" 5
35742fi
35743if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035744 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035745Usually this means the macro was only invoked conditionally." "$LINENO" 5
35746fi
35747if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035748 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035749Usually this means the macro was only invoked conditionally." "$LINENO" 5
35750fi
35751if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035752 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035753Usually this means the macro was only invoked conditionally." "$LINENO" 5
35754fi
cristy73bd4a52010-10-05 11:24:23 +000035755if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035756 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035757Usually this means the macro was only invoked conditionally." "$LINENO" 5
35758fi
35759if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035760 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035761Usually this means the macro was only invoked conditionally." "$LINENO" 5
35762fi
cristy73bd4a52010-10-05 11:24:23 +000035763if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035764 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035765Usually this means the macro was only invoked conditionally." "$LINENO" 5
35766fi
cristy71d8c202012-03-20 17:05:01 +000035767if test -z "${LEGACY_SUPPORT_TRUE}" && test -z "${LEGACY_SUPPORT_FALSE}"; then
35768 as_fn_error $? "conditional \"LEGACY_SUPPORT\" was never defined.
35769Usually this means the macro was only invoked conditionally." "$LINENO" 5
35770fi
cristy73bd4a52010-10-05 11:24:23 +000035771
35772if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035773 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035774Usually this means the macro was only invoked conditionally." "$LINENO" 5
35775fi
35776if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035777 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035778Usually this means the macro was only invoked conditionally." "$LINENO" 5
35779fi
35780if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035781 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035782Usually this means the macro was only invoked conditionally." "$LINENO" 5
35783fi
35784if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035785 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035786Usually this means the macro was only invoked conditionally." "$LINENO" 5
35787fi
35788if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035789 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035790Usually this means the macro was only invoked conditionally." "$LINENO" 5
35791fi
35792if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035793 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035794Usually this means the macro was only invoked conditionally." "$LINENO" 5
35795fi
cristy5eef09f2012-10-16 12:08:28 +000035796if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
35797 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
35798Usually this means the macro was only invoked conditionally." "$LINENO" 5
35799fi
cristy73bd4a52010-10-05 11:24:23 +000035800if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035801 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035802Usually this means the macro was only invoked conditionally." "$LINENO" 5
35803fi
35804if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035805 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035806Usually this means the macro was only invoked conditionally." "$LINENO" 5
35807fi
35808if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035809 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035810Usually this means the macro was only invoked conditionally." "$LINENO" 5
35811fi
35812if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035813 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035814Usually this means the macro was only invoked conditionally." "$LINENO" 5
35815fi
35816if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035817 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035818Usually this means the macro was only invoked conditionally." "$LINENO" 5
35819fi
35820if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035821 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035822Usually this means the macro was only invoked conditionally." "$LINENO" 5
35823fi
35824if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035825 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035826Usually this means the macro was only invoked conditionally." "$LINENO" 5
35827fi
35828if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035829 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035830Usually this means the macro was only invoked conditionally." "$LINENO" 5
35831fi
35832if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035833 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035834Usually this means the macro was only invoked conditionally." "$LINENO" 5
35835fi
35836if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035837 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035838Usually this means the macro was only invoked conditionally." "$LINENO" 5
35839fi
35840if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035841 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035842Usually this means the macro was only invoked conditionally." "$LINENO" 5
35843fi
35844if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035845 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035846Usually this means the macro was only invoked conditionally." "$LINENO" 5
35847fi
35848if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035849 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035850Usually this means the macro was only invoked conditionally." "$LINENO" 5
35851fi
35852if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035853 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035854Usually this means the macro was only invoked conditionally." "$LINENO" 5
35855fi
cristyfbb0ef02010-12-19 02:32:11 +000035856if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
35857 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
35858Usually this means the macro was only invoked conditionally." "$LINENO" 5
35859fi
cristy73bd4a52010-10-05 11:24:23 +000035860if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035861 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035862Usually this means the macro was only invoked conditionally." "$LINENO" 5
35863fi
cristy41cbe8a2011-10-27 01:35:18 +000035864if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
35865 as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
35866Usually this means the macro was only invoked conditionally." "$LINENO" 5
35867fi
cristya054b762012-03-26 23:16:00 +000035868if test -z "${PANGOCAIRO_DELEGATE_TRUE}" && test -z "${PANGOCAIRO_DELEGATE_FALSE}"; then
35869 as_fn_error $? "conditional \"PANGOCAIRO_DELEGATE\" was never defined.
cristy41cbe8a2011-10-27 01:35:18 +000035870Usually this means the macro was only invoked conditionally." "$LINENO" 5
35871fi
cristy73bd4a52010-10-05 11:24:23 +000035872if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035873 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035874Usually this means the macro was only invoked conditionally." "$LINENO" 5
35875fi
35876if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035877 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035878Usually this means the macro was only invoked conditionally." "$LINENO" 5
35879fi
35880if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035881 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035882Usually this means the macro was only invoked conditionally." "$LINENO" 5
35883fi
35884if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035885 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035886Usually this means the macro was only invoked conditionally." "$LINENO" 5
35887fi
cristyb1860752011-03-14 00:27:46 +000035888if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
35889 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
35890Usually this means the macro was only invoked conditionally." "$LINENO" 5
35891fi
cristy73bd4a52010-10-05 11:24:23 +000035892if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035893 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035894Usually this means the macro was only invoked conditionally." "$LINENO" 5
35895fi
35896if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035897 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035898Usually this means the macro was only invoked conditionally." "$LINENO" 5
35899fi
35900if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035901 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035902Usually this means the macro was only invoked conditionally." "$LINENO" 5
35903fi
35904if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035905 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035906Usually this means the macro was only invoked conditionally." "$LINENO" 5
35907fi
35908if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035909 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035910Usually this means the macro was only invoked conditionally." "$LINENO" 5
35911fi
35912if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035913 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035914Usually this means the macro was only invoked conditionally." "$LINENO" 5
35915fi
35916if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035917 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035918Usually this means the macro was only invoked conditionally." "$LINENO" 5
35919fi
35920if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035921 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035922Usually this means the macro was only invoked conditionally." "$LINENO" 5
35923fi
cristy3ed852e2009-09-05 21:47:34 +000035924
cristyda16f162011-02-19 23:52:17 +000035925: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000035926ac_write_fail=0
35927ac_clean_files_save=$ac_clean_files
35928ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000035929{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000035930$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035931as_write_fail=0
35932cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000035933#! $SHELL
35934# Generated by $as_me.
35935# Run this file to recreate the current configuration.
35936# Compiler output produced by configure, useful for debugging
35937# configure, is in config.log if it exists.
35938
35939debug=false
35940ac_cs_recheck=false
35941ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000035942
cristy8b350f62009-11-15 23:12:43 +000035943SHELL=\${CONFIG_SHELL-$SHELL}
35944export SHELL
35945_ASEOF
35946cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
35947## -------------------- ##
35948## M4sh Initialization. ##
35949## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000035950
35951# Be more Bourne compatible
35952DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000035953if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000035954 emulate sh
35955 NULLCMD=:
35956 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
35957 # is contrary to our usage. Disable this feature.
35958 alias -g '${1+"$@"}'='"$@"'
35959 setopt NO_GLOB_SUBST
35960else
cristy8b350f62009-11-15 23:12:43 +000035961 case `(set -o) 2>/dev/null` in #(
35962 *posix*) :
35963 set -o posix ;; #(
35964 *) :
35965 ;;
cristy3ed852e2009-09-05 21:47:34 +000035966esac
cristy3ed852e2009-09-05 21:47:34 +000035967fi
35968
35969
cristy3ed852e2009-09-05 21:47:34 +000035970as_nl='
35971'
35972export as_nl
35973# Printing a long string crashes Solaris 7 /usr/bin/printf.
35974as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
35975as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
35976as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000035977# Prefer a ksh shell builtin over an external printf program on Solaris,
35978# but without wasting forks for bash or zsh.
35979if test -z "$BASH_VERSION$ZSH_VERSION" \
35980 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
35981 as_echo='print -r --'
35982 as_echo_n='print -rn --'
35983elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000035984 as_echo='printf %s\n'
35985 as_echo_n='printf %s'
35986else
35987 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
35988 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
35989 as_echo_n='/usr/ucb/echo -n'
35990 else
35991 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
35992 as_echo_n_body='eval
35993 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000035994 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000035995 *"$as_nl"*)
35996 expr "X$arg" : "X\\(.*\\)$as_nl";
35997 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
35998 esac;
35999 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
36000 '
36001 export as_echo_n_body
36002 as_echo_n='sh -c $as_echo_n_body as_echo'
36003 fi
36004 export as_echo_body
36005 as_echo='sh -c $as_echo_body as_echo'
36006fi
36007
36008# The user is always right.
36009if test "${PATH_SEPARATOR+set}" != set; then
36010 PATH_SEPARATOR=:
36011 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
36012 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
36013 PATH_SEPARATOR=';'
36014 }
36015fi
36016
cristy3ed852e2009-09-05 21:47:34 +000036017
36018# IFS
36019# We need space, tab and new line, in precisely that order. Quoting is
36020# there to prevent editors from complaining about space-tab.
36021# (If _AS_PATH_WALK were called with IFS unset, it would disable word
36022# splitting by setting IFS to empty value.)
36023IFS=" "" $as_nl"
36024
36025# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000036026as_myself=
cristy8b350f62009-11-15 23:12:43 +000036027case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000036028 *[\\/]* ) as_myself=$0 ;;
36029 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36030for as_dir in $PATH
36031do
36032 IFS=$as_save_IFS
36033 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000036034 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
36035 done
cristy3ed852e2009-09-05 21:47:34 +000036036IFS=$as_save_IFS
36037
36038 ;;
36039esac
36040# We did not find ourselves, most probably we were run as `sh COMMAND'
36041# in which case we are not to be found in the path.
36042if test "x$as_myself" = x; then
36043 as_myself=$0
36044fi
36045if test ! -f "$as_myself"; then
36046 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000036047 exit 1
cristy3ed852e2009-09-05 21:47:34 +000036048fi
36049
cristy8b350f62009-11-15 23:12:43 +000036050# Unset variables that we do not need and which cause bugs (e.g. in
36051# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
36052# suppresses any "Segmentation fault" message there. '((' could
36053# trigger a bug in pdksh 5.2.14.
36054for as_var in BASH_ENV ENV MAIL MAILPATH
36055do eval test x\${$as_var+set} = xset \
36056 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000036057done
36058PS1='$ '
36059PS2='> '
36060PS4='+ '
36061
36062# NLS nuisances.
36063LC_ALL=C
36064export LC_ALL
36065LANGUAGE=C
36066export LANGUAGE
36067
cristy8b350f62009-11-15 23:12:43 +000036068# CDPATH.
36069(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36070
36071
cristy98dddb52010-11-04 00:30:15 +000036072# as_fn_error STATUS ERROR [LINENO LOG_FD]
36073# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000036074# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
36075# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000036076# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000036077as_fn_error ()
36078{
cristy98dddb52010-11-04 00:30:15 +000036079 as_status=$1; test $as_status -eq 0 && as_status=1
36080 if test "$4"; then
36081 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
36082 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000036083 fi
cristy98dddb52010-11-04 00:30:15 +000036084 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000036085 as_fn_exit $as_status
36086} # as_fn_error
36087
36088
36089# as_fn_set_status STATUS
36090# -----------------------
36091# Set $? to STATUS, without forking.
36092as_fn_set_status ()
36093{
36094 return $1
36095} # as_fn_set_status
36096
36097# as_fn_exit STATUS
36098# -----------------
36099# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
36100as_fn_exit ()
36101{
36102 set +e
36103 as_fn_set_status $1
36104 exit $1
36105} # as_fn_exit
36106
36107# as_fn_unset VAR
36108# ---------------
36109# Portably unset VAR.
36110as_fn_unset ()
36111{
36112 { eval $1=; unset $1;}
36113}
36114as_unset=as_fn_unset
36115# as_fn_append VAR VALUE
36116# ----------------------
36117# Append the text in VALUE to the end of the definition contained in VAR. Take
36118# advantage of any shell optimizations that allow amortized linear growth over
36119# repeated appends, instead of the typical quadratic growth present in naive
36120# implementations.
36121if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
36122 eval 'as_fn_append ()
36123 {
36124 eval $1+=\$2
36125 }'
36126else
36127 as_fn_append ()
36128 {
36129 eval $1=\$$1\$2
36130 }
36131fi # as_fn_append
36132
36133# as_fn_arith ARG...
36134# ------------------
36135# Perform arithmetic evaluation on the ARGs, and store the result in the
36136# global $as_val. Take advantage of shells that can avoid forks. The arguments
36137# must be portable across $(()) and expr.
36138if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
36139 eval 'as_fn_arith ()
36140 {
36141 as_val=$(( $* ))
36142 }'
36143else
36144 as_fn_arith ()
36145 {
36146 as_val=`expr "$@" || test $? -eq 1`
36147 }
36148fi # as_fn_arith
36149
36150
cristy3ed852e2009-09-05 21:47:34 +000036151if expr a : '\(a\)' >/dev/null 2>&1 &&
36152 test "X`expr 00001 : '.*\(...\)'`" = X001; then
36153 as_expr=expr
36154else
36155 as_expr=false
36156fi
36157
36158if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
36159 as_basename=basename
36160else
36161 as_basename=false
36162fi
36163
cristy8b350f62009-11-15 23:12:43 +000036164if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
36165 as_dirname=dirname
36166else
36167 as_dirname=false
36168fi
cristy3ed852e2009-09-05 21:47:34 +000036169
cristy3ed852e2009-09-05 21:47:34 +000036170as_me=`$as_basename -- "$0" ||
36171$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
36172 X"$0" : 'X\(//\)$' \| \
36173 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
36174$as_echo X/"$0" |
36175 sed '/^.*\/\([^/][^/]*\)\/*$/{
36176 s//\1/
36177 q
36178 }
36179 /^X\/\(\/\/\)$/{
36180 s//\1/
36181 q
36182 }
36183 /^X\/\(\/\).*/{
36184 s//\1/
36185 q
36186 }
36187 s/.*/./; q'`
36188
cristy8b350f62009-11-15 23:12:43 +000036189# Avoid depending upon Character Ranges.
36190as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36191as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36192as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36193as_cr_digits='0123456789'
36194as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000036195
36196ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000036197case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000036198-n*)
cristy8b350f62009-11-15 23:12:43 +000036199 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000036200 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000036201 xy) ECHO_C='\c';;
36202 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
36203 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000036204 esac;;
36205*)
36206 ECHO_N='-n';;
36207esac
cristy3ed852e2009-09-05 21:47:34 +000036208
36209rm -f conf$$ conf$$.exe conf$$.file
36210if test -d conf$$.dir; then
36211 rm -f conf$$.dir/conf$$.file
36212else
36213 rm -f conf$$.dir
36214 mkdir conf$$.dir 2>/dev/null
36215fi
36216if (echo >conf$$.file) 2>/dev/null; then
36217 if ln -s conf$$.file conf$$ 2>/dev/null; then
36218 as_ln_s='ln -s'
36219 # ... but there are two gotchas:
36220 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
36221 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cristy14fefe52012-05-21 00:59:18 +000036222 # In both cases, we have to default to `cp -pR'.
cristy3ed852e2009-09-05 21:47:34 +000036223 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cristy14fefe52012-05-21 00:59:18 +000036224 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036225 elif ln conf$$.file conf$$ 2>/dev/null; then
36226 as_ln_s=ln
36227 else
cristy14fefe52012-05-21 00:59:18 +000036228 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036229 fi
36230else
cristy14fefe52012-05-21 00:59:18 +000036231 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036232fi
36233rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
36234rmdir conf$$.dir 2>/dev/null
36235
cristy8b350f62009-11-15 23:12:43 +000036236
36237# as_fn_mkdir_p
36238# -------------
36239# Create "$as_dir" as a directory, including parents if necessary.
36240as_fn_mkdir_p ()
36241{
36242
36243 case $as_dir in #(
36244 -*) as_dir=./$as_dir;;
36245 esac
36246 test -d "$as_dir" || eval $as_mkdir_p || {
36247 as_dirs=
36248 while :; do
36249 case $as_dir in #(
36250 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
36251 *) as_qdir=$as_dir;;
36252 esac
36253 as_dirs="'$as_qdir' $as_dirs"
36254 as_dir=`$as_dirname -- "$as_dir" ||
36255$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36256 X"$as_dir" : 'X\(//\)[^/]' \| \
36257 X"$as_dir" : 'X\(//\)$' \| \
36258 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36259$as_echo X"$as_dir" |
36260 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36261 s//\1/
36262 q
36263 }
36264 /^X\(\/\/\)[^/].*/{
36265 s//\1/
36266 q
36267 }
36268 /^X\(\/\/\)$/{
36269 s//\1/
36270 q
36271 }
36272 /^X\(\/\).*/{
36273 s//\1/
36274 q
36275 }
36276 s/.*/./; q'`
36277 test -d "$as_dir" && break
36278 done
36279 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000036280 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000036281
36282
36283} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000036284if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000036285 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000036286else
36287 test -d ./-p && rmdir ./-p
36288 as_mkdir_p=false
36289fi
36290
cristy14fefe52012-05-21 00:59:18 +000036291
36292# as_fn_executable_p FILE
36293# -----------------------
36294# Test if FILE is an executable regular file.
36295as_fn_executable_p ()
36296{
36297 test -f "$1" && test -x "$1"
36298} # as_fn_executable_p
36299as_test_x='test -x'
36300as_executable_p=as_fn_executable_p
cristy3ed852e2009-09-05 21:47:34 +000036301
36302# Sed expression to map a string onto a valid CPP name.
36303as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
36304
36305# Sed expression to map a string onto a valid variable name.
36306as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
36307
36308
36309exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000036310## ----------------------------------- ##
36311## Main body of $CONFIG_STATUS script. ##
36312## ----------------------------------- ##
36313_ASEOF
36314test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036315
cristy8b350f62009-11-15 23:12:43 +000036316cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36317# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000036318# report actual input values of CONFIG_FILES etc. instead of their
36319# values after options handling.
36320ac_log="
cristy29eb34e2011-10-16 00:46:08 +000036321This file was extended by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +000036322generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000036323
36324 CONFIG_FILES = $CONFIG_FILES
36325 CONFIG_HEADERS = $CONFIG_HEADERS
36326 CONFIG_LINKS = $CONFIG_LINKS
36327 CONFIG_COMMANDS = $CONFIG_COMMANDS
36328 $ $0 $@
36329
36330on `(hostname || uname -n) 2>/dev/null | sed 1q`
36331"
36332
36333_ACEOF
36334
36335case $ac_config_files in *"
36336"*) set x $ac_config_files; shift; ac_config_files=$*;;
36337esac
36338
36339case $ac_config_headers in *"
36340"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
36341esac
36342
36343
36344cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36345# Files that config.status was made for.
36346config_files="$ac_config_files"
36347config_headers="$ac_config_headers"
36348config_commands="$ac_config_commands"
36349
36350_ACEOF
36351
36352cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36353ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000036354\`$as_me' instantiates files and other configuration actions
36355from templates according to the current configuration. Unless the files
36356and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000036357
cristy8b350f62009-11-15 23:12:43 +000036358Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000036359
36360 -h, --help print this help, then exit
36361 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000036362 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000036363 -q, --quiet, --silent
36364 do not print progress messages
36365 -d, --debug don't remove temporary files
36366 --recheck update $as_me by reconfiguring in the same conditions
36367 --file=FILE[:TEMPLATE]
36368 instantiate the configuration file FILE
36369 --header=FILE[:TEMPLATE]
36370 instantiate the configuration header FILE
36371
36372Configuration files:
36373$config_files
36374
36375Configuration headers:
36376$config_headers
36377
36378Configuration commands:
36379$config_commands
36380
cristy8b350f62009-11-15 23:12:43 +000036381Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000036382
36383_ACEOF
36384cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000036385ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000036386ac_cs_version="\\
cristy29eb34e2011-10-16 00:46:08 +000036387ImageMagick config.status 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +000036388configured by $0, generated by GNU Autoconf 2.69,
cristycd4c5312009-11-22 01:19:08 +000036389 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000036390
cristy14fefe52012-05-21 00:59:18 +000036391Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000036392This config.status script is free software; the Free Software Foundation
36393gives unlimited permission to copy, distribute and modify it."
36394
36395ac_pwd='$ac_pwd'
36396srcdir='$srcdir'
36397INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000036398MKDIR_P='$MKDIR_P'
36399AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000036400test -n "\$AWK" || AWK=awk
36401_ACEOF
36402
36403cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36404# The default lists apply if the user does not specify any file.
36405ac_need_defaults=:
36406while test $# != 0
36407do
36408 case $1 in
cristyda16f162011-02-19 23:52:17 +000036409 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000036410 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36411 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
36412 ac_shift=:
36413 ;;
cristyda16f162011-02-19 23:52:17 +000036414 --*=)
36415 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36416 ac_optarg=
36417 ac_shift=:
36418 ;;
cristy3ed852e2009-09-05 21:47:34 +000036419 *)
36420 ac_option=$1
36421 ac_optarg=$2
36422 ac_shift=shift
36423 ;;
36424 esac
36425
36426 case $ac_option in
36427 # Handling of the options.
36428 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
36429 ac_cs_recheck=: ;;
36430 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
36431 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000036432 --config | --confi | --conf | --con | --co | --c )
36433 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000036434 --debug | --debu | --deb | --de | --d | -d )
36435 debug=: ;;
36436 --file | --fil | --fi | --f )
36437 $ac_shift
36438 case $ac_optarg in
36439 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000036440 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000036441 esac
cristy8b350f62009-11-15 23:12:43 +000036442 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036443 ac_need_defaults=false;;
36444 --header | --heade | --head | --hea )
36445 $ac_shift
36446 case $ac_optarg in
36447 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
36448 esac
cristy8b350f62009-11-15 23:12:43 +000036449 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036450 ac_need_defaults=false;;
36451 --he | --h)
36452 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000036453 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036454Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000036455 --help | --hel | -h )
36456 $as_echo "$ac_cs_usage"; exit ;;
36457 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
36458 | -silent | --silent | --silen | --sile | --sil | --si | --s)
36459 ac_cs_silent=: ;;
36460
36461 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000036462 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036463Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000036464
cristy8b350f62009-11-15 23:12:43 +000036465 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000036466 ac_need_defaults=false ;;
36467
36468 esac
36469 shift
36470done
36471
36472ac_configure_extra_args=
36473
36474if $ac_cs_silent; then
36475 exec 6>/dev/null
36476 ac_configure_extra_args="$ac_configure_extra_args --silent"
36477fi
36478
36479_ACEOF
36480cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36481if \$ac_cs_recheck; then
cristy14fefe52012-05-21 00:59:18 +000036482 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
cristy3ed852e2009-09-05 21:47:34 +000036483 shift
36484 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
36485 CONFIG_SHELL='$SHELL'
36486 export CONFIG_SHELL
36487 exec "\$@"
36488fi
36489
36490_ACEOF
36491cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36492exec 5>>config.log
36493{
36494 echo
36495 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36496## Running $as_me. ##
36497_ASBOX
36498 $as_echo "$ac_log"
36499} >&5
36500
36501_ACEOF
36502cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000036503#
36504# INIT-COMMANDS
36505#
36506PACKAGE="$PACKAGE"
36507AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
36508
36509
36510# The HP-UX ksh and POSIX shell print the target directory to stdout
36511# if CDPATH is set.
36512(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36513
36514sed_quote_subst='$sed_quote_subst'
36515double_quote_subst='$double_quote_subst'
36516delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000036517SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
36518Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
36519GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
36520EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
36521FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
36522SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
36523ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
36524LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
36525macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
36526macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
36527AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
36528DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
36529OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
36530enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
36531enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
36532pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
36533enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
cristy99bd5232011-12-07 14:38:20 +000036534PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036535host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
36536host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
36537host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
36538build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
36539build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
36540build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
36541NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
36542LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
36543max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
36544ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
36545exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
36546lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
36547lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
36548lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036549lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
36550lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036551reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
36552reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
36553deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
36554file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036555file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
36556want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
36557sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036558AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
36559AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036560archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036561STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
36562RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
36563old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36564old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36565old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
36566lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
36567CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
36568CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
36569compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
36570GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
36571lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
36572lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
36573lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
36574lt_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 +000036575nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
36576lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036577objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
36578MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
36579lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036580lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036581lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036582lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
36583lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
36584need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036585MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036586DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
36587NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
36588LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
36589OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
36590OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
36591libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
36592shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
36593extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36594archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
36595enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
36596export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
36597whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
36598compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
36599old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
36600old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36601archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
36602archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36603module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
36604module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36605with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
36606allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
36607no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
36608hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036609hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
36610hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
36611hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
36612hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
36613hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
36614hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
36615inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
36616link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036617always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
36618export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
36619exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
36620include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
36621prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036622postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036623file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
36624variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
36625need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
36626need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
36627version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
36628runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
36629shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
36630shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
36631libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
36632library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
36633soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
36634install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
36635postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36636postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36637finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
36638finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
36639hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
36640sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
36641sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
36642hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
36643enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
36644enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
36645enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
36646old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
36647striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
36648compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
36649predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
36650postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
36651predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
36652postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
36653compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
36654LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
36655reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
36656reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36657old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36658compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
36659GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
36660lt_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 +000036661lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036662lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036663lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
36664lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
36665archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
36666enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
36667export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36668whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36669compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
36670old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36671old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36672archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36673archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36674module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36675module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36676with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
36677allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36678no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36679hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036680hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
36681hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
36682hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
36683hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
36684hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
36685hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
36686inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
36687link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036688always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
36689export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36690exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36691include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36692prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036693postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036694file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
36695hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
36696compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
36697predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36698postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36699predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
36700postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
36701compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000036702
36703LTCC='$LTCC'
36704LTCFLAGS='$LTCFLAGS'
36705compiler='$compiler_DEFAULT'
36706
cristy0c60a692010-11-04 01:09:47 +000036707# A function that is used when there is no print builtin or printf.
36708func_fallback_echo ()
36709{
36710 eval 'cat <<_LTECHO_EOF
36711\$1
36712_LTECHO_EOF'
36713}
36714
cristy73bd4a52010-10-05 11:24:23 +000036715# Quote evaled strings.
36716for var in SED \
36717GREP \
36718EGREP \
36719FGREP \
cristy0c60a692010-11-04 01:09:47 +000036720SHELL \
36721ECHO \
cristy73bd4a52010-10-05 11:24:23 +000036722LD \
cristy0c60a692010-11-04 01:09:47 +000036723AS \
36724DLLTOOL \
36725OBJDUMP \
cristy99bd5232011-12-07 14:38:20 +000036726PATH_SEPARATOR \
cristy73bd4a52010-10-05 11:24:23 +000036727NM \
36728LN_S \
36729lt_SP2NL \
36730lt_NL2SP \
36731reload_flag \
36732deplibs_check_method \
36733file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000036734file_magic_glob \
36735want_nocaseglob \
36736sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000036737AR \
36738AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000036739archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036740STRIP \
36741RANLIB \
36742CC \
36743CFLAGS \
36744compiler \
36745lt_cv_sys_global_symbol_pipe \
36746lt_cv_sys_global_symbol_to_cdecl \
36747lt_cv_sys_global_symbol_to_c_name_address \
36748lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000036749nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036750lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000036751lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000036752lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000036753lt_prog_compiler_static \
36754lt_cv_prog_compiler_c_o \
36755need_locks \
cristyda16f162011-02-19 23:52:17 +000036756MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000036757DSYMUTIL \
36758NMEDIT \
36759LIPO \
36760OTOOL \
36761OTOOL64 \
36762shrext_cmds \
36763export_dynamic_flag_spec \
36764whole_archive_flag_spec \
36765compiler_needs_object \
36766with_gnu_ld \
36767allow_undefined_flag \
36768no_undefined_flag \
36769hardcode_libdir_flag_spec \
cristy73bd4a52010-10-05 11:24:23 +000036770hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000036771exclude_expsyms \
36772include_expsyms \
36773file_list_spec \
36774variables_saved_for_relink \
36775libname_spec \
36776library_names_spec \
36777soname_spec \
cristy0c60a692010-11-04 01:09:47 +000036778install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000036779finish_eval \
36780old_striplib \
36781striplib \
36782compiler_lib_search_dirs \
36783predep_objects \
36784postdep_objects \
36785predeps \
36786postdeps \
36787compiler_lib_search_path \
36788LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000036789reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036790compiler_CXX \
36791lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036792lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000036793lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036794lt_prog_compiler_static_CXX \
36795lt_cv_prog_compiler_c_o_CXX \
36796export_dynamic_flag_spec_CXX \
36797whole_archive_flag_spec_CXX \
36798compiler_needs_object_CXX \
36799with_gnu_ld_CXX \
36800allow_undefined_flag_CXX \
36801no_undefined_flag_CXX \
36802hardcode_libdir_flag_spec_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036803hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036804exclude_expsyms_CXX \
36805include_expsyms_CXX \
36806file_list_spec_CXX \
36807compiler_lib_search_dirs_CXX \
36808predep_objects_CXX \
36809postdep_objects_CXX \
36810predeps_CXX \
36811postdeps_CXX \
36812compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000036813 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000036814 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000036815 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000036816 ;;
36817 *)
36818 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
36819 ;;
36820 esac
36821done
36822
36823# Double-quote double-evaled strings.
36824for var in reload_cmds \
36825old_postinstall_cmds \
36826old_postuninstall_cmds \
36827old_archive_cmds \
36828extract_expsyms_cmds \
36829old_archive_from_new_cmds \
36830old_archive_from_expsyms_cmds \
36831archive_cmds \
36832archive_expsym_cmds \
36833module_cmds \
36834module_expsym_cmds \
36835export_symbols_cmds \
36836prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000036837postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000036838postinstall_cmds \
36839postuninstall_cmds \
36840finish_cmds \
36841sys_lib_search_path_spec \
36842sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000036843reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036844old_archive_cmds_CXX \
36845old_archive_from_new_cmds_CXX \
36846old_archive_from_expsyms_cmds_CXX \
36847archive_cmds_CXX \
36848archive_expsym_cmds_CXX \
36849module_cmds_CXX \
36850module_expsym_cmds_CXX \
36851export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000036852prelink_cmds_CXX \
36853postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000036854 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000036855 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000036856 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000036857 ;;
36858 *)
36859 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
36860 ;;
36861 esac
36862done
36863
cristy73bd4a52010-10-05 11:24:23 +000036864ac_aux_dir='$ac_aux_dir'
36865xsi_shell='$xsi_shell'
36866lt_shell_append='$lt_shell_append'
36867
36868# See if we are running on zsh, and set the options which allow our
36869# commands through without removal of \ escapes INIT.
36870if test -n "\${ZSH_VERSION+set}" ; then
36871 setopt NO_GLOB_SUBST
36872fi
36873
36874
36875 PACKAGE='$PACKAGE'
36876 VERSION='$VERSION'
36877 TIMESTAMP='$TIMESTAMP'
36878 RM='$RM'
36879 ofile='$ofile'
36880
36881
36882
36883
36884
36885
cristy3ed852e2009-09-05 21:47:34 +000036886_ACEOF
36887
36888cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36889
36890# Handling of arguments.
36891for ac_config_target in $ac_config_targets
36892do
36893 case $ac_config_target in
36894 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy01ff9f32012-12-01 18:15:29 +000036895 "MagickCore/magick-baseconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-baseconfig.h" ;;
cristy305c5dd2012-09-13 00:30:13 +000036896 "common.shi") CONFIG_FILES="$CONFIG_FILES common.shi" ;;
cristy3ed852e2009-09-05 21:47:34 +000036897 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
36898 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
36899 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
36900 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
36901 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy2df32802012-09-17 01:15:28 +000036902 "config/Magick++.dox") CONFIG_FILES="$CONFIG_FILES config/Magick++.dox" ;;
cristy430a7312010-01-21 20:44:04 +000036903 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000036904 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
36905 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
36906 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
36907 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
36908 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
cristy4c08aed2011-07-01 19:47:50 +000036909 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000036910 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
cristy4c08aed2011-07-01 19:47:50 +000036911 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
36912 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
36913 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000036914 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
36915 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
cristy3ed852e2009-09-05 21:47:34 +000036916 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
cristy3e049f82013-02-13 13:26:53 +000036917 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
cristycf0cbcc2013-02-13 23:32:58 +000036918 "PerlMagick/quantum/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/Makefile.PL" ;;
36919 "PerlMagick/quantum/quantum.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.pm" ;;
36920 "PerlMagick/quantum/quantum.xs") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.xs" ;;
36921 "PerlMagick/quantum/typemap") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/typemap" ;;
36922 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
cristy3ed852e2009-09-05 21:47:34 +000036923 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
36924 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
36925 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
36926 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
36927 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
36928 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
36929 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
36930 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
36931 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
36932 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
36933 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
36934 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
cristy4c08aed2011-07-01 19:47:50 +000036935 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
36936 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
cristy73bd4a52010-10-05 11:24:23 +000036937 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
36938 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cristy3ed852e2009-09-05 21:47:34 +000036939 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
cristy2bd4b6e2012-07-22 15:29:11 +000036940 "magick.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS magick.sh.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000036941 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000036942 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000036943 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
36944 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
36945
cristy98dddb52010-11-04 00:30:15 +000036946 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000036947 esac
36948done
36949
36950
36951# If the user did not use the arguments to specify the items to instantiate,
36952# then the envvar interface is used. Set only those that are not.
36953# We use the long form for the default assignment because of an extremely
36954# bizarre bug on SunOS 4.1.3.
36955if $ac_need_defaults; then
36956 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
36957 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
36958 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
36959fi
36960
36961# Have a temporary directory for convenience. Make it in the build tree
36962# simply because there is no reason against having it here, and in addition,
36963# creating and moving files from /tmp can sometimes cause problems.
36964# Hook for its removal unless debugging.
36965# Note that there is a small window in which the directory will not be cleaned:
36966# after its creation but before its name has been assigned to `$tmp'.
36967$debug ||
36968{
cristyda16f162011-02-19 23:52:17 +000036969 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000036970 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000036971 : "${ac_tmp:=$tmp}"
36972 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000036973' 0
cristy8b350f62009-11-15 23:12:43 +000036974 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000036975}
36976# Create a (secure) tmp directory for tmp files.
36977
36978{
36979 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000036980 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000036981} ||
36982{
36983 tmp=./conf$$-$RANDOM
36984 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000036985} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000036986ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000036987
36988# Set up the scripts for CONFIG_FILES section.
36989# No need to generate them if there are no CONFIG_FILES.
36990# This happens for instance with `./config.status config.h'.
36991if test -n "$CONFIG_FILES"; then
36992
36993
cristy8b350f62009-11-15 23:12:43 +000036994ac_cr=`echo X | tr X '\015'`
36995# On cygwin, bash can eat \r inside `` if the user requested igncr.
36996# But we know of no other shell where ac_cr would be empty at this
36997# point, so we can use a bashism as a fallback.
36998if test "x$ac_cr" = x; then
36999 eval ac_cr=\$\'\\r\'
37000fi
cristy3ed852e2009-09-05 21:47:34 +000037001ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
37002if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000037003 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000037004else
37005 ac_cs_awk_cr=$ac_cr
37006fi
37007
cristyda16f162011-02-19 23:52:17 +000037008echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000037009_ACEOF
37010
37011
37012{
37013 echo "cat >conf$$subs.awk <<_ACEOF" &&
37014 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
37015 echo "_ACEOF"
37016} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037017 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
37018ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000037019ac_delim='%!_!# '
37020for ac_last_try in false false false false false :; do
37021 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037022 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037023
37024 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
37025 if test $ac_delim_n = $ac_delim_num; then
37026 break
37027 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037028 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037029 else
37030 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37031 fi
37032done
37033rm -f conf$$subs.sh
37034
37035cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000037036cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037037_ACEOF
37038sed -n '
37039h
37040s/^/S["/; s/!.*/"]=/
37041p
37042g
37043s/^[^!]*!//
37044:repl
37045t repl
37046s/'"$ac_delim"'$//
37047t delim
37048:nl
37049h
cristycd4c5312009-11-22 01:19:08 +000037050s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037051t more1
37052s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
37053p
37054n
37055b repl
37056:more1
37057s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37058p
37059g
37060s/.\{148\}//
37061t nl
37062:delim
37063h
cristycd4c5312009-11-22 01:19:08 +000037064s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037065t more2
37066s/["\\]/\\&/g; s/^/"/; s/$/"/
37067p
37068b
37069:more2
37070s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37071p
37072g
37073s/.\{148\}//
37074t delim
37075' <conf$$subs.awk | sed '
37076/^[^""]/{
37077 N
37078 s/\n//
37079}
37080' >>$CONFIG_STATUS || ac_write_fail=1
37081rm -f conf$$subs.awk
37082cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37083_ACAWK
cristyda16f162011-02-19 23:52:17 +000037084cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037085 for (key in S) S_is_set[key] = 1
37086 FS = ""
37087
37088}
37089{
37090 line = $ 0
37091 nfields = split(line, field, "@")
37092 substed = 0
37093 len = length(field[1])
37094 for (i = 2; i < nfields; i++) {
37095 key = field[i]
37096 keylen = length(key)
37097 if (S_is_set[key]) {
37098 value = S[key]
37099 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
37100 len += length(value) + length(field[++i])
37101 substed = 1
37102 } else
37103 len += 1 + keylen
37104 }
37105
37106 print line
37107}
37108
37109_ACAWK
37110_ACEOF
37111cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37112if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
37113 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
37114else
37115 cat
cristyda16f162011-02-19 23:52:17 +000037116fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000037117 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037118_ACEOF
37119
cristy98dddb52010-11-04 00:30:15 +000037120# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
37121# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000037122# trailing colons and then remove the whole line if VPATH becomes empty
37123# (actually we leave an empty line to preserve line numbers).
37124if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000037125 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
37126h
37127s///
37128s/^/:/
37129s/[ ]*$/:/
37130s/:\$(srcdir):/:/g
37131s/:\${srcdir}:/:/g
37132s/:@srcdir@:/:/g
37133s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000037134s/:*$//
cristy98dddb52010-11-04 00:30:15 +000037135x
37136s/\(=[ ]*\).*/\1/
37137G
37138s/\n//
cristy3ed852e2009-09-05 21:47:34 +000037139s/^[^=]*=[ ]*$//
37140}'
37141fi
37142
37143cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37144fi # test -n "$CONFIG_FILES"
37145
37146# Set up the scripts for CONFIG_HEADERS section.
37147# No need to generate them if there are no CONFIG_HEADERS.
37148# This happens for instance with `./config.status Makefile'.
37149if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000037150cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000037151BEGIN {
37152_ACEOF
37153
37154# Transform confdefs.h into an awk script `defines.awk', embedded as
37155# here-document in config.status, that substitutes the proper values into
37156# config.h.in to produce config.h.
37157
37158# Create a delimiter string that does not exist in confdefs.h, to ease
37159# handling of long lines.
37160ac_delim='%!_!# '
37161for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000037162 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
37163 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000037164 break
37165 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037166 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037167 else
37168 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37169 fi
37170done
37171
37172# For the awk script, D is an array of macro values keyed by name,
37173# likewise P contains macro parameters if any. Preserve backslash
37174# newline sequences.
37175
37176ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
37177sed -n '
37178s/.\{148\}/&'"$ac_delim"'/g
37179t rset
37180:rset
37181s/^[ ]*#[ ]*define[ ][ ]*/ /
37182t def
37183d
37184:def
37185s/\\$//
37186t bsnl
37187s/["\\]/\\&/g
37188s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37189D["\1"]=" \3"/p
37190s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
37191d
37192:bsnl
37193s/["\\]/\\&/g
37194s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37195D["\1"]=" \3\\\\\\n"\\/p
37196t cont
37197s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
37198t cont
37199d
37200:cont
37201n
37202s/.\{148\}/&'"$ac_delim"'/g
37203t clear
37204:clear
37205s/\\$//
37206t bsnlc
37207s/["\\]/\\&/g; s/^/"/; s/$/"/p
37208d
37209:bsnlc
37210s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
37211b cont
37212' <confdefs.h | sed '
37213s/'"$ac_delim"'/"\\\
37214"/g' >>$CONFIG_STATUS || ac_write_fail=1
37215
37216cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37217 for (key in D) D_is_set[key] = 1
37218 FS = ""
37219}
37220/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
37221 line = \$ 0
37222 split(line, arg, " ")
37223 if (arg[1] == "#") {
37224 defundef = arg[2]
37225 mac1 = arg[3]
37226 } else {
37227 defundef = substr(arg[1], 2)
37228 mac1 = arg[2]
37229 }
37230 split(mac1, mac2, "(") #)
37231 macro = mac2[1]
37232 prefix = substr(line, 1, index(line, defundef) - 1)
37233 if (D_is_set[macro]) {
37234 # Preserve the white space surrounding the "#".
37235 print prefix "define", macro P[macro] D[macro]
37236 next
37237 } else {
37238 # Replace #undef with comments. This is necessary, for example,
37239 # in the case of _POSIX_SOURCE, which is predefined and required
37240 # on some systems where configure will not decide to define it.
37241 if (defundef == "undef") {
37242 print "/*", prefix defundef, macro, "*/"
37243 next
37244 }
37245 }
37246}
37247{ print }
37248_ACAWK
37249_ACEOF
37250cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000037251 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037252fi # test -n "$CONFIG_HEADERS"
37253
37254
37255eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
37256shift
37257for ac_tag
37258do
37259 case $ac_tag in
37260 :[FHLC]) ac_mode=$ac_tag; continue;;
37261 esac
37262 case $ac_mode$ac_tag in
37263 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000037264 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037265 :[FH]-) ac_tag=-:-;;
37266 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
37267 esac
37268 ac_save_IFS=$IFS
37269 IFS=:
37270 set x $ac_tag
37271 IFS=$ac_save_IFS
37272 shift
37273 ac_file=$1
37274 shift
37275
37276 case $ac_mode in
37277 :L) ac_source=$1;;
37278 :[FH])
37279 ac_file_inputs=
37280 for ac_f
37281 do
37282 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000037283 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000037284 *) # Look for the file first in the build tree, then in the source tree
37285 # (if the path is not absolute). The absolute path cannot be DOS-style,
37286 # because $ac_f cannot contain `:'.
37287 test -f "$ac_f" ||
37288 case $ac_f in
37289 [\\/$]*) false;;
37290 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
37291 esac ||
cristy98dddb52010-11-04 00:30:15 +000037292 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037293 esac
37294 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000037295 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000037296 done
37297
37298 # Let's still pretend it is `configure' which instantiates (i.e., don't
37299 # use $as_me), people would be surprised to read:
37300 # /* config.h. Generated by config.status. */
37301 configure_input='Generated from '`
37302 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
37303 `' by configure.'
37304 if test x"$ac_file" != x-; then
37305 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000037306 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000037307$as_echo "$as_me: creating $ac_file" >&6;}
37308 fi
37309 # Neutralize special characters interpreted by sed in replacement strings.
37310 case $configure_input in #(
37311 *\&* | *\|* | *\\* )
37312 ac_sed_conf_input=`$as_echo "$configure_input" |
37313 sed 's/[\\\\&|]/\\\\&/g'`;; #(
37314 *) ac_sed_conf_input=$configure_input;;
37315 esac
37316
37317 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000037318 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000037319 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000037320 esac
37321 ;;
37322 esac
37323
37324 ac_dir=`$as_dirname -- "$ac_file" ||
37325$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37326 X"$ac_file" : 'X\(//\)[^/]' \| \
37327 X"$ac_file" : 'X\(//\)$' \| \
37328 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
37329$as_echo X"$ac_file" |
37330 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37331 s//\1/
37332 q
37333 }
37334 /^X\(\/\/\)[^/].*/{
37335 s//\1/
37336 q
37337 }
37338 /^X\(\/\/\)$/{
37339 s//\1/
37340 q
37341 }
37342 /^X\(\/\).*/{
37343 s//\1/
37344 q
37345 }
37346 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000037347 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000037348 ac_builddir=.
37349
37350case "$ac_dir" in
37351.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
37352*)
37353 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
37354 # A ".." for each directory in $ac_dir_suffix.
37355 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
37356 case $ac_top_builddir_sub in
37357 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
37358 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
37359 esac ;;
37360esac
37361ac_abs_top_builddir=$ac_pwd
37362ac_abs_builddir=$ac_pwd$ac_dir_suffix
37363# for backward compatibility:
37364ac_top_builddir=$ac_top_build_prefix
37365
37366case $srcdir in
37367 .) # We are building in place.
37368 ac_srcdir=.
37369 ac_top_srcdir=$ac_top_builddir_sub
37370 ac_abs_top_srcdir=$ac_pwd ;;
37371 [\\/]* | ?:[\\/]* ) # Absolute name.
37372 ac_srcdir=$srcdir$ac_dir_suffix;
37373 ac_top_srcdir=$srcdir
37374 ac_abs_top_srcdir=$srcdir ;;
37375 *) # Relative name.
37376 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
37377 ac_top_srcdir=$ac_top_build_prefix$srcdir
37378 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
37379esac
37380ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
37381
37382
37383 case $ac_mode in
37384 :F)
37385 #
37386 # CONFIG_FILE
37387 #
37388
37389 case $INSTALL in
37390 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
37391 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
37392 esac
cristy73bd4a52010-10-05 11:24:23 +000037393 ac_MKDIR_P=$MKDIR_P
37394 case $MKDIR_P in
37395 [\\/$]* | ?:[\\/]* ) ;;
37396 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
37397 esac
cristy3ed852e2009-09-05 21:47:34 +000037398_ACEOF
37399
37400cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37401# If the template does not know about datarootdir, expand it.
37402# FIXME: This hack should be removed a few years after 2.60.
37403ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000037404ac_sed_dataroot='
37405/datarootdir/ {
37406 p
37407 q
37408}
37409/@datadir@/p
37410/@docdir@/p
37411/@infodir@/p
37412/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000037413/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000037414case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
37415*datarootdir*) ac_datarootdir_seen=yes;;
37416*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000037417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000037418$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
37419_ACEOF
37420cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37421 ac_datarootdir_hack='
37422 s&@datadir@&$datadir&g
37423 s&@docdir@&$docdir&g
37424 s&@infodir@&$infodir&g
37425 s&@localedir@&$localedir&g
37426 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000037427 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000037428esac
37429_ACEOF
37430
37431# Neutralize VPATH when `$srcdir' = `.'.
37432# Shell code in configure.ac might set extrasub.
37433# FIXME: do we really want to maintain this feature?
37434cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37435ac_sed_extra="$ac_vpsub
37436$extrasub
37437_ACEOF
37438cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37439:t
37440/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
37441s|@configure_input@|$ac_sed_conf_input|;t t
37442s&@top_builddir@&$ac_top_builddir_sub&;t t
37443s&@top_build_prefix@&$ac_top_build_prefix&;t t
37444s&@srcdir@&$ac_srcdir&;t t
37445s&@abs_srcdir@&$ac_abs_srcdir&;t t
37446s&@top_srcdir@&$ac_top_srcdir&;t t
37447s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
37448s&@builddir@&$ac_builddir&;t t
37449s&@abs_builddir@&$ac_abs_builddir&;t t
37450s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
37451s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000037452s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000037453$ac_datarootdir_hack
37454"
cristyda16f162011-02-19 23:52:17 +000037455eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
37456 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037457
37458test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000037459 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
37460 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
37461 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000037462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037463which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000037464$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037465which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000037466
cristyda16f162011-02-19 23:52:17 +000037467 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000037468 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000037469 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
37470 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000037471 esac \
cristy98dddb52010-11-04 00:30:15 +000037472 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037473 ;;
37474 :H)
37475 #
37476 # CONFIG_HEADER
37477 #
37478 if test x"$ac_file" != x-; then
37479 {
37480 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037481 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
37482 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000037483 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037484 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000037485 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000037486$as_echo "$as_me: $ac_file is unchanged" >&6;}
37487 else
37488 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000037489 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000037490 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037491 fi
37492 else
37493 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037494 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000037495 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037496 fi
cristy73bd4a52010-10-05 11:24:23 +000037497# Compute "$ac_file"'s index in $config_headers.
37498_am_arg="$ac_file"
37499_am_stamp_count=1
37500for _am_header in $config_headers :; do
37501 case $_am_header in
37502 $_am_arg | $_am_arg:* )
37503 break ;;
37504 * )
37505 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
37506 esac
37507done
37508echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
37509$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37510 X"$_am_arg" : 'X\(//\)[^/]' \| \
37511 X"$_am_arg" : 'X\(//\)$' \| \
37512 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
37513$as_echo X"$_am_arg" |
37514 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37515 s//\1/
37516 q
37517 }
37518 /^X\(\/\/\)[^/].*/{
37519 s//\1/
37520 q
37521 }
37522 /^X\(\/\/\)$/{
37523 s//\1/
37524 q
37525 }
37526 /^X\(\/\).*/{
37527 s//\1/
37528 q
37529 }
37530 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000037531 ;;
37532
cristy8b350f62009-11-15 23:12:43 +000037533 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000037534$as_echo "$as_me: executing $ac_file commands" >&6;}
37535 ;;
37536 esac
37537
37538
37539 case $ac_file$ac_mode in
cristy01ff9f32012-12-01 18:15:29 +000037540 "MagickCore/magick-baseconfig.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-baseconfig.h`
cristy73bd4a52010-10-05 11:24:23 +000037541ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
37542ac_prefix_conf_PKG=`echo MagickCore`
37543ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
37544ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
37545ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
37546if test ".$ac_prefix_conf_INP" = "."; then
37547 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
37548 case "$ac_file" in
37549 *.h) ac_prefix_conf_INP=$ac_file ;;
37550 *)
37551 esac
37552 test ".$ac_prefix_conf_INP" != "." && break
37553 done
37554fi
37555if test ".$ac_prefix_conf_INP" = "."; then
37556 case "$ac_prefix_conf_OUT" in
37557 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
37558 ;;
37559 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
37560 ;;
37561 *) ac_prefix_conf_INP=config.h
37562 ;;
37563 esac
37564fi
37565if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000037566 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000037567else
37568 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
37569 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
37570 fi fi
37571 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
37572$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
37573 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000037574 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
37575 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
37576 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
37577 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
37578 $as_echo "#endif/" >> conftest.prefix
37579 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
37580 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
37581 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000037582 # now executing _script on _DEF input to create _OUT output file
37583 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
37584 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
37585 echo ' ' >>$tmp/pconfig.h
37586 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
37587
37588 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
37589 echo ' ' >>$tmp/pconfig.h
37590 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
37591 echo "#endif" >>$tmp/pconfig.h
37592 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
37593 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
37594$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
37595 else
37596 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
37597$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37598 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
37599 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
37600 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
37601$as_echo X"$ac_prefix_conf_OUT" |
37602 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37603 s//\1/
37604 q
37605 }
37606 /^X\(\/\/\)[^/].*/{
37607 s//\1/
37608 q
37609 }
37610 /^X\(\/\/\)$/{
37611 s//\1/
37612 q
37613 }
37614 /^X\(\/\).*/{
37615 s//\1/
37616 q
37617 }
37618 s/.*/./; q'`
37619 as_dir="$ac_dir"; as_fn_mkdir_p
37620 rm -f "$ac_prefix_conf_OUT"
37621 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
37622 fi
37623 cp conftest.prefix _configs.sed
37624 else
cristy98dddb52010-11-04 00:30:15 +000037625 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 +000037626 fi
37627 rm -f conftest.*
37628fi
37629 ;;
37630 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
cristy58d34aa2013-01-24 15:11:54 +000037631 # Older Autoconf quotes --file arguments for eval, but not when files
cristy73bd4a52010-10-05 11:24:23 +000037632 # are listed without --file. Let's play safe and only enable the eval
37633 # if we detect the quoting.
37634 case $CONFIG_FILES in
37635 *\'*) eval set x "$CONFIG_FILES" ;;
37636 *) set x $CONFIG_FILES ;;
37637 esac
37638 shift
37639 for mf
37640 do
37641 # Strip MF so we end up with the name of the file.
37642 mf=`echo "$mf" | sed -e 's/:.*$//'`
37643 # Check whether this is an Automake generated Makefile or not.
cristyc0890a62012-07-19 00:18:20 +000037644 # We used to match only the files named 'Makefile.in', but
cristy73bd4a52010-10-05 11:24:23 +000037645 # some people rename them; so instead we look at the file content.
37646 # Grep'ing the first line is not enough: some people post-process
37647 # each Makefile.in and add a new line on top of each file to say so.
37648 # Grep'ing the whole file is not good either: AIX grep has a line
37649 # limit of 2048, but all sed's we know have understand at least 4000.
37650 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
37651 dirpart=`$as_dirname -- "$mf" ||
37652$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37653 X"$mf" : 'X\(//\)[^/]' \| \
37654 X"$mf" : 'X\(//\)$' \| \
37655 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
37656$as_echo X"$mf" |
37657 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37658 s//\1/
37659 q
37660 }
37661 /^X\(\/\/\)[^/].*/{
37662 s//\1/
37663 q
37664 }
37665 /^X\(\/\/\)$/{
37666 s//\1/
37667 q
37668 }
37669 /^X\(\/\).*/{
37670 s//\1/
37671 q
37672 }
37673 s/.*/./; q'`
37674 else
37675 continue
37676 fi
37677 # Extract the definition of DEPDIR, am__include, and am__quote
cristyc0890a62012-07-19 00:18:20 +000037678 # from the Makefile without running 'make'.
cristy73bd4a52010-10-05 11:24:23 +000037679 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
37680 test -z "$DEPDIR" && continue
37681 am__include=`sed -n 's/^am__include = //p' < "$mf"`
37682 test -z "am__include" && continue
37683 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
cristy73bd4a52010-10-05 11:24:23 +000037684 # Find all dependency output files, they are included files with
37685 # $(DEPDIR) in their names. We invoke sed twice because it is the
37686 # simplest approach to changing $(DEPDIR) to its actual value in the
37687 # expansion.
37688 for file in `sed -n "
37689 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
cristyc0890a62012-07-19 00:18:20 +000037690 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
cristy73bd4a52010-10-05 11:24:23 +000037691 # Make sure the directory exists.
37692 test -f "$dirpart/$file" && continue
37693 fdir=`$as_dirname -- "$file" ||
37694$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37695 X"$file" : 'X\(//\)[^/]' \| \
37696 X"$file" : 'X\(//\)$' \| \
37697 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
37698$as_echo X"$file" |
37699 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37700 s//\1/
37701 q
37702 }
37703 /^X\(\/\/\)[^/].*/{
37704 s//\1/
37705 q
37706 }
37707 /^X\(\/\/\)$/{
37708 s//\1/
37709 q
37710 }
37711 /^X\(\/\).*/{
37712 s//\1/
37713 q
37714 }
37715 s/.*/./; q'`
37716 as_dir=$dirpart/$fdir; as_fn_mkdir_p
37717 # echo "creating $dirpart/$file"
37718 echo '# dummy' > "$dirpart/$file"
37719 done
37720 done
37721}
37722 ;;
37723 "libtool":C)
37724
37725 # See if we are running on zsh, and set the options which allow our
37726 # commands through without removal of \ escapes.
37727 if test -n "${ZSH_VERSION+set}" ; then
37728 setopt NO_GLOB_SUBST
37729 fi
37730
37731 cfgfile="${ofile}T"
37732 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
37733 $RM "$cfgfile"
37734
37735 cat <<_LT_EOF >> "$cfgfile"
37736#! $SHELL
37737
37738# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
37739# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
37740# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
37741# NOTE: Changes made to this file will be lost: look at ltmain.sh.
37742#
37743# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy99bd5232011-12-07 14:38:20 +000037744# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
37745# Foundation, Inc.
cristy73bd4a52010-10-05 11:24:23 +000037746# Written by Gordon Matzigkeit, 1996
37747#
37748# This file is part of GNU Libtool.
37749#
37750# GNU Libtool is free software; you can redistribute it and/or
37751# modify it under the terms of the GNU General Public License as
37752# published by the Free Software Foundation; either version 2 of
37753# the License, or (at your option) any later version.
37754#
37755# As a special exception to the GNU General Public License,
37756# if you distribute this file as part of a program or library that
37757# is built using GNU Libtool, you may include this file under the
37758# same distribution terms that you use for the rest of that program.
37759#
37760# GNU Libtool is distributed in the hope that it will be useful,
37761# but WITHOUT ANY WARRANTY; without even the implied warranty of
37762# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
37763# GNU General Public License for more details.
37764#
37765# You should have received a copy of the GNU General Public License
37766# along with GNU Libtool; see the file COPYING. If not, a copy
37767# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
37768# obtained by writing to the Free Software Foundation, Inc.,
37769# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
37770
37771
37772# The names of the tagged configurations supported by this script.
37773available_tags="CXX "
37774
37775# ### BEGIN LIBTOOL CONFIG
37776
37777# A sed program that does not truncate output.
37778SED=$lt_SED
37779
37780# Sed that helps us avoid accidentally triggering echo(1) options like -n.
37781Xsed="\$SED -e 1s/^X//"
37782
37783# A grep program that handles long lines.
37784GREP=$lt_GREP
37785
37786# An ERE matcher.
37787EGREP=$lt_EGREP
37788
37789# A literal string matcher.
37790FGREP=$lt_FGREP
37791
cristy0c60a692010-11-04 01:09:47 +000037792# Shell to use when invoking shell scripts.
37793SHELL=$lt_SHELL
37794
37795# An echo program that protects backslashes.
37796ECHO=$lt_ECHO
37797
cristy73bd4a52010-10-05 11:24:23 +000037798# Which release of libtool.m4 was used?
37799macro_version=$macro_version
37800macro_revision=$macro_revision
37801
37802# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000037803AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000037804
37805# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000037806DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000037807
37808# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000037809OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000037810
37811# Whether or not to build shared libraries.
37812build_libtool_libs=$enable_shared
37813
37814# Whether or not to build static libraries.
37815build_old_libs=$enable_static
37816
37817# What type of objects to build.
37818pic_mode=$pic_mode
37819
37820# Whether or not to optimize for fast installation.
37821fast_install=$enable_fast_install
37822
cristy99bd5232011-12-07 14:38:20 +000037823# The PATH separator for the build system.
37824PATH_SEPARATOR=$lt_PATH_SEPARATOR
37825
cristy73bd4a52010-10-05 11:24:23 +000037826# The host system.
37827host_alias=$host_alias
37828host=$host
37829host_os=$host_os
37830
37831# The build system.
37832build_alias=$build_alias
37833build=$build
37834build_os=$build_os
37835
37836# A BSD- or MS-compatible name lister.
37837NM=$lt_NM
37838
37839# Whether we need soft or hard links.
37840LN_S=$lt_LN_S
37841
37842# What is the maximum length of a command?
37843max_cmd_len=$max_cmd_len
37844
37845# Object file suffix (normally "o").
37846objext=$ac_objext
37847
37848# Executable file suffix (normally "").
37849exeext=$exeext
37850
37851# whether the shell understands "unset".
37852lt_unset=$lt_unset
37853
37854# turn spaces into newlines.
37855SP2NL=$lt_lt_SP2NL
37856
37857# turn newlines into spaces.
37858NL2SP=$lt_lt_NL2SP
37859
cristyda16f162011-02-19 23:52:17 +000037860# convert \$build file names to \$host format.
37861to_host_file_cmd=$lt_cv_to_host_file_cmd
37862
37863# convert \$build files to toolchain format.
37864to_tool_file_cmd=$lt_cv_to_tool_file_cmd
37865
cristy73bd4a52010-10-05 11:24:23 +000037866# Method to check whether dependent libraries are shared objects.
37867deplibs_check_method=$lt_deplibs_check_method
37868
cristyda16f162011-02-19 23:52:17 +000037869# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000037870file_magic_cmd=$lt_file_magic_cmd
37871
cristyda16f162011-02-19 23:52:17 +000037872# How to find potential files when deplibs_check_method = "file_magic".
37873file_magic_glob=$lt_file_magic_glob
37874
37875# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
37876want_nocaseglob=$lt_want_nocaseglob
37877
37878# Command to associate shared and link libraries.
37879sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
37880
cristy73bd4a52010-10-05 11:24:23 +000037881# The archiver.
37882AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000037883
37884# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000037885AR_FLAGS=$lt_AR_FLAGS
37886
cristyda16f162011-02-19 23:52:17 +000037887# How to feed a file listing to the archiver.
37888archiver_list_spec=$lt_archiver_list_spec
37889
cristy73bd4a52010-10-05 11:24:23 +000037890# A symbol stripping program.
37891STRIP=$lt_STRIP
37892
37893# Commands used to install an old-style archive.
37894RANLIB=$lt_RANLIB
37895old_postinstall_cmds=$lt_old_postinstall_cmds
37896old_postuninstall_cmds=$lt_old_postuninstall_cmds
37897
cristy0c60a692010-11-04 01:09:47 +000037898# Whether to use a lock for old archive extraction.
37899lock_old_archive_extraction=$lock_old_archive_extraction
37900
cristy73bd4a52010-10-05 11:24:23 +000037901# A C compiler.
37902LTCC=$lt_CC
37903
37904# LTCC compiler flags.
37905LTCFLAGS=$lt_CFLAGS
37906
37907# Take the output of nm and produce a listing of raw symbols and C names.
37908global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
37909
37910# Transform the output of nm in a proper C declaration.
37911global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
37912
37913# Transform the output of nm in a C name address pair.
37914global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
37915
37916# Transform the output of nm in a C name address pair when lib prefix is needed.
37917global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
37918
cristyda16f162011-02-19 23:52:17 +000037919# Specify filename containing input files for \$NM.
37920nm_file_list_spec=$lt_nm_file_list_spec
37921
37922# The root where to search for dependent libraries,and in which our libraries should be installed.
37923lt_sysroot=$lt_sysroot
37924
cristy73bd4a52010-10-05 11:24:23 +000037925# The name of the directory that contains temporary libtool files.
37926objdir=$objdir
37927
cristy73bd4a52010-10-05 11:24:23 +000037928# Used to examine libraries when file_magic_cmd begins with "file".
37929MAGIC_CMD=$MAGIC_CMD
37930
37931# Must we lock files when doing compilation?
37932need_locks=$lt_need_locks
37933
cristyda16f162011-02-19 23:52:17 +000037934# Manifest tool.
37935MANIFEST_TOOL=$lt_MANIFEST_TOOL
37936
cristy73bd4a52010-10-05 11:24:23 +000037937# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
37938DSYMUTIL=$lt_DSYMUTIL
37939
37940# Tool to change global to local symbols on Mac OS X.
37941NMEDIT=$lt_NMEDIT
37942
37943# Tool to manipulate fat objects and archives on Mac OS X.
37944LIPO=$lt_LIPO
37945
37946# ldd/readelf like tool for Mach-O binaries on Mac OS X.
37947OTOOL=$lt_OTOOL
37948
37949# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
37950OTOOL64=$lt_OTOOL64
37951
37952# Old archive suffix (normally "a").
37953libext=$libext
37954
37955# Shared library suffix (normally ".so").
37956shrext_cmds=$lt_shrext_cmds
37957
37958# The commands to extract the exported symbol list from a shared archive.
37959extract_expsyms_cmds=$lt_extract_expsyms_cmds
37960
37961# Variables whose values should be saved in libtool wrapper scripts and
37962# restored at link time.
37963variables_saved_for_relink=$lt_variables_saved_for_relink
37964
37965# Do we need the "lib" prefix for modules?
37966need_lib_prefix=$need_lib_prefix
37967
37968# Do we need a version for libraries?
37969need_version=$need_version
37970
37971# Library versioning type.
37972version_type=$version_type
37973
37974# Shared library runtime path variable.
37975runpath_var=$runpath_var
37976
37977# Shared library path variable.
37978shlibpath_var=$shlibpath_var
37979
37980# Is shlibpath searched before the hard-coded library search path?
37981shlibpath_overrides_runpath=$shlibpath_overrides_runpath
37982
37983# Format of library name prefix.
37984libname_spec=$lt_libname_spec
37985
37986# List of archive names. First name is the real one, the rest are links.
37987# The last name is the one that the linker finds with -lNAME
37988library_names_spec=$lt_library_names_spec
37989
37990# The coded name of the library, if different from the real name.
37991soname_spec=$lt_soname_spec
37992
cristy0c60a692010-11-04 01:09:47 +000037993# Permission mode override for installation of shared libraries.
37994install_override_mode=$lt_install_override_mode
37995
cristy73bd4a52010-10-05 11:24:23 +000037996# Command to use after installation of a shared archive.
37997postinstall_cmds=$lt_postinstall_cmds
37998
37999# Command to use after uninstallation of a shared archive.
38000postuninstall_cmds=$lt_postuninstall_cmds
38001
38002# Commands used to finish a libtool library installation in a directory.
38003finish_cmds=$lt_finish_cmds
38004
38005# As "finish_cmds", except a single script fragment to be evaled but
38006# not shown.
38007finish_eval=$lt_finish_eval
38008
38009# Whether we should hardcode library paths into libraries.
38010hardcode_into_libs=$hardcode_into_libs
38011
38012# Compile-time system search path for libraries.
38013sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
38014
38015# Run-time system search path for libraries.
38016sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
38017
38018# Whether dlopen is supported.
38019dlopen_support=$enable_dlopen
38020
38021# Whether dlopen of programs is supported.
38022dlopen_self=$enable_dlopen_self
38023
38024# Whether dlopen of statically linked programs is supported.
38025dlopen_self_static=$enable_dlopen_self_static
38026
38027# Commands to strip libraries.
38028old_striplib=$lt_old_striplib
38029striplib=$lt_striplib
38030
38031
38032# The linker used to build libraries.
38033LD=$lt_LD
38034
cristy0c60a692010-11-04 01:09:47 +000038035# How to create reloadable object files.
38036reload_flag=$lt_reload_flag
38037reload_cmds=$lt_reload_cmds
38038
cristy73bd4a52010-10-05 11:24:23 +000038039# Commands used to build an old-style archive.
38040old_archive_cmds=$lt_old_archive_cmds
38041
38042# A language specific compiler.
38043CC=$lt_compiler
38044
38045# Is the compiler the GNU compiler?
38046with_gcc=$GCC
38047
38048# Compiler flag to turn off builtin functions.
38049no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
38050
cristy73bd4a52010-10-05 11:24:23 +000038051# Additional compiler flags for building library objects.
38052pic_flag=$lt_lt_prog_compiler_pic
38053
cristyda16f162011-02-19 23:52:17 +000038054# How to pass a linker flag through the compiler.
38055wl=$lt_lt_prog_compiler_wl
38056
cristy73bd4a52010-10-05 11:24:23 +000038057# Compiler flag to prevent dynamic linking.
38058link_static_flag=$lt_lt_prog_compiler_static
38059
38060# Does compiler simultaneously support -c and -o options?
38061compiler_c_o=$lt_lt_cv_prog_compiler_c_o
38062
38063# Whether or not to add -lc for building shared libraries.
38064build_libtool_need_lc=$archive_cmds_need_lc
38065
38066# Whether or not to disallow shared libs when runtime libs are static.
38067allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
38068
38069# Compiler flag to allow reflexive dlopens.
38070export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
38071
38072# Compiler flag to generate shared objects directly from archives.
38073whole_archive_flag_spec=$lt_whole_archive_flag_spec
38074
38075# Whether the compiler copes with passing no objects directly.
38076compiler_needs_object=$lt_compiler_needs_object
38077
38078# Create an old-style archive from a shared archive.
38079old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
38080
38081# Create a temporary old-style archive to link instead of a shared archive.
38082old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
38083
38084# Commands used to build a shared archive.
38085archive_cmds=$lt_archive_cmds
38086archive_expsym_cmds=$lt_archive_expsym_cmds
38087
38088# Commands used to build a loadable module if different from building
38089# a shared archive.
38090module_cmds=$lt_module_cmds
38091module_expsym_cmds=$lt_module_expsym_cmds
38092
38093# Whether we are building with GNU ld or not.
38094with_gnu_ld=$lt_with_gnu_ld
38095
38096# Flag that allows shared libraries with undefined symbols to be built.
38097allow_undefined_flag=$lt_allow_undefined_flag
38098
38099# Flag that enforces no undefined symbols.
38100no_undefined_flag=$lt_no_undefined_flag
38101
38102# Flag to hardcode \$libdir into a binary during linking.
38103# This must work even if \$libdir does not exist
38104hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
38105
cristy73bd4a52010-10-05 11:24:23 +000038106# Whether we need a single "-rpath" flag with a separated argument.
38107hardcode_libdir_separator=$lt_hardcode_libdir_separator
38108
38109# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38110# DIR into the resulting binary.
38111hardcode_direct=$hardcode_direct
38112
38113# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38114# DIR into the resulting binary and the resulting library dependency is
38115# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38116# library is relocated.
38117hardcode_direct_absolute=$hardcode_direct_absolute
38118
38119# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38120# into the resulting binary.
38121hardcode_minus_L=$hardcode_minus_L
38122
38123# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38124# into the resulting binary.
38125hardcode_shlibpath_var=$hardcode_shlibpath_var
38126
38127# Set to "yes" if building a shared library automatically hardcodes DIR
38128# into the library and all subsequent libraries and executables linked
38129# against it.
38130hardcode_automatic=$hardcode_automatic
38131
38132# Set to yes if linker adds runtime paths of dependent libraries
38133# to runtime path list.
38134inherit_rpath=$inherit_rpath
38135
38136# Whether libtool must link a program against all its dependency libraries.
38137link_all_deplibs=$link_all_deplibs
38138
cristy73bd4a52010-10-05 11:24:23 +000038139# Set to "yes" if exported symbols are required.
38140always_export_symbols=$always_export_symbols
38141
38142# The commands to list exported symbols.
38143export_symbols_cmds=$lt_export_symbols_cmds
38144
38145# Symbols that should not be listed in the preloaded symbols.
38146exclude_expsyms=$lt_exclude_expsyms
38147
38148# Symbols that must always be exported.
38149include_expsyms=$lt_include_expsyms
38150
38151# Commands necessary for linking programs (against libraries) with templates.
38152prelink_cmds=$lt_prelink_cmds
38153
cristyda16f162011-02-19 23:52:17 +000038154# Commands necessary for finishing linking programs.
38155postlink_cmds=$lt_postlink_cmds
38156
cristy73bd4a52010-10-05 11:24:23 +000038157# Specify filename containing input files.
38158file_list_spec=$lt_file_list_spec
38159
38160# How to hardcode a shared library path into an executable.
38161hardcode_action=$hardcode_action
38162
38163# The directories searched by this compiler when creating a shared library.
38164compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
38165
38166# Dependencies to place before and after the objects being linked to
38167# create a shared library.
38168predep_objects=$lt_predep_objects
38169postdep_objects=$lt_postdep_objects
38170predeps=$lt_predeps
38171postdeps=$lt_postdeps
38172
38173# The library search path used internally by the compiler when linking
38174# a shared library.
38175compiler_lib_search_path=$lt_compiler_lib_search_path
38176
38177# ### END LIBTOOL CONFIG
38178
38179_LT_EOF
38180
38181 case $host_os in
38182 aix3*)
38183 cat <<\_LT_EOF >> "$cfgfile"
38184# AIX sometimes has problems with the GCC collect2 program. For some
38185# reason, if we set the COLLECT_NAMES environment variable, the problems
38186# vanish in a puff of smoke.
38187if test "X${COLLECT_NAMES+set}" != Xset; then
38188 COLLECT_NAMES=
38189 export COLLECT_NAMES
38190fi
38191_LT_EOF
38192 ;;
38193 esac
38194
38195
38196ltmain="$ac_aux_dir/ltmain.sh"
38197
38198
38199 # We use sed instead of cat because bash on DJGPP gets confused if
38200 # if finds mixed CR/LF and LF-only lines. Since sed operates in
38201 # text mode, it properly converts lines to CR/LF. This bash problem
38202 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000038203 sed '$q' "$ltmain" >> "$cfgfile" \
38204 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000038205
cristyda16f162011-02-19 23:52:17 +000038206 if test x"$xsi_shell" = xyes; then
38207 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
38208func_dirname ()\
38209{\
38210\ case ${1} in\
38211\ */*) func_dirname_result="${1%/*}${2}" ;;\
38212\ * ) func_dirname_result="${3}" ;;\
38213\ esac\
38214} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
38215 && mv -f "$cfgfile.tmp" "$cfgfile" \
38216 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38217test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038218
38219
cristyda16f162011-02-19 23:52:17 +000038220 sed -e '/^func_basename ()$/,/^} # func_basename /c\
38221func_basename ()\
38222{\
38223\ func_basename_result="${1##*/}"\
38224} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
38225 && mv -f "$cfgfile.tmp" "$cfgfile" \
38226 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38227test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038228
38229
cristyda16f162011-02-19 23:52:17 +000038230 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
38231func_dirname_and_basename ()\
38232{\
38233\ case ${1} in\
38234\ */*) func_dirname_result="${1%/*}${2}" ;;\
38235\ * ) func_dirname_result="${3}" ;;\
38236\ esac\
38237\ func_basename_result="${1##*/}"\
38238} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
38239 && mv -f "$cfgfile.tmp" "$cfgfile" \
38240 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38241test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038242
cristyda16f162011-02-19 23:52:17 +000038243
38244 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
38245func_stripname ()\
38246{\
38247\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
38248\ # positional parameters, so assign one to ordinary parameter first.\
38249\ func_stripname_result=${3}\
38250\ func_stripname_result=${func_stripname_result#"${1}"}\
38251\ func_stripname_result=${func_stripname_result%"${2}"}\
38252} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
38253 && mv -f "$cfgfile.tmp" "$cfgfile" \
38254 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38255test 0 -eq $? || _lt_function_replace_fail=:
38256
38257
38258 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
38259func_split_long_opt ()\
38260{\
38261\ func_split_long_opt_name=${1%%=*}\
38262\ func_split_long_opt_arg=${1#*=}\
38263} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
38264 && mv -f "$cfgfile.tmp" "$cfgfile" \
38265 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38266test 0 -eq $? || _lt_function_replace_fail=:
38267
38268
38269 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
38270func_split_short_opt ()\
38271{\
38272\ func_split_short_opt_arg=${1#??}\
38273\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
38274} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
38275 && mv -f "$cfgfile.tmp" "$cfgfile" \
38276 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38277test 0 -eq $? || _lt_function_replace_fail=:
38278
38279
38280 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
38281func_lo2o ()\
38282{\
38283\ case ${1} in\
38284\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
38285\ *) func_lo2o_result=${1} ;;\
38286\ esac\
38287} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
38288 && mv -f "$cfgfile.tmp" "$cfgfile" \
38289 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38290test 0 -eq $? || _lt_function_replace_fail=:
38291
38292
38293 sed -e '/^func_xform ()$/,/^} # func_xform /c\
38294func_xform ()\
38295{\
38296 func_xform_result=${1%.*}.lo\
38297} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
38298 && mv -f "$cfgfile.tmp" "$cfgfile" \
38299 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38300test 0 -eq $? || _lt_function_replace_fail=:
38301
38302
38303 sed -e '/^func_arith ()$/,/^} # func_arith /c\
38304func_arith ()\
38305{\
38306 func_arith_result=$(( $* ))\
38307} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
38308 && mv -f "$cfgfile.tmp" "$cfgfile" \
38309 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38310test 0 -eq $? || _lt_function_replace_fail=:
38311
38312
38313 sed -e '/^func_len ()$/,/^} # func_len /c\
38314func_len ()\
38315{\
38316 func_len_result=${#1}\
38317} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
38318 && mv -f "$cfgfile.tmp" "$cfgfile" \
38319 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38320test 0 -eq $? || _lt_function_replace_fail=:
38321
38322fi
38323
38324if test x"$lt_shell_append" = xyes; then
38325 sed -e '/^func_append ()$/,/^} # func_append /c\
38326func_append ()\
38327{\
38328 eval "${1}+=\\${2}"\
38329} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
38330 && mv -f "$cfgfile.tmp" "$cfgfile" \
38331 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38332test 0 -eq $? || _lt_function_replace_fail=:
38333
38334
38335 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
38336func_append_quoted ()\
38337{\
38338\ func_quote_for_eval "${2}"\
38339\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
38340} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
38341 && mv -f "$cfgfile.tmp" "$cfgfile" \
38342 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38343test 0 -eq $? || _lt_function_replace_fail=:
38344
38345
38346 # Save a `func_append' function call where possible by direct use of '+='
38347 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
38348 && mv -f "$cfgfile.tmp" "$cfgfile" \
38349 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38350 test 0 -eq $? || _lt_function_replace_fail=:
38351else
38352 # Save a `func_append' function call even when '+=' is not available
38353 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
38354 && mv -f "$cfgfile.tmp" "$cfgfile" \
38355 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38356 test 0 -eq $? || _lt_function_replace_fail=:
38357fi
38358
38359if test x"$_lt_function_replace_fail" = x":"; then
38360 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
38361$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
38362fi
38363
38364
38365 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000038366 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
38367 chmod +x "$ofile"
38368
38369
38370 cat <<_LT_EOF >> "$ofile"
38371
38372# ### BEGIN LIBTOOL TAG CONFIG: CXX
38373
38374# The linker used to build libraries.
38375LD=$lt_LD_CXX
38376
cristy0c60a692010-11-04 01:09:47 +000038377# How to create reloadable object files.
38378reload_flag=$lt_reload_flag_CXX
38379reload_cmds=$lt_reload_cmds_CXX
38380
cristy73bd4a52010-10-05 11:24:23 +000038381# Commands used to build an old-style archive.
38382old_archive_cmds=$lt_old_archive_cmds_CXX
38383
38384# A language specific compiler.
38385CC=$lt_compiler_CXX
38386
38387# Is the compiler the GNU compiler?
38388with_gcc=$GCC_CXX
38389
38390# Compiler flag to turn off builtin functions.
38391no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
38392
cristy73bd4a52010-10-05 11:24:23 +000038393# Additional compiler flags for building library objects.
38394pic_flag=$lt_lt_prog_compiler_pic_CXX
38395
cristyda16f162011-02-19 23:52:17 +000038396# How to pass a linker flag through the compiler.
38397wl=$lt_lt_prog_compiler_wl_CXX
38398
cristy73bd4a52010-10-05 11:24:23 +000038399# Compiler flag to prevent dynamic linking.
38400link_static_flag=$lt_lt_prog_compiler_static_CXX
38401
38402# Does compiler simultaneously support -c and -o options?
38403compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
38404
38405# Whether or not to add -lc for building shared libraries.
38406build_libtool_need_lc=$archive_cmds_need_lc_CXX
38407
38408# Whether or not to disallow shared libs when runtime libs are static.
38409allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
38410
38411# Compiler flag to allow reflexive dlopens.
38412export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
38413
38414# Compiler flag to generate shared objects directly from archives.
38415whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
38416
38417# Whether the compiler copes with passing no objects directly.
38418compiler_needs_object=$lt_compiler_needs_object_CXX
38419
38420# Create an old-style archive from a shared archive.
38421old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
38422
38423# Create a temporary old-style archive to link instead of a shared archive.
38424old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
38425
38426# Commands used to build a shared archive.
38427archive_cmds=$lt_archive_cmds_CXX
38428archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
38429
38430# Commands used to build a loadable module if different from building
38431# a shared archive.
38432module_cmds=$lt_module_cmds_CXX
38433module_expsym_cmds=$lt_module_expsym_cmds_CXX
38434
38435# Whether we are building with GNU ld or not.
38436with_gnu_ld=$lt_with_gnu_ld_CXX
38437
38438# Flag that allows shared libraries with undefined symbols to be built.
38439allow_undefined_flag=$lt_allow_undefined_flag_CXX
38440
38441# Flag that enforces no undefined symbols.
38442no_undefined_flag=$lt_no_undefined_flag_CXX
38443
38444# Flag to hardcode \$libdir into a binary during linking.
38445# This must work even if \$libdir does not exist
38446hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
38447
cristy73bd4a52010-10-05 11:24:23 +000038448# Whether we need a single "-rpath" flag with a separated argument.
38449hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
38450
38451# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38452# DIR into the resulting binary.
38453hardcode_direct=$hardcode_direct_CXX
38454
38455# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38456# DIR into the resulting binary and the resulting library dependency is
38457# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38458# library is relocated.
38459hardcode_direct_absolute=$hardcode_direct_absolute_CXX
38460
38461# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38462# into the resulting binary.
38463hardcode_minus_L=$hardcode_minus_L_CXX
38464
38465# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38466# into the resulting binary.
38467hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
38468
38469# Set to "yes" if building a shared library automatically hardcodes DIR
38470# into the library and all subsequent libraries and executables linked
38471# against it.
38472hardcode_automatic=$hardcode_automatic_CXX
38473
38474# Set to yes if linker adds runtime paths of dependent libraries
38475# to runtime path list.
38476inherit_rpath=$inherit_rpath_CXX
38477
38478# Whether libtool must link a program against all its dependency libraries.
38479link_all_deplibs=$link_all_deplibs_CXX
38480
cristy73bd4a52010-10-05 11:24:23 +000038481# Set to "yes" if exported symbols are required.
38482always_export_symbols=$always_export_symbols_CXX
38483
38484# The commands to list exported symbols.
38485export_symbols_cmds=$lt_export_symbols_cmds_CXX
38486
38487# Symbols that should not be listed in the preloaded symbols.
38488exclude_expsyms=$lt_exclude_expsyms_CXX
38489
38490# Symbols that must always be exported.
38491include_expsyms=$lt_include_expsyms_CXX
38492
38493# Commands necessary for linking programs (against libraries) with templates.
38494prelink_cmds=$lt_prelink_cmds_CXX
38495
cristyda16f162011-02-19 23:52:17 +000038496# Commands necessary for finishing linking programs.
38497postlink_cmds=$lt_postlink_cmds_CXX
38498
cristy73bd4a52010-10-05 11:24:23 +000038499# Specify filename containing input files.
38500file_list_spec=$lt_file_list_spec_CXX
38501
38502# How to hardcode a shared library path into an executable.
38503hardcode_action=$hardcode_action_CXX
38504
38505# The directories searched by this compiler when creating a shared library.
38506compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
38507
38508# Dependencies to place before and after the objects being linked to
38509# create a shared library.
38510predep_objects=$lt_predep_objects_CXX
38511postdep_objects=$lt_postdep_objects_CXX
38512predeps=$lt_predeps_CXX
38513postdeps=$lt_postdeps_CXX
38514
38515# The library search path used internally by the compiler when linking
38516# a shared library.
38517compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
38518
38519# ### END LIBTOOL TAG CONFIG: CXX
38520_LT_EOF
38521
38522 ;;
cristy2bd4b6e2012-07-22 15:29:11 +000038523 "magick.sh.in":C) chmod +x magick.sh ;;
cristy4c08aed2011-07-01 19:47:50 +000038524 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
cristy4c08aed2011-07-01 19:47:50 +000038525 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
cristy3ed852e2009-09-05 21:47:34 +000038526 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
38527 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
38528
38529 esac
38530done # for ac_tag
38531
38532
cristy8b350f62009-11-15 23:12:43 +000038533as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000038534_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000038535ac_clean_files=$ac_clean_files_save
38536
38537test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000038538 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038539
38540
38541# configure is writing to config.log, and then calls config.status.
38542# config.status does its own redirection, appending to config.log.
38543# Unfortunately, on DOS this fails, as config.log is still kept open
38544# by configure, so config.status won't be able to write to it; its
38545# output is simply discarded. So we exec the FD to /dev/null,
38546# effectively closing config.log, so it can be properly (re)opened and
38547# appended to by config.status. When coming back to configure, we
38548# need to make the FD available again.
38549if test "$no_create" != yes; then
38550 ac_cs_success=:
38551 ac_config_status_args=
38552 test "$silent" = yes &&
38553 ac_config_status_args="$ac_config_status_args --quiet"
38554 exec 5>/dev/null
38555 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
38556 exec 5>>config.log
38557 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
38558 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000038559 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000038560fi
38561if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000038562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000038563$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
38564fi
38565
38566
38567rm -f magick-version
38568
cristy430a7312010-01-21 20:44:04 +000038569result_dejavu_font_dir='none'
38570if test "${dejavu_font_dir}x" != 'x'; then
38571 result_dejavu_font_dir=$dejavu_font_dir
38572fi
38573
cristy3ed852e2009-09-05 21:47:34 +000038574result_ghostscript_font_dir='none'
38575if test "${ghostscript_font_dir}x" != 'x'; then
38576 result_ghostscript_font_dir=$ghostscript_font_dir
38577fi
38578
38579result_windows_font_dir='none'
38580if test "${windows_font_dir}x" != 'x'; then
38581 result_windows_font_dir=${windows_font_dir}
38582fi
38583
cristyad38abe2012-12-23 23:03:21 +000038584{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
cristy3ed852e2009-09-05 21:47:34 +000038585ImageMagick is configured as follows. Please verify that this configuration
38586matches your expectations.
38587
38588Host system type: $host
38589Build system type: $build
38590
38591 Option Value
38592-------------------------------------------------------------------------------
38593Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38594Static libraries --enable-static=$enable_static $libtool_build_static_libs
cristyc6722092012-10-14 00:19:31 +000038595Module support --with-modules=$build_modules $build_modules
cristy3ed852e2009-09-05 21:47:34 +000038596GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38597Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38598High Dynamic Range Imagery
38599 --enable-hdri=$enable_hdri $enable_hdri
38600
38601Delegate Configuration:
38602BZLIB --with-bzlib=$with_bzlib $have_bzlib
38603Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038604Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038605DJVU --with-djvu=$with_djvu $have_djvu
38606DPS --with-dps=$with_dps $have_dps
38607FFTW --with-fftw=$with_fftw $have_fftw
38608FlashPIX --with-fpx=$with_fpx $have_fpx
38609FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38610FreeType --with-freetype=$with_freetype $have_freetype
38611GhostPCL None $PCLDelegate ($PCLVersion)
38612GhostXPS None $XPSDelegate ($XPSVersion)
38613Ghostscript None $PSDelegate ($GSVersion)
38614Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38615Ghostscript lib --with-gslib=$with_gslib $have_gslib
38616Graphviz --with-gvc=$with_gvc $have_gvc
38617JBIG --with-jbig=$with_jbig $have_jbig
38618JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38619JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038620LCMS v1 --with-lcms=$with_lcms $have_lcms
38621LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038622LQR --with-lqr=$with_lqr $have_lqr
cristy5eef09f2012-10-16 12:08:28 +000038623LTDL --with-ltdl=$with_ltdl $have_ltdl
cristyfbb0ef02010-12-19 02:32:11 +000038624LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038625Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38626OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038627PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038628PERL --with-perl=$with_perl $have_perl
38629PNG --with-png=$with_png $have_png
38630RSVG --with-rsvg=$with_rsvg $have_rsvg
38631TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038632WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038633Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy01ff9f32012-12-01 18:15:29 +000038634WMF --with-wmf=$with_wmf $have_wmf
cristy3ed852e2009-09-05 21:47:34 +000038635X11 --with-x=$with_x $have_x
38636XML --with-xml=$with_xml $have_xml
38637ZLIB --with-zlib=$with_zlib $have_zlib
38638
38639X11 Configuration:
38640 X_CFLAGS = $X_CFLAGS
38641 X_PRE_LIBS = $X_PRE_LIBS
38642 X_LIBS = $X_LIBS
38643 X_EXTRA_LIBS = $X_EXTRA_LIBS
38644
38645Options used to compile and link:
38646 PREFIX = $PREFIX_DIR
38647 EXEC-PREFIX = $EXEC_PREFIX_DIR
38648 VERSION = $PACKAGE_VERSION
38649 CC = $CC
38650 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038651 CPPFLAGS = $MAGICK_CPPFLAGS
38652 PCFLAGS = $MAGICK_PCFLAGS
38653 DEFS = $DEFS
38654 LDFLAGS = $LDFLAGS
38655 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38656 LIBS = $MAGICK_LIBS
38657 CXX = $CXX
38658 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038659 FEATURES = $MAGICK_FEATURES
cristy422d5502012-12-22 22:20:57 +000038660 DELEGATES = $MAGICK_DELEGATES
cristy3ed852e2009-09-05 21:47:34 +000038661" >&5
cristyad38abe2012-12-23 23:03:21 +000038662$as_echo "
cristy3ed852e2009-09-05 21:47:34 +000038663ImageMagick is configured as follows. Please verify that this configuration
38664matches your expectations.
38665
38666Host system type: $host
38667Build system type: $build
38668
38669 Option Value
38670-------------------------------------------------------------------------------
38671Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38672Static libraries --enable-static=$enable_static $libtool_build_static_libs
cristyc6722092012-10-14 00:19:31 +000038673Module support --with-modules=$build_modules $build_modules
cristy3ed852e2009-09-05 21:47:34 +000038674GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38675Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38676High Dynamic Range Imagery
38677 --enable-hdri=$enable_hdri $enable_hdri
38678
38679Delegate Configuration:
38680BZLIB --with-bzlib=$with_bzlib $have_bzlib
38681Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038682Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038683DJVU --with-djvu=$with_djvu $have_djvu
38684DPS --with-dps=$with_dps $have_dps
38685FFTW --with-fftw=$with_fftw $have_fftw
38686FlashPIX --with-fpx=$with_fpx $have_fpx
38687FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38688FreeType --with-freetype=$with_freetype $have_freetype
38689GhostPCL None $PCLDelegate ($PCLVersion)
38690GhostXPS None $XPSDelegate ($XPSVersion)
38691Ghostscript None $PSDelegate ($GSVersion)
38692Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38693Ghostscript lib --with-gslib=$with_gslib $have_gslib
38694Graphviz --with-gvc=$with_gvc $have_gvc
38695JBIG --with-jbig=$with_jbig $have_jbig
38696JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38697JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038698LCMS v1 --with-lcms=$with_lcms $have_lcms
38699LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038700LQR --with-lqr=$with_lqr $have_lqr
cristy5eef09f2012-10-16 12:08:28 +000038701LTDL --with-ltdl=$with_ltdl $have_ltdl
cristyfbb0ef02010-12-19 02:32:11 +000038702LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038703Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38704OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038705PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038706PERL --with-perl=$with_perl $have_perl
38707PNG --with-png=$with_png $have_png
38708RSVG --with-rsvg=$with_rsvg $have_rsvg
38709TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038710WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038711Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy01ff9f32012-12-01 18:15:29 +000038712WMF --with-wmf=$with_wmf $have_wmf
cristy3ed852e2009-09-05 21:47:34 +000038713X11 --with-x=$with_x $have_x
38714XML --with-xml=$with_xml $have_xml
38715ZLIB --with-zlib=$with_zlib $have_zlib
38716
38717X11 Configuration:
38718 X_CFLAGS = $X_CFLAGS
38719 X_PRE_LIBS = $X_PRE_LIBS
38720 X_LIBS = $X_LIBS
38721 X_EXTRA_LIBS = $X_EXTRA_LIBS
38722
38723Options used to compile and link:
38724 PREFIX = $PREFIX_DIR
38725 EXEC-PREFIX = $EXEC_PREFIX_DIR
38726 VERSION = $PACKAGE_VERSION
38727 CC = $CC
38728 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038729 CPPFLAGS = $MAGICK_CPPFLAGS
38730 PCFLAGS = $MAGICK_PCFLAGS
38731 DEFS = $DEFS
38732 LDFLAGS = $LDFLAGS
38733 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38734 LIBS = $MAGICK_LIBS
38735 CXX = $CXX
38736 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038737 FEATURES = $MAGICK_FEATURES
cristy422d5502012-12-22 22:20:57 +000038738 DELEGATES = $MAGICK_DELEGATES
cristyad38abe2012-12-23 23:03:21 +000038739" >&6; }